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

/* Variables and functions */
int EOF;
int /*<<< orphan*/ decode_tuple(unsigned long, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getc_nospace(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ ungetc(int, int /*<<< orphan*/ *);
void ascii85_decode(FILE *fp, int delims, int ignore_garbage) {
  int c, count = 0, end = 0;
  unsigned long tuple = 0,
                pows[] = {85 * 85 * 85 * 85, 85 * 85 * 85, 85 * 85, 85, 1};
  while (delims) {
    c = getc_nospace(fp);
    if (c == '<') {
      c = getc_nospace(fp);
      if (c == '~')
        break;
      ungetc(c, fp);
    } else if (c == EOF) {
      fprintf(stderr, "ascii85: missing <~\n");
      exit(1);
    }
  }
  for (;;) {
    c = getc_nospace(fp);
    if (c == 'z' && count == 0) {
      decode_tuple(0, 5);
      continue;
    }
    if (c == 'y' && count == 0) {
      decode_tuple(0x20202020, 5);
      continue;
    }
    if (c == '~' && delims) {
      c = getc_nospace(fp);
      if (c != '>') {
        fprintf(stderr, "ascii85: ~ without >\n");
        exit(1);
      }
      c = EOF;
      end = 1;
    }
    if (c == EOF) {
      if (delims && !end) {
        fprintf(stderr, "ascii85: missing ~>\n");
        exit(1);
      }
      if (count > 0) {
        tuple += pows[count - 1];
        decode_tuple(tuple, count);
      }
      break;
    }
    if (c < '!' || c > 'u') {
      if (ignore_garbage)
        continue;
      fprintf(stderr, "ascii85: invalid character '%c'\n", c);
      exit(1);
    }
    tuple += (c - '!') * pows[count++];
    if (count == 5) {
      decode_tuple(tuple, count);
      tuple = 0;
      count = 0;
    }
  }
}


x86 assembly (clang, -O0):
<ascii85_decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movq   $0x31c84b1,-0x50(%rbp)
03
movq   $0x95eed,-0x48(%rbp)
movq   $0x1c39,-0x40(%rbp)
movq   $0x55,-0x38(%rbp)
movq   $0x1,-0x30(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1249 <ascii85_decode+0xe9>
mov    -0x8(%rbp),%rdi
call   1070 <getc_nospace@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3c,-0x14(%rbp)
jne    120c <ascii85_decode+0xac>
mov    -0x8(%rbp),%rdi
call   1070 <getc_nospace@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x7e,-0x14(%rbp)
jne    11fb <ascii85_decode+0x9b>
jmp    1249 <ascii85_decode+0xe9>
mov    -0x14(%rbp),%edi
mov    -0x8(%rbp),%rsi
call   1060 <ungetc@plt>
jmp    1244 <ascii85_decode+0xe4>
mov    -0x14(%rbp),%eax
mov    0x2dd2(%rip),%rcx
cmp    (%rcx),%eax
jne    123f <ascii85_decode+0xdf>
mov    0x2db3(%rip),%rax
mov    (%rax),%edi
lea    0xdd2(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
jmp    1244 <ascii85_decode+0xe4>
jmp    11c0 <ascii85_decode+0x60>
jmp    124e <ascii85_decode+0xee>
mov    -0x8(%rbp),%rdi
call   1070 <getc_nospace@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x7a,-0x14(%rbp)
jne    1281 <ascii85_decode+0x121>
cmpl   $0x0,-0x18(%rbp)
jne    1281 <ascii85_decode+0x121>
xor    %eax,%eax
mov    %eax,%edi
mov    $0x5,%esi
call   1050 <decode_tuple@plt>
jmp    124e <ascii85_decode+0xee>
cmpl   $0x79,-0x14(%rbp)
jne    12a9 <ascii85_decode+0x149>
cmpl   $0x0,-0x18(%rbp)
jne    12a9 <ascii85_decode+0x149>
mov    $0x20202020,%edi
mov    $0x5,%esi
call   1050 <decode_tuple@plt>
jmp    124e <ascii85_decode+0xee>
cmpl   $0x7e,-0x14(%rbp)
jne    1307 <ascii85_decode+0x1a7>
cmpl   $0x0,-0xc(%rbp)
je     1307 <ascii85_decode+0x1a7>
mov    -0x8(%rbp),%rdi
call   1070 <getc_nospace@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3e,-0x14(%rbp)
je     12f4 <ascii85_decode+0x194>
mov    0x2cfe(%rip),%rax
mov    (%rax),%edi
lea    0xd32(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    0x2ced(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2cd7(%rip),%rcx
cmp    (%rcx),%eax
jne    137e <ascii85_decode+0x21e>
cmpl   $0x0,-0xc(%rbp)
je     134e <ascii85_decode+0x1ee>
cmpl   $0x0,-0x1c(%rbp)
jne    134e <ascii85_decode+0x1ee>
mov    0x2ca4(%rip),%rax
mov    (%rax),%edi
lea    0xcee(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
cmpl   $0x0,-0x18(%rbp)
jle    1379 <ascii85_decode+0x219>
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x50(%rbp,%rax,8),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%esi
call   1050 <decode_tuple@plt>
jmp    1413 <ascii85_decode+0x2b3>
cmpl   $0x21,-0x14(%rbp)
jl     1392 <ascii85_decode+0x232>
cmpl   $0x75,-0x14(%rbp)
jle    13c5 <ascii85_decode+0x265>
cmpl   $0x0,-0x10(%rbp)
je     13a1 <ascii85_decode+0x241>
jmp    124e <ascii85_decode+0xee>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xc8c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x14(%rbp),%eax
sub    $0x21,%eax
cltq
mov    -0x18(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x18(%rbp)
movslq %ecx,%rcx
imul   -0x50(%rbp,%rcx,8),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpl   $0x5,-0x18(%rbp)
jne    140e <ascii85_decode+0x2ae>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%esi
call   1050 <decode_tuple@plt>
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x18(%rbp)
jmp    124e <ascii85_decode+0xee>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ascii85_decode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edx,%r14d
mov    %esi,%r12d
mov    %rdi,%rbx
movaps 0xe92(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe97(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movq   $0x1,0x20(%rsp)
test   %esi,%esi
je     11cf <ascii85_decode+0x7f>
mov    0x2e56(%rip),%rbp
jmp    11a9 <ascii85_decode+0x59>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    0x0(%rbp),%eax
je     12b3 <ascii85_decode+0x163>
mov    %rbx,%rdi
call   1060 <getc_nospace@plt>
cmp    $0x3c,%eax
jne    11a0 <ascii85_decode+0x50>
mov    %rbx,%rdi
call   1060 <getc_nospace@plt>
cmp    $0x7e,%eax
je     11cf <ascii85_decode+0x7f>
mov    %eax,%edi
mov    %rbx,%rsi
call   1050 <ungetc@plt>
jmp    11a9 <ascii85_decode+0x59>
xor    %ebp,%ebp
mov    0x2e10(%rip),%r13
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1060 <getc_nospace@plt>
cmp    $0x7a,%eax
jne    11f1 <ascii85_decode+0xa1>
test   %ebp,%ebp
je     121c <ascii85_decode+0xcc>
cmp    $0x79,%eax
jne    11fa <ascii85_decode+0xaa>
test   %ebp,%ebp
je     1220 <ascii85_decode+0xd0>
test   %r12d,%r12d
je     1204 <ascii85_decode+0xb4>
cmp    $0x7e,%eax
je     125d <ascii85_decode+0x10d>
cmp    0x0(%r13),%eax
je     127c <ascii85_decode+0x12c>
lea    -0x76(%rax),%ecx
cmp    $0xffffffaa,%ecx
ja     1233 <ascii85_decode+0xe3>
test   %r14d,%r14d
jne    11e0 <ascii85_decode+0x90>
jmp    12d4 <ascii85_decode+0x184>
xor    %edi,%edi
jmp    1225 <ascii85_decode+0xd5>
mov    $0x20202020,%edi
mov    $0x5,%esi
call   1040 <decode_tuple@plt>
xor    %ebp,%ebp
jmp    11e0 <ascii85_decode+0x90>
add    $0xffffffdf,%eax
movslq %ebp,%rcx
add    $0x1,%ebp
imul   (%rsp,%rcx,8),%rax
add    %rax,%r15
cmp    $0x5,%ebp
jne    11e0 <ascii85_decode+0x90>
mov    %r15,%rdi
mov    $0x5,%esi
call   1040 <decode_tuple@plt>
xor    %ebp,%ebp
jmp    11d8 <ascii85_decode+0x88>
mov    %rbx,%rdi
call   1060 <getc_nospace@plt>
cmp    $0x3e,%eax
je     1281 <ascii85_decode+0x131>
mov    0x2d67(%rip),%rax
mov    (%rax),%edi
lea    0xdbb(%rip),%rsi
jmp    12c3 <ascii85_decode+0x173>
test   %r12d,%r12d
jne    12f7 <ascii85_decode+0x1a7>
test   %ebp,%ebp
jle    12a4 <ascii85_decode+0x154>
lea    -0x1(%rbp),%eax
add    (%rsp,%rax,8),%r15
mov    %r15,%rdi
mov    %ebp,%esi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <decode_tuple@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
lea    0xd5d(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    0x2cfd(%rip),%rcx
mov    (%rcx),%edi
lea    0xd7c(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
lea    0xd44(%rip),%rsi
jmp    12c3 <ascii85_decode+0x173>

LLVM IR (-O0):
@EOF = global i32 0
@stderr = global i32 0
@.str = [21 x i8] c"ascii85: missing <~\0A\00"
@.str.1 = [22 x i8] c"ascii85: ~ without >\0A\00"
@.str.2 = [21 x i8] c"ascii85: missing ~>\0A\00"
@.str.3 = [33 x i8] c"ascii85: invalid character '%c'\0A\00"
define void @ascii85_decode(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca [5 x i64]
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %8
store i32 0, i32* %9
store i64 0, i64* %10
%12 = bitcast [5 x i64]* %11 to i8*
%13 = bitcast i8* %12 to [5 x i64]*
%14 = getelementptr inbounds [5 x i64], [5 x i64]* %13, i32 0, i32 0
store i64 52200625, i64* %14
%15 = getelementptr inbounds [5 x i64], [5 x i64]* %13, i32 0, i32 1
store i64 614125, i64* %15
%16 = getelementptr inbounds [5 x i64], [5 x i64]* %13, i32 0, i32 2
store i64 7225, i64* %16
%17 = getelementptr inbounds [5 x i64], [5 x i64]* %13, i32 0, i32 3
store i64 85, i64* %17
%18 = getelementptr inbounds [5 x i64], [5 x i64]* %13, i32 0, i32 4
store i64 1, i64* %18
br label %19
19: ; preds = %46, %3
%20 = load i32, i32* %5
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %47
22: ; preds = %19
%23 = load i32*, i32** %4
%24 = call i32 @getc_nospace(i32* %23)
store i32 %24, i32* %7
%25 = load i32, i32* %7
%26 = icmp eq i32 %25, 60
br i1 %26, label %27, label %37
27: ; preds = %22
%28 = load i32*, i32** %4
%29 = call i32 @getc_nospace(i32* %28)
store i32 %29, i32* %7
%30 = load i32, i32* %7
%31 = icmp eq i32 %30, 126
br i1 %31, label %32, label %33
32: ; preds = %27
br label %47
33: ; preds = %27
%34 = load i32, i32* %7
%35 = load i32*, i32** %4
%36 = call i32 @ungetc(i32 %34, i32* %35)
br label %46
37: ; preds = %22
%38 = load i32, i32* %7
%39 = load i32, i32* @EOF
%40 = icmp eq i32 %38, %39
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i32, i32* @stderr
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%44 = call i32 @exit(i32 1)
unreachable
45: ; preds = %37
br label %46
46: ; preds = %45, %33
br label %19
47: ; preds = %32, %19
br label %48
48: ; preds = %145, %121, %64, %56, %47
%49 = load i32*, i32** %4
%50 = call i32 @getc_nospace(i32* %49)
store i32 %50, i32* %7
%51 = load i32, i32* %7
%52 = icmp eq i32 %51, 122
br i1 %52, label %53, label %58
53: ; preds = %48
%54 = load i32, i32* %8
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @decode_tuple(i64 0, i32 5)
br label %48
58: ; preds = %53, %48
%59 = load i32, i32* %7
%60 = icmp eq i32 %59, 121
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load i32, i32* %8
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 @decode_tuple(i64 538976288, i32 5)
br label %48
66: ; preds = %61, %58
%67 = load i32, i32* %7
%68 = icmp eq i32 %67, 126
br i1 %68, label %69, label %83
69: ; preds = %66
%70 = load i32, i32* %5
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %83
72: ; preds = %69
%73 = load i32*, i32** %4
%74 = call i32 @getc_nospace(i32* %73)
store i32 %74, i32* %7
%75 = load i32, i32* %7
%76 = icmp ne i32 %75, 62
br i1 %76, label %77, label %81
77: ; preds = %72
%78 = load i32, i32* @stderr
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%80 = call i32 @exit(i32 1)
unreachable
81: ; preds = %72
%82 = load i32, i32* @EOF
store i32 %82, i32* %7
store i32 1, i32* %9
br label %83
83: ; preds = %81, %69, %66
%84 = load i32, i32* %7
%85 = load i32, i32* @EOF
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %112
87: ; preds = %83
%88 = load i32, i32* %5
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %97
90: ; preds = %87
%91 = load i32, i32* %9
%92 = icmp ne i32 %91, 0
br i1 %92, label %97, label %93
93: ; preds = %90
%94 = load i32, i32* @stderr
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%96 = call i32 @exit(i32 1)
unreachable
97: ; preds = %90, %87
%98 = load i32, i32* %8
%99 = icmp sgt i32 %98, 0
br i1 %99, label %100, label %111
100: ; preds = %97
%101 = load i32, i32* %8
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [5 x i64], [5 x i64]* %11, i64 0, i64 %103
%105 = load i64, i64* %104
%106 = load i64, i64* %10
%107 = add i64 %106, %105
store i64 %107, i64* %10
%108 = load i64, i64* %10
%109 = load i32, i32* %8
%110 = call i32 @decode_tuple(i64 %108, i32 %109)
br label %111
111: ; preds = %100, %97
br label %146
112: ; preds = %83
%113 = load i32, i32* %7
%114 = icmp slt i32 %113, 33
br i1 %114, label %118, label %115
115: ; preds = %112
%116 = load i32, i32* %7
%117 = icmp sgt i32 %116, 117
br i1 %117, label %118, label %127
118: ; preds = %115, %112
%119 = load i32, i32* %6
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %118
br label %48
122: ; preds = %118
%123 = load i32, i32* @stderr
%124 = load i32, i32* %7
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %123, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %124)
%126 = call i32 @exit(i32 1)
unreachable
127: ; preds = %115
%128 = load i32, i32* %7
%129 = sub nsw i32 %128, 33
%130 = sext i32 %129 to i64
%131 = load i32, i32* %8
%132 = add nsw i32 %131, 1
store i32 %132, i32* %8
%133 = sext i32 %131 to i64
%134 = getelementptr inbounds [5 x i64], [5 x i64]* %11, i64 0, i64 %133
%135 = load i64, i64* %134
%136 = mul i64 %130, %135
%137 = load i64, i64* %10
%138 = add i64 %137, %136
store i64 %138, i64* %10
%139 = load i32, i32* %8
%140 = icmp eq i32 %139, 5
br i1 %140, label %141, label %145
141: ; preds = %127
%142 = load i64, i64* %10
%143 = load i32, i32* %8
%144 = call i32 @decode_tuple(i64 %142, i32 %143)
store i64 0, i64* %10
store i32 0, i32* %8
br label %145
145: ; preds = %141, %127
br label %48
146: ; preds = %111
ret void
}

LLVM IR (-O2):
@EOF = global i32 0
@stderr = global i32 0
@.str = [21 x i8] c"ascii85: missing <~\0A\00"
@.str.1 = [22 x i8] c"ascii85: ~ without >\0A\00"
@.str.2 = [21 x i8] c"ascii85: missing ~>\0A\00"
@.str.3 = [33 x i8] c"ascii85: invalid character '%c'\0A\00"
define void @ascii85_decode(i32* %0, i32 %1, i32 %2) {
%4 = alloca [5 x i64]
%5 = bitcast [5 x i64]* %4 to i8*
%6 = bitcast [5 x i64]* %4 to <2 x i64>*
store <2 x i64> <i64 52200625, i64 614125>, <2 x i64>* %6
%7 = getelementptr inbounds [5 x i64], [5 x i64]* %4, i64 0, i64 2
%8 = bitcast i64* %7 to <2 x i64>*
store <2 x i64> <i64 7225, i64 85>, <2 x i64>* %8
%9 = getelementptr inbounds [5 x i64], [5 x i64]* %4, i64 0, i64 4
store i64 1, i64* %9
%10 = icmp ne i32 %1, 0
br i1 %10, label %11, label %27
11: ; preds = %3, %22
%12 = tail call i32 @getc_nospace(i32* %0)
%13 = icmp eq i32 %12, 60
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = tail call i32 @getc_nospace(i32* %0)
%16 = icmp eq i32 %15, 126
br i1 %16, label %27, label %17
17: ; preds = %14
%18 = tail call i32 @ungetc(i32 %15, i32* %0)
br label %22
19: ; preds = %11
%20 = load i32, i32* @EOF
%21 = icmp eq i32 %12, %20
br i1 %21, label %23, label %22
22: ; preds = %19, %17
br label %11
23: ; preds = %19
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%26 = tail call i32 @exit(i32 1)
unreachable
27: ; preds = %14, %3
%28 = icmp eq i32 %2, 0
br label %29
29: ; preds = %93, %27
%30 = phi i32 [ 0, %27 ], [ %94, %93 ]
%31 = phi i64 [ 0, %27 ], [ %95, %93 ]
br label %32
32: ; preds = %39, %29
%33 = phi i32 [ %30, %29 ], [ 0, %39 ]
%34 = icmp eq i32 %33, 0
br label %35
35: ; preds = %32, %76
%36 = tail call i32 @getc_nospace(i32* %0)
%37 = icmp eq i32 %36, 122
%38 = select i1 %37, i1 %34, i1 false
br i1 %38, label %39, label %42
39: ; preds = %35, %42
%40 = phi i64 [ 538976288, %42 ], [ 0, %35 ]
%41 = tail call i32 @decode_tuple(i64 %40, i32 5)
br label %32
42: ; preds = %35
%43 = icmp eq i32 %36, 121
%44 = select i1 %43, i1 %34, i1 false
br i1 %44, label %39, label %45
45: ; preds = %42
%46 = icmp eq i32 %36, 126
%47 = and i1 %10, %46
br i1 %47, label %48, label %55
48: ; preds = %45
%49 = tail call i32 @getc_nospace(i32* %0)
%50 = icmp eq i32 %49, 62
br i1 %50, label %64, label %51
51: ; preds = %48
%52 = load i32, i32* @stderr
%53 = tail call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%54 = tail call i32 @exit(i32 1)
unreachable
55: ; preds = %45
%56 = load i32, i32* @EOF
%57 = icmp eq i32 %36, %56
br i1 %57, label %58, label %73
58: ; preds = %55
%59 = icmp eq i32 %1, 0
br i1 %59, label %64, label %60
60: ; preds = %58
%61 = load i32, i32* @stderr
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%63 = tail call i32 @exit(i32 1)
unreachable
64: ; preds = %48, %58
%65 = icmp sgt i32 %33, 0
br i1 %65, label %66, label %96
66: ; preds = %64
%67 = add nsw i32 %33, -1
%68 = zext i32 %67 to i64
%69 = getelementptr inbounds [5 x i64], [5 x i64]* %4, i64 0, i64 %68
%70 = load i64, i64* %69
%71 = add i64 %70, %31
%72 = tail call i32 @decode_tuple(i64 %71, i32 %33)
br label %96
73: ; preds = %55
%74 = add i32 %36, -118
%75 = icmp ult i32 %74, -85
br i1 %75, label %76, label %81
76: ; preds = %73
br i1 %28, label %77, label %35
77: ; preds = %76
%78 = load i32, i32* @stderr
%79 = tail call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %36)
%80 = tail call i32 @exit(i32 1)
unreachable
81: ; preds = %73
%82 = add nsw i32 %36, -33
%83 = zext i32 %82 to i64
%84 = add nsw i32 %33, 1
%85 = sext i32 %33 to i64
%86 = getelementptr inbounds [5 x i64], [5 x i64]* %4, i64 0, i64 %85
%87 = load i64, i64* %86
%88 = mul i64 %87, %83
%89 = add i64 %88, %31
%90 = icmp eq i32 %84, 5
br i1 %90, label %91, label %93
91: ; preds = %81
%92 = tail call i32 @decode_tuple(i64 %89, i32 5)
br label %93
93: ; preds = %91, %81
%94 = phi i32 [ 0, %91 ], [ %84, %81 ]
%95 = phi i64 [ 0, %91 ], [ %89, %81 ]
br label %29
96: ; preds = %64, %66
ret void
}