The Mac was already on an upward trajectory before the x86 transition. OS X hasn’t really gained that much marketshare. Besides the “beleaguered years”, Macs have historically trended at around 10% market share. They actually had more marketshare in the early 90s before Windows 95.
Apple has done this three times if you include the Apple //e transition. Each time they brought customer’s along.
The first transition from 68K to PPC, almost all of their revenue came from Macs. The second time about half (the other half was iPods). Now it’s less than 10%. It’s much less risky this time.