	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_cached_dir
_read_cached_dir:                       ## @read_cached_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.10:
	callq	_readdir
	movl	%eax, %ecx
	movl	%eax, 40(%rbx)
	xorl	%eax, %eax
	cmpl	$1, %ecx
	sbbl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_6
## %bb.2:
	movq	32(%rcx), %rsi
	incq	%rax
	negq	%rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rsi,%rax,8), %rdi
	cmpl	$0, 24(%rdi)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rbx)
	leaq	(%rdx,%rax), %rdi
	incq	%rdi
	incq	%rax
	cmpq	$1, %rdi
	jne	LBB0_3
LBB0_6:
	movq	$0, 32(%rbx)
	movq	8(%rbx), %rdx
	movl	$-1, %eax
	cmpq	8(%rcx), %rdx
	jge	LBB0_9
## %bb.7:
	movq	16(%rcx), %rax
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rbx)
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_8
LBB0_4:
	movq	%rdi, 32(%rbx)
	movq	%rax, (%rbx)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_cached_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_cached_dir
_read_cached_dir:                       ; @read_cached_dir
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #48]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_readdir
	str	w0, [x19, #40]
	cmp	w0, #0
	csetm	w0, eq
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x10, [x8]
	ldr	x9, [x19]
	cmp	x9, x10
	b.hs	LBB0_7
; %bb.4:
	ldr	x11, [x8, #32]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x9, lsl #3]
	ldr	w13, [x12, #24]
	cbnz	w13, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	str	x9, [x19]
	cmp	x10, x9
	b.ne	LBB0_5
LBB0_7:
	str	xzr, [x19, #32]
	ldr	x9, [x19, #8]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.ge	LBB0_9
; %bb.8:
	mov	w0, #0
	ldr	x8, [x8, #16]
	add	x10, x9, #1
	str	x10, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #16]
	b	LBB0_2
LBB0_9:
	mov	w0, #-1
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	str	x12, [x19, #32]
	add	x8, x9, #1
	str	x8, [x19]
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_cached_dir
.subsections_via_symbols
