// File: /workspace/github_c_makefile_star2_O3/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 0x12f1b
movq 0x28(%rdi), %r13
testq %r13, %r13
je 0x12d45
leaq 0x20(%rbx), %rdx
cmpq $0x37e0, %rbx           # imm = 0x37E0
ja 0x12d67
testq %r15, %r15
je 0x12e43
cmpq $0xfe0, %rbx            # imm = 0xFE0
ja 0x12e7f
addq $0x1f, %rbx
shrq $0x3, %rbx
leaq 0x3538b(%rip), %rax     # 0x47fc0
movzbl (%rax,%rbx), %eax
movl %eax, %r14d
movq %r14, %rax
shlq $0x5, %rax
leaq (%r15,%rax), %rbp
addq $0x20, %rbp
leaq 0x34bee(%rip), %rax     # 0x47840
movq (%rax,%r14,8), %rbx
movl 0x10(%rbp), %eax
testl %eax, %eax
je 0x12e98
decl %eax
movl %eax, 0x10(%rbp)
cmpl 0x8(%rbp), %eax
jl 0x12ef5
movq 0x18(%rbp), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x12e9c
leaq 0x47998(%rip), %rax     # 0x5a621
cmpb $0x1, (%rax)
je 0x12ecf
leaq 0x4799a(%rip), %rax     # 0x5a633
cmpb $0x1, (%rax)
je 0x12efd
incq (%rbp)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
je 0x12e6c
leaq 0x489ee(%rip), %rbx     # 0x5b6b0
movq (%rbx), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x12e11
movq (%rax), %r14
cmpq %rax, %r12
je 0x12e30
movq %r12, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x48867(%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 0x12e58
movl %ecx, %eax
leaq 0x34b2a(%rip), %rcx     # 0x47840
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 0x22135
testq %rax, %rax
je 0x12ec7
movq %rax, %r13
movq %r14, %rsi
movq %r12, %rdi
jmp 0x12bff
leaq 0x487d2(%rip), %rax     # 0x5b540
cmpq %rdx, (%rax)
jb 0x12f66
movq %rsi, %r14
testq %r15, %r15
je 0x12f3d
leaq 0x49056(%rip), %rax     # 0x5bde0
cmpq %rdx, (%rax)
jb 0x12f3d
movq %rdi, %rbp
movq %rdx, %rdi
callq 0x396cf
movl %eax, %eax
leaq 0x34a99(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rdx
shlq $0x5, %rax
leaq (%r15,%rax), %rbx
addq $0x20, %rbx
movl 0x10(%rbx), %eax
testl %eax, %eax
je 0x12f78
decl %eax
movl %eax, 0x10(%rbx)
cmpl 0x8(%rbx), %eax
jl 0x12fa0
movq 0x18(%rbx), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x12f7c
leaq 0x47837(%rip), %rax     # 0x5a621
cmpb $0x1, (%rax)
je 0x12fa8
movq %r14, %rsi
movq %rbp, %rdi
leaq 0x47833(%rip), %rax     # 0x5a633
cmpb $0x1, (%rax)
je 0x12fb2
incq (%rbx)
jmp 0x12ca6
movq %r12, %rdi
movq %rsi, %r14
callq 0x36d3b
movq %r14, %rsi
movq %rax, %r14
movq (%rbx), %rax
notq %rax
andq %r12, %rax
jmp 0x12cd7
movq %r12, %rdi
movq %rsi, %rbx
callq 0x36d46
movq %rbx, %rsi
jmp 0x12d1a
movq %rsi, %r14
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x2872f
jmp 0x12f4a
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x12d1a
movq %rsi, %rbx
movq %r15, %rsi
callq 0x3c7e1
movq %rbx, %rsi
jmp 0x12cbb
movq %rdi, %r14
movq %rdx, %rdi
movq %rsi, %rbx
callq 0x396cf
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x12c39
orl $-0x1, 0x8(%rbp)
movq %rdi, %r12
movq %rsi, (%rsp)
movq %r13, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movl %r14d, %r8d
callq 0x3cbd1
movq %r12, %rdi
movq (%rsp), %rsi
movq %rax, %r12
testq %rax, %rax
jne 0x12c82
xorl %r12d, %r12d
jmp 0x12d33
movq %rsi, %rbx
imulq $0x60, %r14, %rsi
addq 0x450fb(%rip), %rsi     # 0x57fd8
movq %rdi, %r14
movq %r12, %rdi
xorl %edx, %edx
callq 0x2854f
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x12ca2
movl %eax, 0x8(%rbp)
jmp 0x12c6f
movq %rdi, %r13
movq %r12, %rdi
movq %rsi, %r14
xorl %esi, %esi
movq %rbx, %rdx
callq 0x10270
movq %r13, %rdi
movq %r14, %rsi
jmp 0x12ca2
cmpl $0x1, (%rdi)
jne 0x12f5e
movq %rdi, %r15
movq %rsi, %r14
callq 0x3cda2
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %r15
movq %rax, 0x8(%rdi)
jmp 0x12bf2
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x289f1
movq %rax, %r12
testq %rax, %rax
movq %r14, %rsi
jne 0x12cbb
jmp 0x12ec7
xorl %r15d, %r15d
jmp 0x12bf2
movq %rsi, %r14
movq %r13, %rsi
xorl %ecx, %ecx
movq %r15, %r8
callq 0x360a4
jmp 0x12f4a
orl $-0x1, 0x8(%rbx)
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x289f1
movq %rbp, %rdi
movq %r14, %rsi
movq %rax, %r12
testq %rax, %rax
jne 0x12ca6
jmp 0x12ec7
movl %eax, 0x8(%rbx)
jmp 0x12dd0
movq %r12, %rdi
movl $0xa5, %esi
jmp 0x12fb7
movq %r12, %rdi
xorl %esi, %esi
callq 0x10270
movq %rbp, %rdi
movq %r14, %rsi
jmp 0x12e09