// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/lzma/C/LzmaEnc.c
// Function: LzmaEnc_CodeOneBlock
Z7_NO_INLINE
static SRes LzmaEnc_CodeOneBlock(CLzmaEnc *p, UInt32 maxPackSize, UInt32 maxUnpackSize)
{
  UInt32 nowPos32, startPos32;
  if (p->needInit)
  {
    #ifndef Z7_ST
    if (p->mtMode)
    {
      RINOK(MatchFinderMt_InitMt(&p->matchFinderMt))
    }
    #endif
    p->matchFinder.Init(p->matchFinderObj);
    p->needInit = 0;
  }

  if (p->finished)
    return p->result;
  RINOK(CheckErrors(p))

  nowPos32 = (UInt32)p->nowPos64;
  startPos32 = nowPos32;

  if (p->nowPos64 == 0)
  {
    unsigned numPairs;
    Byte curByte;
    if (p->matchFinder.GetNumAvailableBytes(p->matchFinderObj) == 0)
      return Flush(p, nowPos32);
    ReadMatchDistances(p, &numPairs);
    RangeEnc_EncodeBit_0(&p->rc, &p->isMatch[kState_Start][0]);
    // p->state = kLiteralNextStates[p->state];
    curByte = *(p->matchFinder.GetPointerToCurrentPos(p->matchFinderObj) - p->additionalOffset);
    LitEnc_Encode(&p->rc, p->litProbs, curByte);
    p->additionalOffset--;
    nowPos32++;
  }

  if (p->matchFinder.GetNumAvailableBytes(p->matchFinderObj) != 0)
  
  for (;;)
  {
    UInt32 dist;
    unsigned len, posState;
    UInt32 range, ttt, newBound;
    CLzmaProb *probs;
  
    if (p->fastMode)
      len = GetOptimumFast(p);
    else
    {
      unsigned oci = p->optCur;
      if (p->optEnd == oci)
        len = GetOptimum(p, nowPos32);
      else
      {
        const COptimal *opt = &p->opt[oci];
        len = opt->len;
        p->backRes = opt->dist;
        p->optCur = oci + 1;
      }
    }

    posState = (unsigned)nowPos32 & p->pbMask;
    range = p->rc.range;
    probs = &p->isMatch[p->state][posState];
    
    RC_BIT_PRE(&p->rc, probs)
    
    dist = p->backRes;

    #ifdef SHOW_STAT2
    printf("\n pos = %6X, len = %3u  pos = %6u", nowPos32, len, dist);
    #endif

    if (dist == MARK_LIT)
    {
      Byte curByte;
      const Byte *data;
      unsigned state;

      RC_BIT_0(&p->rc, probs)
      p->rc.range = range;
      data = p->matchFinder.GetPointerToCurrentPos(p->matchFinderObj) - p->additionalOffset;
      probs = LIT_PROBS(nowPos32, *(data - 1));
      curByte = *data;
      state = p->state;
      p->state = kLiteralNextStates[state];
      if (IsLitState(state))
        LitEnc_Encode(&p->rc, probs, curByte);
      else
        LitEnc_EncodeMatched(&p->rc, probs, curByte, *(data - p->reps[0]));
    }
    else
    {
      RC_BIT_1(&p->rc, probs)
      probs = &p->isRep[p->state];
      RC_BIT_PRE(&p->rc, probs)
      
      if (dist < LZMA_NUM_REPS)
      {
        RC_BIT_1(&p->rc, probs)
        probs = &p->isRepG0[p->state];
        RC_BIT_PRE(&p->rc, probs)
        if (dist == 0)
        {
          RC_BIT_0(&p->rc, probs)
          probs = &p->isRep0Long[p->state][posState];
          RC_BIT_PRE(&p->rc, probs)
          if (len != 1)
          {
            RC_BIT_1_BASE(&p->rc, probs)
          }
          else
          {
            RC_BIT_0_BASE(&p->rc, probs)
            p->state = kShortRepNextStates[p->state];
          }
        }
        else
        {
          RC_BIT_1(&p->rc, probs)
          probs = &p->isRepG1[p->state];
          RC_BIT_PRE(&p->rc, probs)
          if (dist == 1)
          {
            RC_BIT_0_BASE(&p->rc, probs)
            dist = p->reps[1];
          }
          else
          {
            RC_BIT_1(&p->rc, probs)
            probs = &p->isRepG2[p->state];
            RC_BIT_PRE(&p->rc, probs)
            if (dist == 2)
            {
              RC_BIT_0_BASE(&p->rc, probs)
              dist = p->reps[2];
            }
            else
            {
              RC_BIT_1_BASE(&p->rc, probs)
              dist = p->reps[3];
              p->reps[3] = p->reps[2];
            }
            p->reps[2] = p->reps[1];
          }
          p->reps[1] = p->reps[0];
          p->reps[0] = dist;
        }

        RC_NORM(&p->rc)

        p->rc.range = range;

        if (len != 1)
        {
          LenEnc_Encode(&p->repLenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState);
          --p->repLenEncCounter;
          p->state = kRepNextStates[p->state];
        }
      }
      else
      {
        unsigned posSlot;
        RC_BIT_0(&p->rc, probs)
        p->rc.range = range;
        p->state = kMatchNextStates[p->state];

        LenEnc_Encode(&p->lenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState);
        // --p->lenEnc.counter;

        dist -= LZMA_NUM_REPS;
        p->reps[3] = p->reps[2];
        p->reps[2] = p->reps[1];
        p->reps[1] = p->reps[0];
        p->reps[0] = dist + 1;
        
        p->matchPriceCount++;
        GetPosSlot(dist, posSlot)
        // RcTree_Encode_PosSlot(&p->rc, p->posSlotEncoder[GetLenToPosState(len)], posSlot);
        {
          UInt32 sym = (UInt32)posSlot + (1 << kNumPosSlotBits);
          range = p->rc.range;
          probs = p->posSlotEncoder[GetLenToPosState(len)];
          do
          {
            CLzmaProb *prob = probs + (sym >> kNumPosSlotBits);
            UInt32 bit = (sym >> (kNumPosSlotBits - 1)) & 1;
            sym <<= 1;
            RC_BIT(&p->rc, prob, bit)
          }
          while (sym < (1 << kNumPosSlotBits * 2));
          p->rc.range = range;
        }
        
        if (dist >= kStartPosModelIndex)
        {
          unsigned footerBits = ((posSlot >> 1) - 1);

          if (dist < kNumFullDistances)
          {
            unsigned base = ((2 | (posSlot & 1)) << footerBits);
            RcTree_ReverseEncode(&p->rc, p->posEncoders + base, footerBits, (unsigned)(dist /* - base */));
          }
          else
          {
            UInt32 pos2 = (dist | 0xF) << (32 - footerBits);
            range = p->rc.range;
            // RangeEnc_EncodeDirectBits(&p->rc, posReduced >> kNumAlignBits, footerBits - kNumAlignBits);
            /*
            do
            {
              range >>= 1;
              p->rc.low += range & (0 - ((dist >> --footerBits) & 1));
              RC_NORM(&p->rc)
            }
            while (footerBits > kNumAlignBits);
            */
            do
            {
              range >>= 1;
              p->rc.low += range & (0 - (pos2 >> 31));
              pos2 += pos2;
              RC_NORM(&p->rc)
            }
            while (pos2 != 0xF0000000);


            // RcTree_ReverseEncode(&p->rc, p->posAlignEncoder, kNumAlignBits, posReduced & kAlignMask);

            {
              unsigned m = 1;
              unsigned bit;
              bit = dist & 1; dist >>= 1; RC_BIT(&p->rc, p->posAlignEncoder + m, bit)  m = (m << 1) + bit;
              bit = dist & 1; dist >>= 1; RC_BIT(&p->rc, p->posAlignEncoder + m, bit)  m = (m << 1) + bit;
              bit = dist & 1; dist >>= 1; RC_BIT(&p->rc, p->posAlignEncoder + m, bit)  m = (m << 1) + bit;
              bit = dist & 1;             RC_BIT(&p->rc, p->posAlignEncoder + m, bit)
              p->rc.range = range;
              // p->alignPriceCount++;
            }
          }
        }
      }
    }

    nowPos32 += (UInt32)len;
    p->additionalOffset -= len;
    
    if (p->additionalOffset == 0)
    {
      UInt32 processed;

      if (!p->fastMode)
      {
        /*
        if (p->alignPriceCount >= 16) // kAlignTableSize
          FillAlignPrices(p);
        if (p->matchPriceCount >= 128)
          FillDistancesPrices(p);
        if (p->lenEnc.counter <= 0)
          LenPriceEnc_UpdateTables(&p->lenEnc, 1 << p->pb, &p->lenProbs, p->ProbPrices);
        */
        if (p->matchPriceCount >= 64)
        {
          FillAlignPrices(p);
          // { int y; for (y = 0; y < 100; y++) {
          FillDistancesPrices(p);
          // }}
          LenPriceEnc_UpdateTables(&p->lenEnc, (unsigned)1 << p->pb, &p->lenProbs, p->ProbPrices);
        }
        if (p->repLenEncCounter <= 0)
        {
          p->repLenEncCounter = REP_LEN_COUNT;
          LenPriceEnc_UpdateTables(&p->repLenEnc, (unsigned)1 << p->pb, &p->repLenProbs, p->ProbPrices);
        }
      }
    
      if (p->matchFinder.GetNumAvailableBytes(p->matchFinderObj) == 0)
        break;
      processed = nowPos32 - startPos32;
      
      if (maxPackSize)
      {
        if (processed + kNumOpts + 300 >= maxUnpackSize
            || RangeEnc_GetProcessed_sizet(&p->rc) + kPackReserve >= maxPackSize)
          break;
      }
      else if (processed >= (1 << 17))
      {
        p->nowPos64 += nowPos32 - startPos32;
        return CheckErrors(p);
      }
    }
  }

  p->nowPos64 += nowPos32 - startPos32;
  return Flush(p, nowPos32);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movl %edx, 0x13c(%rsp)
movl %esi, 0xec(%rsp)
movq %rdi, %rbx
cmpl $0x0, 0xdc(%rdi)
je 0x33d31
cmpl $0x0, 0xfc(%rbx)
je 0x33d21
leaq 0x100(%rbx), %rdi
callq 0x3a108
testl %eax, %eax
jne 0x33d4e
movq (%rbx), %rdi
callq *0x8(%rbx)
movl $0x0, 0xdc(%rbx)
cmpl $0x0, 0xd4(%rbx)
je 0x33d42
movl 0xf8(%rbx), %eax
jmp 0x33d4e
movq %rbx, %rdi
callq 0x36b1a
testl %eax, %eax
je 0x33d60
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe0(%rbx), %rcx
movl %ecx, %r15d
movq %rcx, 0x120(%rsp)
testq %rcx, %rcx
movq %rbx, 0x88(%rsp)
jne 0x33e0d
movq (%rbx), %rdi
callq *0x10(%rbx)
testl %eax, %eax
je 0x3620b
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x36d75
leaq 0x70(%rbx), %r15
movq %rbx, %rdx
movl 0x70(%rbx), %ebx
movzwl 0x2280(%rdx), %eax
shrl $0xb, %ebx
imull %eax, %ebx
movl $0x800, %ecx            # imm = 0x800
subl %eax, %ecx
shrl $0x5, %ecx
addl %eax, %ecx
movw %cx, 0x2280(%rdx)
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x33ddb
shll $0x8, %ebx
movq %r15, %rdi
callq 0x36eb1
movq 0x88(%rsp), %rax
movl %ebx, 0x70(%rax)
movq %rax, %rbx
movq (%rax), %rdi
callq *0x18(%rax)
movl 0x4c(%rbx), %ecx
subq %rcx, %rax
movzbl (%rax), %edx
movq 0x68(%rbx), %rsi
movq %r15, %rdi
callq 0x36e26
decl 0x4c(%rbx)
movl $0x1, %r15d
movq (%rbx), %rdi
callq *0x10(%rbx)
testl %eax, %eax
je 0x361de
leaq 0x3c(%rbx), %rax
movq %rax, 0x178(%rsp)
leaq 0xf888(%rbx), %r13
leaq 0xb30(%rbx), %rax
movq %rax, 0x60(%rsp)
leaq 0x2280(%rbx), %rax
movq %rax, 0xc0(%rsp)
leaq 0x2400(%rbx), %rax
movq %rax, 0xb8(%rsp)
leaq 0xb488(%rbx), %rax
movq %rax, 0xe0(%rsp)
leaq 0x7084(%rbx), %rax
movq %rax, 0x160(%rsp)
leaq 0x1600(%rbx), %rax
movq %rax, 0x158(%rsp)
leaq 0x1a00(%rbx), %rax
movq %rax, 0x150(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x2880(%rbx), %rax
movq %rax, 0x148(%rsp)
leaq 0x2580(%rbx), %rax
movq %rax, 0x1b0(%rsp)
leaq 0x2780(%rbx), %rax
movq %rax, 0x198(%rsp)
leaq 0x2c80(%rbx), %rax
movq %rax, 0x140(%rsp)
leaq 0x7080(%rbx), %rax
movq %rax, 0x1a0(%rsp)
leaq 0xb484(%rbx), %rax
movq %rax, 0x190(%rsp)
movl 0xec(%rsp), %eax
movq %rax, 0x1a8(%rsp)
movq %r13, 0x28(%rsp)
cmpl $0x0, 0xcc(%rbx)
movl %r15d, 0x10(%rsp)
je 0x33f2b
cmpl $0x0, 0x4c(%rbx)
je 0x33f58
movl 0x38(%rbx), %ebp
movl 0x3c(%rbx), %eax
movl %eax, 0x40(%rsp)
jmp 0x33f67
movl 0x30(%rbx), %eax
cmpl %eax, 0x34(%rbx)
jne 0x34080
movq $0x0, 0x30(%rbx)
cmpl $0x0, 0x4c(%rbx)
je 0x340c0
movl 0x38(%rbx), %ebp
movl 0x3c(%rbx), %eax
movl %eax, 0x3c(%rsp)
jmp 0x340cf
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
callq 0x36d75
movl %eax, %ebp
movl 0x40(%rbx), %r14d
movl $0xffffffff, 0xb8(%rbx) # imm = 0xFFFFFFFF
movl $0x1, %r12d
cmpl $0x2, %r14d
jb 0x342cc
movl $0x111, %eax            # imm = 0x111
cmpl %eax, %r14d
movl $0x111, %r12d           # imm = 0x111
cmovbl %r14d, %r12d
movq (%rbx), %rdi
callq *0x18(%rbx)
cmpl $0x4, %r12d
movl $0x3, %ecx
cmovbl %ecx, %r12d
movb -0x1(%rax), %sil
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r15d, %r15d
movl 0x50(%rbx,%rdx,4), %r8d
movq %r8, %rdi
notq %rdi
cmpb (%rdi,%rax), %sil
jne 0x3400f
negq %r8
movb (%rax), %dil
cmpb (%rax,%r8), %dil
jne 0x3400f
movl $0x2, %edi
cmpl $0x2, %r14d
je 0x33ffc
addq %rax, %r8
movl $0x2, %edi
movb -0x1(%rax,%rdi), %r9b
cmpb -0x1(%r8,%rdi), %r9b
jne 0x33ffc
incq %rdi
cmpq %rdi, %r12
jne 0x33fe5
movl %r12d, %edi
cmpl 0x48(%rbx), %edi
jae 0x34208
cmpl %r15d, %edi
cmoval %edi, %r15d
cmoval %edx, %ecx
incq %rdx
cmpq $0x4, %rdx
jne 0x33fb5
cmpl 0x48(%rbx), %ebp
jae 0x340a1
xorl %r12d, %r12d
cmpl $0x2, %ebp
jb 0x34275
movl 0x40(%rsp), %eax
movl 0xd2c(%rbx,%rax,4), %edx
movl %edx, %r12d
cmpq $0x3, %rax
jb 0x34261
movl %eax, %eax
movl 0xd20(%rbx,%rax,4), %esi
incl %esi
cmpl %esi, %ebp
jne 0x3425e
movl 0xd24(%rbx,%rax,4), %r12d
movl %edx, %esi
shrl $0x7, %esi
cmpl %r12d, %esi
jbe 0x3425e
addl $-0x2, %eax
decl %ebp
movl %r12d, %edx
cmpl $0x3, %eax
jae 0x34045
jmp 0x34261
movq %rax, %rcx
shlq $0x5, %rcx
movl 0x8(%r13,%rcx), %r12d
movl 0xc(%r13,%rcx), %ecx
movl %ecx, 0xb8(%rbx)
incl %eax
movl %eax, 0x30(%rbx)
jmp 0x342cc
movl 0x40(%rsp), %eax
movl 0xd2c(%rbx,%rax,4), %eax
addl $0x4, %eax
movl %eax, 0xb8(%rbx)
leal -0x1(%rbp), %esi
movl %ebp, %r15d
jmp 0x342bb
movq %rbx, %rdi
leaq 0x3c(%rsp), %rsi
callq 0x36d75
movl %eax, %ebp
movl 0x40(%rbx), %r14d
cmpl $0x1, %r14d
ja 0x340ee
movl $0xffffffff, 0xb8(%rbx) # imm = 0xFFFFFFFF
movl $0x1, %r12d
jmp 0x342cc
movl $0x111, %eax            # imm = 0x111
cmpl %eax, %r14d
movl $0x111, %r15d           # imm = 0x111
cmovbl %r14d, %r15d
movq (%rbx), %rdi
callq *0x18(%rbx)
movzbl -0x1(%rax), %r13d
cmpl $0x4, %r15d
movl $0x3, %ecx
cmovbl %ecx, %r15d
xorl %edx, %edx
xorl %ecx, %ecx
movl 0x50(%rbx,%rdx,4), %esi
movl %esi, 0x40(%rsp,%rdx,4)
movq %rsi, %rdi
notq %rdi
cmpb (%rdi,%rax), %r13b
jne 0x3415c
negq %rsi
movb (%rax), %dil
cmpb (%rax,%rsi), %dil
jne 0x3415c
movl %ecx, %edi
cmpl $0x2, %r14d
jne 0x34172
movl $0x2, 0x100(%rsp,%rdx,4)
cmpl $0x2, 0x100(%rsp,%rdi,4)
cmovbl %edx, %ecx
jmp 0x34167
movl $0x0, 0x100(%rsp,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0x3411c
jmp 0x341ae
addq %rax, %rsi
movl $0x2, %r8d
movb -0x1(%rax,%r8), %r9b
cmpb -0x1(%rsi,%r8), %r9b
jne 0x34192
incq %r8
cmpq %r8, %r15
jne 0x3417b
movl %r15d, %r8d
movl %r8d, 0x100(%rsp,%rdx,4)
cmpl 0x100(%rsp,%rdi,4), %r8d
cmoval %edx, %ecx
cmpl $0x111, %r8d            # imm = 0x111
jne 0x34167
movl %ecx, %edx
movl 0x100(%rsp,%rdx,4), %r12d
movl 0x48(%rbx), %edx
cmpl %edx, %r12d
jae 0x34219
cmpl %edx, %ebp
movl 0x10(%rsp), %r15d
jae 0x34234
movl 0x40(%rsp), %ecx
movq %rcx, 0xf0(%rsp)
notq %rcx
movb (%rcx,%rax), %r10b
cmpl %ebp, %r12d
cmovbel %ebp, %r12d
cmpl $0x1, %r12d
ja 0x34dbb
cmpb %r10b, %r13b
je 0x34dbb
movl $0xffffffff, 0xb8(%rbx) # imm = 0xFFFFFFFF
movl $0x1, %r12d
jmp 0x34257
movl %edx, 0xb8(%rbx)
leal -0x1(%rdi), %esi
movl %edi, %r15d
jmp 0x342bb
movl %ecx, 0xb8(%rbx)
leal -0x1(%r12), %esi
addl %esi, 0x4c(%rbx)
movq (%rbx), %rdi
callq *0x28(%rbx)
movl 0x10(%rsp), %r15d
jmp 0x34257
movl 0x3c(%rsp), %eax
movl 0xd2c(%rbx,%rax,4), %eax
addl $0x4, %eax
movl %eax, 0xb8(%rbx)
leal -0x1(%rbp), %esi
addl %esi, 0x4c(%rbx)
movq (%rbx), %rdi
callq *0x28(%rbx)
movl %ebp, %r12d
movq 0x28(%rsp), %r13
jmp 0x342cc
movl %edx, %r12d
cmpl $0x7f, %r12d
movl %ebp, %eax
movl $0x1, %edx
cmoval %edx, %eax
cmpl $0x2, %ebp
cmovel %eax, %ebp
cmpl $0x2, %r15d
jb 0x34ac7
leal 0x1(%r15), %eax
cmpl %ebp, %eax
jae 0x342b1
leal 0x2(%r15), %eax
cmpl %ebp, %eax
jb 0x34298
cmpl $0x1ff, %r12d           # imm = 0x1FF
ja 0x342b1
leal 0x3(%r15), %eax
cmpl %ebp, %eax
jb 0x34ac7
cmpl $0x8000, %r12d          # imm = 0x8000
jb 0x34ac7
movl %ecx, 0xb8(%rbx)
leal -0x1(%r15), %esi
addl %esi, 0x4c(%rbx)
movq (%rbx), %rdi
callq *0x28(%rbx)
movl %r15d, %r12d
movl 0x10(%rsp), %r15d
movl 0x64(%rbx), %ebp
andl %r15d, %ebp
movl 0x44(%rbx), %eax
movl 0x70(%rbx), %r14d
movq %rax, %rcx
shlq $0x5, %rcx
addq 0xc0(%rsp), %rcx
leaq (%rcx,%rbp,2), %rcx
movzwl (%rcx), %edx
movq %rbx, %rdi
movl %r14d, %ebx
shrl $0xb, %ebx
imull %edx, %ebx
movl 0xb8(%rdi), %r8d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r8, 0x20(%rsp)
cmpq %rsi, %r8
movq %r12, 0x30(%rsp)
je 0x34431
subl %ebx, %r14d
movl %ebx, %esi
addq %rsi, 0x78(%rdi)
movl %edx, %esi
shrl $0x5, %esi
subl %esi, %edx
movw %dx, (%rcx)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
movq %rdi, %r12
ja 0x3434c
shll $0x8, %r14d
movq 0x18(%rsp), %rdi
callq 0x36eb1
movl 0x44(%r12), %eax
movzwl 0x2220(%r12,%rax,2), %ecx
movl %r14d, %ebx
shrl $0xb, %ebx
imull %ecx, %ebx
cmpl $0x3, 0x20(%rsp)
ja 0x344be
subl %ebx, %r14d
movl %ebx, %edx
addq %rdx, 0x78(%r12)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, 0x2220(%r12,%rax,2)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
movq %r12, %rbx
ja 0x343a0
shll $0x8, %r14d
movq 0x18(%rsp), %rdi
callq 0x36eb1
movl 0x44(%rbx), %eax
movzwl 0x2238(%rbx,%rax,2), %ecx
movl %r14d, %r12d
shrl $0xb, %r12d
imull %ecx, %r12d
cmpq $0x0, 0x20(%rsp)
je 0x347c3
subl %r12d, %r14d
movl %r12d, %edx
addq %rdx, 0x78(%rbx)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, 0x2238(%rbx,%rax,2)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
ja 0x343f2
shll $0x8, %r14d
movq 0x18(%rsp), %rdi
callq 0x36eb1
movl 0x44(%rbx), %eax
movq 0x30(%rsp), %r12
movzwl 0x2250(%rbx,%rax,2), %ecx
movl %r14d, %r15d
shrl $0xb, %r15d
imull %ecx, %r15d
cmpl $0x1, 0x20(%rsp)
jne 0x3483f
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2250(%rbx,%rax,2)
movl 0x54(%rbx), %edx
jmp 0x34c1e
movl $0x800, %eax            # imm = 0x800
subl %edx, %eax
shrl $0x5, %eax
addl %edx, %eax
movw %ax, (%rcx)
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x34455
shll $0x8, %ebx
movq 0x18(%rsp), %rdi
callq 0x36eb1
movq 0x88(%rsp), %rax
movl %ebx, 0x70(%rax)
movq %rax, %rbx
movq (%rax), %rdi
callq *0x18(%rax)
movl 0x44(%rbx), %edx
movl 0x4c(%rbx), %ecx
subq %rcx, %rax
shll $0x8, %r15d
movzbl -0x1(%rax), %esi
orl %r15d, %esi
andl 0x60(%rbx), %esi
movb 0xbc(%rbx), %cl
shll %cl, %esi
leal (%rsi,%rsi,2), %r13d
addq %r13, %r13
addq 0x68(%rbx), %r13
movzbl (%rax), %ebp
leaq 0x2b543(%rip), %rcx     # 0x5f9e0
movzbl (%rdx,%rcx), %ecx
movl %ecx, 0x44(%rbx)
cmpq $0x6, %rdx
ja 0x344f9
movq 0x18(%rsp), %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x36e26
jmp 0x347b9
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2220(%r12,%rax,2)
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x345b3
shll $0x8, %ebx
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x36eb1
movl 0x44(%r12), %eax
jmp 0x345b8
movl 0x50(%rbx), %ecx
movl 0x70(%rbx), %r12d
subq %rcx, %rax
movzbl (%rax), %r14d
orl $0x100, %ebp            # imm = 0x100
movl $0x100, %r15d           # imm = 0x100
addl %r14d, %r14d
movl %r14d, %ecx
andl %r15d, %ecx
movl %ebp, %eax
shrl $0x8, %eax
addl %r15d, %eax
addl %ecx, %eax
movl %ebp, %ecx
shrl $0x7, %ecx
andl $0x1, %ecx
movzwl (%r13,%rax,2), %edx
movl %r12d, %esi
shrl $0xb, %esi
imull %edx, %esi
movl %ecx, %edi
negl %edi
andl %edi, %r12d
andl %esi, %edi
movl %r12d, %r8d
addq %rdi, 0x78(%rbx)
subl %edi, %r8d
decl %ecx
andl %ecx, %esi
movl %esi, %r12d
addl %r8d, %r12d
andl $0x7e1, %ecx            # imm = 0x7E1
subl %edx, %ecx
addl $0x1f, %ecx
shrl $0x5, %ecx
addl %edx, %ecx
movw %cx, (%r13,%rax,2)
cmpl $0xffffff, %r12d        # imm = 0xFFFFFF
ja 0x34587
shll $0x8, %r12d
movq 0x18(%rsp), %rdi
callq 0x36eb1
leal (,%rbp,2), %eax
movl %r14d, %ecx
xorl %eax, %ecx
notl %ecx
andl %ecx, %r15d
cmpl $0x8000, %ebp           # imm = 0x8000
movl %eax, %ebp
jb 0x34513
movq 0x18(%rsp), %rax
movl %r12d, (%rax)
jmp 0x347b9
movq 0x18(%rsp), %r14
movl %ebx, 0x70(%r12)
leaq 0x2b440(%rip), %rcx     # 0x5fa04
movzbl (%rax,%rcx), %eax
movl %eax, 0x44(%r12)
movq 0x30(%rsp), %rax
leal -0x2(%rax), %r13d
movq 0x148(%rsp), %rdi
movq %r14, %rsi
movl %r13d, %edx
movl %ebp, %ecx
callq 0x36f3f
movl 0x58(%r12), %eax
movl %eax, 0x5c(%r12)
movq 0x50(%r12), %rax
movq %rax, 0x54(%r12)
movq 0x20(%rsp), %rcx
leal -0x3(%rcx), %eax
movl %eax, 0x50(%r12)
incl 0xe8(%r12)
leal -0x4(%rcx), %r15d
movl %r15d, %eax
cmpl $0x7f, %r15d
movq %r12, %rbx
ja 0x3462f
movzbl 0x3080(%rbx,%rax), %r12d
jmp 0x34652
cmpl $0x100000, %r15d        # imm = 0x100000
movl $0x13, %ecx
movl $0x6, %edx
cmovbl %edx, %ecx
shrq %cl, %rax
movzbl 0x3080(%rbx,%rax), %eax
leal (%rax,%rcx,2), %r12d
leal 0x40(%r12), %ebp
movq 0x18(%rsp), %rax
movl (%rax), %r14d
cmpl $0x5, 0x30(%rsp)
movl $0x3, %eax
cmovael %eax, %r13d
shlq $0x7, %r13
addq 0x1b0(%rsp), %r13
movl %ebp, %eax
shrl $0x5, %eax
movl %eax, %ecx
andl $-0x2, %ecx
andl $0x1, %eax
movzwl (%r13,%rcx), %edx
movl %r14d, %esi
shrl $0xb, %esi
imull %edx, %esi
movl %eax, %edi
negl %edi
andl %edi, %r14d
andl %esi, %edi
movl %r14d, %r8d
addq %rdi, 0x78(%rbx)
subl %edi, %r8d
decl %eax
andl %eax, %esi
movl %esi, %r14d
addl %r8d, %r14d
andl $0x7e1, %eax            # imm = 0x7E1
subl %edx, %eax
addl $0x1f, %eax
shrl $0x5, %eax
addl %edx, %eax
movw %ax, (%r13,%rcx)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
ja 0x346de
shll $0x8, %r14d
movq 0x18(%rsp), %rdi
callq 0x36eb1
leal (,%rbp,2), %eax
cmpl $0x800, %ebp            # imm = 0x800
movl %eax, %ebp
jb 0x34679
movq 0x18(%rsp), %rax
movl %r14d, (%rax)
cmpl $0x4, %r15d
movq 0x28(%rsp), %r13
jb 0x34c9b
movl %r12d, %ebp
shrl %ebp
cmpl $0x7f, %r15d
ja 0x348a4
decl %ebp
andl $0x1, %r12d
orl $0x2, %r12d
movl %ebp, %ecx
shll %cl, %r12d
movq 0x198(%rsp), %rax
leaq (%rax,%r12,2), %r12
movl $0x1, %r13d
movl %r15d, %ebx
andl $0x1, %ebx
movl %r13d, %eax
movzwl (%r12,%rax,2), %ecx
movl %r14d, %edx
shrl $0xb, %edx
imull %ecx, %edx
movl %ebx, %esi
negl %esi
andl %esi, %r14d
andl %edx, %esi
movl %r14d, %edi
movq 0x88(%rsp), %r8
addq %rsi, 0x78(%r8)
subl %esi, %edi
leal -0x1(%rbx), %esi
andl %esi, %edx
movl %edx, %r14d
addl %edi, %r14d
andl $0x7e1, %esi            # imm = 0x7E1
subl %ecx, %esi
addl $0x1f, %esi
shrl $0x5, %esi
addl %ecx, %esi
movw %si, (%r12,%rax,2)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
ja 0x3479e
shll $0x8, %r14d
movq 0x18(%rsp), %rdi
callq 0x36eb1
shrl %r15d
leal (%rbx,%r13,2), %r13d
decl %ebp
jne 0x34736
movq 0x18(%rsp), %rax
movl %r14d, (%rax)
movq 0x88(%rsp), %rbx
movq 0x28(%rsp), %r13
jmp 0x34c9b
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2238(%rbx,%rax,2)
cmpl $0xffffff, %r12d        # imm = 0xFFFFFF
ja 0x347f1
shll $0x8, %r12d
movq 0x18(%rsp), %rdi
callq 0x36eb1
movl 0x44(%rbx), %eax
movq %rax, %rcx
shlq $0x5, %rcx
addq 0xb8(%rsp), %rcx
leaq (%rcx,%rbp,2), %rcx
movzwl (%rcx), %edx
movl %r12d, %r15d
shrl $0xb, %r15d
imull %edx, %r15d
cmpl $0x1, 0x30(%rsp)
jne 0x34bd3
movl $0x800, %esi            # imm = 0x800
subl %edx, %esi
shrl $0x5, %esi
addl %edx, %esi
movw %si, (%rcx)
leaq 0x2b1b9(%rip), %rcx     # 0x5f9ec
movzbl (%rax,%rcx), %eax
movl %eax, 0x44(%rbx)
jmp 0x34bea
subl %r15d, %r14d
movl %r15d, %edx
addq %rdx, 0x78(%rbx)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, 0x2250(%rbx,%rax,2)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
ja 0x34872
shll $0x8, %r14d
movq 0x18(%rsp), %rdi
callq 0x36eb1
movl 0x44(%rbx), %eax
movzwl 0x2268(%rbx,%rax,2), %ecx
movl %r14d, %r15d
shrl $0xb, %r15d
imull %ecx, %r15d
cmpl $0x2, 0x20(%rsp)
jne 0x34bf1
movl $0x800, %esi            # imm = 0x800
subl %ecx, %esi
shrl $0x5, %esi
addl %ecx, %esi
movl 0x58(%rbx), %edx
jmp 0x34c10
movl %r15d, %ebx
orl $0xf, %ebx
movb $0x21, %cl
subb %bpl, %cl
shll %cl, %ebx
movq 0x18(%rsp), %r12
movl %r14d, %eax
shrl %r14d
movl %ebx, %ecx
sarl $0x1f, %ecx
andl %r14d, %ecx
movq 0x88(%rsp), %rdx
addq %rcx, 0x78(%rdx)
cmpl $0x1ffffff, %eax        # imm = 0x1FFFFFF
ja 0x348e3
shll $0x8, %r14d
movq %r12, %rdi
callq 0x36eb1
addl %ebx, %ebx
cmpl $0xf0000000, %ebx       # imm = 0xF0000000
jne 0x348b6
movq 0x20(%rsp), %r13
andl $0x1, %r13d
movq 0x88(%rsp), %rbx
movzwl 0x2202(%rbx), %ecx
movl %r14d, %ebp
shrl $0xb, %ebp
imull %ecx, %ebp
movl %r13d, %eax
negl %eax
andl %eax, %r14d
andl %ebp, %eax
subl %eax, %r14d
addq 0x78(%rbx), %rax
movq %rax, 0x78(%rbx)
leal -0x1(%r13), %edx
andl %edx, %ebp
addl %r14d, %ebp
andl $0x7e1, %edx            # imm = 0x7E1
subl %ecx, %edx
addl $0x1f, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2202(%rbx)
cmpl $0xffffff, %ebp         # imm = 0xFFFFFF
ja 0x3495c
shll $0x8, %ebp
movq 0x18(%rsp), %rdi
callq 0x36eb1
movq 0x78(%rbx), %rax
movq 0x20(%rsp), %rsi
shrl %esi
orl $0x2, %r13d
andl $0x1, %esi
movzwl 0x2200(%rbx,%r13,2), %edx
movl %ebp, %r14d
shrl $0xb, %r14d
imull %edx, %r14d
movl %esi, %ecx
negl %ecx
andl %ecx, %ebp
andl %r14d, %ecx
subl %ecx, %ebp
addq %rax, %rcx
movq %rcx, 0x78(%rbx)
movq %rsi, 0x20(%rsp)
leal -0x1(%rsi), %eax
andl %eax, %r14d
addl %ebp, %r14d
andl $0x7e1, %eax            # imm = 0x7E1
subl %edx, %eax
addl $0x1f, %eax
shrl $0x5, %eax
addl %edx, %eax
movw %ax, 0x2200(%rbx,%r13,2)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
ja 0x349d1
shll $0x8, %r14d
movq 0x18(%rsp), %rdi
callq 0x36eb1
movq 0x78(%rbx), %rcx
movl %r15d, %r12d
shrl $0x2, %r12d
movq 0x20(%rsp), %rax
leal (%rax,%r13,2), %r13d
andl $0x1, %r12d
movzwl 0x2200(%rbx,%r13,2), %edx
movl %r14d, %ebp
shrl $0xb, %ebp
imull %edx, %ebp
movl %r12d, %eax
negl %eax
andl %eax, %r14d
andl %ebp, %eax
subl %eax, %r14d
addq %rcx, %rax
movq %rax, 0x78(%rbx)
leal -0x1(%r12), %ecx
andl %ecx, %ebp
addl %r14d, %ebp
andl $0x7e1, %ecx            # imm = 0x7E1
subl %edx, %ecx
addl $0x1f, %ecx
shrl $0x5, %ecx
addl %edx, %ecx
movw %cx, 0x2200(%rbx,%r13,2)
cmpl $0xffffff, %ebp         # imm = 0xFFFFFF
ja 0x34a47
shll $0x8, %ebp
movq 0x18(%rsp), %rdi
callq 0x36eb1
movq 0x78(%rbx), %rax
shrl $0x3, %r15d
andl $0x1, %r15d
addl %r12d, %r12d
leal (%r12,%r13,4), %ecx
movzwl 0x2200(%rbx,%rcx), %edx
movq %rbx, %rdi
movl %ebp, %ebx
shrl $0xb, %ebx
imull %edx, %ebx
movl %r15d, %esi
negl %esi
andl %esi, %ebp
andl %ebx, %esi
subl %esi, %ebp
addq %rax, %rsi
movq %rsi, 0x78(%rdi)
decl %r15d
andl %r15d, %ebx
addl %ebp, %ebx
andl $0x7e1, %r15d           # imm = 0x7E1
subl %edx, %r15d
addl $0x1f, %r15d
shrl $0x5, %r15d
addl %edx, %r15d
movw %r15w, 0x2200(%rdi,%rcx)
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x34c86
shll $0x8, %ebx
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x36eb1
movq 0x28(%rsp), %r13
jmp 0x34c90
cmpl $0x2, %r14d
je 0x34db1
cmpl $0x2, %ebp
movl 0x10(%rsp), %r15d
jb 0x340e3
movq %rbx, %rdi
movq 0x178(%rsp), %rsi
callq 0x36d75
movl %eax, 0x38(%rbx)
cmpl $0x2, %eax
jb 0x34b4c
movl 0x3c(%rbx), %ecx
movl 0xd2c(%rbx,%rcx,4), %ecx
cmpl %ebp, %eax
jb 0x34b0e
cmpl %r12d, %ecx
jb 0x340e3
leal 0x1(%rbp), %edi
cmpl %edi, %eax
sete %dl
movl %ecx, %esi
shrl $0x7, %esi
cmpl %r12d, %esi
setbe %sil
cmpl %edi, %eax
ja 0x340e3
andb %sil, %dl
jne 0x340e3
cmpl $0x3, %ebp
jb 0x34b4c
incl %eax
cmpl %ebp, %eax
jb 0x34b4c
movl %r12d, %eax
shrl $0x7, %eax
cmpl %ecx, %eax
ja 0x340e3
movq (%rbx), %rdi
callq *0x18(%rbx)
movb -0x1(%rax), %cl
leal -0x1(%rbp), %edx
leaq -0x2(%rdx), %rsi
movq %rax, %rdi
incq %rdi
xorl %r8d, %r8d
movl 0x50(%rbx,%r8,4), %r9d
movq %r9, %r10
notq %r10
cmpb (%r10,%rax), %cl
jne 0x34ba8
negq %r9
movb (%rax), %r10b
cmpb (%rax,%r9), %r10b
jne 0x34ba8
cmpl $0x3, %edx
jb 0x340e3
addq %rdi, %r9
xorl %r10d, %r10d
movb (%rdi,%r10), %r11b
cmpb (%r9,%r10), %r11b
jne 0x34ba8
incq %r10
cmpq %r10, %rsi
jne 0x34b91
jmp 0x340e3
incq %r8
cmpq $0x4, %r8
jne 0x34b65
addl $0x4, %r12d
movl %r12d, 0xb8(%rbx)
movl $0x2, %r12d
cmpl $0x2, %ebp
je 0x342cc
leal -0x2(%rbp), %esi
jmp 0x340b8
subl %r15d, %r12d
movl %r15d, %eax
addq %rax, 0x78(%rbx)
movl %edx, %eax
shrl $0x5, %eax
subl %eax, %edx
movw %dx, (%rcx)
movl %r12d, %r15d
movq 0x30(%rsp), %r12
jmp 0x34c27
subl %r15d, %r14d
movl %r15d, %edx
addq %rdx, 0x78(%rbx)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movl 0x58(%rbx), %esi
movl 0x5c(%rbx), %edx
movl %esi, 0x5c(%rbx)
movl %ecx, %esi
movl %r14d, %r15d
movw %si, 0x2268(%rbx,%rax,2)
movl 0x54(%rbx), %eax
movl %eax, 0x58(%rbx)
movl 0x50(%rbx), %eax
movl %eax, 0x54(%rbx)
movl %edx, 0x50(%rbx)
cmpl $0xffffff, %r15d        # imm = 0xFFFFFF
ja 0x34c43
shll $0x8, %r15d
movq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x36eb1
jmp 0x34c48
movq 0x18(%rsp), %r14
movl %r15d, (%r14)
cmpl $0x1, %r12d
je 0x34c9b
movq 0x30(%rsp), %rax
leal -0x2(%rax), %edx
movq 0x140(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl %ebp, %ecx
callq 0x36f3f
decl 0xec(%rbx)
movl 0x44(%rbx), %eax
leaq 0x2ad7b(%rip), %rcx     # 0x5f9f8
movzbl (%rax,%rcx), %eax
movl %eax, 0x44(%rbx)
jmp 0x34c9b
movq 0x28(%rsp), %r13
movq 0x18(%rsp), %r14
movl %ebx, (%r14)
movq 0x88(%rsp), %rbx
movl 0x10(%rsp), %r15d
movq 0x30(%rsp), %rax
addl %eax, %r15d
subl %eax, 0x4c(%rbx)
movq 0x60(%rsp), %r14
jne 0x33f0b
cmpl $0x0, 0xcc(%rbx)
jne 0x34d35
cmpl $0x40, 0xe8(%rbx)
jb 0x34cfd
movq %rbx, %rdi
callq 0x36827
movq %rbx, %rdi
callq 0x36505
movb 0xc4(%rbx), %cl
movl $0x1, %esi
shll %cl, %esi
movq 0x1a0(%rsp), %rdi
movq 0x148(%rsp), %rdx
movq %r14, %rcx
callq 0x36901
cmpl $0x0, 0xec(%rbx)
jg 0x34d35
movl $0x40, 0xec(%rbx)
movb 0xc4(%rbx), %cl
movl $0x1, %esi
shll %cl, %esi
movq 0x190(%rsp), %rdi
movq 0x140(%rsp), %rdx
movq %r14, %rcx
callq 0x36901
movq (%rbx), %rdi
callq *0x10(%rbx)
testl %eax, %eax
je 0x361de
movl %r15d, %eax
subl 0x120(%rsp), %eax
cmpl $0x0, 0xec(%rsp)
je 0x34da1
addl $0x92c, %eax            # imm = 0x92C
cmpl 0x13c(%rsp), %eax
jae 0x361de
movq 0x80(%rbx), %rax
movq 0xa8(%rbx), %rcx
addq 0x88(%rbx), %rcx
subq 0x98(%rbx), %rcx
addq %rcx, %rax
addq $0x4000, %rax           # imm = 0x4000
cmpq 0x1a8(%rsp), %rax
jb 0x33f0b
jmp 0x361de
cmpl $0x20000, %eax          # imm = 0x20000
jb 0x33f0b
jmp 0x36218
movl 0x10(%rsp), %r15d
jmp 0x340e3
movq %r12, 0x30(%rsp)
movl 0x44(%rbx), %r14d
movw %r14w, 0xf88c(%rbx)
movl %r15d, %edx
movl 0x64(%rbx), %r15d
movl %edx, %ecx
shll $0x8, %ecx
movzbl -0x2(%rax), %eax
orl %ecx, %eax
andl 0x60(%rbx), %eax
movb 0xbc(%rbx), %cl
shll %cl, %eax
leal (%rax,%rax,2), %edi
addq %rdi, %rdi
addq 0x68(%rbx), %rdi
andl %edx, %r15d
movq %r14, %r12
shlq $0x5, %r12
movq 0xc0(%rsp), %rax
leaq (%rax,%r12), %r11
movzwl (%r11,%r15,2), %eax
shrl $0x4, %eax
movl 0xb30(%rbx,%rax,4), %eax
movl %eax, 0x20(%rsp)
cmpq $0x7, %r14
jae 0x34e60
leal 0x100(%r13), %ecx
xorl %eax, %eax
movl %ecx, %edx
movq 0x60(%rsp), %r9
movl %ecx, %esi
andl $0x1, %esi
negl %esi
shrl %edx
movl %ecx, %r8d
andl $-0x2, %r8d
movzwl (%rdi,%r8), %r8d
andl $0x7f0, %esi            # imm = 0x7F0
xorl %r8d, %esi
shrl $0x4, %esi
addl (%r9,%rsi,4), %eax
cmpl $0x3, %ecx
movl %edx, %ecx
ja 0x34e32
jmp 0x34e85
movzbl %r10b, %edx
movl %r13d, %esi
movq 0x60(%rsp), %rcx
movb %r10b, 0x14(%rsp)
movq %r11, 0x58(%rsp)
callq 0x371c8
movq 0x58(%rsp), %r11
movb 0x14(%rsp), %r10b
leaq (%r11,%r15,2), %rcx
cmpb %r10b, %r13b
sete %dil
addl 0x20(%rsp), %eax
movl %eax, 0xf8a8(%rbx)
movl $0xffffffff, 0xf8b4(%rbx) # imm = 0xFFFFFFFF
movw $0x0, 0xf8ae(%rbx)
movzwl (%rcx), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
movl $0x1fc, %esi            # imm = 0x1FC
xorl %esi, %ecx
movl 0xb30(%rbx,%rcx), %edx
movzwl 0x2220(%rbx,%r14,2), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
xorl %esi, %ecx
movl 0xb30(%rbx,%rcx), %ecx
addl %edx, %ecx
movl 0x100(%rsp), %esi
testl %esi, %esi
sete %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
movq 0x28(%rsp), %r13
jne 0x34f5d
movzwl 0x2238(%rbx,%r14,2), %edi
shrl $0x4, %edi
movq 0xb8(%rsp), %r8
addq %r12, %r8
movzwl (%r8,%r15,2), %r9d
shrl $0x4, %r9d
movl 0xb30(%rbx,%rdi,4), %r8d
addl %ecx, %r8d
addl 0xb30(%rbx,%r9,4), %r8d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpl %eax, %r8d
jae 0x34f52
movl %r8d, 0xf8a8(%rbx)
movl $0x0, 0xf8b4(%rbx)
movw $0x0, 0xf8ae(%rbx)
xorl %edi, %edi
cmpl $0x1, 0x30(%rsp)
jbe 0x35f83
movl $0x1, 0xf8b0(%rbx)
movq 0xf0(%rsp), %rax
movl %eax, 0xf898(%rbx)
movl 0x44(%rsp), %eax
movl %eax, 0xac(%rsp)
movl %eax, 0xf89c(%rbx)
movl 0x48(%rsp), %eax
movl %eax, 0xb0(%rsp)
movl %eax, 0xf8a0(%rbx)
movl 0x4c(%rsp), %eax
movl %eax, 0xa8(%rsp)
movl %eax, 0xf8a4(%rbx)
addq 0xb8(%rsp), %r12
leaq (%r12,%r15,2), %rax
xorl %edi, %edi
movq 0x30(%rsp), %r12
movl 0x100(%rsp,%rdi,4), %r8d
cmpl $0x2, %r8d
jb 0x350a9
movzwl 0x2238(%rbx,%r14,2), %r10d
shrl $0x4, %r10d
testq %rdi, %rdi
je 0x35009
movzwl %r10w, %r9d
xorl $0x7f, %r9d
movl 0xb30(%rbx,%r9,4), %r9d
movzwl 0x2250(%rbx,%r14,2), %r10d
shrl $0x4, %r10d
cmpq $0x1, %rdi
jne 0x3502b
movq 0x60(%rsp), %r11
jmp 0x35025
movzwl (%rax), %r9d
shrl $0x2, %r9d
andl $-0x4, %r9d
xorl $0x1fc, %r9d            # imm = 0x1FC
movq 0x60(%rsp), %r11
movl (%r11,%r9), %r9d
addl (%r11,%r10,4), %r9d
jmp 0x35063
movzwl %r10w, %r10d
xorl $0x7f, %r10d
addl 0xb30(%rbx,%r10,4), %r9d
movzwl 0x2268(%rbx,%r14,2), %r10d
movl $0x2, %r11d
subl %edi, %r11d
andl $0x7f0, %r11d           # imm = 0x7F0
xorl %r10d, %r11d
shrl $0x4, %r11d
addl 0xb30(%rbx,%r11,4), %r9d
addl %ecx, %r9d
movl %r8d, %r10d
imulq $0x440, %r15, %r11      # imm = 0x440
addq 0xe0(%rsp), %r11
movl -0x8(%r11,%r10,4), %r11d
addl %r9d, %r11d
shlq $0x5, %r10
cmpl (%r13,%r10), %r11d
jae 0x350a0
addq %r13, %r10
movl %r11d, (%r10)
movl %r8d, 0x8(%r10)
movl %edi, 0xc(%r10)
movw $0x0, 0x6(%r10)
decl %r8d
cmpl $0x1, %r8d
ja 0x35066
incq %rdi
cmpq $0x4, %rdi
jne 0x34fbb
incl %esi
cmpl %ebp, %esi
jbe 0x35f75
movl $0x1, %r10d
movl $0x1, %r14d
cmpl $0x1, %r12d
movl 0x10(%rsp), %r15d
je 0x36121
xorl %r11d, %r11d
movl $0x1, %edx
movl $0x7fe, %eax            # imm = 0x7FE
movq %rax, 0xa0(%rsp)
movl %r15d, %eax
movq %rax, 0xc8(%rsp)
movl %r12d, %r10d
movl %r11d, %r12d
movq 0xc8(%rsp), %rax
cmpl $0x7bf, %r11d           # imm = 0x7BF
movl %r10d, 0x70(%rsp)
jae 0x360a6
movl %eax, %r15d
movq %rdx, 0x98(%rsp)
movq %rbx, %rdi
leaq 0x3c(%rsp), %rsi
callq 0x36d75
cmpl 0x48(%rbx), %eax
jae 0x360b9
movq 0x98(%rsp), %rcx
movq %rcx, %rdx
shlq $0x5, %rdx
leaq (%rdx,%r13), %rbp
movl 0x8(%r13,%rdx), %edx
subl %edx, %ecx
cmpl $0x1, %edx
movl %eax, 0x138(%rsp)
movl %r12d, 0x58(%rsp)
jne 0x35182
movl %ecx, %ecx
shlq $0x5, %rcx
movzwl 0x4(%r13,%rcx), %edx
cmpl $0x0, 0xc(%rbp)
je 0x351c6
leaq 0x2a860(%rip), %rcx     # 0x5f9e0
jmp 0x351cd
movl 0xc(%rbp), %r9d
movzwl 0x6(%rbp), %edx
testl %edx, %edx
je 0x351f5
subl %edx, %ecx
cmpl $0x4, %r9d
movl $0x0, %r14d
adcl $0x7, %r14d
cmpl $0x1, %edx
movl $0x8, %edx
cmovnel %edx, %r14d
movq %rcx, %rdx
shlq $0x5, %rdx
addq %r13, %rdx
addq $0x10, %rdx
movl (%rdx), %r12d
cmpl $0x4, %r9d
jb 0x3521e
jmp 0x35259
leaq 0x2a81f(%rip), %rcx     # 0x5f9ec
movzbl (%rdx,%rcx), %r14d
movq 0xf0(%rsp), %r12
movl 0xb0(%rsp), %ecx
movl 0xac(%rsp), %edi
movl 0xa8(%rsp), %r8d
jmp 0x352c7
movl %ecx, %ecx
movq %rcx, %rdx
shlq $0x5, %rdx
addq %r13, %rdx
addq $0x10, %rdx
movzwl -0xc(%rdx), %esi
movl (%rdx), %r12d
cmpl $0x3, %r9d
ja 0x3524d
leaq 0x2a7df(%rip), %rdi     # 0x5f9f8
movzbl (%rsi,%rdi), %r14d
testq %r9, %r9
je 0x3527f
movl %r12d, 0x44(%rsp)
movl 0x4(%rdx), %esi
cmpl $0x1, %r9d
jne 0x3529d
movl %esi, 0x40(%rsp)
movl 0x8(%rdx), %ecx
movl %ecx, 0x48(%rsp)
movl 0xc(%rdx), %r8d
movl %r8d, 0x4c(%rsp)
movl %r12d, %edi
movl %esi, %r12d
jmp 0x352c7
leaq 0x2a7b0(%rip), %rcx     # 0x5fa04
movzbl (%rsi,%rcx), %r14d
addl $-0x3, %r9d
movl %r9d, 0x40(%rsp)
movl %r12d, 0x44(%rsp)
movl 0x4(%rdx), %ecx
movl %ecx, 0x48(%rsp)
movl 0x8(%rdx), %r8d
movl %r8d, 0x4c(%rsp)
movl %r12d, %edi
movl %r9d, %r12d
jmp 0x352c7
movl %r12d, 0x40(%rsp)
movl 0x4(%rdx), %edi
movl %edi, 0x44(%rsp)
movl 0x8(%rdx), %ecx
movl %ecx, 0x48(%rsp)
movl 0xc(%rdx), %r8d
movl %r8d, 0x4c(%rsp)
jmp 0x352c7
movl %esi, 0x48(%rsp)
shlq $0x5, %rcx
addq %r13, %rcx
movl %r12d, %edi
movl 0x10(%rcx,%r9,4), %edx
movl %edx, 0x40(%rsp)
xorq $0x1, %r9
movl 0x10(%rcx,%r9,4), %r8d
movl %r8d, 0x4c(%rsp)
movl %esi, %ecx
movl %edx, %r12d
movq %r15, 0xf8(%rsp)
incl %r15d
movw %r14w, 0x4(%rbp)
movl %r12d, 0x10(%rbp)
movl %edi, 0xac(%rsp)
movl %edi, 0x14(%rbp)
movl %ecx, 0xb0(%rsp)
movl %ecx, 0x18(%rbp)
movl %r8d, 0xa8(%rsp)
movl %r8d, 0x1c(%rbp)
movq (%rbx), %rdi
callq *0x18(%rbx)
movq %rax, %r8
leaq -0x1(%rax), %r9
movb -0x1(%rax), %dl
movq %r12, 0xf0(%rsp)
movl %r12d, %ecx
movq %r9, %rax
movq %rcx, 0xd0(%rsp)
subq %rcx, %rax
movb (%rax), %dil
movl 0x64(%rbx), %eax
movl %eax, 0x6c(%rsp)
movl %eax, %ecx
movq %r15, 0xc8(%rsp)
andl %r15d, %ecx
movl (%rbp), %r12d
movl %r14d, %ebp
movq %rbp, 0x80(%rsp)
shlq $0x5, %rbp
movq 0xc0(%rsp), %rax
addq %rbp, %rax
movq %rcx, 0x30(%rsp)
movzwl (%rax,%rcx,2), %eax
shrl $0x2, %eax
andl $-0x4, %eax
movl %eax, %ecx
xorl $0x1fc, %ecx            # imm = 0x1FC
movl 0xb30(%rbx,%rcx), %esi
addl %r12d, %esi
movq 0x98(%rsp), %r11
leaq 0x1(%r11), %rcx
movq %rcx, 0x188(%rsp)
shlq $0x5, %rcx
leaq (%rcx,%r13), %r14
movl (%r13,%rcx), %r13d
cmpl $0x40000000, %r13d      # imm = 0x40000000
setb %cl
movb %dl, 0x20(%rsp)
movb %dil, 0x14(%rsp)
cmpb %dl, %dil
sete %dl
testb %dl, %cl
movq %r8, 0x90(%rsp)
movl %esi, 0xb4(%rsp)
jne 0x35467
addl 0xb30(%rbx,%rax), %r12d
cmpl %r13d, %r12d
movl 0x70(%rsp), %r10d
ja 0x3545b
movl $0x0, 0xc(%rsp)
movq %r9, %r15
movzbl 0x20(%rsp), %esi
movq 0xc8(%rsp), %rax
shll $0x8, %eax
movzbl -0x2(%r8), %edx
orl %eax, %edx
andl 0x60(%rbx), %edx
movb 0xbc(%rbx), %cl
shll %cl, %edx
leal (%rdx,%rdx,2), %edi
addq %rdi, %rdi
addq 0x68(%rbx), %rdi
cmpl $0x7, 0x80(%rsp)
jae 0x35478
orl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
movl %esi, %ecx
movq 0x60(%rsp), %r9
movl %esi, %edx
andl $0x1, %edx
negl %edx
shrl %ecx
movl %esi, %r8d
andl $-0x2, %r8d
movzwl (%rdi,%r8), %r8d
andl $0x7f0, %edx            # imm = 0x7F0
xorl %r8d, %edx
shrl $0x4, %edx
addl (%r9,%rdx,4), %eax
cmpl $0x3, %esi
movl %ecx, %esi
ja 0x3542d
jmp 0x35494
movl $0x0, 0xc(%rsp)
xorl %eax, %eax
jmp 0x354d1
movl $0x0, 0xc(%rsp)
xorl %eax, %eax
movl 0x70(%rsp), %r10d
jmp 0x354d1
movzbl 0x14(%rsp), %edx
movq 0x60(%rsp), %rcx
callq 0x371c8
movl 0x70(%rsp), %r10d
movq 0x98(%rsp), %r11
addl %r12d, %eax
cmpl %r13d, %eax
movq %r15, %r9
jae 0x354c2
movl %eax, (%r14)
movabsq $-0xffffffff, %rcx      # imm = 0xFFFFFFFF00000001
movq %rcx, 0x8(%r14)
movw $0x0, 0x6(%r14)
movl $0x1, 0xc(%rsp)
movl %eax, %r13d
movq 0x90(%rsp), %r8
movl 0xb4(%rsp), %esi
movl 0x58(%rsp), %r15d
movq 0x80(%rsp), %rdx
movzwl 0x2220(%rbx,%rdx,2), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
xorl $0x1fc, %ecx            # imm = 0x1FC
movl 0xb30(%rbx,%rcx), %ecx
addl %esi, %ecx
movl %ecx, 0x78(%rsp)
movl 0x40(%rbx), %ecx
movl $0x7fe, %edi            # imm = 0x7FE
subl %r15d, %edi
cmpl %edi, %ecx
movq %rcx, 0x118(%rsp)
cmovbl %ecx, %edi
cmpl $0x6, %edx
ja 0x355a1
movb 0x14(%rsp), %cl
cmpb 0x20(%rsp), %cl
movl 0x10(%rsp), %r15d
jne 0x355a6
cmpl %r13d, 0x78(%rsp)
jae 0x355a6
cmpl $0x2, 0x8(%r14)
jb 0x35544
cmpl $0x0, 0xc(%r14)
je 0x355a6
movq 0x80(%rsp), %rcx
movzwl 0x2238(%rbx,%rcx,2), %ecx
shrl $0x4, %ecx
movq 0xb8(%rsp), %rdx
addq %rbp, %rdx
movq 0x30(%rsp), %rsi
movzwl (%rdx,%rsi,2), %edx
shrl $0x4, %edx
movl 0xb30(%rbx,%rcx,4), %ecx
addl 0x78(%rsp), %ecx
addl 0xb30(%rbx,%rdx,4), %ecx
cmpl %r13d, %ecx
jae 0x355a6
movl %ecx, (%r14)
movq $0x1, 0x8(%r14)
movw $0x0, 0x6(%r14)
movl $0x0, 0xc(%rsp)
jmp 0x355a6
movl 0x10(%rsp), %r15d
movq 0xa0(%rsp), %rcx
movl %ecx, %ecx
movq %rcx, 0xa0(%rsp)
cmpl $0x2, %edi
movq 0x28(%rsp), %r13
jb 0x35be3
movl 0x48(%rbx), %edx
cmpl %edx, %edi
movq %rdx, 0x58(%rsp)
movl %edx, %r12d
cmovbl %edi, %r12d
testl %eax, %eax
sete %cl
orb 0xc(%rsp), %cl
movl %edi, 0xc(%rsp)
movq %r9, 0xd8(%rsp)
jne 0x35779
movb 0x14(%rsp), %cl
cmpb 0x20(%rsp), %cl
je 0x35779
cmpl $0x2, %edi
je 0x35779
movq 0xd0(%rsp), %r14
negq %r14
movb (%r8), %cl
cmpb (%r8,%r14), %cl
jne 0x35779
movb 0x1(%r8), %cl
cmpb 0x1(%r8,%r14), %cl
jne 0x35779
movl %edi, %edx
movq 0x58(%rsp), %rcx
leal 0x1(%rcx), %edi
cmpl %edx, %edi
cmovbl %edi, %edx
movl $0x3, %ecx
cmpl $0x4, %edx
movq 0x80(%rsp), %r9
jb 0x3568f
movq 0xa0(%rsp), %rsi
movq 0x118(%rsp), %rcx
cmpq %rsi, %rcx
cmovbq %rcx, %rsi
movl %edi, %ecx
cmpq %rcx, %rsi
cmovaeq %rcx, %rsi
addq %r8, %r14
movl $0x3, %ecx
movb -0x1(%r8,%rcx), %dil
cmpb -0x1(%r14,%rcx), %dil
jne 0x3568f
incq %rcx
cmpq %rcx, %rsi
jne 0x35679
movl %edx, %ecx
movq %r8, %r14
leaq 0x2a347(%rip), %rdx     # 0x5f9e0
movzbl (%r9,%rdx), %esi
movq 0xf8(%rsp), %r15
addl $0x2, %r15d
andl 0x6c(%rsp), %r15d
movzwl 0x2220(%rbx,%rsi,2), %edx
movzwl 0x2238(%rbx,%rsi,2), %edi
shll $0x5, %esi
movq 0xc0(%rsp), %r8
addq %rsi, %r8
movzwl (%r8,%r15,2), %r8d
shrl $0x2, %r8d
andl $-0x4, %r8d
movl $0x1fc, %r10d           # imm = 0x1FC
xorl %r10d, %r8d
addq 0xb8(%rsp), %rsi
movzwl (%rsi,%r15,2), %r9d
shrl $0x2, %r9d
andl $-0x4, %r9d
xorl %r10d, %r9d
shrl $0x2, %edx
andl $-0x4, %edx
xorl %r10d, %edx
shrl $0x4, %edi
leal (%rcx,%r11), %esi
movl 0x70(%rsp), %r10d
cmpl %esi, %r10d
cmovbel %esi, %r10d
addl 0xb30(%rbx,%r8), %eax
addl 0xb30(%rbx,%r9), %eax
addl 0xb30(%rbx,%rdx), %eax
addl 0xb30(%rbx,%rdi,4), %eax
decl %ecx
imulq $0x440, %r15, %rdx      # imm = 0x440
addq 0xe0(%rsp), %rdx
addl -0x8(%rdx,%rcx,4), %eax
shlq $0x5, %rsi
cmpl (%r13,%rsi), %eax
jae 0x3576a
addq %r13, %rsi
movl %eax, (%rsi)
movl %ecx, 0x8(%rsi)
movl $0x0, 0xc(%rsi)
movw $0x1, 0x6(%rsi)
movq %r14, %r8
movq 0xd8(%rsp), %r9
movl 0xc(%rsp), %edi
addq 0xb8(%rsp), %rbp
movq 0x30(%rsp), %rax
leaq (,%rax,2), %rax
addq %rbp, %rax
movq %rax, 0x180(%rsp)
movq 0x58(%rsp), %rax
movq 0x118(%rsp), %rcx
cmpq %rax, %rcx
cmovaeq %rax, %rcx
movq 0xa0(%rsp), %rax
cmpq %rax, %rcx
cmovaeq %rax, %rcx
movq %rcx, 0x70(%rsp)
movl $0x2, %ebp
xorl %r15d, %r15d
movl %r12d, 0x38(%rsp)
movl 0x40(%rsp,%r15,4), %edx
movq %r9, %rax
subq %rdx, %rax
movb (%r9), %cl
cmpb (%rax), %cl
jne 0x35a9b
movb (%r8), %cl
cmpb 0x1(%rax), %cl
jne 0x35a9b
negq %rdx
movq %rdx, 0x20(%rsp)
movl $0x2, %r14d
cmpl $0x3, %r12d
movq 0x70(%rsp), %rsi
jb 0x3582e
movq 0x20(%rsp), %rcx
addq %r8, %rcx
movl $0x2, %r14d
movb -0x1(%r8,%r14), %dl
cmpb -0x1(%rcx,%r14), %dl
jne 0x3582e
incq %r14
cmpq %r14, %rsi
jne 0x35817
movl %r12d, %r14d
leal (%r14,%r11), %esi
cmpl %esi, %r10d
cmoval %r10d, %esi
movq 0x80(%rsp), %rdx
movzwl 0x2238(%rbx,%rdx,2), %ecx
shrl $0x4, %ecx
testq %r15, %r15
movl %esi, 0x14(%rsp)
je 0x35884
movzwl %cx, %ecx
xorl $0x7f, %ecx
movl 0xb30(%rbx,%rcx,4), %r12d
movzwl 0x2250(%rbx,%rdx,2), %ecx
shrl $0x4, %ecx
cmpq $0x1, %r15
movq 0x30(%rsp), %r10
jne 0x358af
movq 0x60(%rsp), %rdx
addl (%rdx,%rcx,4), %r12d
jmp 0x358e0
movq 0x180(%rsp), %rdx
movzwl (%rdx), %edx
shrl $0x2, %edx
andl $-0x4, %edx
xorl $0x1fc, %edx            # imm = 0x1FC
movq 0x60(%rsp), %rsi
movl (%rsi,%rdx), %r12d
addl (%rsi,%rcx,4), %r12d
movq 0x30(%rsp), %r10
jmp 0x358e0
movzwl %cx, %ecx
xorl $0x7f, %ecx
addl 0xb30(%rbx,%rcx,4), %r12d
movzwl 0x2268(%rbx,%rdx,2), %ecx
movl $0x2, %edx
subl %r15d, %edx
andl $0x7f0, %edx            # imm = 0x7F0
xorl %ecx, %edx
shrl $0x4, %edx
addl 0xb30(%rbx,%rdx,4), %r12d
addl 0x78(%rsp), %r12d
movl %r14d, %edx
movl %edx, %esi
imulq $0x440, %r10, %rcx      # imm = 0x440
addq 0xe0(%rsp), %rcx
movl -0x8(%rcx,%rsi,4), %esi
addl %r12d, %esi
leal (%r11,%rdx), %edi
shlq $0x5, %rdi
cmpl (%r13,%rdi), %esi
jae 0x35921
addq %r13, %rdi
movl %esi, (%rdi)
movl %edx, 0x8(%rdi)
movl %r15d, 0xc(%rdi)
movw $0x0, 0x6(%rdi)
decl %edx
cmpl $0x1, %edx
ja 0x358e8
movl %r14d, %edx
leaq 0x1(%rdx), %r10
testq %r15, %r15
cmovel %r10d, %ebp
movq 0x58(%rsp), %rsi
leal (%rsi,%r10), %r13d
movl 0xc(%rsp), %edi
cmpl %edi, %r13d
movl %edi, %esi
movl %r13d, 0xd0(%rsp)
cmovbl %r13d, %esi
leal 0x3(%r14), %r13d
cmpl %esi, %r13d
ja 0x35a8c
movl %esi, 0xf8(%rsp)
movb (%r9,%r10), %sil
cmpb (%rax,%r10), %sil
jne 0x35a8c
movb 0x2(%r9,%rdx), %sil
cmpb 0x2(%rax,%rdx), %sil
jne 0x35a8c
movq %r10, 0x168(%rsp)
leaq 0x2a063(%rip), %rsi     # 0x5f9f8
movq 0x80(%rsp), %rdi
movzbl (%rdi,%rsi), %esi
movq 0xc8(%rsp), %rdi
addl %r14d, %edi
movl %edi, %r8d
andl 0x6c(%rsp), %r8d
movl -0x8(%rcx,%rdx,4), %ecx
movl %ecx, 0x134(%rsp)
shll $0x5, %esi
addq 0xc0(%rsp), %rsi
movq %r8, 0x170(%rsp)
movzwl (%rsi,%r8,2), %esi
shll $0x8, %edi
movzbl -0x1(%r9,%rdx), %r8d
orl %edi, %r8d
andl 0x60(%rbx), %r8d
movb 0xbc(%rbx), %cl
shll %cl, %r8d
shrl $0x4, %esi
movl 0xb30(%rbx,%rsi,4), %ecx
movl %ecx, 0x130(%rsp)
leal (%r8,%r8,2), %edi
addq %rdi, %rdi
addq 0x68(%rbx), %rdi
movzbl (%r9,%rdx), %esi
movzbl (%rax,%rdx), %edx
movq 0x60(%rsp), %rcx
callq 0x371c8
cmpl 0xf8(%rsp), %r13d
movl %eax, 0x12c(%rsp)
jae 0x35aad
movl %r13d, %ecx
movq 0xa0(%rsp), %rdx
movq 0x118(%rsp), %rsi
cmpl %edx, %esi
cmovbl %esi, %edx
movl 0xd0(%rsp), %esi
cmpl %esi, %edx
cmovael %esi, %edx
movq 0xd8(%rsp), %r9
addq %r9, %rcx
movq 0x98(%rsp), %r11
movb (%rcx), %sil
movq 0x20(%rsp), %rdi
cmpb (%rcx,%rdi), %sil
jne 0x35abd
incl %r13d
incq %rcx
cmpl %r13d, %edx
jne 0x35a67
movl 0xf8(%rsp), %eax
movl %eax, %r13d
jmp 0x35abd
movl 0x14(%rsp), %r10d
movq 0x28(%rsp), %r13
movl 0x38(%rsp), %r12d
incq %r15
cmpq $0x4, %r15
jne 0x357ce
jmp 0x35bae
movq 0x98(%rsp), %r11
movq 0xd8(%rsp), %r9
movq 0x170(%rsp), %rax
incl %eax
andl 0x6c(%rsp), %eax
movzwl 0x2320(%rbx,%rax,2), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
movl $0x1fc, %esi            # imm = 0x1FC
xorl %esi, %ecx
movzwl 0x24a0(%rbx,%rax,2), %edx
shrl $0x2, %edx
andl $-0x4, %edx
xorl %esi, %edx
movzwl 0x222a(%rbx), %edi
shrl $0x2, %edi
andl $-0x4, %edi
xorl %esi, %edi
movzwl 0x2242(%rbx), %r8d
shrl $0x4, %r8d
leal (%r11,%r13), %esi
movl 0x14(%rsp), %r10d
cmpl %esi, %r10d
cmovbel %esi, %r10d
notl %r14d
addl %r13d, %r14d
movl 0x134(%rsp), %r13d
addl %r12d, %r13d
movl %r13d, %r12d
addl 0x130(%rsp), %r12d
addl 0x12c(%rsp), %r12d
addl 0xb30(%rbx,%rcx), %r12d
addl 0xb30(%rbx,%rdx), %r12d
addl 0xb30(%rbx,%rdi), %r12d
addl 0xb30(%rbx,%r8,4), %r12d
imulq $0x440, %rax, %rax      # imm = 0x440
addq 0xe0(%rsp), %rax
addl -0x8(%rax,%r14,4), %r12d
shlq $0x5, %rsi
movq 0x28(%rsp), %r13
cmpl (%r13,%rsi), %r12d
jae 0x35b9d
addq %r13, %rsi
movl %r12d, (%rsi)
movl %r14d, 0x8(%rsi)
movq 0x168(%rsp), %rax
movw %ax, 0x6(%rsi)
movl %r15d, 0xc(%rsi)
movq 0x90(%rsp), %r8
movl 0xc(%rsp), %edi
jmp 0x35a96
movl 0x138(%rsp), %ecx
cmpl %r12d, %ecx
jbe 0x35bda
xorl %eax, %eax
movl %eax, %ecx
addl $0x2, %eax
cmpl 0xd30(%rbx,%rcx,4), %r12d
ja 0x35bbc
movl %r12d, 0xd30(%rbx,%rcx,4)
movl %eax, 0x3c(%rsp)
movl %r12d, %ecx
cmpl %ebp, %ecx
jae 0x35c11
movl 0x10(%rsp), %r15d
movl %r10d, %eax
movq 0xa0(%rsp), %rcx
decl %ecx
movq %rcx, 0xa0(%rsp)
movl %r10d, %r14d
movq 0x188(%rsp), %rdx
cmpq %rax, %rdx
jne 0x350fe
jmp 0x36121
movq 0x80(%rsp), %rax
movzwl 0x2220(%rbx,%rax,2), %eax
shrl $0x4, %eax
movl 0xb30(%rbx,%rax,4), %eax
movl %eax, 0x20(%rsp)
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
addl $0x2, %r15d
cmpl 0xd30(%rbx,%r15,4), %ebp
ja 0x35c35
addl %r11d, %ecx
movl 0x20(%rsp), %eax
addl 0xb4(%rsp), %eax
movl %eax, 0x20(%rsp)
cmpl %ecx, %r10d
cmovbel %ecx, %r10d
movl 0xd34(%rbx,%r15,4), %r14d
cmpq $0x100000, %r14         # imm = 0x100000
movl $0x13, %ecx
movl $0x6, %eax
cmovbl %eax, %ecx
movq %r14, %rax
shrq %cl, %rax
movzbl 0x3080(%rbx,%rax), %eax
leal (%rax,%rcx,2), %ecx
addq $-0x2, %r8
movl 0x3c(%rsp), %eax
movl %eax, 0x38(%rsp)
leal 0x3(%rbp), %esi
movq %r8, 0x90(%rsp)
movq %rsi, %r9
leal -0x2(%rbp), %eax
cmpl $0x3, %eax
movl $0x3, %edx
cmovael %edx, %eax
cmpl $0x7f, %r14d
ja 0x35ccb
movl %r14d, %edx
shlq $0x9, %rax
addq 0x150(%rsp), %rax
movl (%rax,%rdx,4), %edx
jmp 0x35ce9
movl %ecx, %esi
shlq $0x8, %rax
addq 0x158(%rsp), %rax
movl %r14d, %edx
andl $0xf, %edx
movl 0x15c0(%rbx,%rdx,4), %edx
addl (%rax,%rsi,4), %edx
movl %ebp, %eax
imulq $0x440, 0x30(%rsp), %rsi # imm = 0x440
addq 0x160(%rsp), %rsi
movl -0x8(%rsi,%rax,4), %r12d
addl 0x20(%rsp), %r12d
addl %edx, %r12d
leal (%r11,%rbp), %edx
shlq $0x5, %rdx
cmpl (%r13,%rdx), %r12d
jae 0x35d2e
addq %r13, %rdx
movl %r12d, (%rdx)
movl %ebp, 0x8(%rdx)
leal 0x4(%r14), %esi
movl %esi, 0xc(%rdx)
movw $0x0, 0x6(%rdx)
movq %r9, %rsi
movl %esi, %esi
movl %r15d, %edx
cmpl 0xd30(%rbx,%rdx,4), %ebp
jne 0x35d69
leal 0x1(%rbp), %r9d
movq 0x58(%rsp), %rcx
addl %ebp, %ecx
incl %ecx
cmpl %edi, %ecx
cmovael %edi, %ecx
leal 0x3(%rbp), %r13d
cmpl %ecx, %r13d
movl %r9d, 0x14(%rsp)
jbe 0x35d72
movq 0x28(%rsp), %r13
jmp 0x35f29
incl %ebp
movl %ebp, %eax
jmp 0x35f6c
movq %rsi, 0x78(%rsp)
movl %r14d, %esi
movq %r8, %rdx
subq %rsi, %rdx
movl %r9d, %esi
movq 0xd8(%rsp), %r9
movb (%r9,%rsi), %dil
cmpb (%rdx,%rsi), %dil
jne 0x35f1b
leal 0x2(%rbp), %esi
movb (%r9,%rsi), %dil
cmpb (%rdx,%rsi), %dil
jne 0x35f1b
movl %r10d, 0x70(%rsp)
cmpl %ecx, %r13d
movq 0x80(%rsp), %rdi
jae 0x35dd5
movl %ecx, %ecx
movq 0x78(%rsp), %r13
movb (%r9,%r13), %sil
cmpb (%rdx,%r13), %sil
jne 0x35dd5
incq %r13
cmpq %rcx, %r13
jb 0x35dc3
leaq 0x29c28(%rip), %rcx     # 0x5fa04
movzbl (%rdi,%rcx), %ecx
movq 0xc8(%rsp), %rsi
addl %ebp, %esi
movl %esi, %edi
andl 0x6c(%rsp), %edi
movq %rdi, 0xd0(%rsp)
shll $0x5, %ecx
addq 0xc0(%rsp), %rcx
movzwl (%rcx,%rdi,2), %r8d
shrl $0x4, %r8d
shll $0x8, %esi
movzbl -0x1(%r9,%rax), %edi
orl %esi, %edi
andl 0x60(%rbx), %edi
movb 0xbc(%rbx), %cl
shll %cl, %edi
leal (%rdi,%rdi,2), %edi
addq %rdi, %rdi
addq 0x68(%rbx), %rdi
movzbl (%r9,%rax), %esi
movzbl (%rdx,%rax), %edx
addl 0xb30(%rbx,%r8,4), %r12d
movq 0x60(%rsp), %rcx
callq 0x371c8
movq 0xd0(%rsp), %r9
incl %r9d
andl 0x6c(%rsp), %r9d
movzwl 0x2300(%rbx,%r9,2), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
movl $0x1fc, %edx            # imm = 0x1FC
xorl %edx, %ecx
movzwl 0x2480(%rbx,%r9,2), %esi
shrl $0x2, %esi
andl $-0x4, %esi
xorl %edx, %esi
movzwl 0x2228(%rbx), %edi
shrl $0x2, %edi
andl $-0x4, %edi
xorl %edx, %edi
movzwl 0x2240(%rbx), %r8d
shrl $0x4, %r8d
movq 0x98(%rsp), %r11
leal (%r11,%r13), %edx
movl 0x70(%rsp), %r10d
cmpl %edx, %r10d
cmovbel %edx, %r10d
notl %ebp
addl %r13d, %ebp
addl %r12d, %eax
addl 0xb30(%rbx,%rcx), %eax
addl 0xb30(%rbx,%rsi), %eax
addl 0xb30(%rbx,%rdi), %eax
addl 0xb30(%rbx,%r8,4), %eax
imulq $0x440, %r9, %rcx       # imm = 0x440
addq 0xe0(%rsp), %rcx
addl -0x8(%rcx,%rbp,4), %eax
shlq $0x5, %rdx
movq 0x28(%rsp), %r13
cmpl (%r13,%rdx), %eax
jae 0x35f11
addq %r13, %rdx
movl %eax, (%rdx)
movl %ebp, 0x8(%rdx)
movl 0x14(%rsp), %eax
movw %ax, 0x6(%rdx)
addl $0x4, %r14d
movl %r14d, 0xc(%rdx)
movq 0x90(%rsp), %r8
jmp 0x35f20
movq 0x28(%rsp), %r13
movl 0xc(%rsp), %edi
movq 0x78(%rsp), %rsi
addl $0x2, %r15d
cmpl 0x38(%rsp), %r15d
je 0x35bde
movl %r15d, %eax
movl 0xd34(%rbx,%rax,4), %r14d
cmpq $0x100000, %r14         # imm = 0x100000
movl $0x13, %ecx
movl $0x6, %eax
cmovbl %eax, %ecx
movq %r14, %rax
shrq %cl, %rax
movzbl 0x3080(%rbx,%rax), %eax
leal (%rax,%rcx,2), %ecx
movl 0x14(%rsp), %eax
incl %esi
movl %eax, %ebp
jmp 0x35ca0
cmpl $0x2, %esi
jae 0x35f94
movl $0x2, %esi
xorl %eax, %eax
jmp 0x35fa5
movl %edi, 0xb8(%rbx)
movl $0x1, %r12d
jmp 0x342c7
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addl $0x2, %eax
cmpl 0xd30(%rbx,%rax,4), %esi
ja 0x35f99
movzwl 0x2220(%rbx,%r14,2), %ecx
shrl $0x4, %ecx
addl 0xb30(%rbx,%rcx,4), %edx
movl 0x3c(%rsp), %edi
movl %eax, %eax
movl 0xd34(%rbx,%rax,4), %r9d
movl %esi, %r8d
imulq $0x440, %r15, %rcx      # imm = 0x440
addq 0x160(%rsp), %rcx
movl -0x8(%rcx,%r8,4), %r10d
addl %edx, %r10d
leal -0x2(%rsi), %r11d
cmpl $0x5, %esi
movl $0x3, %ecx
cmovael %ecx, %r11d
cmpq $0x7f, %r9
ja 0x3600b
movl %r11d, %ecx
shlq $0x9, %rcx
addq 0x150(%rsp), %rcx
addl (%rcx,%r9,4), %r10d
jmp 0x3605c
movl $0x6, %ecx
cmpl $0x100000, %r9d         # imm = 0x100000
jb 0x3601e
movl $0x13, %ecx
movq %r9, %rbx
shrq %cl, %rbx
movq 0x88(%rsp), %r14
movzbl 0x3080(%r14,%rbx), %ebx
leal (%rbx,%rcx,2), %ecx
movl %r9d, %ebx
andl $0xf, %ebx
addl 0x15c0(%r14,%rbx,4), %r10d
movq %r14, %rbx
movl %r11d, %r11d
shlq $0x8, %r11
addq 0x158(%rsp), %r11
addl (%r11,%rcx,4), %r10d
shlq $0x5, %r8
cmpl (%r13,%r8), %r10d
jae 0x36080
addq %r13, %r8
movl %r10d, (%r8)
movl %esi, 0x8(%r8)
leal 0x4(%r9), %ecx
movl %ecx, 0xc(%r8)
movw $0x0, 0x6(%r8)
movl 0xd30(%rbx,%rax,4), %r8d
leal 0x2(%rax), %ecx
cmpl %r8d, %esi
jne 0x36098
cmpl %edi, %ecx
je 0x350c0
cmpl %r8d, %esi
jne 0x3609f
movl %ecx, %eax
incl %esi
jmp 0x35fbc
addl $0x2, %r12d
cmpl %r10d, %r12d
jbe 0x360d7
movl %edx, %r14d
movl 0x10(%rsp), %r15d
jmp 0x36121
movl 0x3c(%rsp), %ecx
movl %ecx, 0x3c(%rbx)
movl %eax, 0x38(%rbx)
movq 0x98(%rsp), %r14
movl 0x10(%rsp), %r15d
movl 0x70(%rsp), %r10d
jmp 0x36121
movl %edx, %eax
shlq $0x5, %rax
movl (%r13,%rax), %eax
movl %edx, %r14d
movl %r12d, %ecx
shlq $0x5, %rcx
movl (%r13,%rcx), %ecx
cmpl %ecx, %eax
cmovael %ecx, %eax
cmovael %r12d, %r14d
incl %r12d
cmpl %r10d, %r12d
jbe 0x360e5
movl %r14d, %esi
subl %edx, %esi
movl 0x10(%rsp), %r15d
jne 0x36113
movl %edx, %r14d
jmp 0x36121
addl %esi, 0x4c(%rbx)
movq (%rbx), %rdi
callq *0x28(%rbx)
movl 0x70(%rsp), %r10d
movl %r10d, %eax
shlq $0x5, %rax
movl $0x40000000, (%r13,%rax) # imm = 0x40000000
decl %r10d
jne 0x36121
leal 0x1(%r14), %ecx
movl %ecx, 0x34(%rbx)
movl %r14d, %edx
shlq $0x5, %rdx
movl 0x8(%r13,%rdx), %r12d
movl 0xc(%r13,%rdx), %eax
movzwl 0x6(%r13,%rdx), %esi
subl %r12d, %r14d
testl %esi, %esi
je 0x36186
leal -0x1(%rcx), %edx
movq %rdx, %r8
shlq $0x5, %r8
leaq (%r8,%r13), %rdi
movl %r12d, 0x8(%r13,%r8)
subl %esi, %r14d
cmpl $0x1, %esi
jne 0x3618a
movl %eax, 0xc(%rdi)
movl $0x1, %r12d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x361b1
movl %ecx, %edx
jmp 0x361b1
movl $0x0, 0xc(%rdi)
decl %esi
addl $-0x2, %ecx
movq %rcx, %rdx
shlq $0x5, %rdx
movabsq $-0xffffffff, %rdi      # imm = 0xFFFFFFFF00000001
movq %rdi, 0x8(%r13,%rdx)
movl %ecx, %edx
movl %esi, %r12d
testl %r14d, %r14d
je 0x361d0
decl %edx
movq %rdx, %rcx
shlq $0x5, %rcx
movl %eax, 0xc(%r13,%rcx)
movl %r12d, 0x8(%r13,%rcx)
movl %edx, %ecx
jmp 0x3613d
movl %eax, 0xb8(%rbx)
movl %edx, 0x30(%rbx)
jmp 0x342cc
movl %r15d, %eax
subl 0x120(%rsp), %eax
addq %rax, 0xe0(%rbx)
movq %rbx, %rdi
movl %r15d, %esi
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x36b98
movq %rbx, %rdi
movq 0x120(%rsp), %rsi
jmp 0x361f5
movl %eax, %eax
addq %rax, 0xe0(%rbx)
movq %rbx, %rdi
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x36b1a