	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function completionFilter
_completionFilter:                      ## @completionFilter
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_completionCursorReset
	testb	$1, %bl
	jne	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_9:
	movq	(%r14), %rdi
	callq	_sqlite3_value_bytes
	movq	%rax, (%r15)
	movl	$1, %r12d
	testq	%rax, %rax
	jle	LBB0_2
## %bb.10:
	movq	(%r14), %rdi
	callq	_sqlite3_value_text
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_sqlite3_mprintf
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:
	testb	$2, %bl
	je	LBB0_5
## %bb.3:
	movq	(%r14,%r12,8), %rdi
	callq	_sqlite3_value_bytes
	movl	%eax, 16(%r15)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movq	(%r14,%r12,8), %rdi
	callq	_sqlite3_value_text
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_sqlite3_mprintf
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_11
LBB0_5:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	cmpq	$0, 8(%r15)
	je	LBB0_7
LBB0_21:
	movq	$0, 40(%r15)
	movq	_COMPLETION_FIRST_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_completionNext                 ## TAILCALL
LBB0_7:
	movl	16(%r15), %r14d
	testl	%r14d, %r14d
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r14), %ebx
	movsbl	(%rax,%rbx), %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%r15), %rax
	cmpb	$95, (%rax,%rbx)
	jne	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$2, %r14
	jb	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%r15), %rax
	decq	%r14
	jmp	LBB0_13
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_8:
	movl	%r14d, %eax
	jmp	LBB0_19
LBB0_17:
	movl	%r14d, %eax
LBB0_18:
	movl	16(%r15), %r14d
LBB0_19:
	subl	%eax, %r14d
	movslq	%r14d, %rcx
	movq	%rcx, (%r15)
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.20:
	movslq	%eax, %rdx
	addq	24(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_sqlite3_mprintf
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_21
LBB0_11:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%.*s"

	.comm	_COMPLETION_FIRST_PHASE,4,2     ## @COMPLETION_FIRST_PHASE
	.no_dead_strip	_completionFilter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function completionFilter
_completionFilter:                      ; @completionFilter
	.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	x20, x4
	mov	x21, x1
	mov	x19, x0
	bl	_completionCursorReset
	tbnz	w21, #0, LBB0_2
; %bb.1:
	mov	x22, #0
	tbnz	w21, #1, LBB0_5
	b	LBB0_7
LBB0_2:
	ldr	x0, [x20]
	bl	_sqlite3_value_bytes
	str	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x20]
	bl	_sqlite3_value_text
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_sqlite3_mprintf
	str	x0, [x19, #8]
	cbz	x0, LBB0_21
LBB0_4:
	mov	w22, #1
	tbz	w21, #1, LBB0_7
LBB0_5:
	ldr	x0, [x20, x22, lsl #3]
	bl	_sqlite3_value_bytes
	str	w0, [x19, #16]
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	x0, [x20, x22, lsl #3]
	bl	_sqlite3_value_text
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_sqlite3_mprintf
	str	x0, [x19, #24]
	cbz	x0, LBB0_21
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
LBB0_9:
	str	xzr, [x19, #40]
Lloh4:
	adrp	x8, _COMPLETION_FIRST_PHASE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMPLETION_FIRST_PHASE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	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
	add	sp, sp, #64
	b	_completionNext
LBB0_10:
	ldr	w20, [x19, #16]
	cmp	w20, #1
	b.lt	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w21, w20, #1
	ldrsb	w0, [x8, x21]
	bl	_isalnum
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #24]
	ldrb	w8, [x8, x21]
	cmp	w8, #95
	b.ne	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x20, #2
	b.lo	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #24]
	sub	x20, x20, #1
	b	LBB0_11
LBB0_15:
	mov	w8, #0
	b	LBB0_18
LBB0_16:
	mov	x8, x20
	b	LBB0_19
LBB0_17:
	mov	x8, x20
LBB0_18:
	ldr	w20, [x19, #16]
LBB0_19:
	sub	w1, w20, w8
	sxtw	x9, w1
	str	x9, [x19]
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.20:
	ldr	x9, [x19, #24]
	add	x8, x9, w8, sxtw
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_sqlite3_mprintf
	str	x0, [x19, #8]
	cbnz	x0, LBB0_9
LBB0_21:
Lloh9:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh11:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%.*s"

	.comm	_COMPLETION_FIRST_PHASE,4,2     ; @COMPLETION_FIRST_PHASE
	.no_dead_strip	_completionFilter
.subsections_via_symbols
