	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1ResizeHash
_pcache1ResizeHash:                     ## @pcache1ResizeHash
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movl	(%r14), %eax
	addl	%eax, %eax
	cmpl	$257, %eax                      ## imm = 0x101
	movl	$256, %r15d                     ## imm = 0x100
	cmovael	%eax, %r15d
	movq	16(%r14), %rdi
	callq	_pcache1LeaveMutex
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
LBB0_2:
	leal	(,%r15,8), %edi
	callq	_sqlite3MallocZero
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_sqlite3EndBenignMalloc
LBB0_4:
	movq	16(%r14), %rdi
	callq	_pcache1EnterMutex
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.5:
	movl	(%r14), %r8d
	testq	%r8, %r8
	je	LBB0_10
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	cmpq	%r8, %rsi
	je	LBB0_10
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	8(%r14), %rax
	movq	(%rax,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $edx killed $edx def $rdx
	movq	8(%rdi), %rax
	movq	(%rbx,%rdx,8), %rcx
	movq	%rcx, 8(%rdi)
	movq	%rdi, (%rbx,%rdx,8)
	movq	%rax, %rdi
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movq	8(%r14), %rdi
	callq	_sqlite3_free
	movq	%rbx, 8(%r14)
	movl	%r15d, (%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pcache1ResizeHash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1ResizeHash
_pcache1ResizeHash:                     ; @pcache1ResizeHash
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	w8, [x19]
	lsl	w8, w8, #1
	mov	w9, #256
	cmp	w8, #256
	csel	w21, w8, w9, hi
	ldr	x0, [x19, #16]
	bl	_pcache1LeaveMutex
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	bl	_sqlite3BeginBenignMalloc
LBB0_2:
	lsl	w0, w21, #3
	bl	_sqlite3MallocZero
	mov	x20, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
	bl	_sqlite3EndBenignMalloc
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_pcache1EnterMutex
	cbz	x20, LBB0_11
; %bb.5:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x9, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x9, lsl #3]
	cbz	x10, LBB0_7
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10]
	udiv	w12, w11, w21
	msub	w11, w12, w21, w11
	ldr	x12, [x10, #8]
	lsl	x11, x11, #3
	ldr	x13, [x20, x11]
	str	x13, [x10, #8]
	str	x10, [x20, x11]
	mov	x10, x12
	cbnz	x12, LBB0_9
	b	LBB0_7
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_sqlite3_free
	str	x20, [x19, #8]
	str	w21, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pcache1ResizeHash
.subsections_via_symbols
