// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/tir_stream.c
// Function: gt_tir_searchforTIRs
static int gt_tir_searchforTIRs(GtTIRStream *tir_stream,
                                const GtEncseq *encseq, GtError *err)
{
  GtUword seedcounter = 0;
  GtArrayTIRPair new;             /* need to remove overlaps */
  GtXdropresources *xdropresources;
  GtUword total_length = 0;
  GtUword alilen,
                seqstart1, seqend1,
                seqstart2, seqend2,
                edist, ulen, vlen;
  Seed *seedptr;
  TIRPair *pair;
  int had_err = 0;
  GtXdropbest xdropbest_left, xdropbest_right;
  GtSeqabstract *sa_useq = gt_seqabstract_new_empty(),
                *sa_vseq = gt_seqabstract_new_empty();
  GtFrontResource *frontresource = gt_frontresource_new(100UL);
  gt_error_check(err);

  xdropresources = gt_xdrop_resources_new(&tir_stream->arbit_scores);

  /* Iterating over seeds */
  for (seedcounter = 0; seedcounter < tir_stream->seedinfo.seed.nextfreeSeed;
       seedcounter++) {

    total_length = gt_encseq_total_length(encseq);
    seedptr = &(tir_stream->seedinfo.seed.spaceSeed[seedcounter]);
    gt_assert(tir_stream->seedinfo.max_tir_length >= seedptr->len);
    alilen = tir_stream->seedinfo.max_tir_length - seedptr->len;
    seqstart1 = gt_encseq_seqstartpos(tir_stream->encseq,
                                       seedptr->contignumber);
    seqend1 = seqstart1 + gt_encseq_seqlength(tir_stream->encseq,
                                              seedptr->contignumber);
    seqstart2 = GT_REVERSEPOS(total_length, seqend1);
    seqend2 = GT_REVERSEPOS(total_length, seqstart1);

    /* left (reverse) xdrop */
    if (alilen != 0 &&
        seedptr->pos1 > seqstart1 &&
        seedptr->pos2 > seqstart2)
    {
      if (alilen <= seedptr->pos1 - seqstart1
            && alilen <= seedptr->pos2 - seqstart2)
      {
        gt_seqabstract_reinit_encseq(false,GT_READMODE_FORWARD,
                                     sa_useq, encseq, alilen,
                                     seedptr->pos1 - alilen);
        gt_seqabstract_reinit_encseq(false,GT_READMODE_FORWARD,
                                     sa_vseq, encseq, alilen,
                                     seedptr->pos2 - alilen);

      } else
      {
        GtUword maxleft = GT_MIN(seedptr->pos1 - seqstart1,
                                    seedptr->pos2 - seqstart2);
        gt_seqabstract_reinit_encseq(false,GT_READMODE_FORWARD,
                                     sa_useq, encseq, maxleft,
                                     seedptr->pos1 - maxleft);
        gt_seqabstract_reinit_encseq(false,GT_READMODE_FORWARD,
                                     sa_vseq, encseq, maxleft,
                                     seedptr->pos2 - maxleft);
      }
      gt_evalxdroparbitscoresextend(false,
                                    &xdropbest_left,
                                    xdropresources,
                                    sa_useq,
                                    sa_vseq,
                                   (GtXdropscore) tir_stream->xdrop_belowscore);
    } else
    {
      xdropbest_left.ivalue = 0;
      xdropbest_left.jvalue = 0;
      xdropbest_left.score = 0;
    }

    /* right (forward) xdrop */
    if (alilen != 0 &&
        seedptr->pos1 + seedptr->len < seqend1 &&
        seedptr->pos2 + seedptr->len < seqend2)
    {
      if (alilen <= seqend1 - (seedptr->pos1 + seedptr->len) &&
          alilen <= seqend2 - (seedptr->pos2 + seedptr->len))
      {
        gt_seqabstract_reinit_encseq(true,GT_READMODE_FORWARD,
                                     sa_useq, encseq, alilen,
                                     seedptr->pos1 + seedptr->len);
        gt_seqabstract_reinit_encseq(true,GT_READMODE_FORWARD,
                                     sa_vseq, encseq, alilen,
                                     seedptr->pos2 + seedptr->len);
      } else
      {
        GtUword maxright = GT_MIN(seqend1 - (seedptr->pos1 + seedptr->len),
                                     seqend2 - (seedptr->pos2 + seedptr->len));
        gt_seqabstract_reinit_encseq(true,GT_READMODE_FORWARD,
                                     sa_useq, encseq, maxright,
                                     seedptr->pos1 + seedptr->len);
        gt_seqabstract_reinit_encseq(true,GT_READMODE_FORWARD,
                                     sa_vseq, encseq, maxright,
                                     seedptr->pos2 + seedptr->len);
      }
      gt_evalxdroparbitscoresextend(true,
                                    &xdropbest_right,
                                    xdropresources,
                                    sa_useq,
                                    sa_vseq,
                                   (GtXdropscore) tir_stream->xdrop_belowscore);
    } else
    {
      xdropbest_right.ivalue = 0;
      xdropbest_right.jvalue = 0;
      xdropbest_right.score = 0;
    }

    /* re-check length constraints */
    if ((seedptr->pos1 + seedptr->len - 1 + xdropbest_right.ivalue) -
      (seedptr->pos1 - xdropbest_left.jvalue + 1) < tir_stream->min_TIR_length
      || (seedptr->pos1 + seedptr->len - 1 + xdropbest_right.ivalue) -
      (seedptr->pos1 - xdropbest_left.jvalue + 1) > tir_stream->max_TIR_length)
    {
      /*  gt_log_log("ext: out!"); */
      continue;
    }

    GT_GETNEXTFREEINARRAY(pair, &tir_stream->first_pairs, TIRPair, 256);
    /* Store positions for the found TIR */
    pair->contignumber = seedptr->contignumber;
    pair->tsd_length = 0;
    pair->left_tir_start = seedptr->pos1 - xdropbest_left.ivalue;
    pair->left_tir_end = seedptr->pos1 + seedptr->len - 1
                            + xdropbest_right.ivalue;
    pair->right_tir_start = seedptr->pos2 - xdropbest_left.jvalue;
    pair->right_tir_end = seedptr->pos2 + seedptr->len - 1
                             + xdropbest_right.jvalue;
    pair->right_transformed_start = GT_REVERSEPOS(total_length,
                                                  pair->right_tir_end);
    pair->right_transformed_end = GT_REVERSEPOS(total_length,
                                                pair->right_tir_start);
    pair->similarity = 0.0;
    pair->skip = false;
    tir_stream->num_of_tirs++;

    /* TSDs */
    gt_tir_search_for_TSDs(tir_stream, pair, encseq, err);

    /* make sure the TIR coords are still OK */
    if (!pair->skip && (pair->left_tir_end <= pair->left_tir_start ||
        pair->right_tir_end <= pair->right_tir_start)) {
      pair->skip = true;
    }
    if (!pair->skip) {
      /* determine and filter by similarity */
      ulen = pair->left_tir_end - pair->left_tir_start;
      vlen = pair->right_tir_end - pair->right_tir_start;
      gt_seqabstract_reinit_encseq(true,GT_READMODE_FORWARD,
                                   sa_useq, encseq, ulen,
                                   pair->left_tir_start);
      gt_seqabstract_reinit_encseq(true,GT_READMODE_FORWARD,
                                   sa_vseq, encseq, vlen,
                                   pair->right_tir_start);
      edist = greedyunitedist(frontresource, sa_useq, sa_vseq);
      pair->similarity = 100.0 * (1.0 - (double) edist/GT_MAX(ulen, vlen));
      /* gt_log_log("edist "GT_WU", sim %f", edist, pair->similarity); */
      if (gt_double_smaller_double(pair->similarity,
                                   tir_stream->similarity_threshold)) {
        pair->skip = true;
      }
    }
  }

  /* sort results after seed extension */
  if (!had_err && tir_stream->first_pairs.spaceTIRPair) {
    qsort(tir_stream->first_pairs.spaceTIRPair,
          (size_t) tir_stream->first_pairs.nextfreeTIRPair,
           sizeof (TIRPair), gt_tir_compare_TIRs);
  }

  /* initialize array for removing overlaps */
  GT_INITARRAY(&new, TIRPair);

 /* remove overlaps if wanted */
  if (tir_stream->best_overlaps || tir_stream->no_overlaps
       || tir_stream->longest_overlaps) {
    gt_tir_remove_overlaps(&tir_stream->first_pairs, tir_stream->no_overlaps,
                           tir_stream->longest_overlaps);
  }

  /* remove skipped candidates */
  tir_stream->tir_pairs = tir_compactboundaries(&tir_stream->num_of_tirs,
                                                &tir_stream->first_pairs);

  gt_xdrop_resources_delete(xdropresources);
  gt_seqabstract_delete(sa_useq);
  gt_seqabstract_delete(sa_vseq);
  gt_frontresource_delete(frontresource);
  return had_err;
}

