In September, when Cook hands over the baton to incoming CEO John Ternus, it’ll be on the back of record sales and profit margins, countered by supply chain and geopolitical uncertainty.