// File: /workspace/github_c_makefile_star2_O3/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 $0x198, %rsp            # imm = 0x198
movq %r8, %rbp
movq %rcx, %r14
movups 0x2ab61f(%rip), %xmm0   # 0x348550
movaps %xmm0, 0x150(%rsp)
movupd 0x2ab5ff(%rip), %xmm0   # 0x348540
movapd %xmm0, 0x140(%rsp)
leaq 0x2ab121(%rip), %rdi    # 0x348072
callq 0x11acc9
movq %rax, %r15
movq 0x18(%r14), %rdi
callq 0x11b0a1
movq %rax, %r13
testq %rbp, %rbp
je 0x9cf7a
movq %rbp, %rdi
callq 0xfcc32
testb %al, %al
jne 0x9e505
movq 0x10(%r14), %rdi
callq 0x130d6d
movq 0x41bff6(%rip), %rcx    # 0x4b8f80
movq (%rcx), %rdx
movzbl %al, %edi
leaq 0x2a993d(%rip), %rsi    # 0x3468d4
callq 0x103e40
movq %rax, 0xc8(%rsp)
callq 0x119160
testb %al, %al
je 0x9cfc6
leaq 0x2bb147(%rip), %rdi    # 0x3580fb
callq 0x11c986
movq %rax, %r12
movq %rax, %rdi
callq 0x11c9e3
jmp 0x9cfc9
xorl %r12d, %r12d
movq 0x20(%r14), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x9d015
movq 0x20(%r14), %rdi
callq 0x11b0a1
leaq 0x2f65ce(%rip), %rsi    # 0x3935b5
movq %rax, %rdi
movq %rbp, %rdx
callq 0xfea8a
testq %rax, %rax
je 0x9d13c
movq %rax, %rbx
movq %rax, %rdi
callq 0x14badb
movq %rax, 0x48(%rsp)
movq %rax, %rdi
callq 0x14bbee
jmp 0x9d020
movq $0x0, 0x48(%rsp)
xorl %ebx, %ebx
movq 0x10(%r14), %rdi
movq 0xc8(%rsp), %rsi
movq %rbp, %rdx
callq 0x130d46
testq %rax, %rax
je 0x9d124
movq %r13, 0x108(%rsp)
movq %rbx, 0x68(%rsp)
movq %r12, 0x70(%rsp)
movq %rax, %rdi
movq %rax, %r12
callq 0x12cf45
movq %rax, %rbx
movq %r15, %rdi
movq %rax, %rsi
callq 0x11acf3
leaq 0x322f53(%rip), %rsi    # 0x3bffc2
movq %r15, %rdi
callq 0x11acf3
movq %r14, %r13
leaq 0x2aaca7(%rip), %r14    # 0x347d28
movq %rbx, %rdi
movq %r14, %rsi
movl $0x270, %edx            # imm = 0x270
callq 0x1045eb
movq %r12, 0x38(%rsp)
movq %r12, %rdi
callq 0x12cf86
movq %rax, 0x78(%rsp)
movl $0xfa0, %edi            # imm = 0xFA0
movq %r14, %rsi
movl $0x274, %edx            # imm = 0x274
callq 0x104226
movq %rax, 0x40(%rsp)
xorpd %xmm0, %xmm0
leaq 0x140(%rsp), %r14
movapd %xmm0, (%r14)
movapd %xmm0, 0x10(%r14)
movq 0x18(%r13), %rdi
callq 0xfe82b
movq %rax, %rbx
leaq 0x1698(%rip), %rcx      # 0x9e77c
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %r8
movq %rbp, %r9
callq 0xfe3f8
testl %eax, %eax
je 0x9d1e8
movl %eax, %ebp
movq %rbx, %rdi
callq 0xfe3bd
xorl %r13d, %r13d
movl %ebp, %r14d
movq 0x70(%rsp), %r12
movq 0x68(%rsp), %rbx
movq 0x78(%rsp), %rbp
movq 0x38(%rsp), %rdi
jmp 0x9d15d
xorl %ebp, %ebp
xorl %edi, %edi
movq $0x0, 0x40(%rsp)
xorl %r13d, %r13d
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x9d15d
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
xorl %ebx, %ebx
movq $0x0, 0x48(%rsp)
xorl %ebp, %ebp
xorl %edi, %edi
movq $0x0, 0x40(%rsp)
xorl %r13d, %r13d
callq 0x12c3a7
testq %r12, %r12
je 0x9d17e
testl %r14d, %r14d
jne 0x9d17e
movq 0x41be0d(%rip), %rax    # 0x4b8f80
movq (%rax), %rsi
movq %r12, %rdi
callq 0x11cf39
movq %r12, %rdi
callq 0x11d054
movq %rbx, %rdi
callq 0xff22c
leaq 0x2aab93(%rip), %rsi    # 0x347d28
movq 0x40(%rsp), %rdi
movl $0x38b, %edx            # imm = 0x38B
callq 0x1045eb
movq 0x48(%rsp), %rdi
callq 0x1632f2
movq %rbp, %rdi
callq 0x11bdbf
movq %r13, %rdi
callq 0x11bdbf
movq %r15, %rdi
callq 0x11bdbf
movq 0xc8(%rsp), %rdi
callq 0x1040e0
movl %r14d, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, 0x28(%rsp)
movq 0x140(%rsp), %rax
movq 0x150(%rsp), %rsi
xorl %edx, %edx
divq %rsi
movsd 0x30(%r13), %xmm0
movaps %xmm0, 0x50(%rsp)
movq %rax, 0x140(%rsp)
leaq 0x2ab074(%rip), %rdi    # 0x348290
movq %rax, %rdx
xorl %eax, %eax
callq 0x103d72
movapd 0x50(%rsp), %xmm1
unpcklps 0x2aa6ad(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x2aa6b5(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x17700
movsd 0x2a8fd4(%rip), %xmm1   # 0x346228
divsd %xmm0, %xmm1
movsd 0x140(%rsp), %xmm2
unpcklps 0x2aa678(%rip), %xmm2   # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
subpd 0x2aa680(%rip), %xmm2   # 0x3478f0
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
addsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x158(%rsp)
leaq 0x2ab021(%rip), %rsi    # 0x3482b1
movq 0xc8(%rsp), %rdi
movb $0x1, %al
callq 0x103fe1
cmpq $0x0, 0x140(%rsp)
je 0x9e50f
movq %r13, %r14
movq %rbx, %rdi
callq 0xfe3bd
movq 0x78(%rsp), %rbp
movq %rbp, %rdi
callq 0x11b0ca
movq %rax, %rbx
movq 0x70(%rsp), %r12
testq %r12, %r12
movq 0x108(%rsp), %r13
je 0x9d2f4
movq 0x41bc9e(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2aada8(%rip), %rsi    # 0x348094
movq %r12, %rdi
callq 0x11cc90
cmpb $0x1, 0x4d(%r14)
movq %r14, 0x100(%rsp)
jne 0x9d38a
leaq 0x2aad9d(%rip), %rsi    # 0x3480ab
movq %rbp, %rdi
callq 0x11acf3
cmpb $0x0, 0x4e(%r14)
jne 0x9d335
movq %rbp, %rdi
callq 0x11b0a1
movq %rax, %rdi
callq 0xff28c
testb %al, %al
jne 0x9d3ea
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x11b0d7
leaq 0x2aad69(%rip), %rsi    # 0x3480b0
movq %rbp, %rdi
callq 0x11acf3
movb 0x4e(%r14), %al
testb %al, %al
jne 0x9d36f
movq %rbp, %rdi
callq 0x11b0a1
movq %rax, %rdi
callq 0xff28c
testb %al, %al
jne 0x9d3ea
movb 0x4e(%r14), %al
testb $0x1, %al
je 0x9d3fa
leaq 0x2aad37(%rip), %rdi    # 0x3480b5
xorl %eax, %eax
callq 0x103d72
jmp 0x9d413
leaq 0x2aad55(%rip), %rsi    # 0x3480e6
movq %rbp, %rdi
callq 0x11acf3
cmpb $0x0, 0x4e(%r14)
jne 0x9d3b4
movq %rbp, %rdi
callq 0x11b0a1
movq %rax, %rdi
callq 0xff28c
testb %al, %al
jne 0x9d3ea
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x11b0d7
leaq 0x2aad25(%rip), %rsi    # 0x3480eb
movq %rbp, %rdi
callq 0x11acf3
movb 0x4e(%r14), %al
testb %al, %al
jne 0x9d420
movq %rbp, %rdi
callq 0x11b0a1
movq %rax, %rdi
callq 0xff28c
testb %al, %al
je 0x9d41c
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x11b0d7
jmp 0x9d4ae
movq %rbp, %rdi
callq 0x11b0a1
leaq 0x2aacc1(%rip), %rdi    # 0x3480ca
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
leaq 0x2da9af(%rip), %r14    # 0x377dc9
jmp 0x9d454
movb 0x4e(%r14), %al
testb $0x1, %al
je 0x9d434
leaq 0x2aac8a(%rip), %rdi    # 0x3480b5
xorl %eax, %eax
callq 0x103d72
jmp 0x9d44d
movq %rbp, %rdi
callq 0x11b0a1
leaq 0x2aac87(%rip), %rdi    # 0x3480ca
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
leaq 0x2b0d07(%rip), %r14    # 0x34e15b
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x11b0d7
movq %rbp, %rdi
callq 0x11b0a1
movq %rax, %rdi
movq %r14, %rsi
movq 0x28(%rsp), %rdx
callq 0x9e523
movl %eax, %ebp
movq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0x11b0d7
testl %ebp, %ebp
movq 0x78(%rsp), %rbp
movq 0x70(%rsp), %r12
movq 0x100(%rsp), %r14
je 0x9d4ae
xorl %r13d, %r13d
movq 0x68(%rsp), %rbx
movq 0x38(%rsp), %rdi
jmp 0x9d134
movq 0x140(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0x180(%rsp)
testq %r12, %r12
je 0x9d4ec
movq 0x41baa6(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2aaf0a(%rip), %rsi    # 0x3483ee
movq %r12, %rdi
callq 0x11cc90
cmpb $0x1, 0x4c(%r14)
jne 0x9d4fa
callq 0x127b62
jmp 0x9d4ff
callq 0x127b1e
movq %rax, %rbx
movq %rbp, %rdi
callq 0x11b0a1
movq %rbx, %rdi
movq %rax, %rsi
callq 0x127bce
movq %rbx, %rdi
movq %r13, %rsi
callq 0x127b84
movsd 0x38(%r14), %xmm0
movq %rbx, %rdi
callq 0x127c18
movl 0x48(%r14), %esi
movq %rbx, %rdi
callq 0x127de9
movsd 0x38(%r14), %xmm0
leaq 0x2aaeb8(%rip), %rsi    # 0x3483ff
movq 0xc8(%rsp), %rdi
movb $0x1, %al
callq 0x103fe1
movq %rbx, %rdi
callq 0x1280d2
leaq 0x2aacb1(%rip), %rdi    # 0x348216
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
callq 0x15dfcf
movq %rax, 0xb0(%rsp)
movq %rbx, %rdi
callq 0x1280da
testq %r12, %r12
je 0x9d5aa
movq 0x41b9e8(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2aae79(%rip), %rsi    # 0x34841b
movq %r12, %rdi
callq 0x11cc90
movq %r15, 0x138(%rsp)
movq 0x40(%rsp), %rbx
testq %rbx, %rbx
je 0x9e514
callq 0x11ac6c
movq %rax, %r13
leaq 0x2aae95(%rip), %rdi    # 0x348464
callq 0x11acc9
movq %rax, 0xc0(%rsp)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
cmpq $0x0, 0xb0(%rsp)
je 0x9d92c
movq %r13, 0x30(%rsp)
movq 0x110(%rsp), %rax
shrq %rax
movq %rax, 0x110(%rsp)
addq %rax, 0x180(%rsp)
movl $0x64, %eax
movq %rax, 0x98(%rsp)
xorl %r13d, %r13d
xorl %esi, %esi
movq %rsi, 0x50(%rsp)
movq 0xb0(%rsp), %rdi
leaq 0x128(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x15de2e
movl %eax, 0xa8(%rsp)
testl %eax, %eax
setne %r12b
jne 0x9d944
movq %r12, 0x40(%rsp)
movq 0x128(%rsp), %r15
movq %r15, %rdi
callq 0x15da35
movq %rax, %r12
movq %rax, %rdi
movl $0x65, %esi
callq 0x17280
leaq 0x1(%rax), %r14
testq %rax, %rax
cmoveq %r12, %r14
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x10b217
testl %eax, %eax
je 0x9d6b9
movq %r14, %rdi
leaq 0x3094be(%rip), %rsi    # 0x3a6b64
movq %r12, %rdx
xorl %eax, %eax
callq 0x177f0
cmpl $0x1, %eax
jne 0x9d7d3
movq 0x98(%rsp), %rax
cmpq %rax, %r13
movq 0x48(%rsp), %rbp
jne 0x9d742
movq %rax, %xmm0
punpckldq 0x2aa208(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2aa210(%rip), %xmm0   # 0x3478f0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x2aa624(%rip), %xmm1   # 0x347d18
cvttsd2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x2aa618(%rip), %xmm1   # 0x347d20
cvttsd2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
leaq 0x50(,%rdx,8), %rax
addq $0xa, %rdx
movq %rdx, 0x98(%rsp)
leaq (%rax,%rax,4), %rsi
movq %rbx, %rdi
leaq 0x2aa5f3(%rip), %rdx    # 0x347d28
movl $0x1ad, %ecx            # imm = 0x1AD
callq 0x104461
movq %rax, %rbx
movq 0x40(%rsp), %r12
leaq (,%r13,4), %rax
addq %r13, %rax
leaq (%rbx,%rax,8), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x15da61
movq %r15, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x15da49
movq 0xd0(%rsp), %rax
addq 0x110(%rsp), %rax
movq %rax, 0x18(%r14)
movq 0x180(%rsp), %rax
subq 0xd8(%rsp), %rax
movq %rax, 0x20(%r14)
movq 0x80(%rsp), %rax
movq %rax, 0x10(%r14)
movq (%r14), %rax
testq %rax, %rax
je 0x9e500
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0x9e4fb
decq %rax
movq %rax, (%r14)
decq %rcx
movq %rcx, 0x8(%r14)
incq %r13
xorl %r15d, %r15d
jmp 0x9d7f9
movq 0x28(%rsp), %rdi
leaq 0x2aacb0(%rip), %rsi    # 0x34848f
movq %r14, %rdx
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x48(%rsp), %rbp
movq 0x40(%rsp), %r12
testq %rbp, %rbp
je 0x9d906
movq %rbp, 0x48(%rsp)
leaq (,%r13,4), %rax
addq %r13, %rax
movupd -0x28(%rbx,%rax,8), %xmm0
movapd %xmm0, 0xd0(%rsp)
movq -0x18(%rbx,%rax,8), %rsi
movq %rbx, %r12
movq 0x38(%rsp), %rbx
movq %rbx, %rdi
leaq 0xd0(%rsp), %rdx
callq 0x12e1e2
movq %rax, %r15
movq 0x128(%rsp), %rdi
callq 0x15dab7
xorl %r14d, %r14d
testl %eax, %eax
setne %r14b
movq %r13, %rbp
movq 0x30(%rsp), %r13
movq %r13, %rdi
callq 0x11b132
movq %rbx, %rdi
movq %r12, %rbx
movq 0x40(%rsp), %r12
leaq 0x80(%rsp), %rsi
movq %r15, %rdx
callq 0x12bb9d
movq 0x80(%rsp), %rdx
movq %r13, %rdi
movq %rax, %rsi
callq 0x11ae1b
movq 0xd0(%rsp), %rdx
movq 0xd8(%rsp), %rcx
incq %rdx
incq %rcx
movq %r13, %rdi
movq %rbp, %r13
leaq 0x2e9340(%rip), %rsi    # 0x386bf8
movl %r14d, %r8d
callq 0x1422f4
movq %rax, %r14
movq %rax, %rdi
movq 0xc0(%rsp), %rsi
callq 0x141fb5
movq %r14, %rdi
leaq 0x304811(%rip), %rsi    # 0x3a20ee
leaq 0x2aab8c(%rip), %rdx    # 0x348470
callq 0x142a0f
movq %r14, %rdi
movq 0x48(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x14472c
movl %eax, %r15d
movq %r14, %rdi
callq 0x1451a0
movq 0x128(%rsp), %rdi
callq 0x15dac6
movq 0x50(%rsp), %rsi
incq %rsi
testl %r15d, %r15d
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
je 0x9d623
jmp 0x9d94c
movq $0x0, 0x50(%rsp)
xorl %esi, %esi
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
xorl %r12d, %r12d
xorl %ebx, %ebx
jmp 0x9d966
xorl %r15d, %r15d
movq 0x50(%rsp), %rsi
movq %r13, 0x50(%rsp)
movq %rbx, 0x40(%rsp)
cmpl $0x2, 0xa8(%rsp)
sete %bl
movq 0x30(%rsp), %r13
leaq 0x2aab0e(%rip), %rdi    # 0x34847b
xorl %eax, %eax
callq 0x103d72
movq 0xc0(%rsp), %rdi
callq 0x11bdbf
testb %bl, %bl
cmovel %r15d, %r14d
testb %r12b, %r12b
cmovel %r15d, %r14d
movq 0xb0(%rsp), %rdi
callq 0x15de66
testl %r14d, %r14d
movq 0x138(%rsp), %r15
jne 0x9d9ce
cmpq $0x0, 0x50(%rsp)
jne 0x9d9ce
leaq 0x2aa739(%rip), %rsi    # 0x3480f0
movq 0x28(%rsp), %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x9d10e
testl %r14d, %r14d
movq 0x70(%rsp), %r12
movq 0x68(%rsp), %rbx
movq 0x78(%rsp), %rbp
jne 0x9d11d
movq %r15, %rdi
callq 0x11b0a1
leaq 0x2f5bc0(%rip), %rsi    # 0x3935b5
movq %rax, %rdi
movq 0x28(%rsp), %rbp
movq %rbp, %rdx
callq 0xfea8a
movq %rax, 0xa8(%rsp)
callq 0x11ac6c
movq %rax, 0x98(%rsp)
callq 0x11ac6c
movq %rax, 0xb0(%rsp)
testq %r12, %r12
je 0x9da45
movq 0x41b54d(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2aa6d2(%rip), %rsi    # 0x34810f
movq %r12, %rdi
callq 0x11cc90
movq 0x38(%rsp), %rax
movq %rax, 0xd0(%rsp)
leaq 0xc3c(%rip), %rdi       # 0x9e695
leaq 0xc78(%rip), %rsi       # 0x9e6d8
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x165f7c
movq %rax, 0xf0(%rsp)
movq %r14, 0xf8(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0xd8(%rsp)
movq %r14, 0xe8(%rsp)
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x9e519
cmpq $0x0, 0x50(%rsp)
je 0x9db16
leaq 0x20(%rax), %rbx
movl $0x1, %r15d
leaq 0xd0(%rsp), %r14
leaq 0xc2b(%rip), %r12       # 0x9e6e9
movq -0x10(%rbx), %rsi
movq -0x8(%rbx), %r8
movq (%rbx), %r9
movq -0x20(%rbx), %rdx
movq -0x18(%rbx), %rcx
movq %rbp, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq %r12, (%rsp)
movq 0x38(%rsp), %rdi
callq 0x12d77f
testq %rax, %rax
je 0x9db00
addq $0x28, %rbx
leaq 0x1(%r15), %rcx
cmpq 0x50(%rsp), %r15
movq %rcx, %r15
jb 0x9dabe
xorl %r14d, %r14d
testq %rax, %rax
sete %r14b
negl %r14d
testq %rax, %rax
je 0x9dc99
movq %r13, 0x30(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x166d2a
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
callq 0x1666fd
leaq 0x2aa5f2(%rip), %rdi    # 0x348131
xorl %ebp, %ebp
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
callq 0x166ff0
testq %rax, %rax
je 0x9dc7b
movq %rax, %r13
xorl %ebp, %ebp
movq %rbx, 0x50(%rsp)
movq 0xe8(%rsp), %rax
testq %rax, %rax
je 0x9dbcb
movq 0xd8(%rsp), %r12
movq 0x10(%r13), %rcx
leaq (%rax,%rax,2), %r15
cmpq -0x8(%r12,%r15,8), %rcx
jne 0x9dbdf
movq %r14, %rbx
leaq (%r12,%r15,8), %r14
addq $-0x18, %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x112246
testb %al, %al
je 0x9dbcf
leaq (%r12,%r15,8), %r15
incq %rbp
movq %r14, %rdi
movq %r13, %rsi
callq 0x112343
movq %rax, -0x18(%r15)
movq %rdx, -0x10(%r15)
movq %rbx, %r14
movq 0x50(%rsp), %rbx
jmp 0x9dc67
xorl %eax, %eax
jmp 0x9dbdf
movq 0xe8(%rsp), %rax
movq %rbx, %r14
movq 0x50(%rsp), %rbx
movq 0xe0(%rsp), %rcx
cmpq %rcx, %rax
jae 0x9dbf6
movq 0xd8(%rsp), %rax
jmp 0x9dc32
leaq 0x80(%rcx), %rax
movq %rax, 0xe0(%rsp)
movq 0xd8(%rsp), %rdi
leaq 0x400(,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
leaq 0x2aa108(%rip), %rdx    # 0x347d28
movl $0x2c5, %ecx            # imm = 0x2C5
callq 0x104461
movq %rax, 0xd8(%rsp)
testq %rax, %rax
je 0x9e50a
movq 0xe8(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0xe8(%rsp)
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%r13), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movupd (%r13), %xmm0
movupd %xmm0, (%rax,%rcx,8)
movq %rbx, %rdi
callq 0x166ea4
movq %rax, %r13
testq %rax, %rax
jne 0x9db66
leaq 0x2aa4e3(%rip), %rdi    # 0x348165
movq %rbp, %rsi
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
callq 0x16700c
movq 0x30(%rsp), %r13
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x9dcb9
movq 0x41b2d6(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2aa4bc(%rip), %rsi    # 0x348170
callq 0x11cc90
testq %r13, %r13
jne 0x9dcc6
callq 0x11ac6c
movq %rax, %r13
movq %r13, 0x30(%rsp)
leaq 0x2aa4ad(%rip), %rdi    # 0x34817f
callq 0x11acc9
movq %rax, 0x110(%rsp)
xorl %r12d, %r12d
testl %r14d, %r14d
jne 0x9def4
cmpq $0x0, 0xe8(%rsp)
je 0x9def4
movl $0x1, %r13d
xorl %r15d, %r15d
xorl %r12d, %r12d
movq %r12, 0x50(%rsp)
movq 0xd8(%rsp), %rax
movupd (%rax,%r15), %xmm0
movapd %xmm0, 0x80(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x112233
movq %rax, %rbx
movq 0xd8(%rsp), %rax
movq 0x10(%rax,%r15), %r14
movq 0xb0(%rsp), %r12
movq %r12, %rdi
callq 0x11b132
movq %r12, %rdi
movq %r14, %rsi
callq 0x11ae72
movq %r12, %rdi
leaq 0x2ddba5(%rip), %r14    # 0x37b909
movq %r14, %rsi
callq 0x11acf3
movq 0x80(%rsp), %rsi
movq %r12, %rdi
callq 0x11ae72
movq %r12, %rdi
movq %r14, %rsi
callq 0x11acf3
movq 0x88(%rsp), %rsi
movq %r12, %rdi
callq 0x11ae72
movq %r12, %rdi
callq 0x11b0a1
movq %rax, %r14
movq %r12, %rdi
callq 0x11b0ca
movq %rax, %r12
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x38(%rsp), %rbp
movq %rbp, %rdi
xorl %ecx, %ecx
callq 0x12d5a2
movl $0x64, %r8d
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %rbx, %rcx
movq 0xa8(%rsp), %r9
callq 0xfe0d0
movl $0x0, %r14d
cmpq $0x0, 0x48(%rsp)
je 0x9dece
movq 0x80(%rsp), %rsi
movq %rbp, %rdi
callq 0x12bb18
movq %rax, %r14
movq %rbp, %rdi
movq %rax, %rsi
callq 0x12bb2e
movq %rax, %r12
movq %rbp, %rdi
leaq 0x128(%rsp), %rsi
movq %r14, %rdx
callq 0x12bb9d
movq %rax, %r14
movq 0x98(%rsp), %rbp
movq %rbp, %rdi
callq 0x11b132
movq 0x128(%rsp), %rdx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x11ae1b
movq 0x80(%rsp), %rdx
movq 0x88(%rsp), %rcx
subq %r12, %rdx
incq %rdx
subq %r12, %rcx
incq %rcx
movq %rbp, %rdi
leaq 0x2aa30c(%rip), %rsi    # 0x348189
movl $0x2, %r8d
callq 0x1422f4
movq %rax, %r14
movq %rax, %rdi
movq 0x110(%rsp), %rsi
callq 0x141fb5
movq %r14, %rdi
leaq 0x304249(%rip), %rsi    # 0x3a20ee
leaq 0x2aa2f2(%rip), %rdx    # 0x34819e
callq 0x142a0f
movq %r14, %rdi
movq 0x48(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x14472c
movq %r14, %rdi
movq %rax, %r14
callq 0x1451a0
movq 0x50(%rsp), %r12
addq %rbx, %r12
testl %r14d, %r14d
jne 0x9def4
addq $0x18, %r15
leaq 0x1(%r13), %rax
cmpq 0xe8(%rsp), %r13
movq %rax, %r13
jb 0x9dd06
movq 0x110(%rsp), %rdi
callq 0x11bdbf
movq 0xa8(%rsp), %rdi
callq 0xff22c
movq 0xf0(%rsp), %rdi
callq 0x165fc5
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x9df51
leaq 0xd8(%rsp), %rbx
leaq 0x2a9df1(%rip), %rsi    # 0x347d28
movl $0x300, %edx            # imm = 0x300
callq 0x1045eb
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0xb0(%rsp), %rdi
callq 0x11bdbf
movq 0x98(%rsp), %rdi
callq 0x11bdbf
movq %r14, %rax
testl %r14d, %r14d
movq 0x138(%rsp), %r15
movq 0x28(%rsp), %r14
movq 0x108(%rsp), %r13
je 0x9dfa9
movq 0x70(%rsp), %r12
movq 0x68(%rsp), %rbx
movq 0x78(%rsp), %rbp
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %r13
movq %rax, %r14
jmp 0x9d15d
movq %r12, 0x50(%rsp)
movq 0x70(%rsp), %r12
testq %r12, %r12
je 0x9dfd1
movq 0x41afc1(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2aa1e2(%rip), %rsi    # 0x3481ab
movq %r12, %rdi
callq 0x11cc90
leaq 0x2d9df1(%rip), %rax    # 0x377dc9
leaq 0x2b017c(%rip), %rbx    # 0x34e15b
movq 0x100(%rsp), %rcx
cmpb $0x0, 0x4d(%rcx)
cmovneq %rax, %rbx
movq %r15, %rdi
callq 0x11b0a1
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x9e523
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testl %eax, %eax
movq 0x78(%rsp), %rbp
je 0x9e028
movq 0x68(%rsp), %rbx
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %r13
jmp 0x9d15d
testq %r12, %r12
je 0x9e046
movq 0x41af4c(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2aa182(%rip), %rsi    # 0x3481c0
movq %r12, %rdi
callq 0x11cc90
movsd 0x50(%rsp), %xmm0
unpcklps 0x2a988d(%rip), %xmm0   # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2a9895(%rip), %xmm0   # 0x3478f0
movq 0x100(%rsp), %r14
movsd 0x40(%r14), %xmm1
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
mulsd 0x158(%rsp), %xmm2
movsd 0x2a9c8a(%rip), %xmm0   # 0x347d10
cmpeqsd %xmm1, %xmm0
movapd %xmm0, %xmm3
andnpd %xmm1, %xmm3
andpd %xmm2, %xmm0
orpd %xmm3, %xmm0
xorpd %xmm1, %xmm1
movapd %xmm0, 0xb0(%rsp)
callq 0x105bb7
testb %al, %al
jne 0x9e51e
cmpb $0x1, 0x4c(%r14)
jne 0x9e0c3
callq 0x127b62
jmp 0x9e0c8
callq 0x127b1e
movq %rax, %rbx
movq %r15, %rdi
callq 0x11b0a1
movq %rbx, %rdi
movq %rax, %rsi
callq 0x127bce
movq %rbx, %rdi
movq %r13, %rsi
callq 0x127b84
movq %rbx, %rdi
movaps 0xb0(%rsp), %xmm0
callq 0x127c18
movl 0x48(%r14), %esi
movq %rbx, %rdi
callq 0x127de9
movq 0x28(%r14), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0x9e144
movq %r14, %r13
leaq 0x329c8d(%rip), %rdi    # 0x3c7daa
callq 0x11acc9
movq %rax, %r14
movq 0x28(%r13), %rsi
movq %rax, %rdi
callq 0x11adc1
movq %r14, %rdi
callq 0x11b0a1
movq %rbx, %rdi
movq %rax, %rsi
callq 0x127f08
leaq 0x2aa0a8(%rip), %rsi    # 0x3481f3
movq 0xc8(%rsp), %rdi
movapd 0xb0(%rsp), %xmm0
movq 0x50(%rsp), %rdx
movb $0x1, %al
callq 0x103fe1
movq %rbx, %rdi
callq 0x1280d2
leaq 0x2aa09f(%rip), %rdi    # 0x348216
movq %rax, %rsi
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
callq 0x15dfcf
movq %rax, %r14
movq %rbx, %rdi
callq 0x1280da
movq %r14, 0xc0(%rsp)
testq %r14, %r14
je 0x9e49c
movq 0x30(%rsp), %rax
testq %rax, %rax
jne 0x9e1b9
callq 0x11ac6c
movq %rax, 0x30(%rsp)
leaq 0x2aa060(%rip), %rdi    # 0x348225
callq 0x11acc9
movq %rax, 0x168(%rsp)
xorl %r13d, %r13d
movq 0x68(%rsp), %rbx
movq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x15de2e
testl %eax, %eax
movl %eax, 0x108(%rsp)
jne 0x9e4a9
movq %r13, 0x50(%rsp)
movq 0xa0(%rsp), %rbx
movq %rbx, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x15da49
movq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x15da61
movq 0xa0(%rsp), %rdi
callq 0x15da35
xorl %r13d, %r13d
movq %rax, %rdi
leaq 0x2a9fe0(%rip), %rsi    # 0x34822f
leaq 0x178(%rsp), %rdx
leaq 0x128(%rsp), %rcx
leaq 0x130(%rsp), %r8
xorl %eax, %eax
callq 0x177f0
cmpl $0x3, %eax
je 0x9e29c
movq 0xa0(%rsp), %rdi
callq 0x15da35
movq 0x28(%rsp), %rdi
leaq 0x2a9faf(%rip), %rsi    # 0x34823b
movq %rax, %rdx
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq 0x178(%rsp), %rdx
movq 0x38(%rsp), %r14
movq %r14, %rdi
leaq 0x170(%rsp), %rsi
callq 0x12bb9d
movq %rax, 0xb0(%rsp)
movq 0x178(%rsp), %rsi
movq %r14, %rdi
callq 0x12bb2e
movq 0x128(%rsp), %rcx
subq %rax, %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
paddq 0x80(%rsp), %xmm0
movdqa %xmm0, 0x80(%rsp)
movq 0x100(%rsp), %rax
movq (%rax), %r14
movq 0xa0(%rsp), %rdi
callq 0x15da21
movq %rax, %r12
movl 0x170(%rsp), %ebp
movq %rbx, %rdi
callq 0x15dda3
movq %xmm0, 0xa8(%rsp)
movq %rbx, %rdi
callq 0x15dd93
movq %rax, %r15
movups 0xd0(%rsp), %xmm0
movaps %xmm0, 0x110(%rsp)
movaps 0x80(%rsp), %xmm0
movaps %xmm0, 0x180(%rsp)
movq %rbx, %rdi
callq 0x15dd71
movsd %xmm0, 0x98(%rsp)
movq %rbx, %rdi
callq 0x15dd82
cvtss2sd %xmm0, %xmm2
movaps 0x180(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movaps 0x110(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
leaq 0x2a9eb7(%rip), %rsi    # 0x34824d
movq %r12, %rdx
movq 0xb0(%rsp), %r12
movl %ebp, %ecx
movq %r12, %r8
movsd 0xa8(%rsp), %xmm0
movq %r15, %r9
movl %r13d, %r15d
movsd 0x98(%rsp), %xmm1
movb $0x3, %al
callq 0xfee51
movq 0x48(%rsp), %r14
testq %r14, %r14
je 0x9e46d
movq 0xa0(%rsp), %rdi
callq 0x15dab7
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
movq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x11b132
movq 0x170(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x11ae1b
movq 0x80(%rsp), %rdx
movq 0x88(%rsp), %rcx
movq %r15, %rdi
leaq 0x2e87d7(%rip), %rsi    # 0x386bf8
movl %ebx, %r8d
callq 0x1422f4
movq %rax, %rbx
movq %rax, %rdi
movq 0x168(%rsp), %rsi
callq 0x141fb5
movq %rbx, %rdi
leaq 0x303ca8(%rip), %rsi    # 0x3a20ee
leaq 0x2a9e2a(%rip), %rdx    # 0x348277
callq 0x142a0f
movq %rbx, %rdi
movq %r14, %rsi
movq 0x28(%rsp), %rdx
callq 0x14472c
movl %eax, %r15d
movq %rbx, %rdi
callq 0x1451a0
movq 0xa0(%rsp), %rdi
callq 0x15dac6
movq 0x50(%rsp), %r13
incq %r13
testl %r15d, %r15d
movq 0x70(%rsp), %r12
movq 0x68(%rsp), %rbx
movq 0x78(%rsp), %rbp
je 0x9e1da
jmp 0x9e4ac
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq 0x68(%rsp), %rbx
jmp 0x9e4e4
xorl %r15d, %r15d
movq 0x168(%rsp), %rdi
callq 0x11bdbf
cmpl $0x2, 0x108(%rsp)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
cmovnel %r15d, %r14d
leaq 0x2a9dae(%rip), %rdi    # 0x348280
movq %r13, %rsi
xorl %eax, %eax
callq 0x103d72
movq 0x138(%rsp), %r15
movq 0x30(%rsp), %r13
movq 0xc0(%rsp), %rdi
callq 0x15de66
jmp 0x9d11d
callq 0x18f51
callq 0x18f8a
callq 0x18f18
callq 0x18fc3
callq 0x190a7
callq 0x1906e
callq 0x19035
callq 0x18ffc