	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_directory
_is_directory:                          ## @is_directory
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_strlen
	movl	%eax, %ebx
	leal	3(%rbx), %edi
	callq	_alloca
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	leaq	(%r15,%rax), %rbx
	movsbl	-1(%r15,%rax), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_DIR_SEPARATOR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%rbx)
	incq	%rbx
LBB0_2:
	movw	$46, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.3:
	movsbl	(%r15), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	incq	%rbx
	subq	%r15, %rbx
	cmpq	$10, %rbx
	je	LBB0_9
## %bb.5:
	cmpq	$6, %rbx
	jne	LBB0_10
## %bb.6:
	movq	%r15, %rdi
	incq	%rdi
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_8
LBB0_9:
	leaq	1(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_13
LBB0_10:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_8
## %bb.11:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_12
LBB0_8:
	xorl	%eax, %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movsbl	4(%r15), %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:
	movq	%r15, %rdi
	addq	$5, %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_SEPARATOR,4,2              ## @DIR_SEPARATOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lib"

L_.str.1:                               ## @.str.1
	.asciz	"usr"

	.no_dead_strip	_is_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_directory
_is_directory:                          ; @is_directory
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_strlen
	mov	x22, x0
	add	w0, w0, #3
	bl	_alloca
	mov	x19, x0
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	add	x21, x19, w22, sxtw
	ldursb	w0, [x21, #-1]
	bl	_IS_DIR_SEPARATOR
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DIR_SEPARATOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIR_SEPARATOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	strb	w8, [x21], #1
LBB0_2:
	mov	w8, #46
	strh	w8, [x21], #1
	cbz	w20, LBB0_11
; %bb.3:
	ldrsb	w0, [x19]
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_11
; %bb.4:
	sub	x8, x21, x19
	cmp	x8, #10
	b.eq	LBB0_7
; %bb.5:
	cmp	x8, #6
	b.ne	LBB0_11
; %bb.6:
	add	x0, x19, #1
	b	LBB0_10
LBB0_7:
	add	x0, x19, #1
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_11
; %bb.8:
	ldrsb	w0, [x19, #4]
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_11
; %bb.9:
	add	x0, x19, #5
LBB0_10:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_14
LBB0_11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbnz	x0, #63, LBB0_13
; %bb.12:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_SEPARATOR,4,2              ; @DIR_SEPARATOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lib"

l_.str.1:                               ; @.str.1
	.asciz	"usr"

	.no_dead_strip	_is_directory
.subsections_via_symbols
