#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 */
scalar_t__ get_data(unsigned char const *, long *, char *, unsigned int *,
                    char *, unsigned int *, void (*)(unsigned char));
scalar_t__ get_tables(unsigned char const *, long *, char *, unsigned int *,
                      char *, unsigned int *);
int /*<<< orphan*/ make_code_table(char *, int, unsigned int *, int);
int /*<<< orphan*/ pushout(unsigned char);
void *read_bits(unsigned char const *, long *, int);
int inflate(const unsigned char *data, long *p,
            void (*callback)(unsigned char d)) {
  char blast, btype;
  char hlit_size_table[288];
  unsigned int hlit_code_table[288];
  char hdist_size_table[30];
  unsigned int hdist_code_table[30];
again:
  blast = read_bits(data, p, 1);
  btype = read_bits(data, p, 2);
  if (btype == 1 || btype == 2) {
    if (btype == 2) {
      if (get_tables(data, p, hlit_size_table, hlit_code_table,
                     hdist_size_table, hdist_code_table) < 0)
        return -1;
    } else {
      int j;
      for (j = 0; j < 144; j++)
        hlit_size_table[j] = 8;
      for (; j < 256; j++)
        hlit_size_table[j] = 9;
      for (; j < 280; j++)
        hlit_size_table[j] = 7;
      for (; j < 288; j++)
        hlit_size_table[j] = 8;
      make_code_table(hlit_size_table, 288, hlit_code_table, 15);
      for (j = 0; j < 30; j++)
        hdist_size_table[j] = 5;
      make_code_table(hdist_size_table, 30, hdist_code_table, 15);
    }
    if (get_data(data, p, hlit_size_table, hlit_code_table, hdist_size_table,
                 hdist_code_table, callback) < 0)
      return -1;
    ;
  } else if (btype == 0) {
    unsigned int len, nlen;
    unsigned int l;
    unsigned char b;
    *p = (*p + 7) / 8;
    len = read_bits(data, p, 16);
    nlen = read_bits(data, p, 16);
    for (l = 0; l < len; l++) {
      b = read_bits(data, p, 8);
      pushout(b);
      callback(b);
    }
  } else {
    return -1;
  }
  if (!blast)
    goto again;
  return 0;
}


