MADRID — The apparently unstoppable Lionel Messi extended his record goals tally for 2012 to 88 when he scored twice to earn holder Barcelona a 2-0 win at second division Cordoba in its King's Cup last-16 first leg Wednesday. Real Madrid, the 2011 winner, fell two goals behind at La Liga rivals Celta Vigo, but Cristiano Ronaldo's late strike to make it 2-1 put the 2011 winner in a reasonably strong position ahead of next week's second leg at its Bernabeu Stadium. Messi's Argentine compatriot, Athletic Bilbao coach Marcelo Bielsa, had a wretched night when his side was dumped out by third tier Basque neighbor Eibar on away goals in its postponed last-32 second leg. Mikel Arruabarrena's 72nd-minute penalty for Eibar at the San Mames sent the Segunda B side through after the second leg ended 1-1. Eibar, which held Bilbao to a 0-0 draw in the first leg, will play Malaga in the last 16, with a quarterfinal against Barca or Cordoba the prize for the winner. On the other side of the draw, Atletico Madrid has one foot in the last eight after forward Diego Costa scored twice in a 3-0 win at home to city rival Getafe. Atletico, resurgent under Argentine coach Diego Simeone, would play second division Las Palmas or Real Betis in the quarterfinals, with the pair meeting Thursday. On Sunday, World Player of the Year Messi overhauled Gerd Mueller's goals record for a calendar year of 85 set in 1972 and he took only 11 minutes Wednesday to add to his haul in a vibrant atmosphere at Cordoba's packed Arcangel Stadium. David Villa sped clear on the left and he squared for Messi to clip the ball into the net off the underside of the crossbar from close range with the Cordoba goalkeeper stranded. Fielding a near full-strength team despite the lowly opposition, Barca controlled the game in the second half before Thiago Alcantara released Messi on the left in the 74th minute and he finished low into the corner. Barca coach Tito Vilanova said Messi's injury scare in last week's Champions League match against Benfica, when he bruised a knee in a clash with goalkeeper Artur, had sharpened the 25-year-old's hunger for goals. Real struggled against a well-drilled Celta side in rain-lashed Galicia and fell behind when Mario Bermejo fired between reserve goalkeeper Antonio Adan's legs from a narrow angle in the 54th minute. Cristian Bustos made it 2-0 moments after coming off the bench in the 78th with a superb long-range effort that arrowed into the top corner before Ronaldo, who was lucky to be on the pitch after throwing himself into a couple of wild challenges, pulled a goal back three minutes from time. Sevilla virtually assured itself a berth in the last eight when it crushed La Liga rival Real Mallorca 5-0 in Palma, Alvaro Negredo scoring twice to set the 2010 winner on its way. Valencia moved closer to a place in the quarterfinals and a possible meeting with Real when Dani Parejo and substitute Roberto Soldado struck in a 2-0 win at Osasuna in their last-16 first leg Tuesday. — Reuters