U.S. Stocks End Flat as Apple Dents Gains