#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 /*<<< orphan*/ value;
typedef int /*<<< orphan*/ uint64_t;
typedef int uint32_t;

/* Variables and functions */
int UINT32_C(int);
int UINT32_MAX;
int htole64(int /*<<< orphan*/);
int /*<<< orphan*/ rgph_jenkins2_mix(int *);
void rgph_u32x3_jenkins2v_u64(uint64_t value, uintptr_t seed, uint32_t *h) {
  h[0] = UINT32_C(0x9e3779b9);
  h[1] = UINT32_C(0x9e3779b9);
  h[2] = seed;
  h[0] += htole64(value) & UINT32_MAX;
  h[1] += htole64(value) >> 32;
  h[2] += sizeof(value);
  rgph_jenkins2_mix(h);
}


x86 assembly (clang, -O0):
<rgph_u32x3_jenkins2v_u64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x9e3779b9,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x9e3779b9,%edi
call   1030 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x4(%rbp),%edi
call   1050 <htole64@plt>
mov    %eax,%ecx
mov    0x2e72(%rip),%rax
and    (%rax),%ecx
mov    -0x18(%rbp),%rax
add    (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x4(%rbp),%edi
call   1050 <htole64@plt>
mov    $0x20,%ecx
sar    %cl,%eax
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
add    0x4(%rax),%ecx
mov    %ecx,0x4(%rax)
mov    -0x18(%rbp),%rax
movslq 0x8(%rax),%rcx
add    $0x4,%rcx
mov    %ecx,0x8(%rax)
mov    -0x18(%rbp),%rdi
call   1040 <rgph_jenkins2_mix@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgph_u32x3_jenkins2v_u64>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %edi,%ebp
mov    $0x9e3779b9,%edi
call   1030 <UINT32_C@plt>
mov    %eax,(%rbx)
mov    $0x9e3779b9,%edi
call   1030 <UINT32_C@plt>
mov    %eax,0x4(%rbx)
mov    %r14d,0x8(%rbx)
mov    %ebp,%edi
call   1050 <htole64@plt>
mov    0x2e91(%rip),%rcx
and    (%rcx),%eax
add    %eax,(%rbx)
mov    %ebp,%edi
call   1050 <htole64@plt>
addl   $0x4,0x8(%rbx)
mov    %rbx,%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <rgph_jenkins2_mix@plt>

LLVM IR (-O0):
@UINT32_MAX = global i32 0
define void @rgph_u32x3_jenkins2v_u64(i32 %0, i64 %1, i32* %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32*
store i32 %0, i32* %4
store i64 %1, i64* %5
store i32* %2, i32** %6
%7 = call i32 @UINT32_C(i32 -1640531527)
%8 = load i32*, i32** %6
%9 = getelementptr inbounds i32, i32* %8, i64 0
store i32 %7, i32* %9
%10 = call i32 @UINT32_C(i32 -1640531527)
%11 = load i32*, i32** %6
%12 = getelementptr inbounds i32, i32* %11, i64 1
store i32 %10, i32* %12
%13 = load i64, i64* %5
%14 = trunc i64 %13 to i32
%15 = load i32*, i32** %6
%16 = getelementptr inbounds i32, i32* %15, i64 2
store i32 %14, i32* %16
%17 = load i32, i32* %4
%18 = call i32 @htole64(i32 %17)
%19 = load i32, i32* @UINT32_MAX
%20 = and i32 %18, %19
%21 = load i32*, i32** %6
%22 = getelementptr inbounds i32, i32* %21, i64 0
%23 = load i32, i32* %22
%24 = add nsw i32 %23, %20
store i32 %24, i32* %22
%25 = load i32, i32* %4
%26 = call i32 @htole64(i32 %25)
%27 = ashr i32 %26, 32
%28 = load i32*, i32** %6
%29 = getelementptr inbounds i32, i32* %28, i64 1
%30 = load i32, i32* %29
%31 = add nsw i32 %30, %27
store i32 %31, i32* %29
%32 = load i32*, i32** %6
%33 = getelementptr inbounds i32, i32* %32, i64 2
%34 = load i32, i32* %33
%35 = sext i32 %34 to i64
%36 = add i64 %35, 4
%37 = trunc i64 %36 to i32
store i32 %37, i32* %33
%38 = load i32*, i32** %6
%39 = call i32 @rgph_jenkins2_mix(i32* %38)
ret void
}

LLVM IR (-O2):
@UINT32_MAX = global i32 0
define void @rgph_u32x3_jenkins2v_u64(i32 %0, i64 %1, i32* %2) {
%4 = tail call i32 @UINT32_C(i32 -1640531527)
store i32 %4, i32* %2
%5 = tail call i32 @UINT32_C(i32 -1640531527)
%6 = getelementptr inbounds i32, i32* %2, i64 1
store i32 %5, i32* %6
%7 = trunc i64 %1 to i32
%8 = getelementptr inbounds i32, i32* %2, i64 2
store i32 %7, i32* %8
%9 = tail call i32 @htole64(i32 %0)
%10 = load i32, i32* @UINT32_MAX
%11 = and i32 %10, %9
%12 = load i32, i32* %2
%13 = add nsw i32 %12, %11
store i32 %13, i32* %2
%14 = tail call i32 @htole64(i32 %0)
%15 = load i32, i32* %8
%16 = add i32 %15, 4
store i32 %16, i32* %8
%17 = tail call i32 @rgph_jenkins2_mix(i32* %2)
ret void
}