	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scan_dir                       ## -- Begin function scan_dir
	.p2align	4, 0x90
_scan_dir:                              ## @scan_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
	movl	%esi, %ebx
	callq	_zstrdup
	movq	_Dirs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdi
	movq	%rdi, %rdx
	shlq	$4, %rdx
	movl	%eax, 8(%rcx,%rdx)
	movq	$0, (%rcx,%rdx)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_storage_scan_dir
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Dirs,8,3                       ## @Dirs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"storage_scan_dir (%d) returns error code %d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scan_dir                       ; -- Begin function scan_dir
	.p2align	2
_scan_dir:                              ; @scan_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, x1
	bl	_zstrdup
Lloh0:
	adrp	x8, _Dirs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Dirs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #4
	str	w0, [x8, #8]
	str	xzr, [x8]
	mov	x0, x19
	bl	_storage_scan_dir
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Dirs,8,3                       ; @Dirs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"storage_scan_dir (%d) returns error code %d.\n"

.subsections_via_symbols
