// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %eax
movq %rdi, -0x50(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq $0x0, -0x38(%rbp)
leaq -0x48(%rbp), %r15
movq $0x0, -0x30(%rbp)
movl %eax, %edi
movq %rdx, %rsi
movq %r15, %rdx
callq 0x115ef
testl %eax, %eax
je 0x43488
cmpl $0x1, %eax
jne 0x435b5
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r13
movq %rdx, %rbx
movq %rax, %r14
testb $0x1, %bl
je 0x43429
movq %r13, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x43429
incl (%rax)
movq 0x8(%r14), %r15
testb $0x1, 0x10(%r14)
je 0x4344a
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x4344a
incl (%rax)
andq %r12, %r13
sete %al
testb $0x3, %r14b
setne %r12b
orb %al, %r12b
jne 0x43472
decl (%r13)
jne 0x43472
movq %r14, %rdi
leaq 0xd3054(%rip), %rsi     # 0x1164c1
callq 0xd4e3
cmpq -0x50(%rbp), %r15
jne 0x43497
movq %r14, %rdi
movq %rbx, %rsi
callq 0x95f6
movq %rdx, %rbx
jmp 0x434a4
movl -0x48(%rbp), %eax
movq -0x40(%rbp), %rdx
xorl %r14d, %r14d
jmp 0x43566
testb $0x1, %bl
sete %al
orb %r12b, %al
je 0x434b0
xorl %ebx, %ebx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
jmp 0x434cd
decl (%r13)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
jne 0x434cb
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd4e3
xorl %ebx, %ebx
movl -0x48(%rbp), %eax
cmpq -0x50(%rbp), %r15
jne 0x4355b
movq -0x40(%rbp), %rcx
movq %rcx, %rdx
andq %r12, %rdx
sete %sil
testb $0x3, %cl
setne %dil
orb %sil, %dil
leaq -0x48(%rbp), %r15
jne 0x43512
decl (%rdx)
jne 0x43512
shlq $0x30, %rax
orq %rcx, %rax
movq %rax, %rdi
leaq 0xd1d6c(%rip), %rsi     # 0x115279
callq 0xd4e3
movq -0x38(%rbp), %rsi
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
movb $0x1, %r14b
orb %cl, %dl
jne 0x43548
decl (%rax)
jne 0x43548
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xd1d7e(%rip), %rsi     # 0x1152c1
callq 0xd4e3
xorl %eax, %eax
movl $0x1, %ecx
movq %rcx, -0x30(%rbp)
movq %rbx, -0x38(%rbp)
xorl %edx, %edx
jmp 0x43566
movb $0x1, %r14b
movq -0x40(%rbp), %rdx
leaq -0x48(%rbp), %r15
testb %r14b, %r14b
jne 0x433df
andq %rdx, %r12
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x4359d
decl (%r12)
jne 0x4359d
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd1ce4(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x435e5
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xa117f(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xa1184(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5