Mach-O signature (FE ED FA CE / CF, fat: CA FE BA BE)
Apple's Mach-O executable format starts with a magic word: 0xFEEDFACE (32-bit) or 0xFEEDFACF (64-bit), with byte order indicating endianness. Universal ('fat') binaries that bundle multiple architectures begin with 0xCAFEBABE.
32-bit: MH_MAGIC = FE ED FA CE; 64-bit: MH_MAGIC_64 = FE ED FA CF.
Opposite byte order (MH_CIGAM/MH_CIGAM_64) appears reversed: CE FA ED FE / CF FA ED FE.
Universal 'fat' binaries begin with FAT_MAGIC = CA FE BA BE (big-endian), then a count of architecture slices. FAT_MAGIC_64 = CA FE BA BF.
CAUTION: CA FE BA BE is identical to the Java .class magic; disambiguate by the following bytes (Java .class next is the minor/major version; Mach-O fat next is a big-endian architecture count).
ext.notes — https://en.wikipedia.org/wiki/Mach-OCorroborates magic values and FAT_MAGIC 0xcafebabe for universal binaries, and the clash with Java .class magic.