	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ufs_readdir
_ufs_readdir:                           ## @ufs_readdir
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	(%rbx), %r12
	movq	_di_size@GOTPCREL(%rip), %r14
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_DIP
	cmpq	%rax, %r12
	jge	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	callq	_buf_read_file
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax
	movq	(%rbx), %r12
	addq	(%rax), %r12
	movq	%r12, (%rbx)
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.5:
	movl	20(%rax), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 4(%rdx)
	movl	(%rdx), %edi
	movl	16(%rax), %esi
	callq	_strcpy
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_di_size,4,2                    ## @di_size
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ufs_readdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ufs_readdir
_ufs_readdir:                           ; @ufs_readdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x23, [x21]
Lloh0:
	adrp	x22, _di_size@GOTPAGE
Lloh1:
	ldr	x22, [x22, _di_size@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x21
	bl	_DIP
	cmp	x23, x0
	b.ge	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_buf_read_file
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	ldr	x10, [x21]
	add	x23, x10, x9
	str	x23, [x21]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_1
; %bb.4:
	ldr	w9, [x8, #20]
	str	w9, [x19, #4]
	ldr	w0, [x19]
	ldr	w1, [x8, #16]
	bl	_strcpy
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_di_size,4,2                    ; @di_size
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ufs_readdir
.subsections_via_symbols
