// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_map_Map_2_lookup_sp3
static struct std_maybe_Maybe_1 mw_std_map_Map_2_lookup_sp3 (uint64_t in_Var_1, struct std_list_List_1 in_Map_2) {
	struct std_maybe_Maybe_1 v4 = { .tag=std_maybe_Maybe_1_None };
	bool v5 = true;
	uint64_t v6 = in_Var_1;
	struct std_maybe_Maybe_1 v7 = v4;
	struct std_list_List_1 v8 = in_Map_2;
	bool v9 = v5;
	bool v10 = v5;
	while (v10) {
		uint64_t v11 = v6;
		struct std_maybe_Maybe_1 v12 = v7;
		struct std_list_List_1 v13 = v8;
		bool v14 = v9;
		struct std_list_List_1 v15;
		struct std_maybe_Maybe_1 v16 = mw_std_list_List_1_uncons(v13, &v15);
		uint64_t branch_Var_17;
		struct std_maybe_Maybe_1 branch_Maybe_18;
		struct std_list_List_1 branch_List_19;
		bool branch_Bool_20;
		switch ((v16).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v21 = mtp_std_maybe_Maybe_1_Some(v16);
				incref(v21);
				VAL v22 = V_std_map_KeyValuePair_2(v21)->mkey;
				incref(v22);
				decref(MK_std_map_KeyValuePair_2(V_std_map_KeyValuePair_2(v21)));
				uint64_t v23 = V_mirth_var_Var(v22);
				uint64_t v24 = v11;
				bool v25 = (v23 == v24);
				uint64_t branch_Var_26;
				struct std_maybe_Maybe_1 branch_Maybe_27;
				if (v25) {
					struct std_maybe_Maybe_1 v28 = mtw_std_maybe_Maybe_1_Some(v21);
					branch_Maybe_27 = v28;
					branch_Var_26 = v11;
				} else {
					decref(v21);
					struct std_maybe_Maybe_1 v29 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_27 = v29;
					branch_Var_26 = v11;
				}
				uint64_t branch_Var_30;
				struct std_maybe_Maybe_1 branch_Maybe_31;
				struct std_list_List_1 branch_List_32;
				switch ((branch_Maybe_27).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_32 = v15;
						branch_Maybe_31 = v12;
						branch_Var_30 = branch_Var_26;
					} break;
					default: {
						decref(MK_std_list_List_1(v15));
						decref(MK_std_maybe_Maybe_1(v12));
						struct std_list_List_1 v33 = { .tag=std_list_List_1_Nil };
						branch_List_32 = v33;
						branch_Maybe_31 = branch_Maybe_27;
						branch_Var_30 = branch_Var_26;
					} break;
				}
				bool v34 = true;
				branch_Bool_20 = v34;
				branch_List_19 = branch_List_32;
				branch_Maybe_18 = branch_Maybe_31;
				branch_Var_17 = branch_Var_30;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v35 = false;
				branch_Bool_20 = v35;
				branch_List_19 = v15;
				branch_Maybe_18 = v12;
				branch_Var_17 = v11;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v10 = branch_Bool_20;
		v9 = branch_Bool_20;
		v8 = branch_List_19;
		v7 = branch_Maybe_18;
		v6 = branch_Var_17;
	}
	decref(MK_std_list_List_1(v8));
	struct std_maybe_Maybe_1 v36 = mw_std_maybe_Maybe_1_map_1_sp18(v7);
	return v36;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x1, -0x39(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movb %al, -0x69(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movb %al, -0x6a(%rbp)
testb $0x1, -0x6a(%rbp)
je 0xdc76c
movq -0x48(%rbp), %rax
movq %rax, -0x78(%rbp)
movups -0x58(%rbp), %xmm0
movaps %xmm0, -0x90(%rbp)
movups -0x68(%rbp), %xmm0
movaps %xmm0, -0xa0(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0xa1(%rbp)
movl -0xa0(%rbp), %edi
movq -0x98(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0x2c490
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movl -0xc8(%rbp), %eax
movl %eax, -0x2ec(%rbp)
testl %eax, %eax
je 0xdc6a7
jmp 0xdc031
movl -0x2ec(%rbp), %eax
subl $0x1, %eax
jne 0xdc701
jmp 0xdc042
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x174a0
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x100(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xdc0b3
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
cmpq $0x0, %rax
je 0xdc0b3
movq -0x108(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xdc0b3
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xdc0b5
movq -0x108(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x118(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xdc123
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x118(%rbp), %rax
cmpq $0x0, %rax
je 0xdc123
movq -0x118(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xdc123
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x118(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xdc125
jmp 0xdc127
movq -0x108(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq 0x2b6414(%rip), %rax    # 0x392550
orq $0x1, %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xdc23a
movq -0x108(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq 0x2b63df(%rip), %rax    # 0x392550
orq $0x1, %rax
movq %rax, -0x130(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
cmpq $0x0, %rax
je 0xdc23a
movq -0x108(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x2b63a4(%rip), %rax    # 0x392550
orq $0x1, %rax
movq %rax, -0x140(%rbp)
movq -0x148(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xdc23a
movq -0x108(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x2b6373(%rip), %rax    # 0x392550
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x158(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xdc238
movq -0x108(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq 0x2b6336(%rip), %rax    # 0x392550
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movq -0x168(%rbp), %rdi
movq -0x160(%rbp), %rsi
callq 0x127c0
jmp 0xdc23a
jmp 0xdc23c
movq -0x118(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rax
cmpq -0x178(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x179(%rbp)
testb $0x1, -0x179(%rbp)
je 0xdc2c3
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xca10
movl %eax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x188(%rbp)
jmp 0xdc36c
jmp 0xdc2c5
movq -0x100(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xdc330
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
cmpq $0x0, %rax
je 0xdc330
movq -0x108(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xdc330
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xdc32e
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x127c0
jmp 0xdc330
jmp 0xdc332
leaq -0x1b8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x1b8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x188(%rbp)
movl -0x198(%rbp), %eax
testl %eax, %eax
jne 0xdc3c3
jmp 0xdc378
movq -0xb8(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x1c0(%rbp)
jmp 0xdc64a
jmp 0xdc3c5
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xdc4d8
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x200(%rbp)
movq %rdx, -0x1f8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x200(%rbp), %rax
cmpq $0x0, %rax
je 0xdc4d8
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movq -0x210(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xdc4d8
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x220(%rbp)
movq %rdx, -0x218(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x220(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xdc4d6
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
callq 0x12780
movq %rax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x230(%rbp), %rdi
movq -0x228(%rbp), %rsi
callq 0x127c0
jmp 0xdc4d8
jmp 0xdc4da
jmp 0xdc4dc
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x133a0
movq %rax, -0x240(%rbp)
movq %rdx, -0x238(%rbp)
movq -0x238(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xdc5ef
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x133a0
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x250(%rbp), %rax
cmpq $0x0, %rax
je 0xdc5ef
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x133a0
movq %rax, -0x260(%rbp)
movq %rdx, -0x258(%rbp)
movq -0x260(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xdc5ef
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x133a0
movq %rax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x270(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xdc5ed
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x133a0
movq %rax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movq -0x280(%rbp), %rdi
movq -0x278(%rbp), %rsi
callq 0x127c0
jmp 0xdc5ef
jmp 0xdc5f1
leaq -0x290(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x290(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movb $0x1, -0x291(%rbp)
movb -0x291(%rbp), %al
andb $0x1, %al
movb %al, -0xf1(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0xdc71a
movb $0x0, -0x292(%rbp)
movb -0x292(%rbp), %al
andb $0x1, %al
movb %al, -0xf1(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0xdc71a
leaq 0x277779(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xf1(%rbp), %al
andb $0x1, %al
movb %al, -0x6a(%rbp)
movb -0xf1(%rbp), %al
andb $0x1, %al
movb %al, -0x69(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xdbfc2
jmp 0xdc76e
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xdc863
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b8(%rbp), %rax
cmpq $0x0, %rax
je 0xdc863
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xdc863
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2d8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xdc861
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x12780
movq %rax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movq -0x2e8(%rbp), %rdi
movq -0x2e0(%rbp), %rsi
callq 0x127c0
jmp 0xdc863
jmp 0xdc865
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0xdc890
movl %eax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopl (%rax,%rax)