// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/jemalloc/src/ckh.c
// Function: je_ckh_insert
bool
ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data)
{
	bool ret;

	assert(ckh != NULL);
	assert(ckh_search(ckh, key, NULL, NULL));

#ifdef CKH_COUNT
	ckh->ninserts++;
#endif

	while (ckh_try_insert(ckh, &key, &data)) {
		if (ckh_grow(tsd, ckh)) {
			ret = true;
			goto label_return;
		}
	}

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %rbp
leaq 0x20(%rsp), %rsi
movq %rdx, (%rsi)
leaq 0x18(%rsp), %rdx
movq %rcx, (%rdx)
movq %rbx, %rdi
callq 0x3edf6
testb %al, %al
je 0x13c29
pushq $0x40
popq %r8
movq %rbp, (%rsp)
movl 0x14(%rbx), %eax
movq %rax, 0x8(%rsp)
leal 0x2(%rax), %r13d
leaq 0x1(%r13), %r15
pushq $0x10
popq %rax
movl %r15d, %ecx
shlq %cl, %rax
cmpq $0x3800, %rax           # imm = 0x3800
ja 0x133e7
leal 0x3f(%rax), %esi
andl $0x7fc0, %esi           # imm = 0x7FC0
cmpl $0x1000, %esi           # imm = 0x1000
ja 0x13747
leaq -0x1(%rsi), %rcx
shrq $0x3, %rcx
leaq 0x34bf5(%rip), %rdx     # 0x47fc0
movzbl (%rdx,%rcx), %ecx
leaq 0x3446a(%rip), %rdx     # 0x47840
movq (%rdx,%rcx,8), %rdx
cmpq $0x4000, %rdx           # imm = 0x4000
jb 0x134d0
leaq 0x482ba(%rip), %rcx     # 0x5b6a8
movq (%rcx), %rsi
movq %r8, %rcx
leaq 0x48145(%rip), %rdx     # 0x5b540
cmpq %rax, (%rdx)
jb 0x13468
movq %r8, %rcx
cmpq $0x41, %rsi
jb 0x13468
movl $0x4000, %edx           # imm = 0x4000
cmpq $0x4001, %rax           # imm = 0x4001
jb 0x13450
testq %rax, %rax
js 0x13779
pushq $0x20
popq %rdx
movl %r15d, %ecx
shlq %cl, %rdx
decq %rdx
bsrq %rdx, %rdi
leal -0x3(%rdi), %ecx
pushq $-0x1
popq %rdx
shlq %cl, %rdx
cmpq $0x6, %rdi
notq %rdx
pushq $0x7
popq %rcx
cmovbq %rcx, %rdx
leaq (%rdx,%rax), %rcx
notq %rdx
andq %rcx, %rdx
leaq 0x1000(%rdx), %rdi
movl $0x1000, %ecx           # imm = 0x1000
leaq 0x48105(%rip), %r9      # 0x5b568
cmpq (%r9), %rdi
jbe 0x134d0
leaq 0x48241(%rip), %rdx     # 0x5b6b0
movq (%rdx), %rdx
addq %rdx, %rcx
notq %rdx
movb $0x1, %r14b
andq %rcx, %rdx
je 0x13c2c
cmpq %rax, %rsi
jae 0x134bc
cmpq $0x1000, %rax           # imm = 0x1000
ja 0x1385a
leaq -0x1(%rax), %rcx
shrq $0x3, %rcx
leaq 0x34b1c(%rip), %rsi     # 0x47fc0
movzbl (%rsi,%rcx), %ecx
leaq 0x34391(%rip), %rsi     # 0x47840
movq (%rsi,%rcx,8), %rsi
cmpq %rax, %rsi
jb 0x13c2c
movl $0xfff, %eax            # imm = 0xFFF
subq %rdx, %rax
movq %rsi, %rdx
cmpq %rsi, %rax
jb 0x13c2c
movb $0x1, %r14b
testq %rdx, %rdx
je 0x13c2c
movq %rbp, %rdi
xorl %esi, %esi
movq %r8, %rcx
pushq $0x1
popq %r8
xorl %r9d, %r9d
callq 0x28c3d
testq %rax, %rax
je 0x13c2c
movq %rax, %r12
leaq 0x481ad(%rip), %rax     # 0x5b6b0
movq (%rax), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x13706
movq (%rax), %r14
cmpq %rax, %r12
movq %r15, 0x10(%rsp)
je 0x13726
movq %r12, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x48021(%rip), %rdx     # 0x5b558
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 0x13733
movl %ecx, %eax
leaq 0x342e4(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x58(%r14)
movq 0x28(%rbx), %r15
movq %r12, 0x28(%rbx)
decl %r13d
movl %r13d, 0x14(%rbx)
movq 0x8(%rbx), %r14
andq $0x0, 0x8(%rbx)
testq %r14, %r14
je 0x13976
leaq 0x8(%r15), %r12
xorl %r13d, %r13d
movq -0x8(%r12), %rax
testq %rax, %rax
je 0x135bf
movq %rax, 0x30(%rsp)
movq (%r12), %rax
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x3edf6
testb %al, %al
jne 0x135cd
incq %r13
addq $0x10, %r12
cmpq %r14, %r13
jb 0x1358e
jmp 0x13976
movq %r14, 0x8(%rbx)
movq 0x28(%rbx), %r12
movq 0x8(%rbp), %r14
leaq 0x480d0(%rip), %rax     # 0x5b6b0
movq (%rax), %rax
notq %rax
andq %r12, %rax
cmpq %rax, %r12
je 0x1378b
movq (%rax), %r13
cmpq %rax, %r12
je 0x137ab
movq %r12, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x47f49(%rip), %rdx     # 0x5b558
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 0x137cb
movl %ecx, %eax
leaq 0x3420c(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r13)
leaq 0x48068(%rip), %rax     # 0x5b6b0
movq (%rax), %rsi
notq %rsi
andq %r12, %rsi
movq %r12, %rcx
subq %rsi, %rcx
je 0x137b8
shrq $0xc, %rcx
movq %rcx, %rax
leaq 0x47eed(%rip), %rdx     # 0x5b558
subq (%rdx), %rax
movq 0x68(%rsi,%rax,8), %rax
testb $0x2, %al
jne 0x137df
testq %r14, %r14
je 0x13814
shrl $0x5, %eax
movzbl %al, %r13d
leaq 0x46f90(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x13824
movl %r13d, %eax
shll $0x5, %eax
leaq (%r14,%rax), %rbp
addq $0x20, %rbp
leaq 0x48700(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%rbp), %r8d
cmpl (%rax,%r13,4), %r8d
je 0x1383c
movq 0x18(%rbp), %rax
movl %r8d, %ecx
movq %r12, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%rbp)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl $0xd3, %eax
movq (%rsp), %rbp
je 0x13912
movq %r15, 0x28(%rbx)
movq 0x8(%rsp), %rax
movl %eax, 0x14(%rbx)
pushq $0x40
popq %r8
movq 0x10(%rsp), %r13
jmp 0x13392
movq %r12, %rdi
callq 0x36d3b
movq %rax, %r14
leaq 0x47f98(%rip), %rax     # 0x5b6b0
movq (%rax), %rax
notq %rax
andq %r12, %rax
jmp 0x13518
movq %r12, %rdi
callq 0x36d46
jmp 0x13560
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x13560
leaq -0x1(,%rsi,2), %rcx
bsrq %rcx, %rdi
leal -0x3(%rdi), %ecx
pushq $-0x1
popq %rdx
shlq %cl, %rdx
cmpq $0x6, %rdi
notq %rdx
pushq $0x7
popq %rcx
cmovbq %rcx, %rdx
leaq (%rdx,%rsi), %rcx
notq %rdx
andq %rcx, %rdx
jmp 0x133da
cmpq $0x3b, %r15
movl $0x0, %edi
adcq $0x3f, %rdi
jmp 0x1342f
movq %r12, %rdi
callq 0x36d3b
movq %rax, %r13
leaq 0x47f13(%rip), %rax     # 0x5b6b0
movq (%rax), %rax
notq %rax
andq %r12, %rax
jmp 0x135f5
movq %r12, %rdi
callq 0x36d46
jmp 0x13638
movq %rbp, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x36925
jmp 0x136ec
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x13638
testq %r14, %r14
je 0x13804
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r13
leaq 0x485e5(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r13
jbe 0x13899
movq (%rsi), %rdi
movq %r12, %rdx
callq 0x299db
jmp 0x136ec
movq (%rsi), %rdi
movq %r12, %rdx
callq 0x298af
jmp 0x136ec
imulq $0x60, %r13, %rsi
addq 0x447a9(%rip), %rsi     # 0x57fd8
movq %r12, %rdi
callq 0x2859f
jmp 0x1369b
shrl %r8d
movq (%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movl %r13d, %ecx
callq 0x3c88f
movl 0x10(%rbp), %r8d
jmp 0x136c1
testq %rax, %rax
js 0x13922
pushq $0x20
popq %rsi
movl %r15d, %ecx
shlq %cl, %rsi
decq %rsi
bsrq %rsi, %rdi
leal -0x3(%rdi), %ecx
pushq $-0x1
popq %rsi
shlq %cl, %rsi
cmpq $0x6, %rdi
notq %rsi
pushq $0x7
popq %rcx
cmovbq %rcx, %rsi
leaq (%rsi,%rax), %rcx
notq %rsi
andq %rcx, %rsi
jmp 0x134b3
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x13934
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x34709(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %r8d
leaq 0x46d5f(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x13944
movl %r8d, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r14,%rcx), %r13
addq $0x20, %r13
leaq 0x484cf(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r13), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x1395a
movq 0x18(%r13), %rax
movl %ecx, %edx
movq %r12, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r13)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl $0xd3, %eax
jne 0x136ec
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3c7e1
jmp 0x136ec
cmpq $0x3b, %r15
movl $0x0, %edi
adcq $0x3f, %rdi
jmp 0x13873
movq %r13, %rdi
callq 0x14642
movl %eax, %r8d
jmp 0x138bc
movq %r12, %rdi
movq %r13, %rsi
movl %r8d, %r13d
callq 0x298b4
movl %r13d, %r8d
jmp 0x138c8
shrl %ecx
movq %rbp, %rdi
movq %r13, %rsi
movl %r8d, %edx
movq %r14, %r8
callq 0x3ca47
movl 0x10(%r13), %ecx
jmp 0x138ed
movq 0x8(%rbp), %rbp
leaq 0x47d2f(%rip), %rax     # 0x5b6b0
movq (%rax), %rax
notq %rax
andq %r15, %rax
cmpq %rax, %r15
je 0x13ab1
movq (%rax), %r14
cmpq %rax, %r15
je 0x13ad1
movq %r15, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x47ba8(%rip), %rdx     # 0x5b558
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 0x13aef
movl %ecx, %eax
leaq 0x33e6b(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r14)
leaq 0x47cc7(%rip), %rax     # 0x5b6b0
movq (%rax), %rsi
notq %rsi
andq %r15, %rsi
movq %r15, %rcx
subq %rsi, %rcx
je 0x13ade
shrq $0xc, %rcx
movq %rcx, %rax
leaq 0x47b4c(%rip), %rdx     # 0x5b558
subq (%rdx), %rax
movq 0x68(%rsi,%rax,8), %rax
testb $0x2, %al
jne 0x13b03
testq %rbp, %rbp
je 0x13b34
shrl $0x5, %eax
movzbl %al, %r14d
leaq 0x46bef(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x13b55
movl %r14d, %eax
shll $0x5, %eax
leaq (%rax,%rbp), %r12
addq $0x20, %r12
leaq 0x4835f(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%r12), %r8d
cmpl (%rax,%r14,4), %r8d
je 0x13b6d
movq 0x18(%r12), %rax
movl %r8d, %ecx
movq %r15, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r12)
movl 0x18(%rbp), %eax
incl %eax
movl %eax, 0x18(%rbp)
cmpl $0xd3, %eax
je 0x13b44
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x3edf6
testb %al, %al
movq (%rsp), %rbp
pushq $0x40
popq %r8
jne 0x13386
jmp 0x13c29
movq %r15, %rdi
callq 0x36d3b
movq %rax, %r14
leaq 0x47bed(%rip), %rax     # 0x5b6b0
movq (%rax), %rax
notq %rax
andq %r15, %rax
jmp 0x13996
movq %r15, %rdi
callq 0x36d46
jmp 0x139d9
movq (%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x36925
jmp 0x13a8a
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x139d9
testq %rbp, %rbp
je 0x13b24
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x482c1(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r12
jbe 0x13b8c
movq (%rsi), %rdi
movq %r15, %rdx
callq 0x299db
jmp 0x13a8a
movq (%rsi), %rdi
movq %r15, %rdx
callq 0x298af
jmp 0x13a8a
movq (%rsp), %rdi
movq %rbp, %rsi
callq 0x3c7e1
jmp 0x13a8a
imulq $0x60, %r14, %rsi
addq 0x44478(%rip), %rsi     # 0x57fd8
movq %r15, %rdi
callq 0x2859f
jmp 0x13a3c
shrl %r8d
movq (%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
movl %r14d, %ecx
callq 0x3c88f
movl 0x10(%r12), %r8d
jmp 0x13a63
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x13bf4
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x3441a(%rip), %rcx     # 0x47fc0
movzbl (%rcx,%rax), %r14d
leaq 0x46a70(%rip), %rax     # 0x5a622
cmpb $0x1, (%rax)
je 0x13c01
movl %r14d, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%rcx,%rbp), %r12
addq $0x20, %r12
leaq 0x481e0(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x13c0e
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %r15, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
jmp 0x13a77
movq %r12, %rdi
callq 0x14642
movl %eax, %r14d
jmp 0x13bab
movq %r15, %rdi
movq %r12, %rsi
callq 0x298b4
jmp 0x13bb7
shrl %ecx
movq (%rsp), %rdi
movq %r12, %rsi
movl %r14d, %edx
movq %rbp, %r8
callq 0x3ca47
movl 0x10(%r12), %ecx
jmp 0x13bdd
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq