// File: /workspace/github_c_makefile_star2_O2/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 $0x18, %rsp
movq %r8, %r12
movq %rcx, %r13
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x3a9ac
movq %rax, %rbx
cmpq $-0x1, %rax
je 0x3a558
testq %r13, %r13
je 0x3a0d1
movq 0x28(%r15), %rax
movq %rbx, %rcx
shlq $0x4, %rcx
movq (%rax,%rcx), %rax
movq %rax, (%r13)
testq %r12, %r12
je 0x3a0ea
movq 0x28(%r15), %rax
movq %rbx, %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rax
movq %rax, (%r12)
movq 0x28(%r15), %rax
movq %rbx, %rcx
shlq $0x4, %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rcx)
movq 0x8(%r15), %rax
decq %rax
movq %rax, 0x8(%r15)
movl 0x14(%r15), %r12d
movl %r12d, %ecx
shrq %cl, %rax
testq %rax, %rax
jne 0x3a558
cmpl 0x10(%r15), %r12d
jbe 0x3a558
leal 0x1(%r12), %eax
pushq $0x10
popq %rsi
movl %eax, %ecx
shlq %cl, %rsi
pushq $-0x1
popq %rdi
pushq $0x7
popq %r8
cmpq $0x3800, %rsi           # imm = 0x3800
ja 0x3a184
leal 0x3f(%rsi), %r9d
andl $0x7fc0, %r9d           # imm = 0x7FC0
cmpl $0x1000, %r9d           # imm = 0x1000
ja 0x3a56e
leaq -0x1(%r9), %rcx
shrq $0x3, %rcx
leaq 0x8998(%rip), %rdx      # 0x42b00
movzbl (%rdx,%rcx), %ecx
leaq 0x820d(%rip), %rdx      # 0x42380
movq (%rdx,%rcx,8), %rdx
cmpq $0x4000, %rdx           # imm = 0x4000
jb 0x3a26b
leaq 0x1d3b5(%rip), %rdx     # 0x57540
leaq 0x1d516(%rip), %rcx     # 0x576a8
movq (%rcx), %r9
pushq $0x40
popq %rcx
pushq $0x20
popq %r10
cmpq %rsi, (%rdx)
jb 0x3a205
cmpq $0x41, %r9
jb 0x3a205
movl $0x4000, %edx           # imm = 0x4000
cmpq $0x4001, %rsi           # imm = 0x4001
jb 0x3a1ec
testq %rsi, %rsi
js 0x3a5df
movq %r10, %rdx
movl %eax, %ecx
shlq %cl, %rdx
decq %rdx
bsrq %rdx, %r11
leal -0x3(%r11), %ecx
movq %rdi, %rdx
shlq %cl, %rdx
cmpq $0x6, %r11
notq %rdx
cmovbq %r8, %rdx
leaq (%rdx,%rsi), %rcx
notq %rdx
andq %rcx, %rdx
leaq 0x1000(%rdx), %r11
leaq 0x1d36e(%rip), %r13     # 0x57568
movl $0x1000, %ecx           # imm = 0x1000
cmpq (%r13), %r11
jbe 0x3a26b
leaq 0x1d4a4(%rip), %rdx     # 0x576b0
movq (%rdx), %rdx
addq %rdx, %rcx
notq %rdx
andq %rcx, %rdx
je 0x3a558
cmpq %rsi, %r9
jae 0x3a257
cmpq $0x1000, %rsi           # imm = 0x1000
ja 0x3a7e3
leaq -0x1(%rsi), %rax
shrq $0x3, %rax
leaq 0x88c1(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %eax
leaq 0x8136(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %r9
cmpq %rsi, %r9
jb 0x3a558
movl $0xfff, %eax            # imm = 0xFFF
subq %rdx, %rax
movq %r9, %rdx
cmpq %r9, %rax
jb 0x3a558
testq %rdx, %rdx
je 0x3a558
pushq $0x40
popq %rcx
pushq $0x1
popq %r8
movq %r14, %rdi
xorl %esi, %esi
xorl %r9d, %r9d
callq 0x23953
testq %rax, %rax
je 0x3a558
movq %rax, %rbp
leaq 0x1d415(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
cmpq %rax, %rbp
je 0x3a59e
movq (%rax), %r13
cmpq %rax, %rbp
je 0x3a5be
movq %rbp, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1d28e(%rip), %rdx     # 0x57558
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 0x3a5cb
movl %ecx, %eax
leaq 0x8091(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x58(%r13)
movq 0x28(%r15), %r13
movq %rbp, 0x28(%r15)
leal -0x1(%r12), %eax
movl %eax, 0x14(%r15)
movq %r15, %rdi
movq %r13, %rsi
callq 0x3ad6a
testb %al, %al
je 0x3a446
movq %r13, 0x8(%rsp)
movq 0x28(%r15), %r10
movq 0x8(%r14), %r9
leaq 0x1d37f(%rip), %rbp     # 0x576b0
movq (%rbp), %rax
notq %rax
andq %r10, %rax
cmpq %rax, %r10
je 0x3a5ee
movq (%rax), %r13
cmpq %rax, %r10
je 0x3a616
movq %r10, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1d1f7(%rip), %rdx     # 0x57558
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 0x3a682
movl %ecx, %eax
leaq 0x7ffa(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r13)
movq (%rbp), %rsi
notq %rsi
andq %r10, %rsi
movq %r10, %rcx
subq %rsi, %rcx
je 0x3a635
shrq $0xc, %rcx
leaq 0x1d1a4(%rip), %rax     # 0x57558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x3a696
testq %r9, %r9
je 0x3a718
shrl $0x5, %eax
movzbl %al, %r13d
leaq 0x1c244(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x3a74d
movl %r13d, %eax
shll $0x5, %eax
leaq (%r9,%rax), %rbp
addq $0x20, %rbp
leaq 0x1d9b4(%rip), %rax     # 0x57db0
movq (%rax), %rax
movl 0x10(%rbp), %r8d
cmpl (%rax,%r13,4), %r8d
je 0x3a773
movq 0x8(%rsp), %r13
movq 0x18(%rbp), %rax
movl %r8d, %ecx
movq %r10, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%rbp)
movl 0x18(%r9), %eax
incl %eax
movl %eax, 0x18(%r9)
cmpl $0xd3, %eax
je 0x3a79e
movq %r13, 0x28(%r15)
movl %r12d, 0x14(%r15)
jmp 0x3a558
movq 0x8(%r14), %r15
leaq 0x1d25f(%rip), %rbp     # 0x576b0
movq (%rbp), %rax
notq %rax
andq %r13, %rax
cmpq %rax, %r13
je 0x3a648
movq (%rax), %r12
cmpq %rax, %r13
je 0x3a662
movq %r13, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1d0d7(%rip), %rdx     # 0x57558
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 0x3a6cf
movl %ecx, %eax
leaq 0x7eda(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r12)
movq (%rbp), %rsi
notq %rsi
andq %r13, %rsi
movq %r13, %rcx
subq %rsi, %rcx
je 0x3a66f
shrq $0xc, %rcx
leaq 0x1d083(%rip), %rax     # 0x57558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x3a6e3
testq %r15, %r15
je 0x3a72d
movq %r13, %rbp
shrl $0x5, %eax
movzbl %al, %r12d
leaq 0x1c120(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x3a7ae
movl %r12d, %eax
shll $0x5, %eax
leaq (%r15,%rax), %r13
addq $0x20, %r13
leaq 0x1d890(%rip), %rax     # 0x57db0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x3a7c6
movq 0x18(%r13), %rax
movl %r8d, %ecx
movq %rbp, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r13)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
je 0x3a73d
cmpq $-0x1, %rbx
sete %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x1(,%r9,2), %rcx
bsrq %rcx, %r10
leal -0x3(%r10), %ecx
movq %rdi, %rdx
shlq %cl, %rdx
cmpq $0x6, %r10
notq %rdx
cmovbq %r8, %rdx
leaq (%rdx,%r9), %rcx
notq %rdx
andq %rcx, %rdx
jmp 0x3a177
movq %rbp, %rdi
callq 0x311b6
movq %rax, %r13
leaq 0x1d100(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
jmp 0x3a2b0
movq %rbp, %rdi
callq 0x311c1
jmp 0x3a2f3
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x3a2f3
xorl %r11d, %r11d
cmpl $0x3b, %eax
adcq $0x3f, %r11
jmp 0x3a1cd
movq %r10, %rdi
movq %r9, (%rsp)
movq %r10, %r13
callq 0x311b6
movq %r13, %r10
movq (%rsp), %r9
movq %rax, %r13
movq (%rbp), %rax
notq %rax
andq %r10, %rax
jmp 0x3a347
movq %r10, %rdi
movq %r9, (%rsp)
movq %r10, 0x10(%rsp)
callq 0x311c1
movq 0x10(%rsp), %r10
movq (%rsp), %r9
jmp 0x3a38a
movq %r14, %rdi
movq %r10, %rsi
movq %r9, %rdx
callq 0x30dbc
jmp 0x3a723
movq %r13, %rdi
callq 0x311b6
movq %rax, %r12
movq (%rbp), %rax
notq %rax
andq %r13, %rax
jmp 0x3a467
movq %r13, %rdi
callq 0x311c1
jmp 0x3a4aa
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x30dbc
jmp 0x3a558
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x3a38a
movq %r10, 0x10(%rsp)
testq %r9, %r9
je 0x3a6c0
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r13
leaq 0x1d729(%rip), %rcx     # 0x57de0
cmpq (%rcx), %r13
jbe 0x3a81c
movq (%rsi), %rdi
movq 0x10(%rsp), %rdx
callq 0x24608
jmp 0x3a723
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x3a4aa
testq %r15, %r15
je 0x3a708
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x1d6e1(%rip), %rcx     # 0x57de0
cmpq (%rcx), %r12
jbe 0x3a8b5
movq (%rsi), %rdi
movq %r13, %rdx
callq 0x24608
jmp 0x3a558
movq (%rsi), %rdi
movq %r10, %rdx
callq 0x244f0
movq 0x8(%rsp), %r13
jmp 0x3a439
movq (%rsi), %rdi
movq %r13, %rdx
callq 0x244f0
jmp 0x3a558
movq %r14, %rdi
movq %r15, %rsi
callq 0x36f85
jmp 0x3a558
imulq $0x60, %r13, %rsi
addq 0x19880(%rip), %rsi     # 0x53fd8
movq %r10, %rdi
movq %r9, (%rsp)
movq %r10, %rbp
callq 0x233ee
movq %rbp, %r10
movq (%rsp), %r9
jmp 0x3a3e7
shrl %r8d
movq %r14, %rdi
movq %r9, %rsi
movq %rbp, %rdx
movl %r13d, %ecx
movq %r9, (%rsp)
movq %r10, %r13
callq 0x37034
movq %r13, %r10
movq (%rsp), %r9
movl 0x10(%rbp), %r8d
jmp 0x3a40d
movq %r14, %rdi
movq %r9, %rsi
callq 0x36f85
jmp 0x3a439
imulq $0x60, %r12, %rsi
addq 0x1981f(%rip), %rsi     # 0x53fd8
movq %rbp, %rdi
callq 0x233ee
jmp 0x3a50b
shrl %r8d
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x37034
movl 0x10(%r13), %r8d
jmp 0x3a531
testq %rsi, %rsi
js 0x3a927
movl %eax, %ecx
shlq %cl, %r10
decq %r10
bsrq %r10, %r9
leal -0x3(%r9), %ecx
shlq %cl, %rdi
cmpq $0x6, %r9
notq %rdi
cmovbq %r8, %rdi
leaq (%rdi,%rsi), %rax
notq %rdi
andq %rax, %rdi
movq %rdi, %r9
jmp 0x3a24e
movq %r9, %rbp
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x3a936
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x82c3(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %eax
movl %eax, (%rsp)
leaq 0x1bdd7(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x3a943
movl (%rsp), %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%rcx,%rbp), %r13
addq $0x20, %r13
leaq 0x1d543(%rip), %rcx     # 0x57db0
movq (%rcx), %rdx
movl 0x10(%r13), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x3a955
movq 0x18(%r13), %rax
movl %ecx, %edx
movq 0x10(%rsp), %rsi
movq %rsi, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r13)
movl 0x18(%rbp), %eax
incl %eax
movl %eax, 0x18(%rbp)
cmpl $0xd3, %eax
movq 0x8(%rsp), %r13
jne 0x3a439
movq %r14, %rdi
movq %rbp, %rsi
jmp 0x3a7a4
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x3a971
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x822d(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %ebp
leaq 0x1bd44(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x3a980
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r15,%rcx), %r12
addq $0x20, %r12
leaq 0x1d4b1(%rip), %rcx     # 0x57db0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x3a990
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r13, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x3a543
xorl %r9d, %r9d
cmpl $0x3b, %eax
adcq $0x3f, %r9
jmp 0x3a7f8
movq %r13, %rdi
callq 0x3acd0
jmp 0x3a841
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x244f5
jmp 0x3a854
shrl %ecx
movq %r14, %rdi
movq %r13, %rsi
movl (%rsp), %edx
movq %rbp, %r8
callq 0x371b7
movl 0x10(%r13), %ecx
jmp 0x3a87d
movq %r12, %rdi
callq 0x3acd0
movl %eax, %ebp
jmp 0x3a8d7
movq %r13, %rdi
movq %r12, %rsi
callq 0x244f5
jmp 0x3a8e7
shrl %ecx
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r15, %r8
callq 0x371b7
movl 0x10(%r12), %ecx
jmp 0x3a910