	.file	"extr_fts3_write.c_sqlite3Fts3AllSegdirs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3Fts3AllSegdirs
	.type	sqlite3Fts3AllSegdirs, @function
sqlite3Fts3AllSegdirs:
.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
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, ecx
	cmp	DWORD PTR FTS3_SEGCURSOR_ALL[rip], ecx
	mov	QWORD PTR [rsp], 0
	not	eax
	sete	dil
	shr	eax, 31
	or	edi, eax
	movzx	edi, dil
	call	assert@PLT
	xor	edi, edi
	cmp	DWORD PTR FTS3_SEGDIR_MAXLEVEL[rip], r12d
	setg	dil
	call	assert@PLT
	xor	edi, edi
	test	r13d, r13d
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR 0[rbp], r13d
	setg	dil
.L2:
	call	assert@PLT
	mov	rdx, rsp
	xor	ecx, ecx
	test	r12d, r12d
	js	.L10
	mov	esi, DWORD PTR SQL_SELECT_LEVEL[rip]
	mov	rdi, rbp
	call	fts3SqlStmt@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r15d, eax
	je	.L11
.L4:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR SQL_SELECT_LEVEL_RANGE[rip]
	mov	rdi, rbp
	call	fts3SqlStmt@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r15d, eax
	jne	.L4
	xor	ecx, ecx
	mov	edx, r13d
	mov	esi, r14d
	mov	rdi, rbp
	call	getAbsoluteLevel@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, 1
	mov	edx, eax
	call	sqlite3_bind_int64@PLT
	mov	edx, r13d
	mov	esi, r14d
	mov	rdi, rbp
	mov	eax, DWORD PTR FTS3_SEGDIR_MAXLEVEL[rip]
	lea	ecx, -1[rax]
	call	getAbsoluteLevel@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, 2
	mov	edx, eax
	call	sqlite3_bind_int64@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, r13d
	mov	esi, r14d
	mov	rdi, rbp
	mov	ecx, r12d
	call	getAbsoluteLevel@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, 1
	mov	edx, eax
	call	sqlite3_bind_int64@PLT
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sqlite3Fts3AllSegdirs, .-sqlite3Fts3AllSegdirs
	.comm	SQL_SELECT_LEVEL_RANGE,4,4
	.comm	SQL_SELECT_LEVEL,4,4
	.comm	SQLITE_OK,4,4
	.comm	FTS3_SEGDIR_MAXLEVEL,4,4
	.comm	FTS3_SEGCURSOR_ALL,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_fts3_write.c_sqlite3Fts3AllSegdirs.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3Fts3AllSegdirs
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3Fts3AllSegdirs, %function
sqlite3Fts3AllSegdirs:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, #0
	mov	r4, r3
	ldr	r3, .L12
	mov	r7, r2
	ldr	r3, [r3]
	ldr	r9, .L12+4
	cmp	r3, r4
	cmpne	r4, r5
	ldr	r3, .L12+8
	sub	sp, sp, #8
	mov	r6, r0
	movge	r0, #1
	movlt	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r1
	ldr	r10, [sp, #40]
	str	r5, [sp]
	bl	assert
	ldr	r0, [r9]
	cmp	r0, r4
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	cmp	r7, r5
	movlt	r0, r5
	blt	.L2
	ldr	r0, [r6]
	cmp	r0, r7
	movle	r0, #0
	movgt	r0, #1
.L2:
	bl	assert
	cmp	r4, #0
	blt	.L9
	ldr	r2, .L12+12
	mov	r3, #0
	ldr	r1, [r2]
	mov	r0, r6
	mov	r2, sp
	bl	fts3SqlStmt
	ldr	r3, .L12+16
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L10
.L4:
	ldr	r3, [sp]
	str	r3, [r10]
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r2, .L12+20
	mov	r3, #0
	ldr	r1, [r2]
	mov	r0, r6
	mov	r2, sp
	bl	fts3SqlStmt
	ldr	r3, .L12+16
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L4
	mov	r3, #0
	mov	r2, r7
	mov	r1, r8
	mov	r0, r6
	ldr	r4, [sp]
	bl	getAbsoluteLevel
	mov	r1, #1
	mov	r2, r0
	mov	r0, r4
	bl	sqlite3_bind_int64
	ldr	r3, [r9]
	mov	r2, r7
	mov	r1, r8
	mov	r0, r6
	sub	r3, r3, #1
	ldr	r4, [sp]
	bl	getAbsoluteLevel
	mov	r1, #2
	mov	r2, r0
	mov	r0, r4
	bl	sqlite3_bind_int64
	b	.L4
.L10:
	mov	r2, r7
	mov	r1, r8
	mov	r3, r4
	mov	r0, r6
	ldr	r9, [sp]
	bl	getAbsoluteLevel
	mov	r1, #1
	mov	r2, r0
	mov	r0, r9
	bl	sqlite3_bind_int64
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	FTS3_SEGCURSOR_ALL
	.word	FTS3_SEGDIR_MAXLEVEL
	.word	.LC0
	.word	SQL_SELECT_LEVEL
	.word	SQLITE_OK
	.word	SQL_SELECT_LEVEL_RANGE
	.size	sqlite3Fts3AllSegdirs, .-sqlite3Fts3AllSegdirs
	.comm	SQL_SELECT_LEVEL_RANGE,4,4
	.comm	SQL_SELECT_LEVEL,4,4
	.comm	SQLITE_OK,4,4
	.comm	FTS3_SEGDIR_MAXLEVEL,4,4
	.comm	FTS3_SEGCURSOR_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
