public static Address adjustForThumbAsNeeded(OatHeader oatHeader, Program program,
			Address address, MessageLog log) {
		long displacement = address.getOffset();
		if (oatHeader.getInstructionSet() == OatInstructionSet.kThumb2) {
			if ((displacement & 0x1) == 0x1) {//thumb code?
				address = address.subtract(1);

				Register register = program.getLanguage().getRegister("TMode");
				RegisterValue value = new RegisterValue(register, BigInteger.valueOf(1));
				try {
					program.getProgramContext().setRegisterValue(address, address, value);
				}
				catch (ContextChangeException e) {
					log.appendException(e);
				}
			}
		}
		return address;
	}
Returns true if the given program contain OAT information.
Checks for the program being an ELF, and containing the three magic OAT symbols.
@param program the program to inspect
@return true if the program is OAT
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/oat/OatUtilities.java