// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_package_Package_tryzepathzx
static void mw_mirth_package_Package_tryzepathzx (struct mirth_mirth_zaMirth* in_zaMirth_1, STR* in_Path_2, uint64_t in_Package_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* v5;
	struct std_maybe_Maybe_1 v6 = mw_mirth_package_Package_path(in_zaMirth_1, in_Package_3, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	switch ((v6).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v8 = mtp_std_maybe_Maybe_1_Some(v6);
			incref(MKSTR(in_Path_2));
			incref(v8);
			bool v9 = (str_cmp(in_Path_2, value_str(v8)) == 0);
			struct mirth_mirth_zaMirth* branch_zaMirth_10;
			if (v9) {
				decref(v8);
				decref(MKSTR(in_Path_2));
				branch_zaMirth_10 = v5;
			} else {
				STR* v11;
				STRLIT(v11, "", 0);
				STR* v12;
				STRLIT(v12, "Tried to set different path for the same package ", 49);
				STR* v13;
				mw_std_str_zaStr_pushzestrzx(v12, v11, &v13);
				STR* v14;
				STRLIT(v14, "(package = ", 11);
				STR* v15;
				mw_std_str_zaStr_pushzestrzx(v14, v13, &v15);
				struct mirth_mirth_zaMirth* v16;
				STR* v17;
				mw_mirth_package_Package_namezj(v5, v15, in_Package_3, &v16, &v17);
				STR* v18;
				STRLIT(v18, ", path 1 = ", 11);
				STR* v19;
				mw_std_str_zaStr_pushzestrzx(v18, v17, &v19);
				STR* v20;
				mw_std_prim_Str_reprzj(in_Path_2, v19, &v20);
				STR* v21;
				STRLIT(v21, ", path 2 = ", 11);
				STR* v22;
				mw_std_str_zaStr_pushzestrzx(v21, v20, &v22);
				STR* v23;
				mw_std_prim_Str_reprzj(value_str(v8), v22, &v23);
				STR* v24;
				STRLIT(v24, ").", 2);
				STR* v25;
				mw_std_str_zaStr_pushzestrzx(v24, v23, &v25);
				mw_mirth_mirth_zaMirth_fatalzeerrorzx(v16, v25);
			}
			branch_zaMirth_7 = branch_zaMirth_10;
		} break;
		case std_maybe_Maybe_1_None: {
			struct std_maybe_Maybe_1 v27 = mtw_std_maybe_Maybe_1_Some(MKSTR(in_Path_2));
			struct mirth_mirth_zaMirth* v28;
			mw_mirth_package_Package_pathzx(v5, v27, in_Package_3, &v28);
			branch_zaMirth_7 = v28;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_4 = branch_zaMirth_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
leaq 0x109370a(%rip), %rdi   # 0x11184f0
movq %rdx, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %rcx
shrq $0x30, %rcx
je 0x84ee7
movq %r12, -0x48(%rbp)
cmpl $0x1, %ecx
jne 0x84f3a
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
andq %r12, %rax
movq %rax, %rdi
callq 0xdaeb
movq %r15, %rbx
movq %r12, -0x38(%rbp)
andq %r12, %rbx
setne %cl
movq %r15, -0x30(%rbp)
testb $0x3, %r15b
sete %r15b
andb %cl, %r15b
cmpb $0x1, %r15b
jne 0x84e49
incl (%rbx)
testb $0x1, %dl
je 0x84e6e
movq %rax, %rdi
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rdi
sete %cl
testb $0x3, %al
setne %sil
orb %cl, %sil
jne 0x84e6e
incl (%rdi)
movq %rax, -0x40(%rbp)
movq %rax, %rdi
movq %rdx, %r12
movq %rdx, %rsi
callq 0x942c
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0xe2eb
testl %eax, %eax
jne 0x84f6a
testb $0x1, %r12b
movq -0x40(%rbp), %rdi
je 0x84ec8
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x84ec8
decl (%rax)
jne 0x84ec8
movq %r12, %rsi
callq 0xd4e3
testb %r15b, %r15b
movq -0x48(%rbp), %r12
je 0x84f28
decl (%rbx)
jne 0x84f28
leaq 0x9027d(%rip), %rsi     # 0x115159
movq -0x30(%rbp), %rdi
callq 0xd4e3
jmp 0x84f28
leaq 0x9026b(%rip), %rsi     # 0x115159
movq %r15, %rdi
callq 0x95f6
movq %rdx, %rbx
leaq 0x10935f0(%rip), %rdi   # 0x11184f0
movq %r13, %rsi
callq 0x13ff0
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
addq $0x4, %rdi
orq %rbx, %rdi
leaq 0x903a1(%rip), %rsi     # 0x1152c1
movq %rax, %rdx
callq 0x14ab5
movq %r12, (%r14)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x5f7fa(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x5f7ff(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
cmpq $0x0, 0x10955b6(%rip)   # 0x111a528
jne 0x84f8a
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x109559e(%rip)   # 0x111a528
movq 0x1095597(%rip), %r14   # 0x111a528
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x84fb1
incl (%rax)
cmpq $0x0, 0x1095577(%rip)   # 0x111a530
jne 0x84ff9
movl $0x31, %edi
callq 0xf9f7
movq $0x31, 0x10(%rax)
movups 0x675f5(%rip), %xmm0    # 0xec5c9
movups %xmm0, 0x18(%rax)
movups 0x675fa(%rip), %xmm0    # 0xec5d9
movups %xmm0, 0x28(%rax)
movups 0x675ff(%rip), %xmm0    # 0xec5e9
movups %xmm0, 0x38(%rax)
movb $0x20, 0x48(%rax)
movq %rax, 0x1095537(%rip)   # 0x111a530
movq 0x1095530(%rip), %rsi   # 0x111a530
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x85020
incl (%rax)
movq %r14, %rdi
callq 0xe43c
movq %rax, %r14
cmpq $0x0, 0x1095505(%rip)   # 0x111a538
jne 0x85063
movl $0xb, %edi
callq 0xf9f7
movq $0xb, 0x10(%rax)
movabsq $0x6567616b63617028, %rcx # imm = 0x6567616B63617028
movq %rcx, 0x18(%rax)
movl $0x203d2065, 0x1f(%rax) # imm = 0x203D2065
movq %rax, 0x10954d5(%rip)   # 0x111a538
movq 0x10954ce(%rip), %rsi   # 0x111a538
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x8508a
incl (%rax)
movq %r14, %rdi
callq 0xe43c
leaq -0x68(%rbp), %rcx
leaq -0x60(%rbp), %r8
movq -0x48(%rbp), %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x1a23c
cmpq $0x0, 0x109548f(%rip)   # 0x111a540
jne 0x850e1
movl $0xb, %edi
callq 0xf9f7
movq $0xb, 0x10(%rax)
movabsq $0x312068746170202c, %rcx # imm = 0x312068746170202C
movq %rcx, 0x18(%rax)
movl $0x203d2031, 0x1f(%rax) # imm = 0x203D2031
movq %rax, 0x109545f(%rip)   # 0x111a540
movq 0x1095458(%rip), %rsi   # 0x111a540
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x85108
incl (%rax)
movq -0x60(%rbp), %rdi
callq 0xe43c
leaq -0x58(%rbp), %rdx
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x852ba
cmpq $0x0, 0x109541f(%rip)   # 0x111a548
jne 0x85159
movl $0xb, %edi
callq 0xf9f7
movq $0xb, 0x10(%rax)
movabsq $0x322068746170202c, %rcx # imm = 0x322068746170202C
movq %rcx, 0x18(%rax)
movl $0x203d2032, 0x1f(%rax) # imm = 0x203D2032
movq %rax, 0x10953ef(%rip)   # 0x111a548
movq 0x10953e8(%rip), %rsi   # 0x111a548
movq %rsi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x85180
incl (%rax)
movq -0x58(%rbp), %rdi
callq 0xe43c
movq %rax, %rbx
movq -0x40(%rbp), %rdi
movq %r12, %rsi
callq 0x942c
leaq -0x50(%rbp), %rdx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x852ba
cmpq $0x0, 0x10953a1(%rip)   # 0x111a550
jne 0x851d0
movl $0x2, %edi
callq 0xf9f7
movq $0x2, 0x10(%rax)
movw $0x2e29, 0x18(%rax)     # imm = 0x2E29
movq %rax, 0x1095380(%rip)   # 0x111a550
movq 0x1095379(%rip), %rsi   # 0x111a550
andq %rsi, -0x38(%rbp)
sete %al
testb $0x3, %sil
setne %cl
orb %al, %cl
jne 0x851ef
movq -0x38(%rbp), %rax
incl (%rax)
movq -0x50(%rbp), %rdi
callq 0xe43c
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x15000