// File: /workspace/github_c_makefile_star2_O3/nilyang[P]redis-tdd-annotation/deps/jemalloc/src/quarantine.c
// Function: quarantine_init
static quarantine_t *
quarantine_init(size_t lg_maxobjs)
{
	quarantine_t *quarantine;

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

	quarantine_tsd_set(&quarantine);

	return (quarantine);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10, %r15d
movl %ebx, %ecx
shlq %cl, %r15
leaq 0x20(%r15), %r12
leaq 0x51c55(%rip), %rax     # 0xdf930
cmpq %r12, (%rax)
jae 0x8dcef
movq %r12, %rdi
xorl %esi, %esi
callq 0x8b91c
jmp 0x8de44
cmpq $0xde0, %r15            # imm = 0xDE0
ja 0x8dd64
movl $0x1, %edi
callq 0x8e2cd
testq %rax, %rax
je 0x8de22
movq %rax, %r14
addq $0x1f, %r15
shrq $0x3, %r15
leaq 0x154a3(%rip), %rax     # 0xa31c0
movzbl (%rax,%r15), %ebp
movl %ebp, %eax
shll $0x5, %eax
leaq (%r14,%rax), %r13
addq $0x28, %r13
movl 0x38(%r14,%rax), %eax
testl %eax, %eax
je 0x8deb0
decl %eax
movl %eax, 0x10(%r13)
cmpl 0x8(%r13), %eax
jge 0x8dd4c
movl %eax, 0x8(%r13)
movq 0x18(%r13), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r15
testq %r15, %r15
jne 0x8dece
jmp 0x8deb8
leaq 0x62e3d(%rip), %rax     # 0xf0ba8
cmpq %r12, (%rax)
jb 0x8ddfe
movl $0x1, %edi
callq 0x8e2cd
testq %rax, %rax
je 0x8ddfe
movq %rax, %r14
addq $0x101f, %r15           # imm = 0x101F
movq %r15, %rdx
andq $-0x1000, %rdx          # imm = 0xF000
shrq $0x7, %r15
andq $-0x20, %r15
leaq (%r15,%rax), %r12
addq $0x388, %r12            # imm = 0x388
movl 0x398(%r15,%rax), %eax
testl %eax, %eax
je 0x8df10
decl %eax
movl %eax, 0x10(%r12)
cmpl 0x8(%r12), %eax
jge 0x8ddcd
movl %eax, 0x8(%r12)
movq 0x18(%r12), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r15
testq %r15, %r15
je 0x8df19
leaq 0x50d73(%rip), %rax     # 0xdeb5b
cmpb $0x1, (%rax)
jne 0x8df44
movq %r15, %rdi
movl $0xa5, %esi
jmp 0x8df55
movq 0x38133(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %rdi
testq %rdi, %rdi
jne 0x8de16
callq 0x7c4da
movq %rax, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x80ebe
jmp 0x8de44
movq 0x3810f(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %rdi
testq %rdi, %rdi
jne 0x8de3a
callq 0x7c4da
movq %rax, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x80c45
movq %rax, %r15
testq %rax, %rax
je 0x8df2f
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq %rbx, 0x18(%r15)
movq %fs:0x0, %rax
leaq -0x10(%rax), %rsi
movq %r15, %fs:-0x10
movl 0x62cf2(%rip), %edi     # 0xf0b74
callq 0x1f1c0
testl %eax, %eax
je 0x8df32
leaq 0x15903(%rip), %rdi     # 0xa3799
callq 0x915d4
leaq 0x50cb8(%rip), %rax     # 0xdeb5a
cmpb $0x1, (%rax)
jne 0x8df32
callq 0x1f1b0
movl $0xffffffff, 0x8(%r13)  # imm = 0xFFFFFFFF
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x90f53
movq %rax, %r15
testq %rax, %rax
je 0x8df2f
leaq 0x50c86(%rip), %rax     # 0xdeb5b
cmpb $0x1, (%rax)
jne 0x8def1
imulq $0x68, %rbp, %rsi
addq 0x380eb(%rip), %rsi     # 0xc5fd0
movq %r15, %rdi
xorl %edx, %edx
callq 0x80af1
jmp 0x8df0a
leaq 0x50c74(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
jne 0x8df0a
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x1f110
incq (%r13)
jmp 0x8df5e
movl $0xffffffff, 0x8(%r12)  # imm = 0xFFFFFFFF
movq 0x18(%r14), %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x80ebe
movq %rax, %r15
testq %rax, %rax
jne 0x8df5e
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x50c21(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
jne 0x8df5a
movq %r15, %rdi
xorl %esi, %esi
callq 0x1f110
incq (%r12)
movl 0x20(%r14), %eax
incl %eax
movl %eax, 0x20(%r14)
cmpl $0x125, %eax            # imm = 0x125
jne 0x8de50
movq %r14, %rdi
callq 0x90b49
jmp 0x8de50