	.file	"extr_sqlite3.c_findTerm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	findTerm, @function
findTerm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r15d, r13d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	mov	r14d, ebx
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	QWORD PTR 56[rsp], rdi
	mov	edi, esi
	mov	DWORD PTR 64[rsp], edx
	not	edi
	mov	DWORD PTR [rsp], ecx
	shr	edi, 31
	mov	DWORD PTR 4[rsp], r8d
	mov	QWORD PTR 24[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	call	assert@PLT
	mov	DWORD PTR 84[rsp], ebx
	not	ebx
	mov	eax, ebx
	mov	DWORD PTR 80[rsp], r13d
	mov	r13d, r14d
	shr	eax, 31
	mov	QWORD PTR 48[rsp], 2
	mov	DWORD PTR 16[rsp], 2
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 20[rsp], eax
.L17:
	mov	rax, QWORD PTR 56[rsp]
	test	rax, rax
	je	.L2
	lea	rbp, 80[rsp]
	mov	r14, rax
	mov	rax, rbp
	mov	ebp, r15d
	mov	r15, rax
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR [r14]
	mov	r12, QWORD PTR 16[r14]
	test	eax, eax
	je	.L3
	lea	ecx, -1[rax]
	mov	rax, r15
	mov	r15d, r13d
	add	rcx, 1
	sal	rcx, 5
	lea	rbx, [r12+rcx]
	mov	r13, rbx
	mov	rbx, rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L4:
	add	r12, 32
	cmp	r12, r13
	je	.L49
.L15:
	cmp	DWORD PTR [r12], ebp
	jne	.L4
	cmp	DWORD PTR 24[r12], r15d
	jne	.L4
	mov	edx, DWORD PTR 4[r12]
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR [rsp], edx
	jne	.L5
	mov	esi, DWORD PTR 4[rsp]
	and	esi, DWORD PTR WO_ALL[rip]
	test	esi, eax
	je	.L5
	cmp	BYTE PTR 20[rsp], 0
	je	.L6
	cmp	QWORD PTR 24[rsp], 0
	je	.L6
	test	DWORD PTR WO_ISNULL[rip], eax
	je	.L50
.L6:
	test	edx, edx
	jne	.L11
	test	DWORD PTR WO_EQ[rip], eax
	jne	.L1
.L11:
	mov	rcx, QWORD PTR 8[rsp]
	test	rcx, rcx
	cmove	rcx, r12
	mov	QWORD PTR 8[rsp], rcx
.L5:
	test	DWORD PTR WO_EQUIV[rip], eax
	je	.L4
	mov	rdi, rbx
	call	ArraySize@PLT
	cmp	eax, DWORD PTR 16[rsp]
	jle	.L4
	mov	rax, QWORD PTR 16[r12]
	mov	edi, DWORD PTR 24[rax]
	call	sqlite3ExprSkipCollate@PLT
	mov	r8, rax
	mov	rax, QWORD PTR TK_COLUMN[rip]
	cmp	QWORD PTR 8[r8], rax
	mov	QWORD PTR 32[rsp], r8
	sete	dil
	movzx	edi, dil
	call	assert@PLT
	mov	eax, DWORD PTR 16[rsp]
	mov	r8, QWORD PTR 32[rsp]
	test	eax, eax
	jle	.L21
	sub	eax, 1
	mov	edx, DWORD PTR 16[r8]
	shr	eax
	lea	rdi, 4[rax+rax]
	mov	eax, 2
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, eax
	add	rax, 2
	cmp	rdi, rax
	je	.L12
.L14:
	cmp	DWORD PTR -8[rbx+rax*4], edx
	jne	.L13
	mov	ecx, DWORD PTR 20[r8]
	cmp	DWORD PTR -4[rbx+rax*4], ecx
	je	.L4
	mov	esi, eax
	add	rax, 2
	cmp	rdi, rax
	jne	.L14
.L12:
	mov	ecx, DWORD PTR 16[rsp]
	cmp	ecx, esi
	jne	.L4
	mov	edx, DWORD PTR 16[r8]
	movsx	rax, ecx
	add	r12, 32
	mov	DWORD PTR 80[rsp+rax*4], edx
	lea	eax, 1[rcx]
	mov	edx, DWORD PTR 20[r8]
	add	ecx, 2
	cdqe
	mov	DWORD PTR 16[rsp], ecx
	mov	DWORD PTR 80[rsp+rax*4], edx
	cmp	r12, r13
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L49:
	mov	r13d, r15d
	mov	r15, rbx
.L3:
	mov	r14, QWORD PTR 24[r14]
	test	r14, r14
	jne	.L16
.L2:
	mov	rax, QWORD PTR 48[rsp]
	cmp	DWORD PTR 16[rsp], eax
	jle	.L22
	mov	r15d, DWORD PTR 80[rsp+rax*4]
	mov	r13d, DWORD PTR 84[rsp+rax*4]
	add	rax, 2
	mov	QWORD PTR 48[rsp], rax
	jmp	.L17
.L50:
	mov	rax, QWORD PTR 8[r14]
	mov	r8, QWORD PTR 16[r12]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	rdi, r8
	mov	QWORD PTR 32[rsp], r8
	mov	rdx, QWORD PTR 24[rax]
	movsx	rax, DWORD PTR 64[rsp]
	mov	rdx, QWORD PTR [rdx]
	movsx	esi, BYTE PTR [rdx+rax]
	call	sqlite3IndexAffinityOk@PLT
	mov	r8, QWORD PTR 32[rsp]
	test	eax, eax
	je	.L4
	mov	edi, DWORD PTR [r8]
	call	assert@PLT
	mov	r8, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR 24[r8]
	mov	esi, DWORD PTR [r8]
	call	sqlite3BinaryCompareCollSeq@PLT
	mov	QWORD PTR 32[rsp], rax
	test	rax, rax
	je	.L51
.L7:
	mov	rsi, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR 64[rsp]
	mov	rax, QWORD PTR [rsi]
	cmp	edi, DWORD PTR [rax]
	je	.L19
	xor	edx, edx
	mov	DWORD PTR 40[rsp], r15d
	mov	r15d, edi
	mov	DWORD PTR 68[rsp], ebp
	mov	rbp, rsi
	mov	QWORD PTR 72[rsp], rbx
	mov	rbx, rdx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rax, QWORD PTR 0[rbp]
	lea	rdx, 1[rbx]
	lea	rsi, 0[0+rdx*4]
	mov	rbx, rdx
	cmp	DWORD PTR [rax+rdx*4], r15d
	je	.L52
.L10:
	xor	edi, edi
	cmp	DWORD PTR 8[rbp], ebx
	setle	dil
	call	NEVER@PLT
	test	rax, rax
	je	.L53
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 168[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L54
	add	rsp, 184
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L52:
	.cfi_restore_state
	mov	r15d, DWORD PTR 40[rsp]
	mov	ebp, DWORD PTR 68[rsp]
	mov	rbx, QWORD PTR 72[rsp]
.L8:
	mov	rax, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, DWORD PTR [rax+rsi]
	mov	rax, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR [rax]
	call	sqlite3StrICmp@PLT
	test	rax, rax
	jne	.L4
	mov	edx, DWORD PTR 4[r12]
	mov	eax, DWORD PTR 8[r12]
	jmp	.L6
.L51:
	mov	rax, QWORD PTR 40[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 32[rsp], rax
	jmp	.L7
.L21:
	xor	esi, esi
	jmp	.L12
.L19:
	xor	esi, esi
	jmp	.L8
.L22:
	mov	r12, QWORD PTR 8[rsp]
	jmp	.L1
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	findTerm, .-findTerm
	.comm	WO_ISNULL,4,4
	.comm	WO_EQUIV,4,4
	.comm	WO_EQ,4,4
	.comm	WO_ALL,4,4
	.comm	TK_COLUMN,8,8
	.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_findTerm.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	findTerm, %function
findTerm:
	@ args = 8, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	fp, #2
	mov	r5, r3
	sub	sp, sp, #140
	mov	r9, r1
	str	r2, [sp, #8]
	mov	r1, #0
	mov	r2, r0
	str	fp, [sp, #24]
	mov	r6, fp
	mov	r8, r4
	mov	fp, r5
	cmp	r9, r1
	str	r2, [sp, #32]
	ldr	r3, .L53
	ldr	r2, [sp, #180]
	str	r1, [sp]
	movlt	r0, #0
	movge	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #132]
	mov	r3,#0
	ldr	r10, .L53+4
	str	r2, [sp, #4]
	bl	assert
	add	r2, sp, #52
	str	r2, [sp, #28]
	str	r9, [sp, #44]
	str	r4, [sp, #48]
.L17:
	ldr	r3, [sp, #32]
	cmp	r3, #0
	beq	.L2
	mov	r7, r3
	mov	r3, fp
	mov	fp, r6
	mov	r6, r3
.L16:
	ldr	r5, [r7]
	ldr	r4, [r7, #8]
	cmp	r5, #0
	bne	.L15
	b	.L3
.L4:
	subs	r5, r5, #1
	add	r4, r4, #20
	beq	.L3
.L15:
	ldr	r3, [r4]
	cmp	r3, r9
	bne	.L4
	ldr	r3, [r4, #16]
	cmp	r3, r8
	bne	.L4
	ldmib	r4, {r1, r2}
	tst	r1, r6
	bne	.L5
	ldr	r3, .L53+8
	ldr	r0, [sp, #176]
	ldr	r3, [r3]
	and	r3, r3, r0
	tst	r3, r2
	beq	.L5
	ldmib	sp, {r0, r3}
	mvn	r3, r3
	cmp	r0, #0
	lsr	r3, r3, #31
	moveq	r3, #0
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L53+12
	ldr	r3, [r3]
	ands	r3, r2, r3
	beq	.L49
.L6:
	cmp	r1, #0
	bne	.L11
	ldr	r3, .L53+16
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L1
.L11:
	ldr	r1, [sp]
	subs	r3, r1, #0
	moveq	r3, r4
	str	r3, [sp]
.L5:
	ldr	r3, [r10]
	tst	r2, r3
	beq	.L4
	add	r0, sp, #44
	bl	ArraySize
	cmp	r0, fp
	ble	.L4
	ldr	r3, [r4, #12]
	ldr	r0, [r3, #16]
	bl	sqlite3ExprSkipCollate
	ldr	r3, .L53+20
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r0, [r0, #4]
	str	r1, [sp, #12]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	cmp	fp, #0
	mov	r2, #0
	ldr	r1, [sp, #12]
	ble	.L12
	ldr	r0, [r1, #8]
	add	r3, sp, #48
	b	.L14
.L13:
	add	r2, r2, #2
	cmp	r2, fp
	add	r3, r3, #8
	bge	.L12
.L14:
	ldr	ip, [r3, #-4]
	cmp	ip, r0
	bne	.L13
	ldr	lr, [r3]
	ldr	ip, [r1, #12]
	cmp	lr, ip
	beq	.L4
	add	r2, r2, #2
	cmp	r2, fp
	add	r3, r3, #8
	blt	.L14
.L12:
	cmp	fp, r2
	bne	.L4
	ldr	r2, [r1, #8]
	add	r3, sp, #136
	add	r3, r3, fp, lsl #2
	str	r2, [r3, #-92]
	ldr	r2, [r1, #12]
	add	r3, sp, #136
	add	r3, r3, fp, lsl #2
	subs	r5, r5, #1
	str	r2, [r3, #-88]
	add	fp, fp, #2
	add	r4, r4, #20
	bne	.L15
.L3:
	ldr	r7, [r7, #12]
	cmp	r7, #0
	bne	.L16
	mov	r3, r6
	mov	r6, fp
	mov	fp, r3
.L2:
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #24]
	add	r3, r3, #8
	cmp	r2, r6
	str	r3, [sp, #28]
	bge	.L22
	add	r2, r2, #2
	ldr	r9, [r3, #-8]
	ldr	r8, [r3, #-4]
	str	r2, [sp, #24]
	b	.L17
.L49:
	ldr	r2, [r0, #12]
	str	r3, [sp, #12]
	ldr	r2, [r2]
	ldr	r3, [sp, #8]
	ldr	r0, [r4, #12]
	ldrb	r1, [r2, r3]	@ zero_extendqisi2
	ldr	r3, [r7, #4]
	str	r0, [sp, #16]
	str	r3, [sp, #20]
	bl	sqlite3IndexAffinityOk
	cmp	r0, #0
	ldr	r3, [sp, #12]
	beq	.L4
	str	r3, [sp, #36]
	ldr	r3, [sp, #16]
	ldr	r0, [r3]
	bl	assert
	ldr	r3, [sp, #16]
	ldr	r0, [sp, #20]
	ldr	r2, [r3, #16]
	ldr	r1, [r3]
	bl	sqlite3BinaryCompareCollSeq
	subs	r3, r0, #0
	ldreq	r2, [sp, #20]
	ldr	r1, [sp, #4]
	ldreq	r2, [r2]
	str	r3, [sp, #12]
	ldreq	r2, [r2]
	ldr	r0, [sp, #8]
	streq	r2, [sp, #12]
	ldr	r2, [r1]
	ldr	r3, [sp, #36]
	ldr	r2, [r2]
	cmp	r0, r2
	beq	.L19
	str	r8, [sp, #16]
	str	r5, [sp, #20]
	str	r4, [sp, #36]
	mov	r8, r0
	mov	r4, r3
	mov	r5, r1
	b	.L10
.L51:
	ldr	r1, [r5]
	add	r4, r4, #1
	ldr	r0, [r1, r4, lsl #2]
	lsl	r1, r4, #2
	cmp	r0, r8
	beq	.L50
.L10:
	ldr	r0, [r5, #4]
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
	bl	NEVER
	cmp	r0, #0
	beq	.L51
	mov	r4, #0
.L1:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	mov	r0, r4
	add	sp, sp, #140
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L50:
	ldr	r8, [sp, #16]
	ldr	r5, [sp, #20]
	ldr	r4, [sp, #36]
.L8:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #12]
	ldr	r3, [r3, #8]
	ldr	r0, [r2]
	ldr	r1, [r3, r1]
	bl	sqlite3StrICmp
	cmp	r0, #0
	bne	.L4
	ldmib	r4, {r1, r2}
	b	.L6
.L19:
	mov	r1, #0
	b	.L8
.L22:
	ldr	r4, [sp]
	b	.L1
.L52:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC0
	.word	WO_EQUIV
	.word	WO_ALL
	.word	WO_ISNULL
	.word	WO_EQ
	.word	TK_COLUMN
	.size	findTerm, .-findTerm
	.comm	WO_ISNULL,4,4
	.comm	WO_EQUIV,4,4
	.comm	WO_EQ,4,4
	.comm	WO_ALL,4,4
	.comm	TK_COLUMN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
