private boolean matchOpObject(Instruction instr, int opIndex, Varnode loc) {
		Address addr = loc.getAddress();
		for (Object obj : instr.getDefaultOperandRepresentationList(opIndex)) {
			if (obj instanceof Address) {
				if (addr.equals(obj)) {
					return true;
				}
			}
			else if (obj instanceof Register) {
				Register reg = (Register) obj;
				if (addr.equals(reg.getAddress())) {
					return true;
				}
			}
		}
		return false;
	}
Returns the set of registers which were modified
Ghidra/Features/Base/src/main/java/ghidra/util/state/ResultsState.java