	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ckh_remove                     ## -- Begin function ckh_remove
	.p2align	4, 0x90
_ckh_remove:                            ## @ckh_remove
	.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
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ckh_isearch
	movq	_SIZE_T_MAX@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	8(%rcx,%rdx), %rcx
	movq	%rcx, (%r12)
LBB0_3:
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rcx
	movq	%rcx, (%r15)
LBB0_5:
	movq	16(%rbx), %rcx
	shlq	$4, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx,%rax)
	movl	(%rbx), %r15d
	leal	-1(%r15), %eax
	movl	%eax, (%rbx)
	movl	$1, %edi
	callq	_ZU
	movl	4(%rbx), %edx
	movq	_LG_CKH_BUCKET_CELLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%edx, %ecx
	addb	$-2, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	xorl	%r13d, %r13d
	cmpl	%eax, %r15d
	jg	LBB0_8
## %bb.6:
	cmpl	8(%rbx), %edx
	jle	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ckh_shrink
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_T_MAX,8,3                 ## @SIZE_T_MAX
	.comm	_LG_CKH_BUCKET_CELLS,4,2        ## @LG_CKH_BUCKET_CELLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ckh_remove                     ; -- Begin function ckh_remove
	.p2align	2
_ckh_remove:                            ; @ckh_remove
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	mov	x1, x23
	bl	_ckh_isearch
Lloh0:
	adrp	x8, _SIZE_T_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_T_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	cbz	x22, LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	add	x8, x8, x0, lsl #4
	ldr	x8, [x8, #8]
	str	x8, [x22]
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	lsl	x9, x0, #4
	ldr	x8, [x8, x9]
	str	x8, [x21]
LBB0_6:
	ldr	x8, [x19, #16]
	add	x8, x8, x0, lsl #4
	stp	xzr, xzr, [x8]
	ldr	w21, [x19]
	sub	w8, w21, #1
	str	w8, [x19]
	mov	w0, #1
	bl	_ZU
Lloh3:
	adrp	x9, _LG_CKH_BUCKET_CELLS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LG_CKH_BUCKET_CELLS@GOTPAGEOFF]
	ldr	w8, [x19, #4]
Lloh5:
	ldr	w9, [x9]
	add	w9, w8, w9
	sub	w9, w9, #2
	lsl	w9, w0, w9
	cmp	w21, w9
	b.gt	LBB0_9
; %bb.7:
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.le	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_ckh_shrink
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_T_MAX,8,3                 ; @SIZE_T_MAX
	.comm	_LG_CKH_BUCKET_CELLS,4,2        ; @LG_CKH_BUCKET_CELLS
.subsections_via_symbols
