// File: /workspace/github_c_makefile_star2_O3/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 0x12446
movq %fs:-0x8, %rax
testq %rax, %rax
jne 0x12406
leaq -0x48(%rbp), %rsi
movq %rdi, %r13
movl $0x4, %edi
callq 0x6110
movq %r13, %rdi
leaq -0x48(%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 0x12723
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 0x12732
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 0x124a9
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 0x1271a
movzwl %cx, %r12d
movabsq $0xfffffffffffffff, %r13 # imm = 0xFFFFFFFFFFFFFFF
movq (%rbx), %rcx
cmpq %rax, %rcx
jae 0x1252e
movl $0x7, %esi
xorl %edx, %edx
cmpq $0xffff, 0x8(%rbx,%rdx,8) # imm = 0xFFFF
jbe 0x12681
incq %rdx
decq %rsi
jne 0x12512
callq 0x66ef
movq %fs:-0x8, %rax
testq %rax, %rax
jne 0x12558
leaq -0x48(%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, %rsi # imm = 0x2492492492492493
mulxq %rsi, %rcx, %rcx
movq %rdx, %rdi
subq %rcx, %rdi
shrq %rdi
addq %rcx, %rdi
shrq $0x2, %rdi
leaq (,%rdi,8), %rcx
subq %rcx, %rdi
addq %rdx, %rdi
movq (%rbx), %rcx
leal (,%rdi,4), %r8d
shrxq %r8, %rcx, %r9
testb $0xf, %r9b
je 0x125f8
movq $-0x1, %r9
shlxq %r8, %r9, %r8
addq %rcx, %r8
andq %r13, %r8
movabsq $-0x1000000000000000, %r9 # imm = 0xF000000000000000
andq %rcx, %r9
orq %r8, %r9
movq %r9, (%rbx)
movq %r9, %rcx
andq %rcx, %r13
mulxq %rsi, %r8, %r8
subq %r8, %rdx
shrq %rdx
addq %r8, %rdx
shrq $0x2, %rdx
imulq $-0x1c, %rdx, %r8
movabsq $0x6ae82dbac24c8b8c, %rdx # imm = 0x6AE82DBAC24C8B8C
imulq %rdx, %rax
subq %rax, %r8
movl $0x7, %r9d
xorl %r10d, %r10d
movq %rdi, %rax
movq %rax, %rdx
mulxq %rsi, %rdx, %rdx
movq %rax, %r11
subq %rdx, %r11
shrq %r11
addl %edx, %r11d
shrl $0x2, %r11d
leal (%r11,%r11,8), %edx
leal (%rdx,%rdx,2), %edx
addl %r11d, %edx
movl %r8d, %r14d
subl %edx, %r14d
leaq (%r10,%rdi), %rdx
mulxq %rsi, %r11, %r11
shrxq %r14, %r13, %r14
andl $0xf, %r14d
cmpq %r15, %r14
jb 0x126a9
incq %r10
addq $0x4, %r8
incq %rax
decq %r9
jne 0x1262e
jmp 0x1271a
movq -0x30(%rbp), %rsi
testq %rsi, %rsi
cmoveq %rsi, %r12
shlq $0x10, %rsi
orq %r12, %rsi
movq %rsi, 0x8(%rbx,%rdx,8)
andq %rcx, %rax
addq %r13, %rax
andq %r13, %rcx
addq %rcx, %rax
incq %rax
jmp 0x12717
movq %rdx, %rdi
subq %r11, %rdi
shrq %rdi
addq %r11, %rdi
shrq $0x2, %rdi
leaq (,%rdi,8), %r9
subq %r9, %rdi
addq %rdx, %rdi
movq -0x30(%rbp), %rdx
testq %rdx, %rdx
cmoveq %rdx, %r12
shlq $0x10, %rdx
orq %r12, %rdx
movq %rdx, 0x8(%rbx,%rdi,8)
movq %rax, %rdx
mulxq %rsi, %rdx, %rdx
subq %rdx, %rax
shrq %rax
addl %edx, %eax
shrl $0x2, %eax
leal (%rax,%rax,8), %edx
leal (%rdx,%rdx,2), %edx
addl %eax, %edx
subl %edx, %r8d
movl $0xf, %eax
shlxq %r8, %rax, %rax
andl $0xf, %r15d
shlxq %r8, %r15, %rdx
andnq %rcx, %rax, %rax
orq %rdx, %rax
movq %rax, (%rbx)
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