	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rehash
_rehash:                                ## @rehash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
	shll	$2, %ebx
	movl	%ebx, %edi
	callq	_sqlite3Malloc
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_sqlite3EndBenignMalloc
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	movq	16(%r14), %rdi
	callq	_sqlite3_free
	movq	%r12, 16(%r14)
	movq	%r12, %rdi
	callq	_sqlite3MallocSize
	movl	%eax, %r13d
	sarl	$2, %r13d
	movl	%r13d, (%r14)
	andl	$-4, %eax
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%r14), %rbx
	movq	$0, 8(%r14)
	movl	$1, %r15d
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	callq	_strHash
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rbx), %r15
	leaq	(%r12,%rdx,4), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_insertElement
	movq	%r15, %rbx
	testq	%r15, %r15
	jne	LBB0_2
## %bb.3:
	movl	$1, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_MALLOC_SOFT_LIMIT,4,2   ## @SQLITE_MALLOC_SOFT_LIMIT
	.no_dead_strip	_rehash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rehash
_rehash:                                ; @rehash
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_sqlite3BeginBenignMalloc
	lsl	w0, w20, #2
	bl	_sqlite3Malloc
	mov	x20, x0
	bl	_sqlite3EndBenignMalloc
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x0, [x19, #16]
	bl	_sqlite3_free
	str	x20, [x19, #16]
	mov	x0, x20
	bl	_sqlite3MallocSize
	asr	w22, w0, #2
	str	w22, [x19]
	and	w2, w0, #0xfffffffc
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	x21, [x19, #8]
	str	xzr, [x19, #8]
	cbz	x21, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #8]
	bl	_strHash
	udiv	w8, w0, w22
	msub	w8, w8, w22, w0
	ldr	x23, [x21]
	add	x1, x20, w8, uxtw #2
	mov	x0, x19
	mov	x2, x21
	bl	_insertElement
	mov	x21, x23
	cbnz	x23, LBB0_2
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_MALLOC_SOFT_LIMIT,4,2   ; @SQLITE_MALLOC_SOFT_LIMIT
	.no_dead_strip	_rehash
.subsections_via_symbols
