	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function removeElementGivenHash
_removeElementGivenHash:                ## @removeElementGivenHash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%rcx, 8(%rax)
LBB0_5:
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:
	movl	%edx, %edx
	shlq	$4, %rdx
	cmpq	%rbx, 8(%rcx,%rdx)
	jne	LBB0_8
## %bb.7:
	leaq	(%rcx,%rdx), %rsi
	addq	$8, %rsi
	movq	%rax, (%rsi)
LBB0_8:
	movq	(%rcx,%rdx), %rax
	leaq	-1(%rax), %rsi
	movq	%rsi, (%rcx,%rdx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
LBB0_9:
	movq	%rbx, %rdi
	callq	_sqlite3_free
	decq	(%r14)
	je	LBB0_11
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_11:
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sqlite3HashClear               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_removeElementGivenHash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function removeElementGivenHash
_removeElementGivenHash:                ; @removeElementGivenHash
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x1]
	cbz	x9, LBB0_9
; %bb.1:
	str	x8, [x9]
	cbz	x8, LBB0_3
LBB0_2:
	str	x9, [x8, #8]
LBB0_3:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_7
; %bb.4:
	mov	w10, w2
	add	x11, x9, w2, uxtw #4
	ldr	x12, [x11, #8]!
	cmp	x12, x20
	b.ne	LBB0_6
; %bb.5:
	str	x8, [x11]
LBB0_6:
	lsl	x8, x10, #4
	ldr	x10, [x9, x8]
	sub	x11, x10, #1
	str	x11, [x9, x8]
	cmp	x10, #0
	cset	w0, gt
	bl	_assert
LBB0_7:
	mov	x0, x20
	bl	_sqlite3_free
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.eq	LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	x8, [x19, #8]
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_10:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sqlite3HashClear
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_removeElementGivenHash
.subsections_via_symbols
