	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function searchdir
_searchdir:                             ## @searchdir
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	cmpq	$0, _searchdir.dblk(%rip)
	jne	LBB0_3
## %bb.1:
	movq	_sblock@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%rax, _searchdir.dblk(%rip)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_quit
LBB0_3:
	movq	_sblock@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r13d, %esi
	callq	_fsbtodb
	movq	_searchdir.dblk(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_blkread
	cmpq	%r15, %rbx
	cmovlq	%rbx, %r15
	testq	%r15, %r15
	jle	LBB0_4
## %bb.5:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rdx
	xorl	%eax, %eax
	movq	_dumpinomap@GOTPCREL(%rip), %r9
	leaq	-44(%rbp), %rsi
	xorl	%r13d, %r13d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_searchdir.dblk(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r15, %r13
	jge	LBB0_31
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %r12
	movq	(%r14,%r13,4), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	addq	%r12, %r13
	movq	8(%r14,%r12,4), %r8
	testq	%r8, %r8
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rdx, %r8
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	16(%r14,%r12,4), %rcx
	cmpb	$46, (%rcx)
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	movzbl	1(%rcx), %ebx
	testb	%bl, %bl
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$46, %bl
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$0, 2(%rcx)
	je	LBB0_10
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, %rdi
	movq	%r9, %rbx
	callq	_getino
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14,%r12,4), %rdi
	movl	(%rbx), %esi
	callq	_TSTINO
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14,%r12,4), %rdi
	movl	(%rbx), %esi
	callq	_CLRINO
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_blockest
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, (%rcx)
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %eax
	movq	_IFDIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14,%r12,4), %rdi
	movq	_dumpdirmap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SETINO
	movq	8(%r14,%r12,4), %rdi
	movq	_usedinomap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CLRINO
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_HASSUBDIRS@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jmp	LBB0_22
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r9), %esi
	movq	%r8, %rdi
	callq	_TSTINO
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_HASDUMPEDFILE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_HASSUBDIRS@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_27
	jmp	LBB0_31
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbp), %rdx
	movq	%rbx, %r9
	leaq	-44(%rbp), %rsi
	cmpq	%r15, %r13
	jl	LBB0_6
	jmp	LBB0_31
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	8(%r14,%r12,4), %rdi
	movq	_dumpdirmap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TSTINO
	testq	%rax, %rax
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rax
	movq	_HASSUBDIRS@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_HASDUMPEDFILE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	movq	16(%rbp), %rdx
	movq	_dumpinomap@GOTPCREL(%rip), %r9
	leaq	-44(%rbp), %rsi
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r15, %r13
	jl	LBB0_6
	jmp	LBB0_31
LBB0_28:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rax
	movq	16(%rbp), %rdx
	movq	_dumpinomap@GOTPCREL(%rip), %r9
	leaq	-44(%rbp), %rsi
	cmpq	%r15, %r13
	jl	LBB0_6
	jmp	LBB0_31
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rbx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_msg
	movq	%rbx, %rax
	jmp	LBB0_31
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %r14
	movl	%r8d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_msg
	movq	%r14, %rax
LBB0_31:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_searchdir.dblk,8,3 ## @searchdir.dblk
	.comm	_sblock,8,3                     ## @sblock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"searchdir: cannot allocate indirect memory.\n"

L_.str.1:                               ## @.str.1
	.asciz	"corrupted directory, inumber %ju\n"

L_.str.2:                               ## @.str.2
	.asciz	"corrupted directory entry, d_ino %ju >= %ju\n"

	.comm	_dumpinomap,4,2                 ## @dumpinomap
	.comm	_IFDIR,4,2                      ## @IFDIR
	.comm	_dumpdirmap,4,2                 ## @dumpdirmap
	.comm	_usedinomap,4,2                 ## @usedinomap
	.comm	_HASSUBDIRS,8,3                 ## @HASSUBDIRS
	.comm	_HASDUMPEDFILE,8,3              ## @HASDUMPEDFILE
	.no_dead_strip	_searchdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function searchdir
_searchdir:                             ; @searchdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
	adrp	x26, _searchdir.dblk@PAGE
	ldr	x8, [x26, _searchdir.dblk@PAGEOFF]
Lloh0:
	adrp	x27, _sblock@GOTPAGE
