	.file	"extr_fulltext.c_index_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	index_insert, @function
index_insert:
.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	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	mov	ecx, -1
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	content_insert@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	je	.L19
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	sqlite3_last_insert_rowid@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	ecx, eax
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	test	r14, r14
	je	.L1
	lea	rax, 20[rsp]
	mov	esi, DWORD PTR [rbx]
	mov	rdx, r14
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	build_terms@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	jne	.L1
	mov	rdi, QWORD PTR 8[rsp]
	call	HashFirst@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r14
	call	HashNext@PLT
	mov	r14, rax
	test	rax, rax
	je	.L4
.L5:
	mov	rdi, r14
	call	HashData@PLT
	mov	rdi, r14
	mov	r13d, DWORD PTR 0[rbp]
	mov	r15, rax
	call	HashKeysize@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	HashKey@PLT
	mov	edx, r12d
	mov	r8, r15
	mov	ecx, r13d
	mov	esi, eax
	mov	rdi, rbx
	call	index_insert_term@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	je	.L21
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	call	HashFirst@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	call	HashData@PLT
	mov	rdi, rax
	call	docListDelete@PLT
	mov	rdi, rbp
	call	HashNext@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L7
.L6:
	mov	rdi, QWORD PTR 8[rsp]
	call	HashClear@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	index_insert, .-index_insert
	.comm	SQLITE_OK,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_fulltext.c_index_insert.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	index_insert, %function
index_insert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L22
	sub	sp, sp, #20
	mov	r7, r3
	mvn	r3, #0
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r6, r0
	mov	r5, r2
	bl	content_insert
	ldr	r8, .L22+4
	mov	r4, r0
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L19
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L19:
	ldr	r0, [r6, #4]
	bl	sqlite3_last_insert_rowid
	cmp	r5, #0
	str	r0, [r7]
	mov	r3, r0
	ldreq	r4, [r8]
	beq	.L1
	mov	r2, r5
	ldr	r1, [r6]
	add	r0, sp, #8
	bl	build_terms
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r0
	bne	.L1
	add	r0, sp, #8
	bl	HashFirst
	subs	r5, r0, #0
	bne	.L5
	b	.L4
.L21:
	mov	r0, r5
	bl	HashNext
	subs	r5, r0, #0
	beq	.L4
.L5:
	mov	r0, r5
	bl	HashData
	mov	r9, r0
	mov	r0, r5
	bl	HashKey
	mov	r4, r0
	mov	r0, r5
	bl	HashKeysize
	str	r9, [sp]
	mov	r2, r0
	mov	r1, r4
	ldr	r3, [r7]
	mov	r0, r6
	bl	index_insert_term
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r0
	beq	.L21
.L4:
	add	r0, sp, #8
	bl	HashFirst
	subs	r5, r0, #0
	beq	.L6
.L7:
	mov	r0, r5
	bl	HashData
	bl	docListDelete
	mov	r0, r5
	bl	HashNext
	subs	r5, r0, #0
	bne	.L7
.L6:
	add	r0, sp, #8
	bl	HashClear
	b	.L1
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	SQLITE_OK
	.size	index_insert, .-index_insert
	.comm	SQLITE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
