Crisis-hit Argentina and holders Mexico exit Olympics
Hosts Brazil hope to avoid the same fate as their eternal rivals later when they take on Denmark in Salvador needing to win to guarantee their place in the last eight.
Freiburg striker Nils Petersen scored five times as world champions Germany smashed Pacific islanders Fiji 10-0 to seal their place in the last eight behind South Korea, who beat Mexico 1-0 thanks to Kwon Chang-hoon's stunning strike in Brasilia.
Argentina needed to win to secure a place in the quarters due to their inferior goal difference with the Hondurans after both had lost to Portugal and beat Algeria in their opening two group matches.
However, the Central Americans sprung a huge surprise as Antony Lorenzo's penalty 15 minutes from time put them in front in Brasilia and, despite Mauricio Martinez's equaliser deep into stoppage time, Argentina bowed out in embarrassing fashion.
Portugal secured top spot in Group D with a 1-1 draw against Algeria in Belo Horizonte.
The Albiceleste's chances were severely hampered by chaotic preparation for the Games.
Coach Julio Olarticoechea, who had been coaching the Argentine women's team, was put in charge just weeks before the tournament began after Gerardo Martino resigned citing power squabbles at the Argentine Football Association (AFA) and clubs not releasing players for the Olympics.
Martino's resignation also came after losing a second Copa America final to Chile in as many years in June which provoked a tearful Lionel Messi to announce his retirement from international football.
New coach of the Argentina senior team Edgardo Bauza arrived in Barcelona on Tuesday on a mission to convince five-time World Player of the Year Messi to reverse his decision.
After Martino's coaching staff also resigned, Olarticoechea was the only coach still contracted to AFA.
The country's president Mauricio Macri has slammed corruption and bad management at the federation, which is paralysed by a squabble over broadcasting rights.
"We cannot carry on with a system full of bad habits and corruption," said Macri, himself a former football executive.
- 'Mafia' -
Argentinean courts last month started auditing AFA's accounts to determine how it used its state funding over recent years.
Legendary former player Diego Maradona branded AFA's management a "mafia," pointing the finger at its late president Julio Grondona.
"We still have the same Grondona mafia," said the 1986 World Cup winner last month.
"I want an audit. I want a clean and transparent AFA."
Argentina's conquerors in the 2014 World Cup final Germany remain on course for another Brazilian party at the Maracana on August 20 as they brushed aside the hapless Fijians in Belo Horizonte.
Fiji benefited from New Zealand's disqualification for fielding an ineligible player to qualify for the Olympics and conceded 23 goals over the course of their Group C games having also been smashed 8-0 and 5-1 by South Korea and Mexico respectively.
Arsenal winger Serge Gnabry also scored twice to lead the competition's scoring charts along with Petersen on five.
Despite hitting double figures, Germany still fell short of their own record 16-0 victory at the Games over Russia in 1912, held jointly with Denmark's 17-1 drubbing of France at the London Games 1908.