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

/* Variables and functions */
void PortE_Init(void) {
  (*((volatile uint32_t *)0x400FE608)) |= 0x10;
  while (((*((volatile uint32_t *)0x400FEA08)) & 0x10) == 0) {
  };
  (*((volatile uint32_t *)0x40024400)) &= ~0x3F;
  (*((volatile uint32_t *)0x40024420)) |= 0x3F;
  (*((volatile uint32_t *)0x4002451C)) &= ~0x3F;
  (*((volatile uint32_t *)0x40024528)) |= 0x3F;
}


x86 assembly (clang, -O0):
<PortE_Init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x400fe608,%eax
mov    (%rax),%ecx
or     $0x10,%ecx
mov    $0x400fe608,%eax
mov    %ecx,(%rax)
mov    $0x400fea08,%eax
mov    (%rax),%eax
and    $0x10,%eax
cmp    $0x0,%eax
jne    112d <PortE_Init+0x2d>
jmp    1115 <PortE_Init+0x15>
mov    $0x40024400,%eax
mov    (%rax),%ecx
and    $0xffffffc0,%ecx
mov    $0x40024400,%eax
mov    %ecx,(%rax)
mov    $0x40024420,%eax
mov    (%rax),%ecx
or     $0x3f,%ecx
mov    $0x40024420,%eax
mov    %ecx,(%rax)
mov    $0x4002451c,%eax
mov    (%rax),%ecx
and    $0xffffffc0,%ecx
mov    $0x4002451c,%eax
mov    %ecx,(%rax)
mov    $0x40024528,%eax
mov    (%rax),%ecx
or     $0x3f,%ecx
mov    $0x40024528,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<PortE_Init>:
orl    $0x10,0x400fe608
10
nopl   0x0(%rax,%rax,1)
testl  $0x10,0x400fea08
je     1110 <PortE_Init+0x10>
andl   $0xffffffc0,0x40024400
c0
orl    $0x3f,0x40024420
3f
andl   $0xffffffc0,0x4002451c
c0
orl    $0x3f,0x40024528
3f
ret

LLVM IR (-O0):
define void @PortE_Init() {
%1 = load volatile i32, i32* inttoptr (i64 1074783752 to i32*)
%2 = or i32 %1, 16
store volatile i32 %2, i32* inttoptr (i64 1074783752 to i32*)
br label %3
3: ; preds = %7, %0
%4 = load volatile i32, i32* inttoptr (i64 1074784776 to i32*)
%5 = and i32 %4, 16
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %3
br label %3
8: ; preds = %3
%9 = load volatile i32, i32* inttoptr (i64 1073890304 to i32*)
%10 = and i32 %9, -64
store volatile i32 %10, i32* inttoptr (i64 1073890304 to i32*)
%11 = load volatile i32, i32* inttoptr (i64 1073890336 to i32*)
%12 = or i32 %11, 63
store volatile i32 %12, i32* inttoptr (i64 1073890336 to i32*)
%13 = load volatile i32, i32* inttoptr (i64 1073890588 to i32*)
%14 = and i32 %13, -64
store volatile i32 %14, i32* inttoptr (i64 1073890588 to i32*)
%15 = load volatile i32, i32* inttoptr (i64 1073890600 to i32*)
%16 = or i32 %15, 63
store volatile i32 %16, i32* inttoptr (i64 1073890600 to i32*)
ret void
}

LLVM IR (-O2):
define void @PortE_Init() {
%1 = load volatile i32, i32* inttoptr (i64 1074783752 to i32*)
%2 = or i32 %1, 16
store volatile i32 %2, i32* inttoptr (i64 1074783752 to i32*)
br label %3
3: ; preds = %3, %0
%4 = load volatile i32, i32* inttoptr (i64 1074784776 to i32*)
%5 = and i32 %4, 16
%6 = icmp eq i32 %5, 0
br i1 %6, label %3, label %7
7: ; preds = %3
%8 = load volatile i32, i32* inttoptr (i64 1073890304 to i32*)
%9 = and i32 %8, -64
store volatile i32 %9, i32* inttoptr (i64 1073890304 to i32*)
%10 = load volatile i32, i32* inttoptr (i64 1073890336 to i32*)
%11 = or i32 %10, 63
store volatile i32 %11, i32* inttoptr (i64 1073890336 to i32*)
%12 = load volatile i32, i32* inttoptr (i64 1073890588 to i32*)
%13 = and i32 %12, -64
store volatile i32 %13, i32* inttoptr (i64 1073890588 to i32*)
%14 = load volatile i32, i32* inttoptr (i64 1073890600 to i32*)
%15 = or i32 %14, 63
store volatile i32 %15, i32* inttoptr (i64 1073890600 to i32*)
ret void
}