	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsck_readdir
_fsck_readdir:                          ## @fsck_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
	cmpq	$0, 8(%rdi)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r13
	movq	_sblock@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	imulq	(%rdi), %rbx
	cmpq	%rbx, 16(%rdi)
	jge	LBB0_5
## %bb.2:
	movl	32(%r13), %edi
	movq	%rbx, %rsi
	callq	_getdirblk
	movq	%rax, %r15
	movq	16(%r13), %r12
	movq	(%rax), %r14
	addq	%r12, %r14
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.3:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_10
	jmp	LBB0_8
LBB0_7:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_10
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_dircheck
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	16(%r13), %r12
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %rsi
LBB0_10:
	movq	(%r14), %rax
	addq	%rax, %r12
	movq	%r12, 16(%r13)
	subq	%rax, 8(%r13)
	jle	LBB0_6
## %bb.11:
	cmpq	%rbx, %r12
	jge	LBB0_6
## %bb.12:
	movq	(%rsi), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_15
	jmp	LBB0_6
LBB0_14:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	je	LBB0_6
LBB0_15:
	addq	(%r15), %r12
	movq	%rsi, %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_dircheck
	testq	%rax, %rax
	jne	LBB0_6
## %bb.16:
	movq	%rbx, %rcx
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_17:
	movb	$1, %sil
                                        ## implicit-def: $r12
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %rcx
LBB0_18:
	movq	(%rcx), %rbx
	movq	16(%r13), %rcx
	movq	%rcx, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_20
## %bb.19:
	movq	%rcx, %rax
	cqto
	idivq	%rbx
	jmp	LBB0_21
LBB0_20:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_21:
	subq	%rdx, %rbx
	addq	%rbx, %rcx
	movq	%rcx, 16(%r13)
	subq	%rbx, 8(%r13)
	movq	24(%r13), %rax
	movq	_IGNORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	testb	%sil, %sil
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movq	%rbx, (%r14)
	jmp	LBB0_26
LBB0_25:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	addq	%rbx, (%r14)
LBB0_26:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dofix
	testq	%rax, %rax
	je	LBB0_6
## %bb.27:
	movq	%r15, %rdi
	callq	_dirty
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_sblock,8,3                     ## @sblock
	.comm	_DIRBLKSIZ,8,3                  ## @DIRBLKSIZ
	.comm	_IGNORE,8,3                     ## @IGNORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIRECTORY CORRUPTED"

	.no_dead_strip	_fsck_readdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsck_readdir
_fsck_readdir:                          ; @fsck_readdir
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _sblock@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sblock@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mul	x22, x9, x8
	ldr	x8, [x0, #16]
	cmp	x8, x22
	b.ge	LBB0_11
; %bb.2:
	ldr	w0, [x20, #32]
	mov	x1, x22
	bl	_getdirblk
	mov	x21, x0
	ldr	x9, [x0]
	ldr	x8, [x20, #16]
	add	x19, x8, x9
Lloh3:
	adrp	x23, _DIRBLKSIZ@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DIRBLKSIZ@GOTPAGEOFF]
	ldr	x9, [x23]
	sdiv	x10, x8, x9
	msub	x9, x10, x9, x8
	cbnz	x9, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_dircheck
	cbz	x0, LBB0_9
; %bb.4:
	ldr	x8, [x20, #16]
LBB0_5:
	ldr	x9, [x19]
	add	x8, x8, x9
	ldr	x10, [x20, #8]
	sub	x9, x10, x9
	stp	x9, x8, [x20, #8]
	cmp	x9, #1
	ccmp	x8, x22, #0, ge
	b.ge	LBB0_12
; %bb.6:
	ldr	x9, [x23]
	sdiv	x10, x8, x9
	msub	x9, x10, x9, x8
	cbz	x9, LBB0_12
; %bb.7:
	ldr	x9, [x21]
	add	x22, x9, x8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_dircheck
	cbnz	x0, LBB0_12
; %bb.8:
	mov	w8, #0
	b	LBB0_10
LBB0_9:
	mov	w8, #1
                                        ; implicit-def: $x22
LBB0_10:
	ldr	x9, [x23]
	ldp	x11, x10, [x20, #8]
	sdiv	x12, x10, x9
	neg	x13, x10
	madd	x12, x12, x9, x13
	add	x23, x9, x12
	add	x9, x23, x10
	sub	x10, x11, x23
	stp	x10, x9, [x20, #8]
	ldr	x9, [x20, #24]
Lloh5:
	adrp	x10, _IGNORE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IGNORE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	tbz	w8, #0, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	str	x23, [x19]
	b	LBB0_16
LBB0_15:
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	x8, [x19]
	add	x8, x8, x23
	str	x8, [x19]
LBB0_16:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dofix
	cbz	x0, LBB0_12
; %bb.17:
	mov	x0, x21
	bl	_dirty
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sblock,8,3                     ; @sblock
	.comm	_DIRBLKSIZ,8,3                  ; @DIRBLKSIZ
	.comm	_IGNORE,8,3                     ; @IGNORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIRECTORY CORRUPTED"

	.no_dead_strip	_fsck_readdir
.subsections_via_symbols
