// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaResolveDef_Beginzx
static void mw_mirth_elab_zaResolveDef_Beginzx (STR* in_Str_1, uint64_t in_Token_2, struct std_either_Either_2 in_Either_3, bool in_Bool_4, bool in_Bool_5, struct mirth_mirth_zaMirth* in_zaMirth_6, struct mirth_mirth_zaMirth* *out_zaMirth_7, struct mirth_elab_zaResolveDef* *out_zaResolveDef_8) {
	STR* branch_Str_9;
	uint64_t branch_Token_10;
	bool branch_Bool_11;
	struct mirth_mirth_zaMirth* branch_zaMirth_12;
	bool branch_Bool_13;
	struct std_either_Either_2 branch_Either_14;
	uint64_t branch_Name_15;
	if (in_Bool_4) {
		incref(MK_std_either_Either_2(in_Either_3));
		struct std_maybe_Maybe_1 v16 = mw_mirth_token_namezfdnamezepenultimatezenamezy(in_Either_3);
		struct mirth_mirth_zaMirth* branch_zaMirth_17;
		uint64_t branch_Token_18;
		VAL branch_zux1_19;
		switch ((v16).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v20 = mtp_std_maybe_Maybe_1_Some(v16);
				branch_zux1_19 = v20;
				branch_Token_18 = in_Token_2;
				branch_zaMirth_17 = in_zaMirth_6;
			} break;
			case std_maybe_Maybe_1_None: {
				STR* v21;
				STRLIT(v21, "Expected a namespace.", 21);
				mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(in_zaMirth_6, in_Token_2, v21);
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		branch_Name_15 = V_mirth_name_Name(branch_zux1_19);
		branch_Either_14 = in_Either_3;
		branch_Bool_13 = in_Bool_4;
		branch_zaMirth_12 = branch_zaMirth_17;
		branch_Bool_11 = in_Bool_5;
		branch_Token_10 = branch_Token_18;
		branch_Str_9 = in_Str_1;
	} else {
		incref(MK_std_either_Either_2(in_Either_3));
		uint64_t v24 = mw_mirth_token_namezfdnamezelastzename(in_Either_3);
		branch_Name_15 = v24;
		branch_Either_14 = in_Either_3;
		branch_Bool_13 = in_Bool_4;
		branch_zaMirth_12 = in_zaMirth_6;
		branch_Bool_11 = in_Bool_5;
		branch_Token_10 = in_Token_2;
		branch_Str_9 = in_Str_1;
	}
	struct mirth_mirth_zaMirth* v25;
	struct std_list_List_1 v26 = mw_mirth_name_Name_defs(branch_zaMirth_12, branch_Name_15, &v25);
	struct std_list_List_1 v27 = { .tag=std_list_List_1_Nil };
	struct mirth_elab_zaResolveDef* v28;
	mtw_mirth_elab_zaResolveDef_zaResolveDef(branch_Str_9, branch_Token_10, branch_Either_14, v26, v27, branch_Bool_13, branch_Bool_11, &v28);
	*out_zaResolveDef_8 = v28;
	*out_zaMirth_7 = v25;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1e0, %rsp            # imm = 0x1E0
movl %r8d, -0x1c4(%rbp)
movq %rcx, %rax
movl -0x1c4(%rbp), %ecx
movq %rax, -0x1c0(%rbp)
movl %edx, %r8d
movq -0x1c0(%rbp), %rdx
movb %r9b, %al
movq 0x20(%rbp), %r9
movq 0x18(%rbp), %r9
movq 0x10(%rbp), %r9
movl %r8d, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
andb $0x1, %cl
movb %cl, -0x31(%rbp)
andb $0x1, %al
movb %al, -0x32(%rbp)
testb $0x1, -0x31(%rbp)
je 0x7d1a9
jmp 0x7ced5
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x7cf8c
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
cmpq $0x0, %rax
je 0x7cf8c
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x7cf8c
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x7cf8e
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x84ca0
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movl -0xc8(%rbp), %eax
movl %eax, -0x1c8(%rbp)
testl %eax, %eax
je 0x7d021
jmp 0x7cfb9
movl -0x1c8(%rbp), %eax
subl $0x1, %eax
jne 0x7d142
jmp 0x7cfca
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x174a0
movq %rax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq 0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x7d15b
jmp 0x7d023
cmpq $0x0, 0x1318525(%rip)   # 0x1395550
jne 0x7d045
leaq 0x2daae7(%rip), %rdi    # 0x357b1b
movl $0x15, %esi
callq 0xb6c0
movq %rax, 0x131850b(%rip)   # 0x1395550
jmp 0x7d047
movq 0x1318502(%rip), %rax   # 0x1395550
movq %rax, -0x110(%rbp)
leaq 0x3140fc(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x7d11c
movq 0x13184cd(%rip), %rax   # 0x1395550
movq %rax, -0x120(%rbp)
leaq 0x3140c7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x7d11c
movq 0x1318496(%rip), %rax   # 0x1395550
movq %rax, -0x130(%rbp)
leaq 0x314090(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x7d11c
movq 0x1318465(%rip), %rax   # 0x1395550
movq %rax, -0x140(%rbp)
leaq 0x31405f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x7d11e
movq 0x131842b(%rip), %rax   # 0x1395550
movq %rax, -0x100(%rbp)
movq 0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x100(%rbp), %rdx
callq 0x76b70
jmp 0x7d15b
leaq 0x2d6d38(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0xe8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x59(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x58(%rbp)
movb -0x32(%rbp), %al
andb $0x1, %al
movb %al, -0x49(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x7d2c0
jmp 0x7d1ab
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movq -0x148(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x7d268
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x160(%rbp), %rax
cmpq $0x0, %rax
je 0x7d268
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movq -0x170(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x7d268
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x7bae0
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x180(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x7d26a
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x84dc0
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x59(%rbp)
movq 0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movb -0x32(%rbp), %al
andb $0x1, %al
movb %al, -0x49(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x58(%rbp), %rdi
movq -0x78(%rbp), %rsi
leaq -0x190(%rbp), %rdx
callq 0x44ed0
movl %eax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
leaq -0x1b0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
movb -0x59(%rbp), %r11b
movb -0x49(%rbp), %r10b
movl -0x70(%rbp), %edx
movq -0x68(%rbp), %rcx
movl -0x1a0(%rbp), %r8d
movq -0x198(%rbp), %r9
leaq -0x1b0(%rbp), %rbx
leaq -0x1b8(%rbp), %rax
andb $0x1, %r11b
andb $0x1, %r10b
movq (%rbx), %r14
movq %r14, (%rsp)
movq 0x8(%rbx), %rbx
movq %rbx, 0x8(%rsp)
movzbl %r11b, %r11d
movl %r11d, 0x10(%rsp)
movzbl %r10b, %r10d
movl %r10d, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x84e60
movq -0x1b8(%rbp), %rcx
movq 0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x190(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbx
popq %r14
popq %rbp
retq
nopw %cs:(%rax,%rax)