// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/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 $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x38(%rsp), %rsi
movq %rdx, (%rsi)
leaq 0x30(%rsp), %rdx
movq %rcx, (%rdx)
movq %rbx, %rdi
callq 0x378f8
testb %al, %al
je 0x378e7
movabsq $-0x7000000000000001, %rcx # imm = 0x8FFFFFFFFFFFFFFF
incq %rcx
movq %rcx, 0x28(%rsp)
movq %r15, 0x10(%rsp)
movb %al, 0x7(%rsp)
movl 0x14(%rbx), %eax
movq %rax, 0x20(%rsp)
addl $0x2, %eax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %r13
leal 0x1(%r13), %ecx
movl $0x10, %r14d
movq %rcx, 0x18(%rsp)
shlq %cl, %r14
cmpq $0x3800, %r14           # imm = 0x3800
ja 0x37435
leal 0x3f(%r14), %edi
andl $0x7fc0, %edi           # imm = 0x7FC0
cmpl $0x1000, %edi           # imm = 0x1000
ja 0x37811
leaq -0x1(%rdi), %rax
shrq $0x3, %rax
leaq 0x49a3(%rip), %rcx      # 0x3bdc0
movzbl (%rcx,%rax), %eax
leaq 0x4218(%rip), %rcx      # 0x3b640
movq (%rcx,%rax,8), %r12
cmpq $0x4000, %r12           # imm = 0x4000
jb 0x374ae
leaq 0x15c8c(%rip), %rax     # 0x4d0c8
movq (%rax), %rbp
movq $-0x41, %r12
leaq 0x15b53(%rip), %rax     # 0x4cfa0
cmpq %r14, (%rax)
jb 0x37475
cmpq $0x41, %rbp
jb 0x37475
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x12579
movq $-0x1001, %r12          # imm = 0xEFFF
testb $0x1, %al
je 0x374a9
leaq 0x15c54(%rip), %rax     # 0x4d0d0
movq (%rax), %r15
cmpq %r14, %rbp
jb 0x377a0
subq %r15, %r12
orq %r15, %r12
addq $0x1000, %r12           # imm = 0x1000
cmpq %rbp, %r12
movl $0x0, %r12d
cmovaeq %rbp, %r12
movq 0x10(%rsp), %r15
jmp 0x374ae
movq 0x8(%rsp), %r12
movabsq $-0x7000000000000001, %rax # imm = 0x8FFFFFFFFFFFFFFF
addq %r12, %rax
movl $0x4, %r14d
cmpq 0x28(%rsp), %rax
jb 0x37792
movq 0x28(%r15), %rsi
testq %rsi, %rsi
je 0x377c8
movl $0x40, %ecx
movq %r15, %rdi
movq %r12, %rdx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0xd4f0
testq %rax, %rax
je 0x37792
movq %rax, %rbp
movq %rax, %r14
leaq 0x15bc8(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
cmpq %rax, %rbp
je 0x377dd
movq (%rax), %r12
leaq 0x15bac(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
subq %rax, %rbp
je 0x377ed
shrq $0xc, %rbp
leaq 0x15a7f(%rip), %rcx     # 0x4cfc0
subq (%rcx), %rbp
movq 0x78(%rax,%rbp,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x377fd
movl %ecx, %eax
leaq 0x40da(%rip), %rcx      # 0x3b640
movq (%rcx,%rax,8), %rax
lock
xaddq %rax, 0x90(%r12)
movq 0x28(%rbx), %rbp
movq %r14, 0x28(%rbx)
decl %r13d
movl %r13d, 0x14(%rbx)
movq 0x8(%rbx), %r14
movq $0x0, 0x8(%rbx)
testq %r14, %r14
setne %r13b
je 0x375e3
leaq 0x8(%rbp), %r12
xorl %r15d, %r15d
movq -0x8(%r12), %rax
testq %rax, %rax
je 0x375d0
movq %rax, 0x8(%rsp)
movq (%r12), %rax
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x378f8
testb %al, %al
jne 0x375df
incq %r15
addq $0x10, %r12
cmpq %r14, %r15
setb %r13b
jb 0x3759f
jmp 0x375e3
movq %r14, 0x8(%rbx)
testb $0x1, %r13b
je 0x376c9
movq 0x28(%rbx), %r14
leaq 0x15ad8(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %r14, %rax
cmpq %rax, %r14
movq 0x10(%rsp), %r15
je 0x37825
movq (%rax), %r12
leaq 0x15ab7(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %r14, %rax
movq %r14, %rcx
subq %rax, %rcx
je 0x37835
shrq $0xc, %rcx
leaq 0x15987(%rip), %rdx     # 0x4cfc0
subq (%rdx), %rcx
movq 0x78(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x37885
movl %ecx, %eax
leaq 0x3fe2(%rip), %rcx      # 0x3b640
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x90(%r12)
leaq 0x15a5a(%rip), %rax     # 0x4d0d0
movq (%rax), %rdx
notq %rdx
andq %r14, %rdx
movq %r14, %r8
subq %rdx, %r8
je 0x37845
shrq $0xc, %r8
movq %r8, %rax
leaq 0x15927(%rip), %rcx     # 0x4cfc0
subq (%rcx), %rax
testb $0x2, 0x78(%rdx,%rax,8)
movq (%rdx), %rsi
movq %r15, %rdi
movq %r14, %rcx
jne 0x37899
callq 0xdf6b
movq %rbp, 0x28(%rbx)
movq 0x20(%rsp), %rax
movl %eax, 0x14(%rbx)
xorl %r14d, %r14d
jmp 0x37792
leaq 0x15a00(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
cmpq %rax, %rbp
movq 0x10(%rsp), %r15
je 0x37855
movq (%rax), %r14
leaq 0x159df(%rip), %rax     # 0x4d0d0
movq (%rax), %rax
notq %rax
andq %rbp, %rax
movq %rbp, %rcx
subq %rax, %rcx
je 0x37865
shrq $0xc, %rcx
leaq 0x158af(%rip), %rdx     # 0x4cfc0
subq (%rdx), %rcx
movq 0x78(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x378a3
movl %ecx, %eax
leaq 0x3f0a(%rip), %rcx      # 0x3b640
movq (%rcx,%rax,8), %rax
negq %rax
lock
xaddq %rax, 0x90(%r14)
leaq 0x15983(%rip), %rax     # 0x4d0d0
movq (%rax), %rdx
notq %rdx
andq %rbp, %rdx
movq %rbp, %r8
subq %rdx, %r8
je 0x37875
shrq $0xc, %r8
movq %r8, %rax
leaq 0x15850(%rip), %rcx     # 0x4cfc0
subq (%rcx), %rax
testb $0x2, 0x78(%rdx,%rax,8)
movq (%rdx), %rsi
movq %r15, %rdi
movq %rbp, %rcx
jne 0x378b7
callq 0xdf6b
movl $0x3, %r14d
testl %r14d, %r14d
je 0x373d8
jmp 0x378c1
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x125e5
testb $0x1, %al
je 0x377be
xorl %r12d, %r12d
jmp 0x374a2
movq 0x8(%rsp), %rbp
jmp 0x37488
movq %r15, %rdi
movl $0x1, %esi
callq 0x1b0d1
movq %rax, %rsi
jmp 0x374d9
movq %r14, %rdi
callq 0x2e39f
movq %rax, %r12
jmp 0x3751d
movq %r15, %rdi
movq %r14, %rsi
callq 0x2e4e2
jmp 0x3756a
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x3756a
leaq 0x8(%rsp), %rsi
callq 0x12548
movq 0x8(%rsp), %r12
jmp 0x3742c
movq %r14, %rdi
callq 0x2e39f
movq %rax, %r12
jmp 0x37612
movq %r15, %rdi
movq %r14, %rsi
callq 0x2e4e2
jmp 0x37662
movq %r15, %rdi
movq %r14, %rsi
callq 0x11227
jmp 0x376b5
movq %rbp, %rdi
callq 0x2e39f
movq %rax, %r14
jmp 0x376ea
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2e4e2
jmp 0x3773a
movq %r15, %rdi
movq %rbp, %rsi
callq 0x11227
jmp 0x3778c
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x37662
callq 0xdfd3
jmp 0x376b5
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x3773a
callq 0xdfd3
jmp 0x3778c
cmpl $0x3, %r14d
jne 0x378e3
movq %rbx, %rdi
leaq 0x38(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x378f8
testb %al, %al
jne 0x373c4
jmp 0x378e7
movb 0x7(%rsp), %al
andb $0x1, %al
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq