Stocks End Mixed, Giving Top Indexes Weekly Loss