#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 /*<<< orphan*/ pcb_str;
typedef int /*<<< orphan*/ b;

/* Variables and functions */
int /*<<< orphan*/ dStrHex(char const *, int, int);
int /*<<< orphan*/ get_pcb_str(int, char *, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ sg_get_asc_ascq_str(unsigned char, unsigned char, int, char *);
void show_ie_page(unsigned char *resp, int len, int show_pcb, int full) {
  int k, num, extra, pc, pcb;
  unsigned char *ucp;
  char pcb_str[128];
  char b[256];
  num = len - 4;
  ucp = &resp[0] + 4;
  if (num < 4) {
    printf("badly formed Informational Exceptions log page\n");
    return;
  }
  if (full)
    printf("Informational Exceptions log page\n");
  for (k = num; k > 0; k -= extra, ucp += extra) {
    if (k < 3) {
      printf("short Informational Exceptions log page\n");
      return;
    }
    extra = ucp[3] + 4;
    pc = (ucp[0] << 8) + ucp[1];
    pcb = ucp[2];
    if (0 == pc) {
      if (extra > 5) {
        if (full) {
          printf("  IE asc = 0x%x, ascq = 0x%x", ucp[4], ucp[5]);
          if (ucp[4]) {
            if (sg_get_asc_ascq_str(ucp[4], ucp[5], sizeof(b), b))
              printf("\n    [%s]", b);
          }
        }
        if (extra > 6) {
          if (ucp[6] < 0xff)
            printf("\n  Current temperature = %d C", ucp[6]);
          else
            printf("\n  Current temperature = <not available>");
          if (extra > 7) {
            if (ucp[7] < 0xff)
              printf("\n  Threshold temperature = %d C  [IBM "
                     "extension]",
                     ucp[7]);
            else
              printf("\n  Treshold temperature = <not "
                     "available>");
          }
        }
      }
    } else if (full) {
      printf("  parameter code = 0x%x, contents in hex:\n", pc);
      dStrHex((const char *)ucp, extra, 1);
    }
    if (show_pcb) {
      get_pcb_str(pcb, pcb_str, sizeof(pcb_str));
      printf("\n        <%s>\n", pcb_str);
    } else
      printf("\n");
  }
}


x86 assembly (clang, -O0):
<show_ie_page>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x4,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x30(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    118a <show_ie_page+0x4a>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13d7 <show_ie_page+0x297>
cmpl   $0x0,-0x14(%rbp)
je     11a2 <show_ie_page+0x62>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jle    13d7 <show_ie_page+0x297>
cmpl   $0x3,-0x18(%rbp)
jge    11cf <show_ie_page+0x8f>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13d7 <show_ie_page+0x297>
mov    -0x30(%rbp),%rax
movzbl 0x3(%rax),%eax
add    $0x4,%eax
mov    %eax,-0x20(%rbp)
mov    -0x30(%rbp),%rax
movzbl (%rax),%eax
shl    $0x8,%eax
mov    -0x30(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%rax
movzbl 0x2(%rax),%eax
mov    %eax,-0x28(%rbp)
xor    %eax,%eax
cmp    -0x24(%rbp),%eax
jne    133a <show_ie_page+0x1fa>
cmpl   $0x5,-0x20(%rbp)
jle    1335 <show_ie_page+0x1f5>
cmpl   $0x0,-0x14(%rbp)
je     129a <show_ie_page+0x15a>
mov    -0x30(%rbp),%rax
movzbl 0x4(%rax),%esi
mov    -0x30(%rbp),%rax
movzbl 0x5(%rax),%edx
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rax
cmpb   $0x0,0x4(%rax)
je     1295 <show_ie_page+0x155>
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%sil
mov    -0x30(%rbp),%rax
mov    0x5(%rax),%al
lea    -0x1b0(%rbp),%rcx
mov    $0x100,%edx
movzbl %sil,%edi
movzbl %al,%esi
call   1060 <sg_get_asc_ascq_str@plt>
cmp    $0x0,%rax
je     1290 <show_ie_page+0x150>
lea    -0x1b0(%rbp),%rsi
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1295 <show_ie_page+0x155>
jmp    129a <show_ie_page+0x15a>
cmpl   $0x6,-0x20(%rbp)
jle    1330 <show_ie_page+0x1f0>
mov    -0x30(%rbp),%rax
movzbl 0x6(%rax),%eax
cmp    $0xff,%eax
jge    12d2 <show_ie_page+0x192>
mov    -0x30(%rbp),%rax
movzbl 0x6(%rax),%esi
lea    0xdba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12e0 <show_ie_page+0x1a0>
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x7,-0x20(%rbp)
jle    132b <show_ie_page+0x1eb>
mov    -0x30(%rbp),%rax
movzbl 0x7(%rax),%eax
cmp    $0xff,%eax
jge    1318 <show_ie_page+0x1d8>
mov    -0x30(%rbp),%rax
movzbl 0x7(%rax),%esi
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1326 <show_ie_page+0x1e6>
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    132b <show_ie_page+0x1eb>
jmp    1330 <show_ie_page+0x1f0>
jmp    1335 <show_ie_page+0x1f5>
jmp    136b <show_ie_page+0x22b>
cmpl   $0x0,-0x14(%rbp)
je     1366 <show_ie_page+0x226>
mov    -0x24(%rbp),%esi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    $0x1,%edx
call   1030 <dStrHex@plt>
jmp    136b <show_ie_page+0x22b>
cmpl   $0x0,-0x10(%rbp)
je     13a3 <show_ie_page+0x263>
mov    -0x28(%rbp),%edi
lea    -0xb0(%rbp),%rsi
mov    $0x80,%edx
call   1050 <get_pcb_str@plt>
lea    -0xb0(%rbp),%rsi
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b1 <show_ie_page+0x271>
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <show_ie_page+0x276>
mov    -0x20(%rbp),%ecx
mov    -0x18(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x20(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
jmp    11a8 <show_ie_page+0x68>
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_ie_page>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
cmp    $0x7,%esi
jg     1193 <show_ie_page+0x33>
lea    0xfae(%rip),%rdi
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>
mov    %edx,%r14d
mov    %esi,%ebx
mov    %rdi,%rbp
test   %ecx,%ecx
mov    %ecx,0xc(%rsp)
je     11b3 <show_ie_page+0x53>
lea    0xf8e(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%ecx
add    $0xfffffffc,%ebx
add    $0x4,%rbp
jmp    11da <show_ie_page+0x7a>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%ecx
add    %r13,%rbp
sub    %r13d,%ebx
jle    1336 <show_ie_page+0x1d6>
cmp    $0x2,%ebx
jbe    132a <show_ie_page+0x1ca>
mov    %r14d,%r15d
movzbl 0x3(%rbp),%r14d
lea    0x4(%r14),%r13
movzwl 0x0(%rbp),%esi
shl    $0x10,%esi
bswap  %esi
movzbl 0x2(%rbp),%r12d
test   %esi,%esi
je     1230 <show_ie_page+0xd0>
test   %ecx,%ecx
je     12f0 <show_ie_page+0x190>
lea    0xeb9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %r13d,%esi
mov    $0x1,%edx
call   1050 <dStrHex@plt>
jmp    12f0 <show_ie_page+0x190>
nopl   0x0(%rax)
cmp    $0x2,%r14b
jb     12f0 <show_ie_page+0x190>
test   %ecx,%ecx
je     128a <show_ie_page+0x12a>
movzbl 0x4(%rbp),%esi
movzbl 0x5(%rbp),%edx
lea    0xdb3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x4(%rbp),%eax
test   %al,%al
je     128a <show_ie_page+0x12a>
movzbl 0x5(%rbp),%esi
movzbl %al,%edi
mov    $0x100,%edx
lea    0x10(%rsp),%rcx
call   1080 <sg_get_asc_ascq_str@plt>
test   %rax,%rax
je     128a <show_ie_page+0x12a>
lea    0xd9f(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x3,%r14b
jb     12f0 <show_ie_page+0x190>
movzbl 0x6(%rbp),%esi
cmp    $0xff,%esi
je     12b2 <show_ie_page+0x152>
lea    0xd84(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x4,%r14b
jae    12c6 <show_ie_page+0x166>
jmp    12f0 <show_ie_page+0x190>
lea    0xd8c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x4,%r14b
jb     12f0 <show_ie_page+0x190>
movzbl 0x7(%rbp),%esi
cmp    $0xff,%esi
je     12e2 <show_ie_page+0x182>
lea    0xd95(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    12f0 <show_ie_page+0x190>
lea    0xdb6(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15d,%r14d
test   %r15d,%r15d
je     11c0 <show_ie_page+0x60>
mov    %r12d,%edi
lea    0x110(%rsp),%r15
mov    %r15,%rsi
mov    $0x80,%edx
call   1070 <get_pcb_str@plt>
lea    0xdd9(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11ca <show_ie_page+0x6a>
lea    0xdd2(%rip),%rdi
call   1040 <puts@plt>
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [48 x i8] c"badly formed Informational Exceptions log page\0A\00"
@.str.1 = [35 x i8] c"Informational Exceptions log page\0A\00"
@.str.2 = [41 x i8] c"short Informational Exceptions log page\0A\00"
@.str.3 = [29 x i8] c" IE asc = 0x%x, ascq = 0x%x\00"
@.str.4 = [10 x i8] c"\0A [%s]\00"
@.str.5 = [30 x i8] c"\0A Current temperature = %d C\00"
@.str.6 = [41 x i8] c"\0A Current temperature = <not available>\00"
@.str.7 = [49 x i8] c"\0A Threshold temperature = %d C [IBM extension]\00"
@.str.8 = [42 x i8] c"\0A Treshold temperature = <not available>\00"
@.str.9 = [43 x i8] c" parameter code = 0x%x, contents in hex:\0A\00"
@.str.10 = [15 x i8] c"\0A <%s>\0A\00"
@.str.11 = [2 x i8] c"\0A\00"
define void @show_ie_page(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i8*
%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 i8*
%15 = alloca [128 x i8]
%16 = alloca [256 x i8]
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%17 = load i32, i32* %6
%18 = sub nsw i32 %17, 4
store i32 %18, i32* %10
%19 = load i8*, i8** %5
%20 = getelementptr inbounds i8, i8* %19, i64 0
%21 = getelementptr inbounds i8, i8* %20, i64 4
store i8* %21, i8** %14
%22 = load i32, i32* %10
%23 = icmp slt i32 %22, 4
br i1 %23, label %24, label %26
24: ; preds = %4
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
br label %166
26: ; preds = %4
%27 = load i32, i32* %8
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = load i32, i32* %10
store i32 %32, i32* %9
br label %33
33: ; preds = %158, %31
%34 = load i32, i32* %9
%35 = icmp sgt i32 %34, 0
br i1 %35, label %36, label %166
36: ; preds = %33
%37 = load i32, i32* %9
%38 = icmp slt i32 %37, 3
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
br label %166
41: ; preds = %36
%42 = load i8*, i8** %14
%43 = getelementptr inbounds i8, i8* %42, i64 3
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = add nsw i32 %45, 4
store i32 %46, i32* %11
%47 = load i8*, i8** %14
%48 = getelementptr inbounds i8, i8* %47, i64 0
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = shl i32 %50, 8
%52 = load i8*, i8** %14
%53 = getelementptr inbounds i8, i8* %52, i64 1
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = add nsw i32 %51, %55
store i32 %56, i32* %12
%57 = load i8*, i8** %14
%58 = getelementptr inbounds i8, i8* %57, i64 2
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
store i32 %60, i32* %13
%61 = load i32, i32* %12
%62 = icmp eq i32 0, %61
br i1 %62, label %63, label %136
63: ; preds = %41
%64 = load i32, i32* %11
%65 = icmp sgt i32 %64, 5
br i1 %65, label %66, label %135
66: ; preds = %63
%67 = load i32, i32* %8
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %98
69: ; preds = %66
%70 = load i8*, i8** %14
%71 = getelementptr inbounds i8, i8* %70, i64 4
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = load i8*, i8** %14
%75 = getelementptr inbounds i8, i8* %74, i64 5
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %73, i32 %77)
%79 = load i8*, i8** %14
%80 = getelementptr inbounds i8, i8* %79, i64 4
%81 = load i8, i8* %80
%82 = icmp ne i8 %81, 0
br i1 %82, label %83, label %97
83: ; preds = %69
%84 = load i8*, i8** %14
%85 = getelementptr inbounds i8, i8* %84, i64 4
%86 = load i8, i8* %85
%87 = load i8*, i8** %14
%88 = getelementptr inbounds i8, i8* %87, i64 5
%89 = load i8, i8* %88
%90 = getelementptr inbounds [256 x i8], [256 x i8]* %16, i64 0, i64 0
%91 = call i64 @sg_get_asc_ascq_str(i8 zeroext %86, i8 zeroext %89, i32 256, i8* %90)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %83
%94 = getelementptr inbounds [256 x i8], [256 x i8]* %16, i64 0, i64 0
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %94)
br label %96
96: ; preds = %93, %83
br label %97
97: ; preds = %96, %69
br label %98
98: ; preds = %97, %66
%99 = load i32, i32* %11
%100 = icmp sgt i32 %99, 6
br i1 %100, label %101, label %134
101: ; preds = %98
%102 = load i8*, i8** %14
%103 = getelementptr inbounds i8, i8* %102, i64 6
%104 = load i8, i8* %103
%105 = zext i8 %104 to i32
%106 = icmp slt i32 %105, 255
br i1 %106, label %107, label %113
107: ; preds = %101
%108 = load i8*, i8** %14
%109 = getelementptr inbounds i8, i8* %108, i64 6
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %111)
br label %115
113: ; preds = %101
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
br label %115
115: ; preds = %113, %107
%116 = load i32, i32* %11
%117 = icmp sgt i32 %116, 7
br i1 %117, label %118, label %133
118: ; preds = %115
%119 = load i8*, i8** %14
%120 = getelementptr inbounds i8, i8* %119, i64 7
%121 = load i8, i8* %120
%122 = zext i8 %121 to i32
%123 = icmp slt i32 %122, 255
br i1 %123, label %124, label %130
124: ; preds = %118
%125 = load i8*, i8** %14
%126 = getelementptr inbounds i8, i8* %125, i64 7
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i32 %128)
br label %132
130: ; preds = %118
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
br label %132
132: ; preds = %130, %124
br label %133
133: ; preds = %132, %115
br label %134
134: ; preds = %133, %98
br label %135
135: ; preds = %134, %63
br label %146
136: ; preds = %41
%137 = load i32, i32* %8
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %145
139: ; preds = %136
%140 = load i32, i32* %12
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i32 %140)
%142 = load i8*, i8** %14
%143 = load i32, i32* %11
%144 = call i32 @dStrHex(i8* %142, i32 %143, i32 1)
br label %145
145: ; preds = %139, %136
br label %146
146: ; preds = %145, %135
%147 = load i32, i32* %7
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %155
149: ; preds = %146
%150 = load i32, i32* %13
%151 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 0
%152 = call i32 @get_pcb_str(i32 %150, i8* %151, i32 128)
%153 = getelementptr inbounds [128 x i8], [128 x i8]* %15, i64 0, i64 0
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* %153)
br label %157
155: ; preds = %146
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %157
157: ; preds = %155, %149
br label %158
158: ; preds = %157
%159 = load i32, i32* %11
%160 = load i32, i32* %9
%161 = sub nsw i32 %160, %159
store i32 %161, i32* %9
%162 = load i32, i32* %11
%163 = load i8*, i8** %14
%164 = sext i32 %162 to i64
%165 = getelementptr inbounds i8, i8* %163, i64 %164
store i8* %165, i8** %14
br label %33
166: ; preds = %24, %39, %33
ret void
}

LLVM IR (-O2):
@.str.3 = [29 x i8] c" IE asc = 0x%x, ascq = 0x%x\00"
@.str.4 = [10 x i8] c"\0A [%s]\00"
@.str.5 = [30 x i8] c"\0A Current temperature = %d C\00"
@.str.6 = [41 x i8] c"\0A Current temperature = <not available>\00"
@.str.7 = [49 x i8] c"\0A Threshold temperature = %d C [IBM extension]\00"
@.str.8 = [42 x i8] c"\0A Treshold temperature = <not available>\00"
@.str.9 = [43 x i8] c" parameter code = 0x%x, contents in hex:\0A\00"
@.str.10 = [15 x i8] c"\0A <%s>\0A\00"
@str = [40 x i8] c"short Informational Exceptions log page\00"
@str.12 = [34 x i8] c"Informational Exceptions log page\00"
@str.13 = [47 x i8] c"badly formed Informational Exceptions log page\00"
define void @show_ie_page(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca [128 x i8]
%6 = alloca [256 x i8]
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%9 = add nsw i32 %1, -4
%10 = getelementptr inbounds i8, i8* %0, i64 4
%11 = icmp slt i32 %1, 8
br i1 %11, label %12, label %14
12: ; preds = %4
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.13, i64 0, i64 0))
br label %98
14: ; preds = %4
%15 = icmp eq i32 %3, 0
br i1 %15, label %18, label %16
16: ; preds = %14
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.12, i64 0, i64 0))
br label %18
18: ; preds = %14, %16
%19 = icmp eq i32 %2, 0
br label %20
20: ; preds = %18, %93
%21 = phi i8* [ %10, %18 ], [ %96, %93 ]
%22 = phi i32 [ %9, %18 ], [ %94, %93 ]
%23 = icmp ult i32 %22, 3
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
br label %98
26: ; preds = %20
%27 = getelementptr inbounds i8, i8* %21, i64 3
%28 = load i8, i8* %27
%29 = zext i8 %28 to i32
%30 = add nuw nsw i32 %29, 4
%31 = load i8, i8* %21
%32 = zext i8 %31 to i32
%33 = shl nuw nsw i32 %32, 8
%34 = getelementptr inbounds i8, i8* %21, i64 1
%35 = load i8, i8* %34
%36 = zext i8 %35 to i32
%37 = or i32 %33, %36
%38 = getelementptr inbounds i8, i8* %21, i64 2
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = icmp eq i32 %37, 0
br i1 %41, label %42, label %83
42: ; preds = %26
%43 = icmp ugt i8 %28, 1
br i1 %43, label %44, label %87
44: ; preds = %42
br i1 %15, label %61, label %45
45: ; preds = %44
%46 = getelementptr inbounds i8, i8* %21, i64 4
%47 = load i8, i8* %46
%48 = zext i8 %47 to i32
%49 = getelementptr inbounds i8, i8* %21, i64 5
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %48, i32 %51)
%53 = load i8, i8* %46
%54 = icmp eq i8 %53, 0
br i1 %54, label %61, label %55
55: ; preds = %45
%56 = load i8, i8* %49
%57 = call i64 @sg_get_asc_ascq_str(i8 zeroext %53, i8 zeroext %56, i32 256, i8* %8)
%58 = icmp eq i64 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %55
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* %8)
br label %61
61: ; preds = %45, %59, %55, %44
%62 = icmp ugt i8 %28, 2
br i1 %62, label %63, label %87
63: ; preds = %61
%64 = getelementptr inbounds i8, i8* %21, i64 6
%65 = load i8, i8* %64
%66 = icmp eq i8 %65, -1
br i1 %66, label %70, label %67
67: ; preds = %63
%68 = zext i8 %65 to i32
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %68)
br label %72
70: ; preds = %63
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
br label %72
72: ; preds = %70, %67
%73 = icmp ugt i8 %28, 3
br i1 %73, label %74, label %87
74: ; preds = %72
%75 = getelementptr inbounds i8, i8* %21, i64 7
%76 = load i8, i8* %75
%77 = icmp eq i8 %76, -1
br i1 %77, label %81, label %78
78: ; preds = %74
%79 = zext i8 %76 to i32
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i32 %79)
br label %87
81: ; preds = %74
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
br label %87
83: ; preds = %26
br i1 %15, label %87, label %84
84: ; preds = %83
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0), i32 %37)
%86 = call i32 @dStrHex(i8* %21, i32 %30, i32 1)
br label %87
87: ; preds = %83, %84, %42, %72, %81, %78, %61
br i1 %19, label %91, label %88
88: ; preds = %87
%89 = call i32 @get_pcb_str(i32 %40, i8* %7, i32 128)
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* %7)
br label %93
91: ; preds = %87
%92 = call i32 @putchar(i32 10)
br label %93
93: ; preds = %88, %91
%94 = sub nsw i32 %22, %30
%95 = zext i32 %30 to i64
%96 = getelementptr inbounds i8, i8* %21, i64 %95
%97 = icmp sgt i32 %94, 0
br i1 %97, label %20, label %98
98: ; preds = %93, %24, %12
ret void
}