	.file	"extr_fts3_write.c_sqlite3Fts3SelectDoctotal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3Fts3SelectDoctotal
	.type	sqlite3Fts3SelectDoctotal, @function
sqlite3Fts3SelectDoctotal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	ecx, ecx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR SQL_SELECT_STAT[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	mov	QWORD PTR [rsp], 0
	call	fts3SqlStmt@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	je	.L2
.L8:
	mov	rax, QWORD PTR [rsp]
.L3:
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR FTS_STAT_DOCTOTAL[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	esi, 1
	call	sqlite3_bind_int@PLT
	mov	rdi, QWORD PTR [rsp]
	call	sqlite3_step@PLT
	cmp	rax, QWORD PTR SQLITE_ROW[rip]
	je	.L11
.L4:
	mov	rdi, QWORD PTR [rsp]
	call	sqlite3_reset@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	je	.L12
	xor	eax, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR [rsp]
	xor	esi, esi
	call	sqlite3_column_type@PLT
	cmp	rax, QWORD PTR SQLITE_BLOB[rip]
	jne	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR FTS_CORRUPT_VTAB[rip]
	xor	eax, eax
	jmp	.L3
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sqlite3Fts3SelectDoctotal, .-sqlite3Fts3SelectDoctotal
	.comm	SQL_SELECT_STAT,4,4
	.comm	SQLITE_ROW,8,8
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_BLOB,8,8
	.comm	FTS_STAT_DOCTOTAL,4,4
	.comm	FTS_CORRUPT_VTAB,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_sqlite3Fts3SelectDoctotal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3Fts3SelectDoctotal
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3Fts3SelectDoctotal, %function
sqlite3Fts3SelectDoctotal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, #0
	ldr	r2, .L12
	sub	sp, sp, #12
	ldr	ip, .L12+4
	mov	r6, r1
	mov	r3, r7
	ldr	r1, [r2]
	mov	r2, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	str	r7, [sp]
	bl	fts3SqlStmt
	ldr	r5, .L12+8
	mov	r4, r0
	ldr	r2, [r5]
	cmp	r2, r0
	beq	.L2
.L8:
	ldr	r3, [sp]
.L3:
	str	r3, [r6]
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L12+12
	mov	r1, #1
	ldr	r2, [r3]
	ldr	r0, [sp]
	bl	sqlite3_bind_int
	ldr	r0, [sp]
	bl	sqlite3_step
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L11
.L4:
	ldr	r0, [sp]
	bl	sqlite3_reset
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, r0
	ldreq	r3, .L12+20
	ldreq	r4, [r3]
	mov	r3, #0
	b	.L3
.L11:
	mov	r1, r7
	ldr	r0, [sp]
	bl	sqlite3_column_type
	ldr	r3, .L12+24
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L4
	b	.L8
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	SQL_SELECT_STAT
	.word	.LC0
	.word	SQLITE_OK
	.word	FTS_STAT_DOCTOTAL
	.word	SQLITE_ROW
	.word	FTS_CORRUPT_VTAB
	.word	SQLITE_BLOB
	.size	sqlite3Fts3SelectDoctotal, .-sqlite3Fts3SelectDoctotal
	.comm	SQL_SELECT_STAT,4,4
	.comm	SQLITE_ROW,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_BLOB,4,4
	.comm	FTS_STAT_DOCTOTAL,4,4
	.comm	FTS_CORRUPT_VTAB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
