// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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 0x158f7
movq 0x28(%rdi), %r13
testq %r13, %r13
je 0x15708
testq %r13, %r13
je 0x15890
leaq 0x20(%rbx), %rdx
cmpq $0x37e0, %rbx           # imm = 0x37E0
ja 0x15721
testq %r15, %r15
je 0x15811
cmpq $0xfe0, %rbx            # imm = 0xFE0
ja 0x15840
addq $0x1f, %rbx
shrq $0x3, %rbx
leaq 0x44221(%rip), %rax     # 0x59800
movzbl (%rax,%rbx), %eax
movl %eax, %r14d
movq %r14, %rax
shlq $0x5, %rax
leaq (%r15,%rax), %rbp
addq $0x20, %rbp
leaq 0x43a84(%rip), %rax     # 0x59080
movq (%rax,%r14,8), %rbx
movl 0x10(%rbp), %eax
testl %eax, %eax
je 0x15859
decl %eax
movl %eax, 0x10(%rbp)
cmpl 0x8(%rbp), %eax
jl 0x158d1
movq 0x18(%rbp), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x15865
leaq 0x6e0fe(%rip), %rax     # 0x83731
cmpb $0x1, (%rax)
je 0x15898
leaq 0x6e100(%rip), %rax     # 0x83743
cmpb $0x1, (%rax)
je 0x158d9
incq (%rbp)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xe4, %eax
je 0x158be
testq %r12, %r12
je 0x156f3
leaq 0x6f02b(%rip), %r14     # 0x846a0
movq (%r14), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x157e8
movq (%rax), %rbx
movq (%r14), %rax
notq %rax
andq %r12, %rax
movq %r12, %rcx
subq %rax, %rcx
je 0x157fe
shrq $0xc, %rcx
leaq 0x6ee9e(%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 0x1582c
movl %ecx, %eax
leaq 0x439b1(%rip), %rcx     # 0x59080
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x58(%rbx)
testq %r12, %r12
je 0x156f3
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
andq $0x0, 0x10(%r12)
movq %rsi, 0x18(%r12)
jmp 0x156f6
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %r12
movq %rsi, %r14
callq 0x34a5f
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %r13
jmp 0x155a0
leaq 0x6ee08(%rip), %rax     # 0x84530
cmpq %rdx, (%rax)
jb 0x15939
movq %rsi, %r14
testq %r15, %r15
je 0x15919
leaq 0x6f68c(%rip), %rax     # 0x84dd0
cmpq %rdx, (%rax)
jb 0x15919
movq %rdi, %rbp
movq %rdx, %rdi
callq 0x4b70b
movl %eax, %eax
leaq 0x4391f(%rip), %rcx     # 0x59080
movq (%rcx,%rax,8), %rdx
shlq $0x5, %rax
leaq (%r15,%rax), %rbx
addq $0x20, %rbx
movl 0x10(%rbx), %eax
testl %eax, %eax
je 0x1594e
decl %eax
movl %eax, 0x10(%rbx)
cmpl 0x8(%rbx), %eax
jl 0x1597b
movq 0x18(%rbx), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r12
movq %r14, %rsi
testq %r12, %r12
je 0x1595a
leaq 0x6df8a(%rip), %rax     # 0x83731
cmpb $0x1, (%rax)
je 0x15983
leaq 0x6df8c(%rip), %rax     # 0x83743
cmpb $0x1, (%rax)
je 0x1598d
incq (%rbx)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xe4, %eax
jne 0x15665
movq %rbp, %rdi
movq %r15, %rsi
callq 0x4e7cd
jmp 0x15929
movq %r12, %rdi
movq %rsi, %rbx
callq 0x48ccc
movq %rbx, %rsi
movq %rax, %rbx
jmp 0x1568a
movq %r12, %rdi
movq %rsi, %r14
callq 0x48cd7
movq %r14, %rsi
jmp 0x156d3
movq %r13, %rdi
movq %rsi, %rbx
movq %rdx, %rsi
xorl %edx, %edx
callq 0x3b19e
movq %rbx, %rsi
movq %rax, %r12
jmp 0x15665
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x156d3
movq %rdi, %r14
movq %rdx, %rdi
movq %rsi, %rbx
callq 0x4b70b
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x155e3
orl $-0x1, 0x8(%rbp)
xorl %r12d, %r12d
jmp 0x15623
movq %rdi, %r12
movq %rsi, (%rsp)
movq %r13, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movl %r14d, %r8d
callq 0x4ebc2
movq %r12, %rdi
movq (%rsp), %rsi
movq %rax, %r12
testq %rax, %rax
jne 0x1562c
xorl %r12d, %r12d
jmp 0x15665
movq %rsi, %rbx
imulq $0x60, %r14, %rsi
addq 0x58722(%rip), %rsi     # 0x6dfc8
movq %rdi, %r14
movq %r12, %rdi
xorl %edx, %edx
callq 0x3afbb
movq %r14, %rdi
movq %rbx, %rsi
jmp 0x1564c
movq %rsi, %rbx
movq %r15, %rsi
callq 0x4e7cd
movq %rbx, %rsi
jmp 0x15665
movl %eax, 0x8(%rbp)
jmp 0x15619
movq %rdi, %r13
movq %r12, %rdi
movq %rsi, %r14
xorl %esi, %esi
movq %rbx, %rdx
callq 0x12380
movq %r13, %rdi
movq %r14, %rsi
jmp 0x1564c
cmpl $0x1, (%rdi)
jne 0x15931
movq %rdi, %r15
movq %rsi, %r14
callq 0x4ed9b
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %r15
movq %rax, 0x8(%rdi)
jmp 0x15593
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x3b463
movq %rax, %r12
movq %r14, %rsi
jmp 0x15665
xorl %r15d, %r15d
jmp 0x15593
movq %rsi, %rbx
movq %r13, %rsi
xorl %ecx, %ecx
movq %r15, %r8
callq 0x48064
jmp 0x15821
orl $-0x1, 0x8(%rbx)
xorl %r12d, %r12d
jmp 0x15794
movq %r13, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x3b463
movq %r14, %rsi
movq %rax, %r12
testq %rax, %rax
jne 0x157c3
jmp 0x15890
movl %eax, 0x8(%rbx)
jmp 0x1578a
movq %r12, %rdi
movl $0xa5, %esi
jmp 0x15992
movq %r12, %rdi
xorl %esi, %esi
callq 0x12380
movq %r14, %rsi
jmp 0x157c0