	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	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), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.6:
	movl	%edx, %ebx
	shlq	$4, %rbx
	cmpq	%r15, 8(%r12,%rbx)
	jne	LBB0_8
## %bb.7:
	leaq	(%r12,%rbx), %rcx
	addq	$8, %rcx
	movq	%rax, (%rcx)
LBB0_8:
	xorl	%edi, %edi
	cmpq	$0, (%r12,%rbx)
	setg	%dil
	callq	_assert
	decq	(%r12,%rbx)
LBB0_9:
	movq	%r15, %rdi
	callq	_sqlite3_free
	decq	(%r14)
	je	LBB0_11
## %bb.10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	%r12
	popq	%r14
	popq	%r15
	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	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	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	x21, [x19, #16]
	cbz	x21, LBB0_7
; %bb.4:
	mov	w9, w2
	add	x10, x21, w2, uxtw #4
	ldr	x11, [x10, #8]!
	cmp	x11, x20
	b.ne	LBB0_6
; %bb.5:
	str	x8, [x10]
LBB0_6:
	lsl	x22, x9, #4
	ldr	x8, [x21, x22]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x21, x22]
	sub	x8, x8, #1
	str	x8, [x21, x22]
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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sqlite3HashClear
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_removeElementGivenHash
.subsections_via_symbols