Lloh1:
	ldr	x27, [x27, _sblock@GOTPAGEOFF]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x27]
	ldr	w0, [x8]
	bl	_malloc
	str	x0, [x26, _searchdir.dblk@PAGEOFF]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_quit
LBB0_3:
	ldr	x0, [x27]
	mov	x1, x25
	bl	_fsbtodb
	ldr	x1, [x26, _searchdir.dblk@PAGEOFF]
	mov	x2, x24
	bl	_blkread
	cmp	x23, x24
	csel	x25, x23, x24, lt
	cmp	x25, #1
	b.lt	LBB0_25
; %bb.4:
	mov	x23, #0
	mov	x27, #0
Lloh4:
	adrp	x24, _dumpinomap@GOTPAGE
Lloh5:
	ldr	x24, [x24, _dumpinomap@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x26, _searchdir.dblk@PAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	x27, x25
	b.ge	LBB0_29
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x28, x9, x27, lsl #2
	ldr	x8, [x28]
	cbz	x8, LBB0_26
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x8, x27
	ldr	x8, [x28, #8]
	cbz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x8, x19
	b.ge	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x28, #16]
	ldrb	w11, [x10]
	cmp	w11, #46
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w11, [x10, #1]
	cbz	w11, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	w11, #46
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w10, [x10, #2]
	cbz	w10, LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	x20, x22
	add	x1, sp, #28
	mov	x0, x8
	bl	_getino
	mov	x22, x0
	ldr	x0, [x28, #8]
	ldr	w1, [x24]
	bl	_TSTINO
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28, #8]
	ldr	w1, [x24]
	bl	_CLRINO
	mov	x0, x22
	bl	_blockest
	mov	x9, x20
	ldr	x8, [x20]
	sub	x8, x8, x0
	str	x8, [x20]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #28]
Lloh6:
	adrp	x9, _IFDIR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFDIR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28, #8]
Lloh9:
	adrp	x8, _dumpdirmap@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dumpdirmap@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SETINO
	ldr	x0, [x28, #8]
Lloh12:
	adrp	x8, _usedinomap@GOTPAGE
Lloh13:
	ldr	x8, [x8, _usedinomap@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_CLRINO
Lloh15:
	adrp	x8, _HASSUBDIRS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HASSUBDIRS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	orr	x23, x8, x23
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x20
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24]
	mov	x0, x8
	bl	_TSTINO
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x8, _HASDUMPEDFILE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HASDUMPEDFILE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	orr	x23, x8, x23
Lloh21:
	adrp	x8, _HASSUBDIRS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HASSUBDIRS@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	tst	x23, x8
	b.ne	LBB0_29
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28, #8]
Lloh24:
	adrp	x8, _dumpdirmap@GOTPAGE
Lloh25:
	ldr	x8, [x8, _dumpdirmap@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_TSTINO
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh27:
	adrp	x8, _HASSUBDIRS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HASSUBDIRS@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	orr	x23, x8, x23
Lloh30:
	adrp	x8, _HASDUMPEDFILE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HASDUMPEDFILE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	tst	x23, x8
	b.ne	LBB0_29
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x27, x25
	b.lt	LBB0_5
	b	LBB0_29
LBB0_25:
	mov	x23, #0
	b	LBB0_29
LBB0_26:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	b	LBB0_28
LBB0_27:
	str	x19, [sp]
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x8
LBB0_28:
	bl	_msg
LBB0_29:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_searchdir.dblk,8,3 ; @searchdir.dblk
	.comm	_sblock,8,3                     ; @sblock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"searchdir: cannot allocate indirect memory.\n"

l_.str.1:                               ; @.str.1
	.asciz	"corrupted directory, inumber %ju\n"

l_.str.2:                               ; @.str.2
	.asciz	"corrupted directory entry, d_ino %ju >= %ju\n"

	.comm	_dumpinomap,4,2                 ; @dumpinomap
	.comm	_IFDIR,4,2                      ; @IFDIR
	.comm	_dumpdirmap,4,2                 ; @dumpdirmap
	.comm	_usedinomap,4,2                 ; @usedinomap
	.comm	_HASSUBDIRS,8,3                 ; @HASSUBDIRS
	.comm	_HASDUMPEDFILE,8,3              ; @HASDUMPEDFILE
	.no_dead_strip	_searchdir
.subsections_via_symbols
