void pll_setup_wkup(void) {
  (*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x4)))) |= (0x2u);
  while ((0x2u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x4)))) &
          (0x00000003u)))
    ;
  (*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x0)))) |= (0x2u);
  while ((0x2u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x0)))) &
          (0x00000003u)))
    ;
  (*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x18)))) |= (0x2u);
  while ((0x2u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x18)))) &
          (0x00000003u)))
    ;
  (*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0xb4)))) |= (0x2u);
  while ((0x2u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0xb4)))) &
          (0x00000003u)))
    ;
  while (((0x0u) << (0x00000010u)) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x4)))) &
          (0x00030000u)))
    ;
  while ((0x00000008u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x18)))) &
          (0x00000008u)))
    ;
  while (((0x0u) << (0x00000010u)) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0xc)))) &
          (0x00030000u)))
    ;
  while ((0x00000004u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x0)))) &
          (0x00000004u)))
    ;
  while ((0x00000004u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0xcc)))) &
          (0x00000004u)))
    ;
  while ((0x00001000u) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0x0)))) &
          (0x00001000u)))
    ;
  while (((0x0u) << (0x00000010u)) !=
         ((*((volatile unsigned int *)(((0x44E00000) + 0x400) + (0xb4)))) &
          (0x00030000u)))
    ;
}


x86 assembly (clang, -O0):
<pll_setup_wkup>:
push   %rbp
mov    %rsp,%rbp
mov    $0x44e00404,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0x44e00404,%eax
mov    %ecx,(%rax)
mov    $0x44e00404,%eax
mov    (%rax),%ecx
and    $0x3,%ecx
mov    $0x2,%eax
cmp    %ecx,%eax
je     1131 <pll_setup_wkup+0x31>
jmp    1115 <pll_setup_wkup+0x15>
mov    $0x44e00400,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0x44e00400,%eax
mov    %ecx,(%rax)
mov    $0x44e00400,%eax
mov    (%rax),%ecx
and    $0x3,%ecx
mov    $0x2,%eax
cmp    %ecx,%eax
je     115e <pll_setup_wkup+0x5e>
jmp    1142 <pll_setup_wkup+0x42>
mov    $0x44e00418,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0x44e00418,%eax
mov    %ecx,(%rax)
mov    $0x44e00418,%eax
mov    (%rax),%ecx
and    $0x3,%ecx
mov    $0x2,%eax
cmp    %ecx,%eax
je     118b <pll_setup_wkup+0x8b>
jmp    116f <pll_setup_wkup+0x6f>
mov    $0x44e004b4,%eax
mov    (%rax),%ecx
or     $0x2,%ecx
mov    $0x44e004b4,%eax
mov    %ecx,(%rax)
mov    $0x44e004b4,%eax
mov    (%rax),%ecx
and    $0x3,%ecx
mov    $0x2,%eax
cmp    %ecx,%eax
je     11b8 <pll_setup_wkup+0xb8>
jmp    119c <pll_setup_wkup+0x9c>
jmp    11bd <pll_setup_wkup+0xbd>
mov    $0x44e00404,%eax
mov    (%rax),%ecx
and    $0x30000,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     11d9 <pll_setup_wkup+0xd9>
jmp    11bd <pll_setup_wkup+0xbd>
jmp    11de <pll_setup_wkup+0xde>
mov    $0x44e00418,%eax
mov    (%rax),%ecx
and    $0x8,%ecx
mov    $0x8,%eax
cmp    %ecx,%eax
je     11fa <pll_setup_wkup+0xfa>
jmp    11de <pll_setup_wkup+0xde>
jmp    11ff <pll_setup_wkup+0xff>
mov    $0x44e0040c,%eax
mov    (%rax),%ecx
and    $0x30000,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     121b <pll_setup_wkup+0x11b>
jmp    11ff <pll_setup_wkup+0xff>
jmp    1220 <pll_setup_wkup+0x120>
mov    $0x44e00400,%eax
mov    (%rax),%ecx
and    $0x4,%ecx
mov    $0x4,%eax
cmp    %ecx,%eax
je     123c <pll_setup_wkup+0x13c>
jmp    1220 <pll_setup_wkup+0x120>
jmp    1241 <pll_setup_wkup+0x141>
mov    $0x44e004cc,%eax
mov    (%rax),%ecx
and    $0x4,%ecx
mov    $0x4,%eax
cmp    %ecx,%eax
je     125d <pll_setup_wkup+0x15d>
jmp    1241 <pll_setup_wkup+0x141>
jmp    1262 <pll_setup_wkup+0x162>
mov    $0x44e00400,%eax
mov    (%rax),%ecx
and    $0x1000,%ecx
mov    $0x1000,%eax
cmp    %ecx,%eax
je     1281 <pll_setup_wkup+0x181>
jmp    1262 <pll_setup_wkup+0x162>
jmp    1286 <pll_setup_wkup+0x186>
mov    $0x44e004b4,%eax
mov    (%rax),%ecx
and    $0x30000,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     12a2 <pll_setup_wkup+0x1a2>
jmp    1286 <pll_setup_wkup+0x186>
pop    %rbp
ret

