	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bestIndex
_bestIndex:                             ## @bestIndex
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_IsVirtual
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	$0, -16(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_bestVirtualIndex
	movl	$1, %edi
	cmpq	$0, -16(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
LBB0_3:
	callq	_assert
	movq	-16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	cmpq	$0, 8(%rsi)
	je	LBB0_7
## %bb.6:
	movl	(%rsi), %edi
	callq	_sqlite3_free
	movq	-16(%rbp), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bestBtreeIndex                 ## TAILCALL
LBB0_4:
	xorl	%esi, %esi
LBB0_7:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_sqlite3DbFree
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bestIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bestIndex
_bestIndex:                             ; @bestIndex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_IsVirtual
	cbz	x0, LBB0_3
; %bb.1:
	str	xzr, [sp, #8]
	add	x8, sp, #8
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_bestVirtualIndex
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_bestBtreeIndex
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
LBB0_5:
	bl	_assert
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_8
; %bb.6:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x1]
	bl	_sqlite3_free
	ldr	x1, [sp, #8]
LBB0_8:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_sqlite3DbFree
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bestIndex
.subsections_via_symbols
