// File: /workspace/github_c_makefile_star2_O2/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 $0x78, %rsp
movq %rdx, -0x90(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq -0x98(%rbp), %rdx
movq %rsi, -0x48(%rbp)
callq 0x2f684
movq %rax, %rcx
shlq $0x30, %rcx
movq %rdx, %rdi
andq %rbx, %rdi
setne %sil
testb $0x3, %dl
sete %r8b
andb %sil, %r8b
movb %r8b, -0x29(%rbp)
cmpb $0x1, %r8b
jne 0x2ef8a
incl (%rdi)
movq %rdi, -0x80(%rbp)
orq %rdx, %rcx
movq %rcx, -0x78(%rbp)
movq -0x98(%rbp), %r12
movb $0x1, %r15b
leaq -0x68(%rbp), %r13
movq %rax, -0x88(%rbp)
movq %rax, %rdi
movq %rdx, -0x50(%rbp)
movq %rdx, %rsi
movq $0x0, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
testb $0x1, %r15b
je 0x2f1ab
movq %r13, %rdx
callq 0x1075d
testl %eax, %eax
je 0x2f112
cmpl $0x1, %eax
jne 0x2f59b
movq %rdx, %rdi
callq 0xd491
movq %rax, %r15
movq %rdx, %r14
testb $0x1, %r14b
je 0x2f011
movq %r15, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x2f011
incl (%rax)
movq %r12, %rdi
movq %r15, %rsi
leaq -0x70(%rbp), %rdx
callq 0x2df97
movl %eax, %r12d
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x2f052
decl (%rax)
jne 0x2f052
movq %r12, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xd9274(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r12, %rdi
callq 0xd86d
movq %rax, %rdi
pushq $0x1
popq %rsi
callq 0xd759
movq -0x70(%rbp), %r12
testb %al, %al
jne 0x2f0da
cmpq %r15, 0x10dd384(%rip)   # 0x110c3f8
leaq 0x1(%r15), %rsi
movl $0x0, %eax
cmovbeq %rax, %rsi
movq %r12, %rdi
leaq -0x58(%rbp), %rdx
callq 0x2d978
movl %eax, %r12d
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x2f0bf
decl (%rax)
jne 0x2f0bf
movq %r12, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xd9207(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r12, %rdi
callq 0xd86d
movq %rax, %rdi
pushq $0x1
popq %rsi
callq 0xd759
movq -0x58(%rbp), %r12
testb %al, %al
je 0x2f121
testb $0x1, %r14b
je 0x2f103
movq %r15, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x2f103
decl (%rax)
jne 0x2f103
movq %r15, %rdi
movq %r14, %rsi
callq 0xce94
movl -0x68(%rbp), %edi
movb $0x1, %r15b
movq -0x60(%rbp), %rsi
jmp 0x2efc4
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
xorl %r15d, %r15d
jmp 0x2efc4
movq %r15, %rdi
movq %r14, %rsi
callq 0x8d0c
movq %rdx, %r14
movq -0x60(%rbp), %rax
movq %rax, %rcx
andq %rbx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x2f161
movl -0x68(%rbp), %edi
decl (%rcx)
jne 0x2f161
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xd911d(%rip), %rsi     # 0x108279
callq 0xce94
movq -0x38(%rbp), %rsi
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
movb $0x1, %r15b
orb %cl, %dl
jne 0x2f197
decl (%rax)
jne 0x2f197
movq -0x40(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xd912f(%rip), %rsi     # 0x1082c1
callq 0xce94
xorl %edi, %edi
pushq $0x1
popq %rax
movq %rax, -0x40(%rbp)
movq %r14, -0x38(%rbp)
xorl %esi, %esi
jmp 0x2efc4
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x2f1d6
decl (%rax)
jne 0x2f1d6
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xd90a8(%rip), %rsi     # 0x108279
callq 0xce94
movl -0x40(%rbp), %r14d
movq -0x38(%rbp), %rsi
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x2f20c
decl (%rax)
jne 0x2f20c
movq %r14, %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xd90ba(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r14, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
testb %al, %al
je 0x2f238
movq -0x88(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x10bca
movq %rax, %r14
jmp 0x2f25a
pushq $-0x1
popq %r14
cmpb $0x0, -0x29(%rbp)
je 0x2f25a
movq -0x80(%rbp), %rax
decl (%rax)
jne 0x2f25a
movq -0x78(%rbp), %rdi
leaq 0xd9024(%rip), %rsi     # 0x108279
callq 0xce94
leaq -0x58(%rbp), %rdx
movq %r12, %rdi
movq -0x48(%rbp), %rsi
callq 0x24b09
cmpl $0x1, %eax
jne 0x2f4e7
leaq 0xd91af(%rip), %r12     # 0x108429
movq %rdx, %rdi
callq 0xd491
movq -0x58(%rbp), %r15
movq %rax, %rcx
shrq $0x30, %rcx
andq %rbx, %rax
cmpq $0x1, %rcx
movq %r14, -0x40(%rbp)
movq %r15, -0x38(%rbp)
je 0x2f3d5
testl %ecx, %ecx
jne 0x2f59b
movq %rax, %rdi
callq 0x1e79d
movq %rax, -0x50(%rbp)
movq 0x48(%r15), %r12
movq %r12, %rax
andq %rbx, %rax
setne %dl
testb $0x3, %r12b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x2f2d4
addl $0x2, (%rax)
movl 0x18(%r12), %r15d
movq 0x20(%r12), %r14
movq %r14, %rdx
andq %rbx, %rdx
sete %sil
testb $0x3, %r14b
setne %dil
orb %sil, %dil
jne 0x2f2f7
incl (%rdx)
leaq 0xd9563(%rip), %rsi     # 0x108861
testb %cl, %cl
je 0x2f30e
decl (%rax)
jne 0x2f30e
movq %r12, %rdi
callq 0xce94
cmpl $0x1, %r15d
jne 0x2f527
movq %r14, %rdi
callq 0xd491
leaq -0x68(%rbp), %r15
leaq -0x70(%rbp), %r13
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x2f773
movl %eax, %r14d
movq %rdx, -0x38(%rbp)
movq (%r13), %rdi
leaq 0xd9485(%rip), %rsi     # 0x1087d1
callq 0x8d0c
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x24cd1
movq %rax, %r12
movq (%r15), %r15
movq 0x48(%r15), %rdi
movq %rdi, %rax
andq %rbx, %rax
setne %cl
testb $0x3, %dil
sete %dl
testb %dl, %cl
je 0x2f38a
decl (%rax)
jne 0x2f38a
leaq 0xd94dc(%rip), %rsi     # 0x108861
callq 0xce94
movq %r12, 0x48(%r15)
cmpl $0x1, %r14d
jne 0x2f55a
movq -0x38(%rbp), %rdi
callq 0xd491
movq %rax, %r14
andq %rax, %rbx
shrq $0x30, %r14
movq -0x40(%rbp), %r12
movq %r12, %rdi
leaq 0xd9070(%rip), %rsi     # 0x108429
callq 0xff62
movl %r14d, %edi
movq %rbx, %rsi
movq -0x50(%rbp), %rdx
movq %r12, %rcx
callq 0x1473b
jmp 0x2f4ce
movq %rax, %rdi
callq 0x1e7e4
movq %rax, %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0xff62
leaq 0xd9a57(%rip), %rsi     # 0x108e49
movq %r13, %r15
andq %rbx, %r15
setne %al
testb $0x3, %r13b
sete %r12b
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x2f40f
incl (%r15)
movq %r13, %rdi
callq 0x1e454
movq %rdx, -0x50(%rbp)
testb %r12b, %r12b
je 0x2f423
incl (%r15)
movq %r13, %rdi
callq 0x2b953
movl %eax, %r14d
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x2f45d
decl (%rax)
jne 0x2f45d
movq %r14, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xd8e69(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r14, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
testb %al, %al
jne 0x2f5b2
movq %r13, %rdi
callq 0x2a313
movq %rax, %r14
pushq $0x1
popq %rdx
leaq -0x68(%rbp), %r15
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x50(%rbp), %rcx
movl %edx, %r8d
movq %r15, %r9
callq 0x25bb9
movq (%r15), %rdi
leaq -0x70(%rbp), %r15
movl %eax, %esi
movq %r15, %rcx
callq 0x2f9c0
andq %rax, %rbx
movq %rax, %rdi
shrq $0x30, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq -0x40(%rbp), %rcx
callq 0x1473b
movq (%r15), %r15
movq -0x90(%rbp), %rcx
movq %r15, (%rcx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10dd13a(%rip), %rdx   # 0x110c628
testq %rdx, %rdx
jne 0x2f50c
leaq 0xa9515(%rip), %rdi     # 0xd8a0f
pushq $0xd
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10dd11c(%rip)   # 0x110c628
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x2f51e
incl (%rbx)
movq -0x58(%rbp), %rdi
jmp 0x2f606
testl %r15d, %r15d
jne 0x2f59b
movq 0x10dd0fd(%rip), %rdx   # 0x110c630
testq %rdx, %rdx
jne 0x2f5f0
leaq 0xa94ef(%rip), %rdi     # 0xd8a32
pushq $0x22
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10dd0db(%rip)   # 0x110c630
jmp 0x2f5f0
testl %r14d, %r14d
jne 0x2f59b
movq 0x10dd0d2(%rip), %rdx   # 0x110c638
testq %rdx, %rdx
jne 0x2f584
leaq 0xa94e3(%rip), %rdi     # 0xd8a55
pushq $0x30
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10dd0b4(%rip)   # 0x110c638
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x2f596
incl (%rbx)
movq %r15, %rdi
jmp 0x2f606
leaq 0xa526b(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6
testb %r12b, %r12b
je 0x2f5cb
decl (%r15)
jne 0x2f5cb
movq %r13, %rdi
leaq 0xd9883(%rip), %rsi     # 0x108e49
callq 0xce94
movq 0x10dd06e(%rip), %rdx   # 0x110c640
testq %rdx, %rdx
jne 0x2f5f0
leaq 0xa94a8(%rip), %rdi     # 0xd8a86
pushq $0x19
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10dd050(%rip)   # 0x110c640
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x2f602
incl (%rbx)
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x246fe