1) https://ycharts.com/indicators/sp_500_eps (note: slowly rising, if you ignore seasonality)
2) https://ycharts.com/indicators/reports/sp_500_earnings (note: dropping fast)
TLDR earnings are going down, but earnings/shares are going up. So what is going on ? Earnings for the US economy as a whole are dropping (pretty fast even). But the metric investors use to value shares, earnings per share is going up.
That means U.S. companies are buying back shares at a faster rate than their earnings are dropping. Why ? Exactly to generate this outcome : normal valuation metrics for shares (net-present-value of future earnings per share) go up as a result of this operation. When cutting a million corners the share price of any (large cap) stock should be roughly NPV(8%, future_cashflow).
The next question to ask is ... given that this uses a LOT of debt that is currently at very low interest rates, what happens if interest payments inevitably go up (either as a result of inflation, or of the FED raising rates) ? The problem with low interest rates is that, at the moment, 1% rate rise would quadruple interest payments for the government, and double interest payments for AA corporations.
I'm pretty sure they don't do this as a loan from the untaxed or under-taxed overseas entity back to the taxed parent would create a tax event.
AAPL has more cash than it knows what to do with, but it's a huge borrower in the corporate market so that it can fund its dividend payments.
So the interesting question is why are they doing this now given the medium/long term ROI a company with cash looks generate. It could mean they stopped seeing obvious medium/long term investments. Maybe a small bubble is 5-10 years away.