#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 */

/* Variables and functions */
int /*<<< orphan*/ HD_RW(int /*<<< orphan*/, int, int, unsigned char *);
int /*<<< orphan*/ get_num_digits(unsigned long);
int /*<<< orphan*/ itoa(unsigned long, char *);
int /*<<< orphan*/ print(char *);
int /*<<< orphan*/ setup_DPT();
void verify_DPT(void) {
  extern unsigned int *hd0;
  unsigned char sect[512];
  unsigned i = 0;
  unsigned int *q = (unsigned int *)(hd0);
  HD_RW(0, 0x20, 1, sect);
  if ((sect[0x1fe] == 0x55) && (sect[0x1ff] == 0xaa) &&
      (sect[0x1be + 0x04] == 0x2e) && (sect[0x1ce + 0x04] == 0x2f)) {
    unsigned char *p = &sect[0x1be];
    char *s;
    print("   | Bootable | Type      | Start Sector | Capacity \n");
    for (i = 0; i < 4; i++) {
      char tmp[get_num_digits(i) + 1];
      itoa(i, tmp);
      print(tmp);
      if (p[0x04] == 0x00) {
        print("  | Empty\n");
        p += 16;
        q += 2;
        continue;
      }
      if (p[0x00] == 0x80)
        s = "  | Yes      ";
      else
        s = "  | No       ";
      print(s);
      if (p[0x04] == 0x2e) {
        print("| TALOS FS ");
      } else if (p[0x04] == 0x2f) {
        print("| TALOS SW ");
      } else {
        print("| Unknown   ");
      }
      *q++ = *(unsigned long *)&p[0x08];
      print(" | ");
      char starting_sector_number[get_num_digits(*(unsigned long *)&p[0x08]) +
                                  1];
      itoa(*(unsigned long *)&p[0x08], starting_sector_number);
      print(starting_sector_number);
      *q++ = *(unsigned long *)&p[0x0c];
      print("            | ");
      char capacity[get_num_digits(*(unsigned long *)&p[0x0c]) + 1];
      itoa((*(unsigned long *)&p[0x0c] * 512) >> 20, capacity);
      print(capacity);
      print("MB");
      print("\n");
      p += 16;
    }
  } else {
    print("Boot or swap partitions not found on HD0\n");
    print("Creating partition on HD0 automaticly\n");
    setup_DPT();
    verify_DPT();
  }
}


