The once-swaggering company is losing more money and growing more slowly than ever. What happened?