	.file	"155570.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"'."
.LC1:
	.string	""
.LC2:
	.string	"'"
	.align 8
.LC3:
	.string	"BEGIN; SELECT * FROM %s%q%ssqlite_schema"
.LC4:
	.string	"PRAGMA %s%q%spage_size"
	.align 8
.LC5:
	.string	"sqlite3_mmap_warm_cache: Warmed up %d pages of %s"
.LC6:
	.string	"END"
	.text
	.globl	sqlite3_mmap_warm
	.type	sqlite3_mmap_warm, @function
sqlite3_mmap_warm:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sqlite3_get_autocommit@PLT
	test	eax, eax
	jne	.L2
	mov	eax, 21
	jmp	.L3
.L2:
	cmp	QWORD PTR -80[rbp], 0
	je	.L4
	lea	rdx, .LC0[rip]
	jmp	.L5
.L4:
	lea	rdx, .LC1[rip]
.L5:
	cmp	QWORD PTR -80[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -80[rbp]
	jmp	.L7
.L6:
	lea	rax, .LC1[rip]
.L7:
	cmp	QWORD PTR -80[rbp], 0
	je	.L8
	lea	rsi, .LC2[rip]
	jmp	.L9
.L8:
	lea	rsi, .LC1[rip]
.L9:
	mov	rcx, rdx
	mov	rdx, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L10
	mov	eax, 7
	jmp	.L3
.L10:
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_exec@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	cmp	DWORD PTR -64[rbp], 0
	jne	.L11
	cmp	QWORD PTR -80[rbp], 0
	je	.L12
	lea	rdx, .LC0[rip]
	jmp	.L13
.L12:
	lea	rdx, .LC1[rip]
.L13:
	cmp	QWORD PTR -80[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -80[rbp]
	jmp	.L15
.L14:
	lea	rax, .LC1[rip]
.L15:
	cmp	QWORD PTR -80[rbp], 0
	je	.L16
	lea	rsi, .LC2[rip]
	jmp	.L17
.L16:
	lea	rsi, .LC1[rip]
.L17:
	mov	rcx, rdx
	mov	rdx, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L18
	mov	DWORD PTR -64[rbp], 7
	jmp	.L11
.L18:
	mov	QWORD PTR -40[rbp], 0
	lea	rdx, -40[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, -1
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	cmp	DWORD PTR -64[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	cmp	eax, 100
	jne	.L20
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_int@PLT
	mov	DWORD PTR -60[rbp], eax
.L20:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	sqlite3_finalize@PLT
	mov	DWORD PTR -64[rbp], eax
.L19:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L11
	cmp	DWORD PTR -60[rbp], 0
	jne	.L11
	mov	DWORD PTR -64[rbp], 1
.L11:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L22
	mov	QWORD PTR -48[rbp], 0
	lea	rdx, -48[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	edx, 7
	mov	rdi, rax
	call	sqlite3_file_control@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jle	.L23
	mov	QWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, QWORD PTR 136[rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, -40[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jne	.L24
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	DWORD PTR -56[rbp], eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sub	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, QWORD PTR 144[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jne	.L31
	add	QWORD PTR -32[rbp], 1
	jmp	.L26
.L31:
	nop
.L24:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3_db_filename@PLT
	mov	rdx, rax
	cmp	QWORD PTR -32[rbp], 1
	je	.L27
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L28
.L27:
	mov	eax, 0
.L28:
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	edi, 0
	mov	eax, 0
	call	sqlite3_log@PLT
.L23:
	mov	rax, QWORD PTR -72[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jne	.L22
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -64[rbp], eax
.L22:
	mov	eax, DWORD PTR -64[rbp]
.L3:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sqlite3_mmap_warm, .-sqlite3_mmap_warm
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"155570.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"'\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"'.\000"
	.align	2
.LC3:
	.ascii	"BEGIN; SELECT * FROM %s%q%ssqlite_schema\000"
	.align	2
.LC4:
	.ascii	"PRAGMA %s%q%spage_size\000"
	.align	2
.LC5:
	.ascii	"sqlite3_mmap_warm_cache: Warmed up %d pages of %s\000"
	.align	2
.LC6:
	.ascii	"END\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3_mmap_warm
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3_mmap_warm, %function
sqlite3_mmap_warm:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-72]
	bl	sqlite3_get_autocommit
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #21
	b	.L3
.L2:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L4
	ldr	r1, .L32+4
	b	.L5
.L4:
	ldr	r1, .L32+8
.L5:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L6
	ldr	r2, [fp, #-76]
	b	.L7
.L6:
	ldr	r2, .L32+8
.L7:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L32+12
	b	.L9
.L8:
	ldr	r3, .L32+8
.L9:
	ldr	r0, .L32+16
	bl	sqlite3_mprintf
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L10
	mov	r3, #7
	b	.L3
.L10:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-72]
	bl	sqlite3_exec
	str	r0, [fp, #-60]
	ldr	r0, [fp, #-48]
	bl	sqlite3_free
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L12
	ldr	r1, .L32+4
	b	.L13
.L12:
	ldr	r1, .L32+8
.L13:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L14
	ldr	r2, [fp, #-76]
	b	.L15
.L14:
	ldr	r2, .L32+8
.L15:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L32+12
	b	.L17
.L16:
	ldr	r3, .L32+8
.L17:
	ldr	r0, .L32+20
	bl	sqlite3_mprintf
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L18
	mov	r3, #7
	str	r3, [fp, #-60]
	b	.L11
.L18:
	mov	r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #64
	mov	r2, #0
	str	r2, [sp]
	mvn	r2, #0
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-72]
	bl	sqlite3_prepare_v2
	str	r0, [fp, #-60]
	ldr	r0, [fp, #-48]
	bl	sqlite3_free
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	sqlite3_step
	mov	r3, r0
	cmp	r3, #100
	bne	.L20
	ldr	r3, [fp, #-64]
	mov	r1, #0
	mov	r0, r3
	bl	sqlite3_column_int
	str	r0, [fp, #-56]
.L20:
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	sqlite3_finalize
	str	r0, [fp, #-60]
.L19:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-60]
.L11:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	str	r3, [fp, #-68]
	sub	r3, fp, #68
	mov	r2, #7
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	sqlite3_file_control
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L23
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
.L26:
	ldr	r3, [fp, #-44]
	ldr	r6, [r3, #68]
	ldr	r7, [fp, #-68]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-36]
	mul	r0, r3, r1
	ldr	r1, [fp, #-32]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-36]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	sub	r3, fp, #64
	str	r3, [sp, #4]
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	mov	r0, r7
	blx	r6
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-44]
	ldr	r6, [r3, #72]
	ldr	r7, [fp, #-68]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-36]
	mul	r0, r3, r1
	ldr	r1, [fp, #-32]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-36]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	r3, [fp, #-64]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	mov	r0, r7
	blx	r6
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L31
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	b	.L26
.L31:
	nop
.L24:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	beq	.L27
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	b	.L28
.L27:
	mov	r4, #0
	mov	r5, #0
.L28:
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	sqlite3_db_filename
	mov	r3, r0
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r1, .L32+24
	mov	r0, #0
	bl	sqlite3_log
.L23:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L32+28
	ldr	r0, [fp, #-72]
	bl	sqlite3_exec
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-60]
.L22:
	ldr	r3, [fp, #-60]
.L3:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	sqlite3_mmap_warm, .-sqlite3_mmap_warm
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
