	.file	"extr_closure.c_closureBestIndex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	closureBestIndex, @function
closureBestIndex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, DWORD PTR [rsi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	rax, QWORD PTR 40[rsi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, QWORD PTR [rdi]
	mov	QWORD PTR -40[rsp], rbx
	test	r15d, r15d
	jle	.L2
	mov	rbx, QWORD PTR SQLITE_INDEX_CONSTRAINT_LT[rip]
	lea	r9d, -1[r15]
	xor	ecx, ecx
	xor	edx, edx
	mov	r8, QWORD PTR .LC3[rip]
	mov	DWORD PTR -12[rsp], r9d
	mov	r10d, 1
	mov	QWORD PTR -32[rsp], rbx
	mov	rbx, QWORD PTR SQLITE_INDEX_CONSTRAINT_LE[rip]
	mov	QWORD PTR -24[rsp], rdi
	mov	r14, QWORD PTR CLOSURE_COL_ROOT[rip]
	movq	xmm1, r8
	mov	QWORD PTR -8[rsp], rbx
	mov	r11, QWORD PTR SQLITE_INDEX_CONSTRAINT_EQ[rip]
	mov	r13, QWORD PTR CLOSURE_COL_DEPTH[rip]
	mov	r12, QWORD PTR CLOSURE_COL_TABLENAME[rip]
	mov	rbp, QWORD PTR CLOSURE_COL_IDCOLUMN[rip]
	mov	rbx, QWORD PTR CLOSURE_COL_PARENTCOLUMN[rip]
	movsd	xmm0, QWORD PTR .LC0[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	test	dl, -16
	jne	.L5
	cmp	QWORD PTR 8[rax], r13
	je	.L34
.L5:
	test	dh, 15
	jne	.L8
	cmp	QWORD PTR 8[rax], r12
	je	.L35
.L8:
	test	dh, -16
	jne	.L9
	cmp	QWORD PTR 8[rax], rbp
	je	.L36
.L9:
	test	edx, 983040
	jne	.L3
	cmp	QWORD PTR 8[rax], rbx
	je	.L37
.L3:
	add	rax, 24
	lea	r8, 1[rcx]
	cmp	rcx, r9
	je	.L38
.L22:
	mov	rcx, r8
.L10:
	cmp	QWORD PTR [rax], 0
	je	.L3
	test	dl, 1
	jne	.L4
	cmp	QWORD PTR 8[rax], r14
	jne	.L4
	cmp	QWORD PTR 16[rax], r11
	jne	.L4
	mov	r8, QWORD PTR 32[rsi]
	or	edx, 1
	movabs	rdi, 4294967297
	divsd	xmm0, QWORD PTR .LC2[rip]
	mov	QWORD PTR [r8+rcx*8], rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r8, QWORD PTR 16[rax]
	cmp	r8, QWORD PTR -32[rsp]
	je	.L6
	cmp	r8, QWORD PTR -8[rsp]
	je	.L7
	cmp	r11, r8
	jne	.L5
.L7:
	mov	r8d, r10d
	add	r10d, 1
	sal	r8d, 4
	or	edx, r8d
	mov	r8, QWORD PTR 32[rsi]
	mov	DWORD PTR [r8+rcx*8], r10d
.L19:
	divsd	xmm0, xmm1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	r11, QWORD PTR 16[rax]
	jne	.L8
	mov	r8d, r10d
	add	r10d, 1
	divsd	xmm0, QWORD PTR .LC3[rip]
	sal	r8d, 8
	or	edx, r8d
	mov	r8, QWORD PTR 32[rsi]
	lea	r8, [r8+rcx*8]
	mov	DWORD PTR [r8], r10d
	mov	DWORD PTR 4[r8], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L36:
	cmp	r11, QWORD PTR 16[rax]
	jne	.L9
	mov	r8d, r10d
	add	r10d, 1
	sal	r8d, 12
	or	edx, r8d
	mov	r8, QWORD PTR 32[rsi]
	lea	r8, [r8+rcx*8]
	mov	DWORD PTR [r8], r10d
	mov	DWORD PTR 4[r8], 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L37:
	cmp	r11, QWORD PTR 16[rax]
	jne	.L3
	mov	r8d, r10d
	add	r10d, 1
	add	rax, 24
	sal	r8d, 16
	or	edx, r8d
	mov	r8, QWORD PTR 32[rsi]
	lea	r8, [r8+rcx*8]
	mov	DWORD PTR [r8], r10d
	mov	DWORD PTR 4[r8], 1
	lea	r8, 1[rcx]
	cmp	rcx, r9
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L38:
	cmp	QWORD PTR -40[rsp], 0
	mov	rdi, QWORD PTR -24[rsp]
	jne	.L11
	test	dh, 15
	je	.L39
.L11:
	cmp	QWORD PTR 8[rdi], 0
	jne	.L13
	test	dh, -16
	je	.L31
.L13:
	cmp	QWORD PTR 16[rdi], 0
	je	.L40
.L15:
	test	dl, 1
	je	.L31
	cmp	DWORD PTR 8[rsi], 1
	mov	DWORD PTR 4[rsi], edx
	je	.L41
.L18:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR SQLITE_OK[rip]
	movsd	QWORD PTR 16[rsi], xmm0
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	test	edx, 983040
	jne	.L15
.L31:
	mulsd	xmm0, QWORD PTR .LC4[rip]
	test	r15d, r15d
	jle	.L32
	lea	eax, -1[r15]
	mov	DWORD PTR -12[rsp], eax
.L12:
	mov	rdx, QWORD PTR 32[rsi]
	mov	ecx, DWORD PTR -12[rsp]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L42:
	add	rax, 8
.L17:
	mov	DWORD PTR [rdx], 0
	mov	rdx, rax
	cmp	rcx, rax
	jne	.L42
.L32:
	xor	edx, edx
.L43:
	cmp	DWORD PTR 8[rsi], 1
	mov	DWORD PTR 4[rsi], edx
	jne	.L18
.L41:
	mov	rax, QWORD PTR 24[rsi]
	mov	rdi, QWORD PTR CLOSURE_COL_ID[rip]
	cmp	QWORD PTR [rax], rdi
	jne	.L18
	cmp	QWORD PTR 8[rax], 0
	jne	.L18
	mov	DWORD PTR 12[rsi], 1
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, r10d
	add	r10d, 1
	sal	r8d, 4
	or	edx, r8d
	mov	r8, QWORD PTR 32[rsi]
	or	edx, 2
	mov	DWORD PTR [r8+rcx*8], r10d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L39:
	mulsd	xmm0, QWORD PTR .LC4[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	QWORD PTR -40[rsp], 0
	je	.L24
	cmp	QWORD PTR 8[rdi], 0
	movsd	xmm0, QWORD PTR .LC0[rip]
	je	.L31
	xor	edx, edx
	cmp	QWORD PTR 16[rdi], 0
	je	.L31
	jmp	.L15
.L24:
	movsd	xmm0, QWORD PTR .LC1[rip]
	xor	edx, edx
	jmp	.L43
	.cfi_endproc
.LFE0:
	.size	closureBestIndex, .-closureBestIndex
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_INDEX_CONSTRAINT_LT,8,8
	.comm	SQLITE_INDEX_CONSTRAINT_LE,8,8
	.comm	SQLITE_INDEX_CONSTRAINT_EQ,8,8
	.comm	CLOSURE_COL_TABLENAME,8,8
	.comm	CLOSURE_COL_ROOT,8,8
	.comm	CLOSURE_COL_PARENTCOLUMN,8,8
	.comm	CLOSURE_COL_IDCOLUMN,8,8
	.comm	CLOSURE_COL_ID,8,8
	.comm	CLOSURE_COL_DEPTH,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1097011920
	.align 8
.LC1:
	.long	1129802012
	.long	1201543096
	.align 8
.LC2:
	.long	0
	.long	1079574528
	.align 8
.LC3:
	.long	0
	.long	1075052544
	.align 8
.LC4:
	.long	966823146
	.long	1177108057
	.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_closure.c_closureBestIndex.c"
	.text
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	closureBestIndex, %function
closureBestIndex:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r1]
	ldr	r2, [r0]
	sub	sp, sp, #44
	cmp	r6, #0
	mov	r7, r1
	ldr	r3, [r1, #32]
	str	r0, [sp, #24]
	str	r2, [sp, #28]
	ble	.L2
	mov	r5, #0
	ldr	r2, .L40
	ldr	r10, .L40+4
	ldr	r2, [r2]
	ldr	lr, .L40+8
	str	r2, [sp, #4]
	ldr	r2, [r10]
	ldr	r0, .L40+12
	str	r2, [sp, #8]
	ldr	r2, [lr]
	ldr	r1, .L40+16
	str	r2, [sp, #32]
	ldr	r2, .L40+20
	ldr	r9, .L40+24
	ldr	r2, [r2]
	mov	fp, #0
	str	r2, [sp, #36]
	ldr	r2, [r0]
	mov	r8, #1
	str	r2, [sp, #12]
	ldr	r2, [r1]
	mov	r4, r5
	str	r2, [sp, #16]
	ldr	r2, .L40+28
	ldr	ip, .L40+32
	ldr	r2, [r2]
	ldr	r9, [r9]
	str	r2, [sp, #20]
	add	r10, r3, #12
	b	.L10
.L4:
	tst	r4, #240
	bne	.L5
	ldr	r3, [r10, #-8]
	ldr	r2, [sp, #8]
	cmp	r3, r2
	beq	.L32
.L5:
	tst	r4, #3840
	bne	.L8
	ldr	r3, [r10, #-8]
	ldr	r2, [sp, #12]
	cmp	r3, r2
	beq	.L33
.L8:
	tst	r4, #61440
	bne	.L9
	ldr	r3, [r10, #-8]
	ldr	r2, [sp, #16]
	cmp	r3, r2
	beq	.L34
.L9:
	tst	r4, #983040
	bne	.L3
	ldr	r3, [r10, #-8]
	ldr	r2, [sp, #20]
	cmp	r3, r2
	beq	.L35
.L3:
	add	r5, r5, #1
	cmp	r6, r5
	add	r10, r10, #12
	beq	.L36
.L10:
	ldr	r3, [r10, #-12]
	cmp	r3, #0
	beq	.L3
	tst	r4, #1
	bne	.L4
	ldr	r3, [r10, #-8]
	ldr	r2, [sp, #4]
	cmp	r3, r2
	bne	.L4
	ldr	r3, [r10, #-4]
	cmp	r3, r9
	bne	.L4
	mov	r1, ip
	mov	ip, #1
	ldr	r3, [r7, #28]
	mov	r0, fp
	add	r2, r3, r5, lsl #3
	str	ip, [r3, r5, lsl #3]
	str	ip, [r2, #4]
	ldr	r3, .L40+36
	mov	r2, #0
	bl	__aeabi_ddiv
	orr	r4, r4, #1
	mov	fp, r0
	mov	ip, r1
	b	.L4
.L32:
	ldr	r3, [r10, #-4]
	ldr	r2, [sp, #32]
	cmp	r3, r2
	beq	.L6
	ldr	r2, [sp, #36]
	cmp	r3, r2
	beq	.L7
	cmp	r9, r3
	bne	.L5
.L7:
	ldr	r3, [r7, #28]
	orr	r4, r4, r8, lsl #4
	add	r8, r8, #1
	str	r8, [r3, r5, lsl #3]
.L19:
	mov	r0, fp
	mov	r1, ip
	mov	r2, #0
	ldr	r3, .L40+40
	bl	__aeabi_ddiv
	mov	fp, r0
	mov	ip, r1
	b	.L5
.L33:
	ldr	r3, [r10, #-4]
	cmp	r9, r3
	bne	.L8
	ldr	r3, [r7, #28]
	orr	r4, r4, r8, lsl #8
	add	r8, r8, #1
	add	r2, r3, r5, lsl #3
	str	r8, [r3, r5, lsl #3]
	mov	r3, #1
	mov	r0, fp
	str	r3, [r2, #4]
	mov	r1, ip
	mov	r2, #0
	ldr	r3, .L40+40
	bl	__aeabi_ddiv
	mov	fp, r0
	mov	ip, r1
	b	.L8
.L34:
	ldr	r3, [r10, #-4]
	cmp	r9, r3
	bne	.L9
	ldr	r3, [r7, #28]
	orr	r4, r4, r8, lsl #12
	add	r8, r8, #1
	add	r2, r3, r5, lsl #3
	str	r8, [r3, r5, lsl #3]
	mov	r3, #1
	str	r3, [r2, #4]
	b	.L9
.L35:
	ldr	r3, [r10, #-4]
	cmp	r9, r3
	bne	.L3
	ldr	r3, [r7, #28]
	orr	r4, r4, r8, lsl #16
	add	r8, r8, #1
	add	r2, r3, r5, lsl #3
	str	r8, [r3, r5, lsl #3]
	mov	r3, #1
	add	r5, r5, #1
	cmp	r6, r5
	str	r3, [r2, #4]
	add	r10, r10, #12
	bne	.L10
.L36:
	ldr	r2, [sp, #28]
	and	r3, r4, #3840
	orrs	r3, r3, r2
	andne	r2, r4, #61440
	beq	.L37
.L20:
	ldr	r3, [sp, #24]
	ldr	r3, [r3, #4]
	orrs	r3, r2, r3
	bne	.L13
.L30:
	mov	r0, fp
	mov	r1, ip
	ldr	r2, .L40+44
	ldr	r3, .L40+48
	bl	__aeabi_dmul
	mov	fp, r0
	mov	ip, r1
.L14:
	cmp	r6, #0
	ble	.L21
.L12:
	mov	r3, #0
	mov	r1, r3
	ldr	r2, [r7, #28]
.L17:
	str	r1, [r2, r3, lsl #3]
	add	r3, r3, #1
	cmp	r3, r6
	bne	.L17
.L21:
	mov	r4, #0
	ldr	r3, [r7, #8]
	str	r4, [r7, #4]
	cmp	r3, #1
	bne	.L18
.L39:
	ldr	r2, [r7, #24]
	ldr	r1, .L40+52
	ldr	r0, [r2]
	ldr	r1, [r1]
	cmp	r0, r1
	bne	.L18
	ldr	r2, [r2, #4]
	cmp	r2, #0
	streq	r3, [r7, #12]
	b	.L18
.L13:
	ldr	r3, [sp, #24]
	and	r2, r4, #983040
	ldr	r3, [r3, #8]
	orrs	r3, r2, r3
	beq	.L30
	tst	r4, #1
	beq	.L38
.L16:
	ldr	r3, [r7, #8]
	str	r4, [r7, #4]
	cmp	r3, #1
	beq	.L39
.L18:
	ldr	r3, .L40+56
	str	fp, [r7, #16]
	str	ip, [r7, #20]
	ldr	r0, [r3]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	mov	r0, fp
	mov	r1, ip
	ldr	r2, .L40+44
	ldr	r3, .L40+48
	bl	__aeabi_dmul
	mov	fp, r0
	mov	ip, r1
	b	.L12
.L6:
	ldr	r3, [r7, #28]
	orr	r4, r4, r8, lsl #4
	add	r8, r8, #1
	orr	r4, r4, #2
	str	r8, [r3, r5, lsl #3]
	b	.L19
.L2:
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L22
	mov	r2, #0
	mov	fp, #0
	mov	r4, r2
	ldr	ip, .L40+32
	b	.L20
.L22:
	ldr	r4, [sp, #28]
	ldr	fp, .L40+60
	ldr	ip, .L40+64
	b	.L16
.L38:
	mov	r0, fp
	mov	r1, ip
	ldr	r2, .L40+44
	ldr	r3, .L40+48
	bl	__aeabi_dmul
	mov	fp, r0
	mov	ip, r1
	b	.L14
.L41:
	.align	2
.L40:
	.word	CLOSURE_COL_ROOT
	.word	CLOSURE_COL_DEPTH
	.word	SQLITE_INDEX_CONSTRAINT_LT
	.word	CLOSURE_COL_TABLENAME
	.word	CLOSURE_COL_IDCOLUMN
	.word	SQLITE_INDEX_CONSTRAINT_LE
	.word	SQLITE_INDEX_CONSTRAINT_EQ
	.word	CLOSURE_COL_PARENTCOLUMN
	.word	1097011920
	.word	1079574528
	.word	1075052544
	.word	966823146
	.word	1177108057
	.word	CLOSURE_COL_ID
	.word	SQLITE_OK
	.word	1129802012
	.word	1201543096
	.size	closureBestIndex, .-closureBestIndex
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_INDEX_CONSTRAINT_LT,4,4
	.comm	SQLITE_INDEX_CONSTRAINT_LE,4,4
	.comm	SQLITE_INDEX_CONSTRAINT_EQ,4,4
	.comm	CLOSURE_COL_TABLENAME,4,4
	.comm	CLOSURE_COL_ROOT,4,4
	.comm	CLOSURE_COL_PARENTCOLUMN,4,4
	.comm	CLOSURE_COL_IDCOLUMN,4,4
	.comm	CLOSURE_COL_ID,4,4
	.comm	CLOSURE_COL_DEPTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
