	.file	"extr_pcache1.c_pcache1InitBulk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcache1InitBulk, @function
pcache1InitBulk:
.LFB0:
	.cfi_startproc
	endbr64
	xor	eax, eax
	cmp	QWORD PTR pcache1[rip], 0
	je	.L12
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR [rdi], 2
	jg	.L16
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	call	sqlite3BeginBenignMalloc@PLT
	mov	rax, QWORD PTR pcache1[rip]
	test	rax, rax
	jle	.L3
	mov	edi, DWORD PTR 4[rbx]
	imul	eax, edi
.L4:
	imul	edi, DWORD PTR [rbx]
	cmp	edi, eax
	cmovg	edi, eax
	call	sqlite3Malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rbp, rax
	xor	eax, eax
	call	sqlite3EndBenignMalloc@PLT
	test	rbp, rbp
	je	.L17
	mov	rdi, rbp
	call	sqlite3MallocSize@PLT
	movsx	r9, DWORD PTR 4[rbx]
	mov	r10, -48
	mov	rdi, QWORD PTR 24[rbx]
	cdq
	idiv	r9d
	mov	rdx, QWORD PTR 16[rbx]
	lea	rcx, 48[rbp+rdx]
	sub	r10, rdx
	mov	esi, eax
	.p2align 4,,10
	.p2align 3
.L7:
	lea	r8, [r10+rcx]
	mov	QWORD PTR -32[rcx], rdi
	lea	rdi, -48[rcx]
	mov	QWORD PTR -16[rcx], r8
	mov	QWORD PTR -8[rcx], rcx
	mov	DWORD PTR -48[rcx], 1
	mov	QWORD PTR -24[rcx], 0
	mov	QWORD PTR -40[rcx], 0
	add	rcx, r9
	sub	esi, 1
	jne	.L7
	sub	eax, 1
	add	rbp, rdx
	imul	r9, rax
	add	rbp, r9
	mov	QWORD PTR 24[rbx], rbp
.L6:
	xor	eax, eax
	test	rbp, rbp
	setne	al
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	neg	eax
	mov	edi, DWORD PTR 4[rbx]
	sal	eax, 10
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rbp, QWORD PTR 24[rbx]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	pcache1InitBulk, .-pcache1InitBulk
	.comm	pcache1,8,8
	.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_pcache1.c_pcache1InitBulk.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcache1InitBulk, %function
pcache1InitBulk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, .L17
	mov	r5, r0
	ldr	r0, [r4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r5]
	cmp	r3, #2
	bgt	.L15
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	bl	sqlite3BeginBenignMalloc
	ldr	r0, [r4]
	ldr	r2, [r5]
	cmp	r0, #0
	ldrgt	r3, [r5, #4]
	ldrle	r3, [r5, #4]
	mulgt	r0, r3, r0
	mul	r3, r2, r3
	rsble	r0, r0, r0, lsl #22
	lslle	r0, r0, #10
	cmp	r3, r0
	movlt	r0, r3
	bl	sqlite3Malloc
	mov	r4, r0
	str	r0, [r5, #8]
	bl	sqlite3EndBenignMalloc
	cmp	r4, #0
	beq	.L16
	mov	r0, r4
	bl	sqlite3MallocSize
	ldr	r6, [r5, #4]
	mov	r9, #1
	mov	r1, r6
	bl	__aeabi_idiv
	mov	r2, r0
	ldr	r0, [r5, #12]
	mov	ip, r2
	add	r0, r4, r0
	mov	r3, r0
	mov	r7, #0
	ldr	lr, [r5, #16]
.L7:
	add	r8, r3, #24
	subs	ip, ip, #1
	str	lr, [r3, #8]
	str	r4, [r3, #16]
	mov	lr, r3
	str	r9, [r3]
	str	r7, [r3, #12]
	str	r7, [r3, #4]
	str	r8, [r3, #20]
	add	r4, r4, r6
	add	r3, r3, r6
	bne	.L7
	sub	r2, r2, #1
	mla	r1, r6, r2, r0
	str	r1, [r5, #16]
.L6:
	subs	r0, r1, #0
	movne	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r1, [r5, #16]
	b	.L6
.L18:
	.align	2
.L17:
	.word	pcache1
	.size	pcache1InitBulk, .-pcache1InitBulk
	.comm	pcache1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
