That is a major turnaround for the company that emerged from bankruptcy with the aid of $ 50 billion in emergency government loans .