private void fixupLoadCommands() throws IOException {
		for (LoadCommand lc : machoHeader.getLoadCommands()) {
			if (monitor.isCancelled()) {
				break;
			}
			switch (lc) {
				case SegmentCommand cmd -> fixupSegment(cmd);
				case SymbolTableCommand cmd -> fixupSymbolTable(cmd);
				case DynamicSymbolTableCommand cmd -> fixupDynamicSymbolTable(cmd);
				case DyldInfoCommand cmd -> fixupDyldInfo(cmd);
				case LinkEditDataCommand cmd -> fixupLinkEditData(cmd);
				case CorruptLoadCommand cmd -> throw new IOException(
					"Error fixing corrupt %s at 0x%x".formatted(
						LoadCommandTypes.getLoadCommandName(cmd.getCommandType()),
						cmd.getStartIndex()));
				default -> {
					// Do nothing
				}
			}
		}
	}
Fixes-up various fields in the new packed Mach-O's load commands

@throws IOException If there was an IO-related issue performing the fix-up
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/ExtractedMacho.java