Apple had maintained an internal port of Mac OS X on x86 hardware for as long as it had existed as OS X. They came quite prepared for the eventuality of a CPU architecture change.
ISTR blog posts by an Apple engineer describing how little of the graphical system actually worked (basically just WindowServer and small Cocoa apps) without a lot more work to fix endian issues