// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_condenseq_blast.c
// Function: gt_condenseq_blast_runner
static int gt_condenseq_blast_runner(GT_UNUSED int argc,
                                     GT_UNUSED const char **argv,
                                     GT_UNUSED int parsed_args,
                                     void *tool_arguments,
                                     GtError *err)
{
  int had_err = 0;

  GtCesBlastInfo info;
  GtCondenseqBlastQInfo qinfo = {GT_UNDEF_UWORD,
                                 GT_UNDEF_UWORD,
                                 GT_UNDEF_UWORD,
                                 GT_UNDEF_DOUBLE};

  GtFile          *gffout = NULL;
  GtMatchIterator *mp = NULL;
  GtStr           *coarse_fname = gt_str_new_cstr("coarse_");
  char            *db_basename;

  GtUword coarse_db_len = 0;
  double  eval;

  info.args = tool_arguments;
  info.ces = NULL;
  info.curr_hits = 0;
  info.err = err;
  info.fastaname = NULL;
  info.hits = NULL;
  info.hits_size = GT_CONDENSEQ_HITS_INIT_SIZE;
  info.logger = NULL;
  info.gff_node_visitor = NULL;
  info.querypath = gt_str_get(info.args->querypath);
  info.seqid = NULL;
  info.source = NULL;
  info.timer = NULL;

  gt_error_check(err);
  gt_assert(info.args != NULL);

  info.logger =
    gt_logger_new(gt_condenseq_search_arguments_verbose(info.args->csa),
                  GT_LOGGER_DEFLT_PREFIX, stderr);

  if (gt_showtime_enabled()) {
    info.timer = gt_timer_new_with_progress_description("initialization");
    gt_timer_start(info.timer);
  }

  if (gt_str_length(info.args->gff) != 0) {
    gffout = gt_file_new(gt_str_get(info.args->gff), "w", err);
    if (gffout == NULL)
      had_err = -1;
    if (!had_err) {
      info.gff_node_visitor = gt_gff3_visitor_new(gffout);
      gt_gff3_visitor_retain_id_attributes((GtGFF3Visitor*)
                                           info.gff_node_visitor);
    }
  }
  if (!had_err) {
    info.ces = gt_condenseq_search_arguments_read_condenseq(info.args->csa,
                                                            info.logger,
                                                            info.err);
    if (info.ces == NULL)
      had_err = -1;
  }

  if (!had_err) {
    db_basename = gt_condenseq_basefilename(info.ces);
    gt_str_append_cstr(coarse_fname, db_basename);
    gt_str_append_cstr(coarse_fname, ".fas");
    gt_free(db_basename);
    db_basename = NULL;
    info.fastaname = gt_condenseq_unique_fasta_file(info.ces);

    info.hits = gt_malloc(sizeof (*info.hits) * (size_t) info.hits_size);
  }

  if (!had_err) {
    had_err = gt_condenseq_blast_calc_query_stats(&info, &qinfo);
  }

  /*create BLAST database from compressed database fasta file*/
  if (!had_err) {
    GtUword namelength = gt_str_length(info.fastaname);
    if (info.timer != NULL)
      gt_timer_show_progress(info.timer, "create coarse BLAST db", stderr);
    if (info.args->blastn) {
      gt_ces_blast_create_db(nucl,"n");
    }
    else {
      gt_ces_blast_create_db(prot,"p");
    }
    gt_str_set_length(info.fastaname, namelength);
  }

  /* run coarse blast */
  if (!had_err) {
    had_err = gt_condenseq_blast_run_coarse(&info, qinfo);
  }

  if (!had_err && info.curr_hits == 0) {
    gt_error_set(err, "No hits found in coarse search");
    had_err = -1;
  }

  /*extract sequences*/
  if (!had_err) {
    GtCondenseqBlastPrintHitInfo pinfo;
    GtUword idx;
    GtFile *outfp = gt_file_new(gt_str_get(coarse_fname), "w", err);
    GtStr *orig_seqid = gt_str_new(),
          *coarse_seqid = gt_str_new();
    if (info.timer != NULL)
      gt_timer_show_progress(info.timer, "identify ranges", stderr);

    pinfo.ces = info.ces;
    pinfo.to_extract_rbt = gt_rbtree_new(gt_ces_blast_range_compare,
                                         gt_ces_blast_range_free,
                                         NULL);
    GT_INITARRAY(&pinfo.sorted, HitRange);
    pinfo.size = 0;

    gt_assert(info.hits != NULL);
    for (idx = 0; !had_err && idx < info.curr_hits; ++idx) {
      GtUword num_ranges =
        gt_condenseq_each_redundant_range(info.ces,
                                          info.hits[idx].uid,
                                          info.hits[idx].range,
                                          info.hits[idx].left_ex,
                                          info.hits[idx].right_ex,
                                          gt_condenseq_blast_process_hit,
                                          &pinfo, err);
      if (num_ranges == 0)
        had_err = -1;
    }
    if (!had_err) {
      GtRBTreeIter *iter = gt_rbtree_iter_new_from_first(pinfo.to_extract_rbt);
      GtArrayHitRange *gt_arr = &pinfo.sorted;
      HitRange *key;
      HitRange  *arr = NULL;
      GT_UNUSED GtUword joincount = 0;

      gt_log_log(GT_WU " elements in rbt",
                 (GtUword) gt_rbtree_size(pinfo.to_extract_rbt));
      key = gt_rbtree_iter_data(iter);
      while (key != NULL) {
        GtUword last = gt_arr->nextfreeHitRange - 1;
        arr = pinfo.sorted.spaceHitRange;
        if (gt_arr->nextfreeHitRange != 0 &&
            key->seqid == arr[last].seqid &&
            gt_range_overlap(&key->range, &arr[last].range)) {
          joincount++;
          arr[last].range = gt_range_join(&arr[last].range, &key->range);
        }
        else {
          GT_STOREINARRAY(gt_arr, HitRange, 128, *key);
        }
        key = gt_rbtree_iter_next(iter);
      }
      gt_log_log("joined " GT_WU, joincount);
      gt_rbtree_iter_delete(iter);
    }

    if (info.timer != NULL)
      gt_timer_show_progress(info.timer, "extract ranges", stderr);
    if (info.seqid == NULL)
      info.seqid = gt_str_new();
    if (info.source == NULL)
      info.source = gt_str_new_cstr("Extracted");

    for (idx = 0; !had_err && idx < pinfo.sorted.nextfreeHitRange; idx++) {
      GtRange current = pinfo.sorted.spaceHitRange[idx].range;
      GtUword len = gt_range_length(&current),
              seqid = pinfo.sorted.spaceHitRange[idx].seqid;
      gt_str_reset(coarse_seqid);
      gt_str_append_uword(coarse_seqid, seqid);
      gt_str_append_cstr(coarse_seqid, "|");
      gt_str_append_uword(coarse_seqid, current.start);
      gt_str_append_cstr(coarse_seqid, "|");
      gt_str_append_uword(coarse_seqid, current.end);
      gt_fasta_show_entry_nt(gt_str_get(coarse_seqid),
                             gt_str_length(coarse_seqid),
                             gt_condenseq_extract_decoded_range(info.ces,
                                                                current,
                                                                '\0'),
                             len, (GtUword) 100, outfp);
      coarse_db_len += len;
      if (info.gff_node_visitor != NULL) {
        GtGenomeNode *node;
        GtUword seqnum, desclen, seqstart;
        const char *desc;
        seqnum = gt_condenseq_pos2seqnum(info.ces,
                                         current.start);
        seqstart = gt_condenseq_seqstartpos(info.ces,
                                            seqnum);
        desc = gt_condenseq_description(info.ces,
                                        &desclen, seqnum);
        gt_str_reset(orig_seqid);
        gt_str_append_cstr_nt(orig_seqid, desc, desclen);
        node = gt_feature_node_new(orig_seqid, "experimental_feature",
                                   current.start + 1 - seqstart,
                                   current.end + 1 - seqstart,
                                   GT_STRAND_BOTH);
        gt_feature_node_set_source((GtFeatureNode *) node, info.source);
        gt_feature_node_set_attribute((GtFeatureNode *) node,
                                      "Name", "Fine Extract");
        had_err = gt_genome_node_accept(node, info.gff_node_visitor, info.err);
        gt_genome_node_delete(node);
      }
    }
    gt_str_delete(info.source);
    info.source = NULL;
    gt_file_delete(outfp);
    gt_rbtree_delete(pinfo.to_extract_rbt);
    GT_FREEARRAY(&pinfo.sorted, HitRange);
    gt_str_delete(coarse_seqid);
    gt_str_delete(orig_seqid);
  }

  /* create BLAST database from decompressed database file */
  if (!had_err) {
    if (info.timer != NULL)
      gt_timer_show_progress(info.timer, "create fine BLAST db", stderr);
    if (info.args->blastn)
      had_err =
        gt_condenseq_blast_create_blastdb_nucl(gt_str_get(coarse_fname));
    else
      had_err =
        gt_condenseq_blast_create_blastdb_prot(gt_str_get(coarse_fname));
  }
  /* perform fine BLAST search */
  if (!had_err) {
    GtBlastProcessCall *call;

    if (info.timer != NULL)
      gt_timer_show_progress(info.timer, "fine BLAST run", stderr);

    if (info.args->feval == GT_UNDEF_DOUBLE) {
      eval = qinfo.raw_eval * coarse_db_len;
    } else {
      eval = info.args->feval;
    }

    gt_assert(!gt_double_equals_double(eval, 0.0));
    if (info.args->blastp)
      call = gt_blast_process_call_new_prot();
    else
      call = gt_blast_process_call_new_nucl();

    gt_blast_process_call_set_db(call, gt_str_get(coarse_fname));
    gt_blast_process_call_set_query(call, info.querypath);
    gt_blast_process_call_set_evalue(call, eval);
    gt_blast_process_call_set_num_threads(call, info.args->blthreads);
    if (gt_str_length(info.args->extraopts) != 0) {
      GtStr *opt = gt_str_new_cstr("-");
      gt_str_append_str(opt, info.args->extraopts);
      gt_blast_process_call_set_opt(call, gt_str_get(opt));
    }

    gt_logger_log(info.logger, "Fine E-value set to: %.4e (len)" GT_WU, eval,
                  coarse_db_len);

    gt_log_log("Blast call: %s", gt_blast_process_call_get_call(call));
    mp = gt_match_iterator_blast_process_new(call, err);
    if (!mp)
      had_err = -1;

    gt_blast_process_call_delete(call);

    if (!had_err) {
      GtMatchIteratorStatus status;
      GtUword numofhits = 0;
      GtMatch *match;
      if (info.seqid == NULL)
        info.seqid = gt_str_new();
      if (info.source == NULL)
        info.source = gt_str_new_cstr("FineBlast");
      while (!had_err &&
             (status = gt_match_iterator_next(mp, &match, err)) ==
             GT_MATCHER_STATUS_OK) {
        GtMatchBlast *matchb = (GtMatchBlast*) match;
        GtRange range_seq1,
                range_seq2,
                orig_range_seq2;
        GtUword dbid, db_name_len, db_orig_startpos;
        const char *db_name;

        numofhits++;
        gt_match_get_range_seq1(match, &range_seq1);
        gt_match_get_range_seq2(match, &range_seq2);
        if (sscanf(gt_match_get_seqid2(match), GT_WU "|" GT_WU "|" GT_WU,
                   &dbid, &orig_range_seq2.start, &orig_range_seq2.end) != 3) {
          had_err = -1;
          gt_error_set(err, "couldn't parse %s", gt_match_get_seqid2(match));
        }
        db_name = gt_condenseq_description(info.ces, &db_name_len, dbid);
        db_orig_startpos = gt_condenseq_seqstartpos(info.ces, dbid);
        range_seq2.start += orig_range_seq2.start - db_orig_startpos;
        range_seq2.end += orig_range_seq2.start - db_orig_startpos;
        /* output like
           blast -outfmt 6 'qseqid sseqid pident length qstart qend sstart send
           evalue bitscore'
           */
        gt_file_xprintf(info.args->outfp,
                        "%s\t%.*s\t%.2f\t" GT_WU "\t" GT_WU "\t" GT_WU "\t"
                        GT_WU "\t" GT_WU "\t%g\t%.3f\n",
                        gt_match_get_seqid1(match),
                        (int) db_name_len, db_name,
                        gt_match_blast_get_similarity(matchb),
                        gt_match_blast_get_align_length(matchb),
                        range_seq1.start,
                        range_seq1.end,
                        range_seq2.start,
                        range_seq2.end,
                        gt_match_blast_get_evalue(matchb),
                        (double) gt_match_blast_get_bitscore(matchb));
        if (info.gff_node_visitor != NULL) {
          GtGenomeNode *node;
          GtStrand strand = gt_match_get_direction(match) == GT_MATCH_DIRECT ?
            GT_STRAND_FORWARD : GT_STRAND_REVERSE;
          gt_str_reset(info.seqid);
          gt_str_append_cstr_nt(info.seqid, db_name, db_name_len);
          node = gt_feature_node_new(info.seqid, "match", range_seq2.start,
                                     range_seq2.end, strand);
          gt_feature_node_set_source((GtFeatureNode *) node, info.source);
          gt_feature_node_set_attribute((GtFeatureNode *) node,
                                        "Name", "Fine Hit");
          had_err = gt_genome_node_accept(node,
                                          info.gff_node_visitor,
                                          info.err);
          gt_genome_node_delete(node);
        }
        gt_match_delete(match);
      }
      gt_str_delete(info.source);
      info.source = NULL;
      if (!had_err && status == GT_MATCHER_STATUS_ERROR) {
        had_err = -1;
      }
      gt_log_log(GT_WU " hits found\n", numofhits);
    }
    gt_match_iterator_delete(mp);
  }

  gt_condenseq_delete(info.ces);

  if (!had_err)
    if (info.timer != NULL)
      gt_timer_show_progress_final(info.timer, stderr);
  gt_timer_delete(info.timer);

  /*cleanup*/
  gt_file_delete(gffout);
  gt_free(info.hits);
  gt_node_visitor_delete(info.gff_node_visitor);
  gt_str_delete(info.fastaname);
  gt_str_delete(info.seqid);

  gt_str_delete(coarse_fname);
  gt_logger_delete(info.logger);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %r8, %r14
movq %rcx, %r15
movups 0x2b2447(%rip), %xmm0   # 0x351560
movaps %xmm0, 0x130(%rsp)
movupd 0x2b2427(%rip), %xmm0   # 0x351550
movapd %xmm0, 0x120(%rsp)
leaq 0x2b1f39(%rip), %rdi    # 0x351072
callq 0x120955
movq %rax, 0xc8(%rsp)
movq 0x18(%r15), %rdi
callq 0x120d23
movq %rax, 0xb0(%rsp)
testq %r14, %r14
je 0x9f16c
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0xa069d
testq %r15, %r15
je 0xa068e
movq 0x10(%r15), %rdi
callq 0x136fd5
movq 0x424dfb(%rip), %rcx    # 0x4c3f80
movq (%rcx), %rdx
movzbl %al, %edi
leaq 0x2b0742(%rip), %rsi    # 0x34f8d4
callq 0x108ed0
movq %rax, 0xc0(%rsp)
callq 0x11ed94
testb %al, %al
je 0x9f1c1
leaq 0x2c1f9f(%rip), %rdi    # 0x36114e
callq 0x1226d6
movq %rax, %rbp
movq %rax, %rdi
callq 0x122733
jmp 0x9f1c3
xorl %ebp, %ebp
movq 0x20(%r15), %rdi
callq 0x120d4c
movb $0x1, %bl
testq %rax, %rax
movq %r15, 0x80(%rsp)
je 0x9f21a
movq 0x20(%r15), %rdi
callq 0x120d23
leaq 0x2fd846(%rip), %rsi    # 0x39ca31
movq %rax, %rdi
movq %r14, %rdx
callq 0x103957
testq %rax, %rax
movq %rax, 0x148(%rsp)
je 0x9f231
movq %rax, %rdi
callq 0x1530bc
movq %rax, 0x68(%rsp)
movq %rax, %rdi
callq 0x1531cf
jmp 0x9f23c
movq $0x0, 0x68(%rsp)
movq $0x0, 0x148(%rsp)
jmp 0x9f23c
movq $0x0, 0x68(%rsp)
xorl %ebx, %ebx
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testb %bl, %bl
movq %r14, 0x20(%rsp)
je 0x9f410
movq 0x80(%rsp), %r13
movq 0x10(%r13), %rdi
movq 0xc0(%rsp), %rsi
movq %r14, %rdx
callq 0x136fae
testq %rax, %rax
movq %rax, 0x90(%rsp)
je 0x9f42a
movq %rax, %r12
movq %rax, %rdi
callq 0x132fa0
movq %rax, %rbx
movq 0xc8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x12097f
leaq 0x32a39e(%rip), %rsi    # 0x3c9642
movq %r14, %rdi
callq 0x12097f
leaq 0x2b1a75(%rip), %r14    # 0x350d28
movq %rbx, %rdi
movq %r14, %rsi
movl $0x270, %edx            # imm = 0x270
callq 0x109670
movq %r12, %rdi
callq 0x132fe1
movq %rax, 0x98(%rsp)
movl $0xfa0, %edi            # imm = 0xFA0
movq %r14, %rsi
movl $0x274, %edx            # imm = 0x274
callq 0x1092b2
movq %rax, 0x28(%rsp)
xorpd %xmm0, %xmm0
leaq 0x120(%rsp), %r14
movapd %xmm0, (%r14)
movapd %xmm0, 0x10(%r14)
movq 0x18(%r13), %rdi
callq 0x103703
movq %rax, %rbx
leaq 0x15fb(%rip), %rcx      # 0xa090f
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %r8
movq 0x20(%rsp), %r14
movq %r14, %r9
callq 0x1032b8
movl %eax, %r15d
testl %eax, %eax
jne 0x9f3fe
movq 0x120(%rsp), %rax
movq 0x130(%rsp), %rsi
xorl %edx, %edx
divq %rsi
movq 0x80(%rsp), %rcx
movsd 0x30(%rcx), %xmm0
movaps %xmm0, 0x30(%rsp)
movq %rax, 0x120(%rsp)
leaq 0x2b1f36(%rip), %rdi    # 0x3512a2
movq %rax, %rdx
xorl %eax, %eax
callq 0x108e02
movapd 0x30(%rsp), %xmm1
unpcklps 0x2b155d(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2b1565(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x17700
movsd 0x2afe84(%rip), %xmm1   # 0x34f228
divsd %xmm0, %xmm1
movsd 0x120(%rsp), %xmm2
unpcklps 0x2b1528(%rip), %xmm2   # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
subpd 0x2b1530(%rip), %xmm2   # 0x3508f0
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
addsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x138(%rsp)
leaq 0x2b1ee3(%rip), %rsi    # 0x3512c3
movq 0xc0(%rsp), %rdi
movb $0x1, %al
callq 0x10906e
cmpq $0x0, 0x120(%rsp)
je 0xa06b1
movq %rbx, %rdi
callq 0x10327d
movq 0x98(%rsp), %r13
jmp 0x9f436
xorl %r13d, %r13d
movq $0x0, 0x28(%rsp)
movq $0x0, 0x90(%rsp)
jmp 0x9f436
xorl %r13d, %r13d
movq $0x0, 0x28(%rsp)
testl %r15d, %r15d
jne 0x9f5e4
movq %r13, %rdi
callq 0x120d4c
movq %rax, %r14
testq %rbp, %rbp
je 0x9f468
movq 0x424b2a(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2b1c46(%rip), %rsi    # 0x3510a6
movq %rbp, %rdi
callq 0x1229c8
movq 0x80(%rsp), %rbx
cmpb $0x1, 0x4d(%rbx)
jne 0x9f4f4
leaq 0x2b1c40(%rip), %rsi    # 0x3510bd
movq %r13, %rdi
callq 0x12097f
cmpb $0x0, 0x4e(%rbx)
jne 0x9f4a3
movq %r13, %rdi
callq 0x120d23
movq %rax, %rdi
callq 0x10415c
testb %al, %al
jne 0x9f551
movq %r13, %rdi
movq %r14, %rsi
callq 0x120d59
leaq 0x2b1c0d(%rip), %rsi    # 0x3510c2
movq %r13, %rdi
callq 0x12097f
cmpb $0x0, 0x4e(%rbx)
jne 0x9f4d7
movq %r13, %rdi
callq 0x120d23
movq %rax, %rdi
callq 0x10415c
testb %al, %al
jne 0x9f551
cmpb $0x1, 0x4e(%rbx)
jne 0x9f56c
leaq 0x2b1bdf(%rip), %rdi    # 0x3510c7
xorl %eax, %eax
callq 0x108e02
jmp 0x9f585
leaq 0x2b1bfd(%rip), %rsi    # 0x3510f8
movq %r13, %rdi
callq 0x12097f
cmpb $0x0, 0x4e(%rbx)
jne 0x9f51d
movq %r13, %rdi
callq 0x120d23
movq %rax, %rdi
callq 0x10415c
testb %al, %al
jne 0x9f551
movq %r13, %rdi
movq %r14, %rsi
callq 0x120d59
leaq 0x2b1bce(%rip), %rsi    # 0x3510fd
movq %r13, %rdi
callq 0x12097f
cmpb $0x0, 0x4e(%rbx)
jne 0x9f556
movq %r13, %rdi
callq 0x120d23
movq %rax, %rdi
callq 0x10415c
testb %al, %al
je 0x9f556
xorl %r15d, %r15d
jmp 0x9f5d4
cmpb $0x1, 0x4e(%rbx)
jne 0x9f58e
leaq 0x2b1b64(%rip), %rdi    # 0x3510c7
xorl %eax, %eax
callq 0x108e02
jmp 0x9f5a7
movq %r13, %rdi
callq 0x120d23
leaq 0x2b1b61(%rip), %rdi    # 0x3510dc
movq %rax, %rsi
xorl %eax, %eax
callq 0x108e02
leaq 0x2e1adb(%rip), %rbx    # 0x381067
jmp 0x9f5ae
movq %r13, %rdi
callq 0x120d23
leaq 0x2b1b3f(%rip), %rdi    # 0x3510dc
movq %rax, %rsi
xorl %eax, %eax
callq 0x108e02
leaq 0x2b7bdd(%rip), %rbx    # 0x35718b
movq %r13, %rdi
movq %r14, %rsi
callq 0x120d59
movq %r13, %rdi
callq 0x120d23
movq %rax, %rdi
movq %rbx, %rsi
movq 0x20(%rsp), %rdx
callq 0xa06b6
movl %eax, %r15d
movq %r13, %rdi
movq %r14, %rsi
callq 0x120d59
movq 0x20(%rsp), %r14
movq $0x0, 0x70(%rsp)
testl %r15d, %r15d
movq %rbp, 0xb8(%rsp)
movq %r13, 0x98(%rsp)
je 0x9f610
movq $0x0, 0x30(%rsp)
jmp 0x9faf6
movq 0x120(%rsp), %r15
movq 0x128(%rsp), %rax
movq %rax, 0x48(%rsp)
testq %rbp, %rbp
je 0x9f643
movq 0x42494f(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2b1dc5(%rip), %rsi    # 0x351400
movq %rbp, %rdi
callq 0x1229c8
movq 0x80(%rsp), %r14
cmpb $0x1, 0x4c(%r14)
jne 0x9f659
callq 0x12da4a
jmp 0x9f65e
callq 0x12da06
movq %rax, %rbx
movq %r13, %rdi
callq 0x120d23
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12dab6
movq %rbx, %rdi
movq 0xb0(%rsp), %rsi
callq 0x12da6c
movsd 0x38(%r14), %xmm0
movq %rbx, %rdi
callq 0x12db00
movl 0x48(%r14), %esi
movq %rbx, %rdi
callq 0x12dcd1
movsd 0x38(%r14), %xmm0
leaq 0x2b1d66(%rip), %rsi    # 0x351411
movq 0xc0(%rsp), %rdi
movb $0x1, %al
callq 0x10906e
movq %rbx, %rdi
callq 0x12dfba
leaq 0x2b1b5f(%rip), %rdi    # 0x351228
xorl %ebp, %ebp
movq %rax, %rsi
xorl %eax, %eax
callq 0x108e02
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x165cfc
movq %rax, %r14
cmpq $0x1, %rax
sbbl %ebp, %ebp
movq %rbx, %rdi
callq 0x12dfc2
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x9f716
movq 0x424879(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2b1d1c(%rip), %rsi    # 0x35142d
callq 0x1229c8
cmpq $0x0, 0x28(%rsp)
je 0xa06a2
callq 0x1208f8
movq %rax, 0x70(%rsp)
leaq 0x2b1d43(%rip), %rdi    # 0x351476
callq 0x120955
movq %rax, 0xa8(%rsp)
testq %r14, %r14
setne %bl
je 0x9f771
leaq 0x100(%rsp), %rsi
movq %r14, %rdi
movq 0x20(%rsp), %rdx
callq 0x165b56
testl %eax, %eax
je 0x9f784
movq $0x0, 0x30(%rsp)
xorl %esi, %esi
jmp 0x9faac
movq $0x0, 0x30(%rsp)
xorl %esi, %esi
xorl %r15d, %r15d
jmp 0x9fab3
shrq %r15
movq %r15, 0x110(%rsp)
addq %r15, 0x48(%rsp)
movl $0x64, %eax
movq %rax, 0x88(%rsp)
movl $0x1, %ecx
movq $0x0, 0x30(%rsp)
leaq 0x50(%rsp), %r12
movq %rcx, %r13
movq 0x100(%rsp), %rbx
movq %rbx, %rdi
callq 0x16575f
movq %rax, %rbp
movq %rax, %rdi
movl $0x65, %esi
callq 0x17280
leaq 0x1(%rax), %r15
testq %rax, %rax
cmoveq %rbp, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x11043f
movq %r12, %rdx
movb $0x1, %r12b
xorl %ebp, %ebp
testl %eax, %eax
je 0x9f82d
movq %r15, %rdi
leaq 0x310905(%rip), %rsi    # 0x3b0108
xorl %eax, %eax
callq 0x177f0
cmpl $0x1, %eax
je 0x9f82d
xorl %r12d, %r12d
movq 0x20(%rsp), %rdi
leaq 0x2b1c83(%rip), %rsi    # 0x3514a1
movq %r15, %rdx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testb %r12b, %r12b
je 0x9f8c6
movq 0x88(%rsp), %rax
cmpq %rax, 0x30(%rsp)
movq 0x68(%rsp), %r12
jne 0x9f8d0
movq %rax, %xmm0
punpckldq 0x2b1085(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2b108d(%rip), %xmm0   # 0x3508f0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x2b14a1(%rip), %xmm1   # 0x350d18
cvttsd2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x2b1495(%rip), %xmm1   # 0x350d20
cvttsd2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
leaq 0x50(,%rdx,8), %rax
addq $0xa, %rdx
movq %rdx, 0x88(%rsp)
leaq (%rax,%rax,4), %rsi
movq 0x28(%rsp), %rdi
leaq 0x2b146e(%rip), %rdx    # 0x350d28
movl $0x1ad, %ecx            # imm = 0x1AD
callq 0x1094e6
jmp 0x9f8d5
movq 0x68(%rsp), %r12
jmp 0x9f95b
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rcx,4), %rdx
movq %rax, 0x28(%rsp)
leaq (%rax,%rdx,8), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16578b
movq %rbx, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x165773
movq 0xd0(%rsp), %rax
addq 0x110(%rsp), %rax
movq %rax, 0x18(%r15)
movq 0x48(%rsp), %rax
subq 0xd8(%rsp), %rax
movq %rax, 0x20(%r15)
movq 0x50(%rsp), %rax
movq %rax, 0x10(%r15)
movq (%r15), %rax
testq %rax, %rax
je 0xa0693
movq 0x8(%r15), %rcx
testq %rcx, %rcx
je 0xa0698
decq %rax
movq %rax, (%r15)
decq %rcx
movq %rcx, 0x8(%r15)
incq 0x30(%rsp)
testq %r12, %r12
je 0x9fa60
movq 0x30(%rsp), %rax
leaq (%rax,%rax,4), %rax
movq 0x28(%rsp), %rcx
movupd -0x28(%rcx,%rax,8), %xmm0
movapd %xmm0, 0xd0(%rsp)
movq -0x18(%rcx,%rax,8), %rsi
movq 0x90(%rsp), %rbp
movq %rbp, %rdi
leaq 0xd0(%rsp), %rdx
callq 0x13423b
movq %rax, %r15
movq 0x100(%rsp), %rdi
callq 0x1657e1
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
movq %r12, 0x68(%rsp)
movq %r13, %r12
movq %r14, %r13
movq 0x70(%rsp), %r14
movq %r14, %rdi
callq 0x120db4
movq %rbp, %rdi
leaq 0x50(%rsp), %rsi
movq %r15, %rdx
callq 0x131be9
movq 0x50(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x120a9d
movq 0xd0(%rsp), %rdx
movq 0xd8(%rsp), %rcx
incq %rdx
incq %rcx
movq %r14, %rdi
movq %r13, %r14
movq %r12, %r13
leaq 0x2f05c5(%rip), %rsi    # 0x38ffd8
movl %ebx, %r8d
callq 0x14952c
movq %rax, %rbx
movq %rax, %rdi
movq 0xa8(%rsp), %rsi
callq 0x1491f1
movq %rbx, %rdi
leaq 0x30bc16(%rip), %rsi    # 0x3ab64e
leaq 0x2b1a43(%rip), %rdx    # 0x351482
callq 0x149c3c
movq %rbx, %rdi
movq 0x68(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x14b992
movl %eax, %ebp
movq %rbx, %rdi
callq 0x14c43a
movq 0x100(%rsp), %rdi
callq 0x1657f0
testl %ebp, %ebp
sete %bl
jne 0x9fa9f
movq %r14, %rdi
leaq 0x100(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x165b56
leaq 0x1(%r13), %rcx
testl %eax, %eax
leaq 0x50(%rsp), %r12
je 0x9f7b4
movq %r13, %rsi
jmp 0x9faa4
movq %r13, %rsi
xorl %eax, %eax
movq 0x98(%rsp), %r13
cmpl $0x2, %eax
sete %r15b
leaq 0x2b19d3(%rip), %rdi    # 0x35148d
xorl %eax, %eax
callq 0x108e02
movq 0xa8(%rsp), %rdi
callq 0x121b03
testb %r15b, %r15b
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmovel %ebp, %r15d
testb %bl, %bl
cmovel %ebp, %r15d
movq %r14, %rdi
callq 0x165b8e
movq 0xb8(%rsp), %rbp
movq 0x20(%rsp), %r14
testl %r15d, %r15d
jne 0x9fb1a
cmpq $0x0, 0x30(%rsp)
jne 0x9fb1a
leaq 0x2b15f8(%rip), %rsi    # 0x351102
movq %r14, %rdi
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testl %r15d, %r15d
je 0x9fb2d
movq $0x0, 0x48(%rsp)
jmp 0xa00c5
movq 0xc8(%rsp), %rdi
callq 0x120d23
leaq 0x2fcef0(%rip), %rsi    # 0x39ca31
movq %rax, %rdi
movq %r14, %rdx
callq 0x103957
movq %rax, 0x110(%rsp)
callq 0x1208f8
movq %rax, 0x160(%rsp)
callq 0x1208f8
movq %rax, 0x88(%rsp)
testq %rbp, %rbp
je 0x9fb8c
movq 0x424406(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2b159d(%rip), %rsi    # 0x351121
movq %rbp, %rdi
callq 0x1229c8
movq 0x90(%rsp), %rax
movq %rax, 0xd0(%rsp)
leaq 0xc85(%rip), %rdi       # 0xa0828
leaq 0xcc1(%rip), %rsi       # 0xa086b
xorl %r15d, %r15d
xorl %edx, %edx
callq 0x16dec0
movq %rax, 0xf0(%rsp)
movq %r15, 0xf8(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0xd8(%rsp)
movq %r15, 0xe8(%rsp)
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0xa06a7
cmpq $0x0, 0x30(%rsp)
je 0x9fc6a
leaq 0x20(%rax), %rbx
xorl %r15d, %r15d
movl $0x1, %r13d
leaq 0xd0(%rsp), %r12
leaq 0xc71(%rip), %rbp       # 0xa087c
movl %r15d, %r14d
movq -0x10(%rbx), %rsi
movq -0x8(%rbx), %r8
movq (%rbx), %r9
movq -0x20(%rbx), %rdx
movq -0x18(%rbx), %rcx
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq %rbp, (%rsp)
movq 0x90(%rsp), %rdi
callq 0x1337d5
cmpq $0x1, %rax
movl $0x0, %r15d
sbbl %r15d, %r15d
orl %r14d, %r15d
sete %al
jne 0x9fc6c
addq $0x28, %rbx
leaq 0x1(%r13), %rcx
cmpq 0x30(%rsp), %r13
movq %rcx, %r13
jb 0x9fc0b
jmp 0x9fc6c
movb $0x1, %al
testb %al, %al
je 0x9fddf
movq 0xf0(%rsp), %rdi
callq 0x16ecc4
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
callq 0x16e681
leaq 0x2b14ab(%rip), %rdi    # 0x351143
xorl %r13d, %r13d
movq %rax, %rsi
xorl %eax, %eax
callq 0x108e02
movq %rbx, 0x30(%rsp)
movq %rbx, %rdi
callq 0x16efa2
testq %rax, %rax
je 0x9fdc4
movq %rax, %rbp
xorl %r13d, %r13d
movq %r13, %rbx
movq 0xe8(%rsp), %rax
testq %rax, %rax
je 0x9fd21
movq 0xd8(%rsp), %r14
movq 0x10(%rbp), %rcx
leaq (%rax,%rax,2), %r13
cmpq -0x8(%r14,%r13,8), %rcx
jne 0x9fd21
leaq (%r14,%r13,8), %r12
addq $-0x18, %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0x117826
testb %al, %al
je 0x9fd21
leaq (%r14,%r13,8), %r14
movq %rbx, %r13
incq %r13
movq %r12, %rdi
movq %rbp, %rsi
callq 0x117923
movq %rax, -0x18(%r14)
movq %rdx, -0x10(%r14)
jmp 0x9fdae
movq 0xe0(%rsp), %rax
cmpq %rax, 0xe8(%rsp)
jb 0x9fd6f
leaq 0x80(%rax), %rcx
movq %rcx, 0xe0(%rsp)
movq 0xd8(%rsp), %rdi
leaq 0x400(,%rax,8), %rax
leaq (%rax,%rax,2), %rsi
leaq 0x2b0fcb(%rip), %rdx    # 0x350d28
movl $0x2c5, %ecx            # imm = 0x2C5
callq 0x1094e6
movq %rax, 0xd8(%rsp)
movq 0xd8(%rsp), %rax
testq %rax, %rax
je 0xa0689
movq %rbx, %r13
movq 0xe8(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0xe8(%rsp)
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rbp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movupd (%rbp), %xmm0
movupd %xmm0, (%rax,%rcx,8)
movq 0x30(%rsp), %rdi
callq 0x16ee3e
movq %rax, %rbp
testq %rax, %rax
jne 0x9fcc1
leaq 0x2b13ac(%rip), %rdi    # 0x351177
movq %r13, %rsi
xorl %eax, %eax
callq 0x108e02
movq 0x30(%rsp), %rdi
callq 0x16efbe
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x9fe02
movq 0x42418d(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2b1385(%rip), %rsi    # 0x351182
callq 0x1229c8
cmpq $0x0, 0x70(%rsp)
jne 0x9fe14
callq 0x1208f8
movq %rax, 0x70(%rsp)
leaq 0x2b1376(%rip), %rdi    # 0x351191
callq 0x120955
movq %rax, 0xa0(%rsp)
movq $0x0, 0x48(%rsp)
testl %r15d, %r15d
jne 0xa0039
cmpq $0x0, 0xe8(%rsp)
je 0xa0039
movl $0x1, %eax
xorl %r13d, %r13d
movq $0x0, 0x48(%rsp)
movq 0x90(%rsp), %r12
movq %rax, 0xa8(%rsp)
movq 0xd8(%rsp), %rax
movupd (%rax,%r13), %xmm0
movapd %xmm0, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x117813
movq %rax, %rbp
movq 0xd8(%rsp), %rax
movq 0x10(%rax,%r13), %r14
movq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x120db4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x120af4
movq %rbx, %rdi
leaq 0x2e4dbc(%rip), %r14    # 0x384c79
movq %r14, %rsi
callq 0x12097f
movq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x120af4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12097f
movq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x120af4
movq %rbx, %rdi
callq 0x120d23
movq %rax, %r14
movq %rbx, %rdi
callq 0x120d4c
movq %rax, %rbx
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x1335fa
movl $0x64, %r8d
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq %rbp, 0x30(%rsp)
movq %rbp, %rcx
movq 0x110(%rsp), %r9
callq 0x102f8a
movq 0x68(%rsp), %rbp
testq %rbp, %rbp
je 0xa000c
movq 0x50(%rsp), %rsi
movq %r12, %rdi
callq 0x131b64
movq %rax, %rbx
movq %r12, %rdi
movq %rax, %rsi
callq 0x131b7a
movq %rax, %r14
movq %r12, %rdi
leaq 0x100(%rsp), %rsi
movq %rbx, %rdx
callq 0x131be9
movq %rax, %rbx
movq 0x160(%rsp), %r15
movq %r15, %rdi
callq 0x120db4
movq 0x100(%rsp), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x120a9d
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
subq %r14, %rdx
incq %rdx
subq %r14, %rcx
incq %rcx
movq %r15, %rdi
leaq 0x2b11de(%rip), %rsi    # 0x35119b
movl $0x2, %r8d
callq 0x14952c
movq %rax, %rbx
movq %rax, %rdi
movq 0xa0(%rsp), %rsi
callq 0x1491f1
movq %rbx, %rdi
leaq 0x30b669(%rip), %rsi    # 0x3ab64e
leaq 0x2b11c4(%rip), %rdx    # 0x3511b0
callq 0x149c3c
movq %rbx, %rdi
movq %rbp, %rsi
movq 0x20(%rsp), %rdx
callq 0x14b992
movl %eax, %r15d
movq %rbx, %rdi
callq 0x14c43a
movq 0x30(%rsp), %rax
addq %rax, 0x48(%rsp)
testl %r15d, %r15d
jne 0xa0039
addq $0x18, %r13
movq 0xa8(%rsp), %rcx
leaq 0x1(%rcx), %rax
cmpq 0xe8(%rsp), %rcx
jb 0x9fe62
movq 0xa0(%rsp), %rdi
callq 0x121b03
movq 0x110(%rsp), %rdi
callq 0x1040fc
movq 0xf0(%rsp), %rdi
callq 0x16df09
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0xa0096
leaq 0xd8(%rsp), %rbx
leaq 0x2b0cac(%rip), %rsi    # 0x350d28
movl $0x300, %edx            # imm = 0x300
callq 0x109670
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x88(%rsp), %rdi
callq 0x121b03
movq 0x160(%rsp), %rdi
callq 0x121b03
movq 0xb8(%rsp), %rbp
movq 0x20(%rsp), %r14
movq 0x98(%rsp), %r13
testl %r15d, %r15d
jne 0xa0124
testq %rbp, %rbp
je 0xa00e8
movq 0x423eaa(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2b10dd(%rip), %rsi    # 0x3511bd
movq %rbp, %rdi
callq 0x1229c8
leaq 0x2e0f78(%rip), %rax    # 0x381067
leaq 0x2b7095(%rip), %rbx    # 0x35718b
movq 0x80(%rsp), %rcx
cmpb $0x0, 0x4d(%rcx)
cmovneq %rax, %rbx
movq 0xc8(%rsp), %rdi
callq 0x120d23
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xa06b6
movl %eax, %r15d
testl %r15d, %r15d
je 0xa0133
movq 0x28(%rsp), %rbx
jmp 0xa05ec
testq %rbp, %rbp
je 0xa0151
movq 0x423e41(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2b1089(%rip), %rsi    # 0x3511d2
movq %rbp, %rdi
callq 0x1229c8
movsd 0x48(%rsp), %xmm0
unpcklps 0x2b0782(%rip), %xmm0   # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2b078a(%rip), %xmm0   # 0x3508f0
movq 0x80(%rsp), %r15
movsd 0x40(%r15), %xmm1
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
mulsd 0x138(%rsp), %xmm2
movsd 0x2b0b7f(%rip), %xmm0   # 0x350d10
cmpeqsd %xmm1, %xmm0
movapd %xmm0, %xmm3
andnpd %xmm1, %xmm3
andpd %xmm2, %xmm0
orpd %xmm3, %xmm0
xorpd %xmm1, %xmm1
movapd %xmm0, 0x30(%rsp)
callq 0x10ac6f
testb %al, %al
jne 0xa06ac
cmpb $0x1, 0x4c(%r15)
jne 0xa01cb
callq 0x12da4a
jmp 0xa01d0
callq 0x12da06
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
callq 0x120d23
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12dab6
movq %rbx, %rdi
movq 0xb0(%rsp), %rsi
callq 0x12da6c
movq %rbx, %rdi
movaps 0x30(%rsp), %xmm0
callq 0x12db00
movl 0x48(%r15), %esi
movq %rbx, %rdi
callq 0x12dcd1
movq 0x28(%r15), %rdi
callq 0x120d4c
testq %rax, %rax
je 0xa0255
leaq 0x3312a9(%rip), %rdi    # 0x3d14d2
callq 0x120955
movq %rax, %r14
movq 0x28(%r15), %rsi
movq %rax, %rdi
callq 0x120a43
movq %r14, %rdi
movq 0x20(%rsp), %r14
callq 0x120d23
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12ddf0
leaq 0x2b0fa9(%rip), %rsi    # 0x351205
movq 0xc0(%rsp), %rdi
movapd 0x30(%rsp), %xmm0
movq 0x48(%rsp), %rdx
movb $0x1, %al
callq 0x10906e
movq %rbx, %rdi
callq 0x12dfba
leaq 0x2b0fa3(%rip), %rdi    # 0x351228
movq %rax, %rsi
xorl %eax, %eax
callq 0x108e02
movq %rbx, %rdi
movq %r14, %rsi
callq 0x165cfc
movq %rax, %r12
movq %rbx, %rdi
callq 0x12dfc2
movq %r12, 0xa0(%rsp)
testq %r12, %r12
je 0xa0300
cmpq $0x0, 0x70(%rsp)
jne 0xa02c4
callq 0x1208f8
movq %rax, 0x70(%rsp)
leaq 0x2b0f6c(%rip), %rdi    # 0x351237
callq 0x120955
movq %rax, 0xb0(%rsp)
leaq 0x78(%rsp), %rsi
movq 0xa0(%rsp), %rdi
movq %r14, %rdx
callq 0x165b56
testl %eax, %eax
je 0xa0310
movl %eax, %ebp
movb $0x1, %bl
xorl %r12d, %r12d
xorl %r13d, %r13d
jmp 0xa0599
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x28(%rsp), %rbx
jmp 0xa05df
movl $0x1, %eax
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %r13
movq %r13, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x165773
movq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x16578b
movq 0x78(%rsp), %rdi
callq 0x16575f
movq %rax, %rdi
leaq 0x2b0eef(%rip), %rsi    # 0x351241
leaq 0x158(%rsp), %rdx
leaq 0x100(%rsp), %rcx
leaq 0x108(%rsp), %r8
xorl %eax, %eax
callq 0x177f0
movl $0x0, %ebp
cmpl $0x3, %eax
je 0xa039e
movq 0x78(%rsp), %rdi
callq 0x16575f
movq %r14, %rdi
leaq 0x2b0ebe(%rip), %rsi    # 0x35124d
movq %rax, %rdx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x158(%rsp), %rdx
movq 0x90(%rsp), %rbx
movq %rbx, %rdi
leaq 0x150(%rsp), %rsi
callq 0x131be9
movq %rax, 0xa8(%rsp)
movq 0x158(%rsp), %rsi
movq %rbx, %rdi
callq 0x131b7a
movq 0x100(%rsp), %rcx
subq %rax, %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
paddq 0x50(%rsp), %xmm0
movdqa %xmm0, 0x50(%rsp)
movq (%r15), %r15
movq 0x78(%rsp), %rdi
callq 0x16574b
movq %rax, %r14
movl 0x150(%rsp), %r12d
movq %r13, %rdi
callq 0x165acb
movq %xmm0, 0x48(%rsp)
movq %r13, %rdi
callq 0x165abb
movq %rax, %rbx
movups 0xd0(%rsp), %xmm0
movaps %xmm0, 0x110(%rsp)
movaps 0x50(%rsp), %xmm0
movaps %xmm0, 0x160(%rsp)
movq %r13, %rdi
callq 0x165a99
movsd %xmm0, 0x88(%rsp)
movq %r13, %rdi
movq 0xa8(%rsp), %r13
callq 0x165aaa
cvtss2sd %xmm0, %xmm2
movaps 0x160(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movaps 0x110(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r15, %rdi
leaq 0x2b0dd2(%rip), %rsi    # 0x35125f
movq %r14, %rdx
movq 0x20(%rsp), %r14
movl %r12d, %ecx
movq %r13, %r8
movsd 0x48(%rsp), %xmm0
movq %rbx, %r9
movsd 0x88(%rsp), %xmm1
movb $0x3, %al
callq 0x103d21
movq 0x68(%rsp), %r15
testq %r15, %r15
je 0xa0550
movq 0x78(%rsp), %rdi
callq 0x1657e1
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
movq 0x70(%rsp), %r12
movq %r12, %rdi
callq 0x120db4
movq 0x150(%rsp), %rdx
movq %r12, %rdi
movq %r13, %rsi
callq 0x120a9d
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq %r12, %rdi
leaq 0x2efad1(%rip), %rsi    # 0x38ffd8
movl %ebx, %r8d
callq 0x14952c
movq %rax, %rbx
movq %rax, %rdi
movq 0xb0(%rsp), %rsi
callq 0x1491f1
movq %rbx, %rdi
leaq 0x30b122(%rip), %rsi    # 0x3ab64e
leaq 0x2b0d56(%rip), %rdx    # 0x351289
callq 0x149c3c
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x14b992
movl %eax, %ebp
movq %rbx, %rdi
callq 0x14c43a
movq 0x78(%rsp), %rdi
callq 0x1657f0
movl %ebp, %r13d
testl %ebp, %ebp
sete %bl
movq 0x30(%rsp), %r12
jne 0xa0597
movq 0xa0(%rsp), %rdi
leaq 0x78(%rsp), %rsi
movq %r14, %rdx
callq 0x165b56
movl %eax, %ebp
leaq 0x1(%r12), %rax
testl %ebp, %ebp
movq 0x80(%rsp), %r15
je 0xa0315
jmp 0xa0599
xorl %ebp, %ebp
movq 0xb0(%rsp), %rdi
callq 0x121b03
cmpl $0x2, %ebp
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmovnel %r13d, %r15d
testb %bl, %bl
cmovel %r13d, %r15d
leaq 0x2b0cd2(%rip), %rdi    # 0x351292
movq %r12, %rsi
xorl %eax, %eax
callq 0x108e02
movq 0xb8(%rsp), %rbp
movq 0x28(%rsp), %rbx
movq 0x98(%rsp), %r13
movq 0xa0(%rsp), %rdi
callq 0x165b8e
movq 0x90(%rsp), %rdi
callq 0x1323d6
testq %rbp, %rbp
je 0xa0615
testl %r15d, %r15d
jne 0xa0615
movq 0x423976(%rip), %rax    # 0x4c3f80
movq (%rax), %rsi
movq %rbp, %rdi
callq 0x122c67
movq %rbp, %rdi
callq 0x122d79
movq 0x148(%rsp), %rdi
callq 0x1040fc
leaq 0x2b06f7(%rip), %rsi    # 0x350d28
movq %rbx, %rdi
movl $0x38b, %edx            # imm = 0x38B
callq 0x109670
movq 0x68(%rsp), %rdi
callq 0x16b162
movq %r13, %rdi
callq 0x121b03
movq 0x70(%rsp), %rdi
callq 0x121b03
movq 0xc8(%rsp), %rdi
callq 0x121b03
movq 0xc0(%rsp), %rdi
callq 0x10916a
movl %r15d, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x19035
callq 0x19119
callq 0x18ffc
callq 0x18fc3
callq 0x18f51
callq 0x190e0
callq 0x190a7
callq 0x1906e
callq 0x18f8a