	.file	"extr_build.c_estimateIndexWidth.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	estimateIndexWidth, @function
estimateIndexWidth:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 24[rdi]
	mov	edx, DWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rax]
	test	edx, edx
	jle	.L6
	xor	ebx, ebx
	xor	r13d, r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 24[rbp]
.L5:
	mov	rdx, QWORD PTR 8[rbp]
	xor	edi, edi
	mov	r12, QWORD PTR [rdx+rbx*8]
	cmp	QWORD PTR [rax], r12
	setg	dil
	call	assert@PLT
	mov	eax, 1
	test	r12, r12
	js	.L3
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	eax, DWORD PTR [r14+rax*4]
.L3:
	add	r13d, eax
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L4
	lea	edi, 0[0+r13*4]
.L2:
	call	sqlite3LogEst@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	DWORD PTR 16[rbp], eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	edi, edi
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	estimateIndexWidth, .-estimateIndexWidth
	.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_build.c_estimateIndexWidth.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	estimateIndexWidth, %function
estimateIndexWidth:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	ldr	r3, [r0, #12]
	cmp	r2, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r8, [r3, #4]
	ble	.L6
	mov	r4, #0
	mov	r7, r4
	b	.L5
.L4:
	ldr	r3, [r5, #12]
.L5:
	ldr	r2, [r5, #4]
	ldr	r0, [r3]
	ldr	r6, [r2, r4, lsl #2]
	cmp	r0, r6
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	cmp	r6, #0
	movlt	r2, #1
	ldrge	r3, [r5, #4]
	ldrge	r3, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldrge	r2, [r8, r3, lsl #2]
	ldr	r3, [r5]
	add	r7, r7, r2
	cmp	r3, r4
	bgt	.L4
	lsl	r0, r7, #2
.L2:
	bl	sqlite3LogEst
	str	r0, [r5, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, #0
	b	.L2
	.size	estimateIndexWidth, .-estimateIndexWidth
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
