Depends if Nintendo goes bankrupt because their games stopped selling or their consoles did. Either way that means the market sees no more value in Nintendo games or they have become too niche because they can't sale their consoles anymore. So only those who think they can somehow revitalize those IPs and make it relevant to the market again would bother trying. This may mean the IPs will have way less value at that time.
Big companies like Microsoft and Apple who have little experience in making classic family friendly games or reintroducing them won't bother and they know, by that time, Nintendo IPs aren't that relevant in the market. It may have to be companies that are used to have a lot of creative IPs and manage them well, or a wealthy game publisher who has the vision and drive to make the irrelevant Nintendo IPs unique and groundbreaking again.