// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_varzegetzx
static void mw_mirth_c99_zaC99Branch_varzegetzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, uint64_t in_Var_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5, struct mirth_c99_zaC99Value* *out_zaC99Value_6) {
	struct mirth_mirth_zaMirth* v7;
	struct mirth_c99_zaC99Branch* v8;
	struct std_maybe_Maybe_1 v9 = mw_mirth_c99_zaC99Branch_varzelookup(in_zaMirth_1, in_zaC99Branch_2, in_Var_3, &v7, &v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	VAL branch_zux1_11;
	VAL branch_zux2_12;
	switch ((v9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v13 = mtp_std_maybe_Maybe_1_Some(v9);
			branch_zux2_12 = v13;
			branch_zux1_11 = MK_mirth_c99_zaC99Branch(v8);
			branch_zaMirth_10 = v7;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v14;
			STRLIT(v14, "[c99] variable unexpectedly missing from environment", 52);
			mw_mirth_mirth_zaMirth_fatalzeerrorzx(v7, v14);
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	uint64_t v17;
	STR* v18;
	struct mirth_c99_C99ReprType v19;
	mtp_mirth_c99_C99Var_C99Var(V_mirth_c99_C99Var(branch_zux2_12), &v17, &v18, &v19);
	struct mirth_c99_zaC99Value* v20;
	mtw_mirth_c99_zaC99Value_zaC99Value(v19, v18, &v20);
	*out_zaC99Value_6 = v20;
	*out_zaC99Branch_5 = V_mirth_c99_zaC99Branch(branch_zux1_11);
	*out_zaMirth_4 = branch_zaMirth_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x38(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0x345d40
movl %eax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x10c(%rbp)
testl %eax, %eax
je 0x345b99
jmp 0x345b22
movl -0x10c(%rbp), %eax
subl $0x1, %eax
jne 0x345cb6
jmp 0x345b33
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x174a0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x4d7f1(%rip), %rax     # 0x393360
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x345ccf
jmp 0x345b9b
cmpq $0x0, 0x1053cc5(%rip)   # 0x1399868
jne 0x345bbd
leaq 0x28ba8(%rip), %rdi     # 0x36e754
movl $0x34, %esi
callq 0xb6c0
movq %rax, 0x1053cab(%rip)   # 0x1399868
jmp 0x345bbf
movq 0x1053ca2(%rip), %rax   # 0x1399868
movq %rax, -0xb0(%rbp)
leaq 0x4b584(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x345c94
movq 0x1053c6d(%rip), %rax   # 0x1399868
movq %rax, -0xc0(%rbp)
leaq 0x4b54f(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rax
cmpq $0x0, %rax
je 0x345c94
movq 0x1053c36(%rip), %rax   # 0x1399868
movq %rax, -0xd0(%rbp)
leaq 0x4b518(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x345c94
movq 0x1053c05(%rip), %rax   # 0x1399868
movq %rax, -0xe0(%rbp)
leaq 0x4b4e7(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x345c96
movq 0x1053bcb(%rip), %rax   # 0x1399868
movq %rax, -0xa0(%rbp)
movq -0x38(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x44a80
jmp 0x345ccf
leaq 0xe1c4(%rip), %rdi      # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x78(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
leaq -0x100(%rbp), %rcx
callq 0x345760
movq -0xf0(%rbp), %rdx
movl -0x100(%rbp), %edi
movq -0xf8(%rbp), %rsi
leaq -0x108(%rbp), %rcx
callq 0x28cac0
movq -0x108(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x68(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw (%rax,%rax)