// File: /workspace/github_c_makefile_star2_O3/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 0x1cbcd(%rip), %r13     # 0x5b6b0
movq (%r13), %rax
notq %rax
andq %r15, %rax
cmpq %rax, %r15
je 0x3ebf4
movq (%rax), %r12
cmpq %rax, %r15
je 0x3ec0e
movq %r15, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1ca45(%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 0x3ec37
movl %ecx, %eax
leaq 0x8d08(%rip), %rcx      # 0x47840
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 0x3ec1b
shrq $0xc, %rcx
leaq 0x1c9f1(%rip), %rax     # 0x5b558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x3ec4b
testq %rbx, %rbx
je 0x3ec89
shrl $0x5, %eax
movzbl %al, %r12d
leaq 0x1ba91(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x3ecbb
movl %r12d, %eax
shll $0x5, %eax
leaq (%rbx,%rax), %r13
addq $0x20, %r13
leaq 0x1d201(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x3ecd6
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 0x3eca2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x36d3b
movq %rax, %r12
movq (%r13), %rax
notq %rax
andq %r15, %rax
jmp 0x3eaf9
movq %r15, %rdi
callq 0x36d46
jmp 0x3eb3c
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 0x36925
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x3eb3c
testq %rbx, %rbx
je 0x3ec70
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x1d179(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r12
jbe 0x3ecf3
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x299db
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x298af
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3c7e1
leaq (%r12,%r12,2), %rsi
shll $0x5, %esi
addq 0x1930f(%rip), %rsi     # 0x57fd8
movq %r15, %rdi
callq 0x2859f
jmp 0x3eb9a
shrl %r8d
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x3c88f
movl 0x10(%r13), %r8d
jmp 0x3ebc0
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x3ed59
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x92b3(%rip), %rcx      # 0x47fc0
movzbl (%rcx,%rax), %ebp
leaq 0x1b90a(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x3ed65
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%rbx,%rcx), %r12
addq $0x20, %r12
leaq 0x1d07b(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x3ed72
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r15, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x3ebd2
movq %r12, %rdi
callq 0x14642
movl %eax, %ebp
jmp 0x3ed11
movq %r15, %rdi
movq %r12, %rsi
callq 0x298b4
jmp 0x3ed1d
shrl %ecx
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %rbx, %r8
callq 0x3ca47
movl 0x10(%r12), %ecx
jmp 0x3ed42