// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_QName_tozemodulezepath
static STR* mw_mirth_name_QName_tozemodulezepath (struct mirth_name_QName* in_QName_1, struct mirth_mirth_zaMirth* in_zaMirth_2, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	incref(MK_mirth_name_QName(in_QName_1));
	struct mirth_name_Namespace v7 = in_QName_1->mnamespace;
	incref(MK_mirth_name_Namespace(v7));
	decref(MK_mirth_name_QName(in_QName_1));
	STR* branch_Path_8;
	struct mirth_mirth_zaMirth* branch_zaMirth_9;
	switch ((v7).tag) {
		case mirth_name_Namespace_Package: {
			uint64_t v10 = mtp_mirth_name_Namespace_Package(v7);
			struct mirth_mirth_zaMirth* v11;
			struct std_maybe_Maybe_1 v12 = mw_mirth_package_Package_pathzeorzesearch(in_zaMirth_2, v10, &v11);
			struct mirth_mirth_zaMirth* branch_zaMirth_13;
			uint64_t branch_Package_14;
			VAL branch_zux1_15;
			switch ((v12).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v16 = mtp_std_maybe_Maybe_1_Some(v12);
					branch_zux1_15 = v16;
					branch_Package_14 = v10;
					branch_zaMirth_13 = v11;
				} break;
				case std_maybe_Maybe_1_None: {
					STR* v17;
					STRLIT(v17, "False path defined for package ", 31);
					struct mirth_mirth_zaMirth* v18;
					uint64_t v19 = mw_mirth_package_Package_name(v11, v10, &v18);
					struct mirth_mirth_zaMirth* v20;
					STR* v21 = mw_mirth_name_Name_zgStr(v18, v19, &v20);
					mw_mirth_mirth_zaMirth_fatalzeerrorzx(v20, v21);
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			uint64_t v24 = in_QName_1->mname;
			decref(MK_mirth_name_QName(in_QName_1));
			struct mirth_mirth_zaMirth* v25;
			STR* v26 = mw_mirth_name_Name_zgStr(branch_zaMirth_13, v24, &v25);
			STR* v27;
			STRLIT(v27, ".mth", 4);
			STR* v28 = str_cat(v26, v27);
			STR* v29 = mw_std_path_Path_join(value_str(branch_zux1_15), v28);
			branch_zaMirth_9 = v25;
			branch_Path_8 = v29;
		} break;
		default: {
			decref(MK_mirth_name_Namespace(v7));
			STR* v30;
			STRLIT(v30, "expected module name in QName.to-module-path", 44);
			mw_mirth_mirth_zaMirth_fatalzeerrorzx(in_zaMirth_2, v30);
		} break;
	}
	*out_zaMirth_4 = branch_zaMirth_9;
	return branch_Path_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, -0xa8(%rbp)
movq %rsi, -0x50(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %rdi, %rdx
andq %rcx, %rdx
setne %al
testb $0x3, %dil
sete %sil
andb %al, %sil
cmpb $0x1, %sil
jne 0x88aa3
incl (%rdx)
movl 0x8(%rdi), %r14d
movq 0x10(%rdi), %rbx
movq %rbx, %r15
movq %rcx, -0x38(%rbp)
andq %rcx, %r15
setne %al
testb $0x3, %bl
sete %r12b
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x88acb
incl (%r15)
testb %sil, %sil
movq %rdi, -0x70(%rbp)
movq %rdx, -0xa0(%rbp)
movb %sil, -0x29(%rbp)
je 0x88af3
decl (%rdx)
jne 0x88af3
movq -0x70(%rbp), %rdi
leaq 0x88c53(%rip), %rsi     # 0x111741
callq 0xd13d
cmpl $0x1, %r14d
jne 0x890ab
movq 0x8(%rbx), %r14
decl (%rbx)
jne 0x88b0d
movq %rbx, %rdi
callq 0x5030
leaq 0x108b9dc(%rip), %rdi   # 0x11144f0
movq %r14, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rcx
shrq $0x30, %rcx
je 0x88b5e
cmpl $0x1, %ecx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
jne 0x89007
andq %r12, %rax
movq %rax, %rdi
callq 0xd745
movq %rax, %rdi
movq %rdx, %rsi
callq 0x9353
movq %rdx, %rdi
jmp 0x88f2d
movq %r14, -0x68(%rbp)
movq -0x50(%rbp), %rax
movl 0x30(%rax), %r14d
movq 0x38(%rax), %r12
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x88b8e
incl (%rax)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd01b
movl %eax, %r15d
movq %rdx, %rbx
cmpl $0x1, %r14d
jne 0x88c47
movq %r12, %rdi
leaq -0x60(%rbp), %rsi
callq 0xd0aa
movq %rax, %r12
movq %rdx, %r13
leaq 0x108b91c(%rip), %rdi   # 0x11144e0
movq -0x68(%rbp), %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
leaq 0x108b8ec(%rip), %rdi   # 0x11144c8
movq %rax, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rdi
movq %rdx, %rsi
callq 0x9189
movq %rax, %r14
movq %r12, %rdi
movq %r13, %rsi
callq 0x9189
movq %rax, %rdi
movq %r14, %rsi
callq 0x82b47
movq %rax, %rdi
leaq 0x8853f(%rip), %rsi     # 0x111159
movl %r15d, %edx
movq %rbx, %rcx
leaq -0x98(%rbp), %r8
callq 0x949e
movl -0x60(%rbp), %r14d
movq -0x58(%rbp), %r12
movl -0x98(%rbp), %r15d
movq -0x90(%rbp), %rbx
jmp 0x88ba1
testl %r14d, %r14d
jne 0x89007
movq $0x0, -0x48(%rbp)
xorl %edi, %edi
xorl %esi, %esi
movl %r15d, %edx
movq %rbx, %rcx
callq 0xd01b
movl %eax, %edi
movq %rdx, %rsi
movq $0x0, -0x40(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
leaq -0x60(%rbp), %rdx
callq 0x111eb
cmpl $0x1, %eax
jne 0x88e9f
movq %rdx, %rdi
callq 0xd745
movq %rdx, %r15
testb $0x1, %r15b
je 0x88cb5
movq %rax, %rsi
andq %r12, %rsi
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0x88cb5
incl (%rsi)
movq %rax, -0x80(%rbp)
movq %rax, %rdi
movq %r15, %rsi
callq 0x9189
movq %rax, %r13
movl $0x201, %edi            # imm = 0x201
leaq -0x98(%rbp), %rsi
callq 0x11707
movq %r13, %r14
andq %r12, %r14
setne %al
testb $0x3, %r13b
sete %r12b
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x88cf6
addl $0x2, (%r14)
movq %r13, %rdi
callq 0xe7f9
movq %rax, %rbx
movq %r13, %rdi
callq 0xe36d
movq %rax, %rdi
callq 0xe3d6
movq %rax, %rdi
callq 0xe445
movzbl (%rbx,%rax), %edi
callq 0xe3d6
movl $0x1, %esi
movq %rax, %rdi
callq 0xe83a
testl %eax, %eax
jne 0x89037
movq %r15, -0x78(%rbp)
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x11814
movq %rbx, %rdi
movq %rax, %rsi
callq 0x50d0
cltq
leaq 0x1(,%rax,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
je 0x88d7d
movq -0x88(%rbp), %rbx
xorl %r15d, %r15d
jmp 0x88da9
movq -0x88(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x11814
movzwl 0x18(%rax), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0x4000, %eax           # imm = 0x4000
sete %r15b
movq -0xb0(%rbp), %rbx
testb %r12b, %r12b
je 0x88dc2
decl (%r14)
jne 0x88dc2
movq %r13, %rdi
leaq 0x8839c(%rip), %rsi     # 0x111159
callq 0xd13d
movq %rbx, %rdi
callq 0x12a61
testb %r15b, %r15b
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
je 0x88e68
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x9353
movq %rdx, %r15
movq -0x58(%rbp), %rax
movq %rax, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x88e1f
movl -0x60(%rbp), %edi
decl (%rcx)
jne 0x88e1f
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x8845f(%rip), %rsi     # 0x111279
callq 0xd13d
movq -0x48(%rbp), %rsi
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x88e52
decl (%rax)
jne 0x88e52
movq -0x40(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x88474(%rip), %rsi     # 0x1112c1
callq 0xd13d
xorl %edi, %edi
movl $0x1, %eax
movq %rax, -0x40(%rbp)
movq %r15, -0x48(%rbp)
xorl %esi, %esi
jmp 0x88c7e
movq -0x78(%rbp), %rsi
testb $0x1, %sil
movq -0x80(%rbp), %rdi
je 0x88e93
movq %rdi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x88e93
decl (%rax)
jne 0x88e93
callq 0xd13d
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
jmp 0x88c7e
testl %eax, %eax
jne 0x89007
movq -0x58(%rbp), %rax
movq %rax, %rcx
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x88ed9
movl -0x60(%rbp), %edi
decl (%rcx)
jne 0x88ed9
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x883a5(%rip), %rsi     # 0x111279
callq 0xd13d
movq -0x40(%rbp), %rbx
shlq $0x30, %rbx
movq -0x48(%rbp), %rdx
orq %rdx, %rbx
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0x88efd
incl (%rax)
leaq 0x108b5ec(%rip), %rdi   # 0x11144f0
movq -0x68(%rbp), %rsi
callq 0x13c85
movq %rbx, %rdi
leaq 0x883aa(%rip), %rsi     # 0x1112c1
movq %rax, %rdx
callq 0x14766
cmpl $0x1, -0x40(%rbp)
movq -0x48(%rbp), %rdi
jne 0x89135
callq 0xd745
movq %rax, %rbx
movq %rdx, %r14
movq -0x70(%rbp), %rdi
movq 0x18(%rdi), %r15
cmpb $0x0, -0x29(%rbp)
je 0x88f5d
movq -0xa0(%rbp), %rax
decl (%rax)
jne 0x88f5d
leaq 0x887e9(%rip), %rsi     # 0x111741
callq 0xd13d
leaq 0x108b564(%rip), %rdi   # 0x11144c8
movq %r15, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rdi
movq %rdx, %rsi
callq 0x9189
movq %rax, %r15
movq 0x108d81f(%rip), %rsi   # 0x11167a8
testq %rsi, %rsi
jne 0x88fb1
movl $0x4, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x4, 0x10(%rax)
movl $0x68746d2e, 0x18(%rax) # imm = 0x68746D2E
movq %rax, 0x108d7f7(%rip)   # 0x11167a8
andq %rsi, %r12
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x88fc6
incl (%r12)
movq %r15, %rdi
callq 0xe069
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9189
movq %rax, %rdi
movq %r15, %rsi
callq 0x82b47
movq -0x50(%rbp), %rcx
movq -0xa8(%rbp), %rdx
movq %rcx, (%rdx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x576ad(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x576b2(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
movq 0x108d77a(%rip), %rdi   # 0x11167b8
testq %rdi, %rdi
jne 0x8908e
movl $0x38, %edi
callq 0xf5e4
movq %rax, %rdi
movq $0x38, 0x10(%rax)
movabsq $0x646574616e696d72, %rax # imm = 0x646574616E696D72
movq %rax, 0x48(%rdi)
movups 0x5ee31(%rip), %xmm0    # 0xe7e9e
movups %xmm0, 0x18(%rdi)
movups 0x5ee36(%rip), %xmm0    # 0xe7eae
movups %xmm0, 0x28(%rdi)
movups 0x5ee3b(%rip), %xmm0    # 0xe7ebe
movups %xmm0, 0x38(%rdi)
movq %rdi, 0x108d72a(%rip)   # 0x11167b8
andq %rdi, -0x38(%rbp)
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x890a6
movq -0x38(%rbp), %rax
incl (%rax)
callq 0x9302
testb %r12b, %r12b
je 0x890cb
decl (%r15)
jne 0x890cb
shlq $0x30, %r14
orq %rbx, %r14
leaq 0x88876(%rip), %rsi     # 0x111939
movq %r14, %rdi
callq 0xd13d
movq 0x108d6de(%rip), %rsi   # 0x11167b0
testq %rsi, %rsi
jne 0x89114
movl $0x2c, %edi
callq 0xf5e4
movq %rax, %rsi
movq $0x2c, 0x10(%rax)
movups 0x5fda5(%rip), %xmm0    # 0xe8e98
movups %xmm0, 0x18(%rax)
movups 0x5fdaa(%rip), %xmm0    # 0xe8ea8
movups %xmm0, 0x28(%rax)
movups 0x5fdab(%rip), %xmm0    # 0xe8eb4
movups %xmm0, 0x34(%rax)
movq %rax, 0x108d69c(%rip)   # 0x11167b0
andq %rsi, -0x38(%rbp)
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x8912c
movq -0x38(%rbp), %rax
incl (%rax)
movq -0x50(%rbp), %rdi
callq 0x14cad
movq 0x108d664(%rip), %rax   # 0x11167a0
testq %rax, %rax
jne 0x89170
movl $0x1f, %edi
callq 0xf5e4
movq $0x1f, 0x10(%rax)
movups 0x5fd1e(%rip), %xmm0    # 0xe8e78
movups %xmm0, 0x18(%rax)
movups 0x5fd22(%rip), %xmm0    # 0xe8e87
movups %xmm0, 0x27(%rax)
movq %rax, 0x108d630(%rip)   # 0x11167a0
andq %rax, -0x38(%rbp)
sete %cl
testb $0x3, %al
setne %al
orb %cl, %al
jne 0x89186
movq -0x38(%rbp), %rax
incl (%rax)
leaq 0x108b353(%rip), %rdi   # 0x11144e0
movq -0x68(%rbp), %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
leaq 0x108b323(%rip), %rdi   # 0x11144c8
movq %rax, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %rdi
movq %rdx, %rsi
callq 0x9189
movq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0x14cad