	.file	"extr_sqlite3.c_zeroPage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zeroPage, @function
zeroPage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	mov	r12, QWORD PTR 112[rdi]
	mov	r13, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 104[rdi]
	call	sqlite3PagerPagenumber@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], rax
	lea	r14, 0[rbp+r13]
	sete	dil
	call	assert@PLT
	mov	edi, DWORD PTR 104[rbx]
	call	sqlite3PagerGetExtra@PLT
	xor	edi, edi
	cmp	rbx, rax
	sete	dil
	call	assert@PLT
	mov	edi, DWORD PTR 104[rbx]
	call	sqlite3PagerGetData@PLT
	xor	edi, edi
	cmp	rbp, rax
	sete	dil
	call	assert@PLT
	mov	edi, DWORD PTR 104[rbx]
	call	sqlite3PagerIswriteable@PLT
	mov	edi, eax
	call	assert@PLT
	mov	edi, DWORD PTR 20[r12]
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR BTS_FAST_SECURE[rip], eax
	jne	.L10
.L2:
	mov	BYTE PTR [r14], r15b
	mov	eax, DWORD PTR PTF_LEAF[rip]
	lea	rdi, 1[rbp+r13]
	mov	edx, 4
	and	eax, r15d
	cmp	eax, 1
	sbb	rax, rax
	xor	esi, esi
	and	eax, 4
	lea	r14, 8[rax+r13]
	call	memset@PLT
	mov	BYTE PTR 7[rbp+r13], 0
	mov	rsi, QWORD PTR 8[r12]
	lea	rdi, 5[rbp+r13]
	call	put2byte@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	esi, r15d
	mov	rdi, rbx
	sub	rax, r14
	mov	QWORD PTR 24[rbx], rax
	call	decodeFlags@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 32[rbx], r14
	xor	edi, edi
	add	r14, rbp
	mov	QWORD PTR 96[rbx], 0
	add	rax, rbp
	add	rbp, QWORD PTR 64[rbx]
	mov	QWORD PTR 48[rbx], r14
	mov	QWORD PTR 40[rbx], rax
	mov	eax, DWORD PTR 16[r12]
	mov	QWORD PTR 56[rbx], rbp
	sub	eax, 512
	cmp	eax, 65024
	setbe	dil
	call	assert@PLT
	mov	eax, DWORD PTR 16[r12]
	mov	QWORD PTR 88[rbx], 0
	mov	DWORD PTR 80[rbx], 1
	sub	eax, 1
	cdqe
	mov	QWORD PTR 72[rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[r12]
	xor	esi, esi
	mov	rdi, r14
	sub	edx, r13d
	call	memset@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	zeroPage, .-zeroPage
	.comm	PTF_LEAF,4,4
	.comm	BTS_FAST_SECURE,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_sqlite3.c_zeroPage.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zeroPage, %function
zeroPage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #52]
	mov	r9, r1
	ldr	r5, [r4]
	ldr	r6, [r4, #56]
	ldr	r8, [r4, #4]
	bl	sqlite3PagerPagenumber
	ldr	r3, [r4, #8]
	add	r10, r5, r8
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #52]
	bl	sqlite3PagerGetExtra
	sub	r0, r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #52]
	bl	sqlite3PagerGetData
	sub	r0, r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #52]
	bl	sqlite3PagerIswriteable
	bl	assert
	ldr	r0, [r6, #12]
	bl	sqlite3_mutex_held
	bl	assert
	ldr	r3, .L11
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L10
.L2:
	ldr	r3, .L11+4
	strb	r9, [r5, r8]
	ldr	r3, [r3]
	mov	r7, #0
	tst	r9, r3
	movne	ip, #8
	moveq	ip, #12
	add	r2, r8, #1
	add	r3, r5, r2
	strb	r7, [r5, r2]
	add	r0, r8, #5
	strb	r7, [r3, #1]
	strb	r7, [r3, #2]
	strb	r7, [r3, #3]
	strb	r7, [r10, #7]
	ldr	r1, [r6, #4]
	add	r0, r5, r0
	add	r8, ip, r8
	bl	put2byte
	ldr	r3, [r6, #4]
	mov	r1, r9
	sub	r3, r3, r8
	str	r3, [r4, #12]
	mov	r0, r4
	bl	decodeFlags
	ldr	r0, [r6, #8]
	ldr	r3, [r6, #4]
	ldr	r1, [r4, #32]
	sub	r0, r0, #512
	add	r2, r5, r8
	add	r3, r5, r3
	cmp	r0, #65024
	add	r5, r5, r1
	str	r2, [r4, #24]
	str	r3, [r4, #20]
	movhi	r0, #0
	movls	r0, #1
	str	r8, [r4, #16]
	str	r7, [r4, #48]
	str	r5, [r4, #28]
	bl	assert
	mov	r2, #1
	ldr	r3, [r6, #8]
	str	r7, [r4, #44]
	sub	r3, r3, #1
	str	r3, [r4, #36]
	str	r2, [r4, #40]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r2, [r6, #4]
	mov	r1, #0
	mov	r0, r10
	sub	r2, r2, r8
	bl	memset
	b	.L2
.L12:
	.align	2
.L11:
	.word	BTS_FAST_SECURE
	.word	PTF_LEAF
	.size	zeroPage, .-zeroPage
	.comm	PTF_LEAF,4,4
	.comm	BTS_FAST_SECURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
