// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/ckh.c
// Function: je_ckh_new
bool
ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash,
    ckh_keycomp_t *keycomp)
{
	bool ret;
	size_t mincells, usize;
	unsigned lg_mincells;

	assert(minitems > 0);
	assert(hash != NULL);
	assert(keycomp != NULL);

#ifdef CKH_COUNT
	ckh->ngrows = 0;
	ckh->nshrinks = 0;
	ckh->nshrinkfails = 0;
	ckh->ninserts = 0;
	ckh->nrelocs = 0;
#endif
	ckh->prng_state = 42; /* Value doesn't really matter. */
	ckh->count = 0;

	/*
	 * Find the minimum power of 2 that is large enough to fit minitems
	 * entries.  We are using (2+,2) cuckoo hashing, which has an expected
	 * maximum load factor of at least ~0.86, so 0.75 is a conservative load
	 * factor that will typically allow mincells items to fit without ever
	 * growing the table.
	 */
	assert(LG_CKH_BUCKET_CELLS > 0);
	mincells = ((minitems + (3 - (minitems % 3))) / 3) << 2;
	for (lg_mincells = LG_CKH_BUCKET_CELLS;
	    (ZU(1) << lg_mincells) < mincells;
	    lg_mincells++)
		; /* Do nothing. */
	ckh->lg_minbuckets = lg_mincells - LG_CKH_BUCKET_CELLS;
	ckh->lg_curbuckets = lg_mincells - LG_CKH_BUCKET_CELLS;
	ckh->hash = hash;
	ckh->keycomp = keycomp;

	usize = sa2u(sizeof(ckhc_t) << lg_mincells, CACHELINE);
	if (usize == 0) {
		ret = true;
		goto label_return;
	}
	ckh->tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, true,
	    NULL);
	if (ckh->tab == NULL) {
		ret = true;
		goto label_return;
	}

	ret = false;
label_return:
	return (ret);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x380, %rsp            # imm = 0x380
