// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_var_Ctx_lookup
static struct std_maybe_Maybe_1 mw_mirth_var_Ctx_lookup (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Name_2, struct std_list_List_1 in_Ctx_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct std_list_List_1 v6 = mw_mirth_var_Ctx_zgList(in_Ctx_3);
	struct std_list_List_1 v7 = mw_std_list_List_1_reverse(v6);
	struct std_maybe_Maybe_1 v8 = { .tag=std_maybe_Maybe_1_None };
	bool v9 = true;
	struct mirth_mirth_zaMirth* r10 = in_zaMirth_1;
	uint64_t v11 = in_Name_2;
	struct std_maybe_Maybe_1 v12 = v8;
	struct std_list_List_1 v13 = v7;
	bool v14 = v9;
	bool v15 = v9;
	while (v15) {
		struct mirth_mirth_zaMirth* r16 = r10;
		uint64_t v17 = v11;
		struct std_maybe_Maybe_1 v18 = v12;
		struct std_list_List_1 v19 = v13;
		bool v20 = v14;
		struct std_list_List_1 v21;
		struct std_maybe_Maybe_1 v22 = mw_std_list_List_1_uncons(v19, &v21);
		struct mirth_mirth_zaMirth* branch_zaMirth_23;
		uint64_t branch_Name_24;
		struct std_maybe_Maybe_1 branch_Maybe_25;
		struct std_list_List_1 branch_List_26;
		bool branch_Bool_27;
		switch ((v22).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v28 = mtp_std_maybe_Maybe_1_Some(v22);
				incref(v28);
				struct mirth_mirth_zaMirth* v29;
				uint64_t v30 = mw_mirth_var_Var_name(r16, V_mirth_var_Var(v28), &v29);
				uint64_t v31 = v30;
				uint64_t v32 = v17;
				bool v33 = (v31 == v32);
				struct mirth_mirth_zaMirth* branch_zaMirth_34;
				uint64_t branch_Name_35;
				struct std_maybe_Maybe_1 branch_Maybe_36;
				if (v33) {
					struct std_maybe_Maybe_1 v37 = mtw_std_maybe_Maybe_1_Some(v28);
					branch_Maybe_36 = v37;
					branch_Name_35 = v17;
					branch_zaMirth_34 = v29;
				} else {
					decref(v28);
					struct std_maybe_Maybe_1 v38 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_36 = v38;
					branch_Name_35 = v17;
					branch_zaMirth_34 = v29;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_39;
				uint64_t branch_Name_40;
				struct std_maybe_Maybe_1 branch_Maybe_41;
				struct std_list_List_1 branch_List_42;
				switch ((branch_Maybe_36).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_42 = v21;
						branch_Maybe_41 = v18;
						branch_Name_40 = branch_Name_35;
						branch_zaMirth_39 = branch_zaMirth_34;
					} break;
					default: {
						decref(MK_std_list_List_1(v21));
						decref(MK_std_maybe_Maybe_1(v18));
						struct std_list_List_1 v43 = { .tag=std_list_List_1_Nil };
						branch_List_42 = v43;
						branch_Maybe_41 = branch_Maybe_36;
						branch_Name_40 = branch_Name_35;
						branch_zaMirth_39 = branch_zaMirth_34;
					} break;
				}
				bool v44 = true;
				branch_Bool_27 = v44;
				branch_List_26 = branch_List_42;
				branch_Maybe_25 = branch_Maybe_41;
				branch_Name_24 = branch_Name_40;
				branch_zaMirth_23 = branch_zaMirth_39;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v45 = false;
				branch_Bool_27 = v45;
				branch_List_26 = v21;
				branch_Maybe_25 = v18;
				branch_Name_24 = v17;
				branch_zaMirth_23 = r16;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v15 = branch_Bool_27;
		v14 = branch_Bool_27;
		v13 = branch_List_26;
		v12 = branch_Maybe_25;
		v11 = branch_Name_24;
		r10 = branch_zaMirth_23;
	}
	decref(MK_std_list_List_1(v13));
	*out_zaMirth_4 = r10;
	return v12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movl %edx, -0x20(%rbp)
movq %rcx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0xb2950
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x122b0
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x1, -0x69(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x92(%rbp)
testb $0x1, -0x92(%rbp)
je 0xb2639
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xa8(%rbp)
movups -0x10(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movups -0x90(%rbp), %xmm0
movaps %xmm0, -0xd0(%rbp)
movb -0x91(%rbp), %al
andb $0x1, %al
movb %al, -0xd1(%rbp)
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x2c490
movl %eax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movl -0xf8(%rbp), %eax
movl %eax, -0x2e4(%rbp)
testl %eax, %eax
je 0xb254c
jmp 0xb1fea
movl -0x2e4(%rbp), %eax
subl $0x1, %eax
jne 0xb25b7
jmp 0xb1ffb
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x174a0
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x138(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb206c
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
cmpq $0x0, %rax
je 0xb206c
movq -0x140(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xb206c
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xb206e
movq -0xa0(%rbp), %rdi
movq -0x140(%rbp), %rsi
leaq -0x148(%rbp), %rdx
callq 0xb2970
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rax
cmpq -0x160(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x161(%rbp)
testb $0x1, -0x161(%rbp)
je 0xb212a
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0xca10
movl %eax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x170(%rbp)
jmp 0xb21e4
jmp 0xb212c
movq -0x138(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb2197
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
cmpq $0x0, %rax
je 0xb2197
movq -0x140(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xb2197
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xb2195
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x127c0
jmp 0xb2197
jmp 0xb2199
leaq -0x1a8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x1a8(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x170(%rbp)
movl -0x188(%rbp), %eax
testl %eax, %eax
jne 0xb2249
jmp 0xb21f0
movq -0xe8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x1b0(%rbp)
jmp 0xb24de
jmp 0xb224b
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb235e
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1f8(%rbp), %rax
cmpq $0x0, %rax
je 0xb235e
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x208(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xb235e
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x218(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xb235c
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x228(%rbp), %rdi
movq -0x220(%rbp), %rsi
callq 0x127c0
jmp 0xb235e
jmp 0xb2360
jmp 0xb2362
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movq -0x230(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb2475
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x248(%rbp), %rax
cmpq $0x0, %rax
je 0xb2475
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movq -0x258(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xb2475
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
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 0xb2473
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x278(%rbp)
movq %rdx, -0x270(%rbp)
movq -0x278(%rbp), %rdi
movq -0x270(%rbp), %rsi
callq 0x127c0
jmp 0xb2475
jmp 0xb2477
leaq -0x288(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x288(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movb $0x1, -0x289(%rbp)
movb -0x289(%rbp), %al
andb $0x1, %al
movb %al, -0x129(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0xb25d0
movb $0x0, -0x28a(%rbp)
movb -0x28a(%rbp), %al
andb $0x1, %al
movb %al, -0x129(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0xb25d0
leaq 0x2a18c3(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x129(%rbp), %al
andb $0x1, %al
movb %al, -0x92(%rbp)
movb -0x129(%rbp), %al
andb $0x1, %al
movb %al, -0x91(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0xb1f64
jmp 0xb263b
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x12780
movq %rax, -0x2a0(%rbp)
movq %rdx, -0x298(%rbp)
movq -0x298(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb274e
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x12780
movq %rax, -0x2b0(%rbp)
movq %rdx, -0x2a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b0(%rbp), %rax
cmpq $0x0, %rax
je 0xb274e
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x12780
movq %rax, -0x2c0(%rbp)
movq %rdx, -0x2b8(%rbp)
movq -0x2c0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xb274e
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x12780
movq %rax, -0x2d0(%rbp)
movq %rdx, -0x2c8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2d0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xb274c
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x12780
movq %rax, -0x2e0(%rbp)
movq %rdx, -0x2d8(%rbp)
movq -0x2e0(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0x127c0
jmp 0xb274e
jmp 0xb2750
movq -0x78(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopl (%rax,%rax)