	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsdirFilter
_fsdirFilter:                           ## @fsdirFilter
	.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	%r8, %r12
	movl	%ecx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_fsdirResetCursor
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	cmpl	%ebx, %r13d
	sete	%al
	leal	-1(%r13), %ecx
	cmpl	$2, %ecx
	setb	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	(%r12), %rdi
	callq	_sqlite3_value_text
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	cmpl	$2, %r13d
	jne	LBB0_6
## %bb.7:
	movq	8(%r12), %rdi
	callq	_sqlite3_value_text
	movq	%rax, %rbx
	movq	%rax, (%r15)
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_strlen
	incl	%eax
	movl	%eax, 8(%r15)
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_sqlite3_mprintf
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_fsdirSetErrmsg
	jmp	LBB0_16
LBB0_6:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_sqlite3_mprintf
LBB0_11:
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	leaq	24(%r15), %rsi
	movq	%rax, %rdi
	callq	_fileLinkStat
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	16(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_fsdirSetErrmsg
LBB0_16:
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"table function fsdir requires an argument"

	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"table function fsdir requires a non-NULL argument"

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

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
L_.str.4:                               ## @.str.4
	.asciz	"cannot stat file: %s"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsdirFilter
_fsdirFilter:                           ; @fsdirFilter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x20, x1
	mov	x19, x0
	bl	_fsdirResetCursor
	cbz	w20, LBB0_5
; %bb.1:
	sub	w8, w22, #1
	cmp	w22, w20
	ccmp	w8, #2, #2, eq
	cset	w0, lo
	bl	_assert
	ldr	x0, [x21]
	bl	_sqlite3_value_text
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	cmp	w22, #2
	b.ne	LBB0_7
; %bb.3:
	ldr	x0, [x21, #8]
	bl	_sqlite3_value_text
	mov	x21, x0
	str	x0, [x19]
	cbz	x21, LBB0_8
LBB0_4:
	mov	x0, x21
	bl	_strlen
	add	w8, w0, #1
	str	w8, [x19, #8]
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	b	LBB0_9
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_7:
	ldr	x21, [x19]
	cbnz	x21, LBB0_4
LBB0_8:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
LBB0_9:
	bl	_sqlite3_mprintf
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.10:
	add	x1, x19, #24
	bl	_fileLinkStat
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_fsdirSetErrmsg
Lloh10:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
LBB0_13:
	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
	add	sp, sp, #64
	ret
LBB0_14:
Lloh12:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_15:
Lloh14:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"table function fsdir requires an argument"

	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"table function fsdir requires a non-NULL argument"

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

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
l_.str.4:                               ; @.str.4
	.asciz	"cannot stat file: %s"

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