	.file	"389236.c"
	.intel_syntax noprefix
	.text
	.globl	SQLITE_OK
	.bss
	.align 4
	.type	SQLITE_OK, @object
	.size	SQLITE_OK, 4
SQLITE_OK:
	.zero	4
	.text
	.type	fts5ExprNearIsMatch, @function
fts5ExprNearIsMatch:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	QWORD PTR -264[rbp], rdi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -248[rbp], eax
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	setg	al
	movzx	eax, al
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR -272[rbp]
	mov	ebx, DWORD PTR [rax]
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	ArraySize@PLT
	cmp	ebx, eax
	jle	.L2
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	eax, 5
	mov	DWORD PTR -232[rbp], eax
	mov	edx, DWORD PTR -232[rbp]
	lea	rax, -248[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sqlite3Fts5MallocZero@PLT
	mov	QWORD PTR -224[rbp], rax
	jmp	.L3
.L2:
	lea	rax, -160[rbp]
	mov	edx, 128
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L3:
	mov	edx, DWORD PTR -248[rbp]
	mov	eax, DWORD PTR SQLITE_OK[rip]
	cmp	edx, eax
	je	.L4
	mov	edx, DWORD PTR -248[rbp]
	mov	rax, QWORD PTR -264[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
	jmp	.L26
.L4:
	mov	DWORD PTR -244[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	fts5LookaheadReaderInit@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -244[rbp], 1
.L6:
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -244[rbp], eax
	jl	.L7
.L24:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -208[rbp], rax
.L15:
	mov	DWORD PTR -240[rbp], 1
	mov	DWORD PTR -244[rbp], 0
	jmp	.L8
.L14:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	add	rax, 8
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -208[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -216[rbp], rax
	jg	.L9
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -208[rbp], rax
	jge	.L10
.L9:
	mov	DWORD PTR -240[rbp], 0
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fts5LookaheadReaderNext@PLT
	test	rax, rax
	jne	.L28
.L11:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -216[rbp], rax
	jg	.L13
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -208[rbp], rax
	jge	.L10
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -208[rbp], rax
.L10:
	add	DWORD PTR -244[rbp], 1
.L8:
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -244[rbp], eax
	jl	.L14
	cmp	DWORD PTR -240[rbp], 0
	je	.L15
	mov	DWORD PTR -244[rbp], 0
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -192[rbp], rax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	add	rax, 24
	mov	QWORD PTR -184[rbp], rax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -192[rbp], rax
	je	.L18
.L17:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -192[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	sqlite3Fts5PoslistWriterAppend@PLT
.L18:
	add	DWORD PTR -244[rbp], 1
.L16:
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -244[rbp], eax
	jl	.L19
	mov	DWORD PTR -236[rbp], 0
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -216[rbp], rax
	mov	DWORD PTR -244[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	cmp	QWORD PTR -216[rbp], rax
	jle	.L21
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -216[rbp], rax
	mov	eax, DWORD PTR -244[rbp]
	mov	DWORD PTR -236[rbp], eax
.L21:
	add	DWORD PTR -244[rbp], 1
.L20:
	mov	rax, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -244[rbp], eax
	jl	.L22
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	add	rax, 8
	mov	rdi, rax
	call	fts5LookaheadReaderNext@PLT
	test	rax, rax
	jne	.L29
	jmp	.L24
.L28:
	nop
	jmp	.L12
.L29:
	nop
.L12:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -228[rbp], eax
	mov	edx, DWORD PTR -248[rbp]
	mov	rax, QWORD PTR -264[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, -160[rbp]
	cmp	QWORD PTR -224[rbp], rax
	je	.L25
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
.L25:
	mov	eax, DWORD PTR -228[rbp]
.L26:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fts5ExprNearIsMatch, .-fts5ExprNearIsMatch
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"389236.c"
	.text
	.comm	SQLITE_OK,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fts5ExprNearIsMatch, %function
fts5ExprNearIsMatch:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #80
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-148]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-144]
	ldr	r3, [r3]
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-148]
	ldr	r3, [r3]
	cmp	r3, #1
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-148]
	ldr	r4, [r3]
	sub	r3, fp, #80
	mov	r0, r3
	bl	ArraySize
	mov	r3, r0
	cmp	r4, r3
	ble	.L2
	ldr	r3, [fp, #-148]
	ldr	r3, [r3]
	lsl	r3, r3, #4
	str	r3, [fp, #-104]
	sub	r3, fp, #136
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	sqlite3Fts5MallocZero
	mov	r3, r0
	str	r3, [fp, #-132]
	b	.L3
.L2:
	sub	r3, fp, #80
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L3:
	ldr	r2, [fp, #-136]
	ldr	r3, .L30+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-144]
	str	r2, [r3]
	mov	r3, #0
	b	.L26
.L4:
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L6
.L7:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-84]
	ldr	r1, [r3]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, r3
	bl	fts5LookaheadReaderInit
	ldr	r3, [fp, #-84]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r2, [fp, #-84]
	str	r2, [r3]
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L6:
	ldr	r3, [fp, #-148]
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L7
.L24:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-112]
.L15:
	mov	r3, #1
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L8
.L14:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	add	r3, r3, #4
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-148]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	sub	r2, r2, r3
	ldr	r3, [fp, #-148]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	bgt	.L9
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bge	.L10
.L9:
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L11
.L13:
	ldr	r0, [fp, #-92]
	bl	fts5LookaheadReaderNext
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
.L11:
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	bgt	.L13
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	str	r3, [fp, #-112]
.L10:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L8:
	ldr	r3, [fp, #-148]
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L15
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L16
.L19:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	add	r3, r3, #12
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-96]
	ldr	r3, [r3]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	beq	.L18
.L17:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-100]
	ldr	r1, [fp, #-96]
	mov	r0, r3
	bl	sqlite3Fts5PoslistWriterAppend
.L18:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L16:
	ldr	r3, [fp, #-148]
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L19
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L20
.L22:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-120]
.L21:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L20:
	ldr	r3, [fp, #-148]
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r0, r3
	bl	fts5LookaheadReaderNext
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	b	.L24
.L28:
	nop
	b	.L12
.L29:
	nop
.L12:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-88]
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-144]
	str	r2, [r3]
	sub	r3, fp, #80
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	beq	.L25
	ldr	r0, [fp, #-132]
	bl	sqlite3_free
.L25:
	ldr	r3, [fp, #-88]
.L26:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	SQLITE_OK
	.size	fts5ExprNearIsMatch, .-fts5ExprNearIsMatch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
