// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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 0x33b8c(%rip), %r13     # 0x846a0
movq (%r13), %rax
notq %rax
andq %r15, %rax
cmpq %rax, %r15
je 0x50c32
movq (%rax), %r12
movq (%r13), %rax
notq %rax
andq %r15, %rax
movq %r15, %rcx
subq %rax, %rcx
je 0x50c42
shrq $0xc, %rcx
leaq 0x339fd(%rip), %rdx     # 0x84548
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 0x50c6b
movl %ecx, %eax
leaq 0x8510(%rip), %rcx      # 0x59080
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 0x50c4f
shrq $0xc, %rcx
leaq 0x339a9(%rip), %rax     # 0x84548
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x50c7f
testq %rbx, %rbx
je 0x50cbd
shrl $0x5, %eax
movzbl %al, %ebp
leaq 0x32b6a(%rip), %rax     # 0x83732
cmpb $0x1, (%rax)
movl %ebp, %r13d
je 0x50cef
movl %ebp, %eax
shll $0x5, %eax
leaq (%rbx,%rax), %r12
addq $0x20, %r12
leaq 0x341b8(%rip), %rax     # 0x84da0
movq (%rax), %rax
movl (%rax,%r13,4), %r8d
cmpl %r8d, 0x10(%r12)
je 0x50d11
movq 0x18(%r12), %rax
movl 0x10(%r12), %ecx
movq %r15, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x10(%r12)
movl 0x18(%rbx), %eax
incl %eax
movl %eax, 0x18(%rbx)
cmpl $0xe4, %eax
je 0x50cd6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x48ccc
movq %rax, %r12
jmp 0x50b2a
movq %r15, %rdi
callq 0x48cd7
jmp 0x50b74
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 0x488cb
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x50b74
testq %rbx, %rbx
je 0x50ca4
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x34135(%rip), %rcx     # 0x84dd0
cmpq (%rcx), %r12
jbe 0x50d29
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3bb14
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3b9e8
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4e7cd
leaq (,%r13,2), %rsi
addq %r13, %rsi
shll $0x5, %esi
addq 0x1d2c4(%rip), %rsi     # 0x6dfc8
movq %r15, %rdi
callq 0x3b00b
jmp 0x50bd4
shrl %r8d
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movl %ebp, %ecx
callq 0x4e87e
jmp 0x50bfa
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x50d90
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x8abd(%rip), %rcx      # 0x59800
movzbl (%rcx,%rax), %ebp
leaq 0x329e4(%rip), %rax     # 0x83732
cmpb $0x1, (%rax)
je 0x50d9c
movl %ebp, %eax
leaq 0x34044(%rip), %rcx     # 0x84da0
movq (%rcx), %rcx
movl (%rcx,%rax,4), %ecx
shlq $0x5, %rax
leaq (%rbx,%rax), %r12
addq $0x20, %r12
cmpl %ecx, 0x10(%r12)
jne 0x50bfa
shrl %ecx
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %rbx, %r8
callq 0x4ea32
jmp 0x50bfa
movq %r12, %rdi
callq 0x51df9
movl %eax, %ebp
jmp 0x50d47
movq %r15, %rdi
movq %r12, %rsi
callq 0x3b9ed
jmp 0x50d53