// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_QName_climbzeupzenamezy
static struct std_list_List_1 mw_mirth_name_QName_climbzeupzenamezy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Name_2, struct mirth_name_QName* in_QName_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	incref(MK_mirth_name_QName(in_QName_3));
	uint64_t v6 = in_QName_3->mname;
	decref(MK_mirth_name_QName(in_QName_3));
	uint64_t v7 = in_Name_2;
	uint64_t v8 = v6;
	bool v9 = (v7 == v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	uint64_t branch_Name_11;
	struct mirth_name_QName* branch_QName_12;
	struct std_list_List_1 branch_List_13;
	if (v9) {
		incref(MK_mirth_name_QName(in_QName_3));
		struct mirth_name_Namespace v14 = in_QName_3->mnamespace;
		incref(MK_mirth_name_Namespace(v14));
		decref(MK_mirth_name_QName(in_QName_3));
		struct std_list_List_1 v15 = { .tag=std_list_List_1_Nil };
		struct std_list_List_1 v16 = mw_std_list_List_1_cons(MK_mirth_name_Namespace(v14), v15);
		branch_List_13 = v16;
		branch_QName_12 = in_QName_3;
		branch_Name_11 = in_Name_2;
		branch_zaMirth_10 = in_zaMirth_1;
	} else {
		struct std_list_List_1 v17 = { .tag=std_list_List_1_Nil };
		branch_List_13 = v17;
		branch_QName_12 = in_QName_3;
		branch_Name_11 = in_Name_2;
		branch_zaMirth_10 = in_zaMirth_1;
	}
	struct mirth_mirth_zaMirth* v18;
	struct std_list_List_1 v19 = mw_mirth_name_Name_defs(branch_zaMirth_10, branch_Name_11, &v18);
	bool v20 = true;
	struct std_list_List_1 v21 = branch_List_13;
	struct mirth_name_QName* v22 = branch_QName_12;
	struct mirth_mirth_zaMirth* r23 = v18;
	struct std_list_List_1 v24 = v19;
	bool v25 = v20;
	bool v26 = v20;
	while (v26) {
		struct std_list_List_1 v27 = v21;
		struct mirth_name_QName* v28 = v22;
		struct mirth_mirth_zaMirth* r29 = r23;
		struct std_list_List_1 v30 = v24;
		bool v31 = v25;
		struct mirth_name_QName* branch_QName_32;
		struct mirth_mirth_zaMirth* branch_zaMirth_33;
		struct std_list_List_1 branch_List_34;
		struct std_list_List_1 branch_List_35;
		bool branch_Bool_36;
		switch ((v30).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v37;
				VAL v38 = mtp_std_list_List_1_Cons(v30, &v37);
				struct mirth_name_QName* branch_QName_39;
				struct mirth_mirth_zaMirth* branch_zaMirth_40;
				struct std_list_List_1 branch_List_41;
				switch ((V_mirth_def_Def(v38)).tag) {
					case mirth_def_Def_Alias: {
						uint64_t v42 = mtp_mirth_def_Def_Alias(V_mirth_def_Def(v38));
						void* v43 = field_mut(&mfld_mirth_alias_Alias_zttarget, v42);
						struct mirth_mirth_zaMirth* v44;
						struct std_maybe_Maybe_1 v45 = mw_mirth_mirth_Prop_1_tryzeforcezx(r29, v43, &v44);
						struct mirth_name_QName* branch_QName_46;
						struct mirth_mirth_zaMirth* branch_zaMirth_47;
						bool branch_Bool_48;
						switch ((v45).tag) {
							case std_maybe_Maybe_1_Some: {
								VAL v49 = mtp_std_maybe_Maybe_1_Some(v45);
								struct mirth_mirth_zaMirth* v50;
								struct mirth_name_QName* v51 = mw_mirth_def_Def_qnamezehard(v44, V_mirth_def_Def(v49), &v50);
								incref(MK_mirth_name_QName(v28));
								struct mirth_mirth_zaMirth* v52;
								bool v53 = mw_mirth_name_QName_zd(v50, v51, v28, &v52);
								branch_Bool_48 = v53;
								branch_zaMirth_47 = v52;
								branch_QName_46 = v28;
							} break;
							case std_maybe_Maybe_1_None: {
								bool v54 = false;
								branch_Bool_48 = v54;
								branch_zaMirth_47 = v44;
								branch_QName_46 = v28;
							} break;
							default: {
								do_panic(str_make("unexpected fallthrough in match\n", 32));
							}
						}
						struct mirth_name_QName* branch_QName_55;
						struct mirth_mirth_zaMirth* branch_zaMirth_56;
						struct std_list_List_1 branch_List_57;
						if (branch_Bool_48) {
							struct mirth_mirth_zaMirth* v58;
							struct mirth_name_Namespace v59 = mw_mirth_alias_Alias_namespace(branch_zaMirth_47, v42, &v58);
							struct std_list_List_1 v60 = mw_std_list_List_1_cons(MK_mirth_name_Namespace(v59), v27);
							branch_List_57 = v60;
							branch_zaMirth_56 = v58;
							branch_QName_55 = branch_QName_46;
						} else {
							branch_List_57 = v27;
							branch_zaMirth_56 = branch_zaMirth_47;
							branch_QName_55 = branch_QName_46;
						}
						branch_List_41 = branch_List_57;
						branch_zaMirth_40 = branch_zaMirth_56;
						branch_QName_39 = branch_QName_55;
					} break;
					case mirth_def_Def_Type: {
						uint64_t v61 = mtp_mirth_def_Def_Type(V_mirth_def_Def(v38));
						struct mirth_mirth_zaMirth* v62;
						struct mirth_type_Type v63 = mw_mirth_typedef_TypeDef_target(r29, v61, &v62);
						struct mirth_mirth_zaMirth* v64;
						struct std_maybe_Maybe_1 v65 = mw_mirth_type_Type_tyconzy(v62, v63, &v64);
						struct mirth_name_QName* branch_QName_66;
						struct mirth_mirth_zaMirth* branch_zaMirth_67;
						bool branch_Bool_68;
						switch ((v65).tag) {
							case std_maybe_Maybe_1_Some: {
								VAL v69 = mtp_std_maybe_Maybe_1_Some(v65);
								struct mirth_mirth_zaMirth* v70;
								struct mirth_name_QName* v71 = mw_mirth_tycon_Tycon_qnamezehard(v64, V_mirth_tycon_Tycon(v69), &v70);
								incref(MK_mirth_name_QName(v28));
								struct mirth_mirth_zaMirth* v72;
								bool v73 = mw_mirth_name_QName_zd(v70, v71, v28, &v72);
								branch_Bool_68 = v73;
								branch_zaMirth_67 = v72;
								branch_QName_66 = v28;
							} break;
							case std_maybe_Maybe_1_None: {
								bool v74 = false;
								branch_Bool_68 = v74;
								branch_zaMirth_67 = v64;
								branch_QName_66 = v28;
							} break;
							default: {
								do_panic(str_make("unexpected fallthrough in match\n", 32));
							}
						}
						struct mirth_name_QName* branch_QName_75;
						struct mirth_mirth_zaMirth* branch_zaMirth_76;
						struct std_list_List_1 branch_List_77;
						if (branch_Bool_68) {
							struct mirth_mirth_zaMirth* v78;
							struct mirth_name_Namespace v79 = mw_mirth_typedef_TypeDef_namespace(branch_zaMirth_67, v61, &v78);
							struct std_list_List_1 v80 = mw_std_list_List_1_cons(MK_mirth_name_Namespace(v79), v27);
							branch_List_77 = v80;
							branch_zaMirth_76 = v78;
							branch_QName_75 = branch_QName_66;
						} else {
							branch_List_77 = v27;
							branch_zaMirth_76 = branch_zaMirth_67;
							branch_QName_75 = branch_QName_66;
						}
						branch_List_41 = branch_List_77;
						branch_zaMirth_40 = branch_zaMirth_76;
						branch_QName_39 = branch_QName_75;
					} break;
					default: {
						decref(MK_mirth_def_Def(V_mirth_def_Def(v38)));
						branch_List_41 = v27;
						branch_zaMirth_40 = r29;
						branch_QName_39 = v28;
					} break;
				}
				bool v81 = true;
				branch_Bool_36 = v81;
				branch_List_35 = v37;
				branch_List_34 = branch_List_41;
				branch_zaMirth_33 = branch_zaMirth_40;
				branch_QName_32 = branch_QName_39;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v82 = { .tag=std_list_List_1_Nil };
				bool v83 = false;
				branch_Bool_36 = v83;
				branch_List_35 = v82;
				branch_List_34 = v27;
				branch_zaMirth_33 = r29;
				branch_QName_32 = v28;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v26 = branch_Bool_36;
		v25 = branch_Bool_36;
		v24 = branch_List_35;
		r23 = branch_zaMirth_33;
		v22 = branch_QName_32;
		v21 = branch_List_34;
	}
	decref(MK_std_list_List_1(v24));
	decref(MK_mirth_name_QName(v22));
	*out_zaMirth_4 = r23;
	return v21;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
andq %r14, %rdi
setne %al
testb $0x3, %dl
sete %sil
andb %al, %sil
movb %sil, -0x29(%rbp)
cmpb $0x1, %sil
movq %rdx, -0x50(%rbp)
movq %rdi, -0x60(%rbp)
movq %rcx, -0x70(%rbp)
jne 0x2e279
movq 0x18(%rdx), %r12
cmpl $0x0, (%rdi)
jne 0x2e270
movq -0x50(%rbp), %rdi
leaq 0xe34da(%rip), %rsi     # 0x111741
callq 0xd13d
movq -0x60(%rbp), %rdi
cmpq %rbx, %r12
jne 0x2e2e7
incl (%rdi)
jmp 0x2e27f
cmpq %rbx, 0x18(%rdx)
jne 0x2e2e7
movq -0x50(%rbp), %rcx
movq 0x10(%rcx), %rax
movl 0x8(%rcx), %r12d
shlq $0x30, %r12
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x2e2a5
incl (%rcx)
orq %rax, %r12
leaq 0xe368a(%rip), %r13     # 0x111939
cmpb $0x0, -0x29(%rbp)
je 0x2e2c9
decl (%rdi)
jne 0x2e2c9
movq -0x50(%rbp), %rdi
leaq 0xe347d(%rip), %rsi     # 0x111741
callq 0xd13d
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd1ec
movq %rdx, -0x48(%rbp)
movl $0x1, %eax
movq %rax, -0x40(%rbp)
jmp 0x2e2f7
movq $0x0, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
leaq -0x88(%rbp), %r12
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x14ce9
movq %rdx, %rdi
movq (%r12), %r12
leaq -0x80(%rbp), %rbx
movq -0x50(%rbp), %r15
cmpl $0x1, %eax
jne 0x2e54b
movq %rbx, %rsi
callq 0xd0aa
movq %rax, %rcx
shrq $0x30, %rcx
movq %rax, %rdi
andq %r14, %rdi
cmpq $0x5, %rcx
je 0x2e3e0
testl %ecx, %ecx
jne 0x2e51d
movq 0x8(%rdi), %r13
decl (%rdi)
jne 0x2e358
callq 0x5030
leaq 0x10e70b9(%rip), %rdi   # 0x1115418
movq %r13, %rsi
callq 0x13c85
movq %r12, %rdi
movq %rax, %rsi
leaq -0x58(%rbp), %rdx
callq 0x1555d
testl %eax, %eax
je 0x2e53b
cmpl $0x1, %eax
jne 0x2e58a
movq %rdx, %rdi
callq 0xd745
movq -0x58(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
movq %rax, %rdx
leaq -0x38(%rbp), %rcx
callq 0x2dac3
cmpb $0x0, -0x29(%rbp)
je 0x2e3b5
movq -0x60(%rbp), %rcx
incl (%rcx)
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq %r15, %rdx
leaq -0x68(%rbp), %rcx
callq 0x197ca
movq -0x68(%rbp), %r12
testb %al, %al
je 0x2e53f
leaq 0x10e6135(%rip), %rdi   # 0x1114510
jmp 0x2e48a
movq 0x8(%rdi), %r13
decl (%rdi)
jne 0x2e3ed
callq 0x5030
leaq 0x10e6c34(%rip), %rdi   # 0x1115028
movq %r13, %rsi
callq 0x13c85
movq %r12, %rdi
movq %rax, %rsi
leaq -0x38(%rbp), %rdx
callq 0x1a6db
movq -0x38(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
movq %rax, %rdx
leaq -0x58(%rbp), %rcx
callq 0x2cfb8
testl %eax, %eax
je 0x2e53b
cmpl $0x1, %eax
jne 0x2e58a
movq %rdx, %rdi
callq 0xd745
movq -0x58(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r14, %rax
movq %rax, %rdx
leaq -0x38(%rbp), %rcx
callq 0x19ff6
cmpb $0x0, -0x29(%rbp)
je 0x2e464
movq -0x60(%rbp), %rcx
incl (%rcx)
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq %r15, %rdx
leaq -0x68(%rbp), %rcx
callq 0x197ca
movq -0x68(%rbp), %r12
testb %al, %al
je 0x2e53f
leaq 0x10e6716(%rip), %rdi   # 0x1114ba0
movq %r13, %rsi
callq 0x13c85
movq %r12, %rdi
movq %rax, %rsi
leaq -0x38(%rbp), %rdx
callq 0x1a6db
movl 0x8(%rax), %r13d
movq 0x10(%rax), %r15
movq %r15, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %r15b
setne %sil
orb %dl, %sil
jne 0x2e4c1
incl (%rcx)
movq -0x38(%rbp), %r12
movq %rax, %rcx
andq %r14, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x2e4ec
decl (%rcx)
jne 0x2e4ec
movq %rax, %rdi
leaq 0xe325a(%rip), %rsi     # 0x111741
callq 0xd13d
shlq $0x30, %r13
orq %r15, %r13
movq %r13, %rdi
leaq 0xe343c(%rip), %rsi     # 0x111939
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
callq 0xd1ec
movq %rdx, -0x48(%rbp)
movl $0x1, %eax
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %r15
jmp 0x2e53f
testq %rdi, %rdi
je 0x2e53f
decl (%rdi)
jne 0x2e53f
andq $-0x4, %rax
movq %rax, %rdi
leaq 0xe3255(%rip), %rsi     # 0x111789
callq 0xd13d
jmp 0x2e53f
movq -0x58(%rbp), %r12
movl -0x80(%rbp), %eax
movq -0x78(%rbp), %rdi
jmp 0x2e31b
testl %eax, %eax
jne 0x2e58a
cmpb $0x0, -0x29(%rbp)
movq -0x60(%rbp), %rax
je 0x2e56c
decl (%rax)
jne 0x2e56c
movq %r15, %rdi
leaq 0xe31da(%rip), %rsi     # 0x111741
callq 0xd13d
movq -0x70(%rbp), %rax
movq %r12, (%rax)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xb212a(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xb212f(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302