x86 assembly (clang, -O0):
<inflate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x690,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x1,%edx
call   1050 <read_bits@plt>
mov    %al,-0x21(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x2,%edx
call   1050 <read_bits@plt>
mov    %al,-0x22(%rbp)
movsbl -0x22(%rbp),%eax
cmp    $0x1,%eax
je     11ab <inflate+0x5b>
movsbl -0x22(%rbp),%eax
cmp    $0x2,%eax
jne    13a1 <inflate+0x251>
movsbl -0x22(%rbp),%eax
cmp    $0x2,%eax
jne    11fc <inflate+0xac>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x150(%rbp),%rdx
lea    -0x5d0(%rbp),%rcx
lea    -0x5f0(%rbp),%r8
lea    -0x670(%rbp),%r9
call   1030 <get_tables@plt>
cmp    $0x0,%rax
jge    11f7 <inflate+0xa7>
movl   $0xffffffff,-0x4(%rbp)
jmp    148a <inflate+0x33a>
jmp    1355 <inflate+0x205>
movl   $0x0,-0x674(%rbp)
cmpl   $0x90,-0x674(%rbp)
jge    1239 <inflate+0xe9>
movslq -0x674(%rbp),%rax
movb   $0x8,-0x150(%rbp,%rax,1)
08
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
jmp    1206 <inflate+0xb6>
jmp    123e <inflate+0xee>
cmpl   $0x100,-0x674(%rbp)
jge    1271 <inflate+0x121>
movslq -0x674(%rbp),%rax
movb   $0x9,-0x150(%rbp,%rax,1)
09
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
jmp    123e <inflate+0xee>
jmp    1276 <inflate+0x126>
cmpl   $0x118,-0x674(%rbp)
jge    12a9 <inflate+0x159>
movslq -0x674(%rbp),%rax
movb   $0x7,-0x150(%rbp,%rax,1)
07
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
jmp    1276 <inflate+0x126>
jmp    12ae <inflate+0x15e>
cmpl   $0x120,-0x674(%rbp)
jge    12e1 <inflate+0x191>
movslq -0x674(%rbp),%rax
movb   $0x8,-0x150(%rbp,%rax,1)
08
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
jmp    12ae <inflate+0x15e>
lea    -0x150(%rbp),%rdi
lea    -0x5d0(%rbp),%rdx
mov    $0x120,%esi
mov    $0xf,%ecx
call   1060 <make_code_table@plt>
movl   $0x0,-0x674(%rbp)
cmpl   $0x1e,-0x674(%rbp)
jge    1338 <inflate+0x1e8>
movslq -0x674(%rbp),%rax
movb   $0x5,-0x5f0(%rbp,%rax,1)
05
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
jmp    1308 <inflate+0x1b8>
lea    -0x5f0(%rbp),%rdi
lea    -0x670(%rbp),%rdx
mov    $0x1e,%esi
mov    $0xf,%ecx
call   1060 <make_code_table@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x150(%rbp),%rdx
lea    -0x5d0(%rbp),%rcx
lea    -0x5f0(%rbp),%r8
lea    -0x670(%rbp),%r9
mov    -0x20(%rbp),%rax
mov    %rax,(%rsp)
call   1070 <get_data@plt>
cmp    $0x0,%rax
jge    139c <inflate+0x24c>
movl   $0xffffffff,-0x4(%rbp)
jmp    148a <inflate+0x33a>
jmp    1474 <inflate+0x324>
movsbl -0x22(%rbp),%eax
cmp    $0x0,%eax
jne    1463 <inflate+0x313>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
add    $0x7,%rax
mov    $0x8,%ecx
cqto
idiv   %rcx
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x10,%edx
call   1050 <read_bits@plt>
mov    %eax,-0x678(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x10,%edx
call   1050 <read_bits@plt>
mov    %eax,-0x67c(%rbp)
movl   $0x0,-0x680(%rbp)
mov    -0x680(%rbp),%eax
cmp    -0x678(%rbp),%eax
jae    145e <inflate+0x30e>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x8,%edx
call   1050 <read_bits@plt>
mov    %al,-0x681(%rbp)
movzbl -0x681(%rbp),%edi
call   1040 <pushout@plt>
mov    -0x20(%rbp),%rax
movzbl -0x681(%rbp),%edi
call   *%rax
mov    -0x680(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x680(%rbp)
jmp    1407 <inflate+0x2b7>
jmp    146f <inflate+0x31f>
movl   $0xffffffff,-0x4(%rbp)
jmp    148a <inflate+0x33a>
jmp    1474 <inflate+0x324>
cmpb   $0x0,-0x21(%rbp)
jne    1483 <inflate+0x333>
jmp    1167 <inflate+0x17>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x690,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inflate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x678,%rsp
mov    %rdx,0x20(%rsp)
mov    %rsi,%r15
mov    %rdi,0x18(%rsp)
lea    0x50(%rsp),%r12
lea    0x30(%rsp),%r13
lea    0x170(%rsp),%r14
jmp    12bf <inflate+0x16f>
cs nopw 0x0(%rax,%rax,1)
nop
movaps 0xe69(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
lea    0xe0(%rsp),%rax
movaps 0xe2b(%rip),%xmm0
movaps %xmm0,0x60(%rax)
movaps %xmm0,0x50(%rax)
movaps %xmm0,0x40(%rax)
movaps %xmm0,0x30(%rax)
movaps %xmm0,0x20(%rax)
movaps %xmm0,0x10(%rax)
movaps %xmm0,(%rax)
movabs $0x707070707070707,%rcx
07 07 07
mov    %rcx,0x80(%rax)
movaps 0xe08(%rip),%xmm0
movaps %xmm0,0x70(%rax)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,0x168(%rsp)
mov    %r12,%rdi
mov    $0x120,%esi
mov    %r12,%rbp
lea    0x1f0(%rsp),%r12
mov    %r12,%rdx
mov    $0xf,%ecx
call   1060 <make_code_table@plt>
movaps 0xddb(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movups %xmm0,0x3e(%rsp)
mov    %r13,%rdi
mov    $0x1e,%esi
mov    %r14,%rdx
mov    $0xf,%ecx
call   1060 <make_code_table@plt>
mov    0x18(%rsp),%rbx
mov    0x20(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %r14,%r9
call   1070 <get_data@plt>
test   %rax,%rax
js     13d3 <inflate+0x283>
cmpb   $0x0,0x28(%rsp)
lea    0x50(%rsp),%r12
lea    0x30(%rsp),%r13
lea    0x170(%rsp),%r14
jne    13cb <inflate+0x27b>
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
call   1050 <read_bits@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x2,%edx
call   1050 <read_bits@plt>
shl    $0x18,%eax
mov    %rbp,0x28(%rsp)
je     1350 <inflate+0x200>
movl   $0xffffffff,0x14(%rsp)
ff
cmp    $0x1000000,%eax
je     1190 <inflate+0x40>
cmp    $0x2000000,%eax
lea    0x1f0(%rsp),%rcx
jne    13d3 <inflate+0x283>
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r12,%rbp
mov    %rcx,%r12
mov    %r13,%r8
mov    %r14,%r9
call   1030 <get_tables@plt>
test   %rax,%rax
jns    1279 <inflate+0x129>
jmp    13d3 <inflate+0x283>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r15),%rax
lea    0x7(%rax),%rcx
add    $0xe,%rax
test   %rcx,%rcx
cmovns %rcx,%rax
sar    $0x3,%rax
mov    %rax,(%r15)
mov    0x18(%rsp),%r14
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x10,%edx
call   1050 <read_bits@plt>
mov    %rax,%rbp
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x10,%edx
call   1050 <read_bits@plt>
test   %ebp,%ebp
mov    0x20(%rsp),%rbx
je     12a2 <inflate+0x152>
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x8,%edx
call   1050 <read_bits@plt>
movzbl %al,%r12d
mov    %r12d,%edi
call   1040 <pushout@plt>
mov    %r12d,%edi
call   *%rbx
add    $0xffffffff,%ebp
jne    13a0 <inflate+0x250>
jmp    12a2 <inflate+0x152>
movl   $0x0,0x14(%rsp)
mov    0x14(%rsp),%eax
add    $0x678,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @inflate(i8* %0, i64* %1, void (i8)* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64*
%7 = alloca void (i8)*
%8 = alloca i8
%9 = alloca i8
%10 = alloca [288 x i8]
%11 = alloca [288 x i32]
%12 = alloca [30 x i8]
%13 = alloca [30 x i32]
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8
store i8* %0, i8** %5
store i64* %1, i64** %6
store void (i8)* %2, void (i8)** %7
br label %19
19: ; preds = %164, %3
%20 = load i8*, i8** %5
%21 = load i64*, i64** %6
%22 = call i8* @read_bits(i8* %20, i64* %21, i32 1)
%23 = ptrtoint i8* %22 to i8
store i8 %23, i8* %8
%24 = load i8*, i8** %5
%25 = load i64*, i64** %6
%26 = call i8* @read_bits(i8* %24, i64* %25, i32 2)
%27 = ptrtoint i8* %26 to i8
store i8 %27, i8* %9
%28 = load i8, i8* %9
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 1
br i1 %30, label %35, label %31
31: ; preds = %19
%32 = load i8, i8* %9
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 2
br i1 %34, label %35, label %124
35: ; preds = %31, %19
%36 = load i8, i8* %9
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 2
br i1 %38, label %39, label %50
39: ; preds = %35
%40 = load i8*, i8** %5
%41 = load i64*, i64** %6
%42 = getelementptr inbounds [288 x i8], [288 x i8]* %10, i64 0, i64 0
%43 = getelementptr inbounds [288 x i32], [288 x i32]* %11, i64 0, i64 0
%44 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%45 = getelementptr inbounds [30 x i32], [30 x i32]* %13, i64 0, i64 0
%46 = call i64 @get_tables(i8* %40, i64* %41, i8* %42, i32* %43, i8* %44, i32* %45)
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %39
store i32 -1, i32* %4
br label %166
49: ; preds = %39
br label %112
50: ; preds = %35
store i32 0, i32* %14
br label %51
51: ; preds = %58, %50
%52 = load i32, i32* %14
%53 = icmp slt i32 %52, 144
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = load i32, i32* %14
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [288 x i8], [288 x i8]* %10, i64 0, i64 %56
store i8 8, i8* %57
br label %58
58: ; preds = %54
%59 = load i32, i32* %14
%60 = add nsw i32 %59, 1
store i32 %60, i32* %14
br label %51
61: ; preds = %51
br label %62
62: ; preds = %69, %61
%63 = load i32, i32* %14
%64 = icmp slt i32 %63, 256
br i1 %64, label %65, label %72
65: ; preds = %62
%66 = load i32, i32* %14
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [288 x i8], [288 x i8]* %10, i64 0, i64 %67
store i8 9, i8* %68
br label %69
69: ; preds = %65
%70 = load i32, i32* %14
%71 = add nsw i32 %70, 1
store i32 %71, i32* %14
br label %62
72: ; preds = %62
br label %73
73: ; preds = %80, %72
%74 = load i32, i32* %14
%75 = icmp slt i32 %74, 280
br i1 %75, label %76, label %83
76: ; preds = %73
%77 = load i32, i32* %14
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [288 x i8], [288 x i8]* %10, i64 0, i64 %78
store i8 7, i8* %79
br label %80
80: ; preds = %76
%81 = load i32, i32* %14
%82 = add nsw i32 %81, 1
store i32 %82, i32* %14
br label %73
83: ; preds = %73
br label %84
84: ; preds = %91, %83
%85 = load i32, i32* %14
%86 = icmp slt i32 %85, 288
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = load i32, i32* %14
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [288 x i8], [288 x i8]* %10, i64 0, i64 %89
store i8 8, i8* %90
br label %91
91: ; preds = %87
%92 = load i32, i32* %14
%93 = add nsw i32 %92, 1
store i32 %93, i32* %14
br label %84
94: ; preds = %84
%95 = getelementptr inbounds [288 x i8], [288 x i8]* %10, i64 0, i64 0
%96 = getelementptr inbounds [288 x i32], [288 x i32]* %11, i64 0, i64 0
%97 = call i32 @make_code_table(i8* %95, i32 288, i32* %96, i32 15)
store i32 0, i32* %14
br label %98
98: ; preds = %105, %94
%99 = load i32, i32* %14
%100 = icmp slt i32 %99, 30
br i1 %100, label %101, label %108
101: ; preds = %98
%102 = load i32, i32* %14
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 %103
store i8 5, i8* %104
br label %105
105: ; preds = %101
%106 = load i32, i32* %14
%107 = add nsw i32 %106, 1
store i32 %107, i32* %14
br label %98
108: ; preds = %98
%109 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%110 = getelementptr inbounds [30 x i32], [30 x i32]* %13, i64 0, i64 0
%111 = call i32 @make_code_table(i8* %109, i32 30, i32* %110, i32 15)
br label %112
112: ; preds = %108, %49
%113 = load i8*, i8** %5
%114 = load i64*, i64** %6
%115 = getelementptr inbounds [288 x i8], [288 x i8]* %10, i64 0, i64 0
%116 = getelementptr inbounds [288 x i32], [288 x i32]* %11, i64 0, i64 0
%117 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%118 = getelementptr inbounds [30 x i32], [30 x i32]* %13, i64 0, i64 0
%119 = load void (i8)*, void (i8)** %7
%120 = call i64 @get_data(i8* %113, i64* %114, i8* %115, i32* %116, i8* %117, i32* %118, void (i8)* %119)
%121 = icmp slt i64 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %112
store i32 -1, i32* %4
br label %166
123: ; preds = %112
br label %161
124: ; preds = %31
%125 = load i8, i8* %9
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 0
br i1 %127, label %128, label %159
128: ; preds = %124
%129 = load i64*, i64** %6
%130 = load i64, i64* %129
%131 = add nsw i64 %130, 7
%132 = sdiv i64 %131, 8
%133 = load i64*, i64** %6
store i64 %132, i64* %133
%134 = load i8*, i8** %5
%135 = load i64*, i64** %6
%136 = call i8* @read_bits(i8* %134, i64* %135, i32 16)
%137 = ptrtoint i8* %136 to i32
store i32 %137, i32* %15
%138 = load i8*, i8** %5
%139 = load i64*, i64** %6
%140 = call i8* @read_bits(i8* %138, i64* %139, i32 16)
%141 = ptrtoint i8* %140 to i32
store i32 %141, i32* %16
store i32 0, i32* %17
br label %142
142: ; preds = %155, %128
%143 = load i32, i32* %17
%144 = load i32, i32* %15
%145 = icmp ult i32 %143, %144
br i1 %145, label %146, label %158
146: ; preds = %142
%147 = load i8*, i8** %5
%148 = load i64*, i64** %6
%149 = call i8* @read_bits(i8* %147, i64* %148, i32 8)
%150 = ptrtoint i8* %149 to i8
store i8 %150, i8* %18
%151 = load i8, i8* %18
%152 = call i32 @pushout(i8 zeroext %151)
%153 = load void (i8)*, void (i8)** %7
%154 = load i8, i8* %18
br label %155
155: ; preds = %146
%156 = load i32, i32* %17
%157 = add i32 %156, 1
store i32 %157, i32* %17
br label %142
158: ; preds = %142
br label %160
159: ; preds = %124
store i32 -1, i32* %4
br label %166
160: ; preds = %158
br label %161
161: ; preds = %160, %123
%162 = load i8, i8* %8
%163 = icmp ne i8 %162, 0
br i1 %163, label %165, label %164
164: ; preds = %161
br label %19
165: ; preds = %161
store i32 0, i32* %4
br label %166
166: ; preds = %165, %159, %122, %48
%167 = load i32, i32* %4
ret i32 %167
}

LLVM IR (-O2):
define i32 @inflate(i8* %0, i64* %1, void (i8)* %2) {
%4 = alloca [288 x i8]
%5 = getelementptr inbounds [288 x i8], [288 x i8]* %4, i64 0, i64 0
%6 = alloca [288 x i32]
%7 = alloca [30 x i8]
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 0
%9 = alloca [30 x i32]
%10 = getelementptr inbounds [288 x i8], [288 x i8]* %4, i64 0, i64 0
%11 = bitcast [288 x i32]* %6 to i8*
%12 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 0
%13 = bitcast [30 x i32]* %9 to i8*
%14 = getelementptr inbounds [288 x i32], [288 x i32]* %6, i64 0, i64 0
%15 = getelementptr inbounds [30 x i32], [30 x i32]* %9, i64 0, i64 0
%16 = getelementptr inbounds [288 x i8], [288 x i8]* %4, i64 0, i64 144
%17 = getelementptr inbounds [288 x i8], [288 x i8]* %4, i64 0, i64 256
%18 = getelementptr inbounds [288 x i8], [288 x i8]* %4, i64 0, i64 280
%19 = bitcast i8* %18 to i64*
br label %20
20: ; preds = %54, %3
%21 = call i8* @read_bits(i8* %0, i64* %1, i32 1)
%22 = ptrtoint i8* %21 to i64
%23 = trunc i64 %22 to i8
%24 = call i8* @read_bits(i8* %0, i64* %1, i32 2)
%25 = ptrtoint i8* %24 to i64
%26 = trunc i64 %25 to i32
%27 = shl i32 %26, 24
switch i32 %27, label %56 [
i32 33554432, label %28
i32 16777216, label %31
i32 0, label %37
]
28: ; preds = %20
%29 = call i64 @get_tables(i8* %0, i64* %1, i8* %10, i32* %14, i8* %12, i32* %15)
%30 = icmp slt i64 %29, 0
br i1 %30, label %56, label %34
31: ; preds = %20
store i64 578721382704613384, i64* %19
%32 = call i32 @make_code_table(i8* %10, i32 288, i32* %14, i32 15)
%33 = call i32 @make_code_table(i8* %12, i32 30, i32* %15, i32 15)
br label %34
34: ; preds = %28, %31
%35 = call i64 @get_data(i8* %0, i64* %1, i8* %10, i32* %14, i8* %12, i32* %15, void (i8)* %2)
%36 = icmp slt i64 %35, 0
br i1 %36, label %56, label %54
37: ; preds = %20
%38 = load i64, i64* %1
%39 = add nsw i64 %38, 7
%40 = sdiv i64 %39, 8
store i64 %40, i64* %1
%41 = call i8* @read_bits(i8* %0, i64* %1, i32 16)
%42 = ptrtoint i8* %41 to i64
%43 = trunc i64 %42 to i32
%44 = call i8* @read_bits(i8* %0, i64* %1, i32 16)
%45 = icmp eq i32 %43, 0
br i1 %45, label %54, label %46
46: ; preds = %37, %46
%47 = phi i32 [ %52, %46 ], [ 0, %37 ]
%48 = call i8* @read_bits(i8* %0, i64* %1, i32 8)
%49 = ptrtoint i8* %48 to i64
%50 = trunc i64 %49 to i8
%51 = call i32 @pushout(i8 zeroext %50)
%52 = add nuw i32 %47, 1
%53 = icmp eq i32 %52, %43
br i1 %53, label %54, label %46
54: ; preds = %46, %37, %34
%55 = icmp eq i8 %23, 0
br i1 %55, label %20, label %56
56: ; preds = %54, %20, %34, %28
%57 = phi i32 [ -1, %28 ], [ -1, %34 ], [ -1, %20 ], [ 0, %54 ]
ret i32 %57
}