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

/* Variables and functions */
int LzmaDecode(unsigned char *, unsigned int, int, int, int, unsigned char *,
               unsigned int, unsigned char *, unsigned int, unsigned int *);
int /*<<< orphan*/ free(void *);
scalar_t__ malloc(unsigned int);
int /*<<< orphan*/ memcpy(unsigned char *, char *, int);
int lzmaBuffToBuffDecompress(char *dest, int *destlen, char *src, int srclen) {
  unsigned int compressedSize, outSize, outSizeProcessed, lzmaInternalSize;
  void *lzmaInternalData;
  unsigned char properties[5];
  unsigned char prop0;
  int ii;
  int lc, lp, pb;
  int res;
  memcpy(properties, src, sizeof(properties));
  src += sizeof(properties);
  outSize = 0;
  for (ii = 0; ii < 4; ii++) {
    unsigned char b;
    memcpy(&b, src, sizeof(b));
    src += sizeof(b);
    outSize += (unsigned int)(b) << (ii * 8);
  }
  if (outSize == 0xFFFFFFFF) {
    return 1;
  }
  for (ii = 0; ii < 4; ii++) {
    unsigned char b;
    memcpy(&b, src, sizeof(b));
    src += sizeof(b);
    if (b != 0) {
      return 1;
    }
  }
  prop0 = properties[0];
  if (prop0 >= (9 * 5 * 5)) {
    return 1;
  }
  for (pb = 0; prop0 >= (9 * 5); pb++, prop0 -= (9 * 5))
    ;
  for (lp = 0; prop0 >= 9; lp++, prop0 -= 9)
    ;
  lc = prop0;
  compressedSize = srclen - 13;
  lzmaInternalSize = (1846 + (768 << (lc + lp))) * sizeof(unsigned short);
  lzmaInternalData = (void *)malloc(lzmaInternalSize);
  if (lzmaInternalData == 0) {
    return 1;
  }
  res = LzmaDecode((unsigned char *)lzmaInternalData, lzmaInternalSize, lc, lp,
                   pb, (unsigned char *)src, compressedSize,
                   (unsigned char *)dest, outSize, &outSizeProcessed);
  outSize = outSizeProcessed;
  if (res != 0) {
    return 1;
  }
  *destlen = outSize;
  free(lzmaInternalData);
  return 0;
}


x86 assembly (clang, -O0):
<lzmaBuffToBuffDecompress>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x88,%rsp
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %ecx,-0x2c(%rbp)
lea    -0x4d(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0x5,%edx
call   1040 <memcpy@plt>
mov    -0x28(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    11cf <lzmaBuffToBuffDecompress+0x8f>
mov    -0x28(%rbp),%rsi
lea    -0x65(%rbp),%rdi
mov    $0x1,%edx
call   1040 <memcpy@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
movzbl -0x65(%rbp),%eax
mov    -0x54(%rbp),%ecx
shl    $0x3,%ecx
shl    %cl,%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1187 <lzmaBuffToBuffDecompress+0x47>
cmpl   $0xffffffff,-0x34(%rbp)
jne    11e5 <lzmaBuffToBuffDecompress+0xa5>
movl   $0x1,-0xc(%rbp)
jmp    1384 <lzmaBuffToBuffDecompress+0x244>
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    1240 <lzmaBuffToBuffDecompress+0x100>
mov    -0x28(%rbp),%rsi
lea    -0x66(%rbp),%rdi
mov    $0x1,%edx
call   1040 <memcpy@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
movzbl -0x66(%rbp),%eax
cmp    $0x0,%eax
je     122d <lzmaBuffToBuffDecompress+0xed>
movl   $0x1,-0xc(%rbp)
jmp    1384 <lzmaBuffToBuffDecompress+0x244>
jmp    1232 <lzmaBuffToBuffDecompress+0xf2>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11ec <lzmaBuffToBuffDecompress+0xac>
mov    -0x4d(%rbp),%al
mov    %al,-0x4e(%rbp)
movzbl -0x4e(%rbp),%eax
cmp    $0xe1,%eax
jl     1261 <lzmaBuffToBuffDecompress+0x121>
movl   $0x1,-0xc(%rbp)
jmp    1384 <lzmaBuffToBuffDecompress+0x244>
movl   $0x0,-0x60(%rbp)
movzbl -0x4e(%rbp),%eax
cmp    $0x2d,%eax
jl     1292 <lzmaBuffToBuffDecompress+0x152>
jmp    127a <lzmaBuffToBuffDecompress+0x13a>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
movzbl -0x4e(%rbp),%eax
sub    $0x2d,%eax
mov    %al,-0x4e(%rbp)
jmp    1268 <lzmaBuffToBuffDecompress+0x128>
movl   $0x0,-0x5c(%rbp)
movzbl -0x4e(%rbp),%eax
cmp    $0x9,%eax
jl     12c3 <lzmaBuffToBuffDecompress+0x183>
jmp    12ab <lzmaBuffToBuffDecompress+0x16b>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
movzbl -0x4e(%rbp),%eax
sub    $0x9,%eax
mov    %al,-0x4e(%rbp)
jmp    1299 <lzmaBuffToBuffDecompress+0x159>
movzbl -0x4e(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x2c(%rbp),%eax
sub    $0xd,%eax
mov    %eax,-0x30(%rbp)
mov    -0x58(%rbp),%ecx
add    -0x5c(%rbp),%ecx
mov    $0x300,%eax
shl    %cl,%eax
add    $0x736,%eax
cltq
shl    $0x1,%rax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%edi
call   1050 <malloc@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1311 <lzmaBuffToBuffDecompress+0x1d1>
movl   $0x1,-0xc(%rbp)
jmp    1384 <lzmaBuffToBuffDecompress+0x244>
mov    -0x48(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x58(%rbp),%edx
mov    -0x5c(%rbp),%ecx
mov    -0x60(%rbp),%r8d
mov    -0x28(%rbp),%r9
mov    -0x30(%rbp),%ebx
mov    -0x18(%rbp),%r11
mov    -0x34(%rbp),%r10d
lea    -0x38(%rbp),%rax
mov    %ebx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1060 <LzmaDecode@plt>
mov    %eax,-0x64(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     136b <lzmaBuffToBuffDecompress+0x22b>
movl   $0x1,-0xc(%rbp)
jmp    1384 <lzmaBuffToBuffDecompress+0x244>
mov    -0x34(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x88,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<lzmaBuffToBuffDecompress>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,0x10(%rsp)
mov    %rdx,%r12
mov    %rsi,0x28(%rsp)
mov    %rdi,0x30(%rsp)
lea    0x23(%rsp),%rdi
mov    %rdx,%rsi
mov    $0x5,%edx
call   1040 <memcpy@plt>
lea    0x5(%r12),%rsi
lea    0xb(%rsp),%rbp
mov    $0x1,%r13d
mov    %rbp,%rdi
mov    $0x1,%edx
call   1040 <memcpy@plt>
lea    0x6(%r12),%rsi
movzbl 0xb(%rsp),%r14d
mov    %rbp,%rdi
mov    $0x1,%edx
call   1040 <memcpy@plt>
lea    0x7(%r12),%rsi
movzbl 0xb(%rsp),%r15d
shl    $0x8,%r15d
or     %r14d,%r15d
mov    %rbp,%rdi
mov    $0x1,%edx
call   1040 <memcpy@plt>
lea    0x8(%r12),%rsi
movzbl 0xb(%rsp),%ebx
shl    $0x10,%ebx
or     %r15d,%ebx
mov    %rbp,%rdi
mov    $0x1,%edx
call   1040 <memcpy@plt>
movzbl 0xb(%rsp),%ebp
shl    $0x18,%ebp
or     %ebx,%ebp
cmp    $0xffffffff,%ebp
je     1365 <lzmaBuffToBuffDecompress+0x225>
lea    0x9(%r12),%rsi
lea    0xa(%rsp),%rdi
mov    $0x1,%r13d
mov    $0x1,%edx
call   1040 <memcpy@plt>
cmpb   $0x0,0xa(%rsp)
jne    1365 <lzmaBuffToBuffDecompress+0x225>
lea    0xa(%r12),%rsi
lea    0xa(%rsp),%rdi
mov    $0x1,%r13d
mov    $0x1,%edx
call   1040 <memcpy@plt>
cmpb   $0x0,0xa(%rsp)
jne    1365 <lzmaBuffToBuffDecompress+0x225>
lea    0xb(%r12),%rsi
lea    0xa(%rsp),%rdi
mov    $0x1,%r13d
mov    $0x1,%edx
call   1040 <memcpy@plt>
cmpb   $0x0,0xa(%rsp)
jne    1365 <lzmaBuffToBuffDecompress+0x225>
lea    0xc(%r12),%rsi
lea    0xa(%rsp),%rdi
mov    $0x1,%r13d
mov    $0x1,%edx
call   1040 <memcpy@plt>
cmpb   $0x0,0xa(%rsp)
jne    1365 <lzmaBuffToBuffDecompress+0x225>
mov    0x23(%rsp),%al
cmp    $0xe0,%al
ja     1365 <lzmaBuffToBuffDecompress+0x225>
xor    %r14d,%r14d
cmp    $0x2d,%al
jb     12ca <lzmaBuffToBuffDecompress+0x18a>
add    $0xd3,%al
movzbl %al,%eax
imul   $0x6d,%eax,%ecx
shr    $0x8,%ecx
mov    %eax,%edx
sub    %cl,%dl
shr    %dl
add    %cl,%dl
shr    $0x5,%dl
movzbl %dl,%ecx
lea    (%rcx,%rcx,8),%edx
lea    (%rdx,%rdx,4),%edx
sub    %dl,%al
add    $0x1,%cl
movzbl %cl,%ecx
mov    %ecx,0xc(%rsp)
jmp    12d2 <lzmaBuffToBuffDecompress+0x192>
movl   $0x0,0xc(%rsp)
cmp    $0x9,%al
jb     12ed <lzmaBuffToBuffDecompress+0x1ad>
add    $0xf7,%al
movzbl %al,%eax
imul   $0x39,%eax,%ecx
shr    $0x9,%ecx
lea    (%rcx,%rcx,8),%edx
sub    %dl,%al
add    $0x1,%cl
movzbl %cl,%r14d
movzbl %al,%ebx
lea    (%r14,%rbx,1),%ecx
mov    $0x600,%edi
shl    %cl,%edi
add    $0xe6c,%edi
mov    %edi,%r15d
call   1050 <malloc@plt>
test   %rax,%rax
je     1365 <lzmaBuffToBuffDecompress+0x225>
add    $0xd,%r12
mov    %rbx,%rdx
mov    0x10(%rsp),%rbx
add    $0xfffffff3,%ebx
lea    0x1c(%rsp),%r10
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
mov    %r15d,%esi
mov    %r14d,%ecx
mov    0xc(%rsp),%r8d
mov    %r12,%r9
push   %r10
push   %rbp
push   0x40(%rsp)
push   %rbx
call   1060 <LzmaDecode@plt>
add    $0x20,%rsp
test   %eax,%eax
jne    1365 <lzmaBuffToBuffDecompress+0x225>
mov    0x1c(%rsp),%eax
mov    0x28(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
xor    %r13d,%r13d
mov    %r13d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @lzmaBuffToBuffDecompress(i8* %0, i32* %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca [5 x i8]
%16 = alloca i8
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i8
%23 = alloca i8
store i8* %0, i8** %6
store i32* %1, i32** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
%24 = getelementptr inbounds [5 x i8], [5 x i8]* %15, i64 0, i64 0
%25 = load i8*, i8** %8
%26 = call i32 @memcpy(i8* %24, i8* %25, i32 5)
%27 = load i8*, i8** %8
%28 = getelementptr inbounds i8, i8* %27, i64 5
store i8* %28, i8** %8
store i32 0, i32* %11
store i32 0, i32* %17
br label %29
29: ; preds = %44, %4
%30 = load i32, i32* %17
%31 = icmp slt i32 %30, 4
br i1 %31, label %32, label %47
32: ; preds = %29
%33 = load i8*, i8** %8
%34 = call i32 @memcpy(i8* %22, i8* %33, i32 1)
%35 = load i8*, i8** %8
%36 = getelementptr inbounds i8, i8* %35, i64 1
store i8* %36, i8** %8
%37 = load i8, i8* %22
%38 = zext i8 %37 to i32
%39 = load i32, i32* %17
%40 = mul nsw i32 %39, 8
%41 = shl i32 %38, %40
%42 = load i32, i32* %11
%43 = add i32 %42, %41
store i32 %43, i32* %11
br label %44
44: ; preds = %32
%45 = load i32, i32* %17
%46 = add nsw i32 %45, 1
store i32 %46, i32* %17
br label %29
47: ; preds = %29
%48 = load i32, i32* %11
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %51
50: ; preds = %47
store i32 1, i32* %5
br label %140
51: ; preds = %47
store i32 0, i32* %17
br label %52
52: ; preds = %65, %51
%53 = load i32, i32* %17
%54 = icmp slt i32 %53, 4
br i1 %54, label %55, label %68
55: ; preds = %52
%56 = load i8*, i8** %8
%57 = call i32 @memcpy(i8* %23, i8* %56, i32 1)
%58 = load i8*, i8** %8
%59 = getelementptr inbounds i8, i8* %58, i64 1
store i8* %59, i8** %8
%60 = load i8, i8* %23
%61 = zext i8 %60 to i32
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %55
store i32 1, i32* %5
br label %140
64: ; preds = %55
br label %65
65: ; preds = %64
%66 = load i32, i32* %17
%67 = add nsw i32 %66, 1
store i32 %67, i32* %17
br label %52
68: ; preds = %52
%69 = getelementptr inbounds [5 x i8], [5 x i8]* %15, i64 0, i64 0
%70 = load i8, i8* %69
store i8 %70, i8* %16
%71 = load i8, i8* %16
%72 = zext i8 %71 to i32
%73 = icmp sge i32 %72, 225
br i1 %73, label %74, label %75
74: ; preds = %68
store i32 1, i32* %5
br label %140
75: ; preds = %68
store i32 0, i32* %20
br label %76
76: ; preds = %81, %75
%77 = load i8, i8* %16
%78 = zext i8 %77 to i32
%79 = icmp sge i32 %78, 45
br i1 %79, label %80, label %88
80: ; preds = %76
br label %81
81: ; preds = %80
%82 = load i32, i32* %20
%83 = add nsw i32 %82, 1
store i32 %83, i32* %20
%84 = load i8, i8* %16
%85 = zext i8 %84 to i32
%86 = sub nsw i32 %85, 45
%87 = trunc i32 %86 to i8
store i8 %87, i8* %16
br label %76
88: ; preds = %76
store i32 0, i32* %19
br label %89
89: ; preds = %94, %88
%90 = load i8, i8* %16
%91 = zext i8 %90 to i32
%92 = icmp sge i32 %91, 9
br i1 %92, label %93, label %101
93: ; preds = %89
br label %94
94: ; preds = %93
%95 = load i32, i32* %19
%96 = add nsw i32 %95, 1
store i32 %96, i32* %19
%97 = load i8, i8* %16
%98 = zext i8 %97 to i32
%99 = sub nsw i32 %98, 9
%100 = trunc i32 %99 to i8
store i8 %100, i8* %16
br label %89
101: ; preds = %89
%102 = load i8, i8* %16
%103 = zext i8 %102 to i32
store i32 %103, i32* %18
%104 = load i32, i32* %9
%105 = sub nsw i32 %104, 13
store i32 %105, i32* %10
%106 = load i32, i32* %18
%107 = load i32, i32* %19
%108 = add nsw i32 %106, %107
%109 = shl i32 768, %108
%110 = add nsw i32 1846, %109
%111 = sext i32 %110 to i64
%112 = mul i64 %111, 2
%113 = trunc i64 %112 to i32
store i32 %113, i32* %13
%114 = load i32, i32* %13
%115 = call i64 @malloc(i32 %114)
%116 = inttoptr i64 %115 to i8*
store i8* %116, i8** %14
%117 = load i8*, i8** %14
%118 = icmp eq i8* %117, null
br i1 %118, label %119, label %120
119: ; preds = %101
store i32 1, i32* %5
br label %140
120: ; preds = %101
%121 = load i8*, i8** %14
%122 = load i32, i32* %13
%123 = load i32, i32* %18
%124 = load i32, i32* %19
%125 = load i32, i32* %20
%126 = load i8*, i8** %8
%127 = load i32, i32* %10
%128 = load i8*, i8** %6
%129 = load i32, i32* %11
%130 = call i32 @LzmaDecode(i8* %121, i32 %122, i32 %123, i32 %124, i32 %125, i8* %126, i32 %127, i8* %128, i32 %129, i32* %12)
store i32 %130, i32* %21
%131 = load i32, i32* %12
store i32 %131, i32* %11
%132 = load i32, i32* %21
%133 = icmp ne i32 %132, 0
br i1 %133, label %134, label %135
134: ; preds = %120
store i32 1, i32* %5
br label %140
135: ; preds = %120
%136 = load i32, i32* %11
%137 = load i32*, i32** %7
store i32 %136, i32* %137
%138 = load i8*, i8** %14
%139 = call i32 @free(i8* %138)
store i32 0, i32* %5
br label %140
140: ; preds = %135, %134, %119, %74, %63, %50
%141 = load i32, i32* %5
ret i32 %141
}

LLVM IR (-O2):
define i32 @lzmaBuffToBuffDecompress(i8* %0, i32* nocapture writeonly %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca [5 x i8]
%7 = alloca i8
%8 = alloca i8
%9 = bitcast i32* %5 to i8*
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%11 = call i32 @memcpy(i8* %10, i8* %2, i32 5)
%12 = getelementptr inbounds i8, i8* %2, i64 5
%13 = call i32 @memcpy(i8* %7, i8* %12, i32 1)
%14 = getelementptr inbounds i8, i8* %2, i64 6
%15 = load i8, i8* %7
%16 = zext i8 %15 to i32
%17 = call i32 @memcpy(i8* %7, i8* %14, i32 1)
%18 = getelementptr inbounds i8, i8* %2, i64 7
%19 = load i8, i8* %7
%20 = zext i8 %19 to i32
%21 = shl nuw nsw i32 %20, 8
%22 = or i32 %21, %16
%23 = call i32 @memcpy(i8* %7, i8* %18, i32 1)
%24 = getelementptr inbounds i8, i8* %2, i64 8
%25 = load i8, i8* %7
%26 = zext i8 %25 to i32
%27 = shl nuw nsw i32 %26, 16
%28 = or i32 %27, %22
%29 = call i32 @memcpy(i8* %7, i8* %24, i32 1)
%30 = load i8, i8* %7
%31 = zext i8 %30 to i32
%32 = shl nuw i32 %31, 24
%33 = or i32 %32, %28
%34 = icmp eq i32 %33, -1
br i1 %34, label %94, label %35
35: ; preds = %4
%36 = getelementptr inbounds i8, i8* %2, i64 9
%37 = call i32 @memcpy(i8* %8, i8* %36, i32 1)
%38 = load i8, i8* %8
%39 = icmp eq i8 %38, 0
br i1 %39, label %40, label %94
40: ; preds = %35
%41 = getelementptr inbounds i8, i8* %2, i64 10
%42 = call i32 @memcpy(i8* %8, i8* %41, i32 1)
%43 = load i8, i8* %8
%44 = icmp eq i8 %43, 0
br i1 %44, label %45, label %94
45: ; preds = %40
%46 = getelementptr inbounds i8, i8* %2, i64 11
%47 = call i32 @memcpy(i8* %8, i8* %46, i32 1)
%48 = load i8, i8* %8
%49 = icmp eq i8 %48, 0
br i1 %49, label %50, label %94
50: ; preds = %45
%51 = getelementptr inbounds i8, i8* %2, i64 12
%52 = call i32 @memcpy(i8* %8, i8* %51, i32 1)
%53 = load i8, i8* %8
%54 = icmp eq i8 %53, 0
br i1 %54, label %55, label %94
55: ; preds = %50
%56 = getelementptr inbounds i8, i8* %2, i64 13
%57 = load i8, i8* %10
%58 = icmp ugt i8 %57, -32
br i1 %58, label %94, label %59
59: ; preds = %55
%60 = icmp ugt i8 %57, 44
br i1 %60, label %61, label %67
61: ; preds = %59
%62 = add i8 %57, -45
%63 = udiv i8 %62, 45
%64 = urem i8 %62, 45
%65 = add nuw nsw i8 %63, 1
%66 = zext i8 %65 to i32
br label %67
67: ; preds = %61, %59
%68 = phi i8 [ %57, %59 ], [ %64, %61 ]
%69 = phi i32 [ 0, %59 ], [ %66, %61 ]
%70 = icmp ugt i8 %68, 8
br i1 %70, label %71, label %77
71: ; preds = %67
%72 = add nsw i8 %68, -9
%73 = udiv i8 %72, 9
%74 = urem i8 %72, 9
%75 = add nuw nsw i8 %73, 1
%76 = zext i8 %75 to i32
br label %77
77: ; preds = %71, %67
%78 = phi i8 [ %68, %67 ], [ %74, %71 ]
%79 = phi i32 [ 0, %67 ], [ %76, %71 ]
%80 = zext i8 %78 to i32
%81 = add nuw nsw i32 %79, %80
%82 = shl nuw nsw i32 1536, %81
%83 = add nuw nsw i32 %82, 3692
%84 = call i64 @malloc(i32 %83)
%85 = inttoptr i64 %84 to i8*
%86 = icmp eq i64 %84, 0
br i1 %86, label %94, label %87
87: ; preds = %77
%88 = add nsw i32 %3, -13
%89 = call i32 @LzmaDecode(i8* %85, i32 %83, i32 %80, i32 %79, i32 %69, i8* %56, i32 %88, i8* %0, i32 %33, i32* %5)
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = load i32, i32* %5
store i32 %92, i32* %1
%93 = call i32 @free(i8* %85)
br label %94
94: ; preds = %35, %40, %45, %50, %87, %77, %55, %4, %91
%95 = phi i32 [ 0, %91 ], [ 1, %4 ], [ 1, %55 ], [ 1, %77 ], [ 1, %87 ], [ 1, %50 ], [ 1, %45 ], [ 1, %40 ], [ 1, %35 ]
ret i32 %95
}