#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;
typedef int int8_t;

/* Variables and functions */
int odirure(int const, int);
void make_key(uint32_t key[4], uint32_t timestamp, uint32_t address) {
  static const uint32_t table[4] = {0xe43276df, 0xdca83759, 0x9802b8ac,
                                    0x4675a56b};
  int8_t i;
  for (i = 0; i < 4; i++)
    key[i] = odirure(table[i] ^ ((timestamp >> 6) ^ address), 0x045d9f3b) ^
             0x87b562f4;
}


x86 assembly (clang, -O0):
<make_key>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1177 <make_key+0x67>
movslq -0x14(%rbp),%rcx
lea    0xec2(%rip),%rax
mov    (%rax,%rcx,4),%edi
mov    -0xc(%rbp),%eax
sar    $0x6,%eax
xor    -0x10(%rbp),%eax
xor    %eax,%edi
mov    $0x45d9f3b,%esi
call   1030 <odirure@plt>
mov    %eax,%edx
xor    $0x87b562f4,%edx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1129 <make_key+0x19>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_key>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
sar    $0x6,%ebp
xor    %edx,%ebp
mov    %ebp,%edi
xor    $0xe43276df,%edi
mov    $0x45d9f3b,%esi
call   1030 <odirure@plt>
xor    $0x87b562f4,%eax
mov    %eax,(%rbx)
mov    %ebp,%edi
xor    $0xdca83759,%edi
mov    $0x45d9f3b,%esi
call   1030 <odirure@plt>
xor    $0x87b562f4,%eax
mov    %eax,0x4(%rbx)
mov    %ebp,%edi
xor    $0x9802b8ac,%edi
mov    $0x45d9f3b,%esi
call   1030 <odirure@plt>
xor    $0x87b562f4,%eax
mov    %eax,0x8(%rbx)
xor    $0x4675a56b,%ebp
mov    %ebp,%edi
mov    $0x45d9f3b,%esi
call   1030 <odirure@plt>
xor    $0x87b562f4,%eax
mov    %eax,0xc(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@make_key.table = internal constant [4 x i32] [i32 -466454817, i32 -592955559, i32 -1744652116, i32 1182115179]
define void @make_key(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
br label %8
8: ; preds = %27, %3
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load i32, i32* %7
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [4 x i32], [4 x i32]* @make_key.table, i64 0, i64 %13
%15 = load i32, i32* %14
%16 = load i32, i32* %5
%17 = ashr i32 %16, 6
%18 = load i32, i32* %6
%19 = xor i32 %17, %18
%20 = xor i32 %15, %19
%21 = call i32 @odirure(i32 %20, i32 73244475)
%22 = xor i32 %21, -2018155788
%23 = load i32*, i32** %4
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, i32* %23, i64 %25
store i32 %22, i32* %26
br label %27
27: ; preds = %11
%28 = load i32, i32* %7
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
br label %8
30: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @make_key(i32* nocapture writeonly %0, i32 %1, i32 %2) {
%4 = ashr i32 %1, 6
%5 = xor i32 %4, %2
%6 = xor i32 %5, -466454817
%7 = tail call i32 @odirure(i32 %6, i32 73244475)
%8 = xor i32 %7, -2018155788
store i32 %8, i32* %0
%9 = xor i32 %5, -592955559
%10 = tail call i32 @odirure(i32 %9, i32 73244475)
%11 = xor i32 %10, -2018155788
%12 = getelementptr inbounds i32, i32* %0, i64 1
store i32 %11, i32* %12
%13 = xor i32 %5, -1744652116
%14 = tail call i32 @odirure(i32 %13, i32 73244475)
%15 = xor i32 %14, -2018155788
%16 = getelementptr inbounds i32, i32* %0, i64 2
store i32 %15, i32* %16
%17 = xor i32 %5, 1182115179
%18 = tail call i32 @odirure(i32 %17, i32 73244475)
%19 = xor i32 %18, -2018155788
%20 = getelementptr inbounds i32, i32* %0, i64 3
store i32 %19, i32* %20
ret void
}