private void disassembleAsNeeded(Program program, Address toAddr) {
		if (program.getMemory().contains(toAddr) &&
			program.getMemory().getBlock(toAddr).isExecute()) {
			if (program.getListing().isUndefined(toAddr, toAddr)) {
				DisassembleCommand cmd = new DisassembleCommand(toAddr, null, false);
				cmd.applyTo(program);
			}
		}
	}
Check to see if points to instructions and not undefined, if so then disassemble.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/oat/OatHeaderAnalyzer.java