private Register findAssociatedOperandRegister(Scalar scalar,
			Map<Register, Integer> regIndexMap, PcodeOp[] pcode) {
		if (regIndexMap.isEmpty() || pcode == null) {
			return null;
		}
		for (PcodeOp op : pcode) {
			if (op.getOpcode() == PcodeOp.INT_ADD) {
				Varnode[] inputs = op.getInputs();
				Register reg = null;
				if (inputs[0].isConstant() && equals(inputs[0], scalar)) {
					reg = findRegister(inputs[1], regIndexMap);
				}
				else if (inputs[1].isConstant() && equals(inputs[1], scalar)) {
					reg = findRegister(inputs[0], regIndexMap);
				}
				if (reg != null) {
					return reg;
				}
			}
		}
		return null;
	}
Find a register which has a direct association with the specified scalar
via an INT_ADD p-code operation. Eligible registers are must be contained
within the regIndexMap.

@param scalar
@param regIndexMap registers appearing in operand representation
@param pcode operand p-code
@return associated register, or null if not found
Ghidra/Features/Base/src/main/java/ghidra/program/model/listing/CodeUnitFormat.java