Shares, which have fallen roughly 67% this year on concerns about the company's long-term prospects, rose 8% in after-hours trading following the results.
The Nasdaq led the way higher on Wall Street, rising more than 1.6%. Technology shares including Apple Inc and defensive shares gave the S&P 500 its biggest boost as investors continued to worry about a potential recession.