// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/jemalloc/src/ckh.c
// Function: je_ckh_delete
void
ckh_delete(tsd_t *tsd, ckh_t *ckh)
{

	assert(ckh != NULL);

#ifdef CKH_VERBOSE
	malloc_printf(
	    "%s(%p): ngrows: %"FMTu64", nshrinks: %"FMTu64","
	    " nshrinkfails: %"FMTu64", ninserts: %"FMTu64","
	    " nrelocs: %"FMTu64"\n", __func__, ckh,
	    (unsigned long long)ckh->ngrows,
	    (unsigned long long)ckh->nshrinks,
	    (unsigned long long)ckh->nshrinkfails,
	    (unsigned long long)ckh->ninserts,
	    (unsigned long long)ckh->nrelocs);
#endif

	idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true);
	if (config_debug)
		memset(ckh, 0x5a, sizeof(ckh_t));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x28(%rsi), %r15
movq 0x8(%rdi), %rbx
leaq 0x1e366(%rip), %r13     # 0x576b0
movq (%r13), %rax
notq %rax
andq %r15, %rax
cmpq %rax, %r15
je 0x3945b
movq (%rax), %r12
cmpq %rax, %r15
je 0x39475
movq %r15, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1e1de(%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 0x3949e
movl %ecx, %eax
leaq 0x8fe1(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r12)
movq (%r13), %rsi
notq %rsi
andq %r15, %rsi
movq %r15, %rcx
subq %rsi, %rcx
je 0x39482
shrq $0xc, %rcx
leaq 0x1e18a(%rip), %rax     # 0x57558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x394b2
testq %rbx, %rbx
je 0x394f0
shrl $0x5, %eax
movzbl %al, %r12d
leaq 0x1d22a(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x39522
movl %r12d, %eax
shll $0x5, %eax
leaq (%rbx,%rax), %r13
addq $0x20, %r13
leaq 0x1e99a(%rip), %rax     # 0x57db0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x3953a
movq 0x18(%r13), %rax
movl %r8d, %ecx
movq %r15, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r13)
movl 0x18(%rbx), %eax
incl %eax
movl %eax, 0x18(%rbx)
cmpl $0xd3, %eax
je 0x39509
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x311b6
movq %rax, %r12
movq (%r13), %rax
notq %rax
andq %r15, %rax
jmp 0x39360
movq %r15, %rdi
callq 0x311c1
jmp 0x393a3
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30dbc
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x393a3
testq %rbx, %rbx
je 0x394d7
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x1e912(%rip), %rcx     # 0x57de0
cmpq (%rcx), %r12
jbe 0x39557
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x24608
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x244f0
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x36f85
imulq $0x60, %r12, %rsi
addq 0x1aaab(%rip), %rsi     # 0x53fd8
movq %r15, %rdi
callq 0x233ee
jmp 0x39401
shrl %r8d
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x37034
movl 0x10(%r13), %r8d
jmp 0x39427
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x395bd
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x958f(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %ebp
leaq 0x1d0a6(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x395c9
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%rbx,%rcx), %r12
addq $0x20, %r12
leaq 0x1e817(%rip), %rcx     # 0x57db0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x395d6
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r15, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x39439
movq %r12, %rdi
callq 0x3acd0
movl %eax, %ebp
jmp 0x39575
movq %r15, %rdi
movq %r12, %rsi
callq 0x244f5
jmp 0x39581
shrl %ecx
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %rbx, %r8
callq 0x371b7
movl 0x10(%r12), %ecx
jmp 0x395a6