	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_dirpath
_check_dirpath:                         ## @check_dirpath
	.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
	movq	%rdi, %r14
	movb	1(%rdi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	leaq	1(%r14), %rbx
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r12d
	cmpb	$47, %al
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	movl	$1, %r12d
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$47, (%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_3
	jmp	LBB0_10
LBB0_1:
	movl	$1, %r12d
LBB0_10:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	jne	LBB0_13
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_dirpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_dirpath
_check_dirpath:                         ; @check_dirpath
	.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	x19, x0
	ldrb	w8, [x0, #1]
	cbz	w8, LBB0_10
; %bb.1:
	add	x21, x19, #2
	mov	w22, #47
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #47
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sturb	wzr, [x21, #-1]
	add	x1, sp, #8
	mov	x0, x19
	bl	_lstat
	tbnz	x0, #63, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #1
	cbnz	w20, LBB0_9
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #0
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	sturb	w22, [x21, #-1]
	cbz	w20, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_2
	b	LBB0_11
LBB0_10:
	mov	w20, #1
LBB0_11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_lstat
	tbnz	x0, #63, LBB0_13
; %bb.12:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbnz	w0, LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_dirpath
.subsections_via_symbols
