/* Look up our architecture in the fat file. */
error = fatfile_getarch_with_bits(vp, archbits,
(vm_offset_t)(&header->fat_header), &fat_arch);
if (error != LOAD_SUCCESS)
/* Read the Mach-O header out of it */
error = vn_rdwr(UIO_READ, vp, (caddr_t)&header->mach_header,
sizeof (header->mach_header), fat_arch.offset,
UIO_SYSSPACE, IO_NODELOCKED, kerncred, &resid, p);
/* Is this really a Mach-O? */
if (header->mach_header.magic != MH_MAGIC &&
header->mach_header.magic != MH_MAGIC_64) {
*file_offset = fat_arch.offset;
*macho_size = fat_arch.size;