#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*/ feed();
void Initialize(void) {
  (*((volatile unsigned char *)0xE01FC084)) = 0x23;
  feed();
  (*((volatile unsigned char *)0xE01FC080)) = 0x1;
  feed();
  while (!((*((volatile unsigned short *)0xE01FC088)) & 0x400))
    ;
  (*((volatile unsigned char *)0xE01FC080)) = 0x3;
  feed();
  (*((volatile unsigned char *)0xE01FC000)) = 0x2;
  (*((volatile unsigned char *)0xE01FC004)) = 0x4;
  (*((volatile unsigned char *)0xE01FC100)) = 0x1;
}


x86 assembly (clang, -O0):
<Initialize>:
push   %rbp
mov    %rsp,%rbp
mov    $0xe01fc084,%eax
movb   $0x23,(%rax)
mov    $0x0,%al
call   1030 <feed@plt>
mov    $0xe01fc080,%eax
movb   $0x1,(%rax)
mov    $0x0,%al
call   1030 <feed@plt>
mov    $0xe01fc088,%eax
mov    (%rax),%ax
movzwl %ax,%eax
and    $0x400,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1157 <Initialize+0x47>
jmp    115c <Initialize+0x4c>
jmp    1132 <Initialize+0x22>
mov    $0xe01fc080,%eax
movb   $0x3,(%rax)
mov    $0x0,%al
call   1030 <feed@plt>
mov    $0xe01fc000,%eax
movb   $0x2,(%rax)
mov    $0xe01fc004,%eax
movb   $0x4,(%rax)
mov    $0xe01fc100,%eax
movb   $0x1,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Initialize>:
push   %rbx
mov    $0xe01fc080,%ebx
movb   $0x23,0x4(%rbx)
xor    %eax,%eax
call   1030 <feed@plt>
movb   $0x1,(%rbx)
xor    %eax,%eax
call   1030 <feed@plt>
nopl   0x0(%rax,%rax,1)
movzwl 0x8(%rbx),%eax
test   $0x400,%eax
je     1130 <Initialize+0x20>
movb   $0x3,(%rbx)
xor    %eax,%eax
call   1030 <feed@plt>
movb   $0x2,-0x80(%rbx)
movb   $0x4,-0x7c(%rbx)
movb   $0x1,0x80(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @Initialize() {
store volatile i8 35, i8* inttoptr (i64 3760177284 to i8*)
%1 = call i32 (...) @feed()
store volatile i8 1, i8* inttoptr (i64 3760177280 to i8*)
%2 = call i32 (...) @feed()
br label %3
3: ; preds = %9, %0
%4 = load volatile i16, i16* inttoptr (i64 3760177288 to i16*)
%5 = zext i16 %4 to i32
%6 = and i32 %5, 1024
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
br i1 %8, label %9, label %10
9: ; preds = %3
br label %3
10: ; preds = %3
store volatile i8 3, i8* inttoptr (i64 3760177280 to i8*)
%11 = call i32 (...) @feed()
store volatile i8 2, i8* inttoptr (i64 3760177152 to i8*)
store volatile i8 4, i8* inttoptr (i64 3760177156 to i8*)
store volatile i8 1, i8* inttoptr (i64 3760177408 to i8*)
ret void
}

LLVM IR (-O2):
define void @Initialize() {
store volatile i8 35, i8* inttoptr (i64 3760177284 to i8*)
%1 = tail call i32 (...) @feed()
store volatile i8 1, i8* inttoptr (i64 3760177280 to i8*)
%2 = tail call i32 (...) @feed()
br label %3
3: ; preds = %3, %0
%4 = load volatile i16, i16* inttoptr (i64 3760177288 to i16*)
%5 = and i16 %4, 1024
%6 = icmp eq i16 %5, 0
br i1 %6, label %3, label %7
7: ; preds = %3
store volatile i8 3, i8* inttoptr (i64 3760177280 to i8*)
%8 = tail call i32 (...) @feed()
store volatile i8 2, i8* inttoptr (i64 3760177152 to i8*)
store volatile i8 4, i8* inttoptr (i64 3760177156 to i8*)
store volatile i8 1, i8* inttoptr (i64 3760177408 to i8*)
ret void
}