	.file	"extr_sqlite3.c_pageFindSlot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pageFindSlot, @function
pageFindSlot:
.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, rdi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rdi]
	mov	QWORD PTR 24[rsp], rdi
	mov	DWORD PTR 8[rsp], eax
	add	eax, 1
	mov	DWORD PTR 16[rsp], eax
	cdqe
	sal	rax, 2
	mov	DWORD PTR 12[rsp], esi
	lea	rdi, 0[r13+rax]
	mov	QWORD PTR 32[rsp], rdx
	mov	QWORD PTR 40[rsp], rax
	call	get2byte@PLT
	xor	edi, edi
	mov	ebx, eax
	mov	rax, QWORD PTR 16[r14]
	test	ebx, ebx
	mov	eax, DWORD PTR [rax]
	setg	dil
	mov	r14d, eax
	mov	DWORD PTR 20[rsp], eax
	call	assert@PLT
	mov	eax, r14d
	sub	eax, 3
	mov	DWORD PTR 8[rsp], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	r14, ebx
	lea	rbp, 8[0+r14*4]
	lea	r12, 0[r13+rbp]
	mov	rdi, r12
	call	get2byte@PLT
	mov	r15d, eax
	mov	r8d, eax
	sub	r8d, DWORD PTR 12[rsp]
	jns	.L20
	lea	rdi, -8[r13+rbp]
	call	get2byte@PLT
	lea	edx, [rbx+r15]
	mov	DWORD PTR 16[rsp], ebx
	mov	ebx, eax
	cmp	edx, eax
	jg	.L9
.L2:
	cmp	DWORD PTR 8[rsp], ebx
	jg	.L10
.L9:
	test	ebx, ebx
	jne	.L18
.L17:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rsp]
	call	SQLITE_CORRUPT_PAGE@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	DWORD PTR [rsi], eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	r8d, 4
	mov	DWORD PTR 8[rsp], r8d
	sete	dil
	movzx	edi, dil
	call	testcase@PLT
	mov	r8d, DWORD PTR 8[rsp]
	xor	edi, edi
	cmp	r8d, 3
	sete	dil
	call	testcase@PLT
	lea	edx, [rbx+r15]
	cmp	edx, DWORD PTR 20[rsp]
	mov	r8d, DWORD PTR 8[rsp]
	jg	.L18
	cmp	r8d, 3
	jg	.L6
	mov	rax, QWORD PTR 40[rsp]
	lea	r12, 24[r13+rax]
	cmp	DWORD PTR [r12], 57
	jg	.L17
	movsx	rbp, DWORD PTR 16[rsp]
	lea	rsi, 0[r13+r14*4]
	mov	edx, 2
	mov	DWORD PTR 8[rsp], r8d
	lea	rdi, 0[r13+rbp*4]
	call	memcpy@PLT
	mov	r8d, DWORD PTR 8[rsp]
	add	DWORD PTR [r12], r8d
.L8:
	add	r8d, ebx
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movsx	r8, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	lea	rax, 0[r13+r8*4]
	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
.L6:
	.cfi_restore_state
	mov	esi, r8d
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], r8d
	call	put2byte@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	pageFindSlot, .-pageFindSlot
	.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_sqlite3.c_pageFindSlot.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pageFindSlot, %function
pageFindSlot:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0]
	ldr	r5, [r0, #4]
	sub	sp, sp, #20
	mov	r8, r0
	add	r7, r7, #1
	str	r0, [sp, #4]
	add	r0, r5, r7, lsl #2
	str	r2, [sp, #8]
	mov	r6, r1
	bl	get2byte
	ldr	r3, [r8, #8]
	cmp	r0, #0
	ldr	r3, [r3]
	mov	r4, r0
	lsl	r2, r7, #2
	movle	r0, #0
	movgt	r0, #1
	str	r3, [sp]
	str	r2, [sp, #12]
	sub	r8, r3, #3
	bl	assert
	b	.L2
.L10:
	mov	r0, fp
	bl	get2byte
	mov	r2, r0
	sub	r0, r9, #8
	subs	r10, r2, r6
	mov	r9, r2
	add	r0, r5, r0
	bpl	.L19
	bl	get2byte
	add	r2, r4, r9
	cmp	r2, r0
	mov	r7, r4
	mov	r4, r0
	bgt	.L9
.L2:
	add	r0, r4, #2
	cmp	r8, r4
	add	fp, r5, r0, lsl #2
	lsl	r9, r0, #2
	bgt	.L10
.L9:
	cmp	r4, #0
	bne	.L17
.L11:
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r0, [sp, #4]
	bl	SQLITE_CORRUPT_PAGE
	mov	r3, r0
	mov	r0, #0
	ldr	r2, [sp, #8]
	str	r3, [r2]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	sub	r0, r10, #4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	testcase
	sub	r0, r10, #3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	testcase
	ldr	r3, [sp]
	add	r2, r4, r9
	cmp	r2, r3
	bgt	.L17
	cmp	r10, #3
	bgt	.L6
	ldr	r3, [sp, #12]
	add	r6, r3, #24
	ldr	r2, [r5, r6]
	cmp	r2, #57
	bgt	.L11
	mov	r2, #2
	add	r0, r5, r7, lsl #2
	add	r1, r5, r4, lsl r2
	bl	memcpy
	ldr	r2, [r5, r6]
	add	r2, r2, r10
	str	r2, [r5, r6]
.L8:
	add	r4, r4, r10
	add	r0, r5, r4, lsl #2
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, fp
	mov	r1, r10
	bl	put2byte
	b	.L8
	.size	pageFindSlot, .-pageFindSlot
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