x86 assembly (clang, -O0):
<verify_DPT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x260,%rsp
movl   $0x0,-0x204(%rbp)
mov    0x2e64(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x210(%rbp)
lea    -0x200(%rbp),%rcx
xor    %edi,%edi
mov    $0x20,%esi
mov    $0x1,%edx
call   1050 <HD_RW@plt>
movzbl -0x2(%rbp),%eax
cmp    $0x55,%eax
jne    14c8 <verify_DPT+0x368>
movzbl -0x1(%rbp),%eax
cmp    $0xaa,%eax
jne    14c8 <verify_DPT+0x368>
movzbl -0x3e(%rbp),%eax
cmp    $0x2e,%eax
jne    14c8 <verify_DPT+0x368>
movzbl -0x2e(%rbp),%eax
cmp    $0x2f,%eax
jne    14c8 <verify_DPT+0x368>
lea    -0x200(%rbp),%rax
add    $0x1be,%rax
mov    %rax,-0x218(%rbp)
lea    0xe11(%rip),%rdi
call   1040 <print@plt>
movl   $0x0,-0x204(%rbp)
cmpl   $0x4,-0x204(%rbp)
jae    14c3 <verify_DPT+0x363>
mov    -0x204(%rbp),%eax
mov    %eax,%edi
call   1070 <get_num_digits@plt>
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x228(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x250(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x230(%rbp)
mov    -0x204(%rbp),%eax
mov    %eax,%edi
call   1080 <itoa@plt>
mov    -0x250(%rbp),%rdi
call   1040 <print@plt>
mov    -0x218(%rbp),%rax
movzbl 0x4(%rax),%eax
cmp    $0x0,%eax
jne    12b3 <verify_DPT+0x153>
lea    0xdbb(%rip),%rdi
call   1040 <print@plt>
mov    -0x218(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x218(%rbp)
mov    -0x210(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x210(%rbp)
movl   $0x4,-0x234(%rbp)
jmp    1488 <verify_DPT+0x328>
mov    -0x218(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x80,%eax
jne    12db <verify_DPT+0x17b>
lea    0xd72(%rip),%rax
mov    %rax,-0x220(%rbp)
jmp    12e9 <verify_DPT+0x189>
lea    0xd6d(%rip),%rax
mov    %rax,-0x220(%rbp)
mov    -0x220(%rbp),%rdi
call   1040 <print@plt>
mov    -0x218(%rbp),%rax
movzbl 0x4(%rax),%eax
cmp    $0x2e,%eax
jne    131a <verify_DPT+0x1ba>
lea    0xd4d(%rip),%rdi
call   1040 <print@plt>
jmp    1350 <verify_DPT+0x1f0>
mov    -0x218(%rbp),%rax
movzbl 0x4(%rax),%eax
cmp    $0x2f,%eax
jne    133f <verify_DPT+0x1df>
lea    0xd34(%rip),%rdi
call   1040 <print@plt>
jmp    134b <verify_DPT+0x1eb>
lea    0xd2f(%rip),%rdi
call   1040 <print@plt>
jmp    1350 <verify_DPT+0x1f0>
mov    -0x218(%rbp),%rax
mov    0x8(%rax),%ecx
mov    -0x210(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x210(%rbp)
mov    %ecx,(%rax)
lea    0xd15(%rip),%rdi
call   1040 <print@plt>
mov    -0x218(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <get_num_digits@plt>
add    $0x1,%eax
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x260(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x240(%rbp)
mov    -0x218(%rbp),%rax
mov    0x8(%rax),%rdi
call   1080 <itoa@plt>
mov    -0x260(%rbp),%rdi
call   1040 <print@plt>
mov    -0x218(%rbp),%rax
mov    0xc(%rax),%ecx
mov    -0x210(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x210(%rbp)
mov    %ecx,(%rax)
lea    0xc8c(%rip),%rdi
call   1040 <print@plt>
mov    -0x218(%rbp),%rax
mov    0xc(%rax),%rdi
call   1070 <get_num_digits@plt>
add    $0x1,%eax
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x258(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x248(%rbp)
mov    -0x218(%rbp),%rax
mov    0xc(%rax),%rdi
shl    $0x9,%rdi
shr    $0x14,%rdi
call   1080 <itoa@plt>
mov    -0x258(%rbp),%rdi
call   1040 <print@plt>
lea    0xc36(%rip),%rdi
call   1040 <print@plt>
lea    0xbcd(%rip),%rdi
call   1040 <print@plt>
mov    -0x218(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x218(%rbp)
movl   $0x0,-0x234(%rbp)
mov    -0x228(%rbp),%rax
mov    %rax,%rsp
mov    -0x234(%rbp),%eax
test   %eax,%eax
je     14aa <verify_DPT+0x34a>
jmp    14a5 <verify_DPT+0x345>
jmp    14af <verify_DPT+0x34f>
jmp    14af <verify_DPT+0x34f>
mov    -0x204(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x204(%rbp)
jmp    11fe <verify_DPT+0x9e>
jmp    14ec <verify_DPT+0x38c>
lea    0xbc5(%rip),%rdi
call   1040 <print@plt>
lea    0xbe3(%rip),%rdi
call   1040 <print@plt>
mov    $0x0,%al
call   1030 <setup_DPT@plt>
call   1060 <verify_DPT@plt>
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verify_DPT>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    0x2e65(%rip),%rax
mov    (%rax),%r14
lea    -0x230(%rbp),%rcx
xor    %edi,%edi
mov    $0x20,%esi
mov    $0x1,%edx
call   1050 <HD_RW@plt>
cmpb   $0x55,-0x32(%rbp)
jne    1338 <verify_DPT+0x1d8>
cmpb   $0xaa,-0x31(%rbp)
jne    1338 <verify_DPT+0x1d8>
cmpb   $0x2e,-0x6e(%rbp)
jne    1338 <verify_DPT+0x1d8>
cmpb   $0x2f,-0x5e(%rbp)
jne    1338 <verify_DPT+0x1d8>
lea    0xe3b(%rip),%rdi
call   1040 <print@plt>
lea    -0x66(%rbp),%r15
xor    %r13d,%r13d
jmp    11fa <verify_DPT+0x9a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1040 <print@plt>
mov    %r12,%rsp
add    $0x1,%r13
add    $0x10,%r15
cmp    $0x4,%r13
je     135c <verify_DPT+0x1fc>
mov    %r13,%rdi
call   1070 <get_num_digits@plt>
mov    %rsp,%r12
add    $0x1,%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %r13,%rdi
mov    %rbx,%rsi
call   1080 <itoa@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
cmpb   $0x0,-0x8(%r15)
lea    0xdfe(%rip),%rdi
je     11e0 <verify_DPT+0x80>
mov    %r13,%rbx
add    %r13,%rbx
cmpb   $0x80,-0xc(%r15)
lea    0xe03(%rip),%rdi
lea    0xdee(%rip),%rax
cmove  %rax,%rdi
call   1040 <print@plt>
movzbl -0x8(%r15),%eax
cmp    $0x2f,%al
lea    0xe0b(%rip),%rdi
lea    0xdf8(%rip),%rcx
cmove  %rcx,%rdi
cmp    $0x2e,%al
lea    0xddf(%rip),%rax
cmove  %rax,%rdi
call   1040 <print@plt>
mov    -0x4(%r15),%eax
mov    %eax,(%r14,%rbx,4)
lea    0xdf7(%rip),%rdi
call   1040 <print@plt>
mov    -0x4(%r15),%rdi
call   1070 <get_num_digits@plt>
add    $0x1,%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    -0x4(%r15),%rdi
mov    %rbx,%rsi
call   1080 <itoa@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
mov    (%r15),%eax
mov    %eax,0x4(%r14,%r13,8)
lea    0xda7(%rip),%rdi
call   1040 <print@plt>
mov    (%r15),%rdi
call   1070 <get_num_digits@plt>
add    $0x1,%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    (%r15),%rdi
shr    $0xb,%rdi
movabs $0xfffffffffff,%rax
and    %rax,%rdi
mov    %rbx,%rsi
call   1080 <itoa@plt>
mov    %rbx,%rdi
call   1040 <print@plt>
lea    0xd6a(%rip),%rdi
call   1040 <print@plt>
lea    0xd01(%rip),%rdi
jmp    11e0 <verify_DPT+0x80>
lea    0xd55(%rip),%rdi
call   1040 <print@plt>
lea    0xd73(%rip),%rdi
call   1040 <print@plt>
xor    %eax,%eax
call   1030 <setup_DPT@plt>
call   1060 <verify_DPT@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@hd0 = external global i32*
@.str = [54 x i8] c" | Bootable | Type | Start Sector | Capacity \0A\00"
@.str.1 = [11 x i8] c" | Empty\0A\00"
@.str.2 = [14 x i8] c" | Yes \00"
@.str.3 = [14 x i8] c" | No \00"
@.str.4 = [12 x i8] c"| TALOS FS \00"
@.str.5 = [12 x i8] c"| TALOS SW \00"
@.str.6 = [13 x i8] c"| Unknown \00"
@.str.7 = [4 x i8] c" | \00"
@.str.8 = [15 x i8] c" | \00"
@.str.9 = [3 x i8] c"MB\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [42 x i8] c"Boot or swap partitions not found on HD0\0A\00"
@.str.12 = [39 x i8] c"Creating partition on HD0 automaticly\0A\00"
define void @verify_DPT() {
%1 = alloca [512 x i8]
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i64
%10 = alloca i64
store i32 0, i32* %2
%11 = load i32*, i32** @hd0
store i32* %11, i32** %3
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%13 = call i32 @HD_RW(i32 0, i32 32, i32 1, i8* %12)
%14 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 510
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = icmp eq i32 %16, 85
br i1 %17, label %18, label %150
18: ; preds = %0
%19 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 511
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
%22 = icmp eq i32 %21, 170
br i1 %22, label %23, label %150
23: ; preds = %18
%24 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 450
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = icmp eq i32 %26, 46
br i1 %27, label %28, label %150
28: ; preds = %23
%29 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 466
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = icmp eq i32 %31, 47
br i1 %32, label %33, label %150
33: ; preds = %28
%34 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 446
store i8* %34, i8** %4
%35 = call i32 @print(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %36
36: ; preds = %146, %33
%37 = load i32, i32* %2
%38 = icmp ult i32 %37, 4
br i1 %38, label %39, label %149
39: ; preds = %36
%40 = load i32, i32* %2
%41 = zext i32 %40 to i64
%42 = call i32 @get_num_digits(i64 %41)
%43 = add nsw i32 %42, 1
%44 = zext i32 %43 to i64
%45 = call i8* @llvm.stacksave()
store i8* %45, i8** %6
%46 = alloca i8, i64 %44
store i64 %44, i64* %7
%47 = load i32, i32* %2
%48 = zext i32 %47 to i64
%49 = call i32 @itoa(i64 %48, i8* %46)
%50 = call i32 @print(i8* %46)
%51 = load i8*, i8** %4
%52 = getelementptr inbounds i8, i8* %51, i64 4
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %39
%57 = call i32 @print(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%58 = load i8*, i8** %4
%59 = getelementptr inbounds i8, i8* %58, i64 16
store i8* %59, i8** %4
%60 = load i32*, i32** %3
%61 = getelementptr inbounds i32, i32* %60, i64 2
store i32* %61, i32** %3
store i32 4, i32* %8
br label %142
62: ; preds = %39
%63 = load i8*, i8** %4
%64 = getelementptr inbounds i8, i8* %63, i64 0
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = icmp eq i32 %66, 128
br i1 %67, label %68, label %69
68: ; preds = %62
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8** %5
br label %70
69: ; preds = %62
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8** %5
br label %70
70: ; preds = %69, %68
%71 = load i8*, i8** %5
%72 = call i32 @print(i8* %71)
%73 = load i8*, i8** %4
%74 = getelementptr inbounds i8, i8* %73, i64 4
%75 = load i8, i8* %74
%76 = zext i8 %75 to i32
%77 = icmp eq i32 %76, 46
br i1 %77, label %78, label %80
78: ; preds = %70
%79 = call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
br label %91
80: ; preds = %70
%81 = load i8*, i8** %4
%82 = getelementptr inbounds i8, i8* %81, i64 4
%83 = load i8, i8* %82
%84 = zext i8 %83 to i32
%85 = icmp eq i32 %84, 47
br i1 %85, label %86, label %88
86: ; preds = %80
%87 = call i32 @print(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %90
88: ; preds = %80
%89 = call i32 @print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
br label %90
90: ; preds = %88, %86
br label %91
91: ; preds = %90, %78
%92 = load i8*, i8** %4
%93 = getelementptr inbounds i8, i8* %92, i64 8
%94 = bitcast i8* %93 to i64*
%95 = load i64, i64* %94
%96 = trunc i64 %95 to i32
%97 = load i32*, i32** %3
%98 = getelementptr inbounds i32, i32* %97, i32 1
store i32* %98, i32** %3
store i32 %96, i32* %97
%99 = call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%100 = load i8*, i8** %4
%101 = getelementptr inbounds i8, i8* %100, i64 8
%102 = bitcast i8* %101 to i64*
%103 = load i64, i64* %102
%104 = call i32 @get_num_digits(i64 %103)
%105 = add nsw i32 %104, 1
%106 = zext i32 %105 to i64
%107 = alloca i8, i64 %106
store i64 %106, i64* %9
%108 = load i8*, i8** %4
%109 = getelementptr inbounds i8, i8* %108, i64 8
%110 = bitcast i8* %109 to i64*
%111 = load i64, i64* %110
%112 = call i32 @itoa(i64 %111, i8* %107)
%113 = call i32 @print(i8* %107)
%114 = load i8*, i8** %4
%115 = getelementptr inbounds i8, i8* %114, i64 12
%116 = bitcast i8* %115 to i64*
%117 = load i64, i64* %116
%118 = trunc i64 %117 to i32
%119 = load i32*, i32** %3
%120 = getelementptr inbounds i32, i32* %119, i32 1
store i32* %120, i32** %3
store i32 %118, i32* %119
%121 = call i32 @print(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%122 = load i8*, i8** %4
%123 = getelementptr inbounds i8, i8* %122, i64 12
%124 = bitcast i8* %123 to i64*
%125 = load i64, i64* %124
%126 = call i32 @get_num_digits(i64 %125)
%127 = add nsw i32 %126, 1
%128 = zext i32 %127 to i64
%129 = alloca i8, i64 %128
store i64 %128, i64* %10
%130 = load i8*, i8** %4
%131 = getelementptr inbounds i8, i8* %130, i64 12
%132 = bitcast i8* %131 to i64*
%133 = load i64, i64* %132
%134 = mul i64 %133, 512
%135 = lshr i64 %134, 20
%136 = call i32 @itoa(i64 %135, i8* %129)
%137 = call i32 @print(i8* %129)
%138 = call i32 @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%139 = call i32 @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%140 = load i8*, i8** %4
%141 = getelementptr inbounds i8, i8* %140, i64 16
store i8* %141, i8** %4
store i32 0, i32* %8
br label %142
142: ; preds = %91, %56
%143 = load i8*, i8** %6
%144 = load i32, i32* %8
switch i32 %144, label %155 [
i32 0, label %145
i32 4, label %146
]
145: ; preds = %142
br label %146
146: ; preds = %145, %142
%147 = load i32, i32* %2
%148 = add i32 %147, 1
store i32 %148, i32* %2
br label %36
149: ; preds = %36
br label %154
150: ; preds = %28, %23, %18, %0
%151 = call i32 @print(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0))
%152 = call i32 @print(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0))
%153 = call i32 (...) @setup_DPT()
br label %154
154: ; preds = %150, %149
ret void
155: ; preds = %142
unreachable
}

LLVM IR (-O2):
@hd0 = external global i32*
@.str = [54 x i8] c" | Bootable | Type | Start Sector | Capacity \0A\00"
@.str.1 = [11 x i8] c" | Empty\0A\00"
@.str.2 = [14 x i8] c" | Yes \00"
@.str.3 = [14 x i8] c" | No \00"
@.str.4 = [12 x i8] c"| TALOS FS \00"
@.str.5 = [12 x i8] c"| TALOS SW \00"
@.str.6 = [13 x i8] c"| Unknown \00"
@.str.7 = [4 x i8] c" | \00"
@.str.8 = [15 x i8] c" | \00"
@.str.9 = [3 x i8] c"MB\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [42 x i8] c"Boot or swap partitions not found on HD0\0A\00"
@.str.12 = [39 x i8] c"Creating partition on HD0 automaticly\0A\00"
define void @verify_DPT() {
%1 = alloca [512 x i8]
%2 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%3 = load i32*, i32** @hd0
%4 = call i32 @HD_RW(i32 0, i32 32, i32 1, i8* %2)
%5 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 510
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 85
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 511
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, -86
%11 = select i1 %7, i1 %10, i1 false
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 450
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 46
%15 = select i1 %11, i1 %14, i1 false
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 466
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 47
%19 = select i1 %15, i1 %18, i1 false
br i1 %19, label %20, label %85
20: ; preds = %0
%21 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 446
%22 = call i32 @print(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
br label %23
23: ; preds = %20, %78
%24 = phi i64 [ 0, %20 ], [ %83, %78 ]
%25 = phi i32* [ %3, %20 ], [ %81, %78 ]
%26 = phi i8* [ %21, %20 ], [ %82, %78 ]
%27 = call i32 @get_num_digits(i64 %24)
%28 = add nsw i32 %27, 1
%29 = zext i32 %28 to i64
%30 = call i8* @llvm.stacksave()
%31 = alloca i8, i64 %29
%32 = call i32 @itoa(i64 %24, i8* %31)
%33 = call i32 @print(i8* %31)
%34 = getelementptr inbounds i8, i8* %26, i64 4
%35 = load i8, i8* %34
%36 = icmp eq i8 %35, 0
br i1 %36, label %78, label %37
37: ; preds = %23
%38 = load i8, i8* %26
%39 = icmp eq i8 %38, -128
%40 = select i1 %39, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0)
%41 = call i32 @print(i8* %40)
%42 = load i8, i8* %34
%43 = icmp eq i8 %42, 47
%44 = select i1 %43, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0)
%45 = icmp eq i8 %42, 46
%46 = select i1 %45, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* %44
%47 = call i32 @print(i8* %46)
%48 = getelementptr inbounds i8, i8* %26, i64 8
%49 = bitcast i8* %48 to i64*
%50 = load i64, i64* %49
%51 = trunc i64 %50 to i32
%52 = getelementptr inbounds i32, i32* %25, i64 1
store i32 %51, i32* %25
%53 = call i32 @print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%54 = load i64, i64* %49
%55 = call i32 @get_num_digits(i64 %54)
%56 = add nsw i32 %55, 1
%57 = zext i32 %56 to i64
%58 = alloca i8, i64 %57
%59 = load i64, i64* %49
%60 = call i32 @itoa(i64 %59, i8* %58)
%61 = call i32 @print(i8* %58)
%62 = getelementptr inbounds i8, i8* %26, i64 12
%63 = bitcast i8* %62 to i64*
%64 = load i64, i64* %63
%65 = trunc i64 %64 to i32
store i32 %65, i32* %52
%66 = call i32 @print(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%67 = load i64, i64* %63
%68 = call i32 @get_num_digits(i64 %67)
%69 = add nsw i32 %68, 1
%70 = zext i32 %69 to i64
%71 = alloca i8, i64 %70
%72 = load i64, i64* %63
%73 = lshr i64 %72, 11
%74 = and i64 %73, 17592186044415
%75 = call i32 @itoa(i64 %74, i8* %71)
%76 = call i32 @print(i8* %71)
%77 = call i32 @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
br label %78
78: ; preds = %23, %37
%79 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), %37 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), %23 ]
%80 = call i32 @print(i8* %79)
%81 = getelementptr inbounds i32, i32* %25, i64 2
%82 = getelementptr inbounds i8, i8* %26, i64 16
%83 = add nuw nsw i64 %24, 1
%84 = icmp eq i64 %83, 4
br i1 %84, label %89, label %23
85: ; preds = %0
%86 = call i32 @print(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0))
%87 = call i32 @print(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0))
%88 = call i32 (...) @setup_DPT()
br label %89
89: ; preds = %78, %85
ret void
}