	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function fsdirNext
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fsdirNext:                             ## @fsdirNext
	.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, %r15
	movl	16(%rdi), %edi
	incl	32(%r15)
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movslq	(%r15), %r12
	leaq	1(%r12), %rbx
	cmpl	4(%r15), %ebx
	jge	LBB0_3
## %bb.2:
	movq	24(%r15), %r14
	jmp	LBB0_5
LBB0_3:
	addl	$2, %r12d
	movl	%r12d, %esi
	shll	$4, %esi
	movq	24(%r15), %rdi
	callq	_sqlite3_realloc64
	testq	%rax, %rax
	je	LBB0_23
## %bb.4:
	movq	%rax, %r14
	movslq	4(%r15), %rdi
	movl	%r12d, %edx
	subl	%edi, %edx
	shlq	$4, %rdi
	addq	%rax, %rdi
	shll	$4, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, 24(%r15)
	movl	%r12d, 4(%r15)
LBB0_5:
	movl	%ebx, (%r15)
	movq	8(%r15), %rdi
	shlq	$4, %rbx
	movq	%rdi, 8(%r14,%rbx)
	movq	$0, 8(%r15)
	callq	_opendir
	movq	%rax, (%r14,%rbx)
	testq	%rax, %rax
	je	LBB0_20
LBB0_6:
	movl	(%r15), %eax
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:
	leaq	16(%r15), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %eax
	testl	%eax, %eax
	js	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %r12
	movl	%eax, %ebx
	shlq	$4, %rbx
	movq	(%r12,%rbx), %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r13
	movq	(%rax), %rax
	cmpb	$46, (%rax)
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movzbl	1(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$46, %cl
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$0, 2(%rax)
	je	LBB0_8
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r12,%rbx), %r13
	movq	(%r13), %rdi
	callq	_closedir
	movq	8(%r12,%rbx), %rdi
	callq	_sqlite3_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movl	(%r15), %eax
	decl	%eax
	movl	%eax, (%r15)
	testl	%eax, %eax
	jns	LBB0_9
LBB0_15:
	movq	8(%r15), %rdi
	callq	_sqlite3_free
	movq	$0, 8(%r15)
LBB0_16:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_17:
	movq	8(%r15), %rdi
	callq	_sqlite3_free
	movq	8(%r12,%rbx), %rsi
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_sqlite3_mprintf
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_fileLinkStat
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:
	movq	8(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_23:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_20:
	movq	8(%r15), %rdx
	leaq	L_.str(%rip), %rsi
LBB0_21:
	movq	%r15, %rdi
	callq	_fsdirSetErrmsg
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot read directory: %s"

	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

L_.str.2:                               ## @.str.2
	.asciz	"cannot stat file: %s"

	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_fsdirNext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsdirNext
_fsdirNext:                             ; @fsdirNext
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	w0, [x20, #16]!
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	bl	_S_ISDIR
	cbz	x0, LBB0_6
; %bb.1:
	ldp	w8, w9, [x19]
	add	w22, w8, #1
	cmp	w22, w9
	b.ge	LBB0_3
; %bb.2:
	ldr	x21, [x19, #24]
	b	LBB0_5
LBB0_3:
	add	w23, w8, #2
	lsl	w1, w23, #4
	ldr	x0, [x19, #24]
	bl	_sqlite3_realloc64
	cbz	x0, LBB0_19
; %bb.4:
	mov	x21, x0
	ldrsw	x8, [x19, #4]
	add	x0, x0, x8, lsl #4
	sub	w8, w23, w8
	lsl	w2, w8, #4
	mov	w1, #0
	bl	_memset
	str	x21, [x19, #24]
	str	w23, [x19, #4]
LBB0_5:
	str	w22, [x19]
	ldr	x0, [x19, #8]
	add	x21, x21, w22, sxtw #4
	str	x0, [x21, #8]
	str	xzr, [x19, #8]
	bl	_opendir
	str	x0, [x21]
	cbz	x0, LBB0_20
LBB0_6:
	ldr	w8, [x19]
	tbz	w8, #31, LBB0_8
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #24]
	mov	w23, w8
	add	x24, x22, w8, uxtw #4
	ldr	x0, [x24]
	bl	_readdir
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	ldr	x8, [x0]
	ldrb	w9, [x8]
	cmp	w9, #46
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w9, [x8, #1]
	cbz	w9, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w9, #46
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x8, #2]
	cbz	w8, LBB0_7
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x24]
	bl	_closedir
	add	x8, x22, x23, lsl #4
	ldr	x0, [x8, #8]
	bl	_sqlite3_free
	stp	xzr, xzr, [x24]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	tbz	w8, #31, LBB0_8
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_sqlite3_free
	str	xzr, [x19, #8]
LBB0_15:
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_sqlite3_free
	add	x8, x22, x23, lsl #4
	ldr	x1, [x8, #8]
	ldr	x2, [x21]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_sqlite3_mprintf
	str	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.17:
	mov	x1, x20
	bl	_fileLinkStat
	cbz	x0, LBB0_15
; %bb.18:
	ldr	x2, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh6:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
	ldr	x2, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_fsdirSetErrmsg
Lloh10:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot read directory: %s"

	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

l_.str.2:                               ; @.str.2
	.asciz	"cannot stat file: %s"

	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_fsdirNext
.subsections_via_symbols
