	.file	"extr_fts5_main.c_fts5NextMethod.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fts5NextMethod, @function
fts5NextMethod:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 2
	setg	dil
	cmp	eax, DWORD PTR FTS5_PLAN_MATCH[rip]
	je	.L2
	cmp	DWORD PTR FTS5_PLAN_SOURCE[rip], eax
	sete	dl
.L2:
	xor	edi, edx
	movzx	edi, dil
	call	assert@PLT
	mov	esi, DWORD PTR FTS5CSR_EOF[rip]
	mov	rdi, rbp
	call	CsrFlagTest@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 2
	jle	.L16
	cmp	eax, 128
	je	.L6
	cmp	eax, 129
	jne	.L17
	mov	rdi, rbp
	call	fts5SorterNext@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	call	sqlite3_step@PLT
	cmp	DWORD PTR SQLITE_ROW[rip], eax
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	je	.L1
	mov	esi, DWORD PTR FTS5CSR_EOF[rip]
	mov	rdi, rbp
	call	CsrFlagSet@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	sqlite3_reset@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR FTS5CSR_EOF[rip]
	mov	rdi, rbp
	call	CsrFlagSet@PLT
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], 0
	call	fts5CursorReseek@PLT
	mov	r12d, eax
	or	eax, DWORD PTR 4[rsp]
	jne	.L1
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 8[rbp]
	call	sqlite3Fts5ExprNext@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	r12d, eax
	call	sqlite3Fts5ExprEof@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	CsrFlagSet@PLT
	mov	rdi, rbp
	call	fts5CsrNewrow@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fts5NextMethod, .-fts5NextMethod
	.comm	SQLITE_ROW,4,4
	.comm	SQLITE_OK,4,4
	.comm	FTS5_PLAN_SOURCE,4,4
	.comm	FTS5_PLAN_MATCH,4,4
	.comm	FTS5CSR_EOF,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_fts5_main.c_fts5NextMethod.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fts5NextMethod, %function
fts5NextMethod:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L19
	ldr	r3, [r0]
	ldr	r2, [r2]
	cmp	r3, #2
	mov	r4, r0
	movle	r0, #0
	movgt	r0, #1
	cmp	r3, r2
	ldr	r2, .L19+4
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldrne	r2, .L19+8
	moveq	r3, #1
	ldrne	r2, [r2]
	ldr	r5, .L19+12
	subne	r3, r2, r3
	clzne	r3, r3
	lsrne	r3, r3, #5
	eor	r0, r0, r3
	bl	assert
	ldr	r1, [r5]
	mov	r0, r4
	bl	CsrFlagTest
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r4]
	cmp	r3, #2
	ble	.L15
	cmp	r3, #128
	beq	.L6
	cmp	r3, #129
	bne	.L16
	mov	r0, r4
	bl	fts5SorterNext
	mov	r5, r0
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L16:
	ldr	r0, [r4, #4]
	bl	sqlite3_step
	ldr	r3, .L19+16
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L18
	ldr	r3, .L19+20
	ldr	r5, [r3]
	b	.L1
.L6:
	ldr	r1, [r5]
	mov	r0, r4
	bl	CsrFlagSet
	ldr	r3, .L19+20
	ldr	r5, [r3]
	b	.L1
.L15:
	mov	r3, #0
	mov	r1, sp
	mov	r0, r4
	str	r3, [sp]
	bl	fts5CursorReseek
	ldr	r3, [sp]
	mov	r5, r0
	orrs	r3, r0, r3
	bne	.L1
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #8]
	bl	sqlite3Fts5ExprNext
	mov	r5, r0
	ldr	r0, [r4, #8]
	bl	sqlite3Fts5ExprEof
	mov	r1, r0
	mov	r0, r4
	bl	CsrFlagSet
	mov	r0, r4
	bl	fts5CsrNewrow
	b	.L1
.L18:
	ldr	r1, [r5]
	mov	r0, r4
	bl	CsrFlagSet
	ldr	r0, [r4, #4]
	bl	sqlite3_reset
	mov	r5, r0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	FTS5_PLAN_MATCH
	.word	.LC0
	.word	FTS5_PLAN_SOURCE
	.word	FTS5CSR_EOF
	.word	SQLITE_ROW
	.word	SQLITE_OK
	.size	fts5NextMethod, .-fts5NextMethod
	.comm	SQLITE_ROW,4,4
	.comm	SQLITE_OK,4,4
	.comm	FTS5_PLAN_SOURCE,4,4
	.comm	FTS5_PLAN_MATCH,4,4
	.comm	FTS5CSR_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