x86 assembly (clang, -O2):
<pll_setup_wkup>:
orl    $0x2,0x44e00404
02
nopl   0x0(%rax,%rax,1)
mov    0x44e00404,%eax
and    $0x3,%eax
cmp    $0x2,%eax
jne    1110 <pll_setup_wkup+0x10>
orl    $0x2,0x44e00400
02
nopw   0x0(%rax,%rax,1)
mov    0x44e00400,%eax
and    $0x3,%eax
cmp    $0x2,%eax
jne    1130 <pll_setup_wkup+0x30>
orl    $0x2,0x44e00418
02
nopw   0x0(%rax,%rax,1)
mov    0x44e00418,%eax
and    $0x3,%eax
cmp    $0x2,%eax
jne    1150 <pll_setup_wkup+0x50>
orl    $0x2,0x44e004b4
02
nopw   0x0(%rax,%rax,1)
mov    0x44e004b4,%eax
and    $0x3,%eax
cmp    $0x2,%eax
jne    1170 <pll_setup_wkup+0x70>
nop
testl  $0x30000,0x44e00404
jne    1180 <pll_setup_wkup+0x80>
nopl   (%rax)
testl  $0x8,0x44e00418
je     1190 <pll_setup_wkup+0x90>
nopl   (%rax)
testl  $0x30000,0x44e0040c
jne    11a0 <pll_setup_wkup+0xa0>
nopl   (%rax)
testl  $0x4,0x44e00400
je     11b0 <pll_setup_wkup+0xb0>
nopl   (%rax)
testl  $0x4,0x44e004cc
je     11c0 <pll_setup_wkup+0xc0>
nopl   (%rax)
testl  $0x1000,0x44e00400
je     11d0 <pll_setup_wkup+0xd0>
nopl   (%rax)
testl  $0x30000,0x44e004b4
jne    11e0 <pll_setup_wkup+0xe0>
ret

LLVM IR (-O0):
define void @pll_setup_wkup() {
%1 = load volatile i32, i32* inttoptr (i64 1155531780 to i32*)
%2 = or i32 %1, 2
store volatile i32 %2, i32* inttoptr (i64 1155531780 to i32*)
br label %3
3: ; preds = %7, %0
%4 = load volatile i32, i32* inttoptr (i64 1155531780 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 1155531776 to i32*)
%10 = or i32 %9, 2
store volatile i32 %10, i32* inttoptr (i64 1155531776 to i32*)
br label %11
11: ; preds = %15, %8
%12 = load volatile i32, i32* inttoptr (i64 1155531776 to i32*)
%13 = and i32 %12, 3
%14 = icmp ne i32 2, %13
br i1 %14, label %15, label %16
15: ; preds = %11
br label %11
16: ; preds = %11
%17 = load volatile i32, i32* inttoptr (i64 1155531800 to i32*)
%18 = or i32 %17, 2
store volatile i32 %18, i32* inttoptr (i64 1155531800 to i32*)
br label %19
19: ; preds = %23, %16
%20 = load volatile i32, i32* inttoptr (i64 1155531800 to i32*)
%21 = and i32 %20, 3
%22 = icmp ne i32 2, %21
br i1 %22, label %23, label %24
23: ; preds = %19
br label %19
24: ; preds = %19
%25 = load volatile i32, i32* inttoptr (i64 1155531956 to i32*)
%26 = or i32 %25, 2
store volatile i32 %26, i32* inttoptr (i64 1155531956 to i32*)
br label %27
27: ; preds = %31, %24
%28 = load volatile i32, i32* inttoptr (i64 1155531956 to i32*)
%29 = and i32 %28, 3
%30 = icmp ne i32 2, %29
br i1 %30, label %31, label %32
31: ; preds = %27
br label %27
32: ; preds = %27
br label %33
33: ; preds = %37, %32
%34 = load volatile i32, i32* inttoptr (i64 1155531780 to i32*)
%35 = and i32 %34, 196608
%36 = icmp ne i32 0, %35
br i1 %36, label %37, label %38
37: ; preds = %33
br label %33
38: ; preds = %33
br label %39
39: ; preds = %43, %38
%40 = load volatile i32, i32* inttoptr (i64 1155531800 to i32*)
%41 = and i32 %40, 8
%42 = icmp ne i32 8, %41
br i1 %42, label %43, label %44
43: ; preds = %39
br label %39
44: ; preds = %39
br label %45
45: ; preds = %49, %44
%46 = load volatile i32, i32* inttoptr (i64 1155531788 to i32*)
%47 = and i32 %46, 196608
%48 = icmp ne i32 0, %47
br i1 %48, label %49, label %50
49: ; preds = %45
br label %45
50: ; preds = %45
br label %51
51: ; preds = %55, %50
%52 = load volatile i32, i32* inttoptr (i64 1155531776 to i32*)
%53 = and i32 %52, 4
%54 = icmp ne i32 4, %53
br i1 %54, label %55, label %56
55: ; preds = %51
br label %51
56: ; preds = %51
br label %57
57: ; preds = %61, %56
%58 = load volatile i32, i32* inttoptr (i64 1155531980 to i32*)
%59 = and i32 %58, 4
%60 = icmp ne i32 4, %59
br i1 %60, label %61, label %62
61: ; preds = %57
br label %57
62: ; preds = %57
br label %63
63: ; preds = %67, %62
%64 = load volatile i32, i32* inttoptr (i64 1155531776 to i32*)
%65 = and i32 %64, 4096
%66 = icmp ne i32 4096, %65
br i1 %66, label %67, label %68
67: ; preds = %63
br label %63
68: ; preds = %63
br label %69
69: ; preds = %73, %68
%70 = load volatile i32, i32* inttoptr (i64 1155531956 to i32*)
%71 = and i32 %70, 196608
%72 = icmp ne i32 0, %71
br i1 %72, label %73, label %74
73: ; preds = %69
br label %69
74: ; preds = %69
ret void
}

