protected boolean getPatchBranchOp(Language language,
			Map<AddressSpace, SemisparseByteArray> result, PcodeOp op) {
		Address target = op.getInput(0).getAddress();
		if (target.getAddressSpace() != language.getDefaultSpace()) {
			return false;
		}
		Register pc = language.getProgramCounter();
		SemisparseByteArray array =
			result.computeIfAbsent(pc.getAddressSpace(), as -> new SemisparseByteArray());
		array.putData(pc.getOffset(),
			Utils.longToBytes(target.getOffset(), pc.getNumBytes(), language.isBigEndian()));
		return true;
	}
Generate multiple lines of Sleigh, all to set a single variable

@param language the target language
@param address the (start) address of the variable
@param data the bytes to write to the variable
@return the lines of Sleigh code
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/time/schedule/PatchStep.java