Atahualpa was saluted as a hero; when recapturing Cajamarca, making camp outside the city with some 40,000 troops while Chalcuchimac and Quizquiz chased Huáscar's army south. With a disastrous northern campaign, Huáscar had not only lost his best generals and many soldiers, but his army was shocked and demoralized. Huascar and Atahualpa's armies met. Huáscar, after finding himself in a dominant position, refused to make use of it, opting for a safe retreat, crossing the Cotabambas River on the way to Cuzco. Chalkuchimac had a plan of his own and predicted the action of Topa Atao, and divided his army in two, sending one contingent around Topa Atao's back, enveloping and destroying the defenders. In January 1532, only miles from Cuzco, Huáscar's retreat was cut off at Quipaipan, and his army was annihilated and disbanded. Huáscar was captured and the capital Cuzco was seized by Quizquiz, who had it purged from Huáscar's supporters in a bloody massacre. Huáscar himself was executed the following year. During the course of the war, Atahualpa's army had grown to 250,000 men, all the strength of the Empire. However, before he could leave Cajamarca, the new king encountered conquistador Francisco Pizarro, who had reached the city on 16 November, and Atahualpa was captured in the ensuing Battle of Cajamarca. In the custody of Pizarro, Atahualpa was told by Pizarro that he would bring Huáscar to Cajamarca and Pizarro would judge which brother was the better Sapa Inca. In response, Atahualpa ordered Huáscar killed allegedly by drowning. Only months later on August 29, 1533, Atahualpa was himself garroted at the plaza of Cajamarca by Pizarro's men.
Question: Which happened first, Atahualpa was saluted as a hero or  Atahualpa was captured in the ensuing Battle of Cajamarca
Answer: Atahualpa | saluted as a hero