	.file	"extr_sqlite3.c_pcache1ResizeHash.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcache1ResizeHash, @function
pcache1ResizeHash:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rax]
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	mov	eax, DWORD PTR [r12]
	mov	rdi, QWORD PTR 16[r12]
	lea	ebx, [rax+rax]
	mov	eax, 256
	cmp	ebx, 256
	cmovb	ebx, eax
	call	pcache1LeaveMutex@PLT
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jne	.L18
.L2:
	lea	edi, 0[0+rbx*8]
	call	sqlite3MallocZero@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jne	.L19
.L3:
	mov	rdi, QWORD PTR 16[r12]
	call	pcache1EnterMutex@PLT
	test	rbp, rbp
	je	.L1
	mov	eax, DWORD PTR [r12]
	mov	r9, QWORD PTR 8[r12]
	test	eax, eax
	je	.L8
	sub	eax, 1
	mov	rdi, r9
	lea	r8, 8[r9+rax*8]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rcx, QWORD PTR [rdi]
	test	rcx, rcx
	je	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR [rcx]
	xor	edx, edx
	mov	rsi, rcx
	mov	rcx, QWORD PTR 8[rcx]
	div	ebx
	lea	rax, 0[rbp+rdx*8]
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR 8[rsi], rdx
	mov	QWORD PTR [rax], rsi
	test	rcx, rcx
	jne	.L6
.L9:
	add	rdi, 8
	cmp	r8, rdi
	jne	.L7
.L8:
	mov	rdi, r9
	call	sqlite3_free@PLT
	mov	QWORD PTR 8[r12], rbp
	mov	DWORD PTR [r12], ebx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	xor	eax, eax
	call	sqlite3EndBenignMalloc@PLT
	jmp	.L3
.L18:
	xor	eax, eax
	call	sqlite3BeginBenignMalloc@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pcache1ResizeHash, .-pcache1ResizeHash
	.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_pcache1ResizeHash.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcache1ResizeHash, %function
pcache1ResizeHash:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r3, [r0, #8]
	ldr	r0, [r3]
	bl	sqlite3_mutex_held
	bl	assert
	ldr	r5, [r7]
	ldr	r0, [r7, #8]
	lsl	r5, r5, #1
	cmp	r5, #256
	movcc	r5, #256
	bl	pcache1LeaveMutex
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L24
.L2:
	lsl	r0, r5, #2
	bl	sqlite3MallocZero
	ldr	r3, [r7]
	mov	r10, r0
	cmp	r3, #0
	bne	.L25
.L3:
	ldr	r0, [r7, #8]
	bl	pcache1EnterMutex
	cmp	r10, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldm	r7, {r8, r9}
	cmp	r8, #0
	subne	r6, r9, #4
	addne	r8, r6, r8, lsl #2
	beq	.L8
.L7:
	ldr	r4, [r6, #4]!
	cmp	r4, #0
	beq	.L9
.L6:
	ldr	r0, [r4]
	mov	r1, r5
	bl	__aeabi_uidivmod
	mov	r3, r4
	ldr	r4, [r4, #4]
	ldr	r2, [r10, r1, lsl #2]
	cmp	r4, #0
	str	r2, [r3, #4]
	str	r3, [r10, r1, lsl #2]
	bne	.L6
.L9:
	cmp	r8, r6
	bne	.L7
.L8:
	mov	r0, r9
	bl	sqlite3_free
	stm	r7, {r5, r10}
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	bl	sqlite3BeginBenignMalloc
	b	.L2
.L25:
	bl	sqlite3EndBenignMalloc
	b	.L3
	.size	pcache1ResizeHash, .-pcache1ResizeHash
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
