// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/jemalloc/src/quarantine.c
// Function: je_quarantine_cleanup
void
quarantine_cleanup(tsd_t *tsd)
{
	quarantine_t *quarantine;

	if (!config_fill)
		return;

	quarantine = tsd_quarantine_get(tsd);
	if (quarantine != NULL) {
		quarantine_drain(tsd, quarantine, 0);
		idalloctm(tsd, quarantine, tcache_get(tsd, false), true);
		tsd_quarantine_set(tsd, NULL);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x48(%rdi), %r15
testq %r15, %r15
je 0x33dc4
movq %rdi, %rbx
movq %r15, %rsi
xorl %edx, %edx
callq 0x33c5e
movq 0x8(%rbx), %r14
leaq 0x239f5(%rip), %r13     # 0x576b0
movq (%r13), %rax
notq %rax
andq %r15, %rax
cmpq %rax, %r15
je 0x33dd3
movq (%rax), %r12
cmpq %rax, %r15
je 0x33ded
movq %r15, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x2386d(%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 0x33e0a
movl %ecx, %eax
leaq 0xe670(%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 0x33dfa
shrq $0xc, %rcx
leaq 0x23819(%rip), %rax     # 0x57558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x33e1e
testq %r14, %r14
je 0x33e4f
shrl $0x5, %eax
movzbl %al, %r12d
leaq 0x228b9(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x33e6f
movl %r12d, %eax
shll $0x5, %eax
leaq (%r14,%rax), %r13
addq $0x20, %r13
leaq 0x24029(%rip), %rax     # 0x57db0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x33e87
movq 0x18(%r13), %rax
movl %r8d, %ecx
movq %r15, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r13)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl $0xd3, %eax
je 0x33e5f
andq $0x0, 0x48(%rbx)
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 0x33cd1
movq %r15, %rdi
callq 0x311c1
jmp 0x33d14
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x30dbc
jmp 0x33dbf
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x33d14
testq %r14, %r14
je 0x33e3f
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x23fa6(%rip), %rcx     # 0x57de0
cmpq (%rcx), %r12
jbe 0x33ea4
movq (%rsi), %rdi
movq %r15, %rdx
callq 0x24608
jmp 0x33dbf
movq (%rsi), %rdi
movq %r15, %rdx
callq 0x244f0
jmp 0x33dbf
movq %rbx, %rdi
movq %r14, %rsi
callq 0x36f85
jmp 0x33dbf
imulq $0x60, %r12, %rsi
addq 0x2015e(%rip), %rsi     # 0x53fd8
movq %r15, %rdi
callq 0x233ee
jmp 0x33d72
shrl %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x37034
movl 0x10(%r13), %r8d
jmp 0x33d98
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x33f0a
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0xec42(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %ebp
leaq 0x22759(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x33f16
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r14,%rcx), %r12
addq $0x20, %r12
leaq 0x23eca(%rip), %rcx     # 0x57db0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x33f23
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r15, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x33daa
movq %r12, %rdi
callq 0x33f3c
movl %eax, %ebp
jmp 0x33ec2
movq %r15, %rdi
movq %r12, %rsi
callq 0x244f5
jmp 0x33ece
shrl %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %r8
callq 0x371b7
movl 0x10(%r12), %ecx
jmp 0x33ef3