// File: /workspace/github_cpp_makefile_star2_O1/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 $0x198, %rsp            # imm = 0x198
movl %edx, %ebp
movl %esi, 0xec(%rsp)
cmpl $0x0, 0xdc(%rdi)
movq %rdi, 0x8(%rsp)
je 0x33e92
cmpl $0x0, 0xfc(%rdi)
je 0x33e94
addq $0x100, %rdi            # imm = 0x100
callq 0x3a5c8
movq 0x8(%rsp), %rdi
movl %eax, %ecx
testl %eax, %eax
jne 0x33ed4
jmp 0x33e94
jmp 0x33eb1
movl %ecx, %r14d
movq (%rdi), %rdi
movq 0x8(%rsp), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rdi
movl $0x0, 0xdc(%rdi)
cmpl $0x0, 0xd4(%rdi)
je 0x33ec2
movl 0xf8(%rdi), %ecx
jmp 0x33ed4
movq %rdi, %rbx
callq 0x36ea5
testl %eax, %eax
movl %r14d, %ecx
cmovnel %eax, %ecx
je 0x33ee8
movl %ecx, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe0(%rbx), %r13
testq %r13, %r13
je 0x33efe
movl %r13d, 0x34(%rsp)
jmp 0x33fd1
movl %ecx, 0x98(%rsp)
movl %ebp, %r12d
movq (%rbx), %rdi
movq %rbx, %r15
callq *0x10(%rbx)
movl %eax, %ebp
testl %eax, %eax
je 0x33fb1
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x370e1
leaq 0x70(%r15), %r14
movl 0x70(%r15), %ebx
movzwl 0x2280(%r15), %eax
shrl $0xb, %ebx
imull %eax, %ebx
movl $0x800, %ecx            # imm = 0x800
subl %eax, %ecx
shrl $0x5, %ecx
addl %eax, %ecx
movw %cx, 0x2280(%r15)
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x33f6a
shll $0x8, %ebx
movq %r14, %rdi
callq 0x3721d
movq 0x8(%rsp), %r15
movl %ebx, 0x70(%r15)
movq (%r15), %rdi
movq 0x8(%rsp), %rax
callq *0x18(%rax)
movq 0x8(%rsp), %rcx
movl 0x4c(%rcx), %ecx
subq %rcx, %rax
movzbl (%rax), %edx
movq 0x8(%rsp), %rax
movq 0x68(%rax), %rsi
movq %r14, %rdi
callq 0x37192
movq 0x8(%rsp), %rbx
decl 0x4c(%rbx)
movl $0x1, 0x34(%rsp)
movl 0x98(%rsp), %ecx
jmp 0x33fc6
movq %r15, %rdi
movl %r13d, %esi
callq 0x36f07
movl %eax, %ecx
movl %r13d, 0x34(%rsp)
movq %r15, %rbx
testl %ebp, %ebp
movl %r12d, %ebp
je 0x33ed4
movq %r13, 0x138(%rsp)
movl %ecx, 0x98(%rsp)
movq (%rbx), %rdi
callq *0x10(%rbx)
testl %eax, %eax
je 0x3659b
movl %ebp, 0xfc(%rsp)
leaq 0x3c(%rbx), %rax
movq %rax, 0x158(%rsp)
leaq 0xf888(%rbx), %r12
leaq 0xb30(%rbx), %rax
movq %rax, 0x88(%rsp)
leaq 0x2280(%rbx), %rax
movq %rax, 0xd0(%rsp)
leaq 0x2400(%rbx), %rax
movq %rax, 0xc0(%rsp)
leaq 0xb488(%rbx), %rax
movq %rax, 0x80(%rsp)
leaq 0x7084(%rbx), %rax
movq %rax, 0x150(%rsp)
leaq 0x1600(%rbx), %rax
movq %rax, 0x148(%rsp)
leaq 0x1a00(%rbx), %rax
movq %rax, 0x140(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0x48(%rsp)
leaq 0x2880(%rbx), %rax
movq %rax, 0x130(%rsp)
leaq 0x2580(%rbx), %rax
movq %rax, 0x188(%rsp)
leaq 0x2780(%rbx), %rax
movq %rax, 0x168(%rsp)
leaq 0x2c80(%rbx), %rax
movq %rax, 0x128(%rsp)
leaq 0x7080(%rbx), %rax
movq %rax, 0x170(%rsp)
leaq 0xb484(%rbx), %rax
movq %rax, 0x160(%rsp)
movl 0xec(%rsp), %eax
movq %rax, 0x178(%rsp)
movq %rbx, %r10
movq %r12, 0x28(%rsp)
cmpl $0x0, 0xcc(%r10)
je 0x3410a
cmpl $0x0, 0x4c(%r10)
je 0x3413c
movl 0x38(%r10), %eax
movl 0x3c(%r10), %ecx
movl %ecx, 0x50(%rsp)
jmp 0x3414e
movl 0x30(%r10), %eax
cmpl %eax, 0x34(%r10)
jne 0x34328
movq $0x0, 0x30(%r10)
cmpl $0x0, 0x4c(%r10)
je 0x3438b
movl 0x38(%r10), %r14d
movl 0x3c(%r10), %eax
movl %eax, 0x3c(%rsp)
jmp 0x343a0
movq %r10, %rdi
leaq 0x50(%rsp), %rsi
callq 0x370e1
movq 0x8(%rsp), %r10
movl 0x40(%r10), %r13d
movl $0xffffffff, 0xb8(%r10) # imm = 0xFFFFFFFF
cmpl $0x2, %r13d
jae 0x3416e
movl $0x1, %r13d
jmp 0x35589
movq %rax, 0x70(%rsp)
movl $0x111, %eax            # imm = 0x111
cmpl %eax, %r13d
movl $0x111, %r14d           # imm = 0x111
cmovbl %r13d, %r14d
movq (%r10), %rdi
movq 0x8(%rsp), %rax
callq *0x18(%rax)
movq 0x8(%rsp), %r10
cmpl $0x4, %r14d
movl $0x3, %ecx
cmovbl %ecx, %r14d
movq %rax, %r15
xorl %ebp, %ebp
xorl %r8d, %r8d
xorl %r12d, %r12d
movl %r13d, 0x18(%rsp)
movl 0x50(%r10,%rbp,4), %ecx
movb -0x1(%r15), %dl
movq %rcx, %rsi
notq %rsi
movl $0x4, %eax
cmpb (%rsi,%r15), %dl
jne 0x34250
negq %rcx
movb (%r15), %dl
cmpb (%r15,%rcx), %dl
jne 0x34250
movl $0x2, %ebx
cmpl $0x2, %r13d
je 0x34205
addq %r15, %rcx
movl $0x2, %ebx
movb -0x1(%r15,%rbx), %al
cmpb -0x1(%rcx,%rbx), %al
jne 0x34205
incq %rbx
cmpq %rbx, %r14
jne 0x341ef
movl %r14d, %ebx
cmpl 0x48(%r10), %ebx
jae 0x3421a
cmpl %r12d, %ebx
cmoval %ebx, %r12d
cmoval %ebp, %r8d
xorl %eax, %eax
jmp 0x34250
movl %ebp, 0xb8(%r10)
leal -0x1(%rbx), %esi
addl %esi, 0x4c(%r10)
movq (%r10), %rdi
movq 0x8(%rsp), %rax
movq %r12, %r13
movl %r8d, %r12d
callq *0x28(%rax)
movl %r12d, %r8d
movq %r13, %r12
movl 0x18(%rsp), %r13d
movq 0x8(%rsp), %r10
movl $0x1, %eax
movl %ebx, %edi
testb $0x3, %al
jne 0x3434b
incq %rbp
cmpq $0x4, %rbp
jne 0x341b2
movq 0x70(%rsp), %rbx
cmpl 0x48(%r10), %ebx
jae 0x34353
xorl %r15d, %r15d
cmpl $0x2, %ebx
jb 0x342db
movl 0x50(%rsp), %eax
movl 0xd2c(%r10,%rax,4), %r15d
cmpl $0x3, %eax
jb 0x342c1
movl %eax, %ecx
movl 0xd20(%r10,%rcx,4), %edx
incl %edx
cmpl %edx, %ebx
jne 0x342bb
movl 0xd24(%r10,%rcx,4), %edx
movl %r15d, %ecx
shrl $0x7, %ecx
cmpl %edx, %ecx
jbe 0x342bb
addl $-0x2, %eax
decl %ebx
movb $0x1, %cl
movl %edx, %r15d
jmp 0x342bd
xorl %ecx, %ecx
testb %cl, %cl
jne 0x34288
movl %eax, 0x50(%rsp)
cmpl $0x7f, %r15d
movl %ebx, %eax
movl $0x1, %ecx
cmoval %ecx, %eax
cmpl $0x2, %ebx
cmovnel %ebx, %eax
movl %eax, %ebx
cmpl $0x2, %r12d
jb 0x344e6
leal 0x1(%r12), %eax
cmpl %ebx, %eax
jae 0x3431a
leal 0x2(%r12), %eax
cmpl %ebx, %eax
jb 0x34300
cmpl $0x1ff, %r15d           # imm = 0x1FF
ja 0x3431a
leal 0x3(%r12), %eax
cmpl %ebx, %eax
jb 0x344e6
cmpl $0x8000, %r15d          # imm = 0x8000
jb 0x344e6
movl %r8d, 0xb8(%r10)
leal -0x1(%r12), %esi
jmp 0x3436f
movq %rax, %rcx
shlq $0x5, %rcx
movl 0x8(%r12,%rcx), %r13d
movl 0xc(%r12,%rcx), %ecx
movl %ecx, 0xb8(%r10)
incl %eax
movl %eax, 0x30(%r10)
jmp 0x35589
movl %edi, %r13d
jmp 0x35589
movl 0x50(%rsp), %eax
movl 0xd2c(%r10,%rax,4), %eax
addl $0x4, %eax
movl %eax, 0xb8(%r10)
leal -0x1(%rbx), %esi
movl %ebx, %r12d
addl %esi, 0x4c(%r10)
movq (%r10), %rdi
movq 0x8(%rsp), %rax
callq *0x28(%rax)
movq 0x8(%rsp), %r10
movl %r12d, %r13d
jmp 0x35589
movq %r10, %rdi
leaq 0x3c(%rsp), %rsi
callq 0x370e1
movq 0x8(%rsp), %r10
movl %eax, %r14d
movl 0x40(%r10), %ebx
cmpl $0x1, %ebx
ja 0x343bf
movl $0xffffffff, 0xb8(%r10) # imm = 0xFFFFFFFF
movl $0x1, %r13d
jmp 0x3456e
movl $0x111, %eax            # imm = 0x111
cmpl %eax, %ebx
movl $0x111, %r12d           # imm = 0x111
cmovbl %ebx, %r12d
movq (%r10), %rdi
movq 0x8(%rsp), %rax
callq *0x18(%rax)
movq 0x8(%rsp), %r10
movzbl -0x1(%rax), %r15d
cmpl $0x4, %r12d
movl $0x3, %ecx
cmovbl %ecx, %r12d
xorl %edx, %edx
xorl %ecx, %ecx
movl 0x50(%r10,%rdx,4), %esi
movl %esi, 0x50(%rsp,%rdx,4)
movq %rsi, %rdi
notq %rdi
cmpb (%rdi,%rax), %r15b
jne 0x3445f
negq %rsi
movb (%rax), %dil
cmpb (%rax,%rsi), %dil
jne 0x3445f
movl $0x2, %edi
cmpl $0x2, %ebx
je 0x34440
addq %rax, %rsi
movl $0x2, %edi
movb -0x1(%rax,%rdi), %r8b
cmpb -0x1(%rsi,%rdi), %r8b
jne 0x34440
incq %rdi
cmpq %rdi, %r12
jne 0x34429
movl %r12d, %edi
movl %edi, 0x110(%rsp,%rdx,4)
movl %ecx, %esi
cmpl 0x110(%rsp,%rsi,4), %edi
cmoval %edx, %ecx
cmpl $0x111, %edi            # imm = 0x111
sete %sil
jmp 0x3446c
movl $0x0, 0x110(%rsp,%rdx,4)
xorl %esi, %esi
testb %sil, %sil
jne 0x3447e
incq %rdx
cmpq $0x4, %rdx
jne 0x343f6
movl %ecx, %edx
movl 0x110(%rsp,%rdx,4), %r13d
movl 0x48(%r10), %edx
cmpl %edx, %r13d
movq 0x28(%rsp), %r12
jae 0x3454f
cmpl %edx, %r14d
jae 0x35faa
movl 0x50(%rsp), %r11d
movq %r11, %rcx
notq %rcx
movb (%rcx,%rax), %bl
cmpl %r14d, %r13d
cmovbel %r14d, %r13d
cmpl $0x1, %r13d
ja 0x35fe2
cmpb %bl, %r15b
je 0x35fe2
movl $0xffffffff, 0xb8(%r10) # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %r13d, %r8d
movl $0x1, %r13d
jmp 0x34570
cmpl $0x2, %r13d
je 0x34163
cmpl $0x2, %ebx
movl $0x1, %r13d
jb 0x35589
movl %edi, %ebp
movq %r10, %rdi
movq 0x158(%rsp), %rsi
callq 0x370e1
movq 0x8(%rsp), %r10
movl %eax, 0x38(%r10)
movb $0x1, %dl
cmpl $0x2, %eax
jb 0x360e1
movl 0x3c(%r10), %ecx
movl 0xd2c(%r10,%rcx,4), %ecx
movl $0x1, %r13d
cmpl %ebx, %eax
jb 0x36097
cmpl %r15d, %ecx
jae 0x36097
xorl %edx, %edx
jmp 0x360e4
movl %ecx, 0xb8(%r10)
leal -0x1(%r13), %esi
addl %esi, 0x4c(%r10)
movq (%r10), %rdi
movq 0x8(%rsp), %rax
callq *0x28(%rax)
movq 0x8(%rsp), %r10
xorl %eax, %eax
testb %al, %al
je 0x35589
movl 0x50(%rsp), %eax
movl %eax, 0xbc(%rsp)
movl 0x54(%rsp), %eax
movl %eax, 0xb4(%rsp)
movl 0x58(%rsp), %eax
movl %eax, 0xb8(%rsp)
xorl %ebp, %ebp
movl 0x5c(%rsp), %eax
movl %eax, 0xb0(%rsp)
movl 0x34(%rsp), %eax
movq %rax, 0x18(%rsp)
leal 0x1(%rbp), %edx
movb $0x1, %bl
cmpl %r8d, %edx
jne 0x345c0
movl %edx, %ebp
jmp 0x354be
cmpl $0x7c0, %edx            # imm = 0x7C0
jb 0x34623
addl $0x2, %ebp
movl %edx, %r14d
cmpl %r8d, %ebp
ja 0x345fa
movl %edx, %eax
shlq $0x5, %rax
movl (%r12,%rax), %eax
movl %edx, %r14d
movl %ebp, %ecx
shlq $0x5, %rcx
movl (%r12,%rcx), %ecx
cmpl %ecx, %eax
cmovael %ecx, %eax
cmovael %ebp, %r14d
incl %ebp
cmpl %r8d, %ebp
jbe 0x345e0
movl %r14d, %esi
subl %edx, %esi
je 0x3461b
addl %esi, 0x4c(%r10)
movq (%r10), %rdi
movq 0x8(%rsp), %rax
movl %r8d, %ebp
callq *0x28(%rax)
movl %ebp, %r8d
movq 0x8(%rsp), %r10
movl %r14d, %ebp
jmp 0x354be
movl %r8d, 0x14(%rsp)
movq %rdx, 0x68(%rsp)
movq %r10, %rdi
leaq 0x3c(%rsp), %rsi
callq 0x370e1
movq 0x8(%rsp), %r10
movl %eax, %edi
cmpl 0x48(%r10), %eax
jae 0x34685
movq 0x68(%rsp), %rcx
movl %ecx, %ebx
shlq $0x5, %rbx
leaq (%r12,%rbx), %r15
movl 0x8(%r12,%rbx), %eax
subl %eax, %ecx
cmpl $0x1, %eax
movl %edi, 0x10c(%rsp)
jne 0x346a0
movl %ecx, %eax
shlq $0x5, %rax
movzwl 0x4(%r12,%rax), %eax
cmpl $0x0, 0xc(%r15)
je 0x346c9
leaq 0x2b2ed(%rip), %rcx     # 0x5f970
jmp 0x346d0
movl 0x3c(%rsp), %eax
movl %eax, 0x3c(%r10)
movl %edi, 0x38(%r10)
movq 0x68(%rsp), %rbp
movl 0x14(%rsp), %r8d
jmp 0x354be
movl 0xc(%r15), %eax
movzwl 0x6(%r15), %edx
testl %edx, %edx
je 0x346f8
subl %edx, %ecx
movl $0x8, %r13d
cmpl $0x1, %edx
jne 0x3471e
cmpl $0x4, %eax
movl $0x0, %r13d
adcl $0x7, %r13d
jmp 0x3471e
leaq 0x2b2ac(%rip), %rcx     # 0x5f97c
movzbl (%rax,%rcx), %r13d
movl 0xbc(%rsp), %r14d
movl 0xb8(%rsp), %ecx
movl 0xb4(%rsp), %edi
movl 0xb0(%rsp), %r8d
jmp 0x347c3
movl %ecx, %edx
shlq $0x5, %rdx
movzwl 0x4(%r12,%rdx), %edx
cmpl $0x3, %eax
ja 0x34712
leaq 0x2b278(%rip), %rsi     # 0x5f988
jmp 0x34719
leaq 0x2b27b(%rip), %rsi     # 0x5f994
movzbl (%rdx,%rsi), %r13d
movl %ecx, %ecx
shlq $0x5, %rcx
leaq (%r12,%rcx), %rdx
addq $0x10, %rdx
movl (%rdx), %esi
cmpl $0x3, %eax
ja 0x3475f
testq %rax, %rax
je 0x34781
movl %esi, %edi
movl %esi, 0x54(%rsp)
movl 0x4(%rdx), %esi
cmpl $0x1, %eax
jne 0x347a1
movl %esi, 0x50(%rsp)
movl 0x8(%rdx), %ecx
movl %ecx, 0x58(%rsp)
movl 0xc(%rdx), %r8d
movl %r8d, 0x5c(%rsp)
movl %esi, %r14d
jmp 0x347c3
addl $-0x3, %eax
movl %eax, 0x50(%rsp)
movl %esi, 0x54(%rsp)
movl 0x4(%rdx), %ecx
movl %ecx, 0x58(%rsp)
movl 0x8(%rdx), %r8d
movl %r8d, 0x5c(%rsp)
movl %esi, %edi
movl %eax, %r14d
jmp 0x347c3
movl %esi, %r14d
movl %esi, 0x50(%rsp)
movl 0x4(%rdx), %edi
movl %edi, 0x54(%rsp)
movl 0x8(%rdx), %ecx
movl %ecx, 0x58(%rsp)
movl 0xc(%rdx), %r8d
movl %r8d, 0x5c(%rsp)
jmp 0x347c3
movl %esi, 0x58(%rsp)
addq %r12, %rcx
movl 0x10(%rcx,%rax,4), %edx
movl %edx, 0x50(%rsp)
xorq $0x1, %rax
movl 0x10(%rcx,%rax,4), %r8d
movl %r8d, 0x5c(%rsp)
movl %esi, %ecx
movl %edx, %r14d
movq 0x18(%rsp), %rax
leal 0x1(%rax), %r12d
movw %r13w, 0x4(%r15)
movl %r14d, 0x10(%r15)
movl %edi, 0xb4(%rsp)
movl %edi, 0x14(%r15)
movl %ecx, 0xb8(%rsp)
movl %ecx, 0x18(%r15)
movl %r8d, 0xb0(%rsp)
movl %r8d, 0x1c(%r15)
movq (%r10), %rdi
movq 0x8(%rsp), %rax
callq *0x18(%rax)
movq 0x8(%rsp), %r10
leaq -0x1(%rax), %rdi
movq %rax, 0x40(%rsp)
movb -0x1(%rax), %sil
movl %r14d, 0xbc(%rsp)
movl %r14d, %ecx
movq %rdi, %rax
movq %rcx, 0xf0(%rsp)
subq %rcx, %rax
movb (%rax), %r8b
movl 0x64(%r10), %eax
movl %eax, 0x7c(%rsp)
movl %eax, %ecx
movq %r12, 0xc8(%rsp)
andl %r12d, %ecx
movl (%r15), %r12d
movl %r13d, %edx
movq %rdx, 0xa0(%rsp)
movq %rdx, %r13
shlq $0x5, %r13
movq 0xd0(%rsp), %rax
addq %r13, %rax
movq %rcx, 0x70(%rsp)
movzwl (%rax,%rcx,2), %eax
shrl $0x2, %eax
andl $-0x4, %eax
movl %eax, %ecx
xorl $0x1fc, %ecx            # imm = 0x1FC
movl 0xb30(%r10,%rcx), %ecx
addl %r12d, %ecx
movl %ecx, 0x9c(%rsp)
movq 0x28(%rsp), %rcx
leaq (%rbx,%rcx), %r15
addq $0x20, %r15
movl (%r15), %r14d
cmpl $0x40000000, %r14d      # imm = 0x40000000
setb %cl
movl %esi, %ebx
movb %r8b, 0xa8(%rsp)
cmpb %sil, %r8b
sete %dl
movl $0x0, 0xd8(%rsp)
testb %dl, %cl
movq %rdi, 0x60(%rsp)
jne 0x34972
addl 0xb30(%r10,%rax), %r12d
cmpl %r14d, %r12d
movq 0x88(%rsp), %r9
movl 0x14(%rsp), %r8d
ja 0x3495c
movzbl %bl, %esi
movq 0xc8(%rsp), %rax
shll $0x8, %eax
movq 0x40(%rsp), %rcx
movzbl -0x2(%rcx), %edx
orl %eax, %edx
andl 0x60(%r10), %edx
movb 0xbc(%r10), %cl
shll %cl, %edx
leal (%rdx,%rdx,2), %edi
addq %rdi, %rdi
addq 0x68(%r10), %rdi
cmpl $0x7, 0xa0(%rsp)
jae 0x34992
orl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
movl %esi, %ecx
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 0x3492e
jmp 0x349a7
xorl %eax, %eax
movq 0x28(%rsp), %r12
movq 0x80(%rsp), %r11
movq 0x68(%rsp), %r9
jmp 0x3498b
xorl %eax, %eax
movq 0x28(%rsp), %r12
movq 0x80(%rsp), %r11
movq 0x68(%rsp), %r9
movl 0x14(%rsp), %r8d
movq 0x40(%rsp), %r14
jmp 0x349f3
movzbl 0xa8(%rsp), %edx
movq %r9, %rcx
callq 0x3751c
movq 0x8(%rsp), %r10
addl %r12d, %eax
cmpl %r14d, %eax
jae 0x349d2
movl %eax, (%r15)
movabsq $-0xffffffff, %rcx      # imm = 0xFFFFFFFF00000001
movq %rcx, 0x8(%r15)
movw $0x0, 0x6(%r15)
movl $0x1, 0xd8(%rsp)
movq 0x28(%rsp), %r12
movq 0x80(%rsp), %r11
movq 0x68(%rsp), %r9
movl 0x14(%rsp), %r8d
movq 0x40(%rsp), %r14
movq 0x60(%rsp), %rdi
movq 0xa0(%rsp), %rdx
movzwl 0x2220(%r10,%rdx,2), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
xorl $0x1fc, %ecx            # imm = 0x1FC
movl 0xb30(%r10,%rcx), %ecx
addl 0x9c(%rsp), %ecx
movl %ecx, 0x90(%rsp)
movl 0x40(%r10), %ecx
movl $0x7fe, %esi            # imm = 0x7FE
subl %ebp, %esi
cmpl %esi, %ecx
movl %esi, 0x104(%rsp)
movl %ecx, 0x108(%rsp)
cmovbl %ecx, %esi
movl %esi, 0x38(%rsp)
cmpl $0x6, %edx
ja 0x34ae2
cmpb %bl, 0xa8(%rsp)
jne 0x34ae2
movl (%r15), %ecx
cmpl %ecx, 0x90(%rsp)
jae 0x34ae2
cmpl $0x2, 0x8(%r15)
jb 0x34a78
cmpl $0x0, 0xc(%r15)
je 0x34ae2
movq 0xa0(%rsp), %rdx
movzwl 0x2238(%r10,%rdx,2), %edx
shrl $0x4, %edx
movq 0xc0(%rsp), %rsi
addq %r13, %rsi
movq %r13, %rbp
movq 0x70(%rsp), %r13
movzwl (%rsi,%r13,2), %esi
movq %rbp, %r13
shrl $0x4, %esi
movl 0xb30(%r10,%rdx,4), %edx
addl 0x90(%rsp), %edx
addl 0xb30(%r10,%rsi,4), %edx
cmpl %ecx, %edx
jae 0x34ae2
movl %edx, (%r15)
movq $0x1, 0x8(%r15)
movw $0x0, 0x6(%r15)
movl $0x0, 0xd8(%rsp)
movl 0x38(%rsp), %ecx
cmpl $0x2, %ecx
jb 0x350c1
movl 0x48(%r10), %esi
cmpl %esi, %ecx
movq %rsi, 0xe0(%rsp)
movl %esi, %r15d
cmovbl %ecx, %r15d
testl %eax, %eax
sete %cl
orb 0xd8(%rsp), %cl
jne 0x34c7e
cmpb %bl, 0xa8(%rsp)
je 0x34c7e
cmpl $0x2, 0x38(%rsp)
je 0x34c7e
movq 0xf0(%rsp), %rbx
negq %rbx
movb (%r14), %cl
cmpb (%r14,%rbx), %cl
jne 0x34c7e
movb 0x1(%r14), %cl
cmpb 0x1(%r14,%rbx), %cl
jne 0x34c7e
movl %r15d, %ebp
movq 0xe0(%rsp), %rcx
leal 0x1(%rcx), %edx
movl 0x38(%rsp), %ecx
cmpl %ecx, %edx
cmovael %ecx, %edx
movl $0x3, %ecx
cmpl $0x4, %edx
jb 0x34b96
movl %edx, %esi
addq %r14, %rbx
movl $0x3, %ecx
movb -0x1(%r14,%rcx), %dil
cmpb -0x1(%rbx,%rcx), %dil
jne 0x34b96
incq %rcx
cmpq %rcx, %rsi
jne 0x34b80
movl %edx, %ecx
leaq 0x2add3(%rip), %rdx     # 0x5f970
movq 0xa0(%rsp), %rsi
movzbl (%rsi,%rdx), %esi
movq 0x18(%rsp), %r15
addl $0x2, %r15d
andl 0x7c(%rsp), %r15d
movzwl 0x2220(%r10,%rsi,2), %edx
movzwl 0x2238(%r10,%rsi,2), %edi
shll $0x5, %esi
movq 0xd0(%rsp), %r8
addq %rsi, %r8
movzwl (%r8,%r15,2), %r8d
shrl $0x2, %r8d
andl $-0x4, %r8d
movl $0x1fc, %ebx            # imm = 0x1FC
xorl %ebx, %r8d
addq 0xc0(%rsp), %rsi
movzwl (%rsi,%r15,2), %r9d
shrl $0x2, %r9d
andl $-0x4, %r9d
xorl %ebx, %r9d
shrl $0x2, %edx
andl $-0x4, %edx
xorl %ebx, %edx
shrl $0x4, %edi
movq 0x68(%rsp), %rsi
addl %ecx, %esi
movl 0x14(%rsp), %ebx
cmpl %esi, %ebx
cmovbel %esi, %ebx
addl 0xb30(%r10,%r8), %eax
addl 0xb30(%r10,%r9), %eax
addl 0xb30(%r10,%rdx), %eax
addl 0xb30(%r10,%rdi,4), %eax
decl %ecx
imulq $0x440, %r15, %rdx      # imm = 0x440
addq %r11, %rdx
addl -0x8(%rdx,%rcx,4), %eax
shlq $0x5, %rsi
cmpl (%r12,%rsi), %eax
jae 0x34c6e
addq %r12, %rsi
movl %eax, (%rsi)
movl %ecx, 0x8(%rsi)
movl $0x0, 0xc(%rsi)
movw $0x1, 0x6(%rsi)
movq 0x68(%rsp), %r9
movl %ebx, %r8d
movq 0x60(%rsp), %rdi
movl %ebp, %r15d
addq 0xc0(%rsp), %r13
movq 0x70(%rsp), %rax
leaq (,%rax,2), %rax
addq %r13, %rax
movq %rax, 0xd8(%rsp)
movl %r15d, %eax
movq %rax, 0xa8(%rsp)
movl $0x2, %eax
movq %rax, 0x18(%rsp)
xorl %ebx, %ebx
movl %r15d, 0x24(%rsp)
movl 0x50(%rsp,%rbx,4), %ebp
movq %rdi, %rax
subq %rbp, %rax
movb (%rdi), %cl
cmpb (%rax), %cl
jne 0x34f78
movb (%r14), %cl
cmpb 0x1(%rax), %cl
jne 0x34f78
negq %rbp
movl $0x2, %r13d
cmpl $0x3, %r15d
movq 0xa8(%rsp), %rsi
jb 0x34d12
leaq (%r14,%rbp), %rcx
movl $0x2, %r13d
movb -0x1(%r14,%r13), %dl
cmpb -0x1(%rcx,%r13), %dl
jne 0x34d12
incq %r13
cmpq %r13, %rsi
jne 0x34cfb
movl %r15d, %r13d
leal (%r9,%r13), %ecx
cmpl %ecx, %r8d
cmoval %r8d, %ecx
movl %ecx, 0x14(%rsp)
movq 0xa0(%rsp), %rdx
movzwl 0x2238(%r10,%rdx,2), %ecx
shrl $0x4, %ecx
testq %rbx, %rbx
je 0x34d6d
movzwl %cx, %ecx
xorl $0x7f, %ecx
movl 0xb30(%r10,%rcx,4), %r15d
movzwl 0x2250(%r10,%rdx,2), %ecx
shrl $0x4, %ecx
cmpq $0x1, %rbx
movq 0x70(%rsp), %r8
jne 0x34d9b
movq 0x88(%rsp), %rdx
addl (%rdx,%rcx,4), %r15d
jmp 0x34dcc
movq 0xd8(%rsp), %rdx
movzwl (%rdx), %edx
shrl $0x2, %edx
andl $-0x4, %edx
xorl $0x1fc, %edx            # imm = 0x1FC
movq 0x88(%rsp), %rsi
movl (%rsi,%rdx), %r15d
addl (%rsi,%rcx,4), %r15d
movq 0x70(%rsp), %r8
jmp 0x34dcc
movzwl %cx, %ecx
xorl $0x7f, %ecx
addl 0xb30(%r10,%rcx,4), %r15d
movzwl 0x2268(%r10,%rdx,2), %ecx
movl $0x2, %edx
subl %ebx, %edx
andl $0x7f0, %edx            # imm = 0x7F0
xorl %ecx, %edx
shrl $0x4, %edx
addl 0xb30(%r10,%rdx,4), %r15d
addl 0x90(%rsp), %r15d
movl %r13d, %edx
movl %edx, %esi
imulq $0x440, %r8, %rcx       # imm = 0x440
addq %r11, %rcx
movl -0x8(%rcx,%rsi,4), %esi
addl %r15d, %esi
leal (%r9,%rdx), %edi
shlq $0x5, %rdi
cmpl (%r12,%rdi), %esi
jae 0x34e09
addq %r12, %rdi
movl %esi, (%rdi)
movl %edx, 0x8(%rdi)
movl %ebx, 0xc(%rdi)
movw $0x0, 0x6(%rdi)
decl %edx
cmpl $0x1, %edx
ja 0x34dd7
movl %r13d, %edx
leaq 0x1(%rdx), %r8
testq %rbx, %rbx
movq 0x18(%rsp), %rsi
cmovel %r8d, %esi
movq %rsi, 0x18(%rsp)
movq 0xe0(%rsp), %rsi
leal (%r8,%rsi), %r14d
movl 0x38(%rsp), %esi
cmpl %esi, %r14d
cmovael %esi, %r14d
leal 0x3(%r13), %r12d
cmpl %r14d, %r12d
jbe 0x34e69
movl 0x14(%rsp), %r8d
movq 0x28(%rsp), %r12
movq 0x80(%rsp), %r11
movq 0x40(%rsp), %r14
movq 0x60(%rsp), %rdi
jmp 0x34f73
movq 0x60(%rsp), %rdi
movb (%rdi,%r8), %sil
cmpb (%rax,%r8), %sil
jne 0x34f5c
movb 0x2(%rdi,%rdx), %sil
cmpb 0x2(%rax,%rdx), %sil
jne 0x34f5c
movq %r8, 0x180(%rsp)
leaq 0x2aaed(%rip), %rsi     # 0x5f988
movq 0xa0(%rsp), %r8
movzbl (%r8,%rsi), %esi
movq %rdi, %r9
movq 0xc8(%rsp), %rdi
addl %r13d, %edi
movl %edi, %r8d
andl 0x7c(%rsp), %r8d
movl -0x8(%rcx,%rdx,4), %ecx
movl %ecx, 0xf0(%rsp)
shll $0x5, %esi
addq 0xd0(%rsp), %rsi
movq %r8, 0x190(%rsp)
movzwl (%rsi,%r8,2), %esi
shll $0x8, %edi
movzbl -0x1(%r9,%rdx), %r8d
orl %edi, %r8d
andl 0x60(%r10), %r8d
movb 0xbc(%r10), %cl
shll %cl, %r8d
shrl $0x4, %esi
movl 0xb30(%r10,%rsi,4), %ecx
movl %ecx, 0x100(%rsp)
leal (%r8,%r8,2), %edi
addq %rdi, %rdi
addq 0x68(%r10), %rdi
movzbl (%r9,%rdx), %esi
movzbl (%rax,%rdx), %edx
movq 0x88(%rsp), %rcx
callq 0x3751c
cmpl %r14d, %r12d
jae 0x34f8a
movl %r12d, %ecx
addq 0x60(%rsp), %rcx
movq 0x8(%rsp), %r10
movq 0x68(%rsp), %r9
movb (%rcx), %dl
cmpb (%rcx,%rbp), %dl
jne 0x34f94
incl %r12d
incq %rcx
cmpl %r12d, %r14d
jne 0x34f45
movl %r14d, %r12d
jmp 0x34f94
movl 0x14(%rsp), %r8d
movq 0x28(%rsp), %r12
movq 0x80(%rsp), %r11
movq 0x40(%rsp), %r14
movl 0x24(%rsp), %r15d
incq %rbx
cmpq $0x4, %rbx
jne 0x34cba
jmp 0x3507f
movq 0x8(%rsp), %r10
movq 0x68(%rsp), %r9
movq 0x190(%rsp), %r14
incl %r14d
andl 0x7c(%rsp), %r14d
movzwl 0x2320(%r10,%r14,2), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
movl $0x1fc, %esi            # imm = 0x1FC
xorl %esi, %ecx
movzwl 0x24a0(%r10,%r14,2), %edx
shrl $0x2, %edx
andl $-0x4, %edx
xorl %esi, %edx
movzwl 0x222a(%r10), %edi
shrl $0x2, %edi
andl $-0x4, %edi
xorl %esi, %edi
movzwl 0x2242(%r10), %r8d
shrl $0x4, %r8d
leal (%r12,%r9), %esi
movl 0x14(%rsp), %ebp
cmpl %esi, %ebp
cmovbel %esi, %ebp
notl %r13d
addl %r12d, %r13d
movl 0xf0(%rsp), %r11d
addl %r15d, %r11d
movl %r11d, %r15d
addl 0x100(%rsp), %r15d
addl %eax, %r15d
addl 0xb30(%r10,%rcx), %r15d
addl 0xb30(%r10,%rdx), %r15d
addl 0xb30(%r10,%rdi), %r15d
addl 0xb30(%r10,%r8,4), %r15d
imulq $0x440, %r14, %rax      # imm = 0x440
movq 0x80(%rsp), %r11
addq %r11, %rax
addl -0x8(%rax,%r13,4), %r15d
shlq $0x5, %rsi
movq 0x28(%rsp), %r12
cmpl (%r12,%rsi), %r15d
movq 0x40(%rsp), %r14
jae 0x35077
addq %r12, %rsi
movl %r15d, (%rsi)
movl %r13d, 0x8(%rsi)
movq 0x180(%rsp), %rax
movw %ax, 0x6(%rsi)
movl %ebx, 0xc(%rsi)
movl %ebp, %r8d
jmp 0x34e5f
movl 0x10c(%rsp), %ecx
cmpl %r15d, %ecx
movl 0x38(%rsp), %r11d
movq 0x18(%rsp), %rsi
jbe 0x350bd
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addl $0x2, %eax
cmpl 0xd30(%r10,%rax,4), %r15d
ja 0x3509a
movl %eax, 0x3c(%rsp)
movl %r15d, 0xd30(%r10,%rax,4)
addl $0x2, %eax
movl %eax, 0x3c(%rsp)
movl %r15d, %ecx
cmpl %esi, %ecx
jae 0x350d8
xorl %ebx, %ebx
movl %r9d, %ebp
movq 0xc8(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x354be
movq 0xa0(%rsp), %rax
movzwl 0x2220(%r10,%rax,2), %eax
shrl $0x4, %eax
movl 0xb30(%r10,%rax,4), %edi
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
addl $0x2, %ebp
cmpl 0xd30(%r10,%rbp,4), %esi
ja 0x350f9
addl %r9d, %ecx
addl 0x9c(%rsp), %edi
cmpl %ecx, %r8d
cmovbel %ecx, %r8d
movl 0xd34(%r10,%rbp,4), %r13d
cmpq $0x100000, %r13         # imm = 0x100000
movl $0x13, %ecx
movl $0x6, %eax
cmovbl %eax, %ecx
movq %r13, %rax
shrq %cl, %rax
movzbl 0x3080(%r10,%rax), %eax
leal (%rax,%rcx,2), %eax
movl %eax, 0xe0(%rsp)
addq $-0x2, %r14
movl 0x3c(%rsp), %eax
movl %eax, 0xa8(%rsp)
leal 0x3(%rsi), %r12d
movq %r14, 0x40(%rsp)
movl %edi, 0x24(%rsp)
movl %esi, %ebx
leal -0x2(%rbx), %eax
cmpl $0x3, %eax
movl $0x3, %ecx
cmovael %ecx, %eax
movl %r13d, %ecx
cmpl $0x7f, %r13d
ja 0x35192
shlq $0x9, %rax
addq 0x140(%rsp), %rax
movl (%rax,%rcx,4), %edx
jmp 0x351b6
movl 0xe0(%rsp), %esi
shlq $0x8, %rax
addq 0x148(%rsp), %rax
movl %r13d, %edx
andl $0xf, %edx
movl 0x15c0(%r10,%rdx,4), %edx
addl (%rax,%rsi,4), %edx
movl %ebx, %eax
imulq $0x440, 0x70(%rsp), %rsi # imm = 0x440
addq 0x150(%rsp), %rsi
movl -0x8(%rsi,%rax,4), %r15d
addl %edi, %r15d
addl %edx, %r15d
leal (%rbx,%r9), %edx
shlq $0x5, %rdx
movq 0x28(%rsp), %rsi
cmpl (%rsi,%rdx), %r15d
jae 0x351ff
addq 0x28(%rsp), %rdx
movl %r15d, (%rdx)
movl %ebx, 0x8(%rdx)
leal 0x4(%r13), %esi
movl %esi, 0xc(%rdx)
movw $0x0, 0x6(%rdx)
leal 0x1(%rbx), %esi
movl %r12d, %r12d
movl %ebp, %edx
cmpl 0xd30(%r10,%rdx,4), %ebx
jne 0x35493
movq %r13, 0x90(%rsp)
movq %rsi, 0x18(%rsp)
movl 0x48(%r10), %esi
leal (%rsi,%rbx), %edi
incl %edi
cmpl %r11d, %edi
cmovael %r11d, %edi
leal 0x3(%rbx), %r13d
cmpl %edi, %r13d
ja 0x3543c
movq %r14, %rdx
movl %r8d, 0x14(%rsp)
subq %rcx, %rdx
leal 0x1(%rbx), %ecx
movl %ecx, 0x9c(%rsp)
movl %ecx, %ecx
movq 0x60(%rsp), %r11
movb (%r11,%rcx), %r8b
cmpb (%rdx,%rcx), %r8b
jne 0x3542d
leal 0x2(%rbx), %ecx
movb (%r11,%rcx), %r8b
cmpb (%rdx,%rcx), %r8b
jne 0x3542d
cmpl %edi, %r13d
jae 0x352ba
movl %edi, %ecx
addl 0x18(%rsp), %esi
movl 0x108(%rsp), %edi
cmpl %esi, %edi
cmovbl %edi, %esi
movl 0x104(%rsp), %edi
cmpl %edi, %esi
cmovael %edi, %esi
movq %r12, %r13
movq 0x60(%rsp), %rdi
movb (%rdi,%r13), %dil
cmpb (%rdx,%r13), %dil
jne 0x352ba
incq %r13
cmpq %rcx, %r13
jb 0x352a0
movq %rsi, %r13
leaq 0x2a6d3(%rip), %rcx     # 0x5f994
movq 0xa0(%rsp), %rsi
movzbl (%rsi,%rcx), %ecx
movq 0xc8(%rsp), %rsi
addl %ebx, %esi
movl 0x64(%r10), %edi
movl %edi, 0x7c(%rsp)
movl %edi, %r14d
andl %esi, %r14d
shll $0x5, %ecx
addq 0xd0(%rsp), %rcx
movzwl (%rcx,%r14,2), %r8d
shrl $0x4, %r8d
shll $0x8, %esi
movq 0x60(%rsp), %r9
movzbl -0x1(%r9,%rax), %edi
orl %esi, %edi
andl 0x60(%r10), %edi
movb 0xbc(%r10), %cl
shll %cl, %edi
leal (%rdi,%rdi,2), %edi
addq %rdi, %rdi
addq 0x68(%r10), %rdi
movzbl (%r9,%rax), %esi
movzbl (%rdx,%rax), %edx
addl 0xb30(%r10,%r8,4), %r15d
movq 0x88(%rsp), %rcx
callq 0x3751c
movq 0x8(%rsp), %r10
incl %r14d
andl 0x7c(%rsp), %r14d
movzwl 0x2300(%r10,%r14,2), %ecx
movq %r14, %r11
shrl $0x2, %ecx
andl $-0x4, %ecx
movl $0x1fc, %edx            # imm = 0x1FC
xorl %edx, %ecx
movzwl 0x2480(%r10,%r14,2), %esi
shrl $0x2, %esi
andl $-0x4, %esi
xorl %edx, %esi
movzwl 0x2228(%r10), %edi
shrl $0x2, %edi
andl $-0x4, %edi
xorl %edx, %edi
movzwl 0x2240(%r10), %r8d
shrl $0x4, %r8d
movq 0x68(%rsp), %r9
leal (%r9,%r13), %edx
movl 0x14(%rsp), %r14d
cmpl %edx, %r14d
cmovbel %edx, %r14d
notl %ebx
addl %r13d, %ebx
addl %r15d, %eax
addl 0xb30(%r10,%rcx), %eax
addl 0xb30(%r10,%rsi), %eax
addl 0xb30(%r10,%rdi), %eax
addl 0xb30(%r10,%r8,4), %eax
imulq $0x440, %r11, %rcx      # imm = 0x440
addq 0x80(%rsp), %rcx
addl -0x8(%rcx,%rbx,4), %eax
shlq $0x5, %rdx
movq 0x28(%rsp), %rcx
cmpl (%rcx,%rdx), %eax
jae 0x354a4
addq %rcx, %rdx
movl %eax, (%rdx)
movl %ebx, 0x8(%rdx)
movl 0x9c(%rsp), %eax
movw %ax, 0x6(%rdx)
movq 0x90(%rsp), %r13
leal 0x4(%r13), %eax
movl %eax, 0xc(%rdx)
movl %r14d, %r8d
movq 0x40(%rsp), %r14
movl 0x38(%rsp), %r11d
movq 0x18(%rsp), %rsi
movl 0x24(%rsp), %edi
jmp 0x3544d
movl 0x14(%rsp), %r8d
movq 0x40(%rsp), %r14
movl 0x38(%rsp), %r11d
movq 0x18(%rsp), %rsi
movl 0x24(%rsp), %edi
movq 0x90(%rsp), %r13
addl $0x2, %ebp
cmpl 0xa8(%rsp), %ebp
setne %al
je 0x35495
movl %ebp, %eax
movl 0xd34(%r10,%rax,4), %r13d
cmpq $0x100000, %r13         # imm = 0x100000
movl $0x13, %ecx
movl $0x6, %eax
cmovbl %eax, %ecx
movq %r13, %rax
shrq %cl, %rax
movzbl 0x3080(%r10,%rax), %eax
leal (%rax,%rcx,2), %eax
movl %eax, 0xe0(%rsp)
movb $0x1, %al
incl %r12d
xorl %ebx, %ebx
testb %al, %al
jne 0x35168
jmp 0x354a9
movl %r14d, %r8d
jmp 0x35432
movl %r9d, %ebp
movq 0xc8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %r12
testb %bl, %bl
je 0x345af
movl %r8d, %eax
shlq $0x5, %rax
movl $0x40000000, (%r12,%rax) # imm = 0x40000000
decl %r8d
jne 0x354c6
leal 0x1(%rbp), %esi
movl %esi, 0x34(%r10)
movl %ebp, %edx
shlq $0x5, %rdx
movl 0x8(%r12,%rdx), %r13d
movl 0xc(%r12,%rdx), %ecx
movzwl 0x6(%r12,%rdx), %edi
subl %r13d, %ebp
testl %edi, %edi
je 0x35529
leal -0x1(%rsi), %edx
movq %rdx, %r9
shlq $0x5, %r9
leaq (%r12,%r9), %r8
movl %r13d, 0x8(%r12,%r9)
subl %edi, %ebp
cmpl $0x1, %edi
jne 0x3552d
movl %ecx, 0xc(%r8)
movl $0x1, %r13d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x35555
movl %esi, %edx
jmp 0x35555
movl $0x0, 0xc(%r8)
decl %edi
addl $-0x2, %esi
movq %rsi, %rdx
shlq $0x5, %rdx
movabsq $-0xffffffff, %r8       # imm = 0xFFFFFFFF00000001
movq %r8, 0x8(%r12,%rdx)
movl %esi, %edx
movl %edi, %r13d
testl %ebp, %ebp
je 0x35571
decl %edx
movq %rdx, %rsi
shlq $0x5, %rsi
movl %ecx, 0xc(%r12,%rsi)
movl %r13d, 0x8(%r12,%rsi)
movl %eax, %r13d
jmp 0x3557f
movl %ecx, 0xb8(%r10)
movl %edx, 0x30(%r10)
movl %r13d, %eax
movl %edx, %esi
testl %ebp, %ebp
jne 0x354e1
movl 0x64(%r10), %r14d
andl 0x34(%rsp), %r14d
movl 0x44(%r10), %eax
movl 0x70(%r10), %ebp
shlq $0x5, %rax
addq 0xd0(%rsp), %rax
leaq (%rax,%r14,2), %rax
movzwl (%rax), %ecx
movl %ebp, %ebx
shrl $0xb, %ebx
imull %ecx, %ebx
movl 0xb8(%r10), %r15d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rdx, %r15
movq %r13, 0x18(%rsp)
je 0x35658
subl %ebx, %ebp
movl %ebx, %edx
addq %rdx, 0x78(%r10)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, (%rax)
cmpl $0xffffff, %ebp         # imm = 0xFFFFFF
ja 0x355fb
shll $0x8, %ebp
movq 0x48(%rsp), %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
movl 0x44(%r10), %eax
movzwl 0x2220(%r10,%rax,2), %ecx
movl %ebp, %ebx
shrl $0xb, %ebx
imull %ecx, %ebx
cmpl $0x3, %r15d
ja 0x356f8
subl %ebx, %ebp
movl %ebx, %edx
addq %rdx, 0x78(%r10)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, 0x2220(%r10,%rax,2)
cmpl $0xffffff, %ebp         # imm = 0xFFFFFF
ja 0x357ed
shll $0x8, %ebp
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
jmp 0x357f2
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, (%rax)
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x35681
shll $0x8, %ebx
movq 0x48(%rsp), %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
movl %ebx, 0x70(%r10)
movq (%r10), %rdi
movq 0x8(%rsp), %rax
callq *0x18(%rax)
movq 0x8(%rsp), %r10
movl 0x44(%r10), %edx
movl 0x4c(%r10), %ecx
subq %rcx, %rax
movl 0x34(%rsp), %ecx
shll $0x8, %ecx
movzbl -0x1(%rax), %esi
orl %ecx, %esi
andl 0x60(%r10), %esi
movb 0xbc(%r10), %cl
shll %cl, %esi
leal (%rsi,%rsi,2), %r14d
addq %r14, %r14
addq 0x68(%r10), %r14
movzbl (%rax), %r15d
leaq 0x2a2a0(%rip), %rcx     # 0x5f970
movzbl (%rdx,%rcx), %ecx
movl %ecx, 0x44(%r10)
cmpq $0x6, %rdx
ja 0x35736
movq 0x48(%rsp), %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x37192
movq 0x8(%rsp), %r10
jmp 0x35e38
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2220(%r10,%rax,2)
movq %r15, %rbp
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x35888
shll $0x8, %ebx
movq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
jmp 0x3588d
movl 0x50(%r10), %ecx
movl 0x70(%r10), %r13d
subq %rcx, %rax
movzbl (%rax), %ebp
orl $0x100, %r15d           # imm = 0x100
movl $0x100, %r12d           # imm = 0x100
movq 0x48(%rsp), %rbx
addl %ebp, %ebp
movl %ebp, %ecx
andl %r12d, %ecx
movl %r15d, %eax
shrl $0x8, %eax
addl %r12d, %eax
addl %ecx, %eax
movl %r15d, %ecx
shrl $0x7, %ecx
andl $0x1, %ecx
movzwl (%r14,%rax,2), %edx
movl %r13d, %esi
shrl $0xb, %esi
imull %edx, %esi
movl %ecx, %edi
negl %edi
andl %edi, %r13d
andl %esi, %edi
movl %r13d, %r8d
addq %rdi, 0x78(%r10)
subl %edi, %r8d
decl %ecx
andl %ecx, %esi
movl %esi, %r13d
addl %r8d, %r13d
andl $0x7e1, %ecx            # imm = 0x7E1
subl %edx, %ecx
addl $0x1f, %ecx
shrl $0x5, %ecx
addl %edx, %ecx
movw %cx, (%r14,%rax,2)
cmpl $0xffffff, %r13d        # imm = 0xFFFFFF
ja 0x357cb
shll $0x8, %r13d
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
addl %r15d, %r15d
movl %ebp, %eax
xorl %r15d, %eax
notl %eax
andl %eax, %r12d
cmpl $0x10000, %r15d         # imm = 0x10000
jb 0x35756
movl %r13d, (%rbx)
jmp 0x35e38
movq 0x48(%rsp), %rbx
movl 0x44(%r10), %eax
movzwl 0x2238(%r10,%rax,2), %ecx
movl %ebp, %r12d
shrl $0xb, %r12d
imull %ecx, %r12d
testq %r15, %r15
je 0x35a6f
subl %r12d, %ebp
movl %r12d, %edx
addq %rdx, 0x78(%r10)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, 0x2238(%r10,%rax,2)
movq %r15, %r12
cmpl $0xffffff, %ebp         # imm = 0xFFFFFF
ja 0x35848
shll $0x8, %ebp
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
movl 0x44(%r10), %eax
movzwl 0x2250(%r10,%rax,2), %ecx
movl %ebp, %r15d
shrl $0xb, %r15d
imull %ecx, %r15d
cmpl $0x1, %r12d
jne 0x35af0
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2250(%r10,%rax,2)
movl 0x54(%r10), %eax
jmp 0x35c66
movq 0x48(%rsp), %r12
movl %ebx, 0x70(%r10)
movl 0x44(%r10), %eax
leaq 0x2a0f8(%rip), %rcx     # 0x5f994
movzbl (%rax,%rcx), %eax
movl %eax, 0x44(%r10)
leal -0x2(%r13), %r15d
movq 0x130(%rsp), %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x372ab
movq 0x8(%rsp), %r10
movl 0x58(%r10), %eax
movl %eax, 0x5c(%r10)
movq 0x50(%r10), %rax
movq %rax, 0x54(%r10)
leal -0x3(%rbp), %eax
movl %eax, 0x50(%r10)
incl 0xe8(%r10)
movq %rbp, 0x70(%rsp)
addl $-0x4, %ebp
movl %ebp, %eax
cmpl $0x7f, %ebp
movq %r12, %rbx
ja 0x358fe
movzbl 0x3080(%r10,%rax), %r13d
jmp 0x35921
cmpl $0x100000, %ebp         # imm = 0x100000
movl $0x13, %ecx
movl $0x6, %edx
cmovbl %edx, %ecx
shrq %cl, %rax
movzbl 0x3080(%r10,%rax), %eax
leal (%rax,%rcx,2), %r13d
leal 0x40(%r13), %r14d
movl (%rbx), %r12d
cmpl $0x5, 0x18(%rsp)
movl $0x3, %eax
cmovael %eax, %r15d
shlq $0x7, %r15
addq 0x188(%rsp), %r15
movl %r14d, %eax
shrl $0x5, %eax
movl %eax, %ecx
andl $-0x2, %ecx
andl $0x1, %eax
movzwl (%r15,%rcx), %edx
movl %r12d, %esi
shrl $0xb, %esi
imull %edx, %esi
movl %eax, %edi
negl %edi
andl %edi, %r12d
andl %esi, %edi
movl %r12d, %r8d
addq %rdi, 0x78(%r10)
subl %edi, %r8d
decl %eax
andl %eax, %esi
movl %esi, %r12d
addl %r8d, %r12d
andl $0x7e1, %eax            # imm = 0x7E1
subl %edx, %eax
addl $0x1f, %eax
shrl $0x5, %eax
addl %edx, %eax
movw %ax, (%r15,%rcx)
cmpl $0xffffff, %r12d        # imm = 0xFFFFFF
ja 0x359a9
shll $0x8, %r12d
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
addl %r14d, %r14d
cmpl $0x1000, %r14d          # imm = 0x1000
jb 0x35942
movl %r12d, (%rbx)
cmpl $0x4, %ebp
jb 0x35e38
movl %r13d, %r14d
shrl %r14d
cmpl $0x7f, %ebp
ja 0x35b62
decl %r14d
andl $0x1, %r13d
orl $0x2, %r13d
movl %r14d, %ecx
shll %cl, %r13d
movq 0x168(%rsp), %rax
leaq (%rax,%r13,2), %r15
movl $0x1, %r13d
movl %ebp, %ebx
andl $0x1, %ebx
movl %r13d, %eax
movzwl (%r15,%rax,2), %ecx
movl %r12d, %edx
shrl $0xb, %edx
imull %ecx, %edx
movl %ebx, %esi
negl %esi
andl %esi, %r12d
andl %edx, %esi
movl %r12d, %edi
addq %rsi, 0x78(%r10)
subl %esi, %edi
leal -0x1(%rbx), %esi
andl %esi, %edx
movl %edx, %r12d
addl %edi, %r12d
andl $0x7e1, %esi            # imm = 0x7E1
subl %ecx, %esi
addl $0x1f, %esi
shrl $0x5, %esi
addl %ecx, %esi
movw %si, (%r15,%rax,2)
cmpl $0xffffff, %r12d        # imm = 0xFFFFFF
ja 0x35a57
shll $0x8, %r12d
movq 0x48(%rsp), %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
shrl %ebp
leal (%rbx,%r13,2), %r13d
decl %r14d
jne 0x359f3
movq 0x48(%rsp), %rax
movl %r12d, (%rax)
jmp 0x35e38
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2238(%r10,%rax,2)
cmpl $0xffffff, %r12d        # imm = 0xFFFFFF
ja 0x35a9e
shll $0x8, %r12d
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
movl 0x44(%r10), %edx
movq %rdx, %rax
shlq $0x5, %rax
addq 0xc0(%rsp), %rax
leaq (%rax,%r14,2), %rax
movzwl (%rax), %ecx
movl %r12d, %r15d
shrl $0xb, %r15d
imull %ecx, %r15d
cmpl $0x1, %r13d
jne 0x35c1c
movl $0x800, %esi            # imm = 0x800
subl %ecx, %esi
shrl $0x5, %esi
addl %ecx, %esi
movw %si, (%rax)
leaq 0x29e99(%rip), %rax     # 0x5f97c
movzbl (%rdx,%rax), %eax
movl %eax, 0x44(%r10)
jmp 0x35c72
subl %r15d, %ebp
movl %r15d, %edx
addq %rdx, 0x78(%r10)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, 0x2250(%r10,%rax,2)
cmpl $0xffffff, %ebp         # imm = 0xFFFFFF
ja 0x35b22
shll $0x8, %ebp
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
movl 0x44(%r10), %eax
movzwl 0x2268(%r10,%rax,2), %ecx
movl %ebp, %r15d
shrl $0xb, %r15d
imull %ecx, %r15d
cmpl $0x2, %r12d
jne 0x35c35
movl $0x800, %edx            # imm = 0x800
subl %ecx, %edx
shrl $0x5, %edx
addl %ecx, %edx
movw %dx, 0x2268(%r10,%rax,2)
movl 0x58(%r10), %eax
jmp 0x35c5e
movl %ebp, %ebx
orl $0xf, %ebx
movb $0x21, %cl
subb %r14b, %cl
shll %cl, %ebx
movq 0x70(%rsp), %r14
movl %r12d, %eax
shrl %r12d
movl %ebx, %ecx
sarl $0x1f, %ecx
andl %r12d, %ecx
addq %rcx, 0x78(%r10)
cmpl $0x1ffffff, %eax        # imm = 0x1FFFFFF
ja 0x35b9f
shll $0x8, %r12d
movq 0x48(%rsp), %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
addl %ebx, %ebx
cmpl $0xf0000000, %ebx       # imm = 0xF0000000
jne 0x35b73
andl $0x1, %r14d
movzwl 0x2202(%r10), %eax
movl %r12d, %r15d
shrl $0xb, %r15d
imull %eax, %r15d
movl %r14d, %ecx
negl %ecx
andl %ecx, %r12d
andl %r15d, %ecx
addq %rcx, 0x78(%r10)
subl %ecx, %r12d
leal -0x1(%r14), %ecx
andl %ecx, %r15d
addl %r12d, %r15d
andl $0x7e1, %ecx            # imm = 0x7E1
subl %eax, %ecx
addl $0x1f, %ecx
shrl $0x5, %ecx
addl %eax, %ecx
movw %cx, 0x2202(%r10)
cmpl $0xffffff, %r15d        # imm = 0xFFFFFF
ja 0x35cd8
shll $0x8, %r15d
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
jmp 0x35cdd
subl %r15d, %r12d
movl %r15d, %edx
addq %rdx, 0x78(%r10)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, (%rax)
movl %r12d, %r15d
jmp 0x35c72
subl %r15d, %ebp
movl %r15d, %edx
addq %rdx, 0x78(%r10)
movl %ecx, %edx
shrl $0x5, %edx
subl %edx, %ecx
movw %cx, 0x2268(%r10,%rax,2)
movl 0x58(%r10), %ecx
movl 0x5c(%r10), %eax
movl %ecx, 0x5c(%r10)
movl %ebp, %r15d
movl 0x54(%r10), %ecx
movl %ecx, 0x58(%r10)
movl 0x50(%r10), %ecx
movl %ecx, 0x54(%r10)
movl %eax, 0x50(%r10)
cmpl $0xffffff, %r15d        # imm = 0xFFFFFF
ja 0x35c8c
shll $0x8, %r15d
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
movl %r15d, (%rbx)
cmpl $0x1, %r13d
je 0x35e38
movq 0x18(%rsp), %rax
leal -0x2(%rax), %edx
movq 0x128(%rsp), %rdi
movq %rbx, %rsi
movl %r14d, %ecx
callq 0x372ab
movq 0x8(%rsp), %r10
decl 0xec(%r10)
movl 0x44(%r10), %eax
leaq 0x29cbd(%rip), %rcx     # 0x5f988
movzbl (%rax,%rcx), %eax
movl %eax, 0x44(%r10)
jmp 0x35e38
movq 0x48(%rsp), %rbx
movq 0x70(%rsp), %rdx
shrl %edx
orl $0x2, %r14d
andl $0x1, %edx
movzwl 0x2200(%r10,%r14,2), %eax
movl %r15d, %r12d
shrl $0xb, %r12d
imull %eax, %r12d
movl %edx, %ecx
negl %ecx
andl %ecx, %r15d
andl %r12d, %ecx
addq %rcx, 0x78(%r10)
subl %ecx, %r15d
movq %rdx, %r13
leal -0x1(%rdx), %ecx
andl %ecx, %r12d
addl %r15d, %r12d
andl $0x7e1, %ecx            # imm = 0x7E1
subl %eax, %ecx
addl $0x1f, %ecx
shrl $0x5, %ecx
addl %eax, %ecx
movw %cx, 0x2200(%r10,%r14,2)
cmpl $0xffffff, %r12d        # imm = 0xFFFFFF
ja 0x35d4f
shll $0x8, %r12d
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
movl %ebp, %r15d
shrl $0x2, %r15d
leal (%r13,%r14,2), %r13d
andl $0x1, %r15d
movzwl 0x2200(%r10,%r13,2), %eax
movl %r12d, %r14d
shrl $0xb, %r14d
imull %eax, %r14d
movl %r15d, %ecx
negl %ecx
andl %ecx, %r12d
andl %r14d, %ecx
addq %rcx, 0x78(%r10)
subl %ecx, %r12d
leal -0x1(%r15), %ecx
andl %ecx, %r14d
addl %r12d, %r14d
andl $0x7e1, %ecx            # imm = 0x7E1
subl %eax, %ecx
addl $0x1f, %ecx
shrl $0x5, %ecx
addl %eax, %ecx
movw %cx, 0x2200(%r10,%r13,2)
cmpl $0xffffff, %r14d        # imm = 0xFFFFFF
ja 0x35dc2
shll $0x8, %r14d
movq %rbx, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
shrl $0x3, %ebp
andl $0x1, %ebp
addl %r15d, %r15d
leal (%r15,%r13,4), %eax
movzwl 0x2200(%r10,%rax), %ecx
movl %r14d, %ebx
shrl $0xb, %ebx
imull %ecx, %ebx
movl %ebp, %edx
negl %edx
andl %edx, %r14d
andl %ebx, %edx
addq %rdx, 0x78(%r10)
subl %edx, %r14d
decl %ebp
andl %ebp, %ebx
addl %r14d, %ebx
andl $0x7e1, %ebp            # imm = 0x7E1
subl %ecx, %ebp
addl $0x1f, %ebp
shrl $0x5, %ebp
addl %ecx, %ebp
movw %bp, 0x2200(%r10,%rax)
cmpl $0xffffff, %ebx         # imm = 0xFFFFFF
ja 0x35e30
shll $0x8, %ebx
movq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x3721d
movq 0x8(%rsp), %r10
jmp 0x35e35
movq 0x48(%rsp), %r14
movl %ebx, (%r14)
movq 0x18(%rsp), %rax
addl %eax, 0x34(%rsp)
xorl %ebp, %ebp
subl %eax, 0x4c(%r10)
jne 0x35f5c
cmpl $0x0, 0xcc(%r10)
movq 0x28(%rsp), %r12
movq 0x88(%rsp), %rbx
jne 0x35ef3
cmpl $0x40, 0xe8(%r10)
jb 0x35eb3
movq %r10, %rdi
callq 0x36bb0
movq 0x8(%rsp), %rdi
callq 0x36896
movq 0x8(%rsp), %rax
movb 0xc4(%rax), %cl
movl $0x1, %esi
shll %cl, %esi
movq 0x170(%rsp), %rdi
movq 0x130(%rsp), %rdx
movq %rbx, %rcx
callq 0x36c8a
movq 0x8(%rsp), %r10
cmpl $0x0, 0xec(%r10)
jg 0x35ef3
movl $0x40, 0xec(%r10)
movb 0xc4(%r10), %cl
movl $0x1, %esi
shll %cl, %esi
movq 0x160(%rsp), %rdi
movq 0x128(%rsp), %rdx
movq %rbx, %rcx
callq 0x36c8a
movq 0x8(%rsp), %r10
movq (%r10), %rdi
callq *0x10(%r10)
testl %eax, %eax
je 0x35f63
movl 0x34(%rsp), %eax
subl 0x138(%rsp), %eax
cmpl $0x0, 0xec(%rsp)
je 0x35f6f
addl $0x92c, %eax            # imm = 0x92C
cmpl 0xfc(%rsp), %eax
movq 0x8(%rsp), %r10
jae 0x35f55
movq 0x80(%r10), %rax
movq 0xa8(%r10), %rcx
addq 0x88(%r10), %rcx
subq 0x98(%r10), %rcx
addq %rcx, %rax
addq $0x4000, %rax           # imm = 0x4000
cmpq 0x178(%rsp), %rax
jb 0x35f9d
movl $0x2, %ebp
jmp 0x35f9d
movq 0x28(%rsp), %r12
jmp 0x35f9d
movl $0x2, %ebp
movq 0x8(%rsp), %r10
jmp 0x35f9d
cmpl $0x20000, %eax          # imm = 0x20000
movq 0x8(%rsp), %r10
jb 0x35f9d
movl %eax, %eax
addq %rax, 0xe0(%r10)
movq %r10, %rdi
callq 0x36ea5
movq 0x8(%rsp), %r10
movl %eax, 0x98(%rsp)
movl $0x1, %ebp
testl %ebp, %ebp
je 0x340eb
jmp 0x3658a
movl 0x3c(%rsp), %eax
movl 0xd2c(%r10,%rax,4), %eax
addl $0x4, %eax
movl %eax, 0xb8(%r10)
leal -0x1(%r14), %esi
addl %esi, 0x4c(%r10)
movq (%r10), %rdi
movq 0x8(%rsp), %rax
callq *0x28(%rax)
movq 0x8(%rsp), %r10
xorl %eax, %eax
movl %r14d, %r13d
jmp 0x34570
movq %r13, 0x18(%rsp)
movl 0x44(%r10), %r12d
movw %r12w, 0xf88c(%r10)
movl 0x64(%r10), %ebp
movl 0x34(%rsp), %edx
movl %edx, %ecx
shll $0x8, %ecx
movzbl -0x2(%rax), %eax
orl %ecx, %eax
andl 0x60(%r10), %eax
movb 0xbc(%r10), %cl
shll %cl, %eax
leal (%rax,%rax,2), %edi
addq %rdi, %rdi
addq 0x68(%r10), %rdi
andl %edx, %ebp
movq %r12, %r13
shlq $0x5, %r13
movq 0xd0(%rsp), %rax
addq %r13, %rax
movq %rax, 0x70(%rsp)
movzwl (%rax,%rbp,2), %eax
shrl $0x4, %eax
movl 0xb30(%r10,%rax,4), %eax
movl %eax, 0x60(%rsp)
cmpq $0x7, %r12
jae 0x361b9
leal 0x100(%r15), %ecx
xorl %eax, %eax
movl %ecx, %edx
movq 0x88(%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 0x36066
jmp 0x361df
leal 0x1(%rbx), %r8d
cmpl %r8d, %eax
sete %sil
movl %ecx, %edx
shrl $0x7, %edx
cmpl %r15d, %edx
setbe %dil
xorl %edx, %edx
cmpl %r8d, %eax
ja 0x360e4
andb %dil, %sil
jne 0x360e4
incl %eax
cmpl %ebx, %eax
setb %al
cmpl $0x3, %ebx
setb %sil
orb %al, %sil
movl %r15d, %eax
shrl $0x7, %eax
cmpl %ecx, %eax
setbe %dl
orb %sil, %dl
movl $0x1, %eax
cmovel %eax, %ebp
movl %ebp, %r13d
testb %dl, %dl
je 0x35589
movq (%r10), %rdi
callq *0x18(%r10)
movb -0x1(%rax), %cl
leal -0x1(%rbx), %edx
leaq -0x2(%rdx), %rsi
movq %rax, %rdi
incq %rdi
xorl %r8d, %r8d
movq 0x8(%rsp), %r9
movl 0x50(%r9,%r8,4), %r9d
movq %r9, %r11
notq %r11
movl $0xc, %r10d
cmpb (%r11,%rax), %cl
jne 0x36176
negq %r9
movb (%rax), %r11b
movl $0x1, %r10d
cmpb (%rax,%r9), %r11b
movl $0xc, %r11d
cmovnel %r11d, %r10d
movl $0x1, %r11d
cmovnel %r13d, %r11d
jne 0x36179
cmpl $0x3, %edx
jb 0x36179
addq %rdi, %r9
xorl %r10d, %r10d
movb (%rdi,%r10), %r11b
cmpb (%r9,%r10), %r11b
jne 0x36173
incq %r10
cmpq %r10, %rsi
jne 0x36153
movl $0x1, %r10d
movl $0x1, %r11d
jmp 0x36179
xorl %r10d, %r10d
movl %r13d, %r11d
cmpl $0xc, %r10d
je 0x36188
testl %r10d, %r10d
jne 0x36420
incq %r8
movl %r11d, %r13d
cmpq $0x4, %r8
jne 0x36106
addl $0x4, %r15d
movq 0x8(%rsp), %r10
movl %r15d, 0xb8(%r10)
cmpl $0x2, %ebx
jne 0x3642d
movl %ebx, %r13d
jmp 0x35589
movzbl %bl, %edx
movl %r15d, %esi
movq 0x88(%rsp), %rcx
movb %bl, 0x40(%rsp)
movq %r11, %rbx
callq 0x3751c
movq %rbx, %r11
movb 0x40(%rsp), %bl
movq 0x8(%rsp), %r10
movq 0x70(%rsp), %rcx
leaq (%rcx,%rbp,2), %rcx
cmpb %bl, %r15b
sete %dil
addl 0x60(%rsp), %eax
movl %eax, 0xf8a8(%r10)
movl $0xffffffff, 0xf8b4(%r10) # imm = 0xFFFFFFFF
movw $0x0, 0xf8ae(%r10)
movzwl (%rcx), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
movl $0x1fc, %esi            # imm = 0x1FC
xorl %esi, %ecx
movl 0xb30(%r10,%rcx), %edx
movzwl 0x2220(%r10,%r12,2), %ecx
shrl $0x2, %ecx
andl $-0x4, %ecx
xorl %esi, %ecx
movl 0xb30(%r10,%rcx), %ecx
addl %edx, %ecx
movl 0x110(%rsp), %esi
testl %esi, %esi
sete %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
jne 0x362b5
movzwl 0x2238(%r10,%r12,2), %edi
shrl $0x4, %edi
movq 0xc0(%rsp), %r8
addq %r13, %r8
movzwl (%r8,%rbp,2), %r8d
shrl $0x4, %r8d
movl 0xb30(%r10,%rdi,4), %edi
addl %ecx, %edi
addl 0xb30(%r10,%r8,4), %edi
cmpl %eax, %edi
jae 0x362aa
movl %edi, 0xf8a8(%r10)
movl $0x0, 0xf8b4(%r10)
movw $0x0, 0xf8ae(%r10)
cmpl $0x1, 0x18(%rsp)
jbe 0x36448
movl $0x1, 0xf8b0(%r10)
movl %r11d, 0xf898(%r10)
movl 0x54(%rsp), %eax
movl %eax, 0xf89c(%r10)
movl 0x58(%rsp), %eax
movl %eax, 0xf8a0(%r10)
movl 0x5c(%rsp), %eax
movl %eax, 0xf8a4(%r10)
addq 0xc0(%rsp), %r13
leaq (,%rbp,2), %rax
addq %r13, %rax
xorl %edi, %edi
movq 0x88(%rsp), %r15
movq 0x18(%rsp), %r13
movl 0x110(%rsp,%rdi,4), %r8d
cmpl $0x2, %r8d
jb 0x363fa
movq 0x8(%rsp), %r11
movzwl 0x2238(%r11,%r12,2), %r10d
shrl $0x4, %r10d
testq %rdi, %rdi
je 0x36393
movzwl %r10w, %r9d
xorl $0x7f, %r9d
movl 0xb30(%r11,%r9,4), %r9d
movzwl 0x2250(%r11,%r12,2), %r10d
shrl $0x4, %r10d
cmpq $0x1, %rdi
je 0x363aa
movzwl %r10w, %r10d
xorl $0x7f, %r10d
addl 0xb30(%r11,%r10,4), %r9d
movzwl 0x2268(%r11,%r12,2), %r10d
movq %r11, %rbx
movl $0x2, %r11d
subl %edi, %r11d
andl $0x7f0, %r11d           # imm = 0x7F0
xorl %r10d, %r11d
shrl $0x4, %r11d
addl 0xb30(%rbx,%r11,4), %r9d
jmp 0x363ae
movzwl (%rax), %r9d
shrl $0x2, %r9d
andl $-0x4, %r9d
xorl $0x1fc, %r9d            # imm = 0x1FC
movl (%r15,%r9), %r9d
addl (%r15,%r10,4), %r9d
addl %ecx, %r9d
movl %r8d, %r10d
imulq $0x440, %rbp, %r11      # imm = 0x440
addq 0x80(%rsp), %r11
movl -0x8(%r11,%r10,4), %r11d
addl %r9d, %r11d
shlq $0x5, %r10
movq 0x28(%rsp), %rbx
cmpl (%rbx,%r10), %r11d
jae 0x363f1
addq 0x28(%rsp), %r10
movl %r11d, (%r10)
movl %r8d, 0x8(%r10)
movl %edi, 0xc(%r10)
movw $0x0, 0x6(%r10)
decl %r8d
cmpl $0x1, %r8d
ja 0x363b1
incq %rdi
cmpq $0x4, %rdi
jne 0x3630a
incl %esi
movb $0x1, %al
cmpl %r14d, %esi
jbe 0x36435
movl %r13d, %r8d
movl $0x1, %r13d
movq 0x8(%rsp), %r10
jmp 0x36466
movl %r11d, %r13d
movq 0x8(%rsp), %r10
jmp 0x35589
leal -0x2(%rbx), %esi
jmp 0x3436c
cmpl $0x2, %esi
jae 0x36470
movl $0x2, %esi
xorl %edi, %edi
movq 0x8(%rsp), %r10
jmp 0x36487
movl 0xf8b4(%r10), %eax
movl %eax, 0xb8(%r10)
xorl %eax, %eax
movq 0x18(%rsp), %rcx
movl %ecx, %r8d
movl $0x1, %r13d
movq 0x28(%rsp), %r12
jmp 0x34570
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
movq 0x8(%rsp), %r10
addl $0x2, %edi
cmpl 0xd30(%r10,%rdi,4), %esi
ja 0x3647a
movzwl 0x2220(%r10,%r12,2), %ecx
shrl $0x4, %ecx
addl 0xb30(%r10,%rcx,4), %edx
movl 0x3c(%rsp), %r8d
movq 0x28(%rsp), %r12
movl %edi, %edi
movl 0xd34(%r10,%rdi,4), %r10d
movl %esi, %r9d
imulq $0x440, %rbp, %rcx      # imm = 0x440
addq 0x150(%rsp), %rcx
movl -0x8(%rcx,%r9,4), %r11d
addl %edx, %r11d
leal -0x2(%rsi), %ecx
cmpl $0x5, %esi
movl $0x3, %ebx
cmovael %ebx, %ecx
movl %ecx, %ebx
cmpq $0x7f, %r10
ja 0x364f1
shlq $0x9, %rbx
addq 0x140(%rsp), %rbx
addl (%rbx,%r10,4), %r11d
jmp 0x3653b
movl $0x6, %ecx
cmpl $0x100000, %r10d        # imm = 0x100000
jb 0x36504
movl $0x13, %ecx
movq %r10, %r14
shrq %cl, %r14
movq 0x8(%rsp), %r15
movzbl 0x3080(%r15,%r14), %r14d
leal (%r14,%rcx,2), %ecx
movl %r10d, %r14d
andl $0xf, %r14d
addl 0x15c0(%r15,%r14,4), %r11d
shlq $0x8, %rbx
addq 0x148(%rsp), %rbx
addl (%rbx,%rcx,4), %r11d
shlq $0x5, %r9
cmpl (%r12,%r9), %r11d
jae 0x3655e
addq %r12, %r9
movl %r11d, (%r9)
movl %esi, 0x8(%r9)
leal 0x4(%r10), %ecx
movl %ecx, 0xc(%r9)
movw $0x0, 0x6(%r9)
movq 0x8(%rsp), %r10
movl 0xd30(%r10,%rdi,4), %r9d
leal 0x2(%rdi), %ecx
cmpl %r9d, %esi
jne 0x3657c
cmpl %r8d, %ecx
je 0x344d8
cmpl %r9d, %esi
jne 0x36583
movl %ecx, %edi
incl %esi
jmp 0x364a5
cmpl $0x2, %ebp
je 0x3659e
movl 0x98(%rsp), %ecx
jmp 0x33ed4
movq %rbx, %r10
movl 0x34(%rsp), %esi
movl %esi, %eax
subl 0x138(%rsp), %eax
addq %rax, 0xe0(%r10)
movq %r10, %rdi
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x36f07