// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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 0x4ac1b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movl $0xa, %esi
callq 0x15573
movq %rax, %r15
cmpq $0x0, 0x48(%rbx)
je 0x4ad6a
movq %rax, %r12
movq 0x8(%rbx), %r14
leaq 0x39a5c(%rip), %rbp     # 0x846a0
movq (%rbp), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x4ad73
movq (%rax), %r13
movq (%rbp), %rax
notq %rax
andq %r12, %rax
movq %r12, %rcx
subq %rax, %rcx
je 0x4ad83
shrq $0xc, %rcx
leaq 0x398cd(%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 0x4adac
movl %ecx, %eax
leaq 0xe3e0(%rip), %rcx      # 0x59080
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r13)
movq (%rbp), %rsi
notq %rsi
andq %r12, %rsi
subq %rsi, %r12
je 0x4ad90
shrq $0xc, %r12
leaq 0x3987d(%rip), %rax     # 0x84548
movq %r12, %rcx
subq (%rax), %rcx
movq 0x68(%rsi,%rcx,8), %rax
testb $0x2, %al
jne 0x4adc0
testq %r14, %r14
je 0x4adfa
shrl $0x5, %eax
movzbl %al, %ebp
leaq 0x38a3e(%rip), %rax     # 0x83732
cmpb $0x1, (%rax)
movl %ebp, %r13d
je 0x4ae16
movl %ebp, %eax
shll $0x5, %eax
leaq (%r14,%rax), %r12
addq $0x20, %r12
leaq 0x3a08c(%rip), %rax     # 0x84da0
movq (%rax), %rax
movl (%rax,%r13,4), %r8d
cmpl %r8d, 0x10(%r12)
je 0x4ae38
movq 0x18(%r12), %rax
movl 0x10(%r12), %ecx
movq %r15, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x10(%r12)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl $0xe4, %eax
jne 0x4ac0c
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4e7cd
movq %r15, 0x48(%rbx)
jmp 0x4ac0c
movq %r15, %rdi
callq 0x48ccc
movq %rax, %r13
jmp 0x4ac5a
movq %r15, %rdi
callq 0x48cd7
jmp 0x4aca4
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 0x488cb
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x4aca4
testq %r14, %r14
je 0x4ade1
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x39ff4(%rip), %rcx     # 0x84dd0
cmpq (%rcx), %r12
jbe 0x4ae50
movq (%rsi), %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3bb14
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 0x3b9e8
leaq (,%r13,2), %rsi
addq %r13, %rsi
shll $0x5, %esi
addq 0x2319d(%rip), %rsi     # 0x6dfc8
movq %r15, %rdi
callq 0x3b00b
jmp 0x4ad00
shrl %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebp, %ecx
callq 0x4e87e
jmp 0x4ad26
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x4aeb7
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0xe996(%rip), %rcx      # 0x59800
movzbl (%rcx,%rax), %ebp
leaq 0x388bd(%rip), %rax     # 0x83732
cmpb $0x1, (%rax)
je 0x4aec3
movl %ebp, %eax
leaq 0x39f1d(%rip), %rcx     # 0x84da0
movq (%rcx), %rcx
movl (%rcx,%rax,4), %ecx
shlq $0x5, %rax
leaq (%r14,%rax), %r12
addq $0x20, %r12
cmpl %ecx, 0x10(%r12)
jne 0x4ad26
shrl %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %r8
callq 0x4ea32
jmp 0x4ad26
movq %r12, %rdi
callq 0x4b70b
movl %eax, %ebp
jmp 0x4ae6e
movq %r15, %rdi
movq %r12, %rsi
callq 0x3b9ed
jmp 0x4ae7a