	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rst_readdir                    ## -- Begin function rst_readdir
	.p2align	4, 0x90
_rst_readdir:                           ## @rst_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %r13
	movq	_maxino@GOTPCREL(%rip), %r14
	movq	_stderr@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%rbx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	cmpq	%rax, %rcx
	jge	LBB0_6
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	movq	(%r13), %rdx
	callq	_read
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jle	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rcx
	cmpq	%rax, %rcx
	jge	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %r12
	movq	(%r12,%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	subq	%rcx, %rax
	incq	%rax
	cmpq	%rax, %rdx
	jg	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	%rcx, %r12
	addq	%rcx, %rdx
	movq	%rdx, (%rbx)
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rdx
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r14), %rdx
	jl	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dprintf
	jmp	LBB0_1
LBB0_9:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dprintf
	jmp	LBB0_10
LBB0_17:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dprintf
	jmp	LBB0_10
LBB0_13:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIRBLKSIZ,8,3                  ## @DIRBLKSIZ
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading directory\n"

L_.str.1:                               ## @.str.1
	.asciz	"corrupted directory: bad reclen %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"/"

	.comm	_maxino,8,3                     ## @maxino
L_.str.3:                               ## @.str.3
	.asciz	"corrupted directory: bad inum %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rst_readdir                    ; -- Begin function rst_readdir
	.p2align	2
_rst_readdir:                           ; @rst_readdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x24, _DIRBLKSIZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DIRBLKSIZ@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.2@PAGE
Lloh3:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh4:
	adrp	x25, _maxino@GOTPAGE
Lloh5:
	ldr	x25, [x25, _maxino@GOTPAGEOFF]
Lloh6:
	adrp	x23, _stderr@GOTPAGE
Lloh7:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.3@PAGE
Lloh9:
	add	x21, x21, l_.str.3@PAGEOFF
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_1:
	str	xzr, [x19]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
	ldr	x0, [x19, #8]
	cmp	x8, x0
	b.ge	LBB0_1
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #16]
	ldr	x2, [x24]
	bl	_read
	str	x0, [x19, #8]
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.4:
	ldr	x8, [x19]
	cmp	x8, x0
	b.ge	LBB0_1
LBB0_5:
	ldr	x9, [x19, #16]
	add	x22, x9, x8
	ldr	x9, [x22]
	cbz	x9, LBB0_12
; %bb.6:
	ldr	x10, [x24]
	sub	x10, x10, x8
	add	x10, x10, #1
	cmp	x9, x10
	b.gt	LBB0_12
; %bb.7:
	add	x8, x9, x8
	str	x8, [x19]
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_10
; %bb.8:
	ldr	w0, [x22, #16]
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.9:
	ldr	x8, [x22, #8]
LBB0_10:
	ldr	x9, [x25]
	cmp	x8, x9
	b.lt	LBB0_16
; %bb.11:
	ldr	w0, [x23]
	str	x8, [sp]
	mov	x1, x21
	bl	_dprintf
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_12:
	ldr	w0, [x23]
	str	x9, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	bl	_dprintf
LBB0_15:
	mov	x22, #0
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DIRBLKSIZ,8,3                  ; @DIRBLKSIZ
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading directory\n"

l_.str.1:                               ; @.str.1
	.asciz	"corrupted directory: bad reclen %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"/"

	.comm	_maxino,8,3                     ; @maxino
l_.str.3:                               ; @.str.3
	.asciz	"corrupted directory: bad inum %d\n"

.subsections_via_symbols
