Apple’s earnings tell the story of a global smartphone demand shock