// File: /workspace/github_c_makefile_star2_O2/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, %r12
leaq 0x18(%rsp), %rsi
movq %rdx, (%rsi)
leaq 0x10(%rsp), %rdx
movq %rcx, (%rdx)
pushq $0x40
popq %r13
movq %rdi, 0x8(%rsp)
movq %rbx, %rdi
callq 0x39f3e
movb %al, 0x7(%rsp)
testb %al, %al
je 0x39f2b
movl 0x14(%rbx), %eax
leal 0x2(%rax), %ebp
movq %rax, 0x28(%rsp)
incl %eax
movl %eax, 0x24(%rsp)
incq %rbp
pushq $0x10
popq %rax
movl %ebp, %ecx
shlq %cl, %rax
cmpq $0x3800, %rax           # imm = 0x3800
ja 0x396f3
leal 0x3f(%rax), %esi
andl $0x7fc0, %esi           # imm = 0x7FC0
cmpl $0x1000, %esi           # imm = 0x1000
ja 0x39ae0
leaq -0x1(%rsi), %rcx
shrq $0x3, %rcx
leaq 0x9429(%rip), %rdx      # 0x42b00
movzbl (%rdx,%rcx), %ecx
leaq 0x8c9e(%rip), %rdx      # 0x42380
movq (%rdx,%rcx,8), %rdx
cmpq $0x4000, %rdx           # imm = 0x4000
jb 0x397d8
leaq 0x1dfae(%rip), %rcx     # 0x576a8
movq (%rcx), %rsi
movq %r13, %rcx
leaq 0x1de39(%rip), %rdx     # 0x57540
cmpq %rax, (%rdx)
jb 0x39773
movq %r13, %rcx
cmpq $0x41, %rsi
jb 0x39773
movl $0x4000, %edx           # imm = 0x4000
cmpq $0x4001, %rax           # imm = 0x4001
jb 0x3975b
testq %rax, %rax
js 0x39ba3
pushq $0x20
popq %rdx
movl %ebp, %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 0x1ddfa(%rip), %r8      # 0x57568
cmpq (%r8), %rdi
jbe 0x397d8
leaq 0x1df36(%rip), %rdx     # 0x576b0
movq (%rdx), %rdx
addq %rdx, %rcx
notq %rdx
andq %rcx, %rdx
je 0x39f2b
cmpq %rax, %rsi
jae 0x397c4
cmpq $0x1000, %rax           # imm = 0x1000
ja 0x39bb5
leaq -0x1(%rax), %rcx
shrq $0x3, %rcx
leaq 0x9354(%rip), %rsi      # 0x42b00
movzbl (%rsi,%rcx), %ecx
leaq 0x8bc9(%rip), %rsi      # 0x42380
movq (%rsi,%rcx,8), %rsi
cmpq %rax, %rsi
jb 0x39f2b
movl $0xfff, %eax            # imm = 0xFFF
subq %rdx, %rax
movq %rsi, %rdx
cmpq %rsi, %rax
jb 0x39f2b
testq %rdx, %rdx
je 0x39f2b
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rcx
pushq $0x1
popq %r8
xorl %r9d, %r9d
callq 0x23953
testq %rax, %rax
je 0x39f2b
movq %rax, %r15
leaq 0x1dea8(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %r15, %rax
cmpq %rax, %r15
je 0x399ce
movq (%rax), %r14
cmpq %rax, %r15
movq %rbp, 0x30(%rsp)
je 0x399ee
movq %r15, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1dd1c(%rip), %rdx     # 0x57558
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 0x399fb
movl %ecx, %eax
leaq 0x8b1f(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x58(%r14)
movq 0x28(%rbx), %rbp
movq %r15, 0x28(%rbx)
movl 0x24(%rsp), %eax
movl %eax, 0x14(%rbx)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3ad6a
testb %al, %al
je 0x39c40
movq 0x28(%rbx), %r13
movq 0x8(%r12), %r15
leaq 0x1de13(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %r13, %rax
cmpq %rax, %r13
je 0x39a0f
movq (%rax), %r14
cmpq %rax, %r13
je 0x39a2f
movq %r13, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1dc8c(%rip), %rdx     # 0x57558
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 0x39a4f
movl %ecx, %eax
leaq 0x8a8f(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r14)
leaq 0x1ddab(%rip), %rax     # 0x576b0
movq (%rax), %rsi
notq %rsi
andq %r13, %rsi
movq %r13, %rcx
subq %rsi, %rcx
je 0x39a3c
shrq $0xc, %rcx
movq %rcx, %rax
leaq 0x1dc30(%rip), %rdx     # 0x57558
subq (%rdx), %rax
movq 0x68(%rsi,%rax,8), %rax
testb $0x2, %al
jne 0x39a63
testq %r15, %r15
je 0x39a98
shrl $0x5, %eax
movzbl %al, %r14d
leaq 0x1ccd3(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x39aa8
movl %r14d, %eax
shll $0x5, %eax
leaq (%r15,%rax), %r12
addq $0x20, %r12
leaq 0x1e443(%rip), %rax     # 0x57db0
movq (%rax), %rax
movl 0x10(%r12), %r8d
cmpl (%rax,%r14,4), %r8d
je 0x39ac0
movq 0x18(%r12), %rax
movl %r8d, %ecx
movq %r13, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r12)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
movq 0x8(%rsp), %r12
je 0x39b93
movq %rbp, 0x28(%rbx)
movq 0x28(%rsp), %rax
movl %eax, 0x14(%rbx)
incl 0x24(%rsp)
movq 0x30(%rsp), %rbp
incq %rbp
pushq $0x40
popq %r13
jmp 0x396a3
movq %r15, %rdi
callq 0x311b6
movq %rax, %r14
leaq 0x1dcd0(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %r15, %rax
jmp 0x3981d
movq %r15, %rdi
callq 0x311c1
jmp 0x39865
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x39865
movq %r13, %rdi
callq 0x311b6
movq %rax, %r14
leaq 0x1dc8f(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %r13, %rax
jmp 0x398b2
movq %r13, %rdi
callq 0x311c1
jmp 0x398f5
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x30dbc
jmp 0x399ad
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x398f5
testq %r15, %r15
je 0x39a88
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r14
leaq 0x1e361(%rip), %rcx     # 0x57de0
cmpq (%rcx), %r14
jbe 0x39b12
movq (%rsi), %rdi
movq %r13, %rdx
callq 0x24608
jmp 0x399ad
movq (%rsi), %rdi
movq %r13, %rdx
callq 0x244f0
jmp 0x399ad
imulq $0x60, %r14, %rsi
addq 0x1a525(%rip), %rsi     # 0x53fd8
movq %r13, %rdi
callq 0x233ee
jmp 0x39958
shrl %r8d
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %r14d, %ecx
callq 0x37034
movl 0x10(%r12), %r8d
jmp 0x3997f
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 0x396e6
cmpq $0x1000, %r14           # imm = 0x1000
ja 0x39bef
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x8fd0(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %r8d
leaq 0x1cae6(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x39bff
movl %r8d, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r15,%rcx), %r14
addq $0x20, %r14
leaq 0x1e252(%rip), %rcx     # 0x57db0
movq (%rcx), %rdx
movl 0x10(%r14), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x39c15
movq 0x18(%r14), %rax
movl %ecx, %edx
movq %r13, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r14)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
jne 0x399ad
movq %r12, %rdi
movq %r15, %rsi
callq 0x36f85
jmp 0x399ad
cmpq $0x3b, %rbp
movl $0x0, %edi
adcq $0x3f, %rdi
jmp 0x3973a
testq %rax, %rax
js 0x39c31
pushq $0x20
popq %rsi
movl %ebp, %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 0x397bb
movq %r14, %rdi
callq 0x3acd0
movl %eax, %r8d
jmp 0x39b35
movq %r13, %rdi
movq %r14, %rsi
movl %r8d, %r14d
callq 0x244f5
movl %r14d, %r8d
jmp 0x39b45
shrl %ecx
movq %r12, %rdi
movq %r14, %rsi
movl %r8d, %edx
movq %r15, %r8
callq 0x371b7
movl 0x10(%r14), %ecx
jmp 0x39b6e
cmpq $0x3b, %rbp
movl $0x0, %edi
adcq $0x3f, %rdi
jmp 0x39bc9
movq 0x8(%r12), %r15
leaq 0x1da64(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
cmpq %rax, %rbp
je 0x39d86
movq (%rax), %r12
cmpq %rax, %rbp
je 0x39da6
movq %rbp, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x1d8dd(%rip), %rdx     # 0x57558
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 0x39dc8
movl %ecx, %eax
leaq 0x86e0(%rip), %rcx      # 0x42380
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x58(%r12)
leaq 0x1d9fb(%rip), %rax     # 0x576b0
movq (%rax), %rsi
notq %rsi
andq %rbp, %rsi
movq %rbp, %rcx
subq %rsi, %rcx
je 0x39db3
shrq $0xc, %rcx
movq %rcx, %rax
leaq 0x1d880(%rip), %rdx     # 0x57558
subq (%rdx), %rax
movq 0x68(%rsi,%rax,8), %rax
testb $0x2, %al
movq 0x8(%rsp), %r12
jne 0x39ddc
testq %r15, %r15
je 0x39e0f
shrl $0x5, %eax
movzbl %al, %r14d
leaq 0x1c91e(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x39e29
movl %r14d, %eax
shll $0x5, %eax
leaq (%r15,%rax), %r12
addq $0x20, %r12
leaq 0x1e08e(%rip), %rax     # 0x57db0
movq (%rax), %rax
movl 0x10(%r12), %r8d
cmpl (%rax,%r14,4), %r8d
je 0x39e41
movq 0x18(%r12), %rax
movl %r8d, %ecx
movq %rbp, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%r12)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
movq 0x8(%rsp), %r12
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
jne 0x3967b
movq %r12, %rdi
movq %r15, %rsi
callq 0x36f85
leaq 0x10(%rsp), %rdx
leaq 0x18(%rsp), %rsi
jmp 0x3967b
movq %rbp, %rdi
callq 0x311b6
movq %rax, %r12
leaq 0x1d918(%rip), %rax     # 0x576b0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
jmp 0x39c61
movq %rbp, %rdi
callq 0x311c1
jmp 0x39ca4
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x30dbc
jmp 0x39e1a
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x39ca4
testq %r15, %r15
je 0x39dfd
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r12
leaq 0x1dfe8(%rip), %rcx     # 0x57de0
cmpq (%rcx), %r12
jbe 0x39e61
movq (%rsi), %rdi
movq %rbp, %rdx
callq 0x24608
movq 0x8(%rsp), %r12
jmp 0x39e1a
movq (%rsi), %rdi
movq %rbp, %rdx
callq 0x244f0
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
jmp 0x3967b
imulq $0x60, %r14, %rsi
addq 0x1a1a4(%rip), %rsi     # 0x53fd8
movq %rbp, %rdi
callq 0x233ee
jmp 0x39d0d
shrl %r8d
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %r14d, %ecx
callq 0x37034
movl 0x10(%r12), %r8d
jmp 0x39d34
cmpq $0x1000, %r12           # imm = 0x1000
ja 0x39ef5
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x8c81(%rip), %rcx      # 0x42b00
movzbl (%rcx,%rax), %r14d
leaq 0x1c797(%rip), %rax     # 0x56622
cmpb $0x1, (%rax)
je 0x39f02
movl %r14d, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r15,%rcx), %r12
addq $0x20, %r12
leaq 0x1df07(%rip), %rcx     # 0x57db0
movq (%rcx), %rdx
movl 0x10(%r12), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x39f0f
movq 0x18(%r12), %rax
movl %ecx, %edx
movq %rbp, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r12)
movl 0x18(%r15), %eax
incl %eax
movl %eax, 0x18(%r15)
cmpl $0xd3, %eax
movq 0x8(%rsp), %r12
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
pushq $0x40
popq %r13
jne 0x3967b
jmp 0x39d6c
movq %r12, %rdi
callq 0x3acd0
movl %eax, %r14d
jmp 0x39e84
movq %rbp, %rdi
movq %r12, %rsi
callq 0x244f5
jmp 0x39e90
shrl %ecx
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movl %r14d, %edx
movq %r15, %r8
callq 0x371b7
movl 0x10(%r12), %ecx
jmp 0x39eb6
movb 0x7(%rsp), %al
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq