// File: /workspace/github_cpp_makefile_star2_O1/sgielen[P]clife/./xxhash/xxhash.h
// Function: XXH3_64bits_internal(void const*, unsigned long, unsigned long, void const*, unsigned long, unsigned long (*)(void const*, unsigned long, unsigned long, unsigned char const*, unsigned long))
XXH_FORCE_INLINE XXH64_hash_t
XXH3_64bits_internal(const void* XXH_RESTRICT input, size_t len,
                     XXH64_hash_t seed64, const void* XXH_RESTRICT secret, size_t secretLen,
                     XXH3_hashLong64_f f_hashLong)
{
    XXH_ASSERT(secretLen >= XXH3_SECRET_SIZE_MIN);
    /*
     * If an action is to be taken if `secretLen` condition is not respected,
     * it should be done here.
     * For now, it's a contract pre-condition.
     * Adding a check and a branch here would cost performance at every hash.
     * Also, note that function signature doesn't offer room to return an error.
     */
    if (len <= 16)
        return XXH3_len_0to16_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, seed64);
    if (len <= 128)
        return XXH3_len_17to128_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64);
    if (len <= XXH3_MIDSIZE_MAX)
        return XXH3_len_129to240_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64);
    return f_hashLong(input, len, seed64, (const xxh_u8*)secret, secretLen);
}

// Assembly:
pushq %rbx
movq %rdx, %r10
cmpq $0x10, %rsi
ja 0x2c75
cmpq $0x9, %rsi
jb 0x2e22
movq 0x20(%rcx), %r9
movq 0x30(%rcx), %r8
xorq 0x18(%rcx), %r9
addq %r10, %r9
xorq 0x28(%rcx), %r8
subq %r10, %r8
xorq (%rdi), %r9
xorq -0x8(%rdi,%rsi), %r8
movq %r8, %rax
mulq %r9
bswapq %r9
addq %r8, %rsi
addq %r9, %rsi
xorq %rax, %rdx
addq %rsi, %rdx
movq %rdx, %rax
shrq $0x25, %rax
xorq %rdx, %rax
jmp 0x2d08
cmpq $0x80, %rsi
ja 0x2d22
movabsq $-0x61c8864e7a143579, %r9 # imm = 0x9E3779B185EBCA87
imulq %rsi, %r9
leaq -0x1(%rsi), %r11
shrq %r11
andq $-0x10, %r11
subq %r11, %rsi
leaq (%rsi,%rdi), %rbx
addq $-0x8, %rbx
movq (%rcx,%r11,2), %rdx
addq %r10, %rdx
xorq (%rdi,%r11), %rdx
movq 0x8(%rcx,%r11,2), %rax
movq 0x18(%rcx,%r11,2), %rsi
subq %r10, %rax
xorq 0x8(%rdi,%r11), %rax
mulq %rdx
movq %rdx, %r8
movq 0x10(%rcx,%r11,2), %rdx
addq %r10, %rdx
xorq -0x8(%rbx), %rdx
subq %r10, %rsi
xorq (%rbx), %rsi
xorq %rax, %r8
movq %rsi, %rax
mulq %rdx
addq %r9, %r8
movq %rdx, %r9
xorq %rax, %r9
addq %r8, %r9
addq $-0x10, %r11
addq $0x10, %rbx
cmpq $-0x10, %r11
jne 0x2ca6
movq %r9, %rax
shrq $0x25, %rax
xorq %r9, %rax
movabsq $0x165667919e3779f9, %rcx # imm = 0x165667919E3779F9
imulq %rax, %rcx
movq %rcx, %rax
shrq $0x20, %rax
xorq %rcx, %rax
popq %rbx
retq
cmpq $0xf0, %rsi
ja 0x2e1b
movabsq $-0x61c8864e7a143579, %r9 # imm = 0x9E3779B185EBCA87
imulq %rsi, %r9
xorl %r8d, %r8d
movq (%rcx,%r8), %rdx
addq %r10, %rdx
xorq (%rdi,%r8), %rdx
movq 0x8(%rcx,%r8), %rax
subq %r10, %rax
xorq 0x8(%rdi,%r8), %rax
mulq %rdx
xorq %rax, %rdx
addq %rdx, %r9
addq $0x10, %r8
cmpq $0x80, %r8
jne 0x2d40
movabsq $0x165667919e3779f9, %r8 # imm = 0x165667919E3779F9
movq %r9, %rax
shrq $0x25, %rax
xorq %r9, %rax
imulq %r8, %rax
movq %rax, %r9
shrq $0x20, %r9
xorq %rax, %r9
cmpq $0x90, %rsi
jb 0x2de7
movl %esi, %eax
shrl $0x4, %eax
cmpl $0xa, %eax
movl $0x9, %r11d
cmovael %eax, %r11d
shll $0x4, %r11d
addq $-0x80, %r11
xorl %ebx, %ebx
movq 0x3(%rcx,%rbx), %rdx
addq %r10, %rdx
xorq 0x80(%rdi,%rbx), %rdx
movq 0xb(%rcx,%rbx), %rax
subq %r10, %rax
xorq 0x88(%rdi,%rbx), %rax
mulq %rdx
xorq %rax, %rdx
addq %rdx, %r9
addq $0x10, %rbx
cmpq %rbx, %r11
jne 0x2db5
movq 0x77(%rcx), %rdx
addq %r10, %rdx
xorq -0x10(%rdi,%rsi), %rdx
movq 0x7f(%rcx), %rax
subq %r10, %rax
xorq -0x8(%rdi,%rsi), %rax
mulq %rdx
xorq %rax, %rdx
addq %r9, %rdx
movq %rdx, %rcx
shrq $0x25, %rcx
xorq %rdx, %rcx
imulq %r8, %rcx
jmp 0x2d16
movq %r10, %rdx
popq %rbx
jmpq *%r9
cmpq $0x4, %rsi
jb 0x2e34
movq %rcx, %rdx
movq %r10, %rcx
popq %rbx
jmp 0x4e30
testq %rsi, %rsi
je 0x2e45
movq %rcx, %rdx
movq %r10, %rcx
popq %rbx
jmp 0x4e94
movq 0x38(%rcx), %rax
xorq 0x40(%rcx), %rax
xorq %r10, %rax
movq %rax, %rcx
shrq $0x21, %rcx
xorq %rax, %rcx
movabsq $-0x3d4d51c2d82b14b1, %rax # imm = 0xC2B2AE3D27D4EB4F
imulq %rcx, %rax
movq %rax, %rcx
shrq $0x1d, %rcx
xorq %rax, %rcx
movabsq $0x165667b19e3779f9, %rdx # imm = 0x165667B19E3779F9
imulq %rcx, %rdx
movq %rdx, %rax
shrq $0x20, %rax
xorq %rdx, %rax
jmp 0x2d20