	.file	"extr_sqlite3.c_whereRangeVectorLen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	whereRangeVectorLen, @function
whereRangeVectorLen:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	movsx	rbx, ecx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR [r8]
	mov	QWORD PTR 32[rsp], rdi
	mov	rdi, QWORD PTR 8[rax]
	mov	DWORD PTR 40[rsp], esi
	mov	QWORD PTR 16[rsp], r8
	call	sqlite3ExprVectorSize@PLT
	mov	rsi, QWORD PTR 32[r15]
	mov	edi, eax
	sub	rsi, rbx
	call	MIN@PLT
	mov	DWORD PTR 44[rsp], eax
	cmp	eax, 1
	jle	.L6
	lea	rax, 0[0+rbx*8]
	mov	ebp, 8
	lea	rbx, 4[0+rbx*4]
	mov	r13d, 1
	mov	QWORD PTR 24[rsp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 40[rax]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR TK_COLUMN[rip]
	add	rcx, rbp
	mov	r14, QWORD PTR [rcx]
	cmp	QWORD PTR 8[r12], rax
	jne	.L1
.L14:
	mov	eax, DWORD PTR 40[rsp]
	cmp	DWORD PTR 16[r12], eax
	jne	.L1
	mov	rcx, QWORD PTR [r15]
	mov	rax, QWORD PTR 24[r12]
	cmp	rax, QWORD PTR [rcx+rbx*2]
	jne	.L1
	mov	rcx, QWORD PTR 8[r15]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR [rcx+rsi]
	cmp	QWORD PTR [rcx+rbx*2], rdi
	jne	.L1
	xor	edi, edi
	cmp	QWORD PTR XN_ROWID[rip], rax
	sete	dil
	call	testcase@PLT
	mov	rdi, r12
	call	sqlite3ExprAffinity@PLT
	mov	rdi, r14
	mov	esi, eax
	call	sqlite3CompareAffinity@PLT
	mov	rsi, QWORD PTR 24[r12]
	mov	edi, DWORD PTR 24[r15]
	mov	BYTE PTR 15[rsp], al
	call	sqlite3TableColumnAffinity@PLT
	cmp	BYTE PTR 15[rsp], al
	jne	.L1
	mov	rdi, QWORD PTR 32[rsp]
	mov	rdx, r14
	mov	rsi, r12
	call	sqlite3BinaryCompareCollSeq@PLT
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR 16[r15]
	mov	edi, DWORD PTR [rax]
	mov	esi, DWORD PTR [rdx+rbx]
	call	sqlite3StrICmp@PLT
	test	rax, rax
	jne	.L1
	add	r13d, 1
	add	rbp, 8
	add	rbx, 4
	cmp	DWORD PTR 44[rsp], r13d
	je	.L1
.L5:
	mov	rax, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR [rdx]
	mov	r12, QWORD PTR [rdx+rbp]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR EP_xIsSelect[rip], edx
	jne	.L13
	mov	rax, QWORD PTR 32[rax]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR TK_COLUMN[rip]
	add	rcx, rbp
	mov	r14, QWORD PTR [rcx]
	cmp	QWORD PTR 8[r12], rax
	je	.L14
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	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
.L6:
	.cfi_restore_state
	mov	r13d, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	whereRangeVectorLen, .-whereRangeVectorLen
	.comm	XN_ROWID,8,8
	.comm	TK_COLUMN,8,8
	.comm	EP_xIsSelect,4,4
	.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_whereRangeVectorLen.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	whereRangeVectorLen, %function
whereRangeVectorLen:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	mov	r4, r3
	sub	sp, sp, #28
	ldr	r8, [sp, #64]
	str	r0, [sp, #16]
	ldr	r3, [r8]
	str	r1, [sp, #8]
	ldr	r0, [r3, #4]
	bl	sqlite3ExprVectorSize
	ldr	r1, [r7, #16]
	mov	r5, #1
	sub	r1, r1, r4
	bl	MIN
	cmp	r0, #1
	str	r0, [sp, #20]
	ble	.L1
	lsl	r3, r4, #2
	ldr	r10, .L21
	ldr	r9, .L21+4
	str	r3, [sp, #12]
	add	r6, r3, #4
	b	.L5
.L20:
	ldr	r3, [r4, #8]
	ldr	r2, [sp, #8]
	cmp	r3, r2
	bne	.L1
	ldr	r1, [r7]
	ldr	r3, [r4, #12]
	ldr	r1, [r1, r6]
	cmp	r3, r1
	bne	.L1
	ldr	r1, [r7, #4]
	ldr	r2, [sp, #12]
	ldr	r0, [r1, r6]
	ldr	r1, [r1, r2]
	cmp	r0, r1
	bne	.L1
	ldr	r2, .L21+8
	ldr	r0, [r2]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	testcase
	mov	r0, r4
	bl	sqlite3ExprAffinity
	mov	r1, r0
	mov	r0, fp
	bl	sqlite3CompareAffinity
	mov	r3, r0
	ldr	r1, [r4, #12]
	ldr	r0, [r7, #12]
	str	r3, [sp, #4]
	bl	sqlite3TableColumnAffinity
	ldr	r3, [sp, #4]
	cmp	r3, r0
	bne	.L1
	mov	r2, fp
	mov	r1, r4
	ldr	r0, [sp, #16]
	bl	sqlite3BinaryCompareCollSeq
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r7, #8]
	ldr	r0, [r0]
	ldr	r1, [r3, r6]
	bl	sqlite3StrICmp
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #20]
	add	r5, r5, #1
	cmp	r3, r5
	add	r6, r6, #4
	beq	.L1
.L5:
	ldr	r3, [r8]
	ldr	r1, [r10]
	ldr	r2, [r3, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r2, [r2]
	tst	r0, r1
	ldrne	r3, [r3, #20]
	ldreq	r3, [r3, #16]
	ldrne	r3, [r3]
	ldr	r4, [r2, r5, lsl #2]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	ldr	fp, [r3, r5, lsl #2]
	ldr	r3, [r9]
	cmp	r1, r3
	beq	.L20
.L1:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	EP_xIsSelect
	.word	TK_COLUMN
	.word	XN_ROWID
	.size	whereRangeVectorLen, .-whereRangeVectorLen
	.comm	XN_ROWID,4,4
	.comm	TK_COLUMN,4,4
	.comm	EP_xIsSelect,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
