// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_prim_zaWorld_readzepathzx
static struct std_result_Result_2 mw_std_prim_zaWorld_readzepathzx (STR* in_Path_1) {
	struct std_result_zaResult_2 v5;
	mw_std_prim_zaWorld_openzefilezx(in_Path_1, &v5);
	struct std_result_Result_2 branch_Result_6;
	switch ((v5).tag) {
		case std_result_zaResult_2_zaOk: {
			VAL v7;
			mtp_std_result_zaResult_2_zaOk(v5, &v7);
			struct std_file_zaFile* v8;
			STR* v9 = mw_std_file_zaFile_readzefilezx(V_std_file_zaFile(v7), &v8);
			struct std_maybe_Maybe_1 v10 = mw_std_file_zaFile_closezefilezx(v8);
			struct std_result_Result_2 branch_Result_11;
			switch ((v10).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v12 = mtp_std_maybe_Maybe_1_Some(v10);
					decref(MKSTR(v9));
					struct std_result_Result_2 v13 = mtw_std_result_Result_2_Err(v12);
					branch_Result_11 = v13;
				} break;
				case std_maybe_Maybe_1_None: {
					struct std_result_Result_2 v14 = mtw_std_result_Result_2_Ok(MKSTR(v9));
					branch_Result_11 = v14;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Result_6 = branch_Result_11;
		} break;
		case std_result_zaResult_2_zaErr: {
			VAL v15 = mtp_std_result_zaResult_2_zaErr(v5);
			struct std_result_Result_2 v16 = mtw_std_result_Result_2_Err(v15);
			branch_Result_6 = v16;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	return branch_Result_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1b0320
movl -0x28(%rbp), %eax
movl %eax, -0x11c(%rbp)
testl %eax, %eax
je 0x1c5f6b
jmp 0x1c5d3f
movl -0x11c(%rbp), %eax
subl $0x1, %eax
jne 0x1c5fbd
jmp 0x1c5d50
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x1b0be0
movq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x1b0cf0
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1b0d50
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x120(%rbp)
testl %eax, %eax
je 0x1c5eeb
jmp 0x1c5d94
movl -0x120(%rbp), %eax
subl $0x1, %eax
jne 0x1c5f40
jmp 0x1c5da5
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x174a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x1cb38d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c5eb7
movq -0x48(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x1cb361(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
cmpq $0x0, %rax
je 0x1c5eb7
movq -0x48(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x1cb329(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c5eb7
movq -0x48(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x1cb2fb(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1c5eb5
movq -0x48(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x1cb2c1(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x127c0
jmp 0x1c5eb7
jmp 0x1c5eb9
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x29ab0
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x1c5f59
movq -0x48(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x1cb25b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x29b40
movl %eax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x1c5f59
leaq 0x18df3a(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x68(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1c5fd6
movl -0x28(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x1b0c30
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x29ab0
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1c5fd6
leaq 0x18debd(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopw %cs:(%rax,%rax)