// File: /workspace/github_c_makefile_star2_O1/nilyang[P]redis-tdd-annotation/deps/jemalloc/src/ckh.c
// Function: ckh_remove
bool
ckh_remove(ckh_t *ckh, const void *searchkey, void **key, void **data)
{
	size_t cell;

	assert(ckh != NULL);

	cell = ckh_isearch(ckh, searchkey);
	if (cell != SIZE_T_MAX) {
		if (key != NULL)
			*key = (void *)ckh->tab[cell].key;
		if (data != NULL)
			*data = (void *)ckh->tab[cell].data;
		ckh->tab[cell].key = NULL;
		ckh->tab[cell].data = NULL; /* Not necessary. */

		ckh->count--;
		/* Try to halve the table if it is less than 1/4 full. */
		if (ckh->count < (ZU(1) << (ckh->lg_curbuckets
		    + LG_CKH_BUCKET_CELLS - 2)) && ckh->lg_curbuckets
		    > ckh->lg_minbuckets) {
			/* Ignore error due to OOM. */
			ckh_shrink(ckh);
		}

		return (false);
	}

	return (true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl 0x14(%rdi), %esi
leaq 0x18(%rsp), %r13
leaq 0x10(%rsp), %rcx
movq %r12, %rdi
movq %r13, %rdx
callq *0x18(%rbx)
movb 0x14(%rbx), %cl
movq $-0x1, %r14
shlq %cl, %r14
notq %r14
andq (%r13), %r14
leaq (,%r14,4), %rbp
shlq $0x6, %r14
xorl %r13d, %r13d
movq 0x28(%rbx), %rax
movq (%rax,%r14), %rsi
testq %rsi, %rsi
je 0x9330f
movq %r12, %rdi
callq *0x20(%rbx)
testb %al, %al
jne 0x93325
incq %r13
addq $0x10, %r14
cmpq $0x4, %r13
jne 0x932f8
movq $-0x1, %rbp
jmp 0x93328
addq %r13, %rbp
cmpq $-0x1, %rbp
jne 0x93382
movb 0x14(%rbx), %cl
movq $-0x1, %r14
shlq %cl, %r14
notq %r14
andq 0x10(%rsp), %r14
leaq (,%r14,4), %rbp
shlq $0x6, %r14
xorl %r13d, %r13d
movq 0x28(%rbx), %rax
movq (%rax,%r14), %rsi
testq %rsi, %rsi
je 0x93369
movq %r12, %rdi
callq *0x20(%rbx)
testb %al, %al
jne 0x9337f
incq %r13
addq $0x10, %r14
cmpq $0x4, %r13
jne 0x93352
movq $-0x1, %rbp
jmp 0x93382
addq %r13, %rbp
cmpq $-0x1, %rbp
je 0x93569
testq %r15, %r15
je 0x933a3
movq 0x28(%rbx), %rax
movq %rbp, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rax
movq %rax, (%r15)
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
je 0x933c0
movq 0x28(%rbx), %rax
movq %rbp, %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rax
movq %rax, (%rdx)
movq 0x28(%rbx), %rax
movq %rbp, %rcx
shlq $0x4, %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rcx)
movq 0x8(%rbx), %rax
decq %rax
movq %rax, 0x8(%rbx)
movl 0x14(%rbx), %r14d
movl %r14d, %ecx
shrq %cl, %rax
testq %rax, %rax
jne 0x93569
cmpl 0x10(%rbx), %r14d
jbe 0x93569
leal 0x1(%r14), %ecx
movl $0x10, %eax
shlq %cl, %rax
leaq 0x3f(%rax), %rdi
andq $-0x40, %rdi
cmpq %rax, %rdi
jae 0x934b0
xorl %edi, %edi
testq %rdi, %rdi
je 0x93569
callq 0x92822
testq %rax, %rax
je 0x93569
movq 0x28(%rbx), %rcx
movq %rax, 0x28(%rbx)
movq %r14, 0x20(%rsp)
leal -0x1(%r14), %eax
movl %eax, 0x14(%rbx)
movq 0x8(%rbx), %r15
movq $0x0, 0x8(%rbx)
testq %r15, %r15
setne %r13b
movq %rcx, 0x8(%rsp)
je 0x9353d
leaq 0x8(%rcx), %r12
xorl %r14d, %r14d
movq -0x8(%r12), %rax
testq %rax, %rax
je 0x9349e
movq %rax, 0x18(%rsp)
movq (%r12), %rax
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x9302f
testb %al, %al
jne 0x93539
incq %r14
addq $0x10, %r12
cmpq %r15, %r14
setb %r13b
jb 0x93469
jmp 0x9353d
leaq 0x4c479(%rip), %rcx     # 0xdf930
movq (%rcx), %rcx
cmpq %rcx, %rdi
jbe 0x934f7
leaq 0xfff(%rax), %rdi
andq $-0x1000, %rdi          # imm = 0xF000
cmpq %rax, %rdi
jb 0x93417
cmpq %rcx, %rdi
jbe 0x93419
leaq 0x4c39a(%rip), %rax     # 0xdf880
movq (%rax), %rax
addq %rax, %rdi
notq %rax
andq %rax, %rdi
jmp 0x93419
cmpq $0xe00, %rdi            # imm = 0xE00
ja 0x93526
decq %rdi
shrq $0x3, %rdi
leaq 0xfbb2(%rip), %rax      # 0xa30c0
movzbl (%rax,%rdi), %eax
imulq $0x68, %rax, %rax
leaq 0x4b6e3(%rip), %rcx     # 0xdec00
movq (%rcx,%rax), %rdi
jmp 0x93419
addq $0xfff, %rdi            # imm = 0xFFF
andq $-0x1000, %rdi          # imm = 0xF000
jmp 0x93419
movq %r15, 0x8(%rbx)
testb $0x1, %r13b
je 0x9355f
movq 0x28(%rbx), %rdi
callq 0x92b0f
movq 0x8(%rsp), %rax
movq %rax, 0x28(%rbx)
movq 0x20(%rsp), %rax
movl %eax, 0x14(%rbx)
jmp 0x93569
movq 0x8(%rsp), %rdi
callq 0x92b0f
cmpq $-0x1, %rbp
sete %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq