// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/jemalloc/src/ckh.c
// Function: je_ckh_remove
bool
ckh_remove(tsd_t *tsd, 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(tsd, ckh);
		}

		return (false);
	}

	return (true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
leaq 0x20(%rsp), %rbp
movq %rdx, %rdi
movq %rbp, %rsi
callq *0x18(%r14)
movb 0x14(%r14), %cl
pushq $-0x1
popq %r15
shlq %cl, %r15
notq %r15
andq (%rbp), %r15
leaq (,%r15,4), %rbx
shlq $0x6, %r15
xorl %r12d, %r12d
movq 0x28(%r14), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0x13ca9
movq %r13, %rdi
callq *0x20(%r14)
testb %al, %al
jne 0x13cb8
decq %r12
addq $0x10, %r15
cmpq $-0x4, %r12
jne 0x13c91
jmp 0x13cc1
leaq 0x1(%rbx), %rax
cmpq %r12, %rax
jne 0x13d20
movb 0x14(%r14), %cl
pushq $-0x1
popq %r15
shlq %cl, %r15
notq %r15
andq 0x28(%rsp), %r15
leaq (,%r15,4), %rbx
shlq $0x6, %r15
xorl %r12d, %r12d
movq 0x28(%r14), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0x13cfb
movq %r13, %rdi
callq *0x20(%r14)
testb %al, %al
jne 0x13d10
decq %r12
addq $0x10, %r15
cmpq $-0x4, %r12
jne 0x13ce3
movb $0x1, %bpl
jmp 0x14235
leaq 0x1(%rbx), %rax
movb $0x1, %bpl
cmpq %r12, %rax
je 0x14235
subq %r12, %rbx
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
movq 0x10(%rsp), %rdx
je 0x13d44
movq 0x28(%r14), %rax
movq %rbx, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rax
movq %rax, (%rsi)
testq %rdx, %rdx
je 0x13d5c
movq 0x28(%r14), %rax
movq %rbx, %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rax
movq %rax, (%rdx)
movq 0x28(%r14), %rax
shlq $0x4, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rbx)
movq 0x8(%r14), %rax
decq %rax
movq %rax, 0x8(%r14)
movl 0x14(%r14), %ebx
movl %ebx, %ecx
shrq %cl, %rax
testq %rax, %rax
jne 0x14233
cmpl 0x10(%r14), %ebx
jbe 0x14233
leal 0x1(%rbx), %eax
pushq $0x10
popq %rsi
movl %eax, %ecx
shlq %cl, %rsi
pushq $0x7
popq %rdi
cmpq $0x3800, %rsi           # imm = 0x3800
ja 0x13dec
leal 0x3f(%rsi), %r8d
andl $0x7fc0, %r8d           # imm = 0x7FC0
cmpl $0x1000, %r8d           # imm = 0x1000
ja 0x14246
leaq -0x1(%r8), %rcx
shrq $0x3, %rcx
leaq 0x341f0(%rip), %rdx     # 0x47fc0
movzbl (%rdx,%rcx), %ecx
leaq 0x33a65(%rip), %rdx     # 0x47840
movq (%rdx,%rcx,8), %rdx
cmpq $0x4000, %rdx           # imm = 0x4000
jb 0x13ed2
leaq 0x4774d(%rip), %rdx     # 0x5b540
leaq 0x478ae(%rip), %rcx     # 0x5b6a8
movq (%rcx), %r8
pushq $0x40
popq %rcx
pushq $0x20
popq %r9
cmpq %rsi, (%rdx)
jb 0x13e6c
cmpq $0x41, %r8
jb 0x13e6c
movl $0x4000, %edx           # imm = 0x4000
cmpq $0x4001, %rsi           # imm = 0x4001
jb 0x13e54
testq %rsi, %rsi
js 0x142b0
movq %r9, %rdx
movl %eax, %ecx
shlq %cl, %rdx
decq %rdx
bsrq %rdx, %r10
leal -0x3(%r10), %ecx
pushq $-0x1
popq %rdx
shlq %cl, %rdx
cmpq $0x6, %r10
notq %rdx
cmovbq %rdi, %rdx
leaq (%rdx,%rsi), %rcx
notq %rdx
andq %rcx, %rdx
leaq 0x1000(%rdx), %r10
leaq 0x47706(%rip), %r11     # 0x5b568
movl $0x1000, %ecx           # imm = 0x1000
cmpq (%r11), %r10
jbe 0x13ed2
leaq 0x4783d(%rip), %rdx     # 0x5b6b0
movq (%rdx), %rdx
addq %rdx, %rcx
notq %rdx
andq %rcx, %rdx
je 0x14233
cmpq %rsi, %r8
jae 0x13ebe
cmpq $0x1000, %rsi           # imm = 0x1000
ja 0x143fd
leaq -0x1(%rsi), %rax
shrq $0x3, %rax
leaq 0x3411a(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %eax
leaq 0x3398f(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %r8
cmpq %rsi, %r8
jb 0x14233
movl $0xfff, %eax            # imm = 0xFFF
subq %rdx, %rax
movq %r8, %rdx
cmpq %r8, %rax
jb 0x14233
testq %rdx, %rdx
je 0x14233
xorl %ebp, %ebp
pushq $0x40
popq %rcx
pushq $0x1
popq %r8
movq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %r9d, %r9d
callq 0x28c3d
testq %rax, %rax
je 0x14235
movq %rax, %r13
leaq 0x477aa(%rip), %r15     # 0x5b6b0
movq (%r15), %rax
notq %rax
andq %r13, %rax
cmpq %rax, %r13
je 0x14276
movq (%rax), %r12
cmpq %rax, %r13
je 0x1428f
movq %r13, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x47623(%rip), %rdx     # 0x5b558
subq (%rdx), %rcx
movq 0x68(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x1429c
movl %ecx, %eax
leaq 0x338e6(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x58(%r12)
movq 0x28(%r14), %rax
movq %rax, 0x10(%rsp)
movq %r13, 0x28(%r14)
movq %rbx, 0x18(%rsp)
leal -0x1(%rbx), %eax
movl %eax, 0x14(%r14)
movq 0x8(%r14), %rbx
andq $0x0, 0x8(%r14)
testq %rbx, %rbx
je 0x13fdc
movq 0x10(%rsp), %rax
leaq 0x8(%rax), %r12
xorl %r15d, %r15d
leaq 0x20(%rsp), %r13
leaq 0x30(%rsp), %rbp
movq -0x8(%r12), %rax
testq %rax, %rax
je 0x13fd3
movq %rax, 0x20(%rsp)
movq (%r12), %rax
movq %rax, 0x30(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3edf6
testb %al, %al
jne 0x14106
incq %r15
addq $0x10, %r12
cmpq %rbx, %r15
jb 0x13fa2
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r14
leaq 0x476c4(%rip), %r12     # 0x5b6b0
movq (%r12), %rax
notq %rax
movq 0x10(%rsp), %rbx
andq %rbx, %rax
cmpq %rax, %rbx
je 0x142bf
movq (%rax), %r15
cmpq %rax, %rbx
je 0x142d9
movq %rbx, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x47537(%rip), %rdx     # 0x5b558
subq (%rdx), %rcx
movq 0x68(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x142fb
movl %ecx, %eax
leaq 0x337fa(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r15)
movq (%r12), %rsi
notq %rsi
andq %rbx, %rsi
movq %rbx, %rcx
subq %rsi, %rcx
je 0x142e6
shrq $0xc, %rcx
leaq 0x474e4(%rip), %rax     # 0x5b558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x1430f
testq %r14, %r14
je 0x14342
shrl $0x5, %eax
movzbl %al, %r15d
leaq 0x46584(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x14352
movl %r15d, %eax
shll $0x5, %eax
leaq (%r14,%rax), %r13
addq $0x20, %r13
leaq 0x47cf4(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r15,4), %r8d
je 0x1436a
movq 0x18(%r13), %rax
movl %r8d, %ecx
movq %rbx, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r13)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl $0xd3, %eax
jne 0x14233
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x3c7e1
jmp 0x14233
movq %rbx, 0x8(%r14)
movq 0x28(%r14), %r9
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r12
leaq 0x47592(%rip), %r15     # 0x5b6b0
movq (%r15), %rax
notq %rax
andq %r9, %rax
cmpq %rax, %r9
je 0x1443a
movq (%rax), %r13
movq 0x18(%rsp), %rbx
cmpq %rax, %r9
je 0x14459
movq %r9, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x47406(%rip), %rdx     # 0x5b558
subq (%rdx), %rcx
movq 0x68(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x14481
movl %ecx, %eax
leaq 0x336c9(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r13)
movq (%r15), %rsi
notq %rsi
andq %r9, %rsi
movq %r9, %rcx
subq %rsi, %rcx
je 0x1446c
shrq $0xc, %rcx
leaq 0x473b4(%rip), %rax     # 0x5b558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x14495
testq %r12, %r12
je 0x144ce
shrl $0x5, %eax
movzbl %al, %r13d
leaq 0x46454(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x144de
movl %r13d, %eax
shll $0x5, %eax
leaq (%r12,%rax), %rbp
addq $0x20, %rbp
leaq 0x47bc4(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%rbp), %r8d
cmpl (%rax,%r13,4), %r8d
je 0x144fc
movq 0x18(%rbp), %rax
movl %r8d, %ecx
movq %r9, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%rbp)
movl 0x18(%r12), %eax
incl %eax
movl %eax, 0x18(%r12)
cmpl $0xd3, %eax
je 0x145a7
movq 0x10(%rsp), %rax
movq %rax, 0x28(%r14)
movl %ebx, 0x14(%r14)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x1(,%r8,2), %rcx
bsrq %rcx, %r9
leal -0x3(%r9), %ecx
pushq $-0x1
popq %rdx
shlq %cl, %rdx
cmpq $0x6, %r9
notq %rdx
cmovbq %rdi, %rdx
leaq (%rdx,%r8), %rcx
notq %rdx
andq %rcx, %rdx
jmp 0x13ddf
movq %r13, %rdi
callq 0x36d3b
movq %rax, %r12
movq (%r15), %rax
notq %rax
andq %r13, %rax
jmp 0x13f1b
movq %r13, %rdi
callq 0x36d46
jmp 0x13f5e
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x13f5e
xorl %r10d, %r10d
cmpl $0x3b, %eax
adcq $0x3f, %r10
jmp 0x13e35
movq %rbx, %rdi
callq 0x36d3b
movq %rax, %r15
movq (%r12), %rax
notq %rax
andq %rbx, %rax
jmp 0x14007
movq %rbx, %rdi
callq 0x36d46
jmp 0x1404a
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x36925
jmp 0x14233
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x1404a
testq %r14, %r14
je 0x14330
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r15
leaq 0x47ab5(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r15
jbe 0x14389
movq (%rsi), %rdi
movq 0x10(%rsp), %rdx
callq 0x299db
jmp 0x14233
movq (%rsi), %rdi
movq %rbx, %rdx
callq 0x298af
jmp 0x14233
imulq $0x60, %r15, %rsi
addq 0x43c7b(%rip), %rsi     # 0x57fd8
movq %rbx, %rdi
callq 0x2859f
jmp 0x140a7
shrl %r8d
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %r15d, %ecx
callq 0x3c88f
movl 0x10(%r13), %r8d
jmp 0x140cd
cmpq $0x1000, %r15           # imm = 0x1000
ja 0x145b9
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x33c19(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %ebp
leaq 0x46270(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x145c8
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r14,%rcx), %r15
addq $0x20, %r15
leaq 0x479dd(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r15), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x145da
movq 0x18(%r15), %rax
movl %ecx, %edx
movq 0x10(%rsp), %rsi
movq %rsi, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r15)
jmp 0x140df
testq %rsi, %rsi
js 0x145f7
movl %eax, %ecx
shlq %cl, %r9
decq %r9
bsrq %r9, %r8
leal -0x3(%r8), %ecx
pushq $-0x1
popq %r9
shlq %cl, %r9
cmpq $0x6, %r8
notq %r9
cmovbq %rdi, %r9
leaq (%r9,%rsi), %rax
notq %r9
andq %rax, %r9
movq %r9, %r8
jmp 0x13eb5
movq %r9, %rdi
movq %r9, %rbx
callq 0x36d3b
movq %rbx, %r9
movq %rax, %r13
movq (%r15), %rax
notq %rax
andq %rbx, %rax
jmp 0x14133
movq %r9, %rdi
movq %r9, %rbp
callq 0x36d46
movq %rbp, %r9
jmp 0x1417b
movq 0x8(%rsp), %rdi
movq %r9, %rsi
movq %r12, %rdx
callq 0x36925
jmp 0x14226
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x1417b
movq %r9, %rbx
testq %r12, %r12
je 0x144b9
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r13
leaq 0x4792c(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r13
jbe 0x14521
movq (%rsi), %rdi
movq %rbx, %rdx
callq 0x299db
movq 0x18(%rsp), %rbx
jmp 0x14226
movq (%rsi), %rdi
movq %r9, %rdx
callq 0x298af
jmp 0x14226
imulq $0x60, %r13, %rsi
addq 0x43aef(%rip), %rsi     # 0x57fd8
movq %r9, %rdi
movq %r9, %r15
callq 0x2859f
movq %r15, %r9
jmp 0x141d7
shrl %r8d
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movl %r13d, %ecx
movq %r9, %r15
callq 0x3c88f
movq %r15, %r9
movl 0x10(%rbp), %r8d
jmp 0x141fd
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x14606
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x33a81(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %ebp
leaq 0x460d8(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x14615
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r12,%rcx), %r13
addq $0x20, %r13
leaq 0x47845(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r13), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x14625
movq 0x18(%r13), %rax
movl %ecx, %edx
movq %rbx, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r13)
movl 0x18(%r12), %eax
incl %eax
movl %eax, 0x18(%r12)
cmpl $0xd3, %eax
movq 0x18(%rsp), %rbx
jne 0x14226
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x3c7e1
jmp 0x14226
movq %r15, %rdi
callq 0x14642
movl %eax, %ebp
jmp 0x143ab
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x298b4
jmp 0x143bb
shrl %ecx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r14, %r8
callq 0x3ca47
movl 0x10(%r15), %ecx
jmp 0x143e3
xorl %r8d, %r8d
cmpl $0x3b, %eax
adcq $0x3f, %r8
jmp 0x14412
movq %r13, %rdi
callq 0x14642
movl %eax, %ebp
jmp 0x14543
movq %rbx, %rdi
movq %r13, %rsi
callq 0x298b4
jmp 0x14553
shrl %ecx
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movl %ebp, %edx
movq %r12, %r8
callq 0x3ca47
movl 0x10(%r13), %ecx
jmp 0x1457b