This is the Total Recall script written by David Cronenberg before leaving the project due to creative differences with the producer. He (David) wanted the movie to be more Phildickian while the producer (name escapes me) wanted it to be Raiders of the Lost Ark on Mars.
Here, Quaid is known as Quail.