protected Address fileOffsetToAddress(Program program, MachHeader header, long fileOffset,
			long size) {
		if (fileOffset != 0 && size != 0) {
			AddressSpace space = program.getAddressFactory().getDefaultAddressSpace();
			SegmentCommand segment = getContainingSegment(header, fileOffset);
			if (segment != null) {
				return space.getAddress(
					segment.getVMaddress() + (fileOffset - segment.getFileOffset()));
			}
		}
		return null;
	}
Converts the given Mach-O file offset to an {@link Address}

@param program The {@link Program}
@param header The Mach-O header
@param fileOffset The file offset of the data (0 indicates no data)
@param size The size (actual size not important, but 0 will cause null to be returned)
@return The converted {@link Address}, or null if there is no corresponding {@link Address}
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/macho/commands/LoadCommand.java