// File: /workspace/github_cpp_makefile_star2_O3/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 0x2cc0
cmpq $0x9, %rsi
jb 0x2ef1
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 0x2d53
cmpq $0x80, %rsi
ja 0x2d6d
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 0x2cf1
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 0x2eea
movabsq $-0x61c8864e7a143579, %rax # imm = 0x9E3779B185EBCA87
imulq %rsi, %rax
movq %rax, %xmm0
movq %r10, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
xorl %r11d, %r11d
movdqu (%rdi,%r11), %xmm2
movdqu 0x10(%rdi,%r11), %xmm3
movdqa %xmm2, %xmm4
punpcklqdq %xmm3, %xmm4    # xmm4 = xmm4[0],xmm3[0]
punpckhqdq %xmm3, %xmm2    # xmm2 = xmm2[1],xmm3[1]
movdqu (%rcx,%r11), %xmm3
movdqu 0x10(%rcx,%r11), %xmm5
movdqa %xmm3, %xmm6
punpcklqdq %xmm5, %xmm6    # xmm6 = xmm6[0],xmm5[0]
punpckhqdq %xmm5, %xmm3    # xmm3 = xmm3[1],xmm5[1]
paddq %xmm1, %xmm6
pxor %xmm4, %xmm6
psubq %xmm1, %xmm3
pxor %xmm2, %xmm3
pshufd $0xee, %xmm6, %xmm2     # xmm2 = xmm6[2,3,2,3]
movq %xmm2, %rbx
movq %xmm6, %rdx
pshufd $0xee, %xmm3, %xmm2     # xmm2 = xmm3[2,3,2,3]
movq %xmm3, %rax
mulq %rdx
movq %rax, %r8
movq %rdx, %r9
movq %xmm2, %rax
mulq %rbx
xorq %rax, %rdx
xorq %r8, %r9
movq %r9, %xmm2
movq %rdx, %xmm3
punpcklqdq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0]
paddq %xmm2, %xmm0
addq $0x20, %r11
cmpq $0x80, %r11
jne 0x2d9a
movabsq $0x165667919e3779f9, %r8 # imm = 0x165667919E3779F9
pshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
paddq %xmm0, %xmm1
movq %xmm1, %rax
movq %rax, %rdx
shrq $0x25, %rdx
xorq %rax, %rdx
imulq %r8, %rdx
movq %rdx, %r9
shrq $0x20, %r9
xorq %rdx, %r9
cmpq $0x90, %rsi
jb 0x2eb6
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 0xb(%rcx,%rbx), %rax
movq 0x3(%rcx,%rbx), %rdx
addq %r10, %rdx
xorq 0x80(%rdi,%rbx), %rdx
subq %r10, %rax
xorq 0x88(%rdi,%rbx), %rax
mulq %rdx
xorq %rax, %rdx
addq %rdx, %r9
addq $0x10, %rbx
cmpq %rbx, %r11
jne 0x2e84
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 0x2d61
movq %r10, %rdx
popq %rbx
jmpq *%r9
cmpq $0x4, %rsi
jb 0x2f08
movq 0x8(%rcx), %rdx
movq 0x10(%rcx), %rcx
movq %r10, %r8
popq %rbx
jmp 0x4f80
testq %rsi, %rsi
je 0x2f1b
movl (%rcx), %edx
movl 0x4(%rcx), %ecx
movq %r10, %r8
popq %rbx
jmp 0x4fe1
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 0x2d6b