// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_varzelookup
static struct std_maybe_Maybe_1 mw_mirth_c99_zaC99Branch_varzelookup (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 std_list_List_1 v7 = in_zaC99Branch_2->menv;
	incref(MK_std_list_List_1(v7));
	struct std_maybe_Maybe_1 v8 = { .tag=std_maybe_Maybe_1_None };
	bool v9 = true;
	uint64_t v10 = in_Var_3;
	struct std_maybe_Maybe_1 v11 = v8;
	struct std_list_List_1 v12 = v7;
	bool v13 = v9;
	bool v14 = v9;
	while (v14) {
		uint64_t v15 = v10;
		struct std_maybe_Maybe_1 v16 = v11;
		struct std_list_List_1 v17 = v12;
		bool v18 = v13;
		struct std_list_List_1 v19;
		struct std_maybe_Maybe_1 v20 = mw_std_list_List_1_uncons(v17, &v19);
		uint64_t branch_Var_21;
		struct std_maybe_Maybe_1 branch_Maybe_22;
		struct std_list_List_1 branch_List_23;
		bool branch_Bool_24;
		switch ((v20).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v25 = mtp_std_maybe_Maybe_1_Some(v20);
				incref(v25);
				uint64_t v26 = V_mirth_c99_C99Var(v25)->mvarzevar;
				decref(MK_mirth_c99_C99Var(V_mirth_c99_C99Var(v25)));
				uint64_t v27 = v26;
				uint64_t v28 = v15;
				bool v29 = (v27 == v28);
				uint64_t branch_Var_30;
				struct std_maybe_Maybe_1 branch_Maybe_31;
				if (v29) {
					struct std_maybe_Maybe_1 v32 = mtw_std_maybe_Maybe_1_Some(v25);
					branch_Maybe_31 = v32;
					branch_Var_30 = v15;
				} else {
					decref(v25);
					struct std_maybe_Maybe_1 v33 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_31 = v33;
					branch_Var_30 = v15;
				}
				uint64_t branch_Var_34;
				struct std_maybe_Maybe_1 branch_Maybe_35;
				struct std_list_List_1 branch_List_36;
				switch ((branch_Maybe_31).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_36 = v19;
						branch_Maybe_35 = v16;
						branch_Var_34 = branch_Var_30;
					} break;
					default: {
						decref(MK_std_list_List_1(v19));
						decref(MK_std_maybe_Maybe_1(v16));
						struct std_list_List_1 v37 = { .tag=std_list_List_1_Nil };
						branch_List_36 = v37;
						branch_Maybe_35 = branch_Maybe_31;
						branch_Var_34 = branch_Var_30;
					} break;
				}
				bool v38 = true;
				branch_Bool_24 = v38;
				branch_List_23 = branch_List_36;
				branch_Maybe_22 = branch_Maybe_35;
				branch_Var_21 = branch_Var_34;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v39 = false;
				branch_Bool_24 = v39;
				branch_List_23 = v19;
				branch_Maybe_22 = v16;
				branch_Var_21 = v15;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v14 = branch_Bool_24;
		v13 = branch_Bool_24;
		v12 = branch_List_23;
		v11 = branch_Maybe_22;
		v10 = branch_Var_21;
	}
	decref(MK_std_list_List_1(v12));
	*out_zaC99Branch_5 = in_zaC99Branch_2;
	*out_zaMirth_4 = in_zaMirth_1;
	return v11;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x340, %rsp            # imm = 0x340
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x48(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x40(%rbp)
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x345e0e
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x345e0e
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x345e0e
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x12780
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x345e10
leaq -0x98(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x1, -0x99(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xba(%rbp)
testb $0x1, -0xba(%rbp)
je 0x3465f1
movq -0xa8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movups -0x10(%rbp), %xmm0
movaps %xmm0, -0xe0(%rbp)
movups -0xb8(%rbp), %xmm0
movaps %xmm0, -0xf0(%rbp)
movb -0xb9(%rbp), %al
andb $0x1, %al
movb %al, -0xf1(%rbp)
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x2c490
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movl -0x118(%rbp), %eax
movl %eax, -0x334(%rbp)
testl %eax, %eax
je 0x34651a
jmp 0x345efb
movl -0x334(%rbp), %eax
subl $0x1, %eax
jne 0x346577
jmp 0x345f0c
movl -0x118(%rbp), %edi
movq -0x110(%rbp), %rsi
callq 0x174a0
movq %rax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movq -0x150(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x345f7d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
cmpq $0x0, %rax
je 0x345f7d
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x345f7d
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x345f7f
movq -0x158(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq 0x4d44a(%rip), %rax     # 0x3933f0
orq $0x1, %rax
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3460a4
movq -0x158(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq 0x4d415(%rip), %rax     # 0x3933f0
orq $0x1, %rax
movq %rax, -0x178(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x180(%rbp), %rax
cmpq $0x0, %rax
je 0x3460a4
movq -0x158(%rbp), %rax
movq %rax, -0x190(%rbp)
leaq 0x4d3da(%rip), %rax     # 0x3933f0
orq $0x1, %rax
movq %rax, -0x188(%rbp)
movq -0x190(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3460a4
movq -0x158(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq 0x4d3a9(%rip), %rax     # 0x3933f0
orq $0x1, %rax
movq %rax, -0x198(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1a0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x3460a2
movq -0x158(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x4d36c(%rip), %rax     # 0x3933f0
orq $0x1, %rax
movq %rax, -0x1a8(%rbp)
movq -0x1b0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
callq 0x127c0
jmp 0x3460a4
jmp 0x3460a6
movq -0x160(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1b8(%rbp), %rax
cmpq -0x1c0(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x1c1(%rbp)
testb $0x1, -0x1c1(%rbp)
je 0x346133
movq -0x158(%rbp), %rdi
movq -0x150(%rbp), %rsi
callq 0xca10
movl %eax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x1d0(%rbp)
jmp 0x3461df
jmp 0x346135
movq -0x150(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x3461a0
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rax
cmpq $0x0, %rax
je 0x3461a0
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3461a0
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x34619e
movq -0x158(%rbp), %rdi
movq -0x150(%rbp), %rsi
callq 0x127c0
jmp 0x3461a0
jmp 0x3461a2
leaq -0x200(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x200(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movl -0x1e0(%rbp), %eax
testl %eax, %eax
jne 0x346236
jmp 0x3461eb
movq -0x108(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x208(%rbp)
jmp 0x3464bd
jmp 0x346238
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
callq 0x12780
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movq -0x230(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x34634b
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
callq 0x12780
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x248(%rbp), %rax
cmpq $0x0, %rax
je 0x34634b
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
callq 0x12780
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movq -0x258(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x34634b
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
callq 0x12780
movq %rax, -0x268(%rbp)
movq %rdx, -0x260(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x268(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x346349
movl -0x108(%rbp), %edi
movq -0x100(%rbp), %rsi
callq 0x12780
movq %rax, -0x278(%rbp)
movq %rdx, -0x270(%rbp)
movq -0x278(%rbp), %rdi
movq -0x270(%rbp), %rsi
callq 0x127c0
jmp 0x34634b
jmp 0x34634d
jmp 0x34634f
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x288(%rbp)
movq %rdx, -0x280(%rbp)
movq -0x280(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x346462
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x298(%rbp), %rax
cmpq $0x0, %rax
je 0x346462
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movq -0x2a8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x346462
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2b8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x346460
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rdi
movq -0x2c0(%rbp), %rsi
callq 0x127c0
jmp 0x346462
jmp 0x346464
leaq -0x2d8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x2d8(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x2d0(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x208(%rbp)
movb $0x1, -0x2d9(%rbp)
movb -0x2d9(%rbp), %al
andb $0x1, %al
movb %al, -0x141(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x120(%rbp)
jmp 0x346590
movb $0x0, -0x2da(%rbp)
movb -0x2da(%rbp), %al
andb $0x1, %al
movb %al, -0x141(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x120(%rbp)
jmp 0x346590
leaq 0xd903(%rip), %rdi      # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x141(%rbp), %al
andb $0x1, %al
movb %al, -0xba(%rbp)
movb -0x141(%rbp), %al
andb $0x1, %al
movb %al, -0xb9(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x345e7d
jmp 0x3465f3
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x2f0(%rbp)
movq %rdx, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x346706
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x300(%rbp)
movq %rdx, -0x2f8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x300(%rbp), %rax
cmpq $0x0, %rax
je 0x346706
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x310(%rbp)
movq %rdx, -0x308(%rbp)
movq -0x310(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x346706
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x320(%rbp)
movq %rdx, -0x318(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x320(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x346704
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x330(%rbp)
movq %rdx, -0x328(%rbp)
movq -0x330(%rbp), %rdi
movq -0x328(%rbp), %rsi
callq 0x127c0
jmp 0x346706
jmp 0x346708
movq -0x20(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x340, %rsp            # imm = 0x340
popq %rbp
retq
nop