// Assembly:
subq $0x158, %rsp            # imm = 0x158
movq %rdi, 0x150(%rsp)
movq %rsi, 0x148(%rsp)
movq %rdx, 0x140(%rsp)
movq $0x0, 0x138(%rsp)
movq $0x0, 0x110(%rsp)
movl $0x0, 0xbc(%rsp)
callq 0x2b0770
movq %rax, 0x60(%rsp)
callq 0x2b0770
movq %rax, 0x58(%rsp)
movl $0x64, %edi
callq 0x253810
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x140(%rsp)
je 0x1f0edb
movq 0x140(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1f0ea3
jmp 0x1f0edb
movq 0x44b0f6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32515f(%rip), %rsi    # 0x516013
leaq 0x325304(%rip), %rdx    # 0x5161bf
leaq 0x3784cb(%rip), %rcx    # 0x56938d
leaq 0x378366(%rip), %r8     # 0x56922f
movl $0x1da, %r9d            # imm = 0x1DA
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f0edd
movq 0x150(%rsp), %rdi
addq $0xe0, %rdi
callq 0x2f8350
movq %rax, 0x118(%rsp)
movq $0x0, 0x138(%rsp)
movq 0x138(%rsp), %rax
movq 0x150(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jae 0x1f1a68
movq 0x148(%rsp), %rdi
callq 0xa9d00
movq %rax, 0x110(%rsp)
movq 0x150(%rsp), %rax
movq 0x20(%rax), %rax
imulq $0x28, 0x138(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0xc8(%rsp)
movq 0x150(%rsp), %rax
movq 0x38(%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jae 0x1f0fa6
movq 0x44b02b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x325094(%rip), %rsi    # 0x516013
leaq 0x37841c(%rip), %rdx    # 0x5693a2
leaq 0x378400(%rip), %rcx    # 0x56938d
leaq 0x37829b(%rip), %r8     # 0x56922f
movl $0x1e4, %r9d            # imm = 0x1E4
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f0fa8
movq 0x150(%rsp), %rax
movq 0x38(%rax), %rax
movq 0xc8(%rsp), %rcx
subq 0x18(%rcx), %rax
movq %rax, 0x108(%rsp)
movq 0x150(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0xc8(%rsp), %rax
movq 0x20(%rax), %rsi
callq 0xb0530
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x150(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0xc8(%rsp), %rax
movq 0x20(%rax), %rsi
callq 0xb09f0
movq %rax, %rcx
movq 0x30(%rsp), %rax
addq %rcx, %rax
movq %rax, 0xf8(%rsp)
movq 0x110(%rsp), %rax
subq $0x1, %rax
subq 0xf8(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0x110(%rsp), %rax
subq $0x1, %rax
subq 0x100(%rsp), %rax
movq %rax, 0xe8(%rsp)
cmpq $0x0, 0x108(%rsp)
je 0x1f1243
movq 0xc8(%rsp), %rax
movq (%rax), %rax
cmpq 0x100(%rsp), %rax
jbe 0x1f1243
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0xf0(%rsp), %rax
jbe 0x1f1243
movq 0x108(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rcx), %rcx
subq 0x100(%rsp), %rcx
cmpq %rcx, %rax
ja 0x1f1151
movq 0x108(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0xf0(%rsp), %rcx
cmpq %rcx, %rax
ja 0x1f1151
movq 0x60(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x108(%rsp), %r8
movq 0xc8(%rsp), %rax
movq (%rax), %r9
subq 0x108(%rsp), %r9
xorl %esi, %esi
movl %esi, %edi
callq 0x2b0bc0
movq 0x58(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x108(%rsp), %r8
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %r9
subq 0x108(%rsp), %r9
xorl %esi, %esi
movl %esi, %edi
callq 0x2b0bc0
jmp 0x1f1211
movq 0xc8(%rsp), %rax
movq (%rax), %rax
subq 0x100(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq 0xf0(%rsp), %rcx
cmpq %rcx, %rax
jae 0x1f1197
movq 0xc8(%rsp), %rax
movq (%rax), %rax
subq 0x100(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0x1f11b0
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rax
subq 0xf0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0xc8(%rsp), %rax
movq (%rax), %r9
subq 0x48(%rsp), %r9
xorl %esi, %esi
movl %esi, %edi
callq 0x2b0bc0
movq 0x58(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %r9
subq 0x48(%rsp), %r9
xorl %esi, %esi
movl %esi, %edi
callq 0x2b0bc0
movq 0x118(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x150(%rsp), %rax
movslq 0xf0(%rax), %r9
xorl %edi, %edi
leaq 0x90(%rsp), %rsi
callq 0x2f8690
jmp 0x1f1267
movq $0x0, 0x90(%rsp)
movq $0x0, 0x98(%rsp)
movq $0x0, 0xa0(%rsp)
cmpq $0x0, 0x108(%rsp)
je 0x1f14dc
movq 0xc8(%rsp), %rax
movq (%rax), %rax
movq 0xc8(%rsp), %rcx
addq 0x18(%rcx), %rax
cmpq 0xf8(%rsp), %rax
jae 0x1f14dc
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0xc8(%rsp), %rcx
addq 0x18(%rcx), %rax
cmpq 0xe8(%rsp), %rax
jae 0x1f14dc
movq 0x108(%rsp), %rax
movq 0xf8(%rsp), %rcx
movq 0xc8(%rsp), %rdx
movq (%rdx), %rdx
movq 0xc8(%rsp), %rsi
addq 0x18(%rsi), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
ja 0x1f139a
movq 0x108(%rsp), %rax
movq 0xe8(%rsp), %rcx
movq 0xc8(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq 0xc8(%rsp), %rsi
addq 0x18(%rsi), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
ja 0x1f139a
movq 0x60(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x108(%rsp), %r8
movq 0xc8(%rsp), %rax
movq (%rax), %r9
movq 0xc8(%rsp), %rax
addq 0x18(%rax), %r9
movl $0x1, %edi
xorl %esi, %esi
callq 0x2b0bc0
movq 0x58(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x108(%rsp), %r8
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %r9
movq 0xc8(%rsp), %rax
addq 0x18(%rax), %r9
movl $0x1, %edi
xorl %esi, %esi
callq 0x2b0bc0
jmp 0x1f14aa
movq 0xf8(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rcx), %rcx
movq 0xc8(%rsp), %rdx
addq 0x18(%rdx), %rcx
subq %rcx, %rax
movq 0xe8(%rsp), %rcx
movq 0xc8(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq 0xc8(%rsp), %rsi
addq 0x18(%rsi), %rdx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x1f140d
movq 0xf8(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rcx), %rcx
movq 0xc8(%rsp), %rdx
addq 0x18(%rdx), %rcx
subq %rcx, %rax
movq %rax, 0x20(%rsp)
jmp 0x1f1435
movq 0xe8(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0xc8(%rsp), %rdx
addq 0x18(%rdx), %rcx
subq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x40(%rsp), %r8
movq 0xc8(%rsp), %rax
movq (%rax), %r9
movq 0xc8(%rsp), %rax
addq 0x18(%rax), %r9
movl $0x1, %edi
xorl %esi, %esi
callq 0x2b0bc0
movq 0x58(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0x40(%rsp), %r8
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %r9
movq 0xc8(%rsp), %rax
addq 0x18(%rax), %r9
movl $0x1, %edi
xorl %esi, %esi
callq 0x2b0bc0
movq 0x118(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x150(%rsp), %rax
movslq 0xf0(%rax), %r9
movl $0x1, %edi
leaq 0x68(%rsp), %rsi
callq 0x2f8690
jmp 0x1f14f7
movq $0x0, 0x68(%rsp)
movq $0x0, 0x70(%rsp)
movq $0x0, 0x78(%rsp)
movq 0xc8(%rsp), %rax
movq (%rax), %rax
movq 0xc8(%rsp), %rcx
addq 0x18(%rcx), %rax
subq $0x1, %rax
addq 0x68(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rcx), %rcx
subq 0x98(%rsp), %rcx
addq $0x1, %rcx
subq %rcx, %rax
movq 0x150(%rsp), %rcx
cmpq 0xc0(%rcx), %rax
jb 0x1f158d
movq 0xc8(%rsp), %rax
movq (%rax), %rax
movq 0xc8(%rsp), %rcx
addq 0x18(%rcx), %rax
subq $0x1, %rax
addq 0x68(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rcx), %rcx
subq 0x98(%rsp), %rcx
addq $0x1, %rcx
subq %rcx, %rax
movq 0x150(%rsp), %rcx
cmpq 0xc8(%rcx), %rax
jbe 0x1f1592
jmp 0x1f1a4f
jmp 0x1f1594
jmp 0x1f1596
movq 0x150(%rsp), %rax
movq 0x88(%rax), %rax
addq $0x0, %rax
movq 0x150(%rsp), %rcx
cmpq 0x80(%rcx), %rax
jb 0x1f1661
movq $0x100, 0x38(%rsp)      # imm = 0x100
xorl %eax, %eax
cmpq 0x38(%rsp), %rax
jbe 0x1f1608
movq 0x44a9c9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x324a32(%rip), %rsi    # 0x516013
leaq 0x327bbf(%rip), %rdx    # 0x5191a7
leaq 0x377d9e(%rip), %rcx    # 0x56938d
leaq 0x377c39(%rip), %r8     # 0x56922f
movl $0x244, %r9d            # imm = 0x244
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f160a
movq 0x38(%rsp), %rcx
movq 0x150(%rsp), %rax
addq 0x80(%rax), %rcx
movq %rcx, 0x80(%rax)
movq 0x150(%rsp), %rax
movq 0x78(%rax), %rdi
movq 0x150(%rsp), %rax
imulq $0x50, 0x80(%rax), %rsi
leaq 0x377be7(%rip), %rdx    # 0x56922f
movl $0x244, %ecx            # imm = 0x244
callq 0xe8540
movq %rax, %rcx
movq 0x150(%rsp), %rax
movq %rcx, 0x78(%rax)
jmp 0x1f1663
movq 0x150(%rsp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x1f16aa
movq 0x44a927(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x324990(%rip), %rsi    # 0x516013
leaq 0x377d4c(%rip), %rdx    # 0x5693d6
leaq 0x377cfc(%rip), %rcx    # 0x56938d
leaq 0x377b97(%rip), %r8     # 0x56922f
movl $0x244, %r9d            # imm = 0x244
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f16ac
jmp 0x1f16ae
movq 0x150(%rsp), %rax
movq 0x78(%rax), %rax
movq 0x150(%rsp), %rdx
movq 0x88(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x88(%rdx)
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xc0(%rsp)
movq 0xc8(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0xc0(%rsp), %rax
movq %rcx, (%rax)
movq 0xc0(%rsp), %rax
movq $0x0, 0x38(%rax)
movq 0xc8(%rsp), %rax
movq (%rax), %rcx
subq 0x90(%rsp), %rcx
movq 0xc0(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xc8(%rsp), %rax
movq (%rax), %rcx
movq 0xc8(%rsp), %rax
addq 0x18(%rax), %rcx
subq $0x1, %rcx
addq 0x68(%rsp), %rcx
movq 0xc0(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rcx
subq 0x98(%rsp), %rcx
movq 0xc0(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0xc8(%rsp), %rax
addq 0x18(%rax), %rcx
subq $0x1, %rcx
addq 0x70(%rsp), %rcx
movq 0xc0(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x110(%rsp), %rcx
subq $0x1, %rcx
movq 0xc0(%rsp), %rax
subq 0x20(%rax), %rcx
movq 0xc0(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x110(%rsp), %rcx
subq $0x1, %rcx
movq 0xc0(%rsp), %rax
subq 0x18(%rax), %rcx
movq 0xc0(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0xc0(%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x28(%rax)
movq 0xc0(%rsp), %rax
movb $0x0, 0x30(%rax)
movq 0x150(%rsp), %rax
movq 0x98(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x98(%rax)
movq 0x150(%rsp), %rdi
movq 0xc0(%rsp), %rsi
movq 0x148(%rsp), %rdx
movq 0x140(%rsp), %rcx
callq 0x1f1bb0
movq 0xc0(%rsp), %rax
testb $0x1, 0x30(%rax)
jne 0x1f1896
movq 0xc0(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xc0(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jbe 0x1f188a
movq 0xc0(%rsp), %rax
movq 0x20(%rax), %rax
movq 0xc0(%rsp), %rcx
cmpq 0x18(%rcx), %rax
ja 0x1f1896
movq 0xc0(%rsp), %rax
movb $0x1, 0x30(%rax)
movq 0xc0(%rsp), %rax
testb $0x1, 0x30(%rax)
jne 0x1f1a4d
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
subq %rcx, %rax
movq %rax, 0xd8(%rsp)
movq 0xc0(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rax
subq %rcx, %rax
movq %rax, 0xd0(%rsp)
movq 0x60(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0xd8(%rsp), %r8
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %r9
movl $0x1, %edi
movl %edi, 0x10(%rsp)
xorl %esi, %esi
movl %esi, 0x14(%rsp)
callq 0x2b0bc0
movl 0x10(%rsp), %edi
movl 0x14(%rsp), %esi
movq 0x58(%rsp), %rdx
movq 0x148(%rsp), %rcx
movq 0xd0(%rsp), %r8
movq 0xc0(%rsp), %rax
movq 0x18(%rax), %r9
callq 0x2b0bc0
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x2538e0
movq %rax, 0xe0(%rsp)
movaps 0x326fcc(%rip), %xmm1   # 0x518930
movq 0xe0(%rsp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x326fc7(%rip), %xmm1   # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0xd8(%rsp), %rax
cmpq 0xd0(%rsp), %rax
jbe 0x1f19af
movq 0xd8(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x1f19bc
movq 0xd0(%rsp), %rax
movq %rax, 0x8(%rsp)
movsd 0x18(%rsp), %xmm0
movq 0x8(%rsp), %rax
movq %rax, %xmm1
movaps 0x326f5d(%rip), %xmm2   # 0x518930
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x326f61(%rip), %xmm2   # 0x518940
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd 0x325846(%rip), %xmm1   # 0x517240
subsd %xmm0, %xmm1
movsd 0x328e32(%rip), %xmm0   # 0x51a838
mulsd %xmm1, %xmm0
movq 0xc0(%rsp), %rax
movsd %xmm0, 0x28(%rax)
movq 0xc0(%rsp), %rax
movsd 0x28(%rax), %xmm0
movq 0x150(%rsp), %rax
movsd 0xf8(%rax), %xmm1
callq 0xec2f0
testb $0x1, %al
jne 0x1f1a3f
jmp 0x1f1a4b
movq 0xc0(%rsp), %rax
movb $0x1, 0x30(%rax)
jmp 0x1f1a4d
jmp 0x1f1a4f
movq 0x138(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x138(%rsp)
jmp 0x1f0f05
cmpl $0x0, 0xbc(%rsp)
jne 0x1f1aad
movq 0x150(%rsp), %rax
cmpq $0x0, 0x78(%rax)
je 0x1f1aad
movq 0x150(%rsp), %rax
movq 0x78(%rax), %rdi
movq 0x150(%rsp), %rax
movq 0x88(%rax), %rsi
movl $0x50, %edx
leaq 0x728(%rip), %rcx       # 0x1f21d0
callq 0x19e70
jmp 0x1f1aaf
movq $0x0, 0x120(%rsp)
movq $0x0, 0x130(%rsp)
movq $0x0, 0x128(%rsp)
movq 0x150(%rsp), %rax
testb $0x1, 0x101(%rax)
jne 0x1f1b06
movq 0x150(%rsp), %rax
testb $0x1, 0x100(%rax)
jne 0x1f1b06
movq 0x150(%rsp), %rax
testb $0x1, 0x102(%rax)
je 0x1f1b3e
movq 0x150(%rsp), %rdi
addq $0x78, %rdi
movq 0x150(%rsp), %rax
movb 0x100(%rax), %cl
movq 0x150(%rsp), %rax
movb 0x102(%rax), %al
andb $0x1, %cl
andb $0x1, %al
movzbl %cl, %esi
movzbl %al, %edx
callq 0x1f22b0
movq 0x150(%rsp), %rdi
addq $0x98, %rdi
movq 0x150(%rsp), %rsi
addq $0x78, %rsi
callq 0x1f25d0
movq %rax, %rcx
movq 0x150(%rsp), %rax
movq %rcx, 0x70(%rax)
movq 0x118(%rsp), %rdi
callq 0x2f85d0
movq 0x60(%rsp), %rdi
callq 0x2b0d20
movq 0x58(%rsp), %rdi
callq 0x2b0d20
movq 0x50(%rsp), %rdi
callq 0x2538a0
movl 0xbc(%rsp), %eax
addq $0x158, %rsp            # imm = 0x158
retq
nopw (%rax,%rax)