#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 PLL_Init(void) {
  (*((volatile uint32_t *)0x400FE070)) |= 0x80000000;
  (*((volatile uint32_t *)0x400FE070)) |= 0x00000800;
  (*((volatile uint32_t *)0x400FE060)) &= ~0x000007C0;
  (*((volatile uint32_t *)0x400FE060)) += 0x00000540;
  (*((volatile uint32_t *)0x400FE070)) &= ~0x00000070;
  (*((volatile uint32_t *)0x400FE070)) += 0x00000000;
  (*((volatile uint32_t *)0x400FE070)) &= ~0x00002000;
  (*((volatile uint32_t *)0x400FE070)) |= 0x40000000;
  (*((volatile uint32_t *)0x400FE070)) =
      ((*((volatile uint32_t *)0x400FE070)) & ~0x1FC00000) + (7 << 22);
  while (((*((volatile uint32_t *)0x400FE050)) & 0x00000040) == 0) {
  };
  (*((volatile uint32_t *)0x400FE070)) &= ~0x00000800;
}


x86 assembly (clang, -O0):
<PLL_Init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x400fe070,%eax
mov    (%rax),%ecx
or     $0x80000000,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
mov    $0x400fe070,%eax
mov    (%rax),%ecx
or     $0x800,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
mov    $0x400fe060,%eax
mov    (%rax),%ecx
and    $0xfffff83f,%ecx
mov    $0x400fe060,%eax
mov    %ecx,(%rax)
mov    $0x400fe060,%eax
mov    (%rax),%ecx
add    $0x540,%ecx
mov    $0x400fe060,%eax
mov    %ecx,(%rax)
mov    $0x400fe070,%eax
mov    (%rax),%ecx
and    $0xffffff8f,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
mov    $0x400fe070,%eax
mov    (%rax),%ecx
add    $0x0,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
mov    $0x400fe070,%eax
mov    (%rax),%ecx
and    $0xffffdfff,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
mov    $0x400fe070,%eax
mov    (%rax),%ecx
or     $0x40000000,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
mov    $0x400fe070,%eax
mov    (%rax),%ecx
and    $0xe03fffff,%ecx
add    $0x1c00000,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
mov    $0x400fe050,%eax
mov    (%rax),%eax
and    $0x40,%eax
cmp    $0x0,%eax
jne    11d0 <PLL_Init+0xd0>
jmp    11b8 <PLL_Init+0xb8>
mov    $0x400fe070,%eax
mov    (%rax),%ecx
and    $0xfffff7ff,%ecx
mov    $0x400fe070,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<PLL_Init>:
orl    $0x80000000,0x400fe070
orl    $0x800,0x400fe070
andl   $0xfffff83f,0x400fe060
3f f8 ff ff
addl   $0x540,0x400fe060
andl   $0xffffff8f,0x400fe070
8f
mov    0x400fe070,%eax
mov    %eax,0x400fe070
andl   $0xffffdfff,0x400fe070
ff df ff ff
orl    $0x40000000,0x400fe070
mov    $0xe03fffff,%eax
and    0x400fe070,%eax
or     $0x1c00000,%eax
mov    %eax,0x400fe070
testl  $0x40,0x400fe050
je     1170 <PLL_Init+0x70>
andl   $0xfffff7ff,0x400fe070
ff f7 ff ff
ret

LLVM IR (-O0):
define void @PLL_Init() {
%1 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%2 = or i32 %1, -2147483648
store volatile i32 %2, i32* inttoptr (i64 1074782320 to i32*)
%3 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%4 = or i32 %3, 2048
store volatile i32 %4, i32* inttoptr (i64 1074782320 to i32*)
%5 = load volatile i32, i32* inttoptr (i64 1074782304 to i32*)
%6 = and i32 %5, -1985
store volatile i32 %6, i32* inttoptr (i64 1074782304 to i32*)
%7 = load volatile i32, i32* inttoptr (i64 1074782304 to i32*)
%8 = add nsw i32 %7, 1344
store volatile i32 %8, i32* inttoptr (i64 1074782304 to i32*)
%9 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%10 = and i32 %9, -113
store volatile i32 %10, i32* inttoptr (i64 1074782320 to i32*)
%11 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%12 = add nsw i32 %11, 0
store volatile i32 %12, i32* inttoptr (i64 1074782320 to i32*)
%13 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%14 = and i32 %13, -8193
store volatile i32 %14, i32* inttoptr (i64 1074782320 to i32*)
%15 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%16 = or i32 %15, 1073741824
store volatile i32 %16, i32* inttoptr (i64 1074782320 to i32*)
%17 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%18 = and i32 %17, -532676609
%19 = add nsw i32 %18, 29360128
store volatile i32 %19, i32* inttoptr (i64 1074782320 to i32*)
br label %20
20: ; preds = %24, %0
%21 = load volatile i32, i32* inttoptr (i64 1074782288 to i32*)
%22 = and i32 %21, 64
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %20
br label %20
25: ; preds = %20
%26 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%27 = and i32 %26, -2049
store volatile i32 %27, i32* inttoptr (i64 1074782320 to i32*)
ret void
}

LLVM IR (-O2):
define void @PLL_Init() {
%1 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%2 = or i32 %1, -2147483648
store volatile i32 %2, i32* inttoptr (i64 1074782320 to i32*)
%3 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%4 = or i32 %3, 2048
store volatile i32 %4, i32* inttoptr (i64 1074782320 to i32*)
%5 = load volatile i32, i32* inttoptr (i64 1074782304 to i32*)
%6 = and i32 %5, -1985
store volatile i32 %6, i32* inttoptr (i64 1074782304 to i32*)
%7 = load volatile i32, i32* inttoptr (i64 1074782304 to i32*)
%8 = add nsw i32 %7, 1344
store volatile i32 %8, i32* inttoptr (i64 1074782304 to i32*)
%9 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%10 = and i32 %9, -113
store volatile i32 %10, i32* inttoptr (i64 1074782320 to i32*)
%11 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
store volatile i32 %11, i32* inttoptr (i64 1074782320 to i32*)
%12 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%13 = and i32 %12, -8193
store volatile i32 %13, i32* inttoptr (i64 1074782320 to i32*)
%14 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%15 = or i32 %14, 1073741824
store volatile i32 %15, i32* inttoptr (i64 1074782320 to i32*)
%16 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%17 = and i32 %16, -532676609
%18 = or i32 %17, 29360128
store volatile i32 %18, i32* inttoptr (i64 1074782320 to i32*)
br label %19
19: ; preds = %19, %0
%20 = load volatile i32, i32* inttoptr (i64 1074782288 to i32*)
%21 = and i32 %20, 64
%22 = icmp eq i32 %21, 0
br i1 %22, label %19, label %23
23: ; preds = %19
%24 = load volatile i32, i32* inttoptr (i64 1074782320 to i32*)
%25 = and i32 %24, -2049
store volatile i32 %25, i32* inttoptr (i64 1074782320 to i32*)
ret void
}