void mmu_dump_sections(unsigned int vaddr, unsigned int entry) {
  int ns;
  int ss;
  int ng;
  int s;
  int ap1;
  int ap2;
  int domain;
  int xn;
  int pr;
  int pw;
  int ur;
  int uw;
  unsigned int paddr;
  unsigned int i;
  unsigned int test;
  unsigned int *tbl;
  unsigned int tblentry;
  if ((entry & 0x3) == 2) {
    ns = entry & 0x80000;
    ss = entry & 0x40000;
    ng = entry & 0x20000;
    s = entry & 0x10000;
    ap2 = entry & 0x8000;
    ap1 = (entry >> 10) & 3;
    domain = (entry >> 5) & 15;
    xn = entry & 0x10;
    mmu_get_perms(ap2, ap1, &ur, &uw, &pr, &pw);
    paddr = ss ? entry & 0xFF000000 : entry & 0xFFF00000;
    printf("[0x%08X] %s PA:0x%08X NG:%d SH:%d UR:%d UW:%d PR:%d PW:%d XN:%d "
           "NS:%d DOM:%02X\n",
           vaddr, ss ? "S-Section " : "Section   ", paddr, !!ng, !!s, !!ur,
           !!uw, !!pr, !!pw, !!xn, !!ns, domain);
  } else if ((entry & 0x3) == 1) {
    domain = (entry >> 5) & 15;
    ns = entry & 8;
    paddr = entry & 0xFFFFFC00;
    tbl = (unsigned int *)pa2va(paddr);
    printf("[0x%08X] %s PA:0x%08X VA:0x%08X NS:%d DOM:%02X\n", vaddr,
           "Page TBL  ", paddr, tbl, !!ns, domain);
    for (i = 0; i < 0x100; i++) {
      mmu_dump_pages(vaddr + (i << 12), tbl[i]);
    }
  } else if ((entry & 0x3) == 0) {
    printf("[0x%08X] %s\n", vaddr, "Unmapped  ");
  } else {
    printf("[0x%08X] %s\n", vaddr, "Invalid   ");
  }
}


