// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_prim_zaWorld_iszedirectoryzy
static bool mw_std_prim_zaWorld_iszedirectoryzy (STR* in_Path_1) {
	INT v5 = WRAP_I63(256LL);
	ARR* v6;
	mw_std_buffer_zaBuffer_New(v5, &v6);
	incref(MKSTR(in_Path_1));
	incref(MKSTR(in_Path_1));
	void* v7 = str_base(in_Path_1);
	uint64_t v8 = str_size(in_Path_1);
	INT v9 = u64_to_int(v8);
	uint8_t v10 = mw_std_prelude_unsafe_1_sp12(v9, v7);
	INT v11 = WRAP_I63(0LL);
	INT v12 = v11;
	uint64_t v13 = (uint64_t)(v10);
	INT v14 = u64_to_int(v13);
	bool v15 = int_eq(v14, v12);
	if (v15) {
	} else {
		STR* v16;
		STRLIT(v16, "tried to use Str as CStr, but Str is not zero terminated", 56);
		do_panic(v16);
	}
	ARR* v17;
	void* v18 = mw_std_buffer_zaBuffer_base(v6, &v17);
	int64_t v19 = mext_std_world_posixzestat(v7, v18);
	INT v20 = i64_to_int(v19);
	INT v21 = WRAP_I63(0LL);
	INT v22 = v21;
	bool v23 = int_eq(v20, v22);
	ARR* branch_zaBuffer_24;
	bool branch_Bool_25;
	if (v23) {
		ARR* v26;
		void* v27 = mw_std_buffer_zaBuffer_base(v17, &v26);
		uint16_t v28 = mw_std_world_stzumodezo(v27);
		bool v29 = mw_std_world_SzuISDIR(v28);
		branch_Bool_25 = v29;
		branch_zaBuffer_24 = v26;
	} else {
		bool v30 = false;
		branch_Bool_25 = v30;
		branch_zaBuffer_24 = v17;
	}
	decref(MKSTR(in_Path_1));
	mw_std_buffer_zaBuffer_rdrop(branch_zaBuffer_24);
	return branch_Bool_25;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x8(%rbp)
movq 0x17e49a(%rip), %rax    # 0x36ead0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x33440
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0x1a0b02(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f06e8
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0x1a0add(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x30(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x38(%rbp), %rax
cmpq $0x0, %rax
je 0x1f06e8
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x1a0ab2(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f06e8
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x1a0a8d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x58(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1f06ea
jmp 0x1f06ec
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x1a0a5d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f07a0
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x1a0a34(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rax
cmpq $0x0, %rax
je 0x1f07a0
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x1a0a06(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x88(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f07a0
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x1a09db(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1f07a2
movq -0x8(%rbp), %rdi
callq 0x1be20
movq %rax, -0xa0(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1b3f0
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x1b520
movq %rax, -0xb0(%rbp)
movq -0xa0(%rbp), %rsi
movq -0xb0(%rbp), %rdi
callq 0x1b0ed0
movb %al, -0xb1(%rbp)
movq 0x17e25b(%rip), %rax    # 0x36ea50
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movzbl -0xb1(%rbp), %eax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdi
callq 0x1b520
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x194b0
andb $0x1, %al
movb %al, -0xd9(%rbp)
testb $0x1, -0xd9(%rbp)
je 0x1f0854
jmp 0x1f096b
jmp 0x1f0856
cmpq $0x0, 0x11a60a2(%rip)   # 0x1396900
jne 0x1f0878
leaq 0x16b0f8(%rip), %rdi    # 0x35b95f
movl $0x38, %esi
callq 0xb6c0
movq %rax, 0x11a6088(%rip)   # 0x1396900
jmp 0x1f087a
movq 0x11a607f(%rip), %rax   # 0x1396900
movq %rax, -0xf8(%rbp)
leaq 0x1a08c9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f094f
movq 0x11a604a(%rip), %rax   # 0x1396900
movq %rax, -0x108(%rbp)
leaq 0x1a0894(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
cmpq $0x0, %rax
je 0x1f094f
movq 0x11a6013(%rip), %rax   # 0x1396900
movq %rax, -0x118(%rbp)
leaq 0x1a085d(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x118(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f094f
movq 0x11a5fe2(%rip), %rax   # 0x1396900
movq %rax, -0x128(%rbp)
leaq 0x1a082c(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x120(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x128(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1f0951
movq 0x11a5fa8(%rip), %rax   # 0x1396900
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rdi
callq 0xc620
movq -0x18(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x33730
movq %rax, -0x138(%rbp)
movq -0xa0(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x1f0ba0
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rdi
callq 0x1a290
movq %rax, -0x148(%rbp)
movq 0x17e09a(%rip), %rax    # 0x36ea50
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x148(%rbp), %rdi
movq -0x158(%rbp), %rsi
callq 0x194b0
andb $0x1, %al
movb %al, -0x159(%rbp)
testb $0x1, -0x159(%rbp)
je 0x1f0a4e
movq -0x130(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0x33730
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rdi
callq 0x1f0be0
movw %ax, -0x182(%rbp)
movzwl -0x182(%rbp), %edi
callq 0x1f0d90
andb $0x1, %al
movb %al, -0x183(%rbp)
movb -0x183(%rbp), %al
andb $0x1, %al
movb %al, -0x169(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x168(%rbp)
jmp 0x1f0a71
movb $0x0, -0x184(%rbp)
movb -0x184(%rbp), %al
andb $0x1, %al
movb %al, -0x169(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x168(%rbp)
jmp 0x1f0a73
movq -0x8(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq 0x1a06d3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1f0b77
movq -0x8(%rbp), %rax
movq %rax, -0x1a8(%rbp)
leaq 0x1a06a1(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1a8(%rbp), %rax
cmpq $0x0, %rax
je 0x1f0b77
movq -0x8(%rbp), %rax
movq %rax, -0x1b8(%rbp)
leaq 0x1a0669(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1f0b77
movq -0x8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq 0x1a063b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1f0b75
movq -0x8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
leaq 0x1a0601(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1d0(%rbp)
movq -0x1d8(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
callq 0x127c0
jmp 0x1f0b77
jmp 0x1f0b79
movq -0x168(%rbp), %rdi
callq 0x337f0
movb -0x169(%rbp), %al
andb $0x1, %al
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
nopw %cs:(%rax,%rax)