I had just about given myself up for lost _________ I was spotted by a ship.
A. when B. while C. as D. until
A