	.file	"extr_sqlite3.c_rehash.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rehash, @function
rehash:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	sqlite3BeginBenignMalloc@PLT
	lea	edi, 0[0+rbx*4]
	call	sqlite3Malloc@PLT
	mov	rbp, rax
	xor	eax, eax
	call	sqlite3EndBenignMalloc@PLT
	xor	eax, eax
	test	rbp, rbp
	jne	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[r12]
	call	sqlite3_free@PLT
	mov	QWORD PTR 16[r12], rbp
	mov	rdi, rbp
	call	sqlite3MallocSize@PLT
	xor	esi, esi
	mov	rdi, rbp
	cdqe
	shr	rax, 2
	mov	DWORD PTR [r12], eax
	lea	edx, 0[0+rax*4]
	mov	r13d, eax
	call	memset@PLT
	mov	rbx, QWORD PTR 8[r12]
	mov	QWORD PTR 8[r12], 0
	test	rbx, rbx
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	call	strHash@PLT
	xor	edx, edx
	mov	r8, rbx
	mov	rbx, QWORD PTR [rbx]
	div	r13d
	mov	rdi, r12
	lea	rsi, 0[rbp+rdx*4]
	mov	rdx, r8
	call	insertElement@PLT
	test	rbx, rbx
	jne	.L3
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rehash, .-rehash
	.comm	SQLITE_MALLOC_SOFT_LIMIT,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_rehash.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rehash, %function
rehash:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	sqlite3BeginBenignMalloc
	lsl	r0, r4, #2
	bl	sqlite3Malloc
	mov	r5, r0
	bl	sqlite3EndBenignMalloc
	cmp	r5, #0
	bne	.L12
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r0, [r6, #8]
	bl	sqlite3_free
	mov	r0, r5
	str	r5, [r6, #8]
	bl	sqlite3MallocSize
	lsr	r8, r0, #2
	bic	r2, r0, #3
	mov	r1, #0
	mov	r0, r5
	str	r8, [r6]
	bl	memset
	mov	r3, #0
	ldr	r4, [r6, #4]
	str	r3, [r6, #4]
	cmp	r4, r3
	beq	.L4
.L3:
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	strHash
	mov	r1, r8
	bl	__aeabi_uidivmod
	mov	r7, r4
	mov	r2, r4
	ldr	r4, [r4]
	mov	r0, r6
	add	r1, r5, r1, lsl #2
	bl	insertElement
	cmp	r4, #0
	bne	.L3
.L4:
	mov	r5, #1
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
	.size	rehash, .-rehash
	.comm	SQLITE_MALLOC_SOFT_LIMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