LLVM IR (-O2):
define void @pll_setup_wkup() {
%1 = load volatile i32, i32* inttoptr (i64 1155531780 to i32*)
%2 = or i32 %1, 2
store volatile i32 %2, i32* inttoptr (i64 1155531780 to i32*)
br label %3
3: ; preds = %3, %0
%4 = load volatile i32, i32* inttoptr (i64 1155531780 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 1155531776 to i32*)
%9 = or i32 %8, 2
store volatile i32 %9, i32* inttoptr (i64 1155531776 to i32*)
br label %10
10: ; preds = %10, %7
%11 = load volatile i32, i32* inttoptr (i64 1155531776 to i32*)
%12 = and i32 %11, 3
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %10
14: ; preds = %10
%15 = load volatile i32, i32* inttoptr (i64 1155531800 to i32*)
%16 = or i32 %15, 2
store volatile i32 %16, i32* inttoptr (i64 1155531800 to i32*)
br label %17
17: ; preds = %17, %14
%18 = load volatile i32, i32* inttoptr (i64 1155531800 to i32*)
%19 = and i32 %18, 3
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %17
21: ; preds = %17
%22 = load volatile i32, i32* inttoptr (i64 1155531956 to i32*)
%23 = or i32 %22, 2
store volatile i32 %23, i32* inttoptr (i64 1155531956 to i32*)
br label %24
24: ; preds = %24, %21
%25 = load volatile i32, i32* inttoptr (i64 1155531956 to i32*)
%26 = and i32 %25, 3
%27 = icmp eq i32 %26, 2
br i1 %27, label %28, label %24
28: ; preds = %24, %28
%29 = load volatile i32, i32* inttoptr (i64 1155531780 to i32*)
%30 = and i32 %29, 196608
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %28
32: ; preds = %28, %32
%33 = load volatile i32, i32* inttoptr (i64 1155531800 to i32*)
%34 = and i32 %33, 8
%35 = icmp eq i32 %34, 0
br i1 %35, label %32, label %36
36: ; preds = %32, %36
%37 = load volatile i32, i32* inttoptr (i64 1155531788 to i32*)
%38 = and i32 %37, 196608
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %36
40: ; preds = %36, %40
%41 = load volatile i32, i32* inttoptr (i64 1155531776 to i32*)
%42 = and i32 %41, 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %40, label %44
44: ; preds = %40, %44
%45 = load volatile i32, i32* inttoptr (i64 1155531980 to i32*)
%46 = and i32 %45, 4
%47 = icmp eq i32 %46, 0
br i1 %47, label %44, label %48
48: ; preds = %44, %48
%49 = load volatile i32, i32* inttoptr (i64 1155531776 to i32*)
%50 = and i32 %49, 4096
%51 = icmp eq i32 %50, 0
br i1 %51, label %48, label %52
52: ; preds = %48, %52
%53 = load volatile i32, i32* inttoptr (i64 1155531956 to i32*)
%54 = and i32 %53, 196608
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %52
56: ; preds = %52
ret void
}