@Override
	protected void processLibrary(Program lib, String libName, FSRL libFsrl, ByteProvider provider,
			Queue<UnprocessedLibrary> unprocessed, int depth, LoadSpec loadSpec,
			List<Option> options, MessageLog log, TaskMonitor monitor)
			throws IOException, CancelledException {

		if (!shouldPerformReexports(options)) {
			return;
		}

		try {
			for (String path : getReexportPaths(lib, log)) {
				unprocessed.add(new UnprocessedLibrary(path, depth, depth == 1));
			}
		}
		catch (MachException e) {
			throw new IOException(e);
		}
	}
{@inheritDoc}
<p>
The goal here is to add each reexported library to the {@code unprocessed} list at the 
current {@code depth} to be sure they get loaded. However, if the current depth is 1, we 
need to marked them as "discard" so we know not to save them in the end (since their actual
depth would have prevented their save as a normal library)
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/MachoLoader.java