	.file	"extr_scrub.c_scrubBackupPtrmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scrubBackupPtrmap, @function
scrubBackupPtrmap:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 16[rdi], 0
	je	.L20
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebp, DWORD PTR [rdi]
	mov	ebx, DWORD PTR 4[rdi]
	call	scrubBackupAllocPage@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 8[r14], 1
	jle	.L5
	mov	eax, 1073742335
	movsx	r12, ebp
	sar	ebp, 31
	cdq
	imul	r12, r12, 1717986919
	idiv	ebx
	sar	r12, 33
	mov	ebx, 2
	sub	r12d, ebp
	movsx	r12, r12d
	add	r12, 1
	add	eax, 1
	movsx	rbp, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, rbx
	mov	rdi, r14
	add	rbx, r12
	call	scrubBackupWrite@PLT
	lea	rax, 1[rbp]
	cmp	rbp, rbx
	cmove	rbx, rax
	cmp	QWORD PTR 8[r14], rbx
	jl	.L5
.L7:
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, r14
	call	scrubBackupRead@PLT
	mov	rdx, rax
	test	rax, rax
	jne	.L21
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	sqlite3_free@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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
	.cfi_endproc
.LFE0:
	.size	scrubBackupPtrmap, .-scrubBackupPtrmap
	.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_scrub.c_scrubBackupPtrmap.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scrubBackupPtrmap, %function
scrubBackupPtrmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #12]
	cmp	r3, #0
	bxne	lr
	push	{r4, r5, r6, r7, r8, lr}
	ldm	r0, {r4, r8}
	mov	r5, r0
	bl	scrubBackupAllocPage
	subs	r7, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r5, #8]
	cmp	r3, #1
	ble	.L5
	ldr	r6, .L21
	mov	r1, r8
	smull	r2, r3, r6, r4
	ldr	r0, .L21+4
	asr	r6, r4, #31
	rsb	r6, r6, r3, asr #1
	bl	__aeabi_idiv
	mov	r4, #2
	add	r6, r6, #1
	add	r8, r0, #1
	b	.L7
.L20:
	mov	r1, r4
	mov	r0, r5
	add	r4, r4, r6
	bl	scrubBackupWrite
	cmp	r8, r4
	ldr	r3, [r5, #8]
	addeq	r4, r8, #1
	cmp	r3, r4
	blt	.L5
.L7:
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	scrubBackupRead
	subs	r2, r0, #0
	bne	.L20
.L5:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	sqlite3_free
.L22:
	.align	2
.L21:
	.word	1717986919
	.word	1073742335
	.size	scrubBackupPtrmap, .-scrubBackupPtrmap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
