// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-eoplist.c
// Function: gt_eoplist_format_generic
void gt_eoplist_format_generic(FILE *fp,
                               const GtEoplist *eoplist,
                               GtEoplistReader *eoplist_reader,
                               const GtUchar *characters,
                               GtUword top_seqlength,
                               GtUword low_reference,
                               GtUword one_off,
                               bool distinguish_mismatch_match,
                               bool subject_first,
                               bool alignment_show_forward,
                               bool show_complement_characters,
                               GtUchar wildcardshow)
{
  GtCigarOp co;
  unsigned int pos = 0;
  GtUword idx_u = 0, idx_v = 0, alignmentlength = 0,
          firstseedcolumn = GT_UWORD_MAX;
  GtUchar *topbuf = eoplist_reader->outbuffer, *midbuf = NULL, *lowbuf = NULL;
  const int numwidth = gt_eoplist_numwidth(eoplist);
  const GtUword low_start_base
                  = low_reference == 0 ? eoplist->vstart
                                       : low_reference - eoplist->vstart;
  GtUword top_start_pos = eoplist->ustart,
          low_start_pos = low_start_base;

  gt_assert(alignment_show_forward || top_seqlength > 0);
  uint64_t suffix_bits = 0, set_mask = 0;
  GtUword suffix_bits_used = 0, prefix_positive = 0, pol_size = 0,
          lastseedcolumn = GT_UWORD_MAX;
  const GtUword max_history = 64;
  GtWord prefix_positive_sum = 0;

  if (eoplist->pol_info != NULL)
  {
    pol_size = GT_MULT2(eoplist->pol_info->cut_depth);
    set_mask = ((uint64_t) 1) << (max_history - 1);
  }
  gt_assert(eoplist_reader != NULL);
  midbuf = topbuf + eoplist_reader->width;
  lowbuf = midbuf + eoplist_reader->width;
  gt_eoplist_reader_reset(eoplist_reader,eoplist,alignment_show_forward);
  while (gt_eoplist_reader_next_cigar(&co,eoplist_reader,
                                      distinguish_mismatch_match))
  {
    switch (co.eoptype)
    {
      GtUword j;
      GtUchar cc_a, cc_b;

      case GtMatchOp:
      case GtMismatchOp:
        for (j = 0; j < co.iteration && idx_u < eoplist->ulen &&
                                        idx_v < eoplist->vlen; j++)
        {
          bool is_match = true;

          if (alignment_show_forward)
          {
            cc_a = eoplist->useq[idx_u];
            cc_b = eoplist->vseq[idx_v];
          } else
          {
            cc_a = eoplist->useq[eoplist->ulen - 1 - idx_u];
            cc_b = eoplist->vseq[eoplist->vlen - 1 - idx_v];
          }
          if (characters != NULL)
          {
            if (GT_ISSPECIAL(cc_a))
            {
              cc_a = wildcardshow;
              is_match = false;
            } else
            {
              if (show_complement_characters)
              {
                gt_assert(cc_a < 4);
                cc_a = GT_COMPLEMENTBASE(cc_a);
              }
              cc_a = characters[cc_a];
            }
            if (GT_ISSPECIAL(cc_b))
            {
              cc_b = wildcardshow;
              is_match = false;
            } else
            {
              if (show_complement_characters)
              {
                gt_assert(cc_b < 4);
                cc_b = GT_COMPLEMENTBASE(cc_b);
              }
              cc_b = characters[cc_b];
            }
          }
          topbuf[pos] = cc_a;
          if (is_match)
          {
            is_match = cc_a == cc_b ? true : false;
          }
          lowbuf[pos] = cc_b;
          if (is_match)
          {
            if (eoplist->useedoffset <= idx_u &&
                idx_u < eoplist->useedoffset + eoplist->seedlen)
            {
              if (eoplist->display_seed_in_alignment)
              {
                midbuf[pos] = (GtUchar) '+';
              } else
              {
                midbuf[pos] = (GtUchar) EOPLIST_MATCHSYMBOL;
              }
              if (firstseedcolumn == GT_UWORD_MAX)
              {
                firstseedcolumn = alignmentlength;
              }
              lastseedcolumn = alignmentlength;
            } else
            {
              midbuf[pos] = (GtUchar) EOPLIST_MATCHSYMBOL;
            }
          } else
          {
            midbuf[pos] = (GtUchar) EOPLIST_MISMATCHSYMBOL;
          }
          pos = gt_eoplist_show_advance(one_off,
                                        subject_first,
                                        numwidth,
                                        pos,
                                        eoplist_reader->width,
                                        topbuf,
                                        top_seqlength,
                                        top_start_pos,
                                        eoplist->ustart + idx_u,
                                        midbuf,
                                        lowbuf,
                                        low_start_pos,
                                        low_start_base + idx_v,
                                        fp);
          if (pos == 0)
          {
            top_start_pos = eoplist->ustart + idx_u + 1;
            low_start_pos = low_start_base + idx_v + 1;
          }
          GT_UPDATE_POSITIVE_INFO(is_match);
          alignmentlength++;
          idx_u++;
          idx_v++;
        }
        break;
      case GtDeletionOp:
        for (j = 0; j < co.iteration && idx_u < eoplist->ulen; j++)
        {
          cc_a = eoplist->useq[alignment_show_forward ? idx_u
                                                      : eoplist->ulen-1-idx_u];
          if (characters != NULL)
          {
            if (GT_ISSPECIAL(cc_a))
            {
              topbuf[pos] = wildcardshow;
            } else
            {
              if (show_complement_characters)
              {
                gt_assert(cc_a < 4);
                cc_a = GT_COMPLEMENTBASE(cc_a);
              }
              topbuf[pos] = characters[cc_a];
            }
          } else
          {
            topbuf[pos] = cc_a;
          }
          midbuf[pos] = EOPLIST_MISMATCHSYMBOL;
          lowbuf[pos] = EOPLIST_GAPSYMBOL;
          pos = gt_eoplist_show_advance(one_off,
                                        subject_first,
                                        numwidth,
                                        pos,
                                        eoplist_reader->width,
                                        topbuf,
                                        top_seqlength,
                                        top_start_pos,
                                        eoplist->ustart + idx_u,
                                        midbuf,
                                        lowbuf,
                                        low_start_pos,
                                        low_start_base + idx_v,
                                        fp);
          if (pos == 0)
          {
            top_start_pos = eoplist->ustart + idx_u + 1;
            low_start_pos = low_start_base + idx_v + 1;
          }
          GT_UPDATE_POSITIVE_INFO(false);
          alignmentlength++;
          idx_u++;
        }
        break;
      case GtInsertionOp:
        for (j = 0; j < co.iteration && idx_v < eoplist->vlen; j++)
        {
          cc_b = eoplist->vseq[alignment_show_forward ? idx_v
                                                      : eoplist->vlen-1-idx_v];
          topbuf[pos] = EOPLIST_GAPSYMBOL;
          midbuf[pos] = EOPLIST_MISMATCHSYMBOL;
          if (characters != NULL)
          {
            if (GT_ISSPECIAL(cc_b))
            {
              lowbuf[pos] = wildcardshow;
            } else
            {
              if (show_complement_characters)
              {
                gt_assert(cc_b < 4);
                cc_b = GT_COMPLEMENTBASE(cc_b);
              }
              lowbuf[pos] = characters[cc_b];
            }
          } else
          {
            lowbuf[pos] = cc_b;
          }
          pos = gt_eoplist_show_advance(one_off,
                                        subject_first,
                                        numwidth,
                                        pos,
                                        eoplist_reader->width,
                                        topbuf,
                                        top_seqlength,
                                        top_start_pos,
                                        eoplist->ustart + idx_u,
                                        midbuf,
                                        lowbuf,
                                        low_start_pos,
                                        low_start_base + idx_v,
                                        fp);
          if (pos == 0)
          {
            top_start_pos = eoplist->ustart + idx_u + 1;
            low_start_pos = low_start_base + idx_v + 1;
          }
          GT_UPDATE_POSITIVE_INFO(false);
          alignmentlength++;
          idx_v++;
        }
        break;
      default:
        fprintf(stderr,"file %s, line %d: illegal eoptype %d\n",
                       __FILE__,__LINE__,co.eoptype);
        exit(GT_EXIT_PROGRAMMING_ERROR);
    }
  }
  if (pos > 0)
  {
    gt_eoplist_write_lines(one_off,
                           subject_first,
                           numwidth,
                           pos,
                           topbuf,
                           top_seqlength,
                           top_start_pos,
                           eoplist->ustart + GT_MIN(idx_u,eoplist->ulen - 1),
                           midbuf,
                           lowbuf,
                           low_start_pos,
                           low_start_base + GT_MIN(idx_v,eoplist->vlen - 1),
                           fp);
  }
  if (eoplist->pol_info != NULL && eoplist->pol_info_out)
  {
    GtUword suffix_positive;
    GtWord suffix_positive_sum = 0;
    bool startpolished = false, endpolished = false;

    for (suffix_positive = 0; suffix_positive < suffix_bits_used;
         suffix_positive++)
    {
      suffix_positive_sum += ((suffix_bits & set_mask)
                                ? eoplist->pol_info->match_score
                                : -eoplist->pol_info->difference_score);
      if (suffix_positive_sum < 0)
      {
        break;
      }
      set_mask >>= 1;
    }
    gt_assert(prefix_positive <= alignmentlength);
    if (prefix_positive >= pol_size || prefix_positive == alignmentlength ||
        firstseedcolumn < pol_size)
    {
      startpolished = true;
    }
    if (suffix_positive >= pol_size || suffix_positive == alignmentlength ||
        (lastseedcolumn != GT_UWORD_MAX &&
         lastseedcolumn + pol_size > alignmentlength))
    {
      endpolished = true;
    }
    fprintf(fp, "# polishing(m=" GT_WD ",d=" GT_WD ",p=" GT_WU
            "): " GT_WU "/" GT_WU,
            eoplist->pol_info->match_score,
            -eoplist->pol_info->difference_score,
            pol_size,
            prefix_positive,
            suffix_positive);
    if (firstseedcolumn < pol_size)
    {
      fprintf(fp, ", seed_on_start");
    }
    if (lastseedcolumn + pol_size > alignmentlength)
    {
      fprintf(fp, ", seed_on_end");
    }
    if (eoplist->withpolcheck)
    {
      fprintf(fp, "\n");
      gt_assert(startpolished);
      gt_assert(endpolished);
    } else
    {
      if (!startpolished)
      {
        fprintf(fp, ", start not polished");
      }
      if (!endpolished)
      {
        fprintf(fp, ", end not polished");
      }
      fprintf(fp, "\n");
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rcx, 0xf8(%rsp)
movq %rdx, %r10
movq %rsi, %r11
movq %rdi, %rbx
movq 0xf8(%rsp), %rdi
movb 0x268(%rsp), %al
movb 0x260(%rsp), %al
movb 0x258(%rsp), %cl
movb 0x250(%rsp), %dl
movb 0x248(%rsp), %sil
movq 0x240(%rsp), %r14
movq %rbx, 0x208(%rsp)
movq %r11, 0x200(%rsp)
movq %r10, 0x1f8(%rsp)
movq %rdi, 0x1f0(%rsp)
movq %r8, 0x1e8(%rsp)
movq %r9, 0x1e0(%rsp)
andb $0x1, %sil
movb %sil, 0x1df(%rsp)
andb $0x1, %dl
movb %dl, 0x1de(%rsp)
andb $0x1, %cl
movb %cl, 0x1dd(%rsp)
andb $0x1, %al
movb %al, 0x1dc(%rsp)
movl $0x0, 0x1c4(%rsp)
movq $0x0, 0x1b8(%rsp)
movq $0x0, 0x1b0(%rsp)
movq $0x0, 0x1a8(%rsp)
movq $-0x1, 0x1a0(%rsp)
movq 0x1f8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x198(%rsp)
movq $0x0, 0x190(%rsp)
movq $0x0, 0x188(%rsp)
movq 0x200(%rsp), %rdi
callq 0x4c55f0
movl %eax, 0x184(%rsp)
cmpq $0x0, 0x1e0(%rsp)
jne 0x4c403a
movq 0x200(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0xf0(%rsp)
jmp 0x4c4056
movq 0x1e0(%rsp), %rax
movq 0x200(%rsp), %rcx
subq 0x48(%rcx), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x178(%rsp)
movq 0x200(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x170(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x168(%rsp)
testb $0x1, 0x1dd(%rsp)
jne 0x4c40d7
cmpq $0x0, 0x1e8(%rsp)
ja 0x4c40d7
movq 0x177efa(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x51f63(%rip), %rsi     # 0x516013
leaq 0xf46bd(%rip), %rdx     # 0x5b8774
leaq 0xf46e2(%rip), %rcx     # 0x5b87a0
leaq 0xf4273(%rip), %r8      # 0x5b8338
movl $0x357, %r9d            # imm = 0x357
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c40d9
movq $0x0, 0x160(%rsp)
movq $0x0, 0x158(%rsp)
movq $0x0, 0x150(%rsp)
movq $0x0, 0x148(%rsp)
movq $0x0, 0x140(%rsp)
movq $-0x1, 0x138(%rsp)
movq $0x40, 0x130(%rsp)
movq $0x0, 0x128(%rsp)
movq 0x200(%rsp), %rax
cmpq $0x0, 0x88(%rax)
je 0x4c417b
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, 0x140(%rsp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x158(%rsp)
jmp 0x4c417d
cmpq $0x0, 0x1f8(%rsp)
jne 0x4c41c0
movq 0x177e11(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x51e7a(%rip), %rsi     # 0x516013
leaq 0xf4304(%rip), %rdx     # 0x5b84a4
leaq 0xf45f9(%rip), %rcx     # 0x5b87a0
leaq 0xf418a(%rip), %r8      # 0x5b8338
movl $0x363, %r9d            # imm = 0x363
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c41c2
movq 0x198(%rsp), %rax
movq 0x1f8(%rsp), %rcx
movl 0x20(%rcx), %ecx
addq %rcx, %rax
movq %rax, 0x190(%rsp)
movq 0x190(%rsp), %rax
movq 0x1f8(%rsp), %rcx
movl 0x20(%rcx), %ecx
addq %rcx, %rax
movq %rax, 0x188(%rsp)
movq 0x1f8(%rsp), %rdi
movq 0x200(%rsp), %rsi
movb 0x1dd(%rsp), %al
andb $0x1, %al
movzbl %al, %edx
callq 0x4c1b40
movq 0x1f8(%rsp), %rsi
movb 0x1df(%rsp), %al
leaq 0x1c8(%rsp), %rdi
andb $0x1, %al
movzbl %al, %edx
callq 0x4c1c90
testb $0x1, %al
jne 0x4c4249
jmp 0x4c505f
movl 0x1c8(%rsp), %eax
movl %eax, 0xec(%rsp)
testl %eax, %eax
je 0x4c48af
jmp 0x4c4261
movl 0xec(%rsp), %eax
subl $0x1, %eax
je 0x4c4c6b
jmp 0x4c4273
movl 0xec(%rsp), %eax
addl $-0x2, %eax
subl $0x1, %eax
ja 0x4c5024
jmp 0x4c4288
movq $0x0, 0x120(%rsp)
movq 0x120(%rsp), %rcx
xorl %eax, %eax
cmpq 0x1d0(%rsp), %rcx
movb %al, 0xeb(%rsp)
jae 0x4c42ec
movq 0x1b8(%rsp), %rcx
movq 0x200(%rsp), %rdx
xorl %eax, %eax
cmpq 0x40(%rdx), %rcx
movb %al, 0xeb(%rsp)
jae 0x4c42ec
movq 0x1b0(%rsp), %rax
movq 0x200(%rsp), %rcx
cmpq 0x50(%rcx), %rax
setb %al
movb %al, 0xeb(%rsp)
movb 0xeb(%rsp), %al
testb $0x1, %al
jne 0x4c42fc
jmp 0x4c48aa
movb $0x1, 0x11d(%rsp)
testb $0x1, 0x1dd(%rsp)
je 0x4c434c
movq 0x200(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x1b8(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x11f(%rsp)
movq 0x200(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x1b0(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x11e(%rsp)
jmp 0x4c43a8
movq 0x200(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x200(%rsp), %rcx
movq 0x40(%rcx), %rcx
subq $0x1, %rcx
subq 0x1b8(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x11f(%rsp)
movq 0x200(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x200(%rsp), %rcx
movq 0x50(%rcx), %rcx
subq $0x1, %rcx
subq 0x1b0(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x11e(%rsp)
cmpq $0x0, 0x1f0(%rsp)
je 0x4c4513
movzbl 0x11f(%rsp), %eax
cmpl $0xfe, %eax
jl 0x4c43e1
movb 0x268(%rsp), %al
movb %al, 0x11f(%rsp)
movb $0x0, 0x11d(%rsp)
jmp 0x4c4464
testb $0x1, 0x1dc(%rsp)
je 0x4c444a
jmp 0x4c43ed
movzbl 0x11f(%rsp), %eax
cmpl $0x4, %eax
jl 0x4c4432
movq 0x177b9f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x51c08(%rip), %rsi     # 0x516013
leaq 0xf43a8(%rip), %rdx     # 0x5b87ba
leaq 0xf4387(%rip), %rcx     # 0x5b87a0
leaq 0xf3f18(%rip), %r8      # 0x5b8338
movl $0x389, %r9d            # imm = 0x389
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c4434
movzbl 0x11f(%rsp), %ecx
movl $0x3, %eax
subl %ecx, %eax
movb %al, 0x11f(%rsp)
movq 0x1f0(%rsp), %rax
movzbl 0x11f(%rsp), %ecx
movb (%rax,%rcx), %al
movb %al, 0x11f(%rsp)
movzbl 0x11e(%rsp), %eax
cmpl $0xfe, %eax
jl 0x4c448e
movb 0x268(%rsp), %al
movb %al, 0x11e(%rsp)
movb $0x0, 0x11d(%rsp)
jmp 0x4c4511
testb $0x1, 0x1dc(%rsp)
je 0x4c44f7
jmp 0x4c449a
movzbl 0x11e(%rsp), %eax
cmpl $0x4, %eax
jl 0x4c44df
movq 0x177af2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x51b5b(%rip), %rsi     # 0x516013
leaq 0xf4304(%rip), %rdx     # 0x5b87c3
leaq 0xf42da(%rip), %rcx     # 0x5b87a0
leaq 0xf3e6b(%rip), %r8      # 0x5b8338
movl $0x396, %r9d            # imm = 0x396
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c44e1
movzbl 0x11e(%rsp), %ecx
movl $0x3, %eax
subl %ecx, %eax
movb %al, 0x11e(%rsp)
movq 0x1f0(%rsp), %rax
movzbl 0x11e(%rsp), %ecx
movb (%rax,%rcx), %al
movb %al, 0x11e(%rsp)
jmp 0x4c4513
movb 0x11f(%rsp), %dl
movq 0x198(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
testb $0x1, 0x11d(%rsp)
je 0x4c4561
movzbl 0x11f(%rsp), %edx
movzbl 0x11e(%rsp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, 0x11d(%rsp)
movb 0x11e(%rsp), %dl
movq 0x188(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
testb $0x1, 0x11d(%rsp)
je 0x4c463f
movq 0x200(%rsp), %rax
movq 0x60(%rax), %rax
cmpq 0x1b8(%rsp), %rax
ja 0x4c462a
movq 0x1b8(%rsp), %rax
movq 0x200(%rsp), %rcx
movq 0x60(%rcx), %rcx
movq 0x200(%rsp), %rdx
addq 0x68(%rdx), %rcx
cmpq %rcx, %rax
jae 0x4c462a
movq 0x200(%rsp), %rax
testb $0x1, 0x5a(%rax)
je 0x4c45ea
movq 0x190(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x2b, (%rax,%rcx)
jmp 0x4c45fd
movq 0x190(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x7c, (%rax,%rcx)
cmpq $-0x1, 0x1a0(%rsp)
jne 0x4c4618
movq 0x1a8(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x1a8(%rsp), %rax
movq %rax, 0x138(%rsp)
jmp 0x4c463d
movq 0x190(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x7c, (%rax,%rcx)
jmp 0x4c4652
movq 0x190(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x20, (%rax,%rcx)
movq 0x240(%rsp), %rdi
movb 0x1de(%rsp), %sil
movl 0x184(%rsp), %edx
movl 0x1c4(%rsp), %ecx
movq 0x1f8(%rsp), %rax
movl 0x20(%rax), %r8d
movq 0x198(%rsp), %r9
movq 0x1e8(%rsp), %r13
movq 0x170(%rsp), %r12
movq 0x200(%rsp), %rax
movq 0x38(%rax), %r15
addq 0x1b8(%rsp), %r15
movq 0x190(%rsp), %r14
movq 0x188(%rsp), %rbx
movq 0x168(%rsp), %r11
movq 0x178(%rsp), %r10
addq 0x1b0(%rsp), %r10
movq 0x208(%rsp), %rax
andb $0x1, %sil
movzbl %sil, %esi
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movq %r11, 0x28(%rsp)
movq %r10, 0x30(%rsp)
movq %rax, 0x38(%rsp)
callq 0x4c56f0
movl %eax, 0x1c4(%rsp)
cmpl $0x0, 0x1c4(%rsp)
jne 0x4c4759
movq 0x200(%rsp), %rax
movq 0x38(%rax), %rax
addq 0x1b8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x170(%rsp)
movq 0x178(%rsp), %rax
addq 0x1b0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x168(%rsp)
movq 0x200(%rsp), %rax
cmpq $0x0, 0x88(%rax)
je 0x4c4855
cmpq $0x40, 0x148(%rsp)
jae 0x4c47ff
cmpq $0x0, 0x128(%rsp)
jl 0x4c47ff
testb $0x1, 0x11d(%rsp)
je 0x4c47b8
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x28(%rax), %rax
addq 0x128(%rsp), %rax
movq %rax, 0x128(%rsp)
jmp 0x4c47de
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x20(%rax), %rcx
movq 0x128(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x128(%rsp)
cmpq $0x0, 0x128(%rsp)
jl 0x4c47fd
movq 0x148(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x148(%rsp)
jmp 0x4c47ff
cmpq $0x40, 0x150(%rsp)
jae 0x4c481e
movq 0x150(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x150(%rsp)
movq 0x160(%rsp), %rax
shrq %rax
movq %rax, 0x160(%rsp)
testb $0x1, 0x11d(%rsp)
je 0x4c4853
movq 0x158(%rsp), %rax
orq 0x160(%rsp), %rax
movq %rax, 0x160(%rsp)
jmp 0x4c4855
movq 0x1a8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1a8(%rsp)
movq 0x1b8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1b8(%rsp)
movq 0x1b0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1b0(%rsp)
movq 0x120(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x120(%rsp)
jmp 0x4c4294
jmp 0x4c505a
movq $0x0, 0x120(%rsp)
movq 0x120(%rsp), %rcx
xorl %eax, %eax
cmpq 0x1d0(%rsp), %rcx
movb %al, 0xea(%rsp)
jae 0x4c48f4
movq 0x1b8(%rsp), %rax
movq 0x200(%rsp), %rcx
cmpq 0x40(%rcx), %rax
setb %al
movb %al, 0xea(%rsp)
movb 0xea(%rsp), %al
testb $0x1, %al
jne 0x4c4904
jmp 0x4c4c66
movq 0x200(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0xe0(%rsp)
testb $0x1, 0x1dd(%rsp)
je 0x4c4934
movq 0x1b8(%rsp), %rax
movq %rax, 0xd8(%rsp)
jmp 0x4c4954
movq 0x200(%rsp), %rax
movq 0x40(%rax), %rax
subq $0x1, %rax
subq 0x1b8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0xe0(%rsp), %rax
movq 0xd8(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x11f(%rsp)
cmpq $0x0, 0x1f0(%rsp)
je 0x4c4a3a
movzbl 0x11f(%rsp), %eax
cmpl $0xfe, %eax
jl 0x4c49aa
movb 0x268(%rsp), %dl
movq 0x198(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x4c4a38
testb $0x1, 0x1dc(%rsp)
je 0x4c4a13
jmp 0x4c49b6
movzbl 0x11f(%rsp), %eax
cmpl $0x4, %eax
jl 0x4c49fb
movq 0x1775d6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x5163f(%rip), %rsi     # 0x516013
leaq 0xf3ddf(%rip), %rdx     # 0x5b87ba
leaq 0xf3dbe(%rip), %rcx     # 0x5b87a0
leaq 0xf394f(%rip), %r8      # 0x5b8338
movl $0x3e2, %r9d            # imm = 0x3E2
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c49fd
movzbl 0x11f(%rsp), %ecx
movl $0x3, %eax
subl %ecx, %eax
movb %al, 0x11f(%rsp)
movq 0x1f0(%rsp), %rax
movzbl 0x11f(%rsp), %ecx
movb (%rax,%rcx), %dl
movq 0x198(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x4c4a53
movb 0x11f(%rsp), %dl
movq 0x198(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
movq 0x190(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x20, (%rax,%rcx)
movq 0x188(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x2d, (%rax,%rcx)
movq 0x240(%rsp), %rdi
movb 0x1de(%rsp), %sil
movl 0x184(%rsp), %edx
movl 0x1c4(%rsp), %ecx
movq 0x1f8(%rsp), %rax
movl 0x20(%rax), %r8d
movq 0x198(%rsp), %r9
movq 0x1e8(%rsp), %r13
movq 0x170(%rsp), %r12
movq 0x200(%rsp), %rax
movq 0x38(%rax), %r15
addq 0x1b8(%rsp), %r15
movq 0x190(%rsp), %r14
movq 0x188(%rsp), %rbx
movq 0x168(%rsp), %r11
movq 0x178(%rsp), %r10
addq 0x1b0(%rsp), %r10
movq 0x208(%rsp), %rax
andb $0x1, %sil
movzbl %sil, %esi
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movq %r11, 0x28(%rsp)
movq %r10, 0x30(%rsp)
movq %rax, 0x38(%rsp)
callq 0x4c56f0
movl %eax, 0x1c4(%rsp)
cmpl $0x0, 0x1c4(%rsp)
jne 0x4c4b80
movq 0x200(%rsp), %rax
movq 0x38(%rax), %rax
addq 0x1b8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x170(%rsp)
movq 0x178(%rsp), %rax
addq 0x1b0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x168(%rsp)
movq 0x200(%rsp), %rax
cmpq $0x0, 0x88(%rax)
je 0x4c4c25
cmpq $0x40, 0x148(%rsp)
jae 0x4c4bf3
cmpq $0x0, 0x128(%rsp)
jl 0x4c4bf3
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x20(%rax), %rcx
movq 0x128(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x128(%rsp)
cmpq $0x0, 0x128(%rsp)
jl 0x4c4bf1
movq 0x148(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x148(%rsp)
jmp 0x4c4bf3
cmpq $0x40, 0x150(%rsp)
jae 0x4c4c12
movq 0x150(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x150(%rsp)
movq 0x160(%rsp), %rax
shrq %rax
movq %rax, 0x160(%rsp)
movq 0x1a8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1a8(%rsp)
movq 0x1b8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1b8(%rsp)
movq 0x120(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x120(%rsp)
jmp 0x4c48bb
jmp 0x4c505a
movq $0x0, 0x120(%rsp)
movq 0x120(%rsp), %rcx
xorl %eax, %eax
cmpq 0x1d0(%rsp), %rcx
movb %al, 0xd7(%rsp)
jae 0x4c4cb0
movq 0x1b0(%rsp), %rax
movq 0x200(%rsp), %rcx
cmpq 0x50(%rcx), %rax
setb %al
movb %al, 0xd7(%rsp)
movb 0xd7(%rsp), %al
testb $0x1, %al
jne 0x4c4cc0
jmp 0x4c5022
movq 0x200(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0xc8(%rsp)
testb $0x1, 0x1dd(%rsp)
je 0x4c4cf0
movq 0x1b0(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0x4c4d10
movq 0x200(%rsp), %rax
movq 0x50(%rax), %rax
subq $0x1, %rax
subq 0x1b0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xc8(%rsp), %rax
movq 0xc0(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x11e(%rsp)
movq 0x198(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x2d, (%rax,%rcx)
movq 0x190(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb $0x20, (%rax,%rcx)
cmpq $0x0, 0x1f0(%rsp)
je 0x4c4e1c
movzbl 0x11e(%rsp), %eax
cmpl $0xfe, %eax
jl 0x4c4d8c
movb 0x268(%rsp), %dl
movq 0x188(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x4c4e1a
testb $0x1, 0x1dc(%rsp)
je 0x4c4df5
jmp 0x4c4d98
movzbl 0x11e(%rsp), %eax
cmpl $0x4, %eax
jl 0x4c4ddd
movq 0x1771f4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x5125d(%rip), %rsi     # 0x516013
leaq 0xf3a06(%rip), %rdx     # 0x5b87c3
leaq 0xf39dc(%rip), %rcx     # 0x5b87a0
leaq 0xf356d(%rip), %r8      # 0x5b8338
movl $0x415, %r9d            # imm = 0x415
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c4ddf
movzbl 0x11e(%rsp), %ecx
movl $0x3, %eax
subl %ecx, %eax
movb %al, 0x11e(%rsp)
movq 0x1f0(%rsp), %rax
movzbl 0x11e(%rsp), %ecx
movb (%rax,%rcx), %dl
movq 0x188(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
jmp 0x4c4e35
movb 0x11e(%rsp), %dl
movq 0x188(%rsp), %rax
movl 0x1c4(%rsp), %ecx
movb %dl, (%rax,%rcx)
movq 0x240(%rsp), %rdi
movb 0x1de(%rsp), %sil
movl 0x184(%rsp), %edx
movl 0x1c4(%rsp), %ecx
movq 0x1f8(%rsp), %rax
movl 0x20(%rax), %r8d
movq 0x198(%rsp), %r9
movq 0x1e8(%rsp), %r13
movq 0x170(%rsp), %r12
movq 0x200(%rsp), %rax
movq 0x38(%rax), %r15
addq 0x1b8(%rsp), %r15
movq 0x190(%rsp), %r14
movq 0x188(%rsp), %rbx
movq 0x168(%rsp), %r11
movq 0x178(%rsp), %r10
addq 0x1b0(%rsp), %r10
movq 0x208(%rsp), %rax
andb $0x1, %sil
movzbl %sil, %esi
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movq %r11, 0x28(%rsp)
movq %r10, 0x30(%rsp)
movq %rax, 0x38(%rsp)
callq 0x4c56f0
movl %eax, 0x1c4(%rsp)
cmpl $0x0, 0x1c4(%rsp)
jne 0x4c4f3c
movq 0x200(%rsp), %rax
movq 0x38(%rax), %rax
addq 0x1b8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x170(%rsp)
movq 0x178(%rsp), %rax
addq 0x1b0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x168(%rsp)
movq 0x200(%rsp), %rax
cmpq $0x0, 0x88(%rax)
je 0x4c4fe1
cmpq $0x40, 0x148(%rsp)
jae 0x4c4faf
cmpq $0x0, 0x128(%rsp)
jl 0x4c4faf
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x20(%rax), %rcx
movq 0x128(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x128(%rsp)
cmpq $0x0, 0x128(%rsp)
jl 0x4c4fad
movq 0x148(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x148(%rsp)
jmp 0x4c4faf
cmpq $0x40, 0x150(%rsp)
jae 0x4c4fce
movq 0x150(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x150(%rsp)
movq 0x160(%rsp), %rax
shrq %rax
movq %rax, 0x160(%rsp)
movq 0x1a8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1a8(%rsp)
movq 0x1b0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1b0(%rsp)
movq 0x120(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x120(%rsp)
jmp 0x4c4c77
jmp 0x4c505a
movq 0x176f75(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movl 0x1c8(%rsp), %r8d
leaq 0xf378f(%rip), %rsi     # 0x5b87cc
leaq 0xf32f4(%rip), %rdx     # 0x5b8338
movl $0x438, %ecx            # imm = 0x438
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
jmp 0x4c421f
cmpl $0x0, 0x1c4(%rsp)
jbe 0x4c5246
movq 0x240(%rsp), %rax
movq %rax, 0x88(%rsp)
movb 0x1de(%rsp), %al
movb %al, 0x97(%rsp)
movl 0x184(%rsp), %eax
movl %eax, 0x98(%rsp)
movl 0x1c4(%rsp), %eax
movl %eax, 0x9c(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x1e8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x200(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0xb8(%rsp)
movq 0x1b8(%rsp), %rax
movq 0x200(%rsp), %rcx
movq 0x40(%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x4c511a
movq 0x1b8(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x4c5132
movq 0x200(%rsp), %rax
movq 0x40(%rax), %rax
subq $0x1, %rax
movq %rax, 0x80(%rsp)
movq 0xb8(%rsp), %rax
movq 0x80(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x58(%rsp)
movq 0x190(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x168(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x1b0(%rsp), %rax
movq 0x200(%rsp), %rcx
movq 0x50(%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x4c51aa
movq 0x1b0(%rsp), %rax
movq %rax, 0x50(%rsp)
jmp 0x4c51bf
movq 0x200(%rsp), %rax
movq 0x50(%rax), %rax
subq $0x1, %rax
movq %rax, 0x50(%rsp)
movq 0xa8(%rsp), %r9
movq 0xa0(%rsp), %r8
movl 0x9c(%rsp), %ecx
movl 0x98(%rsp), %edx
movq 0x88(%rsp), %rdi
movb 0x97(%rsp), %al
movq 0xb0(%rsp), %r10
movq 0x58(%rsp), %r11
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %r14
movq 0x70(%rsp), %r15
movq 0x78(%rsp), %r12
movq 0x50(%rsp), %rsi
addq %rsi, %r12
movq 0x208(%rsp), %r13
movq %rsp, %rsi
movq %r13, 0x30(%rsi)
movq %r12, 0x28(%rsi)
movq %r15, 0x20(%rsi)
movq %r14, 0x18(%rsi)
movq %rbx, 0x10(%rsi)
movq %r11, 0x8(%rsi)
movq %r10, (%rsi)
movzbl %al, %esi
andl $0x1, %esi
callq 0x4c58b0
movq 0x200(%rsp), %rax
cmpq $0x0, 0x88(%rax)
je 0x4c55df
movq 0x200(%rsp), %rax
testb $0x1, 0x59(%rax)
je 0x4c55df
movq $0x0, 0x108(%rsp)
movb $0x0, 0x107(%rsp)
movb $0x0, 0x106(%rsp)
movq $0x0, 0x110(%rsp)
movq 0x110(%rsp), %rax
cmpq 0x150(%rsp), %rax
jae 0x4c5344
movq 0x160(%rsp), %rax
andq 0x158(%rsp), %rax
cmpq $0x0, %rax
je 0x4c52dc
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, 0x48(%rsp)
jmp 0x4c52f6
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rcx
xorl %eax, %eax
subq 0x20(%rcx), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
addq 0x108(%rsp), %rax
movq %rax, 0x108(%rsp)
cmpq $0x0, 0x108(%rsp)
jge 0x4c5318
jmp 0x4c5344
movq 0x158(%rsp), %rax
shrq %rax
movq %rax, 0x158(%rsp)
movq 0x110(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x110(%rsp)
jmp 0x4c5296
jmp 0x4c5346
movq 0x148(%rsp), %rax
cmpq 0x1a8(%rsp), %rax
jbe 0x4c5390
movq 0x176c41(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x50caa(%rip), %rsi     # 0x516013
leaq 0xf3482(%rip), %rdx     # 0x5b87f2
leaq 0xf3429(%rip), %rcx     # 0x5b87a0
leaq 0xf2fba(%rip), %r8      # 0x5b8338
movl $0x45e, %r9d            # imm = 0x45E
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c5392
movq 0x148(%rsp), %rax
cmpq 0x140(%rsp), %rax
jae 0x4c53c8
movq 0x148(%rsp), %rax
cmpq 0x1a8(%rsp), %rax
je 0x4c53c8
movq 0x1a0(%rsp), %rax
cmpq 0x140(%rsp), %rax
jae 0x4c53d0
movb $0x1, 0x107(%rsp)
movq 0x110(%rsp), %rax
cmpq 0x140(%rsp), %rax
jae 0x4c5419
movq 0x110(%rsp), %rax
cmpq 0x1a8(%rsp), %rax
je 0x4c5419
cmpq $-0x1, 0x138(%rsp)
je 0x4c5421
movq 0x138(%rsp), %rax
addq 0x140(%rsp), %rax
cmpq 0x1a8(%rsp), %rax
jbe 0x4c5421
movb $0x1, 0x106(%rsp)
movq 0x208(%rsp), %rdi
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x28(%rax), %rdx
movq 0x200(%rsp), %rax
movq 0x88(%rax), %rax
xorl %ecx, %ecx
subq 0x20(%rax), %rcx
movq 0x140(%rsp), %r8
movq 0x148(%rsp), %r9
movq 0x110(%rsp), %rax
leaq 0xf33a5(%rip), %rsi     # 0x5b8815
movq %rax, (%rsp)
movb $0x0, %al
callq 0x199f0
movq 0x1a0(%rsp), %rax
cmpq 0x140(%rsp), %rax
jae 0x4c54a3
movq 0x208(%rsp), %rdi
leaq 0xf33a1(%rip), %rsi     # 0x5b883d
movb $0x0, %al
callq 0x199f0
movq 0x138(%rsp), %rax
addq 0x140(%rsp), %rax
cmpq 0x1a8(%rsp), %rax
jbe 0x4c54d3
movq 0x208(%rsp), %rdi
leaq 0xf3381(%rip), %rsi     # 0x5b884d
movb $0x0, %al
callq 0x199f0
movq 0x200(%rsp), %rax
testb $0x1, 0x58(%rax)
je 0x4c5587
movq 0x208(%rsp), %rdi
leaq 0xcdd7f(%rip), %rsi     # 0x593273
movb $0x0, %al
callq 0x199f0
testb $0x1, 0x107(%rsp)
jne 0x4c553d
movq 0x176a94(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x50afd(%rip), %rsi     # 0x516013
leaq 0xf333e(%rip), %rdx     # 0x5b885b
leaq 0xf327c(%rip), %rcx     # 0x5b87a0
leaq 0xf2e0d(%rip), %r8      # 0x5b8338
movl $0x47c, %r9d            # imm = 0x47C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c553f
jmp 0x4c5541
testb $0x1, 0x106(%rsp)
jne 0x4c5583
movq 0x176a4e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x50ab7(%rip), %rsi     # 0x516013
leaq 0xf3306(%rip), %rdx     # 0x5b8869
leaq 0xf3236(%rip), %rcx     # 0x5b87a0
leaq 0xf2dc7(%rip), %r8      # 0x5b8338
movl $0x47d, %r9d            # imm = 0x47D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c5585
jmp 0x4c55dd
testb $0x1, 0x107(%rsp)
jne 0x4c55a7
movq 0x208(%rsp), %rdi
leaq 0xf32d5(%rip), %rsi     # 0x5b8875
movb $0x0, %al
callq 0x199f0
testb $0x1, 0x106(%rsp)
jne 0x4c55c7
movq 0x208(%rsp), %rdi
leaq 0xf32ca(%rip), %rsi     # 0x5b888a
movb $0x0, %al
callq 0x199f0
movq 0x208(%rsp), %rdi
leaq 0xcdc9d(%rip), %rsi     # 0x593273
movb $0x0, %al
callq 0x199f0
jmp 0x4c55df
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq