Apple regains top global spot after eight sluggish quarters