At the time of the "giant bail out" Microsoft purchased 150 million dollars worth of Apple preferred stock. "Preferred" stock is non-voting. At the time Apple has 1.5 billion dollars in "cash and cash equivalents" on hand. Yeah, they were _really_ in trouble. I should be so poor.
Everybody lost share to IBM. But Apple did not lose as much as their competitors. What other computer hardware company that was in business the day the IBM PC shipped is still in business? The only ones that come to mind are Rat Shack and Cray.
There was always hardware and software available for an Apple not produced by Apple. Remember Visicalc? Remember the coprocessor boards that let Apples run CP/M? I can't remember now what all was available, but accessorizing the Apple was an industry in itself.