private Address getMemoryRegister(String name, long value) {
		Register reg = program.getRegister(name);
		if (reg != null && reg.getAddress().isMemoryAddress()) {
			Address a = reg.getAddress();
			if (value == 0 || value == a.getAddressableWordOffset()) {
				return a;
			}
		}
		return null;
	}
Find memory register with matching name (ignoring leading and trailing underscore chars).
@param elfSymbol ELF symbol
@return register address if found or null
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/ElfProgramBuilder.java