#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
int UINT64_C(int);
void rgph_xxh64s_finalise(uint64_t h[]) {
  h[0] ^= h[0] >> 33;
  h[0] *= UINT64_C(0xc2b2ae3d27d4eb4f);
  h[0] ^= h[0] >> 29;
  h[0] *= UINT64_C(0x165667b19e3779f9);
  h[0] ^= h[0] >> 32;
}


x86 assembly (clang, -O0):
<rgph_xxh64s_finalise>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    $0x21,%ecx
sar    %cl,%eax
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
mov    $0x27d4eb4f,%edi
call   1030 <UINT64_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
imul   (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
sar    $0x1d,%ecx
mov    -0x8(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
mov    $0x9e3779f9,%edi
call   1030 <UINT64_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
imul   (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    $0x20,%ecx
sar    %cl,%eax
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgph_xxh64s_finalise>:
push   %rbx
mov    %rdi,%rbx
mov    $0x27d4eb4f,%edi
call   1030 <UINT64_C@plt>
imul   (%rbx),%eax
mov    %eax,%ecx
sar    $0x1d,%ecx
xor    %eax,%ecx
mov    %ecx,(%rbx)
mov    $0x9e3779f9,%edi
pop    %rbx
jmp    1030 <UINT64_C@plt>

LLVM IR (-O0):
define void @rgph_xxh64s_finalise(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
%5 = load i32, i32* %4
%6 = ashr i32 %5, 33
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 0
%9 = load i32, i32* %8
%10 = xor i32 %9, %6
store i32 %10, i32* %8
%11 = call i32 @UINT64_C(i32 668265295)
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 0
%14 = load i32, i32* %13
%15 = mul nsw i32 %14, %11
store i32 %15, i32* %13
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 0
%18 = load i32, i32* %17
%19 = ashr i32 %18, 29
%20 = load i32*, i32** %2
%21 = getelementptr inbounds i32, i32* %20, i64 0
%22 = load i32, i32* %21
%23 = xor i32 %22, %19
store i32 %23, i32* %21
%24 = call i32 @UINT64_C(i32 -1640531463)
%25 = load i32*, i32** %2
%26 = getelementptr inbounds i32, i32* %25, i64 0
%27 = load i32, i32* %26
%28 = mul nsw i32 %27, %24
store i32 %28, i32* %26
%29 = load i32*, i32** %2
%30 = getelementptr inbounds i32, i32* %29, i64 0
%31 = load i32, i32* %30
%32 = ashr i32 %31, 32
%33 = load i32*, i32** %2
%34 = getelementptr inbounds i32, i32* %33, i64 0
%35 = load i32, i32* %34
%36 = xor i32 %35, %32
store i32 %36, i32* %34
ret void
}

LLVM IR (-O2):
define void @rgph_xxh64s_finalise(i32* nocapture %0) {
%2 = tail call i32 @UINT64_C(i32 668265295)
%3 = load i32, i32* %0
%4 = mul nsw i32 %3, %2
%5 = ashr i32 %4, 29
%6 = xor i32 %5, %4
store i32 %6, i32* %0
%7 = tail call i32 @UINT64_C(i32 -1640531463)
ret void
}