protected long getPackedOffset(long fileOffset, SegmentCommand segment)
			throws NotFoundException {
		Integer segmentStart = packedSegmentStarts.get(segment);
		if (segmentStart != null) {
			return fileOffset - segment.getFileOffset() + segmentStart;
		}
		throw new NotFoundException(
			"Failed to convert Mach-O file offset to packed offset: 0x%x".formatted(fileOffset));
	}
Converts the given Mach-O file offset to an offset into the packed Mach-O

@param fileOffset The Mach-O file offset to convert
@param segment The segment that contains the file offset; null if unknown
@return An offset into the packed Mach-O
@throws NotFoundException If there was no corresponding Mach-O offset
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/ExtractedMacho.java