// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaAB_elabzeatomzenamezx
static void mw_mirth_elab_zaAB_elabzeatomzenamezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, uint64_t in_Name_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_arrow_Arrow* *out_zaAB_5) {
	struct mirth_arrow_Arrow* v6;
	struct std_list_List_1 v7 = mw_mirth_elab_zaAB_abzectxzo(in_zaAB_2, &v6);
	struct mirth_mirth_zaMirth* v8;
	struct std_maybe_Maybe_1 v9 = mw_mirth_var_Ctx_lookup(in_zaMirth_1, in_Name_3, v7, &v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_arrow_Arrow* branch_zaAB_11;
	switch ((v9).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v12 = mtp_std_maybe_Maybe_1_Some(v9);
			struct mirth_mirth_zaMirth* v13;
			struct mirth_arrow_Arrow* v14;
			mw_mirth_elab_zaAB_elabzenozeargszx(v8, v6, &v13, &v14);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_arrow_Arrow* v16;
			mw_mirth_elab_zaAB_abzevarzx(v13, v14, V_mirth_var_Var(v12), &v15, &v16);
			branch_zaAB_11 = v16;
			branch_zaMirth_10 = v15;
		} break;
		case std_maybe_Maybe_1_None: {
			struct std_either_Either_2 v17 = mtw_std_either_Either_2_Left(MK_mirth_name_Name(in_Name_3));
			struct mirth_mirth_zaMirth* v18;
			struct mirth_arrow_Arrow* v19;
			mw_mirth_elab_zaAB_elabzeatomzeresolvezedefzx(v8, v6, v17, &v18, &v19);
			branch_zaAB_11 = v19;
			branch_zaMirth_10 = v18;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaAB_5 = branch_zaAB_11;
	*out_zaMirth_4 = branch_zaMirth_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xe0d50
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x40(%rbp), %edx
movq -0x38(%rbp), %rcx
leaq -0x48(%rbp), %r8
callq 0xb1ec0
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0xcc(%rbp)
testl %eax, %eax
je 0x10fa8b
jmp 0x10fa11
movl -0xcc(%rbp), %eax
subl $0x1, %eax
jne 0x10fb04
jmp 0x10fa22
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x174a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x48(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq -0x80(%rbp), %rdx
leaq -0x88(%rbp), %rcx
callq 0x111790
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq -0x78(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x1117f0
movq -0x98(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x10fb1d
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x281ceb(%rip), %rax    # 0x391788
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x73f50
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0x48(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0xa8(%rbp), %edx
movq -0xa0(%rbp), %rcx
leaq -0xc0(%rbp), %r8
leaq -0xc8(%rbp), %r9
callq 0x111880
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x10fb1d
leaq 0x244376(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x68(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax)