#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 */

/* Variables and functions */
int /*<<< orphan*/ assert(void const *);
unsigned aux_hash(const void *key) {
  assert(key);
  const int *ikey = (int *)key;
  unsigned a = (unsigned)*ikey;
  a = (a + 0x7ed55d16) + (a << 12);
  a = (a ^ 0xc761c23c) ^ (a >> 19);
  a = (a + 0x165667b1) + (a << 5);
  a = (a + 0xd3a2646c) ^ (a << 9);
  a = (a + 0xfd7046c5) + (a << 3);
  a = (a ^ 0xb55a4f09) ^ (a >> 16);
  return a;
}


x86 assembly (clang, -O0):
<aux_hash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x7ed55d16,%eax
mov    -0x14(%rbp),%ecx
shl    $0xc,%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
xor    $0xc761c23c,%eax
mov    -0x14(%rbp),%ecx
shr    $0x13,%ecx
xor    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x165667b1,%eax
mov    -0x14(%rbp),%ecx
shl    $0x5,%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xd3a2646c,%eax
mov    -0x14(%rbp),%ecx
shl    $0x9,%ecx
xor    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xfd7046c5,%eax
mov    -0x14(%rbp),%ecx
shl    $0x3,%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
xor    $0xb55a4f09,%eax
mov    -0x14(%rbp),%ecx
shr    $0x10,%ecx
xor    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aux_hash>:
push   %rbx
mov    %rdi,%rbx
call   1030 <assert@plt>
mov    (%rbx),%eax
mov    %eax,%ecx
shl    $0xc,%ecx
add    %ecx,%eax
add    $0x7ed55d16,%eax
mov    %eax,%ecx
shr    $0x13,%ecx
xor    %eax,%ecx
xor    $0xc761c23c,%ecx
mov    %ecx,%eax
shl    $0x5,%eax
lea    (%rcx,%rax,1),%edx
shl    $0x9,%edx
add    %ecx,%eax
add    $0xe9f8cc1d,%eax
add    $0xaccf6200,%edx
xor    %eax,%edx
lea    (%rdx,%rdx,8),%ecx
add    $0xfd7046c5,%ecx
mov    %ecx,%eax
shr    $0x10,%eax
xor    %ecx,%eax
xor    $0xb55a4f09,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @aux_hash(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
%4 = alloca i32
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @assert(i8* %5)
%7 = load i8*, i8** %2
%8 = bitcast i8* %7 to i32*
store i32* %8, i32** %3
%9 = load i32*, i32** %3
%10 = load i32, i32* %9
store i32 %10, i32* %4
%11 = load i32, i32* %4
%12 = add i32 %11, 2127912214
%13 = load i32, i32* %4
%14 = shl i32 %13, 12
%15 = add i32 %12, %14
store i32 %15, i32* %4
%16 = load i32, i32* %4
%17 = xor i32 %16, -949894596
%18 = load i32, i32* %4
%19 = lshr i32 %18, 19
%20 = xor i32 %17, %19
store i32 %20, i32* %4
%21 = load i32, i32* %4
%22 = add i32 %21, 374761393
%23 = load i32, i32* %4
%24 = shl i32 %23, 5
%25 = add i32 %22, %24
store i32 %25, i32* %4
%26 = load i32, i32* %4
%27 = add i32 %26, -744332180
%28 = load i32, i32* %4
%29 = shl i32 %28, 9
%30 = xor i32 %27, %29
store i32 %30, i32* %4
%31 = load i32, i32* %4
%32 = add i32 %31, -42973499
%33 = load i32, i32* %4
%34 = shl i32 %33, 3
%35 = add i32 %32, %34
store i32 %35, i32* %4
%36 = load i32, i32* %4
%37 = xor i32 %36, -1252372727
%38 = load i32, i32* %4
%39 = lshr i32 %38, 16
%40 = xor i32 %37, %39
store i32 %40, i32* %4
%41 = load i32, i32* %4
ret i32 %41
}

LLVM IR (-O2):
define i32 @aux_hash(i8* %0) {
%2 = tail call i32 @assert(i8* %0)
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = add i32 %4, 2127912214
%6 = shl i32 %4, 12
%7 = add i32 %5, %6
%8 = lshr i32 %7, 19
%9 = xor i32 %7, %8
%10 = xor i32 %9, -949894596
%11 = add i32 %10, 374761393
%12 = shl i32 %10, 5
%13 = add i32 %11, %12
%14 = add i32 %13, -744332180
%15 = shl i32 %13, 9
%16 = xor i32 %14, %15
%17 = add i32 %16, -42973499
%18 = shl i32 %16, 3
%19 = add i32 %17, %18
%20 = lshr i32 %19, 16
%21 = xor i32 %19, %20
%22 = xor i32 %21, -1252372727
ret i32 %22
}