#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 uint32_t;

/* Variables and functions */
int UINT32_C(int);
void rgph_xxh32s_finalise(uint32_t h[]) {
  h[0] ^= h[0] >> 15;
  h[0] *= UINT32_C(2246822519);
  h[0] ^= h[0] >> 13;
  h[0] *= UINT32_C(3266489917);
  h[0] ^= h[0] >> 16;
}


x86 assembly (clang, -O0):
<rgph_xxh32s_finalise>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
sar    $0xf,%ecx
mov    -0x8(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
mov    $0x85ebca77,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
imul   (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
sar    $0xd,%ecx
mov    -0x8(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
mov    $0xc2b2ae3d,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
imul   (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
sar    $0x10,%ecx
mov    -0x8(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgph_xxh32s_finalise>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%eax
mov    %eax,%ecx
sar    $0xf,%ecx
xor    %eax,%ecx
mov    %ecx,(%rdi)
mov    $0x85ebca77,%edi
call   1030 <UINT32_C@plt>
imul   (%rbx),%eax
mov    %eax,%ecx
sar    $0xd,%ecx
xor    %eax,%ecx
mov    %ecx,(%rbx)
mov    $0xc2b2ae3d,%edi
call   1030 <UINT32_C@plt>
imul   (%rbx),%eax
mov    %eax,%ecx
sar    $0x10,%ecx
xor    %eax,%ecx
mov    %ecx,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @rgph_xxh32s_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, 15
%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 @UINT32_C(i32 -2048144777)
%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, 13
%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 @UINT32_C(i32 -1028477379)
%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, 16
%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_xxh32s_finalise(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = ashr i32 %2, 15
%4 = xor i32 %3, %2
store i32 %4, i32* %0
%5 = tail call i32 @UINT32_C(i32 -2048144777)
%6 = load i32, i32* %0
%7 = mul nsw i32 %6, %5
%8 = ashr i32 %7, 13
%9 = xor i32 %8, %7
store i32 %9, i32* %0
%10 = tail call i32 @UINT32_C(i32 -1028477379)
%11 = load i32, i32* %0
%12 = mul nsw i32 %11, %10
%13 = ashr i32 %12, 16
%14 = xor i32 %13, %12
store i32 %14, i32* %0
ret void
}