	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function expertBestIndex
LCPI0_0:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_expertBestIndex:                       ## @expertBestIndex
	.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
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_SQLITE_INDEX_CONSTRAINT_EQ@GOTPCREL(%rip), %rcx
	movq	_SQLITE_INDEX_CONSTRAINT_GT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movq	_SQLITE_INDEX_CONSTRAINT_LT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_SQLITE_INDEX_CONSTRAINT_GE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SQLITE_INDEX_CONSTRAINT_LE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rdi
	movl	$40, %esi
	callq	_idxMalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	%rcx, 32(%rax)
	movq	8(%rbx), %rdx
	movq	(%rdx), %rcx
	movq	%rcx, 24(%rax)
	movq	%rax, (%rdx)
	movl	(%r13), %edi
	testl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	leaq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	addq	$16, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rdx
	movq	%rdx, 24(%rax)
	movq	%rax, (%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	movq	24(%r13), %rax
	movl	%r12d, (%rax,%rbx,4)
	movl	(%r13), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%edi, %rcx
	addq	$24, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %r14
	cmpq	$0, 16(%r14,%r15)
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14,%r15), %rcx
	movq	(%rsi), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rcx
	cmpq	$0, (%rdx,%rcx)
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, 8(%r14,%r15)
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_sqlite3_vtab_collation
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	callq	_idxNewConstraint
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14,%r15), %rcx
	movq	%rcx, (%rax)
	movl	8(%r14,%r15), %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	_SQLITE_INDEX_CONSTRAINT_EQ@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, 8(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_3:
	xorl	%r12d, %r12d
LBB0_14:
	movl	4(%r13), %ebx
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.15:
	incq	%rbx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_21
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r14d
	movq	16(%r13), %rax
	movl	(%rax,%r14,8), %r15d
	testl	%r15d, %r15d
	js	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rsi
	leaq	-44(%rbp), %rdi
	callq	_idxNewConstraint
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r15, (%rax)
	movq	16(%r13), %rcx
	movl	4(%rcx,%r14,8), %ecx
	movl	%ecx, 32(%rax)
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	movq	%rcx, 24(%rax)
	movq	%rcx, 16(%rax)
	movq	%rax, (%rdx)
	incl	%r12d
	jmp	LBB0_19
LBB0_21:
	incl	%r12d
	cvtsi2sd	%r12d, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%r13)
	movl	-44(%rbp), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_INDEX_CONSTRAINT_EQ,4,2 ## @SQLITE_INDEX_CONSTRAINT_EQ
	.comm	_SQLITE_INDEX_CONSTRAINT_GT,4,2 ## @SQLITE_INDEX_CONSTRAINT_GT
	.comm	_SQLITE_INDEX_CONSTRAINT_LT,4,2 ## @SQLITE_INDEX_CONSTRAINT_LT
	.comm	_SQLITE_INDEX_CONSTRAINT_GE,4,2 ## @SQLITE_INDEX_CONSTRAINT_GE
	.comm	_SQLITE_INDEX_CONSTRAINT_LE,4,2 ## @SQLITE_INDEX_CONSTRAINT_LE
	.no_dead_strip	_expertBestIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expertBestIndex
_expertBestIndex:                       ; @expertBestIndex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _SQLITE_INDEX_CONSTRAINT_EQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_INDEX_CONSTRAINT_EQ@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _SQLITE_INDEX_CONSTRAINT_GT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_INDEX_CONSTRAINT_GT@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _SQLITE_INDEX_CONSTRAINT_LT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_INDEX_CONSTRAINT_LT@GOTPAGEOFF]
Lloh11:
	ldr	w28, [x8]
Lloh12:
	adrp	x8, _SQLITE_INDEX_CONSTRAINT_GE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SQLITE_INDEX_CONSTRAINT_GE@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
Lloh15:
	adrp	x8, _SQLITE_INDEX_CONSTRAINT_LE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SQLITE_INDEX_CONSTRAINT_LE@GOTPAGEOFF]
Lloh17:
	ldr	w26, [x8]
	add	x0, sp, #12
	mov	w1, #40
	bl	_idxMalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
	ldp	x8, x9, [x20]
	ldr	x10, [x9]
	stp	x10, x8, [x0, #24]
	str	x0, [x9]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x25, #0
	mov	x9, x22
	mov	x22, #0
	mov	w23, #0
	orr	w9, w27, w9
	orr	w9, w9, w28
	orr	w9, w9, w24
	orr	w26, w9, w26
	add	x9, x21, #8
	str	x9, [sp]                        ; 8-byte Folded Spill
	add	x28, x21, #16
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x8]
	str	x9, [x0, #24]
	str	x0, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	ldr	x8, [x19, #24]
	str	w23, [x8, x22, lsl #2]
	ldr	w8, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	add	x25, x25, #24
	cmp	x22, w8, sxtw
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #32]
	add	x9, x27, x25
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x27, x25]
	ldr	x10, [x20]
	ldr	x10, [x10]
	lsl	x9, x9, #4
	ldr	x9, [x10, x9]
	cbnz	x9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x27, x25
	ldr	w9, [x24, #8]
	tst	w9, w26
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_sqlite3_vtab_collation
	mov	x1, x0
	add	x0, sp, #12
	bl	_idxNewConstraint
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27, x25]
	str	x8, [x0]
	ldr	w9, [x24, #8]
Lloh18:
	adrp	x8, _SQLITE_INDEX_CONSTRAINT_EQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SQLITE_INDEX_CONSTRAINT_EQ@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x8]
	mov	x8, x28
	cmp	w9, w10
	b.eq	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [x0, #8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	b	LBB0_3
LBB0_12:
	mov	w23, #0
	b	LBB0_20
LBB0_13:
	mov	w23, #0
LBB0_14:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.15:
	add	x22, x8, #1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	sub	x22, x22, #1
	cmp	x22, #1
	b.ls	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	w24, w22, #2
	ldr	x8, [x19, #16]
	lsl	x9, x24, #3
	ldr	w25, [x8, x9]
	tbnz	w25, #31, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x8, x8, x25, lsl #4
	ldr	x1, [x8, #8]
	add	x0, sp, #12
	bl	_idxNewConstraint
	cbz	x0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	str	x25, [x0]
	ldr	x8, [x19, #16]
	add	x8, x8, x24, lsl #3
	ldr	w8, [x8, #4]
	str	w8, [x0, #32]
	ldr	x8, [x21]
	stp	x8, x8, [x0, #16]
	str	x0, [x21]
	add	w23, w23, #1
	b	LBB0_16
LBB0_20:
	add	w8, w23, #1
	scvtf	d0, w8
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d1, x8
	fdiv	d0, d1, d0
	str	d0, [x19, #8]
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_INDEX_CONSTRAINT_EQ,4,2 ; @SQLITE_INDEX_CONSTRAINT_EQ
	.comm	_SQLITE_INDEX_CONSTRAINT_GT,4,2 ; @SQLITE_INDEX_CONSTRAINT_GT
	.comm	_SQLITE_INDEX_CONSTRAINT_LT,4,2 ; @SQLITE_INDEX_CONSTRAINT_LT
	.comm	_SQLITE_INDEX_CONSTRAINT_GE,4,2 ; @SQLITE_INDEX_CONSTRAINT_GE
	.comm	_SQLITE_INDEX_CONSTRAINT_LE,4,2 ; @SQLITE_INDEX_CONSTRAINT_LE
	.no_dead_strip	_expertBestIndex
.subsections_via_symbols
