// File: /workspace/github_c_makefile_star2_O1/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, %r12d
movl %ebx, %ecx
shlq %cl, %r12
leaq 0x20(%r12), %r15
leaq 0x51e8c(%rip), %rax     # 0xdf930
cmpq %r15, (%rax)
jae 0x8dab8
movq %r15, %rdi
xorl %esi, %esi
callq 0x8b6a4
jmp 0x8dbd8
cmpq $0xde0, %r12            # imm = 0xDE0
ja 0x8db28
movl $0x1, %edi
callq 0x8e075
testq %rax, %rax
je 0x8dbb6
movq %rax, %r13
addq $0x1f, %r12
shrq $0x3, %r12
leaq 0x155da(%rip), %rax     # 0xa30c0
movzbl (%rax,%r12), %ebp
movl %ebp, %eax
shll $0x5, %eax
leaq (%rax,%r13), %r12
addq $0x28, %r12
movl 0x38(%r13,%rax), %eax
testl %eax, %eax
je 0x8dc4d
decl %eax
movl %eax, 0x10(%r12)
cmpl 0x8(%r12), %eax
jge 0x8db18
movl %eax, 0x8(%r12)
movq 0x18(%r12), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r14
jmp 0x8dc59
leaq 0x63079(%rip), %rax     # 0xf0ba8
cmpq %r15, (%rax)
jb 0x8db92
movl $0x1, %edi
callq 0x8e075
testq %rax, %rax
je 0x8db92
movq %rax, %r13
addq $0x101f, %r12           # imm = 0x101F
movq %r12, %rax
shrq $0x7, %rax
andq $-0x20, %rax
leaq (%rax,%r13), %r15
addq $0x388, %r15            # imm = 0x388
movl 0x398(%rax,%r13), %eax
testl %eax, %eax
je 0x8dcba
decl %eax
movl %eax, 0x10(%r15)
cmpl 0x8(%r15), %eax
jge 0x8db83
movl %eax, 0x8(%r15)
movq 0x18(%r15), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r14
jmp 0x8dcc5
movq 0x3839f(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %rdi
testq %rdi, %rdi
jne 0x8dbaa
callq 0x7c332
movq %rax, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x80be1
jmp 0x8dbd8
movq 0x3837b(%rip), %rax     # 0xc5f38
movq %fs:(%rax), %rdi
testq %rdi, %rdi
jne 0x8dbce
callq 0x7c332
movq %rax, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x80961
movq %rax, %r14
testq %r14, %r14
je 0x8dc38
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq %rbx, 0x18(%r14)
movq %fs:0x0, %rax
leaq -0x10(%rax), %rsi
movq %r14, %fs:-0x10
movl 0x62f62(%rip), %edi     # 0xf0b74
callq 0x1f1c0
testl %eax, %eax
je 0x8dc3b
leaq 0x15a77(%rip), %rdi     # 0xa3699
callq 0x9124c
leaq 0x50f2c(%rip), %rax     # 0xdeb5a
cmpb $0x1, (%rax)
jne 0x8dc3b
callq 0x1f1b0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, 0x8(%r12)  # imm = 0xFFFFFFFF
xorl %r14d, %r14d
testq %r14, %r14
jne 0x8dc78
movq %r13, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x90c2c
movq %rax, %r14
testq %rax, %rax
je 0x8dcfd
leaq 0x50edc(%rip), %rax     # 0xdeb5b
cmpb $0x1, (%rax)
jne 0x8dc9b
imulq $0x68, %rbp, %rsi
addq 0x38341(%rip), %rsi     # 0xc5fd0
movq %r14, %rdi
xorl %edx, %edx
callq 0x8080a
jmp 0x8dcb4
leaq 0x50eca(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
jne 0x8dcb4
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1f110
incq (%r12)
jmp 0x8dd21
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
xorl %r14d, %r14d
andq $-0x1000, %r12          # imm = 0xF000
testq %r14, %r14
je 0x8dce7
leaq 0x50e83(%rip), %rax     # 0xdeb5b
cmpb $0x1, (%rax)
jne 0x8dd05
movq %r14, %rdi
movl $0xa5, %esi
jmp 0x8dd16
movq 0x18(%r13), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x80be1
movq %rax, %r14
testq %rax, %rax
jne 0x8dd21
xorl %r14d, %r14d
jmp 0x8dbdb
leaq 0x50e60(%rip), %rax     # 0xdeb6c
cmpb $0x1, (%rax)
jne 0x8dd1e
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x1f110
incq (%r15)
movl 0x20(%r13), %eax
incl %eax
movl %eax, 0x20(%r13)
cmpl $0x125, %eax            # imm = 0x125
jne 0x8dbdb
movq %r13, %rdi
callq 0x90815
jmp 0x8dbdb