It refers back to the machine, making it an anaphoric reference.
Previous Question
In "After she finished the exam, Hina left the room," the reference is:
Next Question
In the sentence, "Before they entered, the guests removed their shoes," they refers to: