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

/* Variables and functions */
int UINT32_C(int);
scalar_t__ htole32(int);
int /*<<< orphan*/ rgph_jenkins2_mix(int *);
void rgph_u32x3_jenkins2v_u32(uint32_t value, uintptr_t seed, uint32_t *h) {
  h[0] = UINT32_C(0x9e3779b9);
  h[1] = UINT32_C(0x9e3779b9);
  h[2] = seed;
  h[0] += htole32(value);
  h[2] += sizeof(value);
  rgph_jenkins2_mix(h);
}


x86 assembly (clang, -O0):
<rgph_u32x3_jenkins2v_u32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x9e3779b9,%edi
call   1040 <UINT32_C@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x9e3779b9,%edi
call   1040 <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   1030 <htole32@plt>
mov    %rax,%rdx
mov    -0x18(%rbp),%rax
movslq (%rax),%rcx
add    %rdx,%rcx
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
movslq 0x8(%rax),%rcx
add    $0x4,%rcx
mov    %ecx,0x8(%rax)
mov    -0x18(%rbp),%rdi
call   1050 <rgph_jenkins2_mix@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @rgph_u32x3_jenkins2v_u32(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 i64 @htole32(i32 %17)
%19 = load i32*, i32** %6
%20 = getelementptr inbounds i32, i32* %19, i64 0
%21 = load i32, i32* %20
%22 = sext i32 %21 to i64
%23 = add nsw i64 %22, %18
%24 = trunc i64 %23 to i32
store i32 %24, i32* %20
%25 = load i32*, i32** %6
%26 = getelementptr inbounds i32, i32* %25, i64 2
%27 = load i32, i32* %26
%28 = sext i32 %27 to i64
%29 = add i64 %28, 4
%30 = trunc i64 %29 to i32
store i32 %30, i32* %26
%31 = load i32*, i32** %6
%32 = call i32 @rgph_jenkins2_mix(i32* %31)
ret void
}

LLVM IR (-O2):
define void @rgph_u32x3_jenkins2v_u32(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 i64 @htole32(i32 %0)
%10 = load i32, i32* %2
%11 = trunc i64 %9 to i32
%12 = add i32 %10, %11
store i32 %12, i32* %2
%13 = load i32, i32* %8
%14 = add i32 %13, 4
store i32 %14, i32* %8
%15 = tail call i32 @rgph_jenkins2_mix(i32* %2)
ret void
}