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

	if (!tsd_nominal(tsd))
		return;

	quarantine = quarantine_init(tsd, LG_MAXOBJS_INIT);
	/*
	 * Check again whether quarantine has been initialized, because
	 * quarantine_init() may have triggered recursive initialization.
	 */
	if (tsd_quarantine_get(tsd) == NULL)
		tsd_quarantine_set(tsd, quarantine);
	else
		idalloctm(tsd, quarantine, tcache_get(tsd, false), true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x1, (%rdi)
jne 0x330f0
movq %rdi, %rbx
pushq $0xa
popq %rsi
callq 0x33279
movq %rax, %r15
cmpq $0x0, 0x48(%rbx)
je 0x330ec
movq %rax, %r12
movq 0x8(%rbx), %r14
leaq 0x246d9(%rip), %rbp     # 0x576b0
movq (%rbp), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x330ff
movq (%rax), %r13
cmpq %rax, %r12
je 0x33119
movq %r12, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x24551(%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 0x33142
movl %ecx, %eax
leaq 0xf354(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r13)
movq (%rbp), %rsi
notq %rsi
andq %r12, %rsi
subq %rsi, %r12
je 0x33126
shrq $0xc, %r12
leaq 0x24501(%rip), %rax     # 0x57558
movq %r12, %rcx
subq (%rax), %rcx
movq 0x68(%rsi,%rcx,8), %rax
testb $0x2, %al
jne 0x33156
testq %r14, %r14
je 0x33190
shrl $0x5, %eax
movzbl %al, %r12d
leaq 0x235a1(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x331ac
movl %r12d, %eax
shll $0x5, %eax
leaq (%r14,%rax), %r13
addq $0x20, %r13
leaq 0x24d11(%rip), %rax     # 0x57db0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x331c4
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
jne 0x330f0
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x36f85
movq %r15, 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, %r13
movq (%rbp), %rax
notq %rax
andq %r12, %rax
jmp 0x32fed
movq %r15, %rdi
callq 0x311c1
jmp 0x33030
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30dbc
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x33030
testq %r14, %r14
je 0x33177
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x24c6e(%rip), %rcx     # 0x57de0
cmpq (%rcx), %r12
jbe 0x331e1
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x24608
movq (%rsi), %rdi
movq %r15, %rdx
movq %r12, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x244f0
imulq $0x60, %r12, %rsi
addq 0x20e21(%rip), %rsi     # 0x53fd8
movq %r15, %rdi
callq 0x233ee
jmp 0x3308a
shrl %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x37034
movl 0x10(%r13), %r8d
jmp 0x330b0
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x33247
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0xf905(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %ebp
leaq 0x2341c(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x33253
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r14,%rcx), %r12
addq $0x20, %r12
leaq 0x24b8d(%rip), %rcx     # 0x57db0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x33260
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r15, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x330c2
movq %r12, %rdi
callq 0x33f3c
movl %eax, %ebp
jmp 0x331ff
movq %r15, %rdi
movq %r12, %rsi
callq 0x244f5
jmp 0x3320b
shrl %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %r8
callq 0x371b7
movl 0x10(%r12), %ecx
jmp 0x33230