#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*/ dStrHex(char const *, int, int);
int decode_dev_ids(char *, unsigned char *, int, int, int, int, int, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int decode_scsi_ports_vpd(unsigned char *buff, int len, int long_out,
                          int quiet) {
  int k, bump, rel_port, ip_tid_len, tpd_len, res;
  unsigned char *ucp;
  if (len < 4) {
    fprintf(stderr, "SCSI Ports VPD page length too short=%d\n", len);
    return 97;
  }
  len -= 4;
  ucp = buff + 4;
  for (k = 0; k < len; k += bump, ucp += bump) {
    rel_port = (ucp[2] << 8) + ucp[3];
    printf("Relative port=%d\n", rel_port);
    ip_tid_len = (ucp[6] << 8) + ucp[7];
    bump = 8 + ip_tid_len;
    if ((k + bump) > len) {
      fprintf(stderr,
              "SCSI Ports VPD page, short descriptor "
              "length=%d, left=%d\n",
              bump, (len - k));
      return 97;
    }
    if (ip_tid_len > 0) {
      printf(" Initiator port transport id:\n");
      dStrHex((const char *)(ucp + 8), ip_tid_len, 1);
    }
    tpd_len = (ucp[bump + 2] << 8) + ucp[bump + 3];
    if ((k + bump + tpd_len + 4) > len) {
      fprintf(stderr,
              "SCSI Ports VPD page, short descriptor(tgt) "
              "length=%d, left=%d\n",
              bump, (len - k));
      return 97;
    }
    if (tpd_len > 0) {
      res = decode_dev_ids(" Target port descriptor(s)", ucp + bump + 4,
                           tpd_len, 1, -1, -1, long_out, quiet);
      if (res)
        return res;
    }
    bump += tpd_len + 4;
  }
  return 0;
}


x86 assembly (clang, -O0):
<decode_scsi_ports_vpd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1185 <decode_scsi_ports_vpd+0x45>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xe8e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    135e <decode_scsi_ports_vpd+0x21e>
mov    -0x14(%rbp),%eax
sub    $0x4,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1357 <decode_scsi_ports_vpd+0x217>
mov    -0x40(%rbp),%rax
movzbl 0x2(%rax),%eax
shl    $0x8,%eax
mov    -0x40(%rbp),%rcx
movzbl 0x3(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rax
movzbl 0x6(%rax),%eax
shl    $0x8,%eax
mov    -0x40(%rbp),%rcx
movzbl 0x7(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
add    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1232 <decode_scsi_ports_vpd+0xf2>
mov    0x2dd3(%rip),%rax
mov    (%rax),%edi
mov    -0x24(%rbp),%edx
mov    -0x14(%rbp),%ecx
sub    -0x20(%rbp),%ecx
lea    0xe1c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    135e <decode_scsi_ports_vpd+0x21e>
cmpl   $0x0,-0x2c(%rbp)
jle    125f <decode_scsi_ports_vpd+0x11f>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rdi
add    $0x8,%rdi
mov    -0x2c(%rbp),%esi
mov    $0x1,%edx
call   1030 <dStrHex@plt>
mov    -0x40(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
shl    $0x8,%eax
mov    -0x40(%rbp),%rcx
mov    -0x24(%rbp),%edx
add    $0x3,%edx
movslq %edx,%rdx
movzbl (%rcx,%rdx,1),%ecx
add    %ecx,%eax
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%eax
add    -0x24(%rbp),%eax
add    -0x30(%rbp),%eax
add    $0x4,%eax
cmp    -0x14(%rbp),%eax
jle    12ca <decode_scsi_ports_vpd+0x18a>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
mov    -0x24(%rbp),%edx
mov    -0x14(%rbp),%ecx
sub    -0x20(%rbp),%ecx
lea    0xddd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    135e <decode_scsi_ports_vpd+0x21e>
cmpl   $0x0,-0x30(%rbp)
jle    132c <decode_scsi_ports_vpd+0x1ec>
mov    -0x40(%rbp),%rsi
movslq -0x24(%rbp),%rax
add    %rax,%rsi
add    $0x4,%rsi
mov    -0x30(%rbp),%edx
mov    -0x18(%rbp),%r10d
mov    -0x1c(%rbp),%eax
lea    0xddf(%rip),%rdi
mov    $0x1,%ecx
mov    $0xffffffff,%r9d
mov    %r9d,%r8d
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1060 <decode_dev_ids@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     1327 <decode_scsi_ports_vpd+0x1e7>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    135e <decode_scsi_ports_vpd+0x21e>
jmp    132c <decode_scsi_ports_vpd+0x1ec>
mov    -0x30(%rbp),%eax
add    $0x4,%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%ecx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
jmp    11a1 <decode_scsi_ports_vpd+0x61>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode_scsi_ports_vpd>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %esi,%ebp
cmp    $0x3,%esi
jg     1183 <decode_scsi_ports_vpd+0x33>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
lea    0xe8b(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    12bd <decode_scsi_ports_vpd+0x16d>
xor    %eax,%eax
cmp    $0x4,%ebp
je     12c2 <decode_scsi_ports_vpd+0x172>
mov    %rdi,%rbx
mov    %rdx,0x8(%rsp)
mov    %rcx,0x10(%rsp)
add    $0xfffffffc,%ebp
add    $0x4,%rbx
xor    %r14d,%r14d
mov    %ebp,0x4(%rsp)
jmp    11c6 <decode_scsi_ports_vpd+0x76>
nopl   0x0(%rax,%rax,1)
add    %r13,%rbp
add    %ebp,%r14d
add    %rbp,%rbx
mov    0x4(%rsp),%ebp
cmp    %r14d,%ebp
jle    127e <decode_scsi_ports_vpd+0x12e>
movzwl 0x2(%rbx),%esi
shl    $0x10,%esi
bswap  %esi
lea    0xe53(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl 0x6(%rbx),%r12d
shl    $0x30,%r12
bswap  %r12
lea    0x8(%r12),%r13
lea    (%r14,%r13,1),%r15d
cmp    %ebp,%r15d
jg     1282 <decode_scsi_ports_vpd+0x132>
test   %r12d,%r12d
je     121d <decode_scsi_ports_vpd+0xcd>
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
lea    0x8(%rbx),%rdi
mov    %r12d,%esi
mov    $0x1,%edx
call   1040 <dStrHex@plt>
movzwl 0xa(%r12,%rbx,1),%edx
shl    $0x30,%rdx
bswap  %rdx
lea    0x4(%rdx),%rbp
add    %ebp,%r15d
cmp    0x4(%rsp),%r15d
jg     129c <decode_scsi_ports_vpd+0x14c>
test   %edx,%edx
je     11b0 <decode_scsi_ports_vpd+0x60>
mov    %r13d,%eax
lea    (%rbx,%rax,1),%rsi
add    $0x4,%rsi
lea    0xe62(%rip),%rdi
mov    $0x1,%ecx
mov    $0xffffffff,%r8d
mov    $0xffffffff,%r9d
push   0x10(%rsp)
push   0x10(%rsp)
call   1070 <decode_dev_ids@plt>
add    $0x10,%rsp
test   %eax,%eax
je     11b0 <decode_scsi_ports_vpd+0x60>
jmp    12c2 <decode_scsi_ports_vpd+0x172>
xor    %eax,%eax
jmp    12c2 <decode_scsi_ports_vpd+0x172>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
sub    %r14d,%ebp
lea    0xda6(%rip),%rsi
mov    %r13d,%edx
mov    %ebp,%ecx
jmp    12b6 <decode_scsi_ports_vpd+0x166>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
mov    0x4(%rsp),%ecx
sub    %r14d,%ecx
lea    0xdc2(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x61,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [41 x i8] c"SCSI Ports VPD page length too short=%d\0A\00"
@.str.1 = [18 x i8] c"Relative port=%d\0A\00"
@.str.2 = [58 x i8] c"SCSI Ports VPD page, short descriptor length=%d, left=%d\0A\00"
@.str.3 = [31 x i8] c" Initiator port transport id:\0A\00"
@.str.4 = [63 x i8] c"SCSI Ports VPD page, short descriptor(tgt) length=%d, left=%d\0A\00"
@.str.5 = [27 x i8] c" Target port descriptor(s)\00"
define i32 @decode_scsi_ports_vpd(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%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 i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%17 = load i32, i32* %7
%18 = icmp slt i32 %17, 4
br i1 %18, label %19, label %23
19: ; preds = %4
%20 = load i32, i32* @stderr
%21 = load i32, i32* %7
%22 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %21)
store i32 97, i32* %5
br label %142
23: ; preds = %4
%24 = load i32, i32* %7
%25 = sub nsw i32 %24, 4
store i32 %25, i32* %7
%26 = load i8*, i8** %6
%27 = getelementptr inbounds i8, i8* %26, i64 4
store i8* %27, i8** %16
store i32 0, i32* %10
br label %28
28: ; preds = %133, %23
%29 = load i32, i32* %10
%30 = load i32, i32* %7
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %141
32: ; preds = %28
%33 = load i8*, i8** %16
%34 = getelementptr inbounds i8, i8* %33, i64 2
%35 = load i8, i8* %34
%36 = zext i8 %35 to i32
%37 = shl i32 %36, 8
%38 = load i8*, i8** %16
%39 = getelementptr inbounds i8, i8* %38, i64 3
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = add nsw i32 %37, %41
store i32 %42, i32* %12
%43 = load i32, i32* %12
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %43)
%45 = load i8*, i8** %16
%46 = getelementptr inbounds i8, i8* %45, i64 6
%47 = load i8, i8* %46
%48 = zext i8 %47 to i32
%49 = shl i32 %48, 8
%50 = load i8*, i8** %16
%51 = getelementptr inbounds i8, i8* %50, i64 7
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = add nsw i32 %49, %53
store i32 %54, i32* %13
%55 = load i32, i32* %13
%56 = add nsw i32 8, %55
store i32 %56, i32* %11
%57 = load i32, i32* %10
%58 = load i32, i32* %11
%59 = add nsw i32 %57, %58
%60 = load i32, i32* %7
%61 = icmp sgt i32 %59, %60
br i1 %61, label %62, label %69
62: ; preds = %32
%63 = load i32, i32* @stderr
%64 = load i32, i32* %11
%65 = load i32, i32* %7
%66 = load i32, i32* %10
%67 = sub nsw i32 %65, %66
%68 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %64, i32 %67)
store i32 97, i32* %5
br label %142
69: ; preds = %32
%70 = load i32, i32* %13
%71 = icmp sgt i32 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %69
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%74 = load i8*, i8** %16
%75 = getelementptr inbounds i8, i8* %74, i64 8
%76 = load i32, i32* %13
%77 = call i32 @dStrHex(i8* %75, i32 %76, i32 1)
br label %78
78: ; preds = %72, %69
%79 = load i8*, i8** %16
%80 = load i32, i32* %11
%81 = add nsw i32 %80, 2
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, i8* %79, i64 %82
%84 = load i8, i8* %83
%85 = zext i8 %84 to i32
%86 = shl i32 %85, 8
%87 = load i8*, i8** %16
%88 = load i32, i32* %11
%89 = add nsw i32 %88, 3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, i8* %87, i64 %90
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = add nsw i32 %86, %93
store i32 %94, i32* %14
%95 = load i32, i32* %10
%96 = load i32, i32* %11
%97 = add nsw i32 %95, %96
%98 = load i32, i32* %14
%99 = add nsw i32 %97, %98
%100 = add nsw i32 %99, 4
%101 = load i32, i32* %7
%102 = icmp sgt i32 %100, %101
br i1 %102, label %103, label %110
103: ; preds = %78
%104 = load i32, i32* @stderr
%105 = load i32, i32* %11
%106 = load i32, i32* %7
%107 = load i32, i32* %10
%108 = sub nsw i32 %106, %107
%109 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i32 %105, i32 %108)
store i32 97, i32* %5
br label %142
110: ; preds = %78
%111 = load i32, i32* %14
%112 = icmp sgt i32 %111, 0
br i1 %112, label %113, label %128
113: ; preds = %110
%114 = load i8*, i8** %16
%115 = load i32, i32* %11
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, i8* %114, i64 %116
%118 = getelementptr inbounds i8, i8* %117, i64 4
%119 = load i32, i32* %14
%120 = load i32, i32* %8
%121 = load i32, i32* %9
%122 = call i32 @decode_dev_ids(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* %118, i32 %119, i32 1, i32 -1, i32 -1, i32 %120, i32 %121)
store i32 %122, i32* %15
%123 = load i32, i32* %15
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %127
125: ; preds = %113
%126 = load i32, i32* %15
store i32 %126, i32* %5
br label %142
127: ; preds = %113
br label %128
128: ; preds = %127, %110
%129 = load i32, i32* %14
%130 = add nsw i32 %129, 4
%131 = load i32, i32* %11
%132 = add nsw i32 %131, %130
store i32 %132, i32* %11
br label %133
133: ; preds = %128
%134 = load i32, i32* %11
%135 = load i32, i32* %10
%136 = add nsw i32 %135, %134
store i32 %136, i32* %10
%137 = load i32, i32* %11
%138 = load i8*, i8** %16
%139 = sext i32 %137 to i64
%140 = getelementptr inbounds i8, i8* %138, i64 %139
store i8* %140, i8** %16
br label %28
141: ; preds = %28
store i32 0, i32* %5
br label %142
142: ; preds = %141, %125, %103, %62, %19
%143 = load i32, i32* %5
ret i32 %143
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [41 x i8] c"SCSI Ports VPD page length too short=%d\0A\00"
@.str.1 = [18 x i8] c"Relative port=%d\0A\00"
@.str.2 = [58 x i8] c"SCSI Ports VPD page, short descriptor length=%d, left=%d\0A\00"
@.str.4 = [63 x i8] c"SCSI Ports VPD page, short descriptor(tgt) length=%d, left=%d\0A\00"
@.str.5 = [27 x i8] c" Target port descriptor(s)\00"
@str = [30 x i8] c" Initiator port transport id:\00"
define i32 @decode_scsi_ports_vpd(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = icmp slt i32 %1, 4
br i1 %5, label %6, label %9
6: ; preds = %4
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %1)
br label %81
9: ; preds = %4
%10 = add nsw i32 %1, -4
%11 = icmp eq i32 %1, 4
br i1 %11, label %81, label %12
12: ; preds = %9
%13 = getelementptr inbounds i8, i8* %0, i64 4
br label %14
14: ; preds = %12, %75
%15 = phi i8* [ %79, %75 ], [ %13, %12 ]
%16 = phi i32 [ %77, %75 ], [ 0, %12 ]
%17 = getelementptr inbounds i8, i8* %15, i64 2
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = shl nuw nsw i32 %19, 8
%21 = getelementptr inbounds i8, i8* %15, i64 3
%22 = load i8, i8* %21
%23 = zext i8 %22 to i32
%24 = or i32 %20, %23
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds i8, i8* %15, i64 6
%27 = load i8, i8* %26
%28 = zext i8 %27 to i32
%29 = shl nuw nsw i32 %28, 8
%30 = getelementptr inbounds i8, i8* %15, i64 7
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = or i32 %29, %32
%34 = add nuw nsw i32 %33, 8
%35 = add nuw nsw i32 %34, %16
%36 = icmp sgt i32 %35, %10
br i1 %36, label %37, label %41
37: ; preds = %14
%38 = load i32, i32* @stderr
%39 = sub nsw i32 %10, %16
%40 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %34, i32 %39)
br label %81
41: ; preds = %14
%42 = icmp eq i32 %33, 0
br i1 %42, label %47, label %43
43: ; preds = %41
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%45 = getelementptr inbounds i8, i8* %15, i64 8
%46 = tail call i32 @dStrHex(i8* %45, i32 %33, i32 1)
br label %47
47: ; preds = %43, %41
%48 = add nuw nsw i32 %33, 10
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %15, i64 %49
%51 = load i8, i8* %50
%52 = zext i8 %51 to i32
%53 = shl nuw nsw i32 %52, 8
%54 = add nuw nsw i32 %33, 11
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds i8, i8* %15, i64 %55
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = or i32 %53, %58
%60 = add nuw nsw i32 %59, 4
%61 = add i32 %60, %35
%62 = icmp sgt i32 %61, %10
br i1 %62, label %63, label %67
63: ; preds = %47
%64 = load i32, i32* @stderr
%65 = sub nsw i32 %10, %16
%66 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i32 %34, i32 %65)
br label %81
67: ; preds = %47
%68 = icmp eq i32 %59, 0
br i1 %68, label %75, label %69
69: ; preds = %67
%70 = zext i32 %34 to i64
%71 = getelementptr inbounds i8, i8* %15, i64 4
%72 = getelementptr inbounds i8, i8* %71, i64 %70
%73 = tail call i32 @decode_dev_ids(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* %72, i32 %59, i32 1, i32 -1, i32 -1, i32 %2, i32 %3)
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %81
75: ; preds = %69, %67
%76 = add nuw nsw i32 %60, %34
%77 = add nuw nsw i32 %76, %16
%78 = zext i32 %76 to i64
%79 = getelementptr inbounds i8, i8* %15, i64 %78
%80 = icmp sgt i32 %10, %77
br i1 %80, label %14, label %81
81: ; preds = %69, %75, %9, %63, %37, %6
%82 = phi i32 [ 97, %6 ], [ 97, %37 ], [ 97, %63 ], [ 0, %9 ], [ %73, %69 ], [ 0, %75 ]
ret i32 %82
}