// File: /workspace/github_c_makefile_star2_O1/wuxb45[P]SLB/lib1.c
// Function: rcache_hint_hash
void
rcache_hint_hash(struct rcache * const cache, const void * const kv, const u64 hash)
{
  const u64 idx = (hash >> KVMAP_BASE_LEVEL) % cache->nr_slots;
  struct __icache_slot * const slot = &(cache->table[idx]);
  if ((slot->used < ICACHE_ENTRY_NR) || ((random_u64() & 0xfff) < 0x80)) {
    struct __icache_hist * const hist = &(cache->hists[(hash >> KVMAP_BASE_LEVEL) % cache->nr_hists]);
    rcache_lock_hash(cache, hash);
    const u64 rep = icache_hist_update(hist, kvmap_pkey(hash));
    if (rep) {
      (void)rcache_update(slot, rep, kv, hash);
    }
    rcache_unlock_hash(cache, hash);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rdi, %r14
movq %rdx, %rdi
shrq $0x6, %rdi
movq %rdi, %rax
xorl %edx, %edx
divq 0x10038(%r14)
movq %rdx, %r12
movq %rsi, -0x30(%rbp)
movq 0x10048(%r14), %rbx
shlq $0x6, %r12
movq (%rbx,%r12), %rax
shrq $0x3c, %rax
cmpl $0x7, %eax
jb 0x12972
movq %fs:-0x8, %rax
testq %rax, %rax
jne 0x12932
leaq -0x50(%rbp), %rsi
movq %rdi, %r13
movl $0x4, %edi
callq 0x6110
movq %r13, %rdi
leaq -0x50(%rbp), %rcx
imulq $0x3b9aca00, (%rcx), %rax # imm = 0x3B9ACA00
addq 0x8(%rcx), %rax
movq %rax, %rcx
shrq $0xc, %rcx
xorq %rax, %rcx
movq %rcx, %rax
shlq $0x19, %rax
xorq %rcx, %rax
movq %rax, %rcx
shrq $0x1b, %rcx
xorq %rax, %rcx
movabsq $0x2545f4914f6cdd1d, %rax # imm = 0x2545F4914F6CDD1D
imulq %rcx, %rax
movq %rax, %fs:-0x8
testl $0xf80, %eax            # imm = 0xF80
jne 0x12c9a
movq %rdi, %rax
xorl %edx, %edx
divq 0x10050(%r14)
movq %rdx, %r13
shlq $0x4, %r13
addq 0x10060(%r14), %r13
andl $0x3ff, %edi            # imm = 0x3FF
shll $0x6, %edi
addq %r14, %rdi
movq %rdi, -0x38(%rbp)
callq 0x6050
cmpl $0x23, %eax
je 0x12ca9
movabsq $0x7000000000000000, %rax # imm = 0x7000000000000000
addq %r12, %rbx
movq %r15, %rdx
shrq $0x20, %rdx
xorq %r15, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
xorq %rdx, %rcx
movl $0x7, %edx
xorl %esi, %esi
xorl %r15d, %r15d
xorl %edi, %edi
cmpw %cx, 0x2(%r13,%rsi,2)
sete %dil
addq %rdi, %r15
incq %rsi
decq %rdx
jne 0x129d5
movzwl (%r13), %edx
movw %cx, 0x2(%r13,%rdx,2)
movl %edx, %esi
incl %esi
imulq $0x24924925, %rsi, %rsi # imm = 0x24924925
shrq $0x20, %rsi
leal (,%rsi,8), %edi
subl %edi, %esi
addl %esi, %edx
incl %edx
movw %dx, (%r13)
testq %r15, %r15
je 0x12c91
movzwl %cx, %r12d
movq (%rbx), %rcx
cmpq %rax, %rcx
jae 0x12ab3
cmpq $0x10000, 0x8(%rbx)     # imm = 0x10000
jae 0x12a41
xorl %edx, %edx
xorl %esi, %esi
jmp 0x12a6c
movq $-0x1, %rdx
xorl %esi, %esi
cmpq $0x5, %rdx
je 0x12aae
incq %rsi
incq %rdx
cmpq $0xffff, 0x8(%rbx,%rsi,8) # imm = 0xFFFF
ja 0x12a4a
cmpq $0x6, %rdx
setae %sil
incq %rdx
movq -0x30(%rbp), %r9
movq %r9, %rdi
shlq $0x10, %rdi
testq %r9, %r9
movq %r12, %r8
cmoveq %r9, %r8
orq %rdi, %r8
movq %r8, 0x8(%rbx,%rdx,8)
andq %rcx, %rax
movabsq $0xfffffffffffffff, %rdx # imm = 0xFFFFFFFFFFFFFFF
addq %rdx, %rax
andq %rdx, %rcx
addq %rcx, %rax
incq %rax
movq %rax, (%rbx)
testb %sil, %sil
je 0x12c91
callq 0x66ef
movq %fs:-0x8, %rax
testq %rax, %rax
jne 0x12add
leaq -0x50(%rbp), %r14
movl $0x4, %edi
movq %r14, %rsi
callq 0x6110
imulq $0x3b9aca00, (%r14), %rax # imm = 0x3B9ACA00
addq 0x8(%r14), %rax
movq %rax, %rcx
shrq $0xc, %rcx
xorq %rax, %rcx
movq %rcx, %rdx
shlq $0x19, %rdx
xorq %rcx, %rdx
movq %rdx, %rax
shrq $0x1b, %rax
xorq %rdx, %rax
movabsq $0x2545f4914f6cdd1d, %rdx # imm = 0x2545F4914F6CDD1D
imulq %rax, %rdx
movq %rdx, %fs:-0x8
movabsq $0x2492492492492493, %rcx # imm = 0x2492492492492493
mulxq %rcx, %rdi, %rdi
movq %rdx, %rsi
subq %rdi, %rsi
shrq %rsi
addq %rdi, %rsi
shrq $0x2, %rsi
leaq (,%rsi,8), %rdi
subq %rdi, %rsi
addq %rdx, %rsi
movq (%rbx), %rdi
leal (,%rsi,4), %r8d
shrxq %r8, %rdi, %r9
testb $0xf, %r9b
je 0x12b84
movq $-0x1, %r9
shlxq %r8, %r9, %r8
addq %rdi, %r8
movabsq $0xfffffffffffffff, %r9 # imm = 0xFFFFFFFFFFFFFFF
andq %r9, %r8
movabsq $-0x1000000000000000, %r9 # imm = 0xF000000000000000
andq %rdi, %r9
orq %r8, %r9
movq %r9, (%rbx)
movq -0x30(%rbp), %rdi
movq %rdi, %r9
shlq $0x10, %r9
movl %r15d, %r8d
andl $0xf, %r8d
movq %r8, -0x40(%rbp)
testq %rdi, %rdi
movq (%rbx), %r8
cmoveq %rdi, %r12
mulxq %rcx, %r10, %r10
orq %r9, %r12
movq %r12, -0x30(%rbp)
subq %r10, %rdx
shrq %rdx
addq %r10, %rdx
shrq $0x2, %rdx
imulq $-0x1c, %rdx, %r14
movabsq $0x6ae82dbac24c8b8c, %rdx # imm = 0x6AE82DBAC24C8B8C
imulq %rdx, %rax
subq %rax, %r14
movl $0x6, %r10d
xorl %r11d, %r11d
movq %rsi, %rax
movq %rax, %rdx
mulxq %rcx, %rdx, %rdx
movq %rax, %r9
subq %rdx, %r9
shrq %r9
addq %rdx, %r9
shrq $0x2, %r9
leaq (%r9,%r9,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %r9, %rdx
movq %r14, %r9
subq %rdx, %r9
leaq (%r11,%rsi), %rdi
movq %rdi, %rdx
mulxq %rcx, %r12, %r12
movq %r8, %r13
movabsq $0xfffffffffffffff, %rdx # imm = 0xFFFFFFFFFFFFFFF
andq %rdx, %r13
shrxq %r9, %r13, %r13
andl $0xf, %r13d
cmpq %r15, %r13
jae 0x12c73
movq %rdi, %rdx
subq %r12, %rdx
shrq %rdx
addq %r12, %rdx
shrq $0x2, %rdx
leaq (,%rdx,8), %r12
subq %r12, %rdx
addq %rdi, %rdx
movq -0x30(%rbp), %rdi
movq %rdi, 0x8(%rbx,%rdx,8)
movl $0xf, %edx
shlxq %r9, %rdx, %rdx
shlxq %r9, -0x40(%rbp), %rdi
andnq %r8, %rdx, %r8
orq %rdi, %r8
movq %r8, (%rbx)
subq $0x1, %r10
setb %dl
cmpq %r15, %r13
jb 0x12c91
incq %r11
addq $0x4, %r14
incq %rax
testb %dl, %dl
je 0x12bde
movq -0x38(%rbp), %rdi
callq 0x6320
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
callq 0x6530