// File: /workspace/github_c_makefile_star2_O2/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, %r14
movq %rdi, %r12
movq %rdx, %r15
shrq $0x6, %r15
movq %r15, %rax
xorl %edx, %edx
divq 0x10038(%rdi)
movq %rdx, %rbx
movq %rsi, -0x38(%rbp)
movq 0x10048(%rdi), %rax
shlq $0x6, %rbx
movq %rax, %r13
movq (%rax,%rbx), %rax
shrq $0x3c, %rax
cmpl $0x7, %eax
jb 0xf9a3
callq 0x7e33
testw $0xf80, %ax             # imm = 0xF80
je 0xf9a3
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rax
xorl %edx, %edx
divq 0x10050(%r12)
movq %rdx, %r15
shlq $0x4, %r15
addq 0x10060(%r12), %r15
movq %r12, -0x50(%rbp)
movq %r12, %rdi
movq %r14, %rsi
callq 0xf8ee
movq %r14, %rax
shrq $0x20, %rax
movq %r14, -0x30(%rbp)
xorl %r14d, %eax
movl %eax, %ecx
shrl $0x10, %ecx
xorl %eax, %ecx
movzwl %cx, %esi
movq %r15, %rdi
callq 0xf477
testq %rax, %rax
je 0xfb4b
movabsq $0x7000000000000000, %rcx # imm = 0x7000000000000000
movq %r13, %r15
addq %rbx, %r15
movabsq $0xfffffffffffffff, %r8 # imm = 0xFFFFFFFFFFFFFFF
cmpq %rcx, (%r15)
jae 0xfa47
leaq 0x8(%r15), %rdi
pushq $0x7
popq %rsi
xorl %ecx, %ecx
movq -0x30(%rbp), %rdx
subq $0x1, %rsi
jb 0xfa3c
cmpq $0x10000, (%rdi,%rcx,8) # imm = 0x10000
jb 0xfb1c
incq %rcx
jmp 0xfa23
movq %rax, %rbx
callq 0x6e43
movq %rbx, %rax
movq %rax, -0x48(%rbp)
pushq $0x7
popq %r13
callq 0x7e33
movq %rax, %r12
xorl %r14d, %r14d
xorl %edx, %edx
divq %r13
movq %rdx, %rbx
movq %rax, -0x40(%rbp)
movq %r15, %rdi
movq %rdx, %rsi
callq 0x10f3c
movabsq $0xfffffffffffffff, %r10 # imm = 0xFFFFFFFFFFFFFFF
movq -0x48(%rbp), %r9
movq %r15, %r8
andq (%r15), %r10
movq -0x40(%rbp), %rax
imulq $0x7, %rax, %r15
notq %r15
addq %r12, %r15
shlq $0x2, %r12
imulq $0x1c, %rax, %rax
subq %rax, %r12
movq %r13, %rdi
movq %rbx, %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %r13
subq $0x1, %rdi
jb 0xfb4b
movq %rax, %rsi
leaq (%r14,%rbx), %rax
xorl %edx, %edx
divq %r13
imulq $0x1c, %rsi, %rax
movq %r12, %rsi
subq %rax, %rsi
shrxq %rsi, %r10, %rax
andl $0xf, %eax
incq %r14
incq %r15
addq $0x4, %r12
incq %rcx
cmpq %r9, %rax
jae 0xfaa4
movq %r8, %rbx
leaq (%r8,%rdx,8), %rdi
addq $0x8, %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq %r9, %r14
callq 0x10fd8
pushq $0x7
popq %rcx
movq %r15, %rax
xorl %edx, %edx
divq %rcx
movq %rbx, %rdi
movq %rdx, %rsi
movq %r14, %rdx
callq 0x10f93
jmp 0xfb4b
leaq (%rdi,%rcx,8), %rdi
movq -0x38(%rbp), %rsi
movq %r8, %rbx
callq 0x10fd8
movq (%r15), %rax
movabsq $-0x1000000000000000, %rcx # imm = 0xF000000000000000
andq %rax, %rcx
orq %rbx, %rcx
andq %rbx, %rax
addq %rcx, %rax
incq %rax
movq %rax, (%r15)
movq -0x50(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf901