// File: /workspace/github_c_makefile_star2_O0/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 %rbx
subq $0x320, %rsp            # imm = 0x320
movl %edi, 0x31c(%rsp)
movq %rsi, 0x310(%rsp)
movl %edx, 0x30c(%rsp)
movq %rcx, 0x300(%rsp)
movq %r8, 0x2f8(%rsp)
movl $0x0, 0x2f4(%rsp)
movq 0x4f61b0(%rip), %rax    # 0x5195b0
movq %rax, 0x268(%rsp)
movq 0x4f61a9(%rip), %rax    # 0x5195b8
movq %rax, 0x270(%rsp)
movq 0x4f61a2(%rip), %rax    # 0x5195c0
movq %rax, 0x278(%rsp)
movq 0x4f619b(%rip), %rax    # 0x5195c8
movq %rax, 0x280(%rsp)
movq $0x0, 0x260(%rsp)
movq $0x0, 0x258(%rsp)
leaq 0x4f5c6e(%rip), %rdi    # 0x5190c2
callq 0x11d510
movq %rax, 0x250(%rsp)
movq $0x0, 0x240(%rsp)
movq 0x300(%rsp), %rax
movq %rax, 0x298(%rsp)
movq $0x0, 0x288(%rsp)
movq $0x0, 0x2e8(%rsp)
movq 0x2f8(%rsp), %rax
movq %rax, 0x2a0(%rsp)
movq $0x0, 0x2c0(%rsp)
movq $0x0, 0x290(%rsp)
movq $0x64, 0x2e0(%rsp)
movq $0x0, 0x2a8(%rsp)
movq $0x0, 0x2b0(%rsp)
movq 0x298(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dee0
movq %rax, 0x2d8(%rsp)
movq $0x0, 0x2c8(%rsp)
movq $0x0, 0x2d0(%rsp)
movq $0x0, 0x2b8(%rsp)
cmpq $0x0, 0x2f8(%rsp)
je 0x23574
movq 0x2f8(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x2353c
jmp 0x23574
movq 0x618a5d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f2ac6(%rip), %rsi    # 0x516013
leaq 0x4f2c6b(%rip), %rdx    # 0x5161bf
leaq 0x4f5b6f(%rip), %rcx    # 0x5190ca
leaq 0x4f5816(%rip), %r8     # 0x518d78
movl $0x24e, %r9d            # imm = 0x24E
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23576
jmp 0x23578
cmpq $0x0, 0x298(%rsp)
jne 0x235bb
movq 0x618a16(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f2a7f(%rip), %rsi    # 0x516013
leaq 0x4f5b49(%rip), %rdx    # 0x5190e4
leaq 0x4f5b28(%rip), %rcx    # 0x5190ca
leaq 0x4f57cf(%rip), %r8     # 0x518d78
movl $0x24f, %r9d            # imm = 0x24F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x235bd
movq 0x298(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x148ad0
movq 0x6189cb(%rip), %rcx    # 0x63bfa0
movq (%rcx), %rdx
movzbl %al, %edi
andl $0x1, %edi
leaq 0x4f4307(%rip), %rsi    # 0x5178ec
callq 0xe7870
movq %rax, 0x2a8(%rsp)
callq 0x11aa90
testb $0x1, %al
jne 0x235fd
jmp 0x2361e
leaq 0x505bf2(%rip), %rdi    # 0x5291f6
callq 0x1213a0
movq %rax, 0x2b8(%rsp)
movq 0x2b8(%rsp), %rdi
callq 0x1213f0
movq 0x298(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x236a9
movq 0x298(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x2f8(%rsp), %rdx
leaq 0x54286d(%rip), %rsi    # 0x565ec5
callq 0xdd320
movq %rax, 0x260(%rsp)
cmpq $0x0, 0x260(%rsp)
jne 0x2367b
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x2f4(%rsp)
jne 0x236a7
movq 0x260(%rsp), %rdi
callq 0x180280
movq %rax, 0x2b0(%rsp)
movq 0x2b0(%rsp), %rdi
callq 0x180420
jmp 0x236a9
cmpl $0x0, 0x2f4(%rsp)
jne 0x236f4
movq 0x298(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x2a8(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
callq 0x148a90
movq %rax, 0x288(%rsp)
cmpq $0x0, 0x288(%rsp)
jne 0x236f2
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
jmp 0x236f4
cmpl $0x0, 0x2f4(%rsp)
jne 0x2379c
movq 0x288(%rsp), %rdi
callq 0x1402f0
movq %rax, 0x248(%rsp)
movq 0x250(%rsp), %rdi
movq 0x248(%rsp), %rsi
callq 0x11d550
movq 0x250(%rsp), %rdi
leaq 0x56fa5b(%rip), %rsi    # 0x593196
callq 0x11d550
movq 0x248(%rsp), %rdi
leaq 0x4f5629(%rip), %rsi    # 0x518d78
movl $0x270, %edx            # imm = 0x270
callq 0xe88c0
movq $0x0, 0x248(%rsp)
movq 0x288(%rsp), %rdi
callq 0x140370
movq %rax, 0x2c0(%rsp)
imulq $0x28, 0x2e0(%rsp), %rdi
leaq 0x4f55ee(%rip), %rsi    # 0x518d78
movl $0x274, %edx            # imm = 0x274
callq 0xe80f0
movq %rax, 0x290(%rsp)
cmpl $0x0, 0x2f4(%rsp)
jne 0x237c2
leaq 0x288(%rsp), %rdi
leaq 0x268(%rsp), %rsi
callq 0x24ca0
movl %eax, 0x2f4(%rsp)
cmpl $0x0, 0x2f4(%rsp)
jne 0x23a5e
movq 0x2c0(%rsp), %rdi
callq 0x11dfa0
movq %rax, 0x230(%rsp)
cmpq $0x0, 0x2b8(%rsp)
je 0x2380e
movq 0x2b8(%rsp), %rdi
movq 0x6187a1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdx
leaq 0x4f58ed(%rip), %rsi    # 0x5190f6
callq 0x121930
movq 0x298(%rsp), %rax
testb $0x1, 0x4d(%rax)
je 0x23936
jmp 0x23822
movq 0x2c0(%rsp), %rdi
leaq 0x4f58dc(%rip), %rsi    # 0x51910d
callq 0x11d550
movq 0x298(%rsp), %rax
testb $0x1, 0x4e(%rax)
jne 0x23861
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xde820
testb $0x1, %al
jne 0x2392f
movq 0x2c0(%rsp), %rdi
movq 0x230(%rsp), %rsi
callq 0x11dfd0
movq 0x2c0(%rsp), %rdi
leaq 0x4f588d(%rip), %rsi    # 0x519112
callq 0x11d550
movq 0x298(%rsp), %rax
testb $0x1, 0x4e(%rax)
jne 0x238b1
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xde820
testb $0x1, %al
jne 0x2392d
movq 0x298(%rsp), %rax
testb $0x1, 0x4e(%rax)
je 0x238cf
leaq 0x4f5851(%rip), %rdi    # 0x519117
movb $0x0, %al
callq 0xe7740
jmp 0x238ed
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x4f5846(%rip), %rdi    # 0x51912c
movb $0x0, %al
callq 0xe7740
movq 0x2c0(%rsp), %rdi
movq 0x230(%rsp), %rsi
callq 0x11dfd0
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x2f8(%rsp), %rdx
leaq 0x52676c(%rip), %rsi    # 0x54a08d
callq 0x24e80
movl %eax, 0x2f4(%rsp)
jmp 0x2392f
jmp 0x23931
jmp 0x23a49
jmp 0x23938
movq 0x2c0(%rsp), %rdi
leaq 0x4f5801(%rip), %rsi    # 0x519148
callq 0x11d550
movq 0x298(%rsp), %rax
testb $0x1, 0x4e(%rax)
jne 0x23977
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xde820
testb $0x1, %al
jne 0x23a45
movq 0x2c0(%rsp), %rdi
movq 0x230(%rsp), %rsi
callq 0x11dfd0
movq 0x2c0(%rsp), %rdi
leaq 0x4f57b2(%rip), %rsi    # 0x51914d
callq 0x11d550
movq 0x298(%rsp), %rax
testb $0x1, 0x4e(%rax)
jne 0x239c7
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xde820
testb $0x1, %al
jne 0x23a43
movq 0x298(%rsp), %rax
testb $0x1, 0x4e(%rax)
je 0x239e5
leaq 0x4f573b(%rip), %rdi    # 0x519117
movb $0x0, %al
callq 0xe7740
jmp 0x23a03
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x4f5730(%rip), %rdi    # 0x51912c
movb $0x0, %al
callq 0xe7740
movq 0x2c0(%rsp), %rdi
movq 0x230(%rsp), %rsi
callq 0x11dfd0
movq 0x2c0(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x2f8(%rsp), %rdx
leaq 0x4fb7c5(%rip), %rsi    # 0x51f1fc
callq 0x24e80
movl %eax, 0x2f4(%rsp)
jmp 0x23a45
jmp 0x23a47
jmp 0x23a49
movq 0x2c0(%rsp), %rdi
movq 0x230(%rsp), %rsi
callq 0x11dfd0
cmpl $0x0, 0x2f4(%rsp)
jne 0x23aa6
leaq 0x288(%rsp), %rdi
leaq 0x268(%rsp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0x250c0
movl %eax, 0x2f4(%rsp)
cmpl $0x0, 0x2f4(%rsp)
jne 0x23adc
cmpq $0x0, 0x2e8(%rsp)
jne 0x23adc
movq 0x2f8(%rsp), %rdi
leaq 0x4f5688(%rip), %rsi    # 0x519152
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x2f4(%rsp)
jne 0x24456
movq 0x250(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x2f8(%rsp), %rdx
leaq 0x5423bc(%rip), %rsi    # 0x565ec5
callq 0xdd320
movq %rax, 0x1f0(%rsp)
callq 0x11d4a0
movq %rax, 0x1e8(%rsp)
callq 0x11d4a0
movq %rax, 0x1e0(%rsp)
cmpq $0x0, 0x2b8(%rsp)
je 0x23b59
movq 0x2b8(%rsp), %rdi
movq 0x618456(%rip), %rax    # 0x63bfa0
movq (%rax), %rdx
leaq 0x4f561d(%rip), %rsi    # 0x519171
callq 0x121930
movq 0x288(%rsp), %rax
movq %rax, 0x200(%rsp)
leaq 0x1a80(%rip), %rdi      # 0x255f0
leaq 0x1ba9(%rip), %rsi      # 0x25720
xorl %eax, %eax
movl %eax, %edx
callq 0x1b7e90
movq %rax, 0x220(%rsp)
movq $0x0, 0x208(%rsp)
movq $0x0, 0x218(%rsp)
movq $0x0, 0x210(%rsp)
movq $0x0, 0x228(%rsp)
cmpq $0x0, 0x290(%rsp)
jne 0x23bfb
movq 0x6183d6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f243f(%rip), %rsi    # 0x516013
leaq 0x4f55a6(%rip), %rdx    # 0x519181
leaq 0x4f54e8(%rip), %rcx    # 0x5190ca
leaq 0x4f518f(%rip), %r8     # 0x518d78
movl $0x2a4, %r9d            # imm = 0x2A4
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23bfd
movq $0x0, 0x1f8(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x2f4(%rsp)
movb %al, 0xbb(%rsp)
jne 0x23c36
movq 0x1f8(%rsp), %rax
cmpq 0x2e8(%rsp), %rax
setb %al
movb %al, 0xbb(%rsp)
movb 0xbb(%rsp), %al
testb $0x1, %al
jne 0x23c46
jmp 0x23d14
movq 0x288(%rsp), %rdi
movq 0x290(%rsp), %rax
imulq $0x28, 0x1f8(%rsp), %rcx
addq %rcx, %rax
movq 0x10(%rax), %rsi
movq 0x290(%rsp), %rcx
imulq $0x28, 0x1f8(%rsp), %rax
addq %rax, %rcx
movq 0x290(%rsp), %rax
imulq $0x28, 0x1f8(%rsp), %rdx
addq %rdx, %rax
movq 0x18(%rax), %r8
movq 0x290(%rsp), %rax
imulq $0x28, 0x1f8(%rsp), %rdx
addq %rdx, %rax
movq 0x20(%rax), %r9
movq 0x2f8(%rsp), %rax
movq (%rcx), %rdx
movq 0x8(%rcx), %rcx
leaq 0x1a80(%rip), %r11      # 0x25740
leaq 0x200(%rsp), %r10
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x141710
movq %rax, 0x1d8(%rsp)
cmpq $0x0, 0x1d8(%rsp)
jne 0x23cf9
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
jmp 0x23cfb
movq 0x1f8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1f8(%rsp)
jmp 0x23c09
cmpl $0x0, 0x2f4(%rsp)
jne 0x24055
movq 0x220(%rsp), %rdi
callq 0x1ba1b0
movq %rax, 0x1d0(%rsp)
leaq 0x200(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x1c8(%rsp)
movq $0x0, 0x1b8(%rsp)
movq $0x0, 0x1b0(%rsp)
movq 0x220(%rsp), %rdi
callq 0x1b90e0
movq %rax, %rsi
leaq 0x4f5419(%rip), %rdi    # 0x519193
movb $0x0, %al
callq 0xe7740
movq 0x1d0(%rsp), %rdi
callq 0x1ba6d0
movq %rax, 0x1c0(%rsp)
cmpq $0x0, 0x1c0(%rsp)
je 0x24032
movq 0x1c8(%rsp), %rax
movq 0x10(%rax), %rax
subq $0x1, %rax
movq %rax, 0x1a8(%rsp)
movq 0x208(%rsp), %rax
movq %rax, 0x1b8(%rsp)
movq 0x1c8(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x23ebc
movq 0x1c0(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x1b8(%rsp), %rcx
imulq $0x18, 0x1a8(%rsp), %rdx
addq %rdx, %rcx
cmpq 0x10(%rcx), %rax
jne 0x23ebc
movq 0x1c0(%rsp), %rdi
movq 0x1b8(%rsp), %rsi
imulq $0x18, 0x1a8(%rsp), %rax
addq %rax, %rsi
callq 0x107390
testb $0x1, %al
jne 0x23e34
jmp 0x23ebc
movq 0x1b0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1b0(%rsp)
movq 0x1b8(%rsp), %rax
imulq $0x18, 0x1a8(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0xb0(%rsp)
movq 0x1b8(%rsp), %rdi
imulq $0x18, 0x1a8(%rsp), %rax
addq %rax, %rdi
movq 0x1c0(%rsp), %rsi
callq 0x107730
movq %rax, %rcx
movq 0xb0(%rsp), %rax
movq %rcx, 0x198(%rsp)
movq %rdx, 0x1a0(%rsp)
movq 0x198(%rsp), %rcx
movq %rcx, (%rax)
movq 0x1a0(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x24018
jmp 0x23ebe
jmp 0x23ec0
movq 0x1c8(%rsp), %rax
movq 0x10(%rax), %rax
addq $0x0, %rax
movq 0x1c8(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x23f83
movq $0x80, 0x190(%rsp)
xorl %eax, %eax
cmpq 0x190(%rsp), %rax
jbe 0x23f32
movq 0x61809f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f2108(%rip), %rsi    # 0x516013
leaq 0x4f5295(%rip), %rdx    # 0x5191a7
leaq 0x4f51b1(%rip), %rcx    # 0x5190ca
leaq 0x4f4e58(%rip), %r8     # 0x518d78
movl $0x2c5, %r9d            # imm = 0x2C5
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23f34
movq 0x190(%rsp), %rcx
movq 0x1c8(%rsp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x1c8(%rsp), %rax
movq (%rax), %rdi
movq 0x1c8(%rsp), %rax
imulq $0x18, 0x8(%rax), %rsi
leaq 0x4f4e0d(%rip), %rdx    # 0x518d78
movl $0x2c5, %ecx            # imm = 0x2C5
callq 0xe8540
movq %rax, %rcx
movq 0x1c8(%rsp), %rax
movq %rcx, (%rax)
jmp 0x23f85
movq 0x1c8(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x23fcb
movq 0x618006(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f206f(%rip), %rsi    # 0x516013
leaq 0x4f520d(%rip), %rdx    # 0x5191b8
leaq 0x4f5118(%rip), %rcx    # 0x5190ca
leaq 0x4f4dbf(%rip), %r8     # 0x518d78
movl $0x2c5, %r9d            # imm = 0x2C5
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23fcd
jmp 0x23fcf
movq 0x1c8(%rsp), %rax
movq (%rax), %rax
movq 0x1c8(%rsp), %rdx
movq 0x10(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x10(%rdx)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x1c0(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
jmp 0x24018
movq 0x1d0(%rsp), %rdi
callq 0x1ba470
movq %rax, 0x1c0(%rsp)
jmp 0x23d96
movq 0x1b0(%rsp), %rsi
leaq 0x4f5197(%rip), %rdi    # 0x5191d8
movb $0x0, %al
callq 0xe7740
movq 0x1d0(%rsp), %rdi
callq 0x1ba760
cmpq $0x0, 0x2b8(%rsp)
je 0x2407e
movq 0x2b8(%rsp), %rdi
movq 0x617f31(%rip), %rax    # 0x63bfa0
movq (%rax), %rdx
leaq 0x4f516a(%rip), %rsi    # 0x5191e3
callq 0x121930
cmpq $0x0, 0x2c8(%rsp)
jne 0x24096
callq 0x11d4a0
movq %rax, 0x2c8(%rsp)
cmpq $0x0, 0x2d0(%rsp)
jne 0x240b5
leaq 0x4f514a(%rip), %rdi    # 0x5191f2
callq 0x11d510
movq %rax, 0x2d0(%rsp)
movq $0x0, 0x1f8(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x2f4(%rsp)
movb %al, 0xaf(%rsp)
jne 0x240ee
movq 0x1f8(%rsp), %rax
cmpq 0x218(%rsp), %rax
setb %al
movb %al, 0xaf(%rsp)
movb 0xaf(%rsp), %al
testb $0x1, %al
jne 0x240fe
jmp 0x243bf
movq 0x208(%rsp), %rax
imulq $0x18, 0x1f8(%rsp), %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, 0x180(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x188(%rsp)
leaq 0x180(%rsp), %rdi
callq 0x107320
movq %rax, 0x178(%rsp)
movq 0x208(%rsp), %rax
imulq $0x18, 0x1f8(%rsp), %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, 0x170(%rsp)
movq 0x1e0(%rsp), %rdi
callq 0x11e110
movq 0x1e0(%rsp), %rdi
movq 0x170(%rsp), %rsi
callq 0x11d930
movq 0x1e0(%rsp), %rdi
leaq 0x529c9f(%rip), %rsi    # 0x54de2e
callq 0x11d550
movq 0x1e0(%rsp), %rdi
movq 0x180(%rsp), %rsi
callq 0x11d930
movq 0x1e0(%rsp), %rdi
leaq 0x529c76(%rip), %rsi    # 0x54de2e
callq 0x11d550
movq 0x1e0(%rsp), %rdi
movq 0x188(%rsp), %rsi
callq 0x11d930
movq 0x1e0(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x98(%rsp)
movq 0x1e0(%rsp), %rdi
callq 0x11dfa0
movq %rax, 0xa0(%rsp)
movq 0x288(%rsp), %rdi
movq 0x180(%rsp), %rsi
movq 0x188(%rsp), %rdx
xorl %ecx, %ecx
callq 0x141340
movq 0x98(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq %rax, %rdx
movq 0x178(%rsp), %rcx
movq 0x1f0(%rsp), %r9
movl $0x64, %r8d
callq 0xdbeb0
movq 0x178(%rsp), %rax
addq 0x240(%rsp), %rax
movq %rax, 0x240(%rsp)
cmpq $0x0, 0x2b0(%rsp)
je 0x243a4
movq 0x288(%rsp), %rdi
movq 0x180(%rsp), %rsi
callq 0x13e420
movq %rax, 0x160(%rsp)
movq 0x288(%rsp), %rdi
movq 0x160(%rsp), %rsi
callq 0x13e470
movq %rax, 0x150(%rsp)
movq 0x288(%rsp), %rdi
movq 0x160(%rsp), %rdx
leaq 0x158(%rsp), %rsi
callq 0x13e570
movq %rax, 0x148(%rsp)
movq 0x1e8(%rsp), %rdi
callq 0x11e110
movq 0x1e8(%rsp), %rdi
movq 0x148(%rsp), %rsi
movq 0x158(%rsp), %rdx
callq 0x11d830
movq 0x1e8(%rsp), %rdi
movq 0x180(%rsp), %rdx
addq $0x1, %rdx
subq 0x150(%rsp), %rdx
movq 0x188(%rsp), %rcx
addq $0x1, %rcx
subq 0x150(%rsp), %rcx
leaq 0x4f4ecc(%rip), %rsi    # 0x5191fc
movl $0x2, %r8d
callq 0x16c7e0
movq %rax, 0x168(%rsp)
movq 0x168(%rsp), %rdi
movq 0x2d0(%rsp), %rsi
callq 0x16c170
movq 0x168(%rsp), %rdi
leaq 0x550347(%rip), %rsi    # 0x5746ae
leaq 0x4f4ea3(%rip), %rdx    # 0x519211
callq 0x16d660
movq 0x168(%rsp), %rdi
movq 0x2b0(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
callq 0x171f90
movl %eax, 0x2f4(%rsp)
movq 0x168(%rsp), %rdi
callq 0x173180
jmp 0x243a6
movq 0x1f8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x1f8(%rsp)
jmp 0x240c1
movq 0x2d0(%rsp), %rdi
callq 0x11f560
movq $0x0, 0x2d0(%rsp)
movq 0x1f0(%rsp), %rdi
callq 0xde430
movq 0x220(%rsp), %rdi
callq 0x1b7f50
cmpq $0x0, 0x208(%rsp)
je 0x2443a
movq 0x208(%rsp), %rdi
leaq 0x4f496c(%rip), %rsi    # 0x518d78
movl $0x300, %edx            # imm = 0x300
callq 0xe88c0
movq $0x0, 0x210(%rsp)
movq $0x0, 0x218(%rsp)
movq $0x0, 0x208(%rsp)
jmp 0x2443c
movq 0x1e0(%rsp), %rdi
callq 0x11f560
movq 0x1e8(%rsp), %rdi
callq 0x11f560
cmpl $0x0, 0x2f4(%rsp)
jne 0x244f5
cmpq $0x0, 0x2b8(%rsp)
je 0x2448d
movq 0x2b8(%rsp), %rdi
movq 0x617b22(%rip), %rax    # 0x63bfa0
movq (%rax), %rdx
leaq 0x4f4d96(%rip), %rsi    # 0x51921e
callq 0x121930
movq 0x298(%rsp), %rax
testb $0x1, 0x4d(%rax)
je 0x244c8
movq 0x250(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x2f8(%rsp), %rdx
leaq 0x525bd3(%rip), %rsi    # 0x54a08d
callq 0x24e80
movl %eax, 0x2f4(%rsp)
jmp 0x244f3
movq 0x250(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x2f8(%rsp), %rdx
leaq 0x4fad15(%rip), %rsi    # 0x51f1fc
callq 0x24e80
movl %eax, 0x2f4(%rsp)
jmp 0x244f5
cmpl $0x0, 0x2f4(%rsp)
jne 0x24bde
cmpq $0x0, 0x2b8(%rsp)
je 0x2452c
movq 0x2b8(%rsp), %rdi
movq 0x617a83(%rip), %rax    # 0x63bfa0
movq (%rax), %rdx
leaq 0x4f4d0c(%rip), %rsi    # 0x519233
callq 0x121930
movq 0x298(%rsp), %rax
movsd 0x40(%rax), %xmm0
movsd 0x4f480f(%rip), %xmm1   # 0x518d50
ucomisd %xmm1, %xmm0
jne 0x2458c
jp 0x2458c
movsd 0x280(%rsp), %xmm0
movaps 0x4f43d7(%rip), %xmm2   # 0x518930
movq 0x240(%rsp), %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x4f43d2(%rip), %xmm2   # 0x518940
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x238(%rsp)
jmp 0x245a2
movq 0x298(%rsp), %rax
movsd 0x40(%rax), %xmm0
movsd %xmm0, 0x238(%rsp)
jmp 0x245a4
movsd 0x238(%rsp), %xmm0
xorps %xmm1, %xmm1
callq 0xec260
testb $0x1, %al
jne 0x245bb
jmp 0x245f3
movq 0x6179de(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f1a47(%rip), %rsi    # 0x516013
leaq 0x4f4c6f(%rip), %rdx    # 0x519242
leaq 0x4f4af0(%rip), %rcx    # 0x5190ca
leaq 0x4f4797(%rip), %r8     # 0x518d78
movl $0x31d, %r9d            # imm = 0x31D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x245f5
movq 0x298(%rsp), %rax
testb $0x1, 0x4c(%rax)
je 0x24612
callq 0x137040
movq %rax, 0x140(%rsp)
jmp 0x2461f
callq 0x136fc0
movq %rax, 0x140(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x250(%rsp), %rdi
callq 0x11dee0
movq 0x90(%rsp), %rdi
movq %rax, %rsi
callq 0x137130
movq 0x140(%rsp), %rdi
movq 0x2d8(%rsp), %rsi
callq 0x137080
movq 0x140(%rsp), %rdi
movsd 0x238(%rsp), %xmm0
callq 0x1371e0
movq 0x140(%rsp), %rdi
movq 0x298(%rsp), %rax
movl 0x48(%rax), %esi
callq 0x137680
movq 0x298(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x24700
leaq 0x576c7a(%rip), %rdi    # 0x59b327
callq 0x11d510
movq %rax, 0x138(%rsp)
movq 0x138(%rsp), %rdi
movq 0x298(%rsp), %rax
movq 0x28(%rax), %rsi
callq 0x11d750
movq 0x140(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x138(%rsp), %rdi
callq 0x11dee0
movq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x137970
movq 0x2a8(%rsp), %rdi
movsd 0x238(%rsp), %xmm0
movq 0x240(%rsp), %rdx
leaq 0x4f4b46(%rip), %rsi    # 0x519266
movb $0x1, %al
callq 0xe7cd0
movq 0x140(%rsp), %rdi
callq 0x137cc0
movq %rax, %rsi
leaq 0x4f4b4b(%rip), %rdi    # 0x519289
movb $0x0, %al
callq 0xe7740
movq 0x140(%rsp), %rdi
movq 0x2f8(%rsp), %rsi
callq 0x1a7cc0
movq %rax, 0x258(%rsp)
cmpq $0x0, 0x258(%rsp)
jne 0x24778
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
movq 0x140(%rsp), %rdi
callq 0x137ce0
cmpl $0x0, 0x2f4(%rsp)
jne 0x24bd1
movq $0x0, 0x128(%rsp)
cmpq $0x0, 0x2c8(%rsp)
jne 0x247b7
callq 0x11d4a0
movq %rax, 0x2c8(%rsp)
cmpq $0x0, 0x2d0(%rsp)
jne 0x247d6
leaq 0x4f4acf(%rip), %rdi    # 0x519298
callq 0x11d510
movq %rax, 0x2d0(%rsp)
jmp 0x247d8
xorl %eax, %eax
cmpl $0x0, 0x2f4(%rsp)
movb %al, 0x87(%rsp)
jne 0x2481c
movq 0x258(%rsp), %rdi
movq 0x2f8(%rsp), %rdx
leaq 0x120(%rsp), %rsi
callq 0x1a7950
movl %eax, 0x134(%rsp)
cmpl $0x0, %eax
sete %al
movb %al, 0x87(%rsp)
movb 0x87(%rsp), %al
testb $0x1, %al
jne 0x2482c
jmp 0x24b83
movq 0x120(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x128(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x128(%rsp)
movq 0x120(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x1a6ce0
movq 0x120(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x1a6d60
movq 0x120(%rsp), %rdi
callq 0x1a6c80
movq %rax, %rdi
leaq 0xe8(%rsp), %rcx
leaq 0xe8(%rsp), %r8
addq $0x8, %r8
leaq 0x4f49fd(%rip), %rsi    # 0x5192a2
leaq 0xe0(%rsp), %rdx
movb $0x0, %al
callq 0x19770
cmpl $0x3, %eax
je 0x248f4
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
movq 0x2f8(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x120(%rsp), %rdi
callq 0x1a6c80
movq 0x78(%rsp), %rdi
movq %rax, %rdx
leaq 0x4f49c1(%rip), %rsi    # 0x5192ae
movb $0x0, %al
callq 0xd88c0
movq 0x288(%rsp), %rdi
movq 0xe0(%rsp), %rdx
leaq 0xd8(%rsp), %rsi
callq 0x13e570
movq %rax, 0xc8(%rsp)
movq 0x288(%rsp), %rdi
movq 0xe0(%rsp), %rsi
callq 0x13e470
movq %rax, 0xd0(%rsp)
movq 0xe8(%rsp), %rax
subq 0xd0(%rsp), %rax
addq 0xf8(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0xe8(%rsp), %rax
subq 0xd0(%rsp), %rax
addq 0x100(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x298(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x120(%rsp), %rdi
callq 0x1a6c20
movq %rax, 0x30(%rsp)
movq 0xd8(%rsp), %rax
movl %eax, 0x3c(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x118(%rsp), %rdi
callq 0x1a7760
movsd %xmm0, 0x70(%rsp)
movq 0x118(%rsp), %rdi
callq 0x1a7710
movq %rax, 0x48(%rsp)
movq 0x108(%rsp), %rbx
movq 0x110(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x118(%rsp), %rdi
callq 0x1a7650
movsd %xmm0, 0x68(%rsp)
movq 0x118(%rsp), %rdi
callq 0x1a76b0
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rdx
movl 0x3c(%rsp), %ecx
movq 0x40(%rsp), %r8
movq 0x48(%rsp), %r9
movq 0x50(%rsp), %r11
movq 0x58(%rsp), %r10
movq 0x60(%rsp), %rax
movsd 0x68(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x70(%rsp), %xmm0
cvtss2sd %xmm2, %xmm2
leaq 0x4f485a(%rip), %rsi    # 0x5192c0
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x3, %al
callq 0xddca0
cmpq $0x0, 0x2b0(%rsp)
je 0x24b71
movq 0x120(%rsp), %rdi
callq 0x1a6f60
movl %eax, %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovel %ecx, %eax
movl %eax, 0xbc(%rsp)
movq 0x2c8(%rsp), %rdi
callq 0x11e110
movq 0x2c8(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xd8(%rsp), %rdx
callq 0x11d830
movq 0x2c8(%rsp), %rdi
movq 0xf8(%rsp), %rdx
movq 0x100(%rsp), %rcx
movl 0xbc(%rsp), %r8d
leaq 0x534875(%rip), %rsi    # 0x559378
callq 0x16c7e0
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rdi
movq 0x2d0(%rsp), %rsi
callq 0x16c170
movq 0xc0(%rsp), %rdi
leaq 0x54fb7a(%rip), %rsi    # 0x5746ae
leaq 0x4f47af(%rip), %rdx    # 0x5192ea
callq 0x16d660
movq 0xc0(%rsp), %rdi
movq 0x2b0(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
callq 0x171f90
movl %eax, 0x2f4(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x173180
movq 0x120(%rsp), %rdi
callq 0x1a6fb0
jmp 0x247d8
movq 0x2d0(%rsp), %rdi
callq 0x11f560
movq $0x0, 0x2d0(%rsp)
cmpl $0x0, 0x2f4(%rsp)
jne 0x24bbb
cmpl $0x2, 0x134(%rsp)
jne 0x24bbb
movl $0xffffffff, 0x2f4(%rsp) # imm = 0xFFFFFFFF
movq 0x128(%rsp), %rsi
leaq 0x4f4729(%rip), %rdi    # 0x5192f3
movb $0x0, %al
callq 0xe7740
movq 0x258(%rsp), %rdi
callq 0x1a7a70
movq 0x288(%rsp), %rdi
callq 0x13f640
cmpl $0x0, 0x2f4(%rsp)
jne 0x24c19
cmpq $0x0, 0x2b8(%rsp)
je 0x24c17
movq 0x2b8(%rsp), %rdi
movq 0x617391(%rip), %rax    # 0x63bfa0
movq (%rax), %rsi
callq 0x121d70
jmp 0x24c19
movq 0x2b8(%rsp), %rdi
callq 0x121f00
movq 0x260(%rsp), %rdi
callq 0xde430
movq 0x290(%rsp), %rdi
leaq 0x4f4136(%rip), %rsi    # 0x518d78
movl $0x38b, %edx            # imm = 0x38B
callq 0xe88c0
movq 0x2b0(%rsp), %rdi
callq 0x1b29d0
movq 0x2c0(%rsp), %rdi
callq 0x11f560
movq 0x2c8(%rsp), %rdi
callq 0x11f560
movq 0x250(%rsp), %rdi
callq 0x11f560
movq 0x2a8(%rsp), %rdi
callq 0xe7ed0
movl 0x2f4(%rsp), %eax
addq $0x320, %rsp            # imm = 0x320
popq %rbx
retq
nopl (%rax)