// File: /workspace/github_c_makefile_star2_O3/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)
je 0x38bbf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movl $0xa, %esi
callq 0x12bd2
movq %rax, %r15
cmpq $0x0, 0x48(%rbx)
je 0x38d01
movq %rax, %r12
movq 0x8(%rbx), %r14
leaq 0x22ac8(%rip), %rbp     # 0x5b6b0
movq (%rbp), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x38d0a
movq (%rax), %r13
cmpq %rax, %r12
je 0x38d24
movq %r12, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x22940(%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 0x38d4d
movl %ecx, %eax
leaq 0xec03(%rip), %rcx      # 0x47840
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r13)
movq (%rbp), %rsi
notq %rsi
andq %r12, %rsi
subq %rsi, %r12
je 0x38d31
shrq $0xc, %r12
leaq 0x228f0(%rip), %rax     # 0x5b558
movq %r12, %rcx
subq (%rax), %rcx
movq 0x68(%rsi,%rcx,8), %rax
testb $0x2, %al
jne 0x38d61
testq %r14, %r14
je 0x38d9b
shrl $0x5, %eax
movzbl %al, %r12d
leaq 0x21990(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x38db7
movl %r12d, %eax
shll $0x5, %eax
leaq (%r14,%rax), %r13
addq $0x20, %r13
leaq 0x23100(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%r13), %r8d
cmpl (%rax,%r12,4), %r8d
je 0x38dd2
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 0x38bb0
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3c7e1
movq %r15, 0x48(%rbx)
jmp 0x38bb0
movq %r15, %rdi
callq 0x36d3b
movq %rax, %r13
movq (%rbp), %rax
notq %rax
andq %r12, %rax
jmp 0x38bfe
movq %r15, %rdi
callq 0x36d46
jmp 0x38c41
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 0x36925
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x38c41
testq %r14, %r14
je 0x38d82
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x23063(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r12
jbe 0x38def
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x299db
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 0x298af
leaq (%r12,%r12,2), %rsi
shll $0x5, %esi
addq 0x1f213(%rip), %rsi     # 0x57fd8
movq %r15, %rdi
callq 0x2859f
jmp 0x38c9b
shrl %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %r12d, %ecx
callq 0x3c88f
movl 0x10(%r13), %r8d
jmp 0x38cc1
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x38e55
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0xf1b7(%rip), %rcx      # 0x47fc0
movzbl (%rcx,%rax), %ebp
leaq 0x2180e(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x38e61
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r14,%rcx), %r12
addq $0x20, %r12
leaq 0x22f7f(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x38e6e
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r15, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x38cd3
movq %r12, %rdi
callq 0x396cf
movl %eax, %ebp
jmp 0x38e0d
movq %r15, %rdi
movq %r12, %rsi
callq 0x298b4
jmp 0x38e19
shrl %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %r8
callq 0x3ca47
movl 0x10(%r12), %ecx
jmp 0x38e3e