// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/jemalloc/src/quarantine.c
// Function: quarantine_init
static quarantine_t *
quarantine_init(tsd_t *tsd, size_t lg_maxobjs)
{
	quarantine_t *quarantine;

	assert(tsd_nominal(tsd));

	quarantine = (quarantine_t *)iallocztm(tsd, offsetof(quarantine_t, objs)
	    + ((ZU(1) << lg_maxobjs) * sizeof(quarantine_obj_t)), false,
	    tcache_get(tsd, true), true, NULL);
	if (quarantine == NULL)
		return (NULL);
	quarantine->curbytes = 0;
	quarantine->curobjs = 0;
	quarantine->first = 0;
	quarantine->lg_maxobjs = lg_maxobjs;

	return (quarantine);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
pushq $0x10
popq %rbx
movl %esi, %ecx
shlq %cl, %rbx
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x335c2
movq 0x28(%rdi), %r13
testq %r13, %r13
je 0x333ec
leaq 0x20(%rbx), %rdx
cmpq $0x37e0, %rbx           # imm = 0x37E0
ja 0x3340e
testq %r15, %r15
je 0x334ea
cmpq $0xfe0, %rbx            # imm = 0xFE0
ja 0x33526
addq $0x1f, %rbx
shrq $0x3, %rbx
leaq 0xf824(%rip), %rax      # 0x42b00
movzbl (%rax,%rbx), %eax
movl %eax, %r14d
movq %r14, %rax
shlq $0x5, %rax
leaq (%r15,%rax), %rbp
addq $0x20, %rbp
leaq 0xf087(%rip), %rax      # 0x42380
movq (%rax,%r14,8), %rbx
movl 0x10(%rbp), %eax
testl %eax, %eax
je 0x3353f
decl %eax
movl %eax, 0x10(%rbp)
cmpl 0x8(%rbp), %eax
jl 0x3359c
movq 0x18(%rbp), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x33543
leaq 0x232f1(%rip), %rax     # 0x56621
cmpb $0x1, (%rax)
je 0x33576
leaq 0x232f3(%rip), %rax     # 0x56633
cmpb $0x1, (%rax)
je 0x335a4
incq (%rbp)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
je 0x33513
leaq 0x24347(%rip), %rbx     # 0x576b0
movq (%rbx), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x334b8
movq (%rax), %r14
cmpq %rax, %r12
je 0x334d7
movq %r12, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x241c0(%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 0x334ff
movl %ecx, %eax
leaq 0xefc3(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x58(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
andq $0x0, 0x10(%r12)
movq %rsi, 0x18(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r14
movq %rdi, %r12
callq 0x1c83a
testq %rax, %rax
je 0x3356e
movq %rax, %r13
movq %r14, %rsi
movq %r12, %rdi
jmp 0x332a6
leaq 0x2412b(%rip), %rax     # 0x57540
cmpq %rdx, (%rax)
jb 0x3360d
movq %rsi, %r14
testq %r15, %r15
je 0x335e4
leaq 0x249af(%rip), %rax     # 0x57de0
cmpq %rdx, (%rax)
jb 0x335e4
movq %rdi, %rbp
movq %rdx, %rdi
callq 0x33f3c
movl %eax, %eax
leaq 0xef32(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rdx
shlq $0x5, %rax
leaq (%r15,%rax), %rbx
addq $0x20, %rbx
movl 0x10(%rbx), %eax
testl %eax, %eax
je 0x3361f
decl %eax
movl %eax, 0x10(%rbx)
cmpl 0x8(%rbx), %eax
jl 0x33647
movq 0x18(%rbx), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x33623
leaq 0x23190(%rip), %rax     # 0x56621
cmpb $0x1, (%rax)
je 0x3364f
movq %r14, %rsi
movq %rbp, %rdi
leaq 0x2318c(%rip), %rax     # 0x56633
cmpb $0x1, (%rax)
je 0x33659
incq (%rbx)
jmp 0x3334d
movq %r12, %rdi
movq %rsi, %r14
callq 0x311b6
movq %r14, %rsi
movq %rax, %r14
movq (%rbx), %rax
notq %rax
andq %r12, %rax
jmp 0x3337e
movq %r12, %rdi
movq %rsi, %rbx
callq 0x311c1
movq %rbx, %rsi
jmp 0x333c1
movq %rsi, %r14
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x2351e
jmp 0x335f1
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x333c1
movq %rsi, %rbx
movq %r15, %rsi
callq 0x36f85
movq %rbx, %rsi
jmp 0x33362
movq %rdi, %r14
movq %rdx, %rdi
movq %rsi, %rbx
callq 0x33f3c
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x332e0
orl $-0x1, 0x8(%rbp)
movq %rdi, %r12
movq %rsi, (%rsp)
movq %r13, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movl %r14d, %r8d
callq 0x37313
movq %r12, %rdi
movq (%rsp), %rsi
movq %rax, %r12
testq %rax, %rax
jne 0x33329
xorl %r12d, %r12d
jmp 0x333da
movq %rsi, %rbx
imulq $0x60, %r14, %rsi
addq 0x20a54(%rip), %rsi     # 0x53fd8
movq %rdi, %r14
movq %r12, %rdi
xorl %edx, %edx
callq 0x2339e
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x33349
movl %eax, 0x8(%rbp)
jmp 0x33316
movq %rdi, %r13
movq %r12, %rdi
movq %rsi, %r14
xorl %esi, %esi
movq %rbx, %rdx
callq 0x10270
movq %r13, %rdi
movq %r14, %rsi
jmp 0x33349
cmpl $0x1, (%rdi)
jne 0x33605
movq %rdi, %r15
movq %rsi, %r14
callq 0x374cf
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %r15
movq %rax, 0x8(%rdi)
jmp 0x33299
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x236e4
movq %rax, %r12
testq %rax, %rax
movq %r14, %rsi
jne 0x33362
jmp 0x3356e
xorl %r15d, %r15d
jmp 0x33299
movq %rsi, %r14
movq %r13, %rsi
xorl %ecx, %ecx
movq %r15, %r8
callq 0x2fd7c
jmp 0x335f1
orl $-0x1, 0x8(%rbx)
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x236e4
movq %rbp, %rdi
movq %r14, %rsi
movq %rax, %r12
testq %rax, %rax
jne 0x3334d
jmp 0x3356e
movl %eax, 0x8(%rbx)
jmp 0x33477
movq %r12, %rdi
movl $0xa5, %esi
jmp 0x3365e
movq %r12, %rdi
xorl %esi, %esi
callq 0x10270
movq %rbp, %rdi
movq %r14, %rsi
jmp 0x334b0