// File: /workspace/github_c_makefile_star2_O3/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), %r14
testq %r14, %r14
je 0x39554
movq %rdi, %rbx
cmpq $0x0, (%r14)
je 0x3943d
cmpq $0x0, 0x8(%r14)
je 0x3943d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x39729
jmp 0x39423
movq 0x8(%rbx), %r15
leaq 0x22268(%rip), %r13     # 0x5b6b0
movq (%r13), %rax
notq %rax
andq %r14, %rax
cmpq %rax, %r14
je 0x39563
movq (%rax), %r12
cmpq %rax, %r14
je 0x3957d
movq %r14, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x220e0(%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 0x3959a
movl %ecx, %eax
leaq 0xe3a3(%rip), %rcx      # 0x47840
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r12)
movq (%r13), %rsi
notq %rsi
andq %r14, %rsi
movq %r14, %rcx
subq %rsi, %rcx
je 0x3958a
shrq $0xc, %rcx
leaq 0x2208c(%rip), %rax     # 0x5b558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x395ae
testq %r15, %r15
je 0x395df
shrl $0x5, %eax
movzbl %al, %r12d
leaq 0x2112c(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x395ff
movl %r12d, %eax
shll $0x5, %eax
leaq (%r15,%rax), %r13
addq $0x20, %r13
leaq 0x2289c(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x3961a
movq 0x18(%r13), %rax
movl %r8d, %ecx
movq %r14, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r13)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
je 0x395ef
movq $0x0, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x36d3b
movq %rax, %r12
movq (%r13), %rax
notq %rax
andq %r14, %rax
jmp 0x3945e
movq %r14, %rdi
callq 0x36d46
jmp 0x394a1
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x36925
jmp 0x3954c
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x394a1
testq %r15, %r15
je 0x395cf
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x22816(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r12
jbe 0x39637
movq (%rsi), %rdi
movq %r14, %rdx
callq 0x299db
jmp 0x3954c
movq (%rsi), %rdi
movq %r14, %rdx
callq 0x298af
jmp 0x3954c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3c7e1
jmp 0x3954c
leaq (%r12,%r12,2), %rsi
shll $0x5, %esi
addq 0x1e9cb(%rip), %rsi     # 0x57fd8
movq %r14, %rdi
callq 0x2859f
jmp 0x394ff
shrl %r8d
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x3c88f
movl 0x10(%r13), %r8d
jmp 0x39525
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x3969d
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0xe96f(%rip), %rcx      # 0x47fc0
movzbl (%rcx,%rax), %ebp
leaq 0x20fc6(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x396a9
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r15,%rcx), %r12
addq $0x20, %r12
leaq 0x22737(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x396b6
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r14, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x39537
movq %r12, %rdi
callq 0x396cf
movl %eax, %ebp
jmp 0x39655
movq %r14, %rdi
movq %r12, %rsi
callq 0x298b4
jmp 0x39661
shrl %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r15, %r8
callq 0x3ca47
movl 0x10(%r12), %ecx
jmp 0x39686