static void generateExitCode(JitCodeGenerator gen, JitBranchIndOp op, RegisterValue ctx,
			JitBlock block, MethodVisitor rv) {
		gen.generatePassageExit(block, () -> {
			// [...]
			JitType targetType = gen.generateValReadCode(op.target(), op.targetType());
			// [...,target:?]
			TypeConversions.generateToLong(targetType, LongJitType.I8, rv);
			// [...,target:LONG]
		}, ctx, rv);

		rv.visitInsn(ACONST_NULL);
		rv.visitInsn(ARETURN);
	}
Generate code to retire the variables, write the dynamic pc value, and return from the
passage

@param gen the code generator
@param op the op
@param ctx the context to write at exit, or null to not write the context
@param block the block containing the op
@param rv the run method visitor
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/jit/gen/op/BranchIndOpGen.java