	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdir
_isdir:                                 ## @isdir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	(%rax), %rdi
	je	LBB0_11
## %bb.9:
	movq	_USER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_strerror
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_3:
	movl	$1, %r15d
	jmp	LBB0_11
LBB0_5:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	_W_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_access
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_USER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rdx
LBB0_10:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_display_log
LBB0_11:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W_OK,4,2                       ## @W_OK
	.comm	_USER_ERROR,4,2                 ## @USER_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cannot be written (%s)"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"%s: invalid output name (%s)"

	.no_dead_strip	_isdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isdir
_isdir:                                 ; @isdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x1, LBB0_10
; %bb.1:
	mov	x19, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cbz	w0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.4:
Lloh6:
	adrp	x8, _USER_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USER_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	bl	_strerror
	mov	x4, x0
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_7
LBB0_6:
	mov	w0, #1
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x8, _W_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W_OK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_access
	cbz	x0, LBB0_11
; %bb.8:
Lloh14:
	adrp	x8, _USER_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _USER_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_strerror
	mov	x4, x0
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_display_log
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_W_OK,4,2                       ; @W_OK
	.comm	_USER_ERROR,4,2                 ; @USER_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cannot be written (%s)"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"%s: invalid output name (%s)"

	.no_dead_strip	_isdir
.subsections_via_symbols