movq %rdi, -0x2e8(%rbp)
movq %rsi, -0x2f0(%rbp)
movq %rdx, -0x2f8(%rbp)
movq %rcx, -0x300(%rbp)
movq %r8, -0x308(%rbp)
jmp 0x7fc20
jmp 0x7fc22
jmp 0x7fc24
jmp 0x7fc26
jmp 0x7fc28
movq -0x2f0(%rbp), %rax
movl $0x2a, (%rax)
movq -0x2f0(%rbp), %rax
movq $0x0, 0x8(%rax)
jmp 0x7fc46
movq -0x2f8(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x2f8(%rbp), %rax
movl $0x3, %ecx
xorl %edx, %edx
divq %rcx
movq -0x330(%rbp), %rax
movl $0x3, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movl $0x3, %ecx
xorl %edx, %edx
divq %rcx
shlq $0x2, %rax
movq %rax, -0x318(%rbp)
movl $0x2, -0x324(%rbp)
movl -0x324(%rbp), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
cmpq -0x318(%rbp), %rax
jae 0x7fcc2
jmp 0x7fcb1
movl -0x324(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x324(%rbp)
jmp 0x7fc96
movl -0x324(%rbp), %ecx
subl $0x2, %ecx
movq -0x2f0(%rbp), %rax
movl %ecx, 0x10(%rax)
movl -0x324(%rbp), %ecx
subl $0x2, %ecx
movq -0x2f0(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x300(%rbp), %rcx
movq -0x2f0(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x308(%rbp), %rcx
movq -0x2f0(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x324(%rbp), %eax
movl %eax, %ecx
movl $0x10, %eax
shlq %cl, %rax
movq %rax, -0x2d0(%rbp)
movq $0x40, -0x2d8(%rbp)
cmpq $0x3800, -0x2d0(%rbp) # imm = 0x3800
ja 0x7ff45
cmpq $0x1000, -0x2d8(%rbp) # imm = 0x1000
jae 0x7ff45
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 0x7fd8f
jmp 0x7fe14
movq -0x280(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0xeebf(%rip), %rax      # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
movl %eax, -0x184(%rbp)
movl -0x184(%rbp), %eax
movl %eax, %ecx
leaq 0xe718(%rip), %rax      # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x278(%rbp)
jmp 0x7ff15
movq -0x280(%rbp), %rax
movq %rax, -0x198(%rbp)
cmpq $0x0, -0x198(%rbp)
setl %al
testb $0x1, %al
jne 0x7fe33
jmp 0x7fe58
movq -0x198(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x338(%rbp)
jmp 0x7fe72
movq -0x198(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x85c20
movq %rax, -0x338(%rbp)
movq -0x338(%rbp), %rax
movq %rax, -0x1a0(%rbp)
cmpq $0x6, -0x1a0(%rbp)
jae 0x7fe98
movl $0x3, %eax
movq %rax, -0x340(%rbp)
jmp 0x7feae
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, -0x278(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x2e0(%rbp)
cmpq $0x4000, -0x2e0(%rbp) # imm = 0x4000
jae 0x7ff43
movq -0x2e0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
jmp 0x80435
jmp 0x7ff45
movq -0x2d0(%rbp), %rax
leaq 0x2266d(%rip), %rcx     # 0xa25c0
cmpq (%rcx), %rax
setbe %al
testb $0x1, %al
jne 0x7ff62
jmp 0x801b9
movq -0x2d8(%rbp), %rax
leaq 0x227b8(%rip), %rcx     # 0xa2728
cmpq (%rcx), %rax
setb %al
testb $0x1, %al
jne 0x7ff7f
jmp 0x801b9
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 0x7ffb7
movl $0x4000, %eax           # imm = 0x4000
movq %rax, -0x348(%rbp)
jmp 0x80170
movq -0x2d0(%rbp), %rax
movq %rax, -0x270(%rbp)
cmpq $0x1000, -0x270(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x7ffdc
jmp 0x80061
movq -0x270(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0xec72(%rip), %rax      # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movl %eax, -0x174(%rbp)
movl -0x174(%rbp), %eax
movl %eax, %ecx
leaq 0xe4cb(%rip), %rax      # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x268(%rbp)
jmp 0x80162
movq -0x270(%rbp), %rax
movq %rax, -0x1c8(%rbp)
cmpq $0x0, -0x1c8(%rbp)
setl %al
testb $0x1, %al
jne 0x80080
jmp 0x800a5
movq -0x1c8(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x350(%rbp)
jmp 0x800bf
movq -0x1c8(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x85c20
movq %rax, -0x350(%rbp)
movq -0x350(%rbp), %rax
movq %rax, -0x1d0(%rbp)
cmpq $0x6, -0x1d0(%rbp)
jae 0x800e5
movl $0x3, %eax
movq %rax, -0x358(%rbp)
jmp 0x800fb
movq -0x1d0(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x358(%rbp)
movq -0x358(%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, -0x268(%rbp)
movq -0x268(%rbp), %rax
movq %rax, -0x348(%rbp)
movq -0x348(%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 0x22449(%rip), %rcx     # 0xa25e8
cmpq (%rcx), %rax
ja 0x801b7
movq -0x2e0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
jmp 0x80435
jmp 0x801b9
movq -0x2d8(%rbp), %rax
leaq 0x22569(%rip), %rcx     # 0xa2730
addq (%rcx), %rax
leaq 0x2255f(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x2d8(%rbp)
cmpq $0x0, -0x2d8(%rbp)
jne 0x801fc
movq $0x0, -0x2c8(%rbp)
jmp 0x80435
movq -0x2d0(%rbp), %rax
leaq 0x2251e(%rip), %rcx     # 0xa2728
cmpq (%rcx), %rax
ja 0x80225
leaq 0x22512(%rip), %rax     # 0xa2728
movq (%rax), %rax
movq %rax, -0x2e0(%rbp)
jmp 0x803fd
movq -0x2d0(%rbp), %rax
movq %rax, -0x260(%rbp)
cmpq $0x1000, -0x260(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x8024a
jmp 0x802cf
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 0xea04(%rip), %rax      # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movl %eax, -0x164(%rbp)
movl -0x164(%rbp), %eax
movl %eax, %ecx
leaq 0xe25d(%rip), %rax      # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x258(%rbp)
jmp 0x803d0
movq -0x260(%rbp), %rax
movq %rax, -0x1f8(%rbp)
cmpq $0x0, -0x1f8(%rbp)
setl %al
testb $0x1, %al
jne 0x802ee
jmp 0x80313
movq -0x1f8(%rbp), %rdx
shlq %rdx
movl $0x3f, %eax
movl $0x40, %ecx
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x360(%rbp)
jmp 0x8032d
movq -0x1f8(%rbp), %rdi
shlq %rdi
subq $0x1, %rdi
callq 0x85c20
movq %rax, -0x360(%rbp)
movq -0x360(%rbp), %rax
movq %rax, -0x200(%rbp)
cmpq $0x6, -0x200(%rbp)
jae 0x80353
movl $0x3, %eax
movq %rax, -0x368(%rbp)
jmp 0x80369
movq -0x200(%rbp), %rax
subq $0x2, %rax
subq $0x1, %rax
movq %rax, -0x368(%rbp)
movq -0x368(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x208(%rbp), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x218(%rbp)
movq -0x1f8(%rbp), %rax
addq -0x218(%rbp), %rax
movq -0x218(%rbp), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x258(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x2e0(%rbp), %rax
cmpq -0x2d0(%rbp), %rax
jae 0x803fb
movq $0x0, -0x2c8(%rbp)
jmp 0x80435
jmp 0x803fd
movq -0x2e0(%rbp), %rax
addq -0x2d8(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
cmpq -0x2e0(%rbp), %rax
jae 0x80427
movq $0x0, -0x2c8(%rbp)
jmp 0x80435
movq -0x2e0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
movq %rax, -0x320(%rbp)
cmpq $0x0, -0x320(%rbp)
jne 0x80459
movb $0x1, -0x309(%rbp)
jmp 0x8082c
movq -0x2e8(%rbp), %rcx
movq -0x320(%rbp), %rax
movq %rcx, -0x288(%rbp)
movq %rax, -0x290(%rbp)
movq $0x40, -0x298(%rbp)
movb $0x1, -0x299(%rbp)
movq $0x0, -0x2a8(%rbp)
movb $0x1, -0x2a9(%rbp)
movq $0x0, -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 0x807fc
cmpq $0x0, -0x2c0(%rbp)
setne %al
testb $0x1, %al
jne 0x80500
jmp 0x807fc
movq -0x2c0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
leaq 0x22206(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
cmpq -0x110(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x80552
jmp 0x80567
movq -0x118(%rbp), %rdi
callq 0x85ce0
movq %rax, -0x108(%rbp)
jmp 0x8057a
movq -0x110(%rbp), %rdi
callq 0x63b70
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x120(%rbp)
movb $0x0, -0x121(%rbp)
movq -0x120(%rbp), %rcx
movb -0x121(%rbp), %al
movq %rcx, -0xd8(%rbp)
andb $0x1, %al
movb %al, -0xd9(%rbp)
movq -0xd8(%rbp), %rax
leaq 0x22169(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
cmpq -0xd8(%rbp), %rax
setne %al
testb $0x1, %al
jne 0x805f2
jmp 0x807d6
movq -0xd8(%rbp), %rax
movq -0xf0(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rcx
movq -0xc0(%rbp), %rax
movq %rcx, -0x68(%rbp)
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rax
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
addq $0x68, %rax
movq -0x20(%rbp), %rcx
leaq 0x21f65(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
andq $0x1fe0, %rax           # imm = 0x1FE0
shrq $0x5, %rax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
movl %eax, -0xfc(%rbp)
movl -0xfc(%rbp), %eax
movl %eax, %ecx
movb $0x1, %al
cmpq $0xff, %rcx
movb %al, -0x371(%rbp)
je 0x806d5
xorl %eax, %eax
movb %al, -0x371(%rbp)
jmp 0x806d5
movb -0x371(%rbp), %al
testb $0x1, %al
jne 0x806e4
jmp 0x80794
movq -0xf0(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0xa0(%rbp)
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
addq $0x68, %rax
movq -0x30(%rbp), %rcx
leaq 0x21e8f(%rip), %rdx     # 0xa25d8
subq (%rdx), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rax, -0xe8(%rbp)
jmp 0x807d4
movl -0xfc(%rbp), %eax
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
movl %eax, %ecx
leaq 0xdd45(%rip), %rax      # 0x8e500
movq (%rax,%rcx,8), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xe8(%rbp)
jmp 0x807e9
movq -0xd8(%rbp), %rdi
callq 0x63ba0
movq %rax, -0xe8(%rbp)
movq -0x370(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x85c40
movq -0x2c0(%rbp), %rcx
movq -0x2f0(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x2f0(%rbp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x80825
movb $0x1, -0x309(%rbp)
jmp 0x8082c
movb $0x0, -0x309(%rbp)
movb -0x309(%rbp), %al
andb $0x1, %al
addq $0x380, %rsp            # imm = 0x380
popq %rbp
retq
nopl (%rax)