Correct, if it's shares, they just dilluted the value of the stock. If I owned 1% of the company, after printing and handing out $40bn worth of stock, then I keep the same amount of stock, but now it's (e.g.) 0.5%, which means I just lost 50% of that investment. Which means I will receive 50% of the dividend (since out of the next year's dividend 'pool' someone will get a big chunk. Which means NVidia just screwed the existing shareholders (for the time being, and once the numbers/$ are merged I should be getting my dividend by two parts, one from ARM and one from NVIDIA).
If they gave away cash, that's a different story, it all depends.. if they were sitting on $1tn cash, and the spent $40bn, that's no biggie. I mean we went through COVID, what worse can come next?