Argentina's David Nalbandian stared into the abyss at two sets down before progressing when Janko Tipsarevic retired through heat exhaustion trailing 2-1 in the final set.
Eighth seed Nalbandian was two sets down and two match points down at 5-2 in the third, but recovered to be leading 6-7, 4-6, 7-6, 6-0, 2-1 when his opponent called it a day after three hours and 19 minutes of play in 39 degree heat.
"I was tired from the first point. It's not tennis any more, it's who is going to last longest in the sun," Tipsarevic said.