	.file	"extr_sqlite3.c_bestIndex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bestIndex, @function
bestIndex:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rax]
	call	IsVirtual@PLT
	test	rax, rax
	je	.L2
	mov	rax, rsp
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rbp], rax
	call	bestVirtualIndex@PLT
	cmp	QWORD PTR [rsp], 0
	mov	edi, 1
	je	.L13
	call	assert@PLT
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	je	.L4
.L16:
	cmp	QWORD PTR 8[rsi], 0
	jne	.L14
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rax]
	call	sqlite3DbFree@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	bestBtreeIndex@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 0[rbp]
	xor	edi, edi
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	setne	dil
	call	assert@PLT
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	jne	.L16
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [rsi]
	call	sqlite3_free@PLT
	mov	rsi, QWORD PTR [rsp]
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bestIndex, .-bestIndex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3.c_bestIndex.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bestIndex, %function
bestIndex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, [r0, #8]
	ldr	r2, .L20
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bl	IsVirtual
	cmp	r0, #0
	beq	.L2
	mov	r3, #0
	mov	r0, r4
	str	sp, [r4, #4]
	str	r3, [sp]
	bl	bestVirtualIndex
	ldr	r3, [sp]
	cmp	r3, #0
	movne	r0, #1
	beq	.L16
	bl	assert
	ldr	r1, [sp]
	cmp	r1, #0
	beq	.L4
.L19:
	ldr	r3, [r1, #4]
	cmp	r3, #0
	bne	.L17
.L4:
	ldr	r3, [r4]
	ldr	r0, [r3]
	bl	sqlite3DbFree
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L2:
	mov	r0, r4
	bl	bestBtreeIndex
	b	.L1
.L16:
	ldr	r3, [r4]
	ldr	r3, [r3]
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r1, [sp]
	cmp	r1, #0
	bne	.L19
	b	.L4
.L17:
	ldr	r0, [r1]
	bl	sqlite3_free
	ldr	r1, [sp]
	b	.L4
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	bestIndex, .-bestIndex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
