private static boolean checkX64Instruction(Instruction inst) {
		boolean retVal = false;
		for (PcodeOp op : inst.getPcode()) {
			if (op.getOpcode() == PcodeOp.CALLOTHER) {
				int index = (int) op.getInput(0).getOffset();
				if (inst.getProgram()
						.getLanguage()
						.getUserDefinedOpName(index)
						.equals(SYSCALL_X64_CALLOTHER)) {
					retVal = true;
				}
			}
		}
		return retVal;
	}
Checks whether an x64 instruction is a system call
@param inst instruction to check
@return true precisely when the instruction is a system call
Ghidra/Features/Base/ghidra_scripts/ResolveX86orX64LinuxSyscallsScript.java