	.file	"extr_fts5_index.c_fts5DlidxLvlPrev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fts5DlidxLvlPrev, @function
fts5DlidxLvlPrev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r14d, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rdi]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	cmp	DWORD PTR 8[rbp], r14d
	jl	.L2
	mov	DWORD PTR 4[rbp], 1
	mov	eax, 1
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L30
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rbp]
	cmp	r14d, 9
	lea	ebx, -1[r14]
	movsx	rdi, ebx
	mov	r12, QWORD PTR [rax]
	mov	eax, 9
	cmovge	eax, r14d
	sal	rdi, 2
	sub	eax, 9
	cmp	eax, ebx
	jl	.L6
	mov	r13d, ebx
	lea	ebx, -2[r14]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rsp
	add	rdi, r12
	call	fts5GetVarint@PLT
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR 8[rbp]
	xor	edx, edx
	sub	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR 16[rbp]
	lea	r8, -1[rax]
	movsx	rax, ebx
	cmp	esi, ebx
	jg	.L8
	mov	ecx, DWORD PTR [r12+rax*4]
	mov	edi, eax
	test	ecx, ecx
	jne	.L31
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rax, 1
	add	edx, 1
	cmp	esi, eax
	jg	.L27
	mov	ecx, DWORD PTR [r12+rax*4]
	mov	edi, eax
	test	ecx, ecx
	je	.L10
.L31:
	and	ecx, 128
	je	.L27
	lea	eax, -7[rdi]
	cmp	eax, esi
	jle	.L13
	movsx	rax, edi
	sal	rax, 2
	lea	rcx, [r12+rax]
	lea	rax, -32[r12+rax]
	.p2align 4,,10
	.p2align 3
.L14:
	test	BYTE PTR -4[rcx], -128
	je	.L13
	sub	rcx, 4
	cmp	rax, rcx
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L27:
	movsx	rax, edx
	sub	r13d, edx
	sub	r8, rax
.L8:
	mov	QWORD PTR 16[rbp], r8
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 0[rbp], r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	sub	rdi, 4
	cmp	eax, ebx
	je	.L32
.L6:
	mov	r13d, ebx
	sub	ebx, 1
	test	BYTE PTR -4[r12+rdi], -128
	jne	.L33
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	movsx	rdi, ebx
	lea	eax, -2[r13]
	mov	r13d, ebx
	sal	rdi, 2
	mov	ebx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	sub	edx, 1
	jmp	.L27
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fts5DlidxLvlPrev, .-fts5DlidxLvlPrev
	.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_index.c_fts5DlidxLvlPrev.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fts5DlidxLvlPrev, %function
fts5DlidxLvlPrev:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r0, #4]
	ldr	r3, .L31
	clz	r0, r0
	sub	sp, sp, #8
	lsr	r0, r0, #5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r5, [r6]
	bl	assert
	ldr	r3, [r6, #8]
	cmp	r3, r5
	movge	r0, #1
	strge	r0, [r6, #4]
	bge	.L1
	cmp	r5, #9
	movge	ip, r5
	movlt	ip, #9
	ldr	r3, [r6, #20]
	sub	r4, r5, #1
	sub	r1, ip, #9
	cmp	r1, r4
	ldr	r7, [r3]
	bge	.L4
	sub	r3, r5, #-1073741823
	add	r3, r7, r3, lsl #2
	b	.L6
.L29:
	cmp	r4, r1
	beq	.L28
.L6:
	ldr	r2, [r3, #-4]!
	mov	r0, r4
	tst	r2, #128
	mov	r8, r4
	sub	r4, r4, #1
	bne	.L29
.L5:
	mov	r1, sp
	add	r0, r7, r0, lsl #2
	bl	fts5GetVarint
	ldr	r3, [r6, #16]
	ldr	r2, [sp]
	ldr	r0, [r6, #8]
	sub	r3, r3, r2
	cmp	r0, r4
	ldr	lr, [r6, #12]
	str	r3, [r6, #16]
	addle	r3, r4, #1
	movle	r2, #0
	sub	ip, lr, #1
	addle	r3, r7, r3, lsl #2
	ble	.L9
	b	.L8
.L10:
	sub	r4, r4, #1
	cmp	r4, r0
	add	r2, r2, #1
	blt	.L26
.L9:
	ldr	r1, [r3, #-4]!
	cmp	r1, #0
	beq	.L10
	tst	r1, #128
	beq	.L26
	sub	r3, r4, #7
	cmp	r3, r0
	ble	.L13
	sub	r1, r7, #32
	add	r1, r1, r4, lsl #2
	add	r4, r7, r4, lsl #2
.L14:
	ldr	r3, [r4, #-4]!
	tst	r3, #128
	beq	.L13
	cmp	r1, r4
	bne	.L14
.L26:
	sub	ip, ip, r2
	sub	r8, r8, r2
.L8:
	ldr	r0, [r6, #4]
	str	ip, [r6, #12]
	str	r8, [r6]
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	mov	r0, r1
	mov	r8, r1
	sub	r4, ip, #10
	b	.L5
.L13:
	sub	r3, r2, #1
	sub	ip, lr, r2
	sub	r8, r8, r3
	b	.L8
.L4:
	mov	r0, r4
	mov	r8, r4
	sub	r4, r5, #2
	b	.L5
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.size	fts5DlidxLvlPrev, .-fts5DlidxLvlPrev
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
