// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/tcache.c
// Function: tcache_destroy
static void
tcache_destroy(tsd_t *tsd, tcache_t *tcache)
{
	arena_t *arena;
	unsigned i;

	arena = arena_choose(tsd, NULL);
	tcache_arena_dissociate(tcache, arena);

	for (i = 0; i < NBINS; i++) {
		tcache_bin_t *tbin = &tcache->tbins[i];
		tcache_bin_flush_small(tsd, tcache, tbin, i, 0);

		if (config_stats && tbin->tstats.nrequests != 0) {
			arena_bin_t *bin = &arena->bins[i];
			malloc_mutex_lock(&bin->lock);
			bin->stats.nrequests += tbin->tstats.nrequests;
			malloc_mutex_unlock(&bin->lock);
		}
	}

	for (; i < nhbins; i++) {
		tcache_bin_t *tbin = &tcache->tbins[i];
		tcache_bin_flush_large(tsd, tbin, i, 0, tcache);

		if (config_stats && tbin->tstats.nrequests != 0) {
			malloc_mutex_lock(&arena->lock);
			arena->stats.nrequests_large += tbin->tstats.nrequests;
			arena->stats.lstats[i - NBINS].nrequests +=
			    tbin->tstats.nrequests;
			malloc_mutex_unlock(&arena->lock);
		}
	}

	if (config_prof && tcache->prof_accumbytes > 0 &&
	    arena_prof_accum(arena, tcache->prof_accumbytes))
		prof_idump();

	idalloctm(tsd, tcache, false, true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x330, %rsp            # imm = 0x330
movq %rdi, -0x2f0(%rbp)
movq %rsi, -0x2f8(%rbp)
movq -0x2f0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x79ae0
movq %rax, -0x300(%rbp)
movq -0x2f8(%rbp), %rdi
movq -0x300(%rbp), %rsi
callq 0x79cc0
movl $0x0, -0x304(%rbp)
cmpl $0x27, -0x304(%rbp)
jae 0x7b05a
movq -0x2f8(%rbp), %rax
addq $0x20, %rax
movl -0x304(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x310(%rbp)
movq -0x2f0(%rbp), %rdi
movq -0x2f8(%rbp), %rsi
movq -0x310(%rbp), %rdx
movl -0x304(%rbp), %ecx
xorl %r8d, %r8d
callq 0x79510
movq -0x310(%rbp), %rax
cmpq $0x0, (%rax)
je 0x7b044
movq -0x300(%rbp), %rax
addq $0x450, %rax            # imm = 0x450
movl -0x304(%rbp), %ecx
imulq $0xe0, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x318(%rbp)
movq -0x318(%rbp), %rdi
callq 0x79b80
movq -0x310(%rbp), %rax
movq (%rax), %rcx
movq -0x318(%rbp), %rax
addq 0xa8(%rax), %rcx
movq %rcx, 0xa8(%rax)
movq -0x318(%rbp), %rdi
callq 0x79ba0
jmp 0x7b046
movl -0x304(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x304(%rbp)
jmp 0x7af8d
jmp 0x7b05c
movl -0x304(%rbp), %eax
cmpq 0x27e47(%rip), %rax     # 0xa2eb0
jae 0x7b13e
movq -0x2f8(%rbp), %rax
addq $0x20, %rax
movl -0x304(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x320(%rbp)
movq -0x2f0(%rbp), %rdi
movq -0x320(%rbp), %rsi
movl -0x304(%rbp), %edx
movq -0x2f8(%rbp), %r8
xorl %ecx, %ecx
callq 0x797c0
movq -0x320(%rbp), %rax
cmpq $0x0, (%rax)
je 0x7b128
movq -0x300(%rbp), %rdi
addq $0x8, %rdi
callq 0x79b80
movq -0x320(%rbp), %rax
movq (%rax), %rcx
movq -0x300(%rbp), %rax
addq 0x78(%rax), %rcx
movq %rcx, 0x78(%rax)
movq -0x320(%rbp), %rax
movq (%rax), %rcx
movq -0x300(%rbp), %rax
movq 0x98(%rax), %rax
movl -0x304(%rbp), %edx
subl $0x27, %edx
movl %edx, %edx
shlq $0x5, %rdx
addq %rdx, %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x300(%rbp), %rdi
addq $0x8, %rdi
callq 0x79ba0
jmp 0x7b12a
movl -0x304(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x304(%rbp)
jmp 0x7b05c
movq -0x2f0(%rbp), %rcx
movq -0x2f8(%rbp), %rax
movq %rcx, -0x2d0(%rbp)
movq %rax, -0x2d8(%rbp)
movq $0x0, -0x2e0(%rbp)
movb $0x1, -0x2e1(%rbp)
testb $0x1, -0x2e1(%rbp)
je 0x7b4d5
movq -0x2d8(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a8(%rbp), %rax
leaq 0x2758d(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
cmpq -0x1a8(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x7b1cb
jmp 0x7b1e0
movq -0x1b0(%rbp), %rdi
callq 0x79b60
movq %rax, -0x1a0(%rbp)
jmp 0x7b1f3
movq -0x1a8(%rbp), %rdi
callq 0x63b70
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x328(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x2b8(%rbp)
movb $0x0, -0x2b9(%rbp)
movq -0x2b8(%rbp), %rcx
movb -0x2b9(%rbp), %al
movq %rcx, -0x288(%rbp)
andb $0x1, %al
movb %al, -0x289(%rbp)
movq -0x288(%rbp), %rax
leaq 0x274f0(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
cmpq -0x288(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x7b26b
jmp 0x7b4af
movq -0x288(%rbp), %rax
movq -0x2a0(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a0(%rbp), %rcx
movq -0x2a8(%rbp), %rax
movq %rcx, -0x268(%rbp)
movq %rax, -0x270(%rbp)
movq -0x268(%rbp), %rcx
movq -0x270(%rbp), %rax
movq %rcx, -0x228(%rbp)
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rcx
movq -0x230(%rbp), %rax
movq %rcx, -0x208(%rbp)
movq %rax, -0x210(%rbp)
movq -0x208(%rbp), %rcx
movq -0x210(%rbp), %rax
movq %rcx, -0x1f8(%rbp)
movq %rax, -0x200(%rbp)
movq -0x1f8(%rbp), %rax
addq $0x68, %rax
movq -0x200(%rbp), %rcx
leaq 0x272c8(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0x27c(%rbp)
movl -0x27c(%rbp), %eax
movl %eax, -0x2ac(%rbp)
movl -0x2ac(%rbp), %eax
movl %eax, %ecx
movb $0x1, %al
cmpq $0xff, %rcx
movb %al, -0x329(%rbp)
je 0x7b378
xorl %eax, %eax
movb %al, -0x329(%rbp)
jmp 0x7b378
movb -0x329(%rbp), %al
testb $0x1, %al
jne 0x7b387
jmp 0x7b46d
movq -0x2a0(%rbp), %rcx
movq -0x2a8(%rbp), %rax
movq %rcx, -0x250(%rbp)
movq %rax, -0x258(%rbp)
movq -0x250(%rbp), %rcx
movq -0x258(%rbp), %rax
movq %rcx, -0x238(%rbp)
movq %rax, -0x240(%rbp)
movq -0x238(%rbp), %rcx
movq -0x240(%rbp), %rax
movq %rcx, -0x1e8(%rbp)
movq %rax, -0x1f0(%rbp)
movq -0x1e8(%rbp), %rcx
movq -0x1f0(%rbp), %rax
movq %rcx, -0x1d8(%rbp)
movq %rax, -0x1e0(%rbp)
movq -0x1d8(%rbp), %rax
addq $0x68, %rax
movq -0x1e0(%rbp), %rcx
leaq 0x271c8(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x260(%rbp)
movq -0x260(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x1d0(%rbp)
movq -0x1d0(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rax, -0x298(%rbp)
jmp 0x7b4ad
movl -0x2ac(%rbp), %eax
movl %eax, -0x244(%rbp)
movl -0x244(%rbp), %eax
movl %eax, -0x1b4(%rbp)
movl -0x1b4(%rbp), %eax
movl %eax, %ecx
leaq 0x1306c(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x298(%rbp)
jmp 0x7b4c2
movq -0x288(%rbp), %rdi
callq 0x63ba0
movq %rax, -0x298(%rbp)
movq -0x328(%rbp), %rdi
movq -0x298(%rbp), %rsi
callq 0x7bf80
movq -0x2d0(%rbp), %rdx
movq -0x2d8(%rbp), %rcx
movq -0x2e0(%rbp), %rax
movq %rdx, -0x160(%rbp)
movq %rcx, -0x168(%rbp)
movq %rax, -0x170(%rbp)
movq -0x168(%rbp), %rax
leaq 0x27223(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
cmpq -0x168(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x7b538
jmp 0x7ba6c
movq -0x168(%rbp), %rax
movq -0x178(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0x180(%rbp)
movq -0x178(%rbp), %rcx
movq -0x180(%rbp), %rax
movq %rcx, -0x128(%rbp)
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rcx
movq -0x130(%rbp), %rax
movq %rcx, -0x108(%rbp)
movq %rax, -0x110(%rbp)
movq -0x108(%rbp), %rcx
movq -0x110(%rbp), %rax
movq %rcx, -0xf8(%rbp)
movq %rax, -0x100(%rbp)
movq -0xf8(%rbp), %rax
addq $0x68, %rax
movq -0x100(%rbp), %rcx
leaq 0x27017(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
andq $0x2, %rax
cmpq $0x0, %rax
sete %al
testb $0x1, %al
jne 0x7b5fe
jmp 0x7b7d4
cmpq $0x0, -0x170(%rbp)
setne %al
testb $0x1, %al
jne 0x7b612
jmp 0x7b7a6
movq -0x168(%rbp), %rcx
movq -0x188(%rbp), %rax
movq %rcx, -0xb0(%rbp)
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, -0x18c(%rbp)
movq -0x160(%rbp), %rsi
movq -0x170(%rbp), %rdx
movq -0x168(%rbp), %rcx
movl -0x18c(%rbp), %eax
movq %rsi, -0x80(%rbp)
movq %rdx, -0x88(%rbp)
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq 0x26017(%rip), %rax     # 0xa16a2
movb (%rax), %al
testb $0x1, %al
jne 0x7b693
jmp 0x7b6b3
movq -0x90(%rbp), %rdi
movl -0x94(%rbp), %eax
leaq 0x26079(%rip), %rsi     # 0xa1720
imulq $0x60, %rax, %rax
addq %rax, %rsi
callq 0x3d680
movq -0x88(%rbp), %rax
addq $0x20, %rax
movl -0x94(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movq 0x277cf(%rip), %rax     # 0xa2ea8
movl -0x94(%rbp), %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rax
movl 0x10(%rax), %eax
movq -0xa8(%rbp), %rcx
cmpl (%rcx), %eax
sete %al
testb $0x1, %al
jne 0x7b709
jmp 0x7b733
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq -0xa0(%rbp), %rdx
movl -0x94(%rbp), %ecx
movq -0xa8(%rbp), %rax
movl (%rax), %r8d
shrl %r8d
callq 0x79510
movq -0x90(%rbp), %rdx
movq -0xa0(%rbp), %rax
movq 0x18(%rax), %rax
movq -0xa0(%rbp), %rcx
movl 0x10(%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0xa0(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x80(%rbp), %rcx
movq -0x88(%rbp), %rax
movq %rcx, -0x8(%rbp)
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x18(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpl $0xd3, 0x18(%rax)
sete %al
testb $0x1, %al
jne 0x7b797
jmp 0x7b7a4
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x793c0
jmp 0x7b7cf
movq -0x178(%rbp), %rdi
callq 0x79b60
movq %rax, %rdi
movq -0x178(%rbp), %rsi
movq -0x168(%rbp), %rdx
movq -0x180(%rbp), %rcx
callq 0x3ff30
jmp 0x7ba6a
movq -0x178(%rbp), %rcx
movq -0x180(%rbp), %rax
movq %rcx, -0x148(%rbp)
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rcx
movq -0x150(%rbp), %rax
movq %rcx, -0x138(%rbp)
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rcx
movq -0x140(%rbp), %rax
movq %rcx, -0xe8(%rbp)
movq %rax, -0xf0(%rbp)
movq -0xe8(%rbp), %rcx
movq -0xf0(%rbp), %rax
movq %rcx, -0xd8(%rbp)
movq %rax, -0xe0(%rbp)
movq -0xd8(%rbp), %rax
addq $0x68, %rax
movq -0xe0(%rbp), %rcx
leaq 0x26d7b(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x198(%rbp)
cmpq $0x0, -0x170(%rbp)
setne %al
testb $0x1, %al
jne 0x7b8c6
jmp 0x7ba46
movq -0x198(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
cmpq 0x275fe(%rip), %rax     # 0xa2ed8
ja 0x7ba46
movq -0x160(%rbp), %rsi
movq -0x170(%rbp), %rdx
movq -0x168(%rbp), %rcx
movq -0x198(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rsi, -0x48(%rbp)
movq %rdx, -0x50(%rbp)
movq %rcx, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x1000, -0x40(%rbp)    # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x7b92b
jmp 0x7b957
movq -0x40(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x1333a(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movl %eax, -0x34(%rbp)
jmp 0x7b963
movq -0x40(%rbp), %rdi
callq 0x7bfe0
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x64(%rbp)
leaq 0x25d32(%rip), %rax     # 0xa16a2
movb (%rax), %al
testb $0x1, %al
jne 0x7b978
jmp 0x7b985
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x3ffa0
movq -0x50(%rbp), %rax
addq $0x20, %rax
movl -0x64(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq 0x27506(%rip), %rax     # 0xa2ea8
movl -0x64(%rbp), %ecx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x78(%rbp), %rcx
cmpl (%rcx), %eax
sete %al
testb $0x1, %al
jne 0x7b9c6
jmp 0x7b9e2
movq -0x48(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl -0x64(%rbp), %edx
movq -0x78(%rbp), %rax
movl (%rax), %ecx
shrl %ecx
movq -0x50(%rbp), %r8
callq 0x797c0
movq -0x58(%rbp), %rdx
movq -0x70(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x70(%rbp), %rcx
movl 0x10(%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x70(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl 0x18(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x18(%rax)
movq -0x20(%rbp), %rax
cmpl $0xd3, 0x18(%rax)
sete %al
testb $0x1, %al
jne 0x7ba37
jmp 0x7ba44
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x793c0
jmp 0x7ba68
movq -0x178(%rbp), %rdi
callq 0x79b60
movq %rax, %rdi
movq -0x178(%rbp), %rsi
movq -0x168(%rbp), %rdx
callq 0x40280
jmp 0x7ba6a
jmp 0x7ba86
movq -0x160(%rbp), %rdi
movq -0x168(%rbp), %rsi
movq -0x170(%rbp), %rdx
callq 0x62f50
addq $0x330, %rsp            # imm = 0x330
popq %rbp
retq
nop