x86 assembly (clang, -O0):
<mmu_dump_sections>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x90,%rsp
mov    %edi,-0x24(%rbp)
mov    %esi,-0x28(%rbp)
mov    -0x28(%rbp),%eax
and    $0x3,%eax
cmp    $0x2,%eax
jne    12e2 <mmu_dump_sections+0x1a2>
mov    -0x28(%rbp),%eax
and    $0x80000,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
and    $0x40000,%eax
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%eax
and    $0x20000,%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%eax
and    $0x10000,%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
and    $0x8000,%eax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%eax
shr    $0xa,%eax
and    $0x3,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%eax
shr    $0x5,%eax
and    $0xf,%eax
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%eax
and    $0x10,%eax
mov    %eax,-0x48(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%esi
lea    -0x54(%rbp),%rdx
lea    -0x58(%rbp),%rcx
lea    -0x4c(%rbp),%r8
lea    -0x50(%rbp),%r9
mov    $0x0,%al
call   1040 <mmu_get_perms@plt>
cmpl   $0x0,-0x30(%rbp)
je     11f6 <mmu_dump_sections+0xb6>
mov    -0x28(%rbp),%eax
and    $0xff000000,%eax
mov    %eax,-0x78(%rbp)
jmp    1201 <mmu_dump_sections+0xc1>
mov    -0x28(%rbp),%eax
and    $0xfff00000,%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x30(%rbp),%ecx
lea    0xe47(%rip),%rdx
lea    0xe35(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x5c(%rbp),%ecx
cmpl   $0x0,-0x34(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r8d
cmpl   $0x0,-0x38(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r9d
cmpl   $0x0,-0x54(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r12d
cmpl   $0x0,-0x58(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r15d
cmpl   $0x0,-0x4c(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r14d
cmpl   $0x0,-0x50(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%ebx
cmpl   $0x0,-0x48(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r11d
cmpl   $0x0,-0x2c(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r10d
mov    -0x44(%rbp),%eax
lea    0xd4a(%rip),%rdi
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13e8 <mmu_dump_sections+0x2a8>
mov    -0x28(%rbp),%eax
and    $0x3,%eax
cmp    $0x1,%eax
jne    139a <mmu_dump_sections+0x25a>
mov    -0x28(%rbp),%eax
shr    $0x5,%eax
and    $0xf,%eax
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%eax
and    $0x8,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
and    $0xfffffc00,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%edi
mov    $0x0,%al
call   1060 <pa2va@plt>
cltq
mov    %rax,-0x70(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x5c(%rbp),%ecx
mov    -0x70(%rbp),%r8
cmpl   $0x0,-0x2c(%rbp)
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r9d
mov    -0x44(%rbp),%eax
lea    0xd20(%rip),%rdi
lea    0xd49(%rip),%rdx
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x60(%rbp)
cmpl   $0x100,-0x60(%rbp)
jae    1395 <mmu_dump_sections+0x255>
mov    -0x24(%rbp),%edi
mov    -0x60(%rbp),%eax
shl    $0xc,%eax
add    %eax,%edi
mov    -0x70(%rbp),%rax
mov    -0x60(%rbp),%ecx
mov    (%rax,%rcx,4),%esi
mov    $0x0,%al
call   1050 <mmu_dump_pages@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    135e <mmu_dump_sections+0x21e>
jmp    13e3 <mmu_dump_sections+0x2a3>
mov    -0x28(%rbp),%eax
and    $0x3,%eax
cmp    $0x0,%eax
jne    13c6 <mmu_dump_sections+0x286>
mov    -0x24(%rbp),%esi
lea    0xcee(%rip),%rdi
lea    0xcf4(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13de <mmu_dump_sections+0x29e>
mov    -0x24(%rbp),%esi
lea    0xcd1(%rip),%rdi
lea    0xce2(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13e3 <mmu_dump_sections+0x2a3>
jmp    13e8 <mmu_dump_sections+0x2a8>
add    $0x90,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<mmu_dump_sections>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edi,%ebx
mov    %esi,%eax
and    $0x3,%eax
je     1252 <mmu_dump_sections+0x112>
mov    %esi,%r14d
cmp    $0x1,%eax
je     1265 <mmu_dump_sections+0x125>
cmp    $0x2,%eax
jne    12ef <mmu_dump_sections+0x1af>
mov    %r14d,%edi
and    $0x8000,%edi
mov    %r14d,%esi
shr    $0xa,%esi
and    $0x3,%esi
mov    %r14d,%r15d
shr    $0x5,%r15d
and    $0xf,%r15d
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x10(%rsp),%r9
xor    %eax,%eax
call   1040 <mmu_get_perms@plt>
test   $0x40000,%r14d
mov    $0xfff00000,%eax
mov    $0xff000000,%ecx
cmove  %eax,%ecx
lea    0xe98(%rip),%rax
lea    0xe86(%rip),%rdx
cmove  %rax,%rdx
and    %r14d,%ecx
mov    %r14d,%r8d
shr    $0x11,%r8d
and    $0x1,%r8d
mov    %r14d,%r9d
shr    $0x10,%r9d
and    $0x1,%r9d
xor    %r10d,%r10d
cmpl   $0x0,0xc(%rsp)
setne  %r10b
xor    %r11d,%r11d
cmpl   $0x0,0x8(%rsp)
setne  %r11b
xor    %r12d,%r12d
cmpl   $0x0,0x14(%rsp)
setne  %r12b
xor    %r13d,%r13d
cmpl   $0x0,0x10(%rsp)
setne  %r13b
mov    %r14d,%ebp
shr    $0x4,%ebp
and    $0x1,%ebp
shr    $0x13,%r14d
and    $0x1,%r14d
sub    $0x8,%rsp
lea    0xdcd(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
push   %r15
push   %r14
push   %rbp
push   %r13
push   %r12
push   %r11
push   %r10
call   1030 <printf@plt>
add    $0x40,%rsp
jmp    12e0 <mmu_dump_sections+0x1a0>
lea    0xe48(%rip),%rdi
lea    0xe4e(%rip),%rdx
jmp    12fd <mmu_dump_sections+0x1bd>
mov    %r14d,%ebp
shr    $0x5,%ebp
and    $0xf,%ebp
mov    %r14d,%r12d
and    $0xfffffc00,%r12d
mov    %r12d,%edi
xor    %eax,%eax
call   1060 <pa2va@plt>
movslq %eax,%r15
shr    $0x3,%r14d
and    $0x1,%r14d
sub    $0x8,%rsp
lea    0xdce(%rip),%rdi
lea    0xdf7(%rip),%rdx
mov    %ebx,%esi
mov    %r12d,%ecx
mov    %r15,%r8
mov    %r14d,%r9d
xor    %eax,%eax
push   %rbp
call   1030 <printf@plt>
add    $0x10,%rsp
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbp,4),%esi
mov    %ebx,%edi
xor    %eax,%eax
call   1050 <mmu_dump_pages@plt>
add    $0x1,%rbp
add    $0x1000,%ebx
cmp    $0x100,%rbp
jne    12c0 <mmu_dump_sections+0x180>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xdab(%rip),%rdi
lea    0xdbc(%rip),%rdx
mov    %ebx,%esi
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [80 x i8] c"[0x%08X] %s PA:0x%08X NG:%d SH:%d UR:%d UW:%d PR:%d PW:%d XN:%d NS:%d DOM:%02X\0A\00"
@.str.1 = [11 x i8] c"S-Section \00"
@.str.2 = [11 x i8] c"Section \00"
@.str.3 = [48 x i8] c"[0x%08X] %s PA:0x%08X VA:0x%08X NS:%d DOM:%02X\0A\00"
@.str.4 = [11 x i8] c"Page TBL \00"
@.str.5 = [13 x i8] c"[0x%08X] %s\0A\00"
@.str.6 = [11 x i8] c"Unmapped \00"
@.str.7 = [11 x i8] c"Invalid \00"
define void @mmu_dump_sections(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32*
%21 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%22 = load i32, i32* %4
%23 = and i32 %22, 3
%24 = icmp eq i32 %23, 2
br i1 %24, label %25, label %105
25: ; preds = %2
%26 = load i32, i32* %4
%27 = and i32 %26, 524288
store i32 %27, i32* %5
%28 = load i32, i32* %4
%29 = and i32 %28, 262144
store i32 %29, i32* %6
%30 = load i32, i32* %4
%31 = and i32 %30, 131072
store i32 %31, i32* %7
%32 = load i32, i32* %4
%33 = and i32 %32, 65536
store i32 %33, i32* %8
%34 = load i32, i32* %4
%35 = and i32 %34, 32768
store i32 %35, i32* %10
%36 = load i32, i32* %4
%37 = lshr i32 %36, 10
%38 = and i32 %37, 3
store i32 %38, i32* %9
%39 = load i32, i32* %4
%40 = lshr i32 %39, 5
%41 = and i32 %40, 15
store i32 %41, i32* %11
%42 = load i32, i32* %4
%43 = and i32 %42, 16
store i32 %43, i32* %12
%44 = load i32, i32* %10
%45 = load i32, i32* %9
%46 = call i32 (i32, i32, i32*, i32*, i32*, i32*, ...) bitcast (i32 (...)* @mmu_get_perms to i32 (i32, i32, i32*, i32*, i32*, i32*, ...)*)(i32 %44, i32 %45, i32* %15, i32* %16, i32* %13, i32* %14)
%47 = load i32, i32* %6
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %25
%50 = load i32, i32* %4
%51 = and i32 %50, -16777216
br label %55
52: ; preds = %25
%53 = load i32, i32* %4
%54 = and i32 %53, -1048576
br label %55
55: ; preds = %52, %49
%56 = phi i32 [ %51, %49 ], [ %54, %52 ]
store i32 %56, i32* %17
%57 = load i32, i32* %3
%58 = load i32, i32* %6
%59 = icmp ne i32 %58, 0
%60 = zext i1 %59 to i64
%61 = select i1 %59, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0)
%62 = load i32, i32* %17
%63 = load i32, i32* %7
%64 = icmp ne i32 %63, 0
%65 = xor i1 %64, true
%66 = xor i1 %65, true
%67 = zext i1 %66 to i32
%68 = load i32, i32* %8
%69 = icmp ne i32 %68, 0
%70 = xor i1 %69, true
%71 = xor i1 %70, true
%72 = zext i1 %71 to i32
%73 = load i32, i32* %15
%74 = icmp ne i32 %73, 0
%75 = xor i1 %74, true
%76 = xor i1 %75, true
%77 = zext i1 %76 to i32
%78 = load i32, i32* %16
%79 = icmp ne i32 %78, 0
%80 = xor i1 %79, true
%81 = xor i1 %80, true
%82 = zext i1 %81 to i32
%83 = load i32, i32* %13
%84 = icmp ne i32 %83, 0
%85 = xor i1 %84, true
%86 = xor i1 %85, true
%87 = zext i1 %86 to i32
%88 = load i32, i32* %14
%89 = icmp ne i32 %88, 0
%90 = xor i1 %89, true
%91 = xor i1 %90, true
%92 = zext i1 %91 to i32
%93 = load i32, i32* %12
%94 = icmp ne i32 %93, 0
%95 = xor i1 %94, true
%96 = xor i1 %95, true
%97 = zext i1 %96 to i32
%98 = load i32, i32* %5
%99 = icmp ne i32 %98, 0
%100 = xor i1 %99, true
%101 = xor i1 %100, true
%102 = zext i1 %101 to i32
%103 = load i32, i32* %11
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0), i32 %57, i8* %61, i32 %62, i32 %67, i32 %72, i32 %77, i32 %82, i32 %87, i32 %92, i32 %97, i32 %102, i32 %103)
br label %161
105: ; preds = %2
%106 = load i32, i32* %4
%107 = and i32 %106, 3
%108 = icmp eq i32 %107, 1
br i1 %108, label %109, label %149
109: ; preds = %105
%110 = load i32, i32* %4
%111 = lshr i32 %110, 5
%112 = and i32 %111, 15
store i32 %112, i32* %11
%113 = load i32, i32* %4
%114 = and i32 %113, 8
store i32 %114, i32* %5
%115 = load i32, i32* %4
%116 = and i32 %115, -1024
store i32 %116, i32* %17
%117 = load i32, i32* %17
%118 = call i32 (i32, ...) bitcast (i32 (...)* @pa2va to i32 (i32, ...)*)(i32 %117)
%119 = sext i32 %118 to i64
%120 = inttoptr i64 %119 to i32*
store i32* %120, i32** %20
%121 = load i32, i32* %3
%122 = load i32, i32* %17
%123 = load i32*, i32** %20
%124 = load i32, i32* %5
%125 = icmp ne i32 %124, 0
%126 = xor i1 %125, true
%127 = xor i1 %126, true
%128 = zext i1 %127 to i32
%129 = load i32, i32* %11
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i32 %121, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %122, i32* %123, i32 %128, i32 %129)
store i32 0, i32* %18
br label %131
131: ; preds = %145, %109
%132 = load i32, i32* %18
%133 = icmp ult i32 %132, 256
br i1 %133, label %134, label %148
134: ; preds = %131
%135 = load i32, i32* %3
%136 = load i32, i32* %18
%137 = shl i32 %136, 12
%138 = add i32 %135, %137
%139 = load i32*, i32** %20
%140 = load i32, i32* %18
%141 = zext i32 %140 to i64
%142 = getelementptr inbounds i32, i32* %139, i64 %141
%143 = load i32, i32* %142
%144 = call i32 (i32, i32, ...) bitcast (i32 (...)* @mmu_dump_pages to i32 (i32, i32, ...)*)(i32 %138, i32 %143)
br label %145
145: ; preds = %134
%146 = load i32, i32* %18
%147 = add i32 %146, 1
store i32 %147, i32* %18
br label %131
148: ; preds = %131
br label %160
149: ; preds = %105
%150 = load i32, i32* %4
%151 = and i32 %150, 3
%152 = icmp eq i32 %151, 0
br i1 %152, label %153, label %156
153: ; preds = %149
%154 = load i32, i32* %3
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %154, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %159
156: ; preds = %149
%157 = load i32, i32* %3
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %157, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %159
159: ; preds = %156, %153
br label %160
160: ; preds = %159, %148
br label %161
161: ; preds = %160, %55
ret void
}

LLVM IR (-O2):
@.str = [80 x i8] c"[0x%08X] %s PA:0x%08X NG:%d SH:%d UR:%d UW:%d PR:%d PW:%d XN:%d NS:%d DOM:%02X\0A\00"
@.str.1 = [11 x i8] c"S-Section \00"
@.str.2 = [11 x i8] c"Section \00"
@.str.3 = [48 x i8] c"[0x%08X] %s PA:0x%08X VA:0x%08X NS:%d DOM:%02X\0A\00"
@.str.4 = [11 x i8] c"Page TBL \00"
@.str.5 = [13 x i8] c"[0x%08X] %s\0A\00"
@.str.6 = [11 x i8] c"Unmapped \00"
@.str.7 = [11 x i8] c"Invalid \00"
define void @mmu_dump_sections(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = bitcast i32* %5 to i8*
%10 = bitcast i32* %6 to i8*
%11 = and i32 %1, 3
switch i32 %11, label %67 [
i32 2, label %12
i32 1, label %45
i32 0, label %65
]
12: ; preds = %2
%13 = and i32 %1, 262144
%14 = and i32 %1, 32768
%15 = lshr i32 %1, 10
%16 = and i32 %15, 3
%17 = lshr i32 %1, 5
%18 = and i32 %17, 15
%19 = call i32 (i32, i32, i32*, i32*, i32*, i32*, ...) bitcast (i32 (...)* @mmu_get_perms to i32 (i32, i32, i32*, i32*, i32*, i32*, ...)*)(i32 %14, i32 %16, i32* %5, i32* %6, i32* %3, i32* %4)
%20 = icmp eq i32 %13, 0
%21 = select i1 %20, i32 -1048576, i32 -16777216
%22 = and i32 %21, %1
%23 = select i1 %20, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0)
%24 = lshr i32 %1, 17
%25 = and i32 %24, 1
%26 = lshr i32 %1, 16
%27 = and i32 %26, 1
%28 = load i32, i32* %5
%29 = icmp ne i32 %28, 0
%30 = zext i1 %29 to i32
%31 = load i32, i32* %6
%32 = icmp ne i32 %31, 0
%33 = zext i1 %32 to i32
%34 = load i32, i32* %3
%35 = icmp ne i32 %34, 0
%36 = zext i1 %35 to i32
%37 = load i32, i32* %4
%38 = icmp ne i32 %37, 0
%39 = zext i1 %38 to i32
%40 = lshr i32 %1, 4
%41 = and i32 %40, 1
%42 = lshr i32 %1, 19
%43 = and i32 %42, 1
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0), i32 %0, i8* %23, i32 %22, i32 %25, i32 %27, i32 %30, i32 %33, i32 %36, i32 %39, i32 %41, i32 %43, i32 %18)
br label %69
45: ; preds = %2
%46 = lshr i32 %1, 5
%47 = and i32 %46, 15
%48 = and i32 %1, -1024
%49 = tail call i32 (i32, ...) bitcast (i32 (...)* @pa2va to i32 (i32, ...)*)(i32 %48)
%50 = sext i32 %49 to i64
%51 = inttoptr i64 %50 to i32*
%52 = lshr i32 %1, 3
%53 = and i32 %52, 1
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i32 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %48, i32* %51, i32 %53, i32 %47)
br label %55
55: ; preds = %45, %55
%56 = phi i64 [ 0, %45 ], [ %63, %55 ]
%57 = trunc i64 %56 to i32
%58 = shl i32 %57, 12
%59 = add i32 %58, %0
%60 = getelementptr inbounds i32, i32* %51, i64 %56
%61 = load i32, i32* %60
%62 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @mmu_dump_pages to i32 (i32, i32, ...)*)(i32 %59, i32 %61)
%63 = add nuw nsw i64 %56, 1
%64 = icmp eq i64 %63, 256
br i1 %64, label %69, label %55
65: ; preds = %2
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %69
67: ; preds = %2
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %69
69: ; preds = %55, %67, %65, %12
ret void
}