// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/tcache.c
// Function: je_tcache_create
tcache_t *
tcache_create(tsd_t *tsd, arena_t *arena)
{
	tcache_t *tcache;
	size_t size, stack_offset;
	unsigned i;

	size = offsetof(tcache_t, tbins) + (sizeof(tcache_bin_t) * nhbins);
	/* Naturally align the pointer stacks. */
	size = PTR_CEILING(size);
	stack_offset = size;
	size += stack_nelms * sizeof(void *);
	/* Avoid false cacheline sharing. */
	size = sa2u(size, CACHELINE);

	tcache = ipallocztm(tsd, size, CACHELINE, true, false, true, a0get());
	if (tcache == NULL)
		return (NULL);

	tcache_arena_associate(tcache, arena);

	assert((TCACHE_NSLOTS_SMALL_MAX & 1U) == 0);
	for (i = 0; i < nhbins; i++) {
		tcache->tbins[i].lg_fill_div = 1;
		tcache->tbins[i].avail = (void **)((uintptr_t)tcache +
		    (uintptr_t)stack_offset);
		stack_offset += tcache_bin_info[i].ncached_max * sizeof(void *);
	}

	return (tcache);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x370, %rsp            # imm = 0x370
movq %rdi, -0x2f0(%rbp)
movq %rsi, -0x2f8(%rbp)
movq 0x28c00(%rip), %rax     # 0xa2eb0
shlq $0x5, %rax
addq $0x20, %rax
movq %rax, -0x308(%rbp)
movq -0x308(%rbp), %rax
addq $0x7, %rax
movabsq $0xfffffff8, %rcx       # imm = 0xFFFFFFF8
andq %rcx, %rax
movq %rax, -0x308(%rbp)
movq -0x308(%rbp), %rax
movq %rax, -0x310(%rbp)
movl 0x28bc6(%rip), %eax     # 0xa2eb8
shlq $0x3, %rax
addq -0x308(%rbp), %rax
movq %rax, -0x308(%rbp)
movq -0x308(%rbp), %rax
movq %rax, -0x2d0(%rbp)
movq $0x40, -0x2d8(%rbp)
cmpq $0x3800, -0x2d0(%rbp) # imm = 0x3800
ja 0x7a534
cmpq $0x1000, -0x2d8(%rbp) # imm = 0x1000
jae 0x7a534
movq -0x2d0(%rbp), %rax
movq -0x2d8(%rbp), %rcx
subq $0x1, %rcx
addq %rcx, %rax
xorl %ecx, %ecx
subq -0x2d8(%rbp), %rcx
andq %rcx, %rax
movq %rax, -0x280(%rbp)
cmpq $0x1000, -0x280(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x7a37e
jmp 0x7a403
movq -0x280(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x148d0(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
movl %eax, -0x1f4(%rbp)
movl -0x1f4(%rbp), %eax
movl %eax, %ecx
leaq 0x14129(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x200(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x278(%rbp)
jmp 0x7a504
movq -0x280(%rbp), %rax
movq %rax, -0x168(%rbp)
cmpq $0x0, -0x168(%rbp)
setl %al
testb $0x1, %al
jne 0x7a422
jmp 0x7a447
movq -0x168(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x320(%rbp)
jmp 0x7a461
movq -0x168(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x7bec0
movq %rax, -0x320(%rbp)
movq -0x320(%rbp), %rax
movq %rax, -0x170(%rbp)
cmpq $0x6, -0x170(%rbp)
jae 0x7a487
movl $0x3, %eax
movq %rax, -0x328(%rbp)
jmp 0x7a49d
movq -0x170(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x328(%rbp)
movq -0x328(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x188(%rbp)
movq -0x168(%rbp), %rax
addq -0x188(%rbp), %rax
movq -0x188(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x2e0(%rbp)
cmpq $0x4000, -0x2e0(%rbp) # imm = 0x4000
jae 0x7a532
movq -0x2e0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
jmp 0x7aa24
jmp 0x7a534
movq -0x2d0(%rbp), %rax
leaq 0x2807e(%rip), %rcx     # 0xa25c0
cmpq (%rcx), %rax
setbe %al
testb $0x1, %al
jne 0x7a551
jmp 0x7a7a8
movq -0x2d8(%rbp), %rax
leaq 0x281c9(%rip), %rcx     # 0xa2728
cmpq (%rcx), %rax
setb %al
testb $0x1, %al
jne 0x7a56e
jmp 0x7a7a8
movq -0x2d8(%rbp), %rax
addq $0xfff, %rax            # imm = 0xFFF
andq $-0x1000, %rax          # imm = 0xF000
movq %rax, -0x2d8(%rbp)
cmpq $0x4000, -0x2d0(%rbp) # imm = 0x4000
ja 0x7a5a6
movl $0x4000, %eax           # imm = 0x4000
movq %rax, -0x330(%rbp)
jmp 0x7a75f
movq -0x2d0(%rbp), %rax
movq %rax, -0x270(%rbp)
cmpq $0x1000, -0x270(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x7a5cb
jmp 0x7a650
movq -0x270(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x14683(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movl %eax, -0x214(%rbp)
movl -0x214(%rbp), %eax
movl %eax, %ecx
leaq 0x13edc(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x268(%rbp)
jmp 0x7a751
movq -0x270(%rbp), %rax
movq %rax, -0x198(%rbp)
cmpq $0x0, -0x198(%rbp)
setl %al
testb $0x1, %al
jne 0x7a66f
jmp 0x7a694
movq -0x198(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x338(%rbp)
jmp 0x7a6ae
movq -0x198(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x7bec0
movq %rax, -0x338(%rbp)
movq -0x338(%rbp), %rax
movq %rax, -0x1a0(%rbp)
cmpq $0x6, -0x1a0(%rbp)
jae 0x7a6d4
movl $0x3, %eax
movq %rax, -0x340(%rbp)
jmp 0x7a6ea
movq -0x1a0(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x340(%rbp)
movq -0x340(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a8(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x1b8(%rbp)
movq -0x198(%rbp), %rax
addq -0x1b8(%rbp), %rax
movq -0x1b8(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x268(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x330(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x2e0(%rbp), %rax
addq $0x1000, %rax           # imm = 0x1000
addq -0x2d8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
leaq 0x27e5a(%rip), %rcx     # 0xa25e8
cmpq (%rcx), %rax
ja 0x7a7a6
movq -0x2e0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
jmp 0x7aa24
jmp 0x7a7a8
movq -0x2d8(%rbp), %rax
leaq 0x27f7a(%rip), %rcx     # 0xa2730
addq (%rcx), %rax
leaq 0x27f70(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x2d8(%rbp)
cmpq $0x0, -0x2d8(%rbp)
jne 0x7a7eb
movq $0x0, -0x2c8(%rbp)
jmp 0x7aa24
movq -0x2d0(%rbp), %rax
leaq 0x27f2f(%rip), %rcx     # 0xa2728
cmpq (%rcx), %rax
ja 0x7a814
leaq 0x27f23(%rip), %rax     # 0xa2728
movq (%rax), %rax
movq %rax, -0x2e0(%rbp)
jmp 0x7a9ec
movq -0x2d0(%rbp), %rax
movq %rax, -0x260(%rbp)
cmpq $0x1000, -0x260(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x7a839
jmp 0x7a8be
movq -0x260(%rbp), %rax
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x14415(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movl %eax, -0x234(%rbp)
movl -0x234(%rbp), %eax
movl %eax, %ecx
leaq 0x13c6e(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x258(%rbp)
jmp 0x7a9bf
movq -0x260(%rbp), %rax
movq %rax, -0x1c8(%rbp)
cmpq $0x0, -0x1c8(%rbp)
setl %al
testb $0x1, %al
jne 0x7a8dd
jmp 0x7a902
movq -0x1c8(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x348(%rbp)
jmp 0x7a91c
movq -0x1c8(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x7bec0
movq %rax, -0x348(%rbp)
movq -0x348(%rbp), %rax
movq %rax, -0x1d0(%rbp)
cmpq $0x6, -0x1d0(%rbp)
jae 0x7a942
movl $0x3, %eax
movq %rax, -0x350(%rbp)
jmp 0x7a958
movq -0x1d0(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x350(%rbp)
movq -0x350(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x1e8(%rbp)
movq -0x1c8(%rbp), %rax
addq -0x1e8(%rbp), %rax
movq -0x1e8(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x258(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x2e0(%rbp), %rax
cmpq -0x2d0(%rbp), %rax
jae 0x7a9ea
movq $0x0, -0x2c8(%rbp)
jmp 0x7aa24
jmp 0x7a9ec
movq -0x2e0(%rbp), %rax
addq -0x2d8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
cmpq -0x2e0(%rbp), %rax
jae 0x7aa16
movq $0x0, -0x2c8(%rbp)
jmp 0x7aa24
movq -0x2e0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
movq %rax, -0x308(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x360(%rbp)
movq -0x308(%rbp), %rax
movq %rax, -0x358(%rbp)
callq 0x246a0
movq -0x360(%rbp), %rdx
movq -0x358(%rbp), %rcx
movq %rdx, -0x288(%rbp)
movq %rcx, -0x290(%rbp)
movq $0x40, -0x298(%rbp)
movb $0x1, -0x299(%rbp)
movq $0x0, -0x2a8(%rbp)
movb $0x1, -0x2a9(%rbp)
movq %rax, -0x2b8(%rbp)
movq -0x288(%rbp), %rdi
movq -0x2b8(%rbp), %rsi
movq -0x290(%rbp), %rdx
movq -0x298(%rbp), %rcx
movb -0x299(%rbp), %al
movq -0x2a8(%rbp), %r9
andb $0x1, %al
movzbl %al, %r8d
callq 0x3e140
movq %rax, -0x2c0(%rbp)
testb $0x1, -0x2a9(%rbp)
je 0x7ade6
cmpq $0x0, -0x2c0(%rbp)
setne %al
testb $0x1, %al
jne 0x7aaf6
jmp 0x7ade6
movq -0x2c0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
leaq 0x27c16(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x10(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x7ab39
jmp 0x7ab48
movq -0x18(%rbp), %rdi
callq 0x79b60
movq %rax, -0x8(%rbp)
jmp 0x7ab55
movq -0x10(%rbp), %rdi
callq 0x63b70
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x368(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x120(%rbp)
movb $0x0, -0x121(%rbp)
movq -0x120(%rbp), %rcx
movb -0x121(%rbp), %al
movq %rcx, -0xf0(%rbp)
andb $0x1, %al
movb %al, -0xf1(%rbp)
movq -0xf0(%rbp), %rax
leaq 0x27b91(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
cmpq -0xf0(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x7abca
jmp 0x7adc0
movq -0xf0(%rbp), %rax
movq -0x108(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0x110(%rbp)
movq -0x108(%rbp), %rcx
movq -0x110(%rbp), %rax
movq %rcx, -0xd0(%rbp)
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rcx
movq -0xd8(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
addq $0x68, %rax
movq -0x68(%rbp), %rcx
leaq 0x27981(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0xe4(%rbp)
movl -0xe4(%rbp), %eax
movl %eax, -0x114(%rbp)
movl -0x114(%rbp), %eax
movl %eax, %ecx
movb $0x1, %al
cmpq $0xff, %rcx
movb %al, -0x369(%rbp)
je 0x7acbf
xorl %eax, %eax
movb %al, -0x369(%rbp)
jmp 0x7acbf
movb -0x369(%rbp), %al
testb $0x1, %al
jne 0x7acce
jmp 0x7ad8a
movq -0x108(%rbp), %rcx
movq -0x110(%rbp), %rax
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rcx
movq -0xc0(%rbp), %rax
movq %rcx, -0xa0(%rbp)
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
addq $0x68, %rax
movq -0x48(%rbp), %rcx
leaq 0x27899(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rax, -0x100(%rbp)
jmp 0x7adbe
movl -0x114(%rbp), %eax
movl %eax, -0xac(%rbp)
movl -0xac(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, %ecx
leaq 0x13755(%rip), %rax     # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x7add3
movq -0xf0(%rbp), %rdi
callq 0x63ba0
movq %rax, -0x100(%rbp)
movq -0x368(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x7bee0
movq -0x2c0(%rbp), %rax
movq %rax, -0x300(%rbp)
cmpq $0x0, -0x300(%rbp)
jne 0x7ae0e
movq $0x0, -0x2e8(%rbp)
jmp 0x7aec9
movq -0x300(%rbp), %rdi
movq -0x2f8(%rbp), %rsi
callq 0x79bc0
jmp 0x7ae23
movl $0x0, -0x314(%rbp)
movl -0x314(%rbp), %eax
cmpq 0x28076(%rip), %rax     # 0xa2eb0
jae 0x7aebb
movq -0x300(%rbp), %rax
addq $0x20, %rax
movl -0x314(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl $0x1, 0xc(%rax)
movq -0x300(%rbp), %rcx
addq -0x310(%rbp), %rcx
movq -0x300(%rbp), %rax
addq $0x20, %rax
movl -0x314(%rbp), %edx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x18(%rax)
movq 0x2801c(%rip), %rax     # 0xa2ea8
movl -0x314(%rbp), %ecx
movl (%rax,%rcx,4), %eax
shlq $0x3, %rax
addq -0x310(%rbp), %rax
movq %rax, -0x310(%rbp)
movl -0x314(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x314(%rbp)
jmp 0x7ae2d
movq -0x300(%rbp), %rax
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rax
addq $0x370, %rsp            # imm = 0x370
popq %rbp
retq
nopl (%rax)