void pll_setup_gpio(void) {
  (*((volatile unsigned int *)(((0x44E00000) + 0) + (0xac)))) |= (0x2u);
  while ((0x2u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0) + (0xac)))) &
          (0x00000003u)))
    ;
  (*((volatile unsigned int *)(((0x44E00000) + 0) + (0xac)))) |= (0x00040000u);
  while ((0x00040000u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0) + (0xac)))) &
          (0x00040000u)))
    ;
  while (((0x0u) << (0x00000010u)) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0) + (0xac)))) &
          (0x00030000u)))
    ;
  while ((0x00080000u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0) + (0x0)))) &
          (0x00080000u)))
    ;
}


x86 assembly (clang, -O0):
<pll_setup_gpio>:
push   %rbp
mov    %rsp,%rbp
mov    $0x44e000ac,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0x44e000ac,%eax
mov    %ecx,(%rax)
mov    $0x44e000ac,%eax
mov    (%rax),%ecx
and    $0x3,%ecx
mov    $0x2,%eax
cmp    %ecx,%eax
je     1131 <pll_setup_gpio+0x31>
jmp    1115 <pll_setup_gpio+0x15>
mov    $0x44e000ac,%eax
mov    (%rax),%ecx
or     $0x40000,%ecx
mov    $0x44e000ac,%eax
mov    %ecx,(%rax)
mov    $0x44e000ac,%eax
mov    (%rax),%ecx
and    $0x40000,%ecx
mov    $0x40000,%eax
cmp    %ecx,%eax
je     1164 <pll_setup_gpio+0x64>
jmp    1145 <pll_setup_gpio+0x45>
jmp    1169 <pll_setup_gpio+0x69>
mov    $0x44e000ac,%eax
mov    (%rax),%ecx
and    $0x30000,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     1185 <pll_setup_gpio+0x85>
jmp    1169 <pll_setup_gpio+0x69>
jmp    118a <pll_setup_gpio+0x8a>
mov    $0x44e00000,%eax
mov    (%rax),%ecx
and    $0x80000,%ecx
mov    $0x80000,%eax
cmp    %ecx,%eax
je     11a9 <pll_setup_gpio+0xa9>
jmp    118a <pll_setup_gpio+0x8a>
pop    %rbp
ret

x86 assembly (clang, -O2):
<pll_setup_gpio>:
orl    $0x2,0x44e000ac
02
nopl   0x0(%rax,%rax,1)
mov    0x44e000ac,%eax
and    $0x3,%eax
cmp    $0x2,%eax
jne    1110 <pll_setup_gpio+0x10>
orl    $0x40000,0x44e000ac
nopw   0x0(%rax,%rax,1)
testl  $0x40000,0x44e000ac
je     1130 <pll_setup_gpio+0x30>
nopl   (%rax)
testl  $0x30000,0x44e000ac
jne    1140 <pll_setup_gpio+0x40>
nopl   (%rax)
testl  $0x80000,0x44e00000
je     1150 <pll_setup_gpio+0x50>
ret

LLVM IR (-O0):
define void @pll_setup_gpio() {
%1 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%2 = or i32 %1, 2
store volatile i32 %2, i32* inttoptr (i64 1155530924 to i32*)
br label %3
3: ; preds = %7, %0
%4 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%5 = and i32 %4, 3
%6 = icmp ne i32 2, %5
br i1 %6, label %7, label %8
7: ; preds = %3
br label %3
8: ; preds = %3
%9 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%10 = or i32 %9, 262144
store volatile i32 %10, i32* inttoptr (i64 1155530924 to i32*)
br label %11
11: ; preds = %15, %8
%12 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%13 = and i32 %12, 262144
%14 = icmp ne i32 262144, %13
br i1 %14, label %15, label %16
15: ; preds = %11
br label %11
16: ; preds = %11
br label %17
17: ; preds = %21, %16
%18 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%19 = and i32 %18, 196608
%20 = icmp ne i32 0, %19
br i1 %20, label %21, label %22
21: ; preds = %17
br label %17
22: ; preds = %17
br label %23
23: ; preds = %27, %22
%24 = load volatile i32, i32* inttoptr (i64 1155530752 to i32*)
%25 = and i32 %24, 524288
%26 = icmp ne i32 524288, %25
br i1 %26, label %27, label %28
27: ; preds = %23
br label %23
28: ; preds = %23
ret void
}

LLVM IR (-O2):
define void @pll_setup_gpio() {
%1 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%2 = or i32 %1, 2
store volatile i32 %2, i32* inttoptr (i64 1155530924 to i32*)
br label %3
3: ; preds = %3, %0
%4 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%5 = and i32 %4, 3
%6 = icmp eq i32 %5, 2
br i1 %6, label %7, label %3
7: ; preds = %3
%8 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%9 = or i32 %8, 262144
store volatile i32 %9, i32* inttoptr (i64 1155530924 to i32*)
br label %10
10: ; preds = %10, %7
%11 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%12 = and i32 %11, 262144
%13 = icmp eq i32 %12, 0
br i1 %13, label %10, label %14
14: ; preds = %10, %14
%15 = load volatile i32, i32* inttoptr (i64 1155530924 to i32*)
%16 = and i32 %15, 196608
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %14
18: ; preds = %14, %18
%19 = load volatile i32, i32* inttoptr (i64 1155530752 to i32*)
%20 = and i32 %19, 524288
%21 = icmp eq i32 %20, 0
br i1 %21, label %18, label %22
22: ; preds = %18
ret void
}