// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_QName_defzehardzy
static struct std_maybe_Maybe_1 mw_mirth_name_QName_defzehardzy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_name_QName* in_QName_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	incref(MK_mirth_name_QName(in_QName_2));
	uint64_t v5 = in_QName_2->mname;
	decref(MK_mirth_name_QName(in_QName_2));
	struct mirth_mirth_zaMirth* v6;
	struct std_list_List_1 v7 = mw_mirth_name_Name_defs(in_zaMirth_1, v5, &v6);
	struct std_maybe_Maybe_1 v8 = { .tag=std_maybe_Maybe_1_None };
	bool v9 = true;
	struct mirth_mirth_zaMirth* r10 = v6;
	struct mirth_name_QName* v11 = in_QName_2;
	struct std_maybe_Maybe_1 v12 = v8;
	struct std_list_List_1 v13 = v7;
	bool v14 = v9;
	bool v15 = v9;
	while (v15) {
		struct mirth_mirth_zaMirth* r16 = r10;
		struct mirth_name_QName* v17 = v11;
		struct std_maybe_Maybe_1 v18 = v12;
		struct std_list_List_1 v19 = v13;
		bool v20 = v14;
		struct std_list_List_1 v21;
		struct std_maybe_Maybe_1 v22 = mw_std_list_List_1_uncons(v19, &v21);
		struct mirth_mirth_zaMirth* branch_zaMirth_23;
		struct mirth_name_QName* branch_QName_24;
		struct std_maybe_Maybe_1 branch_Maybe_25;
		struct std_list_List_1 branch_List_26;
		bool branch_Bool_27;
		switch ((v22).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v28 = mtp_std_maybe_Maybe_1_Some(v22);
				incref(v28);
				incref(MK_mirth_name_QName(v17));
				struct mirth_mirth_zaMirth* v29;
				struct mirth_name_QName* v30 = mw_mirth_def_Def_qnamezehard(r16, V_mirth_def_Def(v28), &v29);
				struct mirth_mirth_zaMirth* v31;
				bool v32 = mw_mirth_name_QName_zd(v29, v17, v30, &v31);
				struct mirth_mirth_zaMirth* branch_zaMirth_33;
				struct mirth_name_QName* branch_QName_34;
				struct std_maybe_Maybe_1 branch_Maybe_35;
				if (v32) {
					struct std_maybe_Maybe_1 v36 = mtw_std_maybe_Maybe_1_Some(v28);
					branch_Maybe_35 = v36;
					branch_QName_34 = v17;
					branch_zaMirth_33 = v31;
				} else {
					decref(v28);
					struct std_maybe_Maybe_1 v37 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_35 = v37;
					branch_QName_34 = v17;
					branch_zaMirth_33 = v31;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_38;
				struct mirth_name_QName* branch_QName_39;
				struct std_maybe_Maybe_1 branch_Maybe_40;
				struct std_list_List_1 branch_List_41;
				switch ((branch_Maybe_35).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_41 = v21;
						branch_Maybe_40 = v18;
						branch_QName_39 = branch_QName_34;
						branch_zaMirth_38 = branch_zaMirth_33;
					} break;
					default: {
						decref(MK_std_list_List_1(v21));
						decref(MK_std_maybe_Maybe_1(v18));
						struct std_list_List_1 v42 = { .tag=std_list_List_1_Nil };
						branch_List_41 = v42;
						branch_Maybe_40 = branch_Maybe_35;
						branch_QName_39 = branch_QName_34;
						branch_zaMirth_38 = branch_zaMirth_33;
					} break;
				}
				bool v43 = true;
				branch_Bool_27 = v43;
				branch_List_26 = branch_List_41;
				branch_Maybe_25 = branch_Maybe_40;
				branch_QName_24 = branch_QName_39;
				branch_zaMirth_23 = branch_zaMirth_38;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v44 = false;
				branch_Bool_27 = v44;
				branch_List_26 = v21;
				branch_Maybe_25 = v18;
				branch_QName_24 = v17;
				branch_zaMirth_23 = r16;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v15 = branch_Bool_27;
		v14 = branch_Bool_27;
		v13 = branch_List_26;
		v12 = branch_Maybe_25;
		v11 = branch_QName_24;
		r10 = branch_zaMirth_23;
	}
	decref(MK_std_list_List_1(v13));
	decref(MK_mirth_name_QName(v11));
	*out_zaMirth_3 = r10;
	return v12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, -0x70(%rbp)
movq %rdi, %rbx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq 0xb157f(%rip), %rcx     # 0x111741
movq %rsi, %rdx
andq %r13, %rdx
setne %al
testb $0x3, %sil
sete %dil
andb %al, %dil
movb %dil, -0x29(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
je 0x601fa
movq 0x18(%rsi), %r14
cmpl $0x0, (%rdx)
jne 0x601fe
movq %rsi, %rdi
movq %rcx, %rsi
callq 0xd13d
jmp 0x601fe
movq 0x18(%rsi), %r14
leaq -0x80(%rbp), %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x14ce9
movl %eax, %edi
movq %rdx, %rsi
movq (%r15), %rbx
movq $0x0, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
leaq -0x50(%rbp), %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x6036c
movq %rdx, %rdi
callq 0xd745
movq %rax, %r14
movq %rdx, %r12
movq %rax, %r15
testb $0x1, %r12b
je 0x60267
movq %r14, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x60267
incl (%rax)
cmpb $0x0, -0x29(%rbp)
je 0x60273
movq -0x58(%rbp), %rax
incl (%rax)
movq %r14, %rsi
shrq $0x30, %rsi
andq %r13, %r14
movq %rbx, %rdi
movq %r14, %rdx
leaq -0x78(%rbp), %rcx
callq 0x2dac3
movq -0x78(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rdx
leaq -0x68(%rbp), %rcx
callq 0x197ca
testb %al, %al
je 0x60335
movq %r15, %rdi
movq %r12, %rsi
callq 0x9353
movq %rdx, %r14
movq -0x68(%rbp), %rbx
movq -0x48(%rbp), %rax
movq %rax, %rcx
andq %r13, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x602ec
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0x602ec
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xb0f92(%rip), %rsi     # 0x111279
callq 0xd13d
movq -0x40(%rbp), %rsi
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x6031f
decl (%rax)
jne 0x6031f
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xb0fa7(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq %r14, -0x40(%rbp)
xorl %esi, %esi
jmp 0x60228
testb $0x1, %r12b
je 0x6035c
testq %r14, %r14
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x6035c
decl (%r14)
jne 0x6035c
movq %r15, %rdi
movq %r12, %rsi
callq 0xd13d
movq -0x68(%rbp), %rbx
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
jmp 0x60228
testl %eax, %eax
jne 0x603db
movq -0x48(%rbp), %rax
andq %rax, %r13
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0x6039f
movl -0x50(%rbp), %edi
decl (%r13)
jne 0x6039f
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xb0edf(%rip), %rsi     # 0x111279
callq 0xd13d
cmpb $0x0, -0x29(%rbp)
je 0x603bd
movq -0x58(%rbp), %rax
decl (%rax)
jne 0x603bd
movq -0x60(%rbp), %rdi
leaq 0xb1389(%rip), %rsi     # 0x111741
callq 0xd13d
movq -0x70(%rbp), %rax
movq %rbx, (%rax)
movq -0x38(%rbp), %rax
movq -0x40(%rbp), %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x802d9(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x802de(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302