// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_elabzedefzeqname
static struct mirth_name_QName* mw_mirth_elab_elabzedefzeqname (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_list_List_1 v6 = mw_mirth_token_Token_args(in_zaMirth_1, in_Token_2, &v5);
	incref(MK_std_list_List_1(v6));
	struct std_maybe_Maybe_1 v7 = { .tag=std_maybe_Maybe_1_None };
	bool v8 = true;
	struct mirth_mirth_zaMirth* r9 = v5;
	struct std_maybe_Maybe_1 v10 = v7;
	struct std_list_List_1 v11 = v6;
	bool v12 = v8;
	bool v13 = v8;
	while (v13) {
		struct mirth_mirth_zaMirth* r14 = r9;
		struct std_maybe_Maybe_1 v15 = v10;
		struct std_list_List_1 v16 = v11;
		bool v17 = v12;
		struct std_list_List_1 v18;
		struct std_maybe_Maybe_1 v19 = mw_std_list_List_1_uncons(v16, &v18);
		struct mirth_mirth_zaMirth* branch_zaMirth_20;
		struct std_maybe_Maybe_1 branch_Maybe_21;
		struct std_list_List_1 branch_List_22;
		bool branch_Bool_23;
		switch ((v19).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v24 = mtp_std_maybe_Maybe_1_Some(v19);
				incref(v24);
				struct mirth_mirth_zaMirth* v25;
				bool v26 = mw_mirth_token_Token_iszedefaultzeparamzy(r14, V_mirth_token_Token(v24), &v25);
				struct mirth_mirth_zaMirth* branch_zaMirth_27;
				struct std_maybe_Maybe_1 branch_Maybe_28;
				if (v26) {
					struct std_maybe_Maybe_1 v29 = mtw_std_maybe_Maybe_1_Some(v24);
					branch_Maybe_28 = v29;
					branch_zaMirth_27 = v25;
				} else {
					decref(v24);
					struct std_maybe_Maybe_1 v30 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_28 = v30;
					branch_zaMirth_27 = v25;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_31;
				struct std_maybe_Maybe_1 branch_Maybe_32;
				struct std_list_List_1 branch_List_33;
				switch ((branch_Maybe_28).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_33 = v18;
						branch_Maybe_32 = v15;
						branch_zaMirth_31 = branch_zaMirth_27;
					} break;
					default: {
						decref(MK_std_list_List_1(v18));
						decref(MK_std_maybe_Maybe_1(v15));
						struct std_list_List_1 v34 = { .tag=std_list_List_1_Nil };
						branch_List_33 = v34;
						branch_Maybe_32 = branch_Maybe_28;
						branch_zaMirth_31 = branch_zaMirth_27;
					} break;
				}
				bool v35 = true;
				branch_Bool_23 = v35;
				branch_List_22 = branch_List_33;
				branch_Maybe_21 = branch_Maybe_32;
				branch_zaMirth_20 = branch_zaMirth_31;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v36 = false;
				branch_Bool_23 = v36;
				branch_List_22 = v18;
				branch_Maybe_21 = v15;
				branch_zaMirth_20 = r14;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v13 = branch_Bool_23;
		v12 = branch_Bool_23;
		v11 = branch_List_22;
		v10 = branch_Maybe_21;
		r9 = branch_zaMirth_20;
	}
	decref(MK_std_list_List_1(v11));
	int64_t v37 = (v10).tag;
	decref(MK_std_maybe_Maybe_1(v10));
	INT v38 = WRAP_I63(0LL);
	INT v39 = v38;
	INT v40 = i64_to_int(v37);
	bool v41 = int_eq(v40, v39);
	bool v42 = !v41;
	uint64_t branch_Token_43;
	struct mirth_mirth_zaMirth* branch_zaMirth_44;
	VAL branch__45;
	if (v42) {
		decref(MK_std_list_List_1(v6));
		INT v46 = WRAP_I63(-1LL);
		branch__45 = MKINT(v46);
		branch_zaMirth_44 = r9;
		branch_Token_43 = in_Token_2;
	} else {
		INT v47 = mw_std_list_List_1_len(v6);
		INT v48 = v47;
		branch__45 = MKINT(v48);
		branch_zaMirth_44 = r9;
		branch_Token_43 = in_Token_2;
	}
	struct mirth_mirth_zaMirth* v49;
	struct std_maybe_Maybe_1 v50 = mw_mirth_token_Token_namezfdnamezy(branch_zaMirth_44, branch_Token_43, &v49);
	struct mirth_mirth_zaMirth* branch_zaMirth_51;
	uint64_t branch_Token_52;
	VAL branch_zux1_53;
	switch ((v50).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v54 = mtp_std_maybe_Maybe_1_Some(v50);
			branch_zux1_53 = v54;
			branch_Token_52 = branch_Token_43;
			branch_zaMirth_51 = v49;
		} break;
		case std_maybe_Maybe_1_None: {
			STR* v55;
			STRLIT(v55, "expected name", 13);
			mw_mirth_mirth_zaMirth_emitzefatalzeerrorzx(v49, branch_Token_43, v55);
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* branch_zaMirth_59;
	struct mirth_name_QName* branch_QName_60;
	switch ((V_std_either_Either_2(branch_zux1_53)).tag) {
		case std_either_Either_2_Left: {
			VAL v61 = mtp_std_either_Either_2_Left(V_std_either_Either_2(branch_zux1_53));
			struct mirth_mirth_zaMirth* v62;
			struct mirth_name_Namespace v63 = mw_mirth_elab_definingzenamespacezeorzeerror(branch_zaMirth_51, branch_Token_52, &v62);
			struct mirth_name_QName* v64 = mtw_mirth_name_QName_QName(v63, V_mirth_name_Name(v61), value_int(branch__45));
			branch_QName_60 = v64;
			branch_zaMirth_59 = v62;
		} break;
		case std_either_Either_2_Right: {
			VAL v65 = mtp_std_either_Either_2_Right(V_std_either_Either_2(branch_zux1_53));
			struct mirth_mirth_zaMirth* v66;
			struct mirth_name_QName* v67 = mw_mirth_elab_elabzeqnamezefromzenonrelativezedname(branch_zaMirth_51, branch_Token_52, V_mirth_name_DName(v65), value_int(branch__45), &v66);
			branch_QName_60 = v67;
			branch_zaMirth_59 = v66;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_59;
	return branch_QName_60;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, -0x88(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq -0x90(%rbp), %rdx
movq %rsi, -0x40(%rbp)
callq 0x3204c
movq %rax, %rcx
shlq $0x30, %rcx
movq %rdx, %rdi
andq %rbx, %rdi
setne %sil
testb $0x3, %dl
sete %r8b
andb %sil, %r8b
movb %r8b, -0x48(%rbp)
cmpb $0x1, %r8b
jne 0x318b2
incl (%rdi)
movq %rdi, -0x78(%rbp)
orq %rdx, %rcx
movq %rcx, -0x70(%rbp)
movq -0x90(%rbp), %r14
xorl %r13d, %r13d
movq $0x0, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movq %rdx, %rsi
movq %rax, -0x80(%rbp)
movq %rax, %rdi
leaq -0x60(%rbp), %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x31aa2
movq %rdx, %rdi
callq 0xd745
movq %rax, %r12
movq %rdx, %r15
testb $0x1, %r15b
je 0x31919
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x31919
incl (%rax)
movq %r14, %rdi
movq %r12, %rsi
leaq -0x68(%rbp), %rdx
callq 0x30835
movl %eax, %r14d
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x3195a
decl (%rax)
jne 0x3195a
movq %r14, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xdf96c(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%r14,2), %rdi
movl $0x1, %esi
callq 0xe83a
movq -0x68(%rbp), %r14
testl %eax, %eax
je 0x31a6d
cmpq %r12, 0x10e3a79(%rip)   # 0x11153f8
leaq 0x1(%r12), %rsi
movl $0x0, %eax
cmovbeq %rax, %rsi
movq %r14, %rdi
leaq -0x50(%rbp), %rdx
callq 0x301af
movl %eax, %r14d
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x319cb
decl (%rax)
jne 0x319cb
movq %r14, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xdf8fb(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%r14,2), %rdi
movl $0x1, %esi
callq 0xe83a
movq -0x50(%rbp), %r14
testl %eax, %eax
je 0x31a6d
movq %r12, %rdi
movq %r15, %rsi
callq 0x9353
movq %rdx, %r15
movq -0x58(%rbp), %rax
movq %rax, %rcx
andq %rbx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x31a29
movl -0x60(%rbp), %edi
decl (%rcx)
jne 0x31a29
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xdf855(%rip), %rsi     # 0x111279
callq 0xd13d
movq %r13, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x31a58
decl (%rax)
jne 0x31a58
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xdf86e(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x30(%rbp)
movq %r15, %r13
xorl %esi, %esi
jmp 0x318dd
testb $0x1, %r15b
je 0x31a96
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x31a96
decl (%rax)
jne 0x31a96
movq %r12, %rdi
movq %r15, %rsi
callq 0xd13d
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
jmp 0x318dd
testl %eax, %eax
jne 0x31f19
movq -0x58(%rbp), %rax
movq %rax, %rcx
andq %rbx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x31adc
movl -0x60(%rbp), %edi
decl (%rcx)
jne 0x31adc
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xdf7a2(%rip), %rsi     # 0x111279
callq 0xd13d
movl -0x30(%rbp), %r15d
movq %r13, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x31b0e
decl (%rax)
jne 0x31b0e
movq %r15, %rdi
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xdf7b8(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%r15,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
je 0x31b4b
movq $-0x1, %r15
cmpb $0x0, -0x48(%rbp)
je 0x31b5b
movq -0x78(%rbp), %rax
decl (%rax)
jne 0x31b5b
movq -0x70(%rbp), %rdi
leaq 0xdf735(%rip), %rsi     # 0x111279
callq 0xd13d
jmp 0x31b5b
movq -0x80(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x11653
movq %rax, %r15
leaq -0x50(%rbp), %rdx
movq %r14, %rdi
movq -0x40(%rbp), %rsi
callq 0x275cc
cmpl $0x1, %eax
jne 0x31dfc
leaq 0xdf8ae(%rip), %r14     # 0x111429
movq %rdx, %rdi
callq 0xd745
movq -0x50(%rbp), %r12
movq %rax, %rcx
shrq $0x30, %rcx
andq %rbx, %rax
cmpq $0x1, %rcx
movq %r15, -0x48(%rbp)
movq %r12, -0x30(%rbp)
je 0x31cd9
testl %ecx, %ecx
jne 0x31f19
movq %rax, %rdi
callq 0x20a5a
movq %rax, -0x38(%rbp)
movq 0x48(%r12), %r12
movq %r12, %rax
andq %rbx, %rax
setne %dl
testb $0x3, %r12b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x31bd6
addl $0x2, (%rax)
movl 0x18(%r12), %r14d
movq 0x20(%r12), %r15
movq %r15, %rdx
andq %rbx, %rdx
sete %sil
testb $0x3, %r15b
setne %dil
orb %sil, %dil
jne 0x31bf9
incl (%rdx)
leaq 0xdfc61(%rip), %rsi     # 0x111861
testb %cl, %cl
je 0x31c10
decl (%rax)
jne 0x31c10
movq %r12, %rdi
callq 0xd13d
cmpl $0x1, %r14d
jne 0x31e5b
movq %r15, %rdi
callq 0xd745
leaq -0x60(%rbp), %r14
leaq -0x68(%rbp), %r13
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x32143
movl %eax, %r15d
movq %rdx, -0x30(%rbp)
movq (%r13), %rdi
leaq 0xdfb83(%rip), %rsi     # 0x1117d1
callq 0x9353
movq %r12, %rdi
movl $0x1, %esi
callq 0x277df
movq %rax, %r12
movq (%r14), %r14
movq 0x48(%r14), %rdi
movq %rdi, %rax
andq %rbx, %rax
setne %cl
testb $0x3, %dil
sete %dl
testb %dl, %cl
je 0x31c8e
decl (%rax)
jne 0x31c8e
leaq 0xdfbd8(%rip), %rsi     # 0x111861
callq 0xd13d
movq %r12, 0x48(%r14)
cmpl $0x1, %r15d
jne 0x31eb1
movq -0x30(%rbp), %rdi
callq 0xd745
movq %rax, %r15
andq %rax, %rbx
shrq $0x30, %r15
movq -0x48(%rbp), %r12
movq %r12, %rdi
leaq 0xdf76c(%rip), %rsi     # 0x111429
callq 0x1099d
movl %r15d, %edi
movq %rbx, %rsi
movq -0x38(%rbp), %rdx
movq %r12, %rcx
callq 0x1549b
jmp 0x31de3
movq %rax, %rdi
callq 0x20aa1
movq %rax, %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x1099d
leaq 0xe0153(%rip), %rsi     # 0x111e49
movq %r13, %r14
andq %rbx, %r14
setne %al
testb $0x3, %r13b
sete %r15b
andb %al, %r15b
je 0x31d20
incl (%r14)
movq %r13, %rdi
callq 0x206fc
movq %rdx, -0x38(%rbp)
incl (%r14)
jmp 0x31d2c
movq %r13, %rdi
callq 0x206fc
movq %rdx, -0x38(%rbp)
movq %r13, %rdi
callq 0x2e0f0
movl %eax, %r12d
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x31d66
decl (%rax)
jne 0x31d66
movq %r12, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xdf560(%rip), %rsi     # 0x1112c1
callq 0xd13d
leaq 0x1(,%r12,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
je 0x31f49
movq %r13, %rdi
callq 0x2cc3e
movq %rax, %rdi
callq 0x2cb6e
movq %rax, %r15
leaq -0x60(%rbp), %r14
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl $0x1, %edx
movq -0x38(%rbp), %rcx
movl $0x1, %r8d
movq %r14, %r9
callq 0x28569
movq (%r14), %rdi
leaq -0x68(%rbp), %r14
movl %eax, %esi
movq %r14, %rcx
callq 0x323ab
andq %rax, %rbx
movq %rax, %rdi
shrq $0x30, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq -0x48(%rbp), %rcx
callq 0x1549b
movq (%r14), %r14
movq -0x88(%rbp), %rcx
movq %r14, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10e3825(%rip), %rdx   # 0x1115628
testq %rdx, %rdx
jne 0x31e40
movl $0xd, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0xd, 0x10(%rax)
movabsq $0x6465746365707865, %rax # imm = 0x6465746365707865
movq %rax, 0x18(%rdx)
movabsq $0x656d616e20646574, %rax # imm = 0x656D616E20646574
movq %rax, 0x1d(%rdx)
movq %rdx, 0x10e37e8(%rip)   # 0x1115628
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x31e52
incl (%rbx)
movq -0x50(%rbp), %rdi
jmp 0x31fb6
testl %r14d, %r14d
jne 0x31fbf
movq 0x10e37c5(%rip), %rdx   # 0x1115630
testq %rdx, %rdx
jne 0x31fa0
movl $0x22, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x22, 0x10(%rax)
movups 0xb29fc(%rip), %xmm0    # 0xe488c
movups %xmm0, 0x18(%rax)
movups 0xb2a01(%rip), %xmm0    # 0xe489c
movups %xmm0, 0x28(%rax)
movw $0x6e6f, 0x38(%rax)     # imm = 0x6E6F
movq %rax, 0x10e3784(%rip)   # 0x1115630
jmp 0x31fa0
testl %r15d, %r15d
jne 0x31f19
movq 0x10e377b(%rip), %rdx   # 0x1115638
testq %rdx, %rdx
jne 0x31eff
movl $0x30, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x30, 0x10(%rax)
movups 0xb29d1(%rip), %xmm0    # 0xe48af
movups %xmm0, 0x18(%rax)
movups 0xb29d6(%rip), %xmm0    # 0xe48bf
movups %xmm0, 0x28(%rax)
movups 0xb29db(%rip), %xmm0    # 0xe48cf
movups %xmm0, 0x38(%rax)
movq %rax, 0x10e3739(%rip)   # 0x1115638
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x31f11
incl (%rbx)
movq %r14, %rdi
jmp 0x31fb6
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xae79b(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xae7a0(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
testb %r15b, %r15b
je 0x31f62
decl (%r14)
jne 0x31f62
movq %r13, %rdi
leaq 0xdfeec(%rip), %rsi     # 0x111e49
callq 0xd13d
movq 0x10e36d7(%rip), %rdx   # 0x1115640
testq %rdx, %rdx
jne 0x31fa0
movl $0x19, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x19, 0x10(%rax)
movups 0xb2956(%rip), %xmm0    # 0xe48e0
movups %xmm0, 0x18(%rax)
movups 0xb2954(%rip), %xmm0    # 0xe48e9
movups %xmm0, 0x21(%rax)
movq %rax, 0x10e36a0(%rip)   # 0x1115640
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x31fb2
incl (%rbx)
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x27183
leaq 0xae707(%rip), %rdi     # 0xe06cd
movl $0x20, %esi
callq 0x9040
jmp 0x31f41