private long getBaseAddrOffset(List<Option> options) {
		Address baseAddr = null;

		if (options != null) {
			for (Option option : options) {
				String optName = option.getName();
				if (optName.equals(OPTION_NAME_BASE_ADDR)) {
					baseAddr = (Address) option.getValue();
				}
			}
		}

		long offset = 0;
		if (baseAddr != null) {
			offset = baseAddr.getOffset();
		}

		return offset;
	}
Retrieves the Address offset given in the "Base Address" option.
Returns 0 if the option could not be found or contains an invalid value.
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/UnixAoutLoader.java