Apple's total comprehensive income was $24B in Q2. Their total assets were $332B, and total liabilities $270B. Assuming all product sales dropped to 0, they could make the best effort to liquidate assets, after which they'd only have $62B - which would last them a little over a year at $13.6B in quarterly operating expenses.
The link shows ~ < 50% of Apple's liabilities are current; assuming revenue dropped overnight to $0, I doubt they'd need to liquidate any assets, likely for multiple years.
It's an unrealistic & impractical scenario, obviously, but IMO it's more likely they'd want to increase their liabilities (and likely WOULD be able to - lol!) without touching their assets. It's actually an interesting & somewhat comical mind game, even if nothing else.
A fair portion of that quarterly operating expense results in $20 billion a quarter in services revenue. I don't think those numbers intuitively reveal a plausible scenario where they are under in five years.
China going to war would destroy most of Apple's production bases and this would force people to use Android due to Samsung being the best fabs not involved.