// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/bzip2-1.0.6/bzlib.c
// Function: BZ2_bzDecompress
int BZ_API(BZ2_bzDecompress) ( bz_stream *strm )
{
   Bool    corrupt;
   DState* s;
   if (strm == NULL) return BZ_PARAM_ERROR;
   s = strm->state;
   if (s == NULL) return BZ_PARAM_ERROR;
   if (s->strm != strm) return BZ_PARAM_ERROR;

   while (True) {
      if (s->state == BZ_X_IDLE) return BZ_SEQUENCE_ERROR;
      if (s->state == BZ_X_OUTPUT) {
         if (s->smallDecompress)
            corrupt = unRLE_obuf_to_output_SMALL ( s ); else
            corrupt = unRLE_obuf_to_output_FAST  ( s );
         if (corrupt) return BZ_DATA_ERROR;
         if (s->nblock_used == s->save_nblock+1 && s->state_out_len == 0) {
            BZ_FINALISE_CRC ( s->calculatedBlockCRC );
            if (s->verbosity >= 3) 
               VPrintf2 ( " {0x%08x, 0x%08x}", s->storedBlockCRC, 
                          s->calculatedBlockCRC );
            if (s->verbosity >= 2) VPrintf0 ( "]" );
            if (s->calculatedBlockCRC != s->storedBlockCRC)
               return BZ_DATA_ERROR;
            s->calculatedCombinedCRC 
               = (s->calculatedCombinedCRC << 1) | 
                    (s->calculatedCombinedCRC >> 31);
            s->calculatedCombinedCRC ^= s->calculatedBlockCRC;
            s->state = BZ_X_BLKHDR_1;
         } else {
            return BZ_OK;
         }
      }
      if (s->state >= BZ_X_MAGIC_1) {
         Int32 r = BZ2_decompress ( s );
         if (r == BZ_STREAM_END) {
            if (s->verbosity >= 3)
               VPrintf2 ( "\n    combined CRCs: stored = 0x%08x, computed = 0x%08x", 
                          s->storedCombinedCRC, s->calculatedCombinedCRC );
            if (s->calculatedCombinedCRC != s->storedCombinedCRC)
               return BZ_DATA_ERROR;
            return r;
         }
         if (s->state != BZ_X_OUTPUT) return r;
      }
   }

   AssertH ( 0, 6001 );

   return 0;  /*NOTREACHED*/
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testq %rdi, %rdi
je 0x9888a
movq 0x30(%rdi), %rbx
testq %rbx, %rbx
je 0x9888a
cmpq %rdi, (%rbx)
jne 0x9888a
movl 0x8(%rbx), %ecx
leaq 0xba137(%rip), %r13     # 0x151b50
cmpl $0x1, %ecx
je 0x98885
cmpl $0x2, %ecx
je 0x97a31
cmpl $0xa, %ecx
jl 0x97a19
jmp 0x98825
cmpb $0x0, 0x2c(%rbx)
movb 0x14(%rbx), %al
je 0x97ed8
movq (%rbx), %rdi
movl 0x20(%rdi), %ecx
testb %al, %al
je 0x981df
testl %ecx, %ecx
je 0x987ad
movl 0x10(%rbx), %eax
testl %eax, %eax
jne 0x97e87
movl 0x444(%rbx), %r8d
movl 0xfa50(%rbx), %r12d
leal 0x1(%r12), %eax
cmpl %eax, %r8d
je 0x987ad
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jg 0x9888a
movl $0x1, 0x10(%rbx)
movl 0x3c(%rbx), %r9d
movl 0x40(%rbx), %r15d
movb %r15b, 0xc(%rbx)
imull $0x186a0, 0x28(%rbx), %r11d # imm = 0x186A0
cmpl %r11d, %r9d
jae 0x9888a
xorl %edx, %edx
movl $0x100, %ecx            # imm = 0x100
leal (%rdx,%rcx), %esi
sarl %esi
movslq %esi, %r10
cmpl %r9d, 0x448(%rbx,%r10,4)
jg 0x97ac7
movl %esi, %edx
jmp 0x97ac9
movl %esi, %ecx
movl %ecx, %esi
subl %edx, %esi
cmpl $0x1, %esi
jne 0x97ab1
movq 0xc60(%rbx), %rsi
movl %r9d, %ecx
shrl %ecx
movq %rsi, 0x8(%rsp)
movzbl (%rsi,%rcx), %esi
leal (,%r9,4), %ecx
andb $0x4, %cl
shrl %cl, %esi
movq 0xc58(%rbx), %rcx
movq %rcx, 0x18(%rsp)
movzwl (%rcx,%r9,2), %ecx
andl $0xf, %esi
shll $0x10, %esi
orl %ecx, %esi
movl %esi, 0x3c(%rbx)
movl 0x18(%rbx), %r10d
testl %r10d, %r10d
jne 0x97b40
movslq 0x1c(%rbx), %r9
leaq 0xba42c(%rip), %r10     # 0x151f50
movl (%r10,%r9,4), %r10d
incl %r9d
cmpl $0x200, %r9d            # imm = 0x200
movl $0x0, %r14d
cmovel %r14d, %r9d
movl %r9d, 0x1c(%rbx)
decl %r10d
movl %r10d, 0x18(%rbx)
leal 0x1(%r8), %ebp
movl %ebp, 0x444(%rbx)
cmpl %r12d, %r8d
je 0x97e76
xorl %r9d, %r9d
cmpl $0x1, %r10d
sete %r9b
movzbl %dl, %edx
xorl %r9d, %edx
cmpl %r15d, %edx
jne 0x97e6e
movl $0x2, 0x10(%rbx)
cmpl %r11d, %esi
jae 0x9888a
xorl %r9d, %r9d
movl $0x100, %edx            # imm = 0x100
leal (%r9,%rdx), %r13d
sarl %r13d
movslq %r13d, %r14
cmpl %esi, 0x448(%rbx,%r14,4)
jg 0x97ba5
movl %r13d, %r9d
jmp 0x97ba8
movl %r13d, %edx
movl %edx, %r14d
subl %r9d, %r14d
cmpl $0x1, %r14d
jne 0x97b8c
movl %esi, %edx
movq 0x18(%rsp), %r14
movzwl (%r14,%rdx,2), %edx
shrl %esi
movq 0x8(%rsp), %r14
movzbl (%r14,%rsi), %r13d
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %r13d
andl $0xf, %r13d
shll $0x10, %r13d
orl %edx, %r13d
movl %r13d, 0x3c(%rbx)
testl %r10d, %r10d
jne 0x97c0b
movslq 0x1c(%rbx), %rcx
leaq 0xba35c(%rip), %rsi     # 0x151f50
movl (%rsi,%rcx,4), %r10d
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %esi
cmovel %esi, %ecx
movl %ecx, 0x1c(%rbx)
decl %r10d
movl %r10d, 0x18(%rbx)
leal 0x2(%r8), %esi
movl %esi, 0x444(%rbx)
cmpl %r12d, %ebp
je 0x97e76
xorl %ebp, %ebp
cmpl $0x1, %r10d
sete %bpl
movzbl %r9b, %ecx
xorl %ebp, %ecx
cmpl %r15d, %ecx
jne 0x97e73
movl $0x3, 0x10(%rbx)
cmpl %r11d, %r13d
jae 0x9888a
xorl %r9d, %r9d
movl $0x100, %ecx            # imm = 0x100
leal (%r9,%rcx), %ebp
sarl %ebp
movslq %ebp, %r14
cmpl %r13d, 0x448(%rbx,%r14,4)
jg 0x97c6e
movl %ebp, %r9d
jmp 0x97c70
movl %ebp, %ecx
movl %ecx, %ebp
subl %r9d, %ebp
cmpl $0x1, %ebp
jne 0x97c56
movl %r13d, %ecx
movq 0x18(%rsp), %r14
movzwl (%r14,%rcx,2), %ebp
shrl %r13d
movq 0x8(%rsp), %rcx
movzbl (%rcx,%r13), %r13d
shll $0x2, %edx
andb $0x4, %dl
movl %edx, %ecx
shrl %cl, %r13d
andl $0xf, %r13d
shll $0x10, %r13d
orl %ebp, %r13d
movl %r13d, 0x3c(%rbx)
testl %r10d, %r10d
jne 0x97cd5
movslq 0x1c(%rbx), %rcx
leaq 0xba292(%rip), %rdx     # 0x151f50
movl (%rdx,%rcx,4), %r10d
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %edx
cmovel %edx, %ecx
movl %ecx, 0x1c(%rbx)
decl %r10d
movl %r10d, 0x18(%rbx)
leal 0x3(%r8), %ecx
movl %ecx, 0x444(%rbx)
cmpl %r12d, %esi
je 0x97e76
xorl %edx, %edx
cmpl $0x1, %r10d
sete %dl
movzbl %r9b, %ecx
xorl %edx, %ecx
cmpl %r15d, %ecx
jne 0x97e73
cmpl %r11d, %r13d
jae 0x9888a
xorl %r9d, %r9d
movl $0x100, %ecx            # imm = 0x100
leal (%r9,%rcx), %edx
sarl %edx
movslq %edx, %rsi
cmpl %r13d, 0x448(%rbx,%rsi,4)
jg 0x97d30
movl %edx, %r9d
jmp 0x97d32
movl %edx, %ecx
movl %ecx, %edx
subl %r9d, %edx
cmpl $0x1, %edx
jne 0x97d18
movl %r13d, %ecx
movq 0x18(%rsp), %rdx
movzwl (%rdx,%rcx,2), %edx
shrl %r13d
movq 0x8(%rsp), %rcx
movzbl (%rcx,%r13), %esi
shll $0x2, %ebp
andb $0x4, %bpl
movl %ebp, %ecx
shrl %cl, %esi
andl $0xf, %esi
shll $0x10, %esi
orl %edx, %esi
movl %esi, 0x3c(%rbx)
testl %r10d, %r10d
jne 0x97d94
movslq 0x1c(%rbx), %rcx
leaq 0xba1d5(%rip), %r10     # 0x151f50
movl (%r10,%rcx,4), %r10d
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %r14d
cmovel %r14d, %ecx
movl %ecx, 0x1c(%rbx)
decl %r10d
movl %r10d, 0x18(%rbx)
xorl %ecx, %ecx
cmpl $0x1, %r10d
sete %cl
leal 0x4(%r8), %ebp
movl %ebp, 0x444(%rbx)
movzbl %r9b, %r9d
xorl %ecx, %r9d
addl $0x4, %r9d
movl %r9d, 0x10(%rbx)
cmpl %r11d, %esi
jae 0x9888a
xorl %eax, %eax
movl $0x100, %ecx            # imm = 0x100
leal (%rax,%rcx), %r9d
sarl %r9d
movslq %r9d, %r11
cmpl %esi, 0x448(%rbx,%r11,4)
jg 0x97de6
movl %r9d, %eax
jmp 0x97de9
movl %r9d, %ecx
movl %ecx, %r9d
subl %eax, %r9d
cmpl $0x1, %r9d
jne 0x97dcd
movl %eax, 0x40(%rbx)
movl %esi, %ecx
movq 0x18(%rsp), %r9
movzwl (%r9,%rcx,2), %r9d
shrl %esi
movq 0x8(%rsp), %rcx
movzbl (%rcx,%rsi), %esi
shll $0x2, %edx
andb $0x4, %dl
movl %edx, %ecx
shrl %cl, %esi
andl $0xf, %esi
shll $0x10, %esi
orl %r9d, %esi
movl %esi, 0x3c(%rbx)
testl %r10d, %r10d
jne 0x97e4c
movslq 0x1c(%rbx), %rcx
leaq 0xba11b(%rip), %rdx     # 0x151f50
movl (%rdx,%rcx,4), %r10d
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %edx
cmovel %edx, %ecx
movl %ecx, 0x1c(%rbx)
decl %r10d
movl %r10d, 0x18(%rbx)
xorl %ecx, %ecx
cmpl $0x1, %r10d
sete %cl
xorl %ecx, %eax
movl %eax, 0x40(%rbx)
addl $0x5, %r8d
movl %r8d, 0x444(%rbx)
jmp 0x97e76
movl %edx, 0x40(%rbx)
jmp 0x97e76
movl %ecx, 0x40(%rbx)
cmpl $0x0, 0x20(%rdi)
leaq 0xb9ccf(%rip), %r13     # 0x151b50
je 0x987ad
movzbl 0xc(%rbx), %eax
movq 0x18(%rdi), %rcx
movb %al, (%rcx)
movl 0xc70(%rbx), %ecx
movl %ecx, %edx
shll $0x8, %edx
shrl $0x18, %ecx
xorl %eax, %ecx
xorl (%r13,%rcx,4), %edx
movl %edx, 0xc70(%rbx)
movl 0x10(%rbx), %eax
decl %eax
movl %eax, 0x10(%rbx)
movq (%rbx), %rdi
incq 0x18(%rdi)
movl 0x20(%rdi), %ecx
decl %ecx
movl %ecx, 0x20(%rdi)
incl 0x24(%rdi)
jne 0x97ecb
incl 0x28(%rdi)
testl %ecx, %ecx
jne 0x97a57
jmp 0x987ad
testb %al, %al
je 0x98536
movq (%rbx), %rcx
cmpl $0x0, 0x20(%rcx)
je 0x987ad
movl 0x10(%rbx), %eax
testl %eax, %eax
jne 0x98182
movl 0x444(%rbx), %edx
movl 0xfa50(%rbx), %r10d
leal 0x1(%r10), %eax
cmpl %eax, %edx
je 0x987ad
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jg 0x9888a
movl $0x1, 0x10(%rbx)
movl 0x3c(%rbx), %esi
movl 0x40(%rbx), %r9d
movb %r9b, 0xc(%rbx)
imull $0x186a0, 0x28(%rbx), %r8d # imm = 0x186A0
cmpl %r8d, %esi
jae 0x9888a
movq 0xc50(%rbx), %rdi
movl (%rdi,%rsi,4), %ebp
movl %ebp, %r14d
shrl $0x8, %r14d
movl %r14d, 0x3c(%rbx)
movl 0x18(%rbx), %esi
testl %esi, %esi
jne 0x97f82
movslq 0x1c(%rbx), %r11
leaq 0xb9fea(%rip), %rsi     # 0x151f50
movl (%rsi,%r11,4), %esi
incl %r11d
cmpl $0x200, %r11d           # imm = 0x200
movl $0x0, %r15d
cmovel %r15d, %r11d
movl %r11d, 0x1c(%rbx)
decl %esi
movl %esi, 0x18(%rbx)
leal 0x1(%rdx), %r11d
movl %r11d, 0x444(%rbx)
cmpl %r10d, %edx
je 0x98178
xorl %r15d, %r15d
cmpl $0x1, %esi
sete %r15b
movzbl %bpl, %ebp
xorl %r15d, %ebp
cmpl %r9d, %ebp
jne 0x98175
movl $0x2, 0x10(%rbx)
cmpl %r8d, %r14d
jae 0x9888a
movl (%rdi,%r14,4), %r15d
movl %r15d, %r14d
shrl $0x8, %r14d
movl %r14d, 0x3c(%rbx)
testl %esi, %esi
jne 0x97fff
movslq 0x1c(%rbx), %r12
leaq 0xb9f6d(%rip), %rsi     # 0x151f50
movl (%rsi,%r12,4), %esi
leal 0x1(%r12), %ebp
cmpl $0x200, %ebp            # imm = 0x200
movl $0x0, %r12d
cmovel %r12d, %ebp
movl %ebp, 0x1c(%rbx)
decl %esi
movl %esi, 0x18(%rbx)
leal 0x2(%rdx), %ebp
movl %ebp, 0x444(%rbx)
cmpl %r10d, %r11d
je 0x98178
xorl %r12d, %r12d
cmpl $0x1, %esi
sete %r12b
movzbl %r15b, %r11d
xorl %r12d, %r11d
cmpl %r9d, %r11d
jne 0x981d3
movl $0x3, 0x10(%rbx)
cmpl %r8d, %r14d
jae 0x9888a
movl (%rdi,%r14,4), %r14d
movl %r14d, %r11d
shrl $0x8, %r11d
movl %r11d, 0x3c(%rbx)
testl %esi, %esi
jne 0x9807a
movslq 0x1c(%rbx), %r15
leaq 0xb9ef2(%rip), %rsi     # 0x151f50
movl (%rsi,%r15,4), %esi
incl %r15d
cmpl $0x200, %r15d           # imm = 0x200
movl $0x0, %r12d
cmovel %r12d, %r15d
movl %r15d, 0x1c(%rbx)
decl %esi
movl %esi, 0x18(%rbx)
leal 0x3(%rdx), %r15d
movl %r15d, 0x444(%rbx)
cmpl %r10d, %ebp
je 0x98178
xorl %ebp, %ebp
cmpl $0x1, %esi
sete %bpl
movzbl %r14b, %r10d
xorl %ebp, %r10d
cmpl %r9d, %r10d
jne 0x981d9
cmpl %r8d, %r11d
jae 0x9888a
movl (%rdi,%r11,4), %r10d
movl %r10d, %r9d
shrl $0x8, %r9d
movl %r9d, 0x3c(%rbx)
testl %esi, %esi
jne 0x980ef
movslq 0x1c(%rbx), %r11
leaq 0xb9e7d(%rip), %rsi     # 0x151f50
movl (%rsi,%r11,4), %esi
incl %r11d
cmpl $0x200, %r11d           # imm = 0x200
movl $0x0, %r14d
cmovel %r14d, %r11d
movl %r11d, 0x1c(%rbx)
decl %esi
movl %esi, 0x18(%rbx)
xorl %r11d, %r11d
cmpl $0x1, %esi
sete %r11b
leal 0x4(%rdx), %ebp
movl %ebp, 0x444(%rbx)
movzbl %r10b, %r10d
xorl %r11d, %r10d
addl $0x4, %r10d
movl %r10d, 0x10(%rbx)
cmpl %r8d, %r9d
jae 0x9888a
movl (%rdi,%r9,4), %edi
movzbl %dil, %eax
movl %eax, 0x40(%rbx)
shrl $0x8, %edi
movl %edi, 0x3c(%rbx)
testl %esi, %esi
jne 0x98157
movslq 0x1c(%rbx), %rdi
leaq 0xb9e11(%rip), %rsi     # 0x151f50
movl (%rsi,%rdi,4), %esi
incl %edi
cmpl $0x200, %edi            # imm = 0x200
movl $0x0, %r8d
cmovel %r8d, %edi
movl %edi, 0x1c(%rbx)
decl %esi
movl %esi, 0x18(%rbx)
xorl %edi, %edi
cmpl $0x1, %esi
sete %dil
xorl %edi, %eax
movl %eax, 0x40(%rbx)
addl $0x5, %edx
movl %edx, 0x444(%rbx)
jmp 0x98178
movl %ebp, 0x40(%rbx)
cmpl $0x0, 0x20(%rcx)
je 0x987ad
movzbl 0xc(%rbx), %eax
movq 0x18(%rcx), %rcx
movb %al, (%rcx)
movl 0xc70(%rbx), %ecx
movl %ecx, %edx
shll $0x8, %edx
shrl $0x18, %ecx
xorl %eax, %ecx
xorl (%r13,%rcx,4), %edx
movl %edx, 0xc70(%rbx)
movl 0x10(%rbx), %eax
decl %eax
movl %eax, 0x10(%rbx)
movq (%rbx), %rcx
incq 0x18(%rcx)
movl 0x20(%rcx), %edx
decl %edx
movl %edx, 0x20(%rcx)
incl 0x24(%rcx)
jne 0x981c6
incl 0x28(%rcx)
testl %edx, %edx
jne 0x97ef0
jmp 0x987ad
movl %r11d, 0x40(%rbx)
jmp 0x98178
movl %r10d, 0x40(%rbx)
jmp 0x98178
testl %ecx, %ecx
je 0x987ad
movl 0x10(%rbx), %eax
testl %eax, %eax
jne 0x984da
movl 0x444(%rbx), %edx
movl 0xfa50(%rbx), %r10d
leal 0x1(%r10), %eax
cmpl %eax, %edx
je 0x987ad
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jg 0x9888a
movl $0x1, 0x10(%rbx)
movl 0x3c(%rbx), %r12d
movl 0x40(%rbx), %r11d
movb %r11b, 0xc(%rbx)
imull $0x186a0, 0x28(%rbx), %r9d # imm = 0x186A0
cmpl %r9d, %r12d
jae 0x9888a
xorl %r15d, %r15d
movl $0x100, %ecx            # imm = 0x100
leal (%r15,%rcx), %esi
sarl %esi
movslq %esi, %r8
cmpl %r12d, 0x448(%rbx,%r8,4)
jg 0x9825a
movl %esi, %r15d
jmp 0x9825c
movl %esi, %ecx
movl %ecx, %esi
subl %r15d, %esi
cmpl $0x1, %esi
jne 0x98242
movq 0xc58(%rbx), %rsi
movq 0xc60(%rbx), %r8
movl %r12d, %ecx
shrl %ecx
movzbl (%r8,%rcx), %r14d
leal (,%r12,4), %ecx
andb $0x4, %cl
shrl %cl, %r14d
movzwl (%rsi,%r12,2), %ecx
andl $0xf, %r14d
shll $0x10, %r14d
orl %ecx, %r14d
movl %r14d, 0x3c(%rbx)
leal 0x1(%rdx), %ebp
movl %ebp, 0x444(%rbx)
cmpl %r10d, %edx
je 0x984d0
movzbl %r15b, %r15d
cmpl %r11d, %r15d
jne 0x984cc
movl $0x2, 0x10(%rbx)
cmpl %r9d, %r14d
jae 0x9888a
movq %rsi, 0x8(%rsp)
xorl %r12d, %r12d
movl $0x100, %r15d           # imm = 0x100
leal (%r12,%r15), %r13d
sarl %r13d
movslq %r13d, %rsi
cmpl %r14d, 0x448(%rbx,%rsi,4)
jg 0x982f6
movl %r13d, %r12d
jmp 0x982f9
movl %r13d, %r15d
movl %r15d, %esi
subl %r12d, %esi
cmpl $0x1, %esi
jne 0x982dd
movl %r14d, %esi
shrl %r14d
movzbl (%r8,%r14), %r15d
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %r15d
movq 0x8(%rsp), %rcx
movzwl (%rcx,%rsi,2), %ecx
andl $0xf, %r15d
shll $0x10, %r15d
orl %ecx, %r15d
movl %r15d, 0x3c(%rbx)
leal 0x2(%rdx), %r14d
movl %r14d, 0x444(%rbx)
cmpl %r10d, %ebp
leaq 0xb980b(%rip), %r13     # 0x151b50
je 0x984d0
movzbl %r12b, %ebp
cmpl %r11d, %ebp
jne 0x9852b
movl $0x3, 0x10(%rbx)
cmpl %r9d, %r15d
jae 0x9888a
xorl %r12d, %r12d
movl $0x100, %r13d           # imm = 0x100
leal (%r12,%r13), %ebp
sarl %ebp
movslq %ebp, %rsi
cmpl %r15d, 0x448(%rbx,%rsi,4)
jg 0x98389
movl %ebp, %r12d
jmp 0x9838c
movl %ebp, %r13d
movl %r13d, %esi
subl %r12d, %esi
cmpl $0x1, %esi
jne 0x98371
movl %r15d, %esi
shrl %r15d
movzbl (%r8,%r15), %r15d
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %r15d
movq 0x8(%rsp), %rcx
movzwl (%rcx,%rsi,2), %ecx
andl $0xf, %r15d
shll $0x10, %r15d
orl %ecx, %r15d
movl %r15d, 0x3c(%rbx)
leal 0x3(%rdx), %esi
movl %esi, 0x444(%rbx)
cmpl %r10d, %r14d
leaq 0xb977a(%rip), %r13     # 0x151b50
je 0x984d0
movzbl %r12b, %r10d
cmpl %r11d, %r10d
jne 0x98530
cmpl %r9d, %r15d
jae 0x9888a
xorl %r11d, %r11d
movl $0x100, %r10d           # imm = 0x100
leal (%r11,%r10), %ebp
sarl %ebp
movslq %ebp, %rsi
cmpl %r15d, 0x448(%rbx,%rsi,4)
jg 0x98413
movl %ebp, %r11d
jmp 0x98416
movl %ebp, %r10d
movl %r10d, %esi
subl %r11d, %esi
cmpl $0x1, %esi
jne 0x983fb
movl %r15d, %esi
shrl %r15d
movzbl (%r8,%r15), %r10d
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %r10d
movq 0x8(%rsp), %rcx
movzwl (%rcx,%rsi,2), %ecx
andl $0xf, %r10d
shll $0x10, %r10d
orl %ecx, %r10d
movl %r10d, 0x3c(%rbx)
leal 0x4(%rdx), %esi
movl %esi, 0x444(%rbx)
movzbl %r11b, %esi
addl $0x4, %esi
movl %esi, 0x10(%rbx)
cmpl %r9d, %r10d
jae 0x9888a
xorl %eax, %eax
movl $0x100, %r9d            # imm = 0x100
leal (%rax,%r9), %r11d
sarl %r11d
movslq %r11d, %rsi
cmpl %r10d, 0x448(%rbx,%rsi,4)
jg 0x9848a
movl %r11d, %eax
jmp 0x9848d
movl %r11d, %r9d
movl %r9d, %esi
subl %eax, %esi
cmpl $0x1, %esi
jne 0x98471
movl %eax, 0x40(%rbx)
movl %r10d, %eax
shrl %r10d
movzbl (%r8,%r10), %esi
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %esi
movq 0x8(%rsp), %rcx
movzwl (%rcx,%rax,2), %eax
andl $0xf, %esi
shll $0x10, %esi
orl %eax, %esi
movl %esi, 0x3c(%rbx)
addl $0x5, %edx
movl %edx, 0x444(%rbx)
jmp 0x984d0
movl %r15d, 0x40(%rbx)
cmpl $0x0, 0x20(%rdi)
je 0x987ad
movzbl 0xc(%rbx), %eax
movq 0x18(%rdi), %rcx
movb %al, (%rcx)
movl 0xc70(%rbx), %ecx
movl %ecx, %edx
shll $0x8, %edx
shrl $0x18, %ecx
xorl %eax, %ecx
xorl (%r13,%rcx,4), %edx
movl %edx, 0xc70(%rbx)
movl 0x10(%rbx), %eax
decl %eax
movl %eax, 0x10(%rbx)
movq (%rbx), %rdi
incq 0x18(%rdi)
movl 0x20(%rdi), %ecx
decl %ecx
movl %ecx, 0x20(%rdi)
incl 0x24(%rdi)
jne 0x9851e
incl 0x28(%rdi)
testl %ecx, %ecx
jne 0x981ea
jmp 0x987ad
movl %ebp, 0x40(%rbx)
jmp 0x984d0
movl %r10d, 0x40(%rbx)
jmp 0x984d0
movl 0xc70(%rbx), %edi
movb 0xc(%rbx), %r12b
movl 0x10(%rbx), %r11d
movl 0x444(%rbx), %ebp
movl 0x40(%rbx), %esi
movq 0xc50(%rbx), %rax
movq %rax, 0x8(%rsp)
movl 0x3c(%rbx), %r8d
movq (%rbx), %rax
movq 0x18(%rax), %rdx
movl 0x20(%rax), %r9d
movl 0xfa50(%rbx), %eax
movq %rax, 0x18(%rsp)
incl %eax
movl %eax, 0x14(%rsp)
imull $0x186a0, 0x28(%rbx), %eax # imm = 0x186A0
movl %eax, 0x10(%rsp)
movl %r9d, 0x24(%rsp)
testl %r11d, %r11d
jle 0x985d9
testl %r9d, %r9d
je 0x98762
movzbl %r12b, %ecx
movl %r9d, %r15d
movl %r11d, %r13d
decq %r13
xorl %eax, %eax
cmpl %eax, %r13d
je 0x985f6
movb %cl, (%rdx,%rax)
movl %edi, %r10d
shll $0x8, %r10d
shrl $0x18, %edi
movl %edi, %r14d
xorl %ecx, %r14d
movl %r10d, %edi
leaq 0xb9588(%rip), %r10     # 0x151b50
xorl (%r10,%r14,4), %edi
incq %rax
cmpl %eax, %r15d
jne 0x985a6
jmp 0x9875c
movl %ebp, %ecx
movl %esi, %r15d
leaq 0xb956b(%rip), %r13     # 0x151b50
movq 0x8(%rsp), %r10
movl 0x14(%rsp), %r14d
movl 0x10(%rsp), %r11d
jmp 0x9863e
subl %eax, %r9d
addq %rax, %rdx
leaq 0xb954d(%rip), %r13     # 0x151b50
movq 0x8(%rsp), %r10
movl 0x14(%rsp), %r14d
movl 0x10(%rsp), %r11d
testl %r9d, %r9d
je 0x98869
movb %r12b, (%rdx)
movl %edi, %eax
shll $0x8, %eax
shrl $0x18, %edi
movzbl %r12b, %ecx
xorl %edi, %ecx
xorl (%r13,%rcx,4), %eax
incq %rdx
decl %r9d
movl %ebp, %ecx
movl %esi, %r15d
movl %eax, %edi
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
cmpl %r14d, %ecx
jg 0x9888a
je 0x98877
cmpl %r11d, %r8d
jae 0x9888a
movl %r8d, %esi
movl (%r10,%rsi,4), %r8d
movzbl %r8b, %esi
shrl $0x8, %r8d
leal 0x1(%rcx), %ebp
cmpl %r15d, %esi
jne 0x9867b
cmpl 0x18(%rsp), %ecx
jne 0x98680
movl %r15d, %esi
movl %r15d, %r12d
jmp 0x98612
cmpl %r11d, %r8d
jae 0x9888a
movl (%r10,%r8,4), %r13d
movl %r13d, %r8d
shrl $0x8, %r8d
leal 0x2(%rcx), %r10d
movl $0x2, %r11d
movl %r14d, %ebp
movl %r15d, %esi
movl %r15d, %r12d
cmpl %r14d, %r10d
je 0x98589
movzbl %r13b, %esi
movl %r10d, %ebp
movl %r15d, %r12d
cmpl %r15d, %esi
jne 0x98589
cmpl 0x10(%rsp), %r8d
jae 0x9888a
movq 0x8(%rsp), %rsi
movl (%rsi,%r8,4), %r13d
movl %r13d, %r8d
shrl $0x8, %r8d
leal 0x3(%rcx), %r10d
movl $0x3, %r11d
movl 0x14(%rsp), %r14d
movl %r14d, %ebp
movl %r15d, %esi
movl %r15d, %r12d
cmpl %r14d, %r10d
je 0x98589
movzbl %r13b, %esi
movl %r10d, %ebp
movl %r15d, %r12d
cmpl %r15d, %esi
jne 0x98589
movl 0x10(%rsp), %ebp
cmpl %ebp, %r8d
jae 0x9888a
movq 0x8(%rsp), %r10
movl (%r10,%r8,4), %r11d
movl %r11d, %esi
shrl $0x8, %esi
cmpl %ebp, %esi
jae 0x9888a
movl $0xff, %eax
andl %eax, %r11d
addl $0x4, %r11d
movl (%r10,%rsi,4), %r8d
movl %r8d, %esi
andl %eax, %esi
shrl $0x8, %r8d
addl $0x5, %ecx
movl %ecx, %ebp
movl %r15d, %r12d
jmp 0x98589
addq %rax, %rdx
subl %eax, %r11d
xorl %r9d, %r9d
leaq 0xb93e4(%rip), %r13     # 0x151b50
movq (%rbx), %rax
movl 0x24(%rsp), %ecx
subl %r9d, %ecx
addl %ecx, 0x24(%rax)
jae 0x9877e
incl 0x28(%rax)
movl %edi, 0xc70(%rbx)
movb %r12b, 0xc(%rbx)
movl %r11d, 0x10(%rbx)
movl %ebp, 0x444(%rbx)
movl %esi, 0x40(%rbx)
movq 0x8(%rsp), %rcx
movq %rcx, 0xc50(%rbx)
movl %r8d, 0x3c(%rbx)
movq %rdx, 0x18(%rax)
movl %r9d, 0x20(%rax)
movl 0xfa50(%rbx), %ecx
incl %ecx
xorl %eax, %eax
cmpl %ecx, 0x444(%rbx)
jne 0x9888a
cmpl $0x0, 0x10(%rbx)
jne 0x9888a
movl 0xc70(%rbx), %ecx
notl %ecx
movl %ecx, 0xc70(%rbx)
movl 0x34(%rbx), %eax
cmpl $0x3, %eax
jge 0x98843
cmpl $0x2, %eax
jl 0x987fc
movq 0xb87d1(%rip), %rax     # 0x150fc0
movq (%rax), %rsi
movl $0x5d, %edi
callq 0xb7d0
movl 0xc70(%rbx), %eax
cmpl 0xc68(%rbx), %eax
jne 0x988b9
movl 0xc74(%rbx), %ecx
roll %ecx
xorl %eax, %ecx
movl %ecx, 0xc74(%rbx)
movl $0xe, 0x8(%rbx)
movq %rbx, %rdi
callq 0xb5944
cmpl $0x4, %eax
je 0x98899
movl $0x2, %ecx
cmpl $0x2, 0x8(%rbx)
je 0x97a19
jmp 0x9888a
movq 0xb8776(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movl 0xc68(%rbx), %edx
leaq 0x5f3dc(%rip), %rsi     # 0xf7c36
xorl %eax, %eax
callq 0xb8d0
movl 0x34(%rbx), %eax
jmp 0x987e3
xorl %r9d, %r9d
movl $0x1, %r11d
jmp 0x9876c
movl %r14d, %ebp
xorl %r11d, %r11d
movl %r15d, %esi
jmp 0x9876c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3, 0x34(%rbx)
jge 0x988c0
movl 0xc74(%rbx), %eax
xorl %ecx, %ecx
cmpl 0xc6c(%rbx), %eax
sete %cl
leal -0x4(,%rcx,8), %eax
jmp 0x9888a
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0x9888a
movq 0xb86f9(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movl 0xc6c(%rbx), %edx
movl 0xc74(%rbx), %ecx
leaq 0x5f36b(%rip), %rsi     # 0xf7c48
xorl %eax, %eax
callq 0xb8d0
jmp 0x9889f