	.file	"extr_fts2.c_plwAdd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	plwAdd, @function
plwAdd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 56
	mov	DWORD PTR -88[rbp], ecx
	mov	DWORD PTR -84[rbp], r8d
	mov	rcx, rsp
	mov	r14, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR VARINT_MAX[rip]
	lea	eax, [rax+rax*4]
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	xor	edi, edi
	cmp	DWORD PTR 0[r13], -1
	mov	r15, rsp
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR 16[r13]
	mov	rcx, QWORD PTR DL_DOCIDS[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L15
	cmp	DWORD PTR 4[r13], r12d
	jne	.L7
	mov	eax, DWORD PTR 0[r13]
	mov	r8, rsp
	xor	edx, edx
.L8:
	xor	edi, edi
	cmp	ebx, eax
	mov	DWORD PTR -72[rbp], edx
	setge	dil
	mov	QWORD PTR -80[rbp], r8
	call	assert@PLT
	mov	r8, QWORD PTR -80[rbp]
	mov	esi, ebx
	sub	esi, DWORD PTR 0[r13]
	add	esi, DWORD PTR POS_BASE[rip]
	mov	rdi, r8
	call	putVarint@PLT
	mov	edx, DWORD PTR -72[rbp]
	mov	DWORD PTR 0[r13], ebx
	mov	rbx, QWORD PTR DL_POSITIONS_OFFSETS[rip]
	add	edx, eax
	mov	rax, QWORD PTR 16[r13]
	cmp	QWORD PTR [rax], rbx
	je	.L19
.L9:
	mov	edi, DWORD PTR 8[rax]
	mov	rsi, r15
	call	dataBufferAppend@PLT
.L15:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, r14
	jne	.L20
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR POS_COLUMN[rip]
	mov	rdi, rsp
	call	putVarint@PLT
	mov	esi, r12d
	movsx	rdi, eax
	mov	QWORD PTR -72[rbp], rax
	add	rdi, rsp
	call	putVarint@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	DWORD PTR 4[r13], r12d
	mov	DWORD PTR 0[r13], 0
	add	edx, eax
	mov	DWORD PTR 8[r13], 0
	xor	eax, eax
	movsx	r8, edx
	add	r8, rsp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r12d, DWORD PTR -88[rbp]
	xor	edi, edi
	cmp	DWORD PTR 8[r13], r12d
	mov	DWORD PTR -72[rbp], edx
	setle	dil
	call	assert@PLT
	movsx	rdi, DWORD PTR -72[rbp]
	mov	esi, r12d
	sub	esi, DWORD PTR 8[r13]
	add	rdi, r15
	call	putVarint@PLT
	mov	DWORD PTR 8[r13], r12d
	mov	edx, DWORD PTR -72[rbp]
	xor	edi, edi
	cmp	r12d, DWORD PTR -84[rbp]
	setle	dil
	lea	ebx, [rdx+rax]
	call	assert@PLT
	mov	esi, DWORD PTR -84[rbp]
	movsx	rdi, ebx
	add	rdi, r15
	sub	esi, r12d
	call	putVarint@PLT
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR 16[r13]
	jmp	.L9
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	plwAdd, .-plwAdd
	.comm	VARINT_MAX,4,4
	.comm	POS_COLUMN,4,4
	.comm	POS_BASE,4,4
	.comm	DL_POSITIONS_OFFSETS,8,8
	.comm	DL_DOCIDS,8,8
	.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_fts2.c_plwAdd.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	plwAdd, %function
plwAdd:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	mov	r4, r0
	ldr	ip, .L13
	ldr	r0, [r0]
	ldr	ip, [ip]
	adds	r0, r0, #1
	add	ip, ip, ip, lsl #2
	add	ip, ip, #7
	bic	ip, ip, #7
	mov	r9, r3
	ldr	r3, .L13+4
	movne	r0, #1
	mov	r6, sp
	sub	sp, sp, ip
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r7, r1
	bl	assert
	ldr	r2, [r4, #12]
	ldr	r3, .L13+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
	ldr	r3, [r4, #4]
	mov	r10, sp
	cmp	r3, r7
	bne	.L4
	mov	r7, sp
	mov	r8, #0
	ldr	r3, [r4]
.L5:
	cmp	r5, r3
	movlt	r0, #0
	movge	r0, #1
	bl	assert
	ldr	r2, .L13+12
	ldr	r3, [r4]
	ldr	r1, [r2]
	sub	r3, r5, r3
	add	r1, r3, r1
	mov	r0, r7
	bl	putVarint
	ldr	ip, [r4, #12]
	ldr	r3, .L13+16
	ldr	r1, [ip]
	ldr	r3, [r3]
	add	r8, r8, r0
	cmp	r1, r3
	str	r5, [r4]
	beq	.L11
.L6:
	mov	r2, r8
	mov	r1, r10
	ldr	r0, [ip, #4]
	bl	dataBufferAppend
.L9:
	ldr	r3, .L13+4
	mov	sp, r6
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L13+20
	mov	r0, sp
	ldr	r1, [r3]
	bl	putVarint
	mov	r1, r7
	mov	r8, r0
	add	r0, sp, r0
	bl	putVarint
	mov	r1, #0
	add	r8, r8, r0
	str	r7, [r4, #4]
	mov	r3, r1
	add	r7, sp, r8
	str	r1, [r4]
	str	r1, [r4, #8]
	b	.L5
.L11:
	ldr	r0, [r4, #8]
	cmp	r0, r9
	movgt	r0, #0
	movle	r0, #1
	bl	assert
	ldr	r1, [r4, #8]
	add	r0, r10, r8
	sub	r1, r9, r1
	bl	putVarint
	ldr	r3, [fp, #4]
	add	r8, r8, r0
	cmp	r9, r3
	movgt	r0, #0
	movle	r0, #1
	str	r9, [r4, #8]
	bl	assert
	ldr	r3, [fp, #4]
	add	r0, r10, r8
	sub	r1, r3, r9
	bl	putVarint
	ldr	ip, [r4, #12]
	add	r8, r8, r0
	b	.L6
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	VARINT_MAX
	.word	.LC0
	.word	DL_DOCIDS
	.word	POS_BASE
	.word	DL_POSITIONS_OFFSETS
	.word	POS_COLUMN
	.size	plwAdd, .-plwAdd
	.comm	VARINT_MAX,4,4
	.comm	POS_COLUMN,4,4
	.comm	POS_BASE,4,4
	.comm	DL_POSITIONS_OFFSETS,4,4
	.comm	DL_DOCIDS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
