// File: /workspace/github_c_makefile_star2_O1/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 0x98497
movq 0x30(%rdi), %rbx
testq %rbx, %rbx
je 0x98497
cmpq %rdi, (%rbx)
je 0x984a6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb96a3(%rip), %r13     # 0x151b50
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
je 0x984c3
cmpl $0x1, %eax
jne 0x992b1
jmp 0x99372
cmpb $0x0, 0x2c(%rbx)
je 0x98cae
cmpb $0x0, 0x14(%rbx)
movq (%rbx), %rax
movl 0x20(%rax), %ecx
je 0x98ca1
testl %ecx, %ecx
je 0x9923a
cmpl $0x0, 0x10(%rbx)
jne 0x9891c
movl 0x444(%rbx), %edi
movl 0xfa50(%rbx), %r14d
leal 0x1(%r14), %eax
cmpl %eax, %edi
je 0x9923a
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jg 0x98497
movl $0x1, 0x10(%rbx)
movl 0x3c(%rbx), %esi
movl 0x40(%rbx), %r11d
movb %r11b, 0xc(%rbx)
imull $0x186a0, 0x28(%rbx), %r9d # imm = 0x186A0
cmpl %r9d, %esi
jae 0x98497
xorl %edx, %edx
movl $0x100, %ecx            # imm = 0x100
leal (%rdx,%rcx), %r8d
sarl %r8d
movslq %r8d, %r10
cmpl %esi, 0x448(%rbx,%r10,4)
jg 0x98552
movl %r8d, %edx
jmp 0x98555
movl %r8d, %ecx
movl %ecx, %r8d
subl %edx, %r8d
cmpl $0x1, %r8d
jne 0x98539
movq 0xc60(%rbx), %r8
movl %esi, %ecx
shrl %ecx
movq %r8, (%rsp)
movzbl (%r8,%rcx), %r15d
leal (,%rsi,4), %ecx
andb $0x4, %cl
shrl %cl, %r15d
movq 0xc58(%rbx), %r10
movzwl (%r10,%rsi,2), %ecx
andl $0xf, %r15d
shll $0x10, %r15d
orl %ecx, %r15d
movl %r15d, 0x3c(%rbx)
cmpl $0x0, 0x18(%rbx)
jne 0x985ca
movslq 0x1c(%rbx), %rsi
leaq 0xb99a2(%rip), %r8      # 0x151f50
movl (%r8,%rsi,4), %ebp
movl %ebp, 0x18(%rbx)
incl %esi
cmpl $0x200, %esi            # imm = 0x200
movl $0x0, %r8d
cmovel %r8d, %esi
movl %esi, 0x1c(%rbx)
movl 0x18(%rbx), %ebp
decl %ebp
movl %ebp, 0x18(%rbx)
leal 0x1(%rdi), %esi
movl %esi, 0x444(%rbx)
cmpl %r14d, %edi
je 0x98903
xorl %r12d, %r12d
cmpl $0x1, %ebp
sete %r12b
movzbl %dl, %edx
xorl %r12d, %edx
cmpl %r11d, %edx
jne 0x988fb
movl $0x2, 0x10(%rbx)
cmpl %r9d, %r15d
jae 0x98497
xorl %r12d, %r12d
movl $0x100, %edx            # imm = 0x100
leal (%r12,%rdx), %r13d
sarl %r13d
movslq %r13d, %r8
cmpl %r15d, 0x448(%rbx,%r8,4)
jg 0x9862e
movl %r13d, %r12d
jmp 0x98631
movl %r13d, %edx
movl %edx, %r8d
subl %r12d, %r8d
cmpl $0x1, %r8d
jne 0x98615
movl %r15d, %edx
movzwl (%r10,%rdx,2), %edx
shrl %r15d
movq (%rsp), %r8
movzbl (%r8,%r15), %r15d
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %r15d
andl $0xf, %r15d
shll $0x10, %r15d
orl %edx, %r15d
movl %r15d, 0x3c(%rbx)
testl %ebp, %ebp
jne 0x98695
movslq 0x1c(%rbx), %rcx
leaq 0xb98d8(%rip), %r8      # 0x151f50
movl (%r8,%rcx,4), %r8d
movl %r8d, 0x18(%rbx)
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %r8d
cmovel %r8d, %ecx
movl %ecx, 0x1c(%rbx)
movl 0x18(%rbx), %r13d
decl %r13d
movl %r13d, 0x18(%rbx)
leal 0x2(%rdi), %ebp
movl %ebp, 0x444(%rbx)
cmpl %r14d, %esi
je 0x98903
xorl %esi, %esi
cmpl $0x1, %r13d
sete %sil
movzbl %r12b, %ecx
xorl %esi, %ecx
cmpl %r11d, %ecx
jne 0x98900
movl $0x3, 0x10(%rbx)
cmpl %r9d, %r15d
jae 0x98497
xorl %r12d, %r12d
movl $0x100, %ecx            # imm = 0x100
leal (%r12,%rcx), %esi
sarl %esi
movslq %esi, %r8
cmpl %r15d, 0x448(%rbx,%r8,4)
jg 0x986fb
movl %esi, %r12d
jmp 0x986fd
movl %esi, %ecx
movl %ecx, %esi
subl %r12d, %esi
cmpl $0x1, %esi
jne 0x986e3
movl %r15d, %ecx
movzwl (%r10,%rcx,2), %esi
shrl %r15d
movq (%rsp), %rcx
movzbl (%rcx,%r15), %r15d
shll $0x2, %edx
andb $0x4, %dl
movl %edx, %ecx
shrl %cl, %r15d
andl $0xf, %r15d
shll $0x10, %r15d
orl %esi, %r15d
movl %r15d, 0x3c(%rbx)
testl %r13d, %r13d
jne 0x9875e
movslq 0x1c(%rbx), %rcx
leaq 0xb980b(%rip), %rdx     # 0x151f50
movl (%rdx,%rcx,4), %edx
movl %edx, 0x18(%rbx)
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %edx
cmovel %edx, %ecx
movl %ecx, 0x1c(%rbx)
movl 0x18(%rbx), %r13d
decl %r13d
movl %r13d, 0x18(%rbx)
leal 0x3(%rdi), %ecx
movl %ecx, 0x444(%rbx)
cmpl %r14d, %ebp
je 0x98903
xorl %edx, %edx
cmpl $0x1, %r13d
sete %dl
movzbl %r12b, %ecx
xorl %edx, %ecx
cmpl %r11d, %ecx
jne 0x98900
cmpl %r9d, %r15d
jae 0x98497
xorl %r14d, %r14d
movl $0x100, %ecx            # imm = 0x100
leal (%r14,%rcx), %edx
sarl %edx
movslq %edx, %r8
cmpl %r15d, 0x448(%rbx,%r8,4)
jg 0x987bc
movl %edx, %r14d
jmp 0x987be
movl %edx, %ecx
movl %ecx, %edx
subl %r14d, %edx
cmpl $0x1, %edx
jne 0x987a4
movl %r15d, %ecx
movzwl (%r10,%rcx,2), %edx
shrl %r15d
movq (%rsp), %rcx
movzbl (%rcx,%r15), %r11d
shll $0x2, %esi
andb $0x4, %sil
movl %esi, %ecx
shrl %cl, %r11d
andl $0xf, %r11d
shll $0x10, %r11d
orl %edx, %r11d
movl %r11d, 0x3c(%rbx)
testl %r13d, %r13d
jne 0x98820
movslq 0x1c(%rbx), %rcx
leaq 0xb9749(%rip), %rsi     # 0x151f50
movl (%rsi,%rcx,4), %esi
movl %esi, 0x18(%rbx)
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %esi
cmovel %esi, %ecx
movl %ecx, 0x1c(%rbx)
movl 0x18(%rbx), %esi
decl %esi
movl %esi, 0x18(%rbx)
xorl %ecx, %ecx
cmpl $0x1, %esi
sete %cl
leal 0x4(%rdi), %r8d
movl %r8d, 0x444(%rbx)
movzbl %r14b, %r8d
xorl %ecx, %r8d
addl $0x4, %r8d
movl %r8d, 0x10(%rbx)
cmpl %r9d, %r11d
jae 0x98497
xorl %eax, %eax
movl $0x100, %ecx            # imm = 0x100
leal (%rax,%rcx), %r9d
sarl %r9d
movslq %r9d, %r8
cmpl %r11d, 0x448(%rbx,%r8,4)
jg 0x98873
movl %r9d, %eax
jmp 0x98876
movl %r9d, %ecx
movl %ecx, %r8d
subl %eax, %r8d
cmpl $0x1, %r8d
jne 0x9885a
movl %eax, 0x40(%rbx)
movl %r11d, %ecx
movzwl (%r10,%rcx,2), %r8d
shrl %r11d
movq (%rsp), %rcx
movzbl (%rcx,%r11), %r9d
shll $0x2, %edx
andb $0x4, %dl
movl %edx, %ecx
shrl %cl, %r9d
andl $0xf, %r9d
shll $0x10, %r9d
orl %r8d, %r9d
movl %r9d, 0x3c(%rbx)
testl %esi, %esi
jne 0x988db
movslq 0x1c(%rbx), %rcx
leaq 0xb968e(%rip), %rdx     # 0x151f50
movl (%rdx,%rcx,4), %edx
movl %edx, 0x18(%rbx)
incl %ecx
cmpl $0x200, %ecx            # imm = 0x200
movl $0x0, %edx
cmovel %edx, %ecx
movl %ecx, 0x1c(%rbx)
movl 0x18(%rbx), %ecx
decl %ecx
movl %ecx, 0x18(%rbx)
xorl %edx, %edx
cmpl $0x1, %ecx
sete %dl
xorl %edx, %eax
movl %eax, 0x40(%rbx)
addl $0x5, %edi
movl %edi, 0x444(%rbx)
jmp 0x98903
movl %edx, 0x40(%rbx)
jmp 0x98903
movl %ecx, 0x40(%rbx)
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax)
leaq 0xb923f(%rip), %r13     # 0x151b50
jne 0x984e5
jmp 0x9923a
movb 0xc(%rbx), %cl
movq 0x18(%rax), %rax
movb %cl, (%rax)
movl 0xc70(%rbx), %eax
movl %eax, %ecx
shll $0x8, %ecx
shrl $0x18, %eax
movzbl 0xc(%rbx), %edx
xorl %eax, %edx
xorl (%r13,%rdx,4), %ecx
movl %ecx, 0xc70(%rbx)
decl 0x10(%rbx)
movq (%rbx), %rax
incq 0x18(%rax)
movl 0x20(%rax), %ecx
decl %ecx
movl %ecx, 0x20(%rax)
incl 0x24(%rax)
jne 0x984dd
incl 0x28(%rax)
jmp 0x984dd
cmpl $0x0, 0x10(%rbx)
jne 0x98c5f
movl 0x444(%rbx), %edx
movl 0xfa50(%rbx), %r9d
leal 0x1(%r9), %eax
cmpl %eax, %edx
je 0x9923a
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jg 0x98497
movl $0x1, 0x10(%rbx)
movl 0x3c(%rbx), %r11d
movl 0x40(%rbx), %r10d
movb %r10b, 0xc(%rbx)
imull $0x186a0, 0x28(%rbx), %r8d # imm = 0x186A0
cmpl %r8d, %r11d
jae 0x98497
xorl %r15d, %r15d
movl $0x100, %ecx            # imm = 0x100
leal (%r15,%rcx), %esi
sarl %esi
movslq %esi, %rdi
cmpl %r11d, 0x448(%rbx,%rdi,4)
jg 0x989d9
movl %esi, %r15d
jmp 0x989db
movl %esi, %ecx
movl %ecx, %esi
subl %r15d, %esi
cmpl $0x1, %esi
jne 0x989c1
movq 0xc58(%rbx), %rsi
movq 0xc60(%rbx), %rdi
movl %r11d, %ecx
shrl %ecx
movzbl (%rdi,%rcx), %r14d
leal (,%r11,4), %ecx
andb $0x4, %cl
shrl %cl, %r14d
movzwl (%rsi,%r11,2), %ecx
andl $0xf, %r14d
shll $0x10, %r14d
orl %ecx, %r14d
movl %r14d, 0x3c(%rbx)
leal 0x1(%rdx), %r11d
movl %r11d, 0x444(%rbx)
cmpl %r9d, %edx
je 0x98c41
movzbl %r15b, %ebp
cmpl %r10d, %ebp
jne 0x98c3e
movl $0x2, 0x10(%rbx)
cmpl %r8d, %r14d
jae 0x98497
xorl %r15d, %r15d
movl $0x100, %r12d           # imm = 0x100
leal (%r15,%r12), %ebp
sarl %ebp
movslq %ebp, %r13
cmpl %r14d, 0x448(%rbx,%r13,4)
jg 0x98a71
movl %ebp, %r15d
jmp 0x98a74
movl %ebp, %r12d
movl %r12d, %ebp
subl %r15d, %ebp
cmpl $0x1, %ebp
jne 0x98a59
movl %r14d, %r12d
shrl %r14d
movzbl (%rdi,%r14), %r14d
shll $0x2, %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 0x2(%rdx), %ebp
movl %ebp, 0x444(%rbx)
cmpl %r9d, %r11d
leaq 0xb9096(%rip), %r13     # 0x151b50
je 0x98c41
movzbl %r15b, %r11d
cmpl %r10d, %r11d
jne 0x98c53
movl $0x3, 0x10(%rbx)
cmpl %r8d, %r14d
jae 0x98497
xorl %r15d, %r15d
movl $0x100, %r11d           # imm = 0x100
leal (%r15,%r11), %r12d
sarl %r12d
movslq %r12d, %r13
cmpl %r14d, 0x448(%rbx,%r13,4)
jg 0x98aff
movl %r12d, %r15d
jmp 0x98b02
movl %r12d, %r11d
movl %r11d, %r12d
subl %r15d, %r12d
cmpl $0x1, %r12d
jne 0x98ae6
movl %r14d, %r12d
shrl %r14d
movzbl (%rdi,%r14), %r11d
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %r11d
movzwl (%rsi,%r12,2), %ecx
andl $0xf, %r11d
shll $0x10, %r11d
orl %ecx, %r11d
movl %r11d, 0x3c(%rbx)
leal 0x3(%rdx), %r14d
movl %r14d, 0x444(%rbx)
cmpl %r9d, %ebp
leaq 0xb9005(%rip), %r13     # 0x151b50
je 0x98c41
movzbl %r15b, %r9d
cmpl %r10d, %r9d
jne 0x98c59
cmpl %r8d, %r11d
jae 0x98497
xorl %r10d, %r10d
movl $0x100, %r9d            # imm = 0x100
leal (%r10,%r9), %ebp
sarl %ebp
movslq %ebp, %r14
cmpl %r11d, 0x448(%rbx,%r14,4)
jg 0x98b88
movl %ebp, %r10d
jmp 0x98b8b
movl %ebp, %r9d
movl %r9d, %ebp
subl %r10d, %ebp
cmpl $0x1, %ebp
jne 0x98b70
movl %r11d, %r14d
shrl %r11d
movzbl (%rdi,%r11), %r9d
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %r9d
movzwl (%rsi,%r14,2), %ecx
andl $0xf, %r9d
shll $0x10, %r9d
orl %ecx, %r9d
movl %r9d, 0x3c(%rbx)
leal 0x4(%rdx), %r11d
movl %r11d, 0x444(%rbx)
movzbl %r10b, %r10d
addl $0x4, %r10d
movl %r10d, 0x10(%rbx)
cmpl %r8d, %r9d
jae 0x98497
xorl %eax, %eax
movl $0x100, %r8d            # imm = 0x100
leal (%rax,%r8), %r10d
sarl %r10d
movslq %r10d, %r11
cmpl %r9d, 0x448(%rbx,%r11,4)
jg 0x98bff
movl %r10d, %eax
jmp 0x98c02
movl %r10d, %r8d
movl %r8d, %r10d
subl %eax, %r10d
cmpl $0x1, %r10d
jne 0x98be6
movl %eax, 0x40(%rbx)
movl %r9d, %eax
shrl %r9d
movzbl (%rdi,%r9), %edi
shll $0x2, %ecx
andb $0x4, %cl
shrl %cl, %edi
movzwl (%rsi,%rax,2), %eax
andl $0xf, %edi
shll $0x10, %edi
orl %eax, %edi
movl %edi, 0x3c(%rbx)
addl $0x5, %edx
movl %edx, 0x444(%rbx)
jmp 0x98c41
movl %ebp, 0x40(%rbx)
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax)
jne 0x98967
jmp 0x9923a
movl %r11d, 0x40(%rbx)
jmp 0x98c41
movl %r9d, 0x40(%rbx)
jmp 0x98c41
movb 0xc(%rbx), %cl
movq 0x18(%rax), %rax
movb %cl, (%rax)
movl 0xc70(%rbx), %eax
movl %eax, %ecx
shll $0x8, %ecx
shrl $0x18, %eax
movzbl 0xc(%rbx), %edx
xorl %eax, %edx
xorl (%r13,%rdx,4), %ecx
movl %ecx, 0xc70(%rbx)
decl 0x10(%rbx)
movq (%rbx), %rax
incq 0x18(%rax)
movl 0x20(%rax), %ecx
decl %ecx
movl %ecx, 0x20(%rax)
incl 0x24(%rax)
jne 0x98ca1
incl 0x28(%rax)
testl %ecx, %ecx
jne 0x98967
jmp 0x9923a
cmpb $0x0, 0x14(%rbx)
je 0x98fdb
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax)
je 0x9923a
cmpl $0x0, 0x10(%rbx)
je 0x98d16
movb 0xc(%rbx), %cl
movq 0x18(%rax), %rax
movb %cl, (%rax)
movl 0xc70(%rbx), %eax
movl %eax, %ecx
shll $0x8, %ecx
shrl $0x18, %eax
movzbl 0xc(%rbx), %edx
xorl %eax, %edx
xorl (%r13,%rdx,4), %ecx
movl %ecx, 0xc70(%rbx)
decl 0x10(%rbx)
movq (%rbx), %rax
incq 0x18(%rax)
movl 0x20(%rax), %ecx
decl %ecx
movl %ecx, 0x20(%rax)
incl 0x24(%rax)
jne 0x98d0d
incl 0x28(%rax)
testl %ecx, %ecx
jne 0x98cc5
jmp 0x9923a
movl 0x444(%rbx), %ecx
movl 0xfa50(%rbx), %r8d
leal 0x1(%r8), %eax
cmpl %eax, %ecx
je 0x9923a
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jg 0x98497
movl $0x1, 0x10(%rbx)
movl 0x3c(%rbx), %r9d
movl 0x40(%rbx), %edi
movb %dil, 0xc(%rbx)
imull $0x186a0, 0x28(%rbx), %esi # imm = 0x186A0
cmpl %esi, %r9d
jae 0x98497
movq 0xc50(%rbx), %rdx
movl (%rdx,%r9,4), %r11d
movl %r11d, %r10d
shrl $0x8, %r10d
movl %r10d, 0x3c(%rbx)
cmpl $0x0, 0x18(%rbx)
jne 0x98da2
movslq 0x1c(%rbx), %r9
leaq 0xb91cd(%rip), %r14     # 0x151f50
movl (%r14,%r9,4), %ebp
movl %ebp, 0x18(%rbx)
incl %r9d
cmpl $0x200, %r9d            # imm = 0x200
movl $0x0, %r14d
cmovel %r14d, %r9d
movl %r9d, 0x1c(%rbx)
movl 0x18(%rbx), %r14d
decl %r14d
movl %r14d, 0x18(%rbx)
leal 0x1(%rcx), %r9d
movl %r9d, 0x444(%rbx)
cmpl %r8d, %ecx
je 0x98cb8
xorl %ebp, %ebp
cmpl $0x1, %r14d
sete %bpl
movzbl %r11b, %r11d
xorl %ebp, %r11d
cmpl %edi, %r11d
jne 0x98fc0
movl $0x2, 0x10(%rbx)
cmpl %esi, %r10d
jae 0x98497
movl (%rdx,%r10,4), %ebp
movl %ebp, %r11d
shrl $0x8, %r11d
movl %r11d, 0x3c(%rbx)
testl %r14d, %r14d
jne 0x98e2a
movslq 0x1c(%rbx), %r10
leaq 0xb9146(%rip), %r14     # 0x151f50
movl (%r14,%r10,4), %r14d
movl %r14d, 0x18(%rbx)
incl %r10d
cmpl $0x200, %r10d           # imm = 0x200
movl $0x0, %r14d
cmovel %r14d, %r10d
movl %r10d, 0x1c(%rbx)
movl 0x18(%rbx), %r14d
decl %r14d
movl %r14d, 0x18(%rbx)
leal 0x2(%rcx), %r10d
movl %r10d, 0x444(%rbx)
cmpl %r8d, %r9d
je 0x98cb8
xorl %r15d, %r15d
cmpl $0x1, %r14d
sete %r15b
movzbl %bpl, %r9d
xorl %r15d, %r9d
cmpl %edi, %r9d
jne 0x98fc9
movl $0x3, 0x10(%rbx)
cmpl %esi, %r11d
jae 0x98497
movl (%rdx,%r11,4), %r11d
movl %r11d, %r9d
shrl $0x8, %r9d
movl %r9d, 0x3c(%rbx)
testl %r14d, %r14d
jne 0x98eb1
movslq 0x1c(%rbx), %r14
leaq 0xb90bd(%rip), %r15     # 0x151f50
movl (%r15,%r14,4), %ebp
movl %ebp, 0x18(%rbx)
leal 0x1(%r14), %ebp
cmpl $0x200, %ebp            # imm = 0x200
movl $0x0, %r14d
cmovel %r14d, %ebp
movl %ebp, 0x1c(%rbx)
movl 0x18(%rbx), %ebp
decl %ebp
movl %ebp, 0x18(%rbx)
leal 0x3(%rcx), %r14d
movl %r14d, 0x444(%rbx)
cmpl %r8d, %r10d
je 0x98cb8
xorl %r10d, %r10d
cmpl $0x1, %ebp
sete %r10b
movzbl %r11b, %r8d
xorl %r10d, %r8d
cmpl %edi, %r8d
jne 0x98fd2
cmpl %esi, %r9d
jae 0x98497
movl (%rdx,%r9,4), %r8d
movl %r8d, %edi
shrl $0x8, %edi
movl %edi, 0x3c(%rbx)
testl %ebp, %ebp
jne 0x98f2c
movslq 0x1c(%rbx), %r9
leaq 0xb9044(%rip), %r10     # 0x151f50
movl (%r10,%r9,4), %r10d
movl %r10d, 0x18(%rbx)
incl %r9d
cmpl $0x200, %r9d            # imm = 0x200
movl $0x0, %r10d
cmovel %r10d, %r9d
movl %r9d, 0x1c(%rbx)
movl 0x18(%rbx), %r9d
decl %r9d
movl %r9d, 0x18(%rbx)
xorl %r10d, %r10d
cmpl $0x1, %r9d
sete %r10b
leal 0x4(%rcx), %r11d
movl %r11d, 0x444(%rbx)
movzbl %r8b, %r8d
xorl %r10d, %r8d
addl $0x4, %r8d
movl %r8d, 0x10(%rbx)
cmpl %esi, %edi
jae 0x98497
movl (%rdx,%rdi,4), %edx
movzbl %dl, %eax
movl %eax, 0x40(%rbx)
shrl $0x8, %edx
movl %edx, 0x3c(%rbx)
testl %r9d, %r9d
jne 0x98f9c
movslq 0x1c(%rbx), %rdx
leaq 0xb8fcd(%rip), %rsi     # 0x151f50
movl (%rsi,%rdx,4), %esi
movl %esi, 0x18(%rbx)
incl %edx
cmpl $0x200, %edx            # imm = 0x200
movl $0x0, %esi
cmovel %esi, %edx
movl %edx, 0x1c(%rbx)
movl 0x18(%rbx), %edx
decl %edx
movl %edx, 0x18(%rbx)
xorl %esi, %esi
cmpl $0x1, %edx
sete %sil
xorl %esi, %eax
movl %eax, 0x40(%rbx)
addl $0x5, %ecx
movl %ecx, 0x444(%rbx)
jmp 0x98cb8
movl %r11d, 0x40(%rbx)
jmp 0x98cb8
movl %r9d, 0x40(%rbx)
jmp 0x98cb8
movl %r8d, 0x40(%rbx)
jmp 0x98cb8
movl 0xc70(%rbx), %r14d
movb 0xc(%rbx), %r15b
movl 0x10(%rbx), %r10d
movl 0x444(%rbx), %ebp
movl 0x40(%rbx), %esi
movq 0xc50(%rbx), %rax
movq %rax, 0x10(%rsp)
movl 0x3c(%rbx), %r8d
movq (%rbx), %rax
movq 0x18(%rax), %rdx
movl 0x20(%rax), %r9d
movl 0xfa50(%rbx), %eax
movq %rax, 0x20(%rsp)
incl %eax
movl %eax, (%rsp)
imull $0x186a0, 0x28(%rbx), %eax # imm = 0x186A0
movl %eax, 0xc(%rsp)
movl %r9d, 0x1c(%rsp)
testl %r10d, %r10d
jle 0x9907e
testl %r9d, %r9d
je 0x991ee
movzbl %r15b, %ecx
movl %r9d, %r12d
movl %r10d, %r13d
decq %r13
xorl %eax, %eax
cmpl %eax, %r13d
je 0x99091
movb %cl, (%rdx,%rax)
movl %r14d, %edi
shll $0x8, %edi
shrl $0x18, %r14d
movl %r14d, %r11d
xorl %ecx, %r11d
movl %edi, %r14d
leaq 0xb8ae3(%rip), %rdi     # 0x151b50
xorl (%rdi,%r11,4), %r14d
incq %rax
cmpl %eax, %r12d
jne 0x9904b
jmp 0x991e8
movl %ebp, %ecx
movl %esi, %r12d
leaq 0xb8ac6(%rip), %r13     # 0x151b50
movq 0x10(%rsp), %r10
jmp 0x990d3
subl %eax, %r9d
addq %rax, %rdx
leaq 0xb8ab2(%rip), %r13     # 0x151b50
movq 0x10(%rsp), %r10
testl %r9d, %r9d
je 0x9932e
movb %r15b, (%rdx)
movl %r14d, %eax
shll $0x8, %eax
shrl $0x18, %r14d
movzbl %r15b, %ecx
xorl %r14d, %ecx
xorl (%r13,%rcx,4), %eax
incq %rdx
decl %r9d
movl %ebp, %ecx
movl %esi, %r12d
movl %eax, %r14d
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
cmpl (%rsp), %ecx
jg 0x98497
je 0x9933c
movl 0xc(%rsp), %r11d
cmpl %r11d, %r8d
jae 0x98497
movl %r8d, %esi
movl (%r10,%rsi,4), %edi
movzbl %dil, %esi
movl %edi, %r8d
shrl $0x8, %r8d
leal 0x1(%rcx), %ebp
cmpl %r12d, %esi
jne 0x99118
cmpl 0x20(%rsp), %ecx
jne 0x9911d
movl %r12d, %esi
movl %r12d, %r15d
jmp 0x990a3
cmpl %r11d, %r8d
jae 0x98497
movl (%r10,%r8,4), %r13d
movl %r13d, %r8d
shrl $0x8, %r8d
leal 0x2(%rcx), %ebp
movl $0x2, %r10d
movl %r12d, %esi
movl %r12d, %r15d
cmpl (%rsp), %ebp
je 0x9902e
movzbl %r13b, %esi
movl %r12d, %r15d
cmpl %r12d, %esi
jne 0x9902e
cmpl 0xc(%rsp), %r8d
jae 0x98497
movq 0x10(%rsp), %rsi
movl (%rsi,%r8,4), %r13d
movl %r13d, %r8d
shrl $0x8, %r8d
leal 0x3(%rcx), %ebp
movl $0x3, %r10d
movl %r12d, %esi
movl %r12d, %r15d
cmpl (%rsp), %ebp
je 0x9902e
movzbl %r13b, %esi
movl %r12d, %r15d
cmpl %r12d, %esi
jne 0x9902e
movl 0xc(%rsp), %r11d
cmpl %r11d, %r8d
jae 0x98497
movq 0x10(%rsp), %rdi
movl (%rdi,%r8,4), %r10d
movl %r10d, %esi
shrl $0x8, %esi
cmpl %r11d, %esi
jae 0x98497
movl $0xff, %eax
andl %eax, %r10d
addl $0x4, %r10d
movl (%rdi,%rsi,4), %r8d
movl %r8d, %esi
andl %eax, %esi
shrl $0x8, %r8d
addl $0x5, %ecx
movl %ecx, %ebp
movl %r12d, %r15d
jmp 0x9902e
addq %rax, %rdx
subl %eax, %r10d
xorl %r9d, %r9d
leaq 0xb8958(%rip), %r13     # 0x151b50
movq (%rbx), %rax
movl 0x1c(%rsp), %ecx
subl %r9d, %ecx
addl %ecx, 0x24(%rax)
jae 0x9920a
incl 0x28(%rax)
movl %r14d, 0xc70(%rbx)
movb %r15b, 0xc(%rbx)
movl %r10d, 0x10(%rbx)
movl %ebp, 0x444(%rbx)
movl %esi, 0x40(%rbx)
movq 0x10(%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 0x98497
cmpl $0x0, 0x10(%rbx)
jne 0x98497
movl 0xc70(%rbx), %ecx
notl %ecx
movl %ecx, 0xc70(%rbx)
cmpl $0x3, 0x34(%rbx)
jge 0x992ea
cmpl $0x2, 0x34(%rbx)
jl 0x99288
movq 0xb7d45(%rip), %rax     # 0x150fc0
movq (%rax), %rsi
movl $0x5d, %edi
callq 0xb7d0
movl 0xc70(%rbx), %eax
cmpl 0xc68(%rbx), %eax
jne 0x9937c
movl 0xc74(%rbx), %ecx
roll %ecx
xorl %eax, %ecx
movl %ecx, 0xc74(%rbx)
movl $0xe, 0x8(%rbx)
cmpl $0xa, 0x8(%rbx)
jl 0x984ad
movq %rbx, %rdi
callq 0xb5da4
cmpl $0x4, %eax
jne 0x9930d
cmpl $0x3, 0x34(%rbx)
jge 0x99349
movl 0xc74(%rbx), %eax
xorl %ecx, %ecx
cmpl 0xc6c(%rbx), %eax
sete %cl
leal -0x4(,%rcx,8), %eax
xorl %ecx, %ecx
jmp 0x9931d
movq 0xb7ccf(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movl 0xc68(%rbx), %edx
leaq 0x5e9cb(%rip), %rsi     # 0xf7ccc
xorl %eax, %eax
callq 0xb8d0
jmp 0x9926e
cmpl $0x2, 0x8(%rbx)
sete %cl
movl 0x18(%rsp), %edx
cmovnel %eax, %edx
movl %edx, %eax
movl %eax, 0x18(%rsp)
testb %cl, %cl
jne 0x984ad
jmp 0x98497
xorl %r9d, %r9d
movl $0x1, %r10d
jmp 0x991f8
xorl %r10d, %r10d
movl %ecx, %ebp
movl %r12d, %esi
jmp 0x991f8
movq 0xb7c70(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movl 0xc6c(%rbx), %edx
movl 0xc74(%rbx), %ecx
leaq 0x5e978(%rip), %rsi     # 0xf7cde
xorl %eax, %eax
callq 0xb8d0
jmp 0x992ce
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x98497
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0x98497