// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r9, %rbx
movq %r8, %r15
movq %rcx, 0x48(%rsp)
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movb 0x178(%rsp), %al
movb %al, 0x4(%rsp)
movb 0x170(%rsp), %al
movb %al, 0x3(%rsp)
movb 0x168(%rsp), %bpl
movb 0x160(%rsp), %al
movb %al, 0x7(%rsp)
movb 0x158(%rsp), %al
movb %al, 0x6(%rsp)
movq 0x150(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq %rdx, 0x98(%rsp)
movq 0x18(%rdx), %rax
movq %rax, 0x38(%rsp)
movq %rsi, %rdi
callq 0x2b9a9d
movq 0x48(%r14), %rcx
movq %rbx, %rdx
subq %rcx, %rdx
testq %rbx, %rbx
cmoveq %rcx, %rdx
movq %rdx, 0xa8(%rsp)
movl %eax, 0x18(%rsp)
movq %r15, 0xb8(%rsp)
testq %r15, %r15
setne %al
movb %bpl, 0x5(%rsp)
orb %bpl, %al
je 0x2b99d9
movq 0x88(%r14), %rax
testq %rax, %rax
je 0x2b8eb0
movq 0x8(%rax), %rax
addq %rax, %rax
movq %rax, 0x60(%rsp)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0xc8(%rsp)
jmp 0x2b8ec5
movq $0x0, 0xc8(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x38(%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x98(%rsp), %rdi
movl 0x20(%rdi), %ecx
movq 0x38(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x58(%rsp)
addq %rax, %rcx
movq %rcx, 0x90(%rsp)
movzbl 0x5(%rsp), %edx
movq %r14, %rsi
callq 0x2b7c06
movq 0xa8(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xf8(%rsp)
xorl %ebp, %ebp
pushq $-0x1
popq %r13
movq %r13, 0xa0(%rsp)
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %rax, 0x50(%rsp)
movq $0x0, 0x80(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x28(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x20(%rsp)
movq 0xa8(%rsp), %rax
leaq (%r12,%rax), %rcx
movq %rcx, 0x88(%rsp)
addq %r12, %rax
incq %rax
movq %rax, 0x78(%rsp)
movq %r13, 0x68(%rsp)
movq %r12, 0x70(%rsp)
movzbl 0x6(%rsp), %edx
leaq 0xe0(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x2b7c9a
movzbl 0x7(%rsp), %ecx
movl %ecx, 0x1c(%rsp)
testb %al, %al
je 0x2b9696
movl 0xe0(%rsp), %r8d
testl %r8d, %r8d
jne 0x2b915f
movq 0xe8(%rsp), %r13
movq %rbp, %r12
movq %rbp, %rax
addq %r13, %rax
movq %rax, 0xd8(%rsp)
leaq (%r15,%r13), %rax
movq %rax, 0xd0(%rsp)
movq %r15, %rbp
notq %rbp
subq $0x1, %r13
jb 0x2b912e
movq 0x40(%r14), %rax
cmpq %rax, %r15
jae 0x2b914d
addq %rbp, %rax
cmpb $0x0, 0x5(%rsp)
cmovneq %r15, %rax
movq 0x28(%r14), %rcx
movb (%rcx,%rax), %al
cmpq $0x0, 0x48(%rsp)
je 0x2b9040
movb 0x4(%rsp), %cl
cmpb $-0x3, %al
ja 0x2b9042
cmpb $0x0, 0x3(%rsp)
je 0x2b9033
cmpb $0x4, %al
jae 0x2b98e5
movb $0x3, %cl
subb %al, %cl
movl %ecx, %eax
movzbl %al, %eax
movq 0x48(%rsp), %rcx
movb (%rcx,%rax), %cl
jmp 0x2b9042
movl %eax, %ecx
movl %ebx, %eax
movq 0x38(%rsp), %r9
movb %cl, (%r9,%rax)
movq 0x58(%rsp), %r10
movb $0x20, (%r10,%rax)
movq 0x90(%rsp), %r11
movb $0x2d, (%r11,%rax)
movq 0x98(%rsp), %rax
movl 0x20(%rax), %r8d
movq 0x38(%r14), %rax
addq %r15, %rax
movq 0xb0(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl 0x18(%rsp), %edx
movl %ebx, %ecx
pushq 0x10(%rsp)
pushq 0x90(%rsp)
pushq 0x60(%rsp)
pushq %r11
pushq %r10
pushq %rax
pushq 0x38(%rsp)
pushq 0xf0(%rsp)
callq 0x2b9b32
addq $0x40, %rsp
movl %eax, %ebx
testl %eax, %eax
jne 0x2b90d0
movq 0x38(%r14), %rax
addq %r15, %rax
incq %rax
movq %rax, 0x8(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x88(%r14), %rax
testq %rax, %rax
je 0x2b9120
cmpq $0x3f, 0x28(%rsp)
ja 0x2b9106
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
js 0x2b9106
subq 0x20(%rax), %rcx
movq %rcx, %rax
movq %rcx, 0x20(%rsp)
notq %rax
shrq $0x3f, %rax
addq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rax
cmpq $0x40, %rax
adcq $0x0, %rax
movq %rax, 0x40(%rsp)
shrq 0x80(%rsp)
incq %r12
incq %r15
decq %rbp
jmp 0x2b8fe4
movq 0xd8(%rsp), %rbp
movq 0xd0(%rsp), %r15
movq 0x68(%rsp), %r13
movq 0x70(%rsp), %r12
jmp 0x2b8f7d
movq 0x68(%rsp), %r13
movq %r12, %rbp
movq 0x70(%rsp), %r12
jmp 0x2b8f7d
leal -0x2(%r8), %eax
cmpl $0x2, %eax
jae 0x2b948a
movq %r15, %r13
notq %r13
movq 0xe8(%rsp), %rcx
leaq (%rcx,%rbp), %rax
movq %rax, 0xc0(%rsp)
movq %rcx, 0x100(%rsp)
leaq (%r12,%rcx), %rax
movq %rax, 0xf0(%rsp)
movq %r12, %r9
notq %r9
xorl %r10d, %r10d
movq %rbp, %rdi
movq %r12, %r11
movq %r15, %rsi
movq %rbp, 0x30(%rsp)
leaq (%r15,%r10), %rax
cmpq %r10, 0x100(%rsp)
je 0x2b9654
movq 0x40(%r14), %rdx
movq %rax, %r8
cmpq %rdx, %rax
jae 0x2b9669
leaq (%r12,%r10), %rcx
movq 0x50(%r14), %rax
cmpq %rax, %rcx
jae 0x2b9671
movq 0x28(%r14), %rcx
cmpb $0x0, 0x5(%rsp)
je 0x2b91fb
addq %rsi, %rcx
movq 0x30(%r14), %rax
addq %r11, %rax
jmp 0x2b9208
addq %rdx, %rcx
addq %r13, %rcx
addq 0x30(%r14), %rax
addq %r9, %rax
movb (%rax), %al
movb (%rcx), %cl
cmpq $0x0, 0x48(%rsp)
movq %rsi, 0x78(%rsp)
je 0x2b9226
cmpb $-0x3, %cl
jbe 0x2b922a
xorl %edx, %edx
movb 0x4(%rsp), %cl
jmp 0x2b924d
movb $0x1, %dl
jmp 0x2b927b
cmpb $0x0, 0x3(%rsp)
je 0x2b9240
cmpb $0x4, %cl
jae 0x2b9949
movb $0x3, %dl
subb %cl, %dl
movl %edx, %ecx
movzbl %cl, %ecx
movq 0x48(%rsp), %rdx
movb (%rdx,%rcx), %cl
movb $0x1, %dl
cmpb $-0x3, %al
jbe 0x2b9259
xorl %edx, %edx
movb 0x4(%rsp), %al
jmp 0x2b927b
cmpb $0x0, 0x3(%rsp)
je 0x2b9270
cmpb $0x4, %al
jae 0x2b9977
movb $0x3, %sil
subb %al, %sil
movl %esi, %eax
movzbl %al, %eax
movq 0x48(%rsp), %rsi
movb (%rsi,%rax), %al
movq %r11, 0x110(%rsp)
movq %rdi, 0xd0(%rsp)
movl %ebx, %esi
movq 0x38(%rsp), %rdi
movb %cl, (%rdi,%rsi)
xorl %ebp, %ebp
cmpb %al, %cl
sete %bpl
movzbl %dl, %ecx
testb %cl, %cl
cmovel %ecx, %ebp
movq 0x90(%rsp), %rcx
movb %al, (%rcx,%rsi)
cmpb $0x1, %bpl
movq %r9, 0xd8(%rsp)
movq %r13, 0x108(%rsp)
jne 0x2b9318
movq 0x60(%r14), %rax
movq %r8, %rcx
cmpq %r8, %rax
movq 0x58(%rsp), %r11
ja 0x2b9327
addq 0x68(%r14), %rax
cmpq %rax, %rcx
jae 0x2b9327
cmpb $0x0, 0x5a(%r14)
pushq $0x2b
popq %rax
jne 0x2b92ed
pushq $0x7c
popq %rax
movq 0x30(%rsp), %rcx
addq %r10, %rcx
movb %al, (%r11,%rsi)
movq 0xa0(%rsp), %rax
cmpq $-0x1, %rax
movq %rcx, 0x68(%rsp)
cmoveq %rcx, %rax
movq %rax, 0xa0(%rsp)
jmp 0x2b9322
movq 0x58(%rsp), %r11
movb $0x20, (%r11,%rsi)
movq %r8, %rcx
jmp 0x2b932c
movb $0x7c, (%r11,%rsi)
movq 0x98(%rsp), %rax
movl 0x20(%rax), %r8d
movq 0x38(%r14), %rax
addq %rcx, %rax
movq %rcx, %r13
movq 0x88(%rsp), %rcx
movq %r10, %r12
addq %rcx, %r10
movq 0xb0(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl 0x18(%rsp), %edx
movl %ebx, %ecx
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq %r10
pushq 0x60(%rsp)
pushq 0xa8(%rsp)
pushq %r11
pushq %rax
pushq 0x38(%rsp)
pushq 0xf0(%rsp)
callq 0x2b9b32
addq $0x40, %rsp
movl %eax, %ebx
testl %eax, %eax
jne 0x2b93b7
movq 0x38(%r14), %rax
addq %r13, %rax
incq %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rax
addq %r12, %rax
incq %rax
movq %rax, 0x50(%rsp)
movq 0x88(%r14), %rax
testq %rax, %rax
movq 0x108(%rsp), %r13
movq 0xd8(%rsp), %r9
movq 0xd0(%rsp), %rdi
movq 0x110(%rsp), %r11
movq 0x78(%rsp), %rsi
je 0x2b940b
cmpq $0x3f, 0x28(%rsp)
movq %r12, %r10
ja 0x2b9432
cmpq $0x0, 0x20(%rsp)
js 0x2b9432
testb %bpl, %bpl
je 0x2b9415
movq 0x20(%rsp), %rcx
addq 0x28(%rax), %rcx
jmp 0x2b941e
movq 0x30(%rsp), %rbp
movq %r12, %r10
jmp 0x2b946e
movq 0x20(%rsp), %rcx
subq 0x20(%rax), %rcx
movq %rcx, %rax
movq %rax, 0x20(%rsp)
notq %rax
shrq $0x3f, %rax
addq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rax
cmpq $0x40, %rax
adcq $0x0, %rax
movq %rax, 0x40(%rsp)
movq 0xc8(%rsp), %rax
testb %bpl, %bpl
jne 0x2b9453
xorl %eax, %eax
movq 0x80(%rsp), %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, 0x80(%rsp)
movq 0x30(%rsp), %rbp
incq %rdi
incq %rsi
incq %r11
incq %r10
decq %r9
decq %r13
movq 0x70(%rsp), %r12
jmp 0x2b91b1
cmpl $0x1, %r8d
jne 0x2b991d
movq %r12, %rsi
notq %rsi
movq 0xe8(%rsp), %rdi
leaq 0x1(%r15), %rax
movq %rax, 0x78(%rsp)
leaq (%rdi,%rbp), %rax
movq %rax, 0xc0(%rsp)
leaq (%r12,%rdi), %rax
movq %rax, 0x70(%rsp)
subq $0x1, %rdi
jb 0x2b9684
movq 0x50(%r14), %rax
cmpq %rax, %r12
jae 0x2b8f54
addq %rsi, %rax
cmpb $0x0, 0x5(%rsp)
cmovneq %r12, %rax
movq 0x30(%r14), %rcx
movb (%rcx,%rax), %cl
movl %ebx, %eax
movq 0x38(%rsp), %rdx
movb $0x2d, (%rdx,%rax)
movq 0x58(%rsp), %rdx
movb $0x20, (%rdx,%rax)
cmpq $0x0, 0x48(%rsp)
je 0x2b9532
movb 0x4(%rsp), %dl
cmpb $-0x3, %cl
ja 0x2b9534
cmpb $0x0, 0x3(%rsp)
je 0x2b9525
cmpb $0x4, %cl
jae 0x2b99a8
movb $0x3, %dl
subb %cl, %dl
movl %edx, %ecx
movzbl %cl, %ecx
movq 0x48(%rsp), %rdx
movb (%rdx,%rcx), %dl
jmp 0x2b9534
movl %ecx, %edx
movq %rdi, 0x88(%rsp)
movq %rbp, 0x30(%rsp)
movq %r13, %rbp
movq %rsi, %r13
movq 0x90(%rsp), %r11
movb %dl, (%r11,%rax)
movq 0x98(%rsp), %rax
movl 0x20(%rax), %r8d
movq 0x38(%r14), %rax
addq %r15, %rax
movq 0xa8(%rsp), %rcx
leaq (%rcx,%r12), %r10
movq 0xb0(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl 0x18(%rsp), %edx
movl %ebx, %ecx
movq 0x38(%rsp), %r9
pushq 0x10(%rsp)
pushq %r10
pushq 0x60(%rsp)
pushq %r11
pushq 0x78(%rsp)
pushq %rax
pushq 0x38(%rsp)
pushq 0xf0(%rsp)
callq 0x2b9b32
addq $0x40, %rsp
movl %eax, %ebx
testl %eax, %eax
jne 0x2b95d2
movq 0x38(%r14), %rax
addq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xf8(%rsp), %rax
addq %r12, %rax
movq %rax, 0x50(%rsp)
movq 0x88(%r14), %rax
testq %rax, %rax
movq %r13, %rsi
movq 0x88(%rsp), %rdi
je 0x2b961d
cmpq $0x3f, 0x28(%rsp)
movq %rbp, %r13
ja 0x2b9627
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
movq 0x30(%rsp), %rbp
js 0x2b962c
subq 0x20(%rax), %rcx
movq %rcx, %rax
movq %rcx, 0x20(%rsp)
notq %rax
shrq $0x3f, %rax
addq %rax, 0x28(%rsp)
jmp 0x2b962c
movq %rbp, %r13
movq 0x30(%rsp), %rbp
jmp 0x2b9646
movq 0x30(%rsp), %rbp
movq 0x40(%rsp), %rax
cmpq $0x40, %rax
adcq $0x0, %rax
movq %rax, 0x40(%rsp)
shrq 0x80(%rsp)
incq %rbp
incq %r12
decq %rsi
jmp 0x2b94c0
movq %rax, %r8
movq 0xf0(%rsp), %rcx
movq 0xc0(%rsp), %rbp
jmp 0x2b9674
movq %rdi, %rbp
movq %r11, %rcx
jmp 0x2b9674
addq %r10, %rbp
movq %rcx, %r12
movq %r8, %r15
movq 0x68(%rsp), %r13
jmp 0x2b8f54
movq 0x70(%rsp), %r12
movq 0xc0(%rsp), %rbp
jmp 0x2b8f54
testl %ebx, %ebx
je 0x2b970b
movq 0x40(%r14), %rax
decq %rax
cmpq %rax, %r15
cmovbq %r15, %rax
movq 0x50(%r14), %r10
addq 0x38(%r14), %rax
decq %r10
cmpq %r10, %r12
cmovbq %r12, %r10
addq 0xa8(%rsp), %r10
subq $0x8, %rsp
movq 0xb8(%rsp), %rdi
movl 0x24(%rsp), %esi
movl 0x20(%rsp), %edx
movl %ebx, %ecx
movq 0x40(%rsp), %r8
movq 0xc0(%rsp), %r9
pushq 0x18(%rsp)
pushq %r10
pushq 0x68(%rsp)
pushq 0xb0(%rsp)
pushq 0x80(%rsp)
pushq %rax
pushq 0x40(%rsp)
callq 0x2b9bed
addq $0x40, %rsp
movq 0x88(%r14), %rax
testq %rax, %rax
je 0x2b987b
cmpb $0x1, 0x59(%r14)
jne 0x2b987b
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x40(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0xc8(%rsp), %r10
movq 0x80(%rsp), %r11
cmpq %rcx, %r8
je 0x2b976d
testq %r11, %r10
je 0x2b9754
movq 0x28(%rax), %rsi
jmp 0x2b975d
movq 0x20(%rax), %rdi
xorl %esi, %esi
subq %rdi, %rsi
addq %rsi, %rdx
js 0x2b976a
shrq %r10
incq %rcx
jmp 0x2b9744
movq %rcx, %r8
cmpq %rbp, %r9
ja 0x2b9a0a
movq %rbp, %rdx
movq 0x60(%rsp), %rcx
cmpq %rcx, %r9
setae %bpl
cmpq %rdx, %r9
sete %r12b
cmpq %rcx, 0xa0(%rsp)
setb %r15b
movq %r8, %r10
cmpq %rcx, %r8
jae 0x2b97be
cmpq %rdx, %r10
je 0x2b97be
movq %rdx, %rbx
cmpq $-0x1, %r13
je 0x2b97c9
movq 0x60(%rsp), %rcx
addq %r13, %rcx
movq %rbx, %rdx
cmpq %rbx, %rcx
jbe 0x2b97c9
movq %rdx, %rbx
movb $0x1, %cl
movl %ecx, 0x8(%rsp)
jmp 0x2b97d1
movl $0x0, 0x8(%rsp)
movq 0x28(%rax), %rdx
movq 0x20(%rax), %rax
xorl %ecx, %ecx
subq %rax, %rcx
subq $0x8, %rsp
leaq 0xc9c1a(%rip), %rsi     # 0x383403
movq 0x18(%rsp), %rdi
movq 0x68(%rsp), %r13
movq %r13, %r8
movq 0x30(%rsp), %r9
xorl %eax, %eax
pushq %r10
callq 0x17a50
popq %rcx
popq %rdx
cmpq %r13, 0xa0(%rsp)
jae 0x2b9827
leaq 0xc9c14(%rip), %rdi     # 0x38342b
pushq $0xf
popq %rsi
pushq $0x1
popq %rdx
movq 0x10(%rsp), %rcx
callq 0x17f00
orb %r12b, %bpl
movq 0x68(%rsp), %rax
addq 0x60(%rsp), %rax
cmpq %rbx, %rax
jbe 0x2b9850
leaq 0xc9bfb(%rip), %rdi     # 0x38343b
pushq $0xd
popq %rsi
pushq $0x1
popq %rdx
movq 0x10(%rsp), %rcx
callq 0x17f00
orb %r15b, %bpl
cmpb $0x1, 0x58(%r14)
jne 0x2b988d
pushq $0xa
popq %rdi
movq 0x10(%rsp), %rsi
callq 0x17930
testb %bpl, %bpl
je 0x2b9a3b
cmpb $0x0, 0x8(%rsp)
je 0x2b9a6c
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %bpl, %bpl
jne 0x2b98a9
leaq 0xc9bca(%rip), %rdi     # 0x383463
pushq $0x14
popq %rsi
pushq $0x1
popq %rdx
movq 0x10(%rsp), %rcx
callq 0x17f00
cmpb $0x0, 0x8(%rsp)
jne 0x2b98c7
leaq 0xc9bc1(%rip), %rdi     # 0x383478
pushq $0x12
popq %rsi
pushq $0x1
popq %rdx
movq 0x10(%rsp), %rcx
callq 0x17f00
pushq $0xa
popq %rdi
movq 0x10(%rsp), %rsi
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17930
movq 0x17e67c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b71d(%rip), %rsi     # 0x2e5013
leaq 0xc9aab(%rip), %rdx     # 0x3833a8
leaq 0xc9a8a(%rip), %rcx     # 0x38338e
leaq 0xc96c5(%rip), %r8      # 0x382fd0
movl $0x3e2, %r9d            # imm = 0x3E2
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x17e644(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0xc9a8c(%rip), %rsi     # 0x3833ba
leaq 0xc969b(%rip), %rdx     # 0x382fd0
movl $0x438, %ecx            # imm = 0x438
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x17e618(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b6b9(%rip), %rsi     # 0x2e5013
leaq 0xc9a47(%rip), %rdx     # 0x3833a8
leaq 0xc9a26(%rip), %rcx     # 0x38338e
leaq 0xc9661(%rip), %r8      # 0x382fd0
movl $0x389, %r9d            # imm = 0x389
jmp 0x2b9911
movq 0x17e5ea(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b68b(%rip), %rsi     # 0x2e5013
leaq 0xc9a22(%rip), %rdx     # 0x3833b1
leaq 0xc99f8(%rip), %rcx     # 0x38338e
leaq 0xc9633(%rip), %r8      # 0x382fd0
movl $0x396, %r9d            # imm = 0x396
jmp 0x2b9911
movq 0x17e5b9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b65a(%rip), %rsi     # 0x2e5013
leaq 0xc99f1(%rip), %rdx     # 0x3833b1
leaq 0xc99c7(%rip), %rcx     # 0x38338e
leaq 0xc9602(%rip), %r8      # 0x382fd0
movl $0x415, %r9d            # imm = 0x415
jmp 0x2b9911
movq 0x17e588(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b629(%rip), %rsi     # 0x2e5013
leaq 0xc9971(%rip), %rdx     # 0x383362
leaq 0xc9996(%rip), %rcx     # 0x38338e
leaq 0xc95d1(%rip), %r8      # 0x382fd0
movl $0x357, %r9d            # imm = 0x357
jmp 0x2b9911
movq 0x17e557(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b5f8(%rip), %rsi     # 0x2e5013
leaq 0xc99be(%rip), %rdx     # 0x3833e0
leaq 0xc9965(%rip), %rcx     # 0x38338e
leaq 0xc95a0(%rip), %r8      # 0x382fd0
movl $0x45e, %r9d            # imm = 0x45E
jmp 0x2b9911
movq 0x17e526(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b5c7(%rip), %rsi     # 0x2e5013
leaq 0xc99f6(%rip), %rdx     # 0x383449
leaq 0xc9934(%rip), %rcx     # 0x38338e
leaq 0xc956f(%rip), %r8      # 0x382fd0
movl $0x47c, %r9d            # imm = 0x47C
jmp 0x2b9911
movq 0x17e4f5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b596(%rip), %rsi     # 0x2e5013
leaq 0xc99d3(%rip), %rdx     # 0x383457
leaq 0xc9903(%rip), %rcx     # 0x38338e
leaq 0xc953e(%rip), %r8      # 0x382fd0
movl $0x47d, %r9d            # imm = 0x47D
jmp 0x2b9911