So what happens in a tie?
we become tied with GER in terms of points.
USA win over Portugal = the U.S. advances out of the group. The game with Germany would then be for 1st or 2nd, with the USA winning the group with a draw or win, and finishing 2nd with a loss to Germany;
USA draw against Portugal, plus win over Germany = USA wins group;
USA draw against Portugal, plus draw with Germany = USA advances as 2nd place team in group;
USA draw against Portugal, plus loss to Germany and Portugal-Ghana draw = USA advances as 2nd place team in group;
USA draw against Portugal, plus loss to Germany, with Ghana or Portugal winning outright = comes down to goal differential between USA and Ghana-Portugal winner for 2nd place. The USA would probably be in trouble if it was Ghana as they would have a goal difference of at least 0, and have already scored 3. The USA would be in decent shape against Portugal thanks to the 4-0 loss to Germany, so long as the USA avoids a blowout to the Germans.
USA loss against Portugal, plus win over Germany = USA definitely advances, likely as group winners, unless Portugal wins against Ghana and overtakes USA in goal difference.
USA loss against Portugal, plus draw against Germany, plus Portugal-Ghana draw = US advances so long as they lost to Portugal by 2 or less. A 3 goal loss would give Portugal the goal difference tiebreaker.
USA loss against Portugal, plus draw against Germany, plus Ghana win = would come down to goal difference between USA and Ghana for 2nd place in group.
USA loss against Portugal, plus draw against Germany, plus Portugal win = USA eliminated, Portugal wins group.
USA loss against Portugal, plus loss to Germany = USA eliminated