private Instruction getCalledFromInstruction(String functionName) {
		Symbol s = SymbolUtilities.getExpectedLabelOrFunctionSymbol(currentProgram, functionName,
			m -> printerr(m));
		for (Reference ref : s.getReferences(monitor)) {
			if (ref.getReferenceType().isCall()) {
				return currentProgram.getListing().getInstructionAt(ref.getFromAddress());
			}
		}
		return null;
	}
Perform processing for the various breakpoints.
@param addr current execute address where emulation has been suspended
@throws Exception if an error occurs
Ghidra/Features/Base/ghidra_scripts/EmuX86DeobfuscateExampleScript.java