I don't get the part AMC is using its shareholder's money to fund the project of VMC and only get 10% royalty in return.
No, AMC is
loaning $1M to VMC to pay for the NRE costs. That $1M is completely recovered by AMC at the expense of VMC forfeiting 100% chip sales profits to AMC, until that $1M is returned.
Only then AMC gets 10% royalty.
Overall, AMC gets a "free" NRE
and 10% royalty from there on.