private boolean hasRegisterWriteReference(Instruction instr, Register reg) {
		for (Reference ref : instr.getReferencesFrom()) {
			if (ref.getReferenceType().isWrite() && ref.getToAddress().equals(reg.getAddress())) {
				return true;
			}
		}
		return false;
	}
Perform register markup with explicit and implied register variable
reference.

@param inst instruction
@param opIndex
@param func function containing instruction
@param primaryRef primary reference or null
@param referencedVariable option variable referenced by primaryRef
@param regIndexMap register index map
@param representationList
@return true if primaryRef was included in register mark-up
Ghidra/Features/Base/src/main/java/ghidra/program/model/listing/CodeUnitFormat.java