// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_QName_defzesoftzy
static struct std_maybe_Maybe_1 mw_mirth_name_QName_defzesoftzy (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 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_QName(in_QName_2));
	struct std_maybe_Maybe_1 v9 = { .tag=std_maybe_Maybe_1_None };
	bool v10 = true;
	struct mirth_mirth_zaMirth* r11 = v6;
	struct std_maybe_Maybe_1 v12 = v8;
	struct std_maybe_Maybe_1 v13 = v9;
	struct std_list_List_1 v14 = v7;
	bool v15 = v10;
	bool v16 = v10;
	while (v16) {
		struct mirth_mirth_zaMirth* r17 = r11;
		struct std_maybe_Maybe_1 v18 = v12;
		struct std_maybe_Maybe_1 v19 = v13;
		struct std_list_List_1 v20 = v14;
		bool v21 = v15;
		struct std_list_List_1 v22;
		struct std_maybe_Maybe_1 v23 = mw_std_list_List_1_uncons(v20, &v22);
		struct mirth_mirth_zaMirth* branch_zaMirth_24;
		struct std_maybe_Maybe_1 branch_Maybe_25;
		struct std_maybe_Maybe_1 branch_Maybe_26;
		struct std_list_List_1 branch_List_27;
		bool branch_Bool_28;
		switch ((v23).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v29 = mtp_std_maybe_Maybe_1_Some(v23);
				incref(v29);
				incref(MK_std_maybe_Maybe_1(v18));
				struct mirth_mirth_zaMirth* v30;
				struct std_maybe_Maybe_1 v31 = mw_mirth_def_Def_qnamezesoft(r17, V_mirth_def_Def(v29), &v30);
				struct mirth_mirth_zaMirth* branch_zaMirth_32;
				bool branch_Bool_33;
				switch ((v31).tag) {
					case std_maybe_Maybe_1_None: {
						int64_t v34 = (v18).tag;
						decref(MK_std_maybe_Maybe_1(v18));
						INT v35 = WRAP_I63(0LL);
						INT v36 = v35;
						INT v37 = i64_to_int(v34);
						bool v38 = int_eq(v37, v36);
						branch_Bool_33 = v38;
						branch_zaMirth_32 = v30;
					} break;
					case std_maybe_Maybe_1_Some: {
						VAL v39 = mtp_std_maybe_Maybe_1_Some(v31);
						struct mirth_mirth_zaMirth* branch_zaMirth_40;
						bool branch_Bool_41;
						switch ((v18).tag) {
							case std_maybe_Maybe_1_Some: {
								VAL v42 = mtp_std_maybe_Maybe_1_Some(v18);
								struct mirth_mirth_zaMirth* v43;
								bool v44 = mw_mirth_name_QName_zd(v30, V_mirth_name_QName(v42), V_mirth_name_QName(v39), &v43);
								branch_Bool_41 = v44;
								branch_zaMirth_40 = v43;
							} break;
							case std_maybe_Maybe_1_None: {
								decref(v39);
								bool v45 = false;
								branch_Bool_41 = v45;
								branch_zaMirth_40 = v30;
							} break;
							default: {
								do_panic(str_make("unexpected fallthrough in match\n", 32));
							}
						}
						branch_Bool_33 = branch_Bool_41;
						branch_zaMirth_32 = branch_zaMirth_40;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_46;
				struct std_maybe_Maybe_1 branch_Maybe_47;
				struct std_maybe_Maybe_1 branch_Maybe_48;
				if (branch_Bool_33) {
					struct std_maybe_Maybe_1 v49 = mtw_std_maybe_Maybe_1_Some(v29);
					branch_Maybe_48 = v49;
					branch_Maybe_47 = v18;
					branch_zaMirth_46 = branch_zaMirth_32;
				} else {
					decref(v29);
					struct std_maybe_Maybe_1 v50 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_48 = v50;
					branch_Maybe_47 = v18;
					branch_zaMirth_46 = branch_zaMirth_32;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_51;
				struct std_maybe_Maybe_1 branch_Maybe_52;
				struct std_maybe_Maybe_1 branch_Maybe_53;
				struct std_list_List_1 branch_List_54;
				switch ((branch_Maybe_48).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_54 = v22;
						branch_Maybe_53 = v19;
						branch_Maybe_52 = branch_Maybe_47;
						branch_zaMirth_51 = branch_zaMirth_46;
					} break;
					default: {
						decref(MK_std_list_List_1(v22));
						decref(MK_std_maybe_Maybe_1(v19));
						struct std_list_List_1 v55 = { .tag=std_list_List_1_Nil };
						branch_List_54 = v55;
						branch_Maybe_53 = branch_Maybe_48;
						branch_Maybe_52 = branch_Maybe_47;
						branch_zaMirth_51 = branch_zaMirth_46;
					} break;
				}
				bool v56 = true;
				branch_Bool_28 = v56;
				branch_List_27 = branch_List_54;
				branch_Maybe_26 = branch_Maybe_53;
				branch_Maybe_25 = branch_Maybe_52;
				branch_zaMirth_24 = branch_zaMirth_51;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v57 = false;
				branch_Bool_28 = v57;
				branch_List_27 = v22;
				branch_Maybe_26 = v19;
				branch_Maybe_25 = v18;
				branch_zaMirth_24 = r17;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v16 = branch_Bool_28;
		v15 = branch_Bool_28;
		v14 = branch_List_27;
		v13 = branch_Maybe_26;
		v12 = branch_Maybe_25;
		r11 = branch_zaMirth_24;
	}
	decref(MK_std_list_List_1(v14));
	decref(MK_std_maybe_Maybe_1(v12));
	*out_zaMirth_3 = r11;
	return v13;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, -0x80(%rbp)
movq %rsi, %r14
movq %rdi, %rbx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %rsi, %rax
andq %rcx, %rax
setne %dl
testb $0x3, %r14b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x19779
incl (%rax)
leaq 0xfbfc1(%rip), %r15     # 0x115741
movq 0x18(%r14), %r12
testb %cl, %cl
je 0x19797
decl (%rax)
jne 0x19797
movq %r14, %rdi
movq %r15, %rsi
callq 0xd4e3
leaq -0x98(%rbp), %r13
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1503c
movl %eax, %r12d
movq %rdx, %rbx
movq %r14, %rdi
movq %r15, %rsi
callq 0x95f6
movq %rdx, -0x50(%rbp)
movq (%r13), %r14
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq 0x4(%r13), %rax
orq %rdx, %rax
movq %rax, -0x48(%rbp)
movq %rdx, %rax
andq %r13, %rax
movq %rax, -0x58(%rbp)
setne %al
movq %rdx, -0x78(%rbp)
testb $0x3, %dl
sete %cl
andb %al, %cl
movb %cl, -0x29(%rbp)
movq $0x0, -0x40(%rbp)
leaq -0x70(%rbp), %r15
movq $0x0, -0x38(%rbp)
movl %r12d, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x115ef
testl %eax, %eax
je 0x198b8
cmpl $0x1, %eax
jne 0x19a52
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %rbx
movq %rax, %r12
movq %rdx, -0x88(%rbp)
testb $0x1, %dl
je 0x19859
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x19859
incl (%rax)
cmpb $0x0, -0x29(%rbp)
je 0x19865
movq -0x58(%rbp), %rax
incl (%rax)
movq %rbx, %rsi
shrq $0x30, %rsi
andq %r13, %rbx
movq %r14, %rdi
movq %rbx, %rdx
leaq -0x60(%rbp), %rcx
callq 0x14b21
cmpl $0x1, %eax
je 0x198c7
testl %eax, %eax
jne 0x19a52
cmpb $0x0, -0x29(%rbp)
movq %r12, %rdi
je 0x198af
movq -0x58(%rbp), %rax
decl (%rax)
jne 0x198af
movq -0x48(%rbp), %rdi
leaq 0xfba1a(%rip), %rsi     # 0x1152c1
callq 0xd4e3
movq %r12, %rdi
movq -0x60(%rbp), %r14
xorl %r13d, %r13d
jmp 0x198fe
movl -0x70(%rbp), %r12d
movq -0x68(%rbp), %rbx
xorl %eax, %eax
jmp 0x199d6
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %r14
movq -0x50(%rbp), %rdi
callq 0xdaeb
movq -0x60(%rbp), %rdi
movq %rax, %rsi
movq %r14, %rdx
leaq -0x90(%rbp), %rcx
callq 0x19a82
movl %eax, %r13d
movq -0x90(%rbp), %r14
movq %r12, %rdi
testb %r13b, %r13b
movq -0x88(%rbp), %rsi
je 0x19914
callq 0x95f6
movq %rdx, %rbx
jmp 0x19936
testb $0x1, %sil
je 0x19934
testq %rbx, %rbx
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x19934
decl (%rbx)
jne 0x19934
callq 0xd4e3
xorl %ebx, %ebx
movl -0x70(%rbp), %r12d
testb %r13b, %r13b
je 0x199c6
movq -0x68(%rbp), %rax
movq %rax, %rcx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
andq %r13, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x1997f
decl (%rcx)
jne 0x1997f
shlq $0x30, %r12
orq %rax, %r12
movq %r12, %rdi
leaq 0xfb8ff(%rip), %rsi     # 0x115279
callq 0xd4e3
movq -0x40(%rbp), %rsi
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x199b2
decl (%rax)
jne 0x199b2
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xfb914(%rip), %rsi     # 0x1152c1
callq 0xd4e3
xorl %r12d, %r12d
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq %rbx, -0x40(%rbp)
xorl %ebx, %ebx
jmp 0x199d4
movq -0x68(%rbp), %rbx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movb $0x1, %al
testb %al, %al
jne 0x1980a
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x19a0b
decl (%rax)
jne 0x19a0b
shlq $0x30, %r12
orq %rbx, %r12
leaq 0xfb876(%rip), %rsi     # 0x115279
movq %r12, %rdi
callq 0xd4e3
movq -0x78(%rbp), %rdx
andq %r13, %rdx
sete %al
testb $0x3, -0x50(%rbp)
setne %cl
orb %al, %cl
jne 0x19a34
decl (%rdx)
jne 0x19a34
leaq 0xfb896(%rip), %rsi     # 0x1152c1
movq -0x48(%rbp), %rdi
callq 0xd4e3
movq -0x80(%rbp), %rax
movq %r14, (%rax)
movq -0x38(%rbp), %rax
movq -0x40(%rbp), %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xcace2(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xcace7(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5