// File: /workspace/github_c_makefile_star2_O1/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, -0x48(%rbp)
callq 0x330da
movq %rax, -0x50(%rbp)
movq %rax, %rsi
shlq $0x30, %rsi
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %dil
orb %cl, %dil
jne 0x3288a
incl (%rax)
orq %rdx, %rsi
movq %rsi, -0x80(%rbp)
movq -0x90(%rbp), %r14
leaq -0x68(%rbp), %r15
movq $0x0, -0x30(%rbp)
movq $0x0, -0x40(%rbp)
movq %rdx, -0x78(%rbp)
movq %rdx, %rsi
movq -0x50(%rbp), %rdi
movq %rbx, -0x38(%rbp)
movq %r15, %rdx
callq 0x115ef
testl %eax, %eax
je 0x329d8
cmpl $0x1, %eax
jne 0x32fa0
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r12
movq %rdx, %r13
testb $0x1, %r13b
je 0x328fe
movq %r12, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x328fe
incl (%rax)
movq %r14, %rdi
movq %r12, %rsi
leaq -0x70(%rbp), %rdx
callq 0x3176f
movq %rbx, %rcx
movl %eax, %ebx
movq %rdx, %rax
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x32941
decl (%rax)
jne 0x32941
movq %rbx, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xe2985(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xec04
movq -0x70(%rbp), %r14
testl %eax, %eax
je 0x329e7
cmpq %r12, 0x10e6a92(%rip)   # 0x11193f8
leaq 0x1(%r12), %rsi
movl $0x0, %eax
cmovbeq %rax, %rsi
movq %r14, %rdi
leaq -0x58(%rbp), %rdx
callq 0x310fd
movl %eax, %ebx
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x329bb
decl (%rax)
jne 0x329bb
movq %rbx, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xe290b(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
setne %bl
movq -0x58(%rbp), %r14
jmp 0x329e9
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
xorl %r13d, %r13d
jmp 0x32ad1
xorl %ebx, %ebx
testb %bl, %bl
je 0x329fd
movq %r12, %rdi
movq %r13, %rsi
callq 0x95f6
movq %rdx, %r12
jmp 0x32a33
testb $0x1, %r13b
je 0x32a30
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x32a30
decl (%rax)
jne 0x32a30
movq %r12, %rdi
movq %r13, %rsi
callq 0xd4e3
xorl %r12d, %r12d
movl -0x68(%rbp), %edi
testb %bl, %bl
je 0x32ac0
movq -0x60(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x32a77
decl (%rcx)
jne 0x32a77
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xe2807(%rip), %rsi     # 0x115279
callq 0xd4e3
movq -0x30(%rbp), %rsi
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
movb $0x1, %r13b
orb %cl, %dl
jne 0x32aad
decl (%rax)
jne 0x32aad
movq -0x40(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xe2819(%rip), %rsi     # 0x1152c1
callq 0xd4e3
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x40(%rbp)
movq %r12, -0x30(%rbp)
xorl %esi, %esi
jmp 0x32ad1
movb $0x1, %r13b
movq -0x60(%rbp), %rsi
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
testb %r13b, %r13b
jne 0x328bb
movq %rsi, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x32b05
decl (%rax)
jne 0x32b05
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xe2779(%rip), %rsi     # 0x115279
callq 0xd4e3
movl -0x40(%rbp), %ebx
leaq 0xe27b2(%rip), %rsi     # 0x1152c1
movq -0x30(%rbp), %r8
movq %r8, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r8b
setne %dl
orb %cl, %dl
jne 0x32b44
decl (%rax)
jne 0x32b44
movq %rbx, %rdi
shlq $0x30, %rdi
orq %r8, %rdi
callq 0xd4e3
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
je 0x32b98
movq -0x78(%rbp), %rdx
movq %rdx, %rax
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %dl
movq $-0x1, %r15
orb %cl, %dl
jne 0x32bb2
decl (%rax)
jne 0x32bb2
movq -0x80(%rbp), %rdi
leaq 0xe26e8(%rip), %rsi     # 0x115279
callq 0xd4e3
jmp 0x32bb2
movq -0x50(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x11a85
movq %rax, %r15
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq -0x58(%rbp), %rdx
movq %r14, %rdi
movq -0x48(%rbp), %rsi
callq 0x27bd7
cmpl $0x1, %eax
jne 0x32e78
leaq 0xe2857(%rip), %r13     # 0x115429
movq %rdx, %rdi
callq 0xdaeb
movq -0x58(%rbp), %r14
movq %rax, %rcx
shrq $0x30, %rcx
andq %rbx, %rax
testq %rcx, %rcx
movq %r15, -0x40(%rbp)
movq %r14, -0x30(%rbp)
je 0x32d1a
cmpl $0x1, %ecx
jne 0x32fa0
movq %rax, %rdi
callq 0x2100c
movq %rax, %r12
movq %r15, %rdi
movq %r13, %rsi
callq 0x10db8
leaq 0xe322a(%rip), %rsi     # 0x115e49
movq %r12, %r14
andq %rbx, %r14
setne %al
testb $0x3, %r12b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0x32c3c
incl (%r14)
movq %r12, %rdi
callq 0x20c67
movq %rdx, %r13
testb %r15b, %r15b
je 0x32c4f
incl (%r14)
movq %r12, %rdi
callq 0x2ee4d
movl %eax, %ebx
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x32c92
decl (%rax)
jne 0x32c92
movq %rbx, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xe2634(%rip), %rsi     # 0x1152c1
callq 0xd4e3
leaq 0x1(,%rbx,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
je 0x32fd0
movq %r12, %rdi
callq 0x2d8fc
movq %rax, %rdi
callq 0x2d7f3
movq %rax, %r15
leaq -0x68(%rbp), %r14
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl $0x1, %edx
movq %r13, %rcx
movl $0x1, %r8d
movq %r14, %r9
callq 0x28b6d
movq (%r14), %rdi
leaq -0x70(%rbp), %r14
movl %eax, %esi
movq %r14, %rcx
callq 0x3343d
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rax, %rsi
movq %rax, %rdi
shrq $0x30, %rdi
movq %r15, %rdx
movq -0x40(%rbp), %rcx
callq 0x157ee
movq (%r14), %rbx
jmp 0x32e5f
movq %rax, %rdi
callq 0x20fc5
movq %rax, -0x50(%rbp)
movq 0x48(%r14), %r13
movq %r13, %rax
andq %rbx, %rax
setne %dl
testb $0x3, %r13b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x32d44
addl $0x2, (%rax)
movl 0x18(%r13), %ebx
movq 0x20(%r13), %r15
movq %r15, %rdx
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rdx
sete %sil
testb $0x3, %r15b
setne %dil
orb %sil, %dil
jne 0x32d6f
incl (%rdx)
leaq 0xe2aeb(%rip), %rsi     # 0x115861
testb %cl, %cl
je 0x32d86
decl (%rax)
jne 0x32d86
movq %r13, %rdi
callq 0xd4e3
cmpl $0x1, %ebx
jne 0x32ede
movq %r15, %rdi
callq 0xdaeb
leaq -0x68(%rbp), %r14
leaq -0x70(%rbp), %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x331d1
movl %eax, %r15d
movq %rdx, %rbx
movq (%r12), %rdi
leaq 0xe2a0f(%rip), %rsi     # 0x1157d1
callq 0x95f6
movq %r13, %rdi
movl $0x1, %esi
callq 0x27dec
movq %rax, %r13
movq (%r14), %r14
movq 0x48(%r14), %rdi
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
setne %cl
testb $0x3, %dil
sete %dl
testb %dl, %cl
je 0x32e0c
decl (%rax)
jne 0x32e0c
leaq 0xe2a5a(%rip), %rsi     # 0x115861
callq 0xd4e3
movq %r13, 0x48(%r14)
cmpl $0x1, %r15d
jne 0x32f31
movq %rbx, %rdi
callq 0xdaeb
movq %rax, %r14
movq -0x68(%rbp), %rbx
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %rax, %r15
shrq $0x30, %r14
movq -0x40(%rbp), %r12
movq %r12, %rdi
leaq 0xe25e1(%rip), %rsi     # 0x115429
callq 0x10db8
movl %r14d, %edi
movq %r15, %rsi
movq -0x50(%rbp), %rdx
movq %r12, %rcx
callq 0x157ee
movq -0x88(%rbp), %rcx
movq %rbx, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x10e67a8(%rip)   # 0x1119628
jne 0x32eb7
movl $0xd, %edi
callq 0xf9f7
movq $0xd, 0x10(%rax)
movabsq $0x6465746365707865, %rcx # imm = 0x6465746365707865
movq %rcx, 0x18(%rax)
movabsq $0x656d616e20646574, %rcx # imm = 0x656D616E20646574
movq %rcx, 0x1d(%rax)
movq %rax, 0x10e6771(%rip)   # 0x1119628
movq 0x10e676a(%rip), %rdx   # 0x1119628
andq %rdx, -0x38(%rbp)
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x32ed5
movq -0x38(%rbp), %rax
incl (%rax)
movq -0x58(%rbp), %rdi
jmp 0x33044
testl %ebx, %ebx
jne 0x3304d
cmpq $0x0, 0x10e6742(%rip)   # 0x1119630
jne 0x32f25
movl $0x22, %edi
callq 0xf9f7
movq $0x22, 0x10(%rax)
movups 0xb5a82(%rip), %xmm0    # 0xe898b
movups %xmm0, 0x18(%rax)
movups 0xb5a87(%rip), %xmm0    # 0xe899b
movups %xmm0, 0x28(%rax)
movw $0x6e6f, 0x38(%rax)     # imm = 0x6E6F
movq %rax, 0x10e670b(%rip)   # 0x1119630
movq 0x10e6704(%rip), %rdx   # 0x1119630
jmp 0x33029
testl %r15d, %r15d
jne 0x32fa0
cmpq $0x0, 0x10e66fa(%rip)   # 0x1119638
jne 0x32f7a
movl $0x30, %edi
callq 0xf9f7
movq $0x30, 0x10(%rax)
movups 0xb5a55(%rip), %xmm0    # 0xe89ae
movups %xmm0, 0x18(%rax)
movups 0xb5a5a(%rip), %xmm0    # 0xe89be
movups %xmm0, 0x28(%rax)
movups 0xb5a5f(%rip), %xmm0    # 0xe89ce
movups %xmm0, 0x38(%rax)
movq %rax, 0x10e66be(%rip)   # 0x1119638
movq 0x10e66b7(%rip), %rdx   # 0x1119638
andq %rdx, -0x38(%rbp)
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x32f98
movq -0x38(%rbp), %rax
incl (%rax)
movq %r14, %rdi
jmp 0x33044
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xb1794(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xb1799(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
testb %r15b, %r15b
je 0x32fe9
decl (%r14)
jne 0x32fe9
movq %r12, %rdi
leaq 0xe2e65(%rip), %rsi     # 0x115e49
callq 0xd4e3
cmpq $0x0, 0x10e664f(%rip)   # 0x1119640
jne 0x33022
movl $0x19, %edi
callq 0xf9f7
movq $0x19, 0x10(%rax)
movups 0xb59d3(%rip), %xmm0    # 0xe89df
movups %xmm0, 0x18(%rax)
movups 0xb59d1(%rip), %xmm0    # 0xe89e8
movups %xmm0, 0x21(%rax)
movq %rax, 0x10e661e(%rip)   # 0x1119640
movq 0x10e6617(%rip), %rdx   # 0x1119640
andq %rdx, -0x38(%rbp)
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0x33040
movq -0x38(%rbp), %rax
incl (%rax)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2778c
leaq 0xb16f9(%rip), %rdi     # 0xe474d
movl $0x20, %esi
callq 0x92e9
jmp 0x32fc8