// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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 0x4b5b0
movq %rdi, %rbx
cmpq $0x0, (%r14)
je 0x4b48c
cmpq $0x0, 0x8(%r14)
je 0x4b48c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4b767
jmp 0x4b472
movq 0x8(%rbx), %r15
leaq 0x39209(%rip), %r13     # 0x846a0
movq (%r13), %rax
notq %rax
andq %r14, %rax
cmpq %rax, %r14
je 0x4b5bf
movq (%rax), %r12
movq (%r13), %rax
notq %rax
andq %r14, %rax
movq %r14, %rcx
subq %rax, %rcx
je 0x4b5cf
shrq $0xc, %rcx
leaq 0x3907a(%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 0x4b5ec
movl %ecx, %eax
leaq 0xdb8d(%rip), %rcx      # 0x59080
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 0x4b5dc
shrq $0xc, %rcx
leaq 0x39026(%rip), %rax     # 0x84548
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x4b600
testq %r15, %r15
je 0x4b631
shrl $0x5, %eax
movzbl %al, %ebp
leaq 0x381e7(%rip), %rax     # 0x83732
cmpb $0x1, (%rax)
movl %ebp, %r13d
je 0x4b651
movl %ebp, %eax
shll $0x5, %eax
leaq (%r15,%rax), %r12
addq $0x20, %r12
leaq 0x39835(%rip), %rax     # 0x84da0
movq (%rax), %rax
movl (%rax,%r13,4), %r8d
cmpl %r8d, 0x10(%r12)
je 0x4b673
movq 0x18(%r12), %rax
movl 0x10(%r12), %ecx
movq %r14, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x10(%r12)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xe4, %eax
je 0x4b641
movq $0x0, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x48ccc
movq %rax, %r12
jmp 0x4b4ad
movq %r14, %rdi
callq 0x48cd7
jmp 0x4b4f7
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x488cb
jmp 0x4b5a8
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x4b4f7
testq %r15, %r15
je 0x4b621
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x397b4(%rip), %rcx     # 0x84dd0
cmpq (%rcx), %r12
jbe 0x4b68b
movq (%rsi), %rdi
movq %r14, %rdx
callq 0x3bb14
jmp 0x4b5a8
movq (%rsi), %rdi
movq %r14, %rdx
callq 0x3b9e8
jmp 0x4b5a8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4e7cd
jmp 0x4b5a8
leaq (,%r13,2), %rsi
addq %r13, %rsi
shll $0x5, %esi
addq 0x22962(%rip), %rsi     # 0x6dfc8
movq %r14, %rdi
callq 0x3b00b
jmp 0x4b557
shrl %r8d
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
callq 0x4e87e
jmp 0x4b57d
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x4b6f2
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0xe15b(%rip), %rcx      # 0x59800
movzbl (%rcx,%rax), %ebp
leaq 0x38082(%rip), %rax     # 0x83732
cmpb $0x1, (%rax)
je 0x4b6fe
movl %ebp, %eax
leaq 0x396e2(%rip), %rcx     # 0x84da0
movq (%rcx), %rcx
movl (%rcx,%rax,4), %ecx
shlq $0x5, %rax
leaq (%r15,%rax), %r12
addq $0x20, %r12
cmpl %ecx, 0x10(%r12)
jne 0x4b57d
shrl %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r15, %r8
callq 0x4ea32
jmp 0x4b57d
movq %r12, %rdi
callq 0x4b70b
movl %eax, %ebp
jmp 0x4b6a9
movq %r14, %rdi
movq %r12, %rsi
callq 0x3b9ed
jmp 0x4b6b5