// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/gt_sketch.c
// Function: gt_sketch_runner
static int gt_sketch_runner(int argc, const char **argv, int parsed_args,
                              void *tool_arguments, GT_UNUSED GtError *err)
{
  GtSketchArguments *arguments = tool_arguments;
  GtNodeStream *in_stream = NULL,
               *add_introns_stream = NULL,
               *gff3_out_stream = NULL,
               *feature_stream = NULL,
               *sort_stream = NULL,
               *last_stream;
  GtFeatureIndex *features = NULL;
  const char *file;
  char *seqid = NULL;
  GtRange qry_range, sequence_region_range;
  GtArray *results = NULL;
  GtStyle *sty = NULL;
  GtStr *prog, *defaultstylefile = NULL;
  GtDiagram *d = NULL;
  GtLayout *l = NULL;
  GtImageInfo* ii = NULL;
  GtCanvas *canvas = NULL;
  GtUword height;
  bool has_seqid;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(arguments);

  prog = gt_str_new();
  gt_str_append_cstr_nt(prog, argv[0],
                        gt_cstr_length_up_to_char(argv[0], ' '));
  defaultstylefile = gt_get_gtdata_path(gt_str_get(prog), err);
  gt_str_delete(prog);
  if (!defaultstylefile)
    had_err = -1;
  if (!had_err) {
    gt_str_append_cstr(defaultstylefile, "/sketch/default.style");
  }

  file = argv[parsed_args];
  if (!had_err) {
    /* create feature index */
    features = gt_feature_index_memory_new();
    parsed_args++;

    /* create an input stream */
    if (strcmp(gt_str_get(arguments->input), "gff") == 0)
    {
      in_stream = gt_gff3_in_stream_new_unsorted(argc - parsed_args,
                                                 argv + parsed_args);
      if (arguments->verbose)
        gt_gff3_in_stream_show_progress_bar((GtGFF3InStream*) in_stream);
    } else if (strcmp(gt_str_get(arguments->input), "bed") == 0)
    {
      if (argc - parsed_args == 0)
        in_stream = gt_bed_in_stream_new(NULL);
      else
        in_stream = gt_bed_in_stream_new(argv[parsed_args]);
    } else if (strcmp(gt_str_get(arguments->input), "gtf") == 0)
    {
      if (argc - parsed_args == 0)
        in_stream = gt_gtf_in_stream_new(NULL);
      else
        in_stream = gt_gtf_in_stream_new(argv[parsed_args]);
    }
    last_stream = in_stream;

    /* create add introns stream if -addintrons was used */
    if (arguments->addintrons) {
      sort_stream = gt_sort_stream_new(last_stream);
      add_introns_stream = gt_add_introns_stream_new(sort_stream);
      last_stream = add_introns_stream;
    }

    /* create gff3 output stream if -pipe was used */
    if (arguments->pipe) {
      gff3_out_stream = gt_gff3_out_stream_new(last_stream, NULL);
      last_stream = gff3_out_stream;
    }

    /* create feature stream */
    feature_stream = gt_feature_stream_new(last_stream, features);

    /* pull the features through the stream and free them afterwards */
    had_err = gt_node_stream_pull(feature_stream, err);

    gt_node_stream_delete(feature_stream);
    gt_node_stream_delete(gff3_out_stream);
    gt_node_stream_delete(sort_stream);
    gt_node_stream_delete(add_introns_stream);
    gt_node_stream_delete(in_stream);
  }

  if (!had_err) {
    had_err = gt_feature_index_has_seqid(features,
                                         &has_seqid,
                                         gt_str_get(arguments->seqid),
                                         err);
  }

  /* if seqid is empty, take first one added to index */
  if (!had_err && strcmp(gt_str_get(arguments->seqid),"") == 0) {
    seqid = gt_feature_index_get_first_seqid(features, err);
    if (seqid == NULL) {
      gt_error_set(err, "GFF input file must contain a sequence region!");
      had_err = -1;
    }
  }
  else if (!had_err && !has_seqid) {
    gt_error_set(err, "sequence region '%s' does not exist in GFF input file",
                 gt_str_get(arguments->seqid));
    had_err = -1;
  }
  else if (!had_err)
    seqid = gt_cstr_dup(gt_str_get(arguments->seqid));

  results = gt_array_new(sizeof (GtGenomeNode*));
  if (!had_err) {
    had_err = gt_feature_index_get_range_for_seqid(features,
                                                   &sequence_region_range,
                                                   seqid,
                                                   err);
  }
  if (!had_err) {
    qry_range.start = (arguments->start == GT_UNDEF_UWORD ?
                         sequence_region_range.start :
                         arguments->start);
    qry_range.end   = (arguments->end == GT_UNDEF_UWORD ?
                         sequence_region_range.end :
                         arguments->end);
  }

  if (!had_err) {
    if (arguments->verbose)
      fprintf(stderr, "# of results: "GT_WU"\n", gt_array_size(results));

    /* find and load style file */
    if (!(sty = gt_style_new(err)))
      had_err = -1;
    if (gt_str_length(arguments->stylefile) == 0) {
      gt_str_append_str(arguments->stylefile, defaultstylefile);
    } else {
      if (!had_err && gt_file_exists(gt_str_get(arguments->stylefile))) {
        if (arguments->unsafe)
          gt_style_unsafe_mode(sty);
      }
      else
      {
        had_err = -1;
        gt_error_set(err, "style file '%s' does not exist!",
                          gt_str_get(arguments->stylefile));
      }
    }
    if (!had_err)
      had_err = gt_style_load_file(sty, gt_str_get(arguments->stylefile), err);
  }

  if (!had_err) {
    /* create and write image file */
    if (!(d = gt_diagram_new(features, seqid, &qry_range, sty, err)))
      had_err = -1;
    if (!had_err && arguments->flattenfiles)
      gt_diagram_set_track_selector_func(d, flattened_file_track_selector,
                                         NULL);
    if (had_err || !(l = gt_layout_new(d, arguments->width, sty, err)))
      had_err = -1;
    if (!had_err)
      had_err = gt_layout_get_height(l, &height, err);
    if (!had_err) {
      ii = gt_image_info_new();

      if (strcmp(gt_str_get(arguments->format),"pdf")==0) {
        canvas = gt_canvas_cairo_file_new(sty, GT_GRAPHICS_PDF,
                                          arguments->width,
                                          height, ii, err);
      }
      else if (strcmp(gt_str_get(arguments->format),"ps")==0) {
        canvas = gt_canvas_cairo_file_new(sty, GT_GRAPHICS_PS,
                                          arguments->width,
                                          height, ii, err);
      }
      else if (strcmp(gt_str_get(arguments->format),"svg")==0) {
        canvas = gt_canvas_cairo_file_new(sty, GT_GRAPHICS_SVG,
                                          arguments->width,
                                          height, ii, err);
      }
      else {
        canvas = gt_canvas_cairo_file_new(sty, GT_GRAPHICS_PNG,
                                          arguments->width,
                                          height, ii, err);
      }
      if (!canvas)
        had_err = -1;
      if (!had_err) {
        had_err = gt_layout_sketch(l, canvas, err);
      }
      if (!had_err) {
        if (arguments->showrecmaps) {
          GtUword i;
          const GtRecMap *rm;
          for (i = 0; i < gt_image_info_num_of_rec_maps(ii) ;i++) {
            char buf[BUFSIZ];
            rm = gt_image_info_get_rec_map(ii, i);
            (void) gt_rec_map_format_html_imagemap_coords(rm, buf, BUFSIZ);
            printf("%s, %s\n",
                   buf,
                   gt_feature_node_get_type(gt_rec_map_get_genome_feature(rm)));
          }
        }
        if (arguments->use_streams) {
          GtFile *outfile;
          GtStr *str = gt_str_new();
          gt_canvas_cairo_file_to_stream((GtCanvasCairoFile*) canvas, str);
          outfile = gt_file_open(GT_FILE_MODE_UNCOMPRESSED, file, "w+", err);
          if (outfile) {
            gt_file_xwrite(outfile, gt_str_get_mem(str), gt_str_length(str));
            gt_file_delete(outfile);
          } else {
            had_err = -1;
          }
          gt_str_delete(str);
        } else {
          had_err = gt_canvas_cairo_file_to_file((GtCanvasCairoFile*) canvas,
                                                 file,
                                                 err);
        }
      }
    }
  }

  /* free */
  gt_free(seqid);
  gt_canvas_delete(canvas);
  gt_layout_delete(l);
  gt_image_info_delete(ii);
  gt_style_delete(sty);
  gt_diagram_delete(d);
  gt_array_delete(results);
  gt_str_delete(defaultstylefile);
  gt_feature_index_delete(features);

  return had_err;
}

// Assembly:
subq $0x2178, %rsp           # imm = 0x2178
movl %edi, 0x2174(%rsp)
movq %rsi, 0x2168(%rsp)
movl %edx, 0x2164(%rsp)
movq %rcx, 0x2158(%rsp)
movq %r8, 0x2150(%rsp)
movq 0x2158(%rsp), %rax
movq %rax, 0x2148(%rsp)
movq $0x0, 0x2140(%rsp)
movq $0x0, 0x2138(%rsp)
movq $0x0, 0x2130(%rsp)
movq $0x0, 0x2128(%rsp)
movq $0x0, 0x2120(%rsp)
movq $0x0, 0x2110(%rsp)
movq $0x0, 0x2100(%rsp)
movq $0x0, 0x20d8(%rsp)
movq $0x0, 0x20d0(%rsp)
movq $0x0, 0x20c0(%rsp)
movq $0x0, 0x20b8(%rsp)
movq $0x0, 0x20b0(%rsp)
movq $0x0, 0x20a8(%rsp)
movq $0x0, 0x20a0(%rsp)
movl $0x0, 0x2090(%rsp)
cmpq $0x0, 0x2150(%rsp)
je 0x326946
movq 0x2150(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x32690e
jmp 0x326946
movq 0x31568b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x1ef6f4(%rip), %rsi    # 0x516013
leaq 0x1ef899(%rip), %rdx    # 0x5161bf
leaq 0x271cfe(%rip), %rcx    # 0x59862b
leaq 0x2719bb(%rip), %r8     # 0x5982ef
movl $0x115, %r9d            # imm = 0x115
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x326948
jmp 0x32694a
cmpq $0x0, 0x2148(%rsp)
jne 0x32698d
movq 0x315644(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x1ef6ad(%rip), %rsi    # 0x516013
leaq 0x2541f2(%rip), %rdx    # 0x57ab5f
leaq 0x271cb7(%rip), %rcx    # 0x59862b
leaq 0x271974(%rip), %r8     # 0x5982ef
movl $0x116, %r9d            # imm = 0x116
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x32698f
callq 0x11d4a0
movq %rax, 0x20c8(%rsp)
movq 0x20c8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x2168(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x2168(%rsp), %rax
movq (%rax), %rdi
movl $0x20, %esi
callq 0xa3030
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq %rax, %rdx
callq 0x11d830
movq 0x20c8(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x2150(%rsp), %rsi
callq 0xe0950
movq %rax, 0x20c0(%rsp)
movq 0x20c8(%rsp), %rdi
callq 0x11f560
cmpq $0x0, 0x20c0(%rsp)
jne 0x326a28
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x2090(%rsp)
jne 0x326a46
movq 0x20c0(%rsp), %rdi
leaq 0x271efb(%rip), %rsi    # 0x59893c
callq 0x11d550
movq 0x2168(%rsp), %rax
movslq 0x2164(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x2108(%rsp)
cmpl $0x0, 0x2090(%rsp)
jne 0x326ced
callq 0x16bc30
movq %rax, 0x2110(%rsp)
movl 0x2164(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2164(%rsp)
movq 0x2148(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x1f2536(%rip), %rsi    # 0x518fdf
callq 0x19980
cmpl $0x0, %eax
jne 0x326b05
movl 0x2174(%rsp), %edi
subl 0x2164(%rsp), %edi
movq 0x2168(%rsp), %rsi
movslq 0x2164(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x1746b0
movq %rax, 0x2140(%rsp)
movq 0x2148(%rsp), %rax
testb $0x1, 0x1(%rax)
je 0x326b00
movq 0x2140(%rsp), %rdi
callq 0x1741e0
jmp 0x326be5
movq 0x2148(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x1fb54d(%rip), %rsi    # 0x52206d
callq 0x19980
cmpl $0x0, %eax
jne 0x326b73
movl 0x2174(%rsp), %eax
subl 0x2164(%rsp), %eax
cmpl $0x0, %eax
jne 0x326b50
xorl %eax, %eax
movl %eax, %edi
callq 0x134680
movq %rax, 0x2140(%rsp)
jmp 0x326b71
movq 0x2168(%rsp), %rax
movslq 0x2164(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x134680
movq %rax, 0x2140(%rsp)
jmp 0x326be3
movq 0x2148(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x1efbbe(%rip), %rsi    # 0x51674c
callq 0x19980
cmpl $0x0, %eax
jne 0x326be1
movl 0x2174(%rsp), %eax
subl 0x2164(%rsp), %eax
cmpl $0x0, %eax
jne 0x326bbe
xorl %eax, %eax
movl %eax, %edi
callq 0x182240
movq %rax, 0x2140(%rsp)
jmp 0x326bdf
movq 0x2168(%rsp), %rax
movslq 0x2164(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x182240
movq %rax, 0x2140(%rsp)
jmp 0x326be1
jmp 0x326be3
jmp 0x326be5
movq 0x2140(%rsp), %rax
movq %rax, 0x2118(%rsp)
movq 0x2148(%rsp), %rax
testb $0x1, 0x2(%rax)
je 0x326c3d
movq 0x2118(%rsp), %rdi
callq 0x1da550
movq %rax, 0x2120(%rsp)
movq 0x2120(%rsp), %rdi
callq 0x129200
movq %rax, 0x2138(%rsp)
movq 0x2138(%rsp), %rax
movq %rax, 0x2118(%rsp)
movq 0x2148(%rsp), %rax
testb $0x1, (%rax)
je 0x326c73
movq 0x2118(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x176d50
movq %rax, 0x2130(%rsp)
movq 0x2130(%rsp), %rax
movq %rax, 0x2118(%rsp)
movq 0x2118(%rsp), %rdi
movq 0x2110(%rsp), %rsi
callq 0x1710c0
movq %rax, 0x2128(%rsp)
movq 0x2128(%rsp), %rdi
movq 0x2150(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0x2090(%rsp)
movq 0x2128(%rsp), %rdi
callq 0x1b1cb0
movq 0x2130(%rsp), %rdi
callq 0x1b1cb0
movq 0x2120(%rsp), %rdi
callq 0x1b1cb0
movq 0x2138(%rsp), %rdi
callq 0x1b1cb0
movq 0x2140(%rsp), %rdi
callq 0x1b1cb0
cmpl $0x0, 0x2090(%rsp)
jne 0x326d39
movq 0x2110(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x2148(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq 0x58(%rsp), %rdi
movq %rax, %rdx
movq 0x2150(%rsp), %rcx
leaq 0x2097(%rsp), %rsi
callq 0x16a010
movl %eax, 0x2090(%rsp)
cmpl $0x0, 0x2090(%rsp)
jne 0x326db6
movq 0x2148(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x2768ca(%rip), %rsi    # 0x59d628
callq 0x19980
cmpl $0x0, %eax
jne 0x326db6
movq 0x2110(%rsp), %rdi
movq 0x2150(%rsp), %rsi
callq 0x169c20
movq %rax, 0x2100(%rsp)
cmpq $0x0, 0x2100(%rsp)
jne 0x326db1
movq 0x2150(%rsp), %rdi
leaq 0x27189d(%rip), %rsi    # 0x59863c
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
jmp 0x326e3a
cmpl $0x0, 0x2090(%rsp)
jne 0x326e0b
testb $0x1, 0x2097(%rsp)
jne 0x326e0b
movq 0x2150(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x2148(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq 0x50(%rsp), %rdi
movq %rax, %rdx
leaq 0x271874(%rip), %rsi    # 0x59866b
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
jmp 0x326e38
cmpl $0x0, 0x2090(%rsp)
jne 0x326e36
movq 0x2148(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xa2db0
movq %rax, 0x2100(%rsp)
jmp 0x326e38
jmp 0x326e3a
movl $0x8, %edi
callq 0x80990
movq %rax, 0x20d8(%rsp)
cmpl $0x0, 0x2090(%rsp)
jne 0x326e82
movq 0x2110(%rsp), %rdi
movq 0x2100(%rsp), %rdx
movq 0x2150(%rsp), %rcx
leaq 0x20e0(%rsp), %rsi
callq 0x169e70
movl %eax, 0x2090(%rsp)
cmpl $0x0, 0x2090(%rsp)
jne 0x326f04
movq 0x2148(%rsp), %rax
cmpq $-0x1, 0x28(%rax)
jne 0x326eaa
movq 0x20e0(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0x326ebb
movq 0x2148(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x20f0(%rsp)
movq 0x2148(%rsp), %rax
cmpq $-0x1, 0x30(%rax)
jne 0x326ee6
movq 0x20e8(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x326ef7
movq 0x2148(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x20f8(%rsp)
cmpl $0x0, 0x2090(%rsp)
jne 0x32707a
movq 0x2148(%rsp), %rax
testb $0x1, 0x1(%rax)
je 0x326f52
movq 0x315079(%rip), %rax    # 0x63bfa0
movq (%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x20d8(%rsp), %rdi
callq 0x81370
movq 0x38(%rsp), %rdi
movq %rax, %rdx
leaq 0x271756(%rip), %rsi    # 0x5986a1
movb $0x0, %al
callq 0x199f0
movq 0x2150(%rsp), %rdi
callq 0x32c620
movq %rax, 0x20d0(%rsp)
cmpq $0x0, %rax
jne 0x326f78
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
movq 0x2148(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jne 0x326fad
movq 0x2148(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x20c0(%rsp), %rsi
callq 0x11d750
jmp 0x327034
cmpl $0x0, 0x2090(%rsp)
jne 0x326ff3
movq 0x2148(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xde820
testb $0x1, %al
jne 0x326fd6
jmp 0x326ff3
movq 0x2148(%rsp), %rax
testb $0x1, 0x5(%rax)
je 0x326ff1
movq 0x20d0(%rsp), %rdi
callq 0x32cb90
jmp 0x327032
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
movq 0x2150(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x2148(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dee0
movq 0x30(%rsp), %rdi
movq %rax, %rdx
leaq 0x271689(%rip), %rsi    # 0x5986b4
movb $0x0, %al
callq 0xd88c0
jmp 0x327034
cmpl $0x0, 0x2090(%rsp)
jne 0x327078
movq 0x20d0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x2148(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dee0
movq 0x28(%rsp), %rdi
movq %rax, %rsi
movq 0x2150(%rsp), %rdx
callq 0x32cea0
movl %eax, 0x2090(%rsp)
jmp 0x32707a
cmpl $0x0, 0x2090(%rsp)
jne 0x32750a
movq 0x2110(%rsp), %rdi
movq 0x2100(%rsp), %rsi
movq 0x20d0(%rsp), %rcx
movq 0x2150(%rsp), %r8
leaq 0x20f0(%rsp), %rdx
callq 0x31ffb0
movq %rax, 0x20b8(%rsp)
cmpq $0x0, %rax
jne 0x3270ce
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x2090(%rsp)
jne 0x3270fe
movq 0x2148(%rsp), %rax
testb $0x1, 0x4(%rax)
je 0x3270fe
movq 0x20b8(%rsp), %rdi
leaq 0x4ab(%rip), %rsi       # 0x3275a0
xorl %eax, %eax
movl %eax, %edx
callq 0x320330
cmpl $0x0, 0x2090(%rsp)
jne 0x32713e
movq 0x20b8(%rsp), %rdi
movq 0x2148(%rsp), %rax
movl 0x38(%rax), %esi
movq 0x20d0(%rsp), %rdx
movq 0x2150(%rsp), %rcx
callq 0x329220
movq %rax, 0x20b0(%rsp)
cmpq $0x0, %rax
jne 0x327149
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x2090(%rsp)
jne 0x327177
movq 0x20b0(%rsp), %rdi
movq 0x2150(%rsp), %rdx
leaq 0x2098(%rsp), %rsi
callq 0x329f60
movl %eax, 0x2090(%rsp)
cmpl $0x0, 0x2090(%rsp)
jne 0x327508
callq 0x328b90
movq %rax, 0x20a8(%rsp)
movq 0x2148(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x28d9d5(%rip), %rsi    # 0x5b4b82
callq 0x19980
cmpl $0x0, %eax
jne 0x3271f8
movq 0x20d0(%rsp), %rdi
movq 0x2148(%rsp), %rax
movl 0x38(%rax), %eax
movl %eax, %edx
movq 0x2098(%rsp), %rcx
movq 0x20a8(%rsp), %r8
movq 0x2150(%rsp), %r9
xorl %esi, %esi
callq 0x4ef0c0
movq %rax, 0x20a0(%rsp)
jmp 0x32730a
movq 0x2148(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x28d989(%rip), %rsi    # 0x5b4b9c
callq 0x19980
cmpl $0x0, %eax
jne 0x327261
movq 0x20d0(%rsp), %rdi
movq 0x2148(%rsp), %rax
movl 0x38(%rax), %eax
movl %eax, %edx
movq 0x2098(%rsp), %rcx
movq 0x20a8(%rsp), %r8
movq 0x2150(%rsp), %r9
movl $0x2, %esi
callq 0x4ef0c0
movq %rax, 0x20a0(%rsp)
jmp 0x327308
movq 0x2148(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x28d939(%rip), %rsi    # 0x5b4bb5
callq 0x19980
cmpl $0x0, %eax
jne 0x3272c7
movq 0x20d0(%rsp), %rdi
movq 0x2148(%rsp), %rax
movl 0x38(%rax), %eax
movl %eax, %edx
movq 0x2098(%rsp), %rcx
movq 0x20a8(%rsp), %r8
movq 0x2150(%rsp), %r9
movl $0x3, %esi
callq 0x4ef0c0
movq %rax, 0x20a0(%rsp)
jmp 0x327306
movq 0x20d0(%rsp), %rdi
movq 0x2148(%rsp), %rax
movl 0x38(%rax), %eax
movl %eax, %edx
movq 0x2098(%rsp), %rcx
movq 0x20a8(%rsp), %r8
movq 0x2150(%rsp), %r9
movl $0x1, %esi
callq 0x4ef0c0
movq %rax, 0x20a0(%rsp)
jmp 0x327308
jmp 0x32730a
cmpq $0x0, 0x20a0(%rsp)
jne 0x327320
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x2090(%rsp)
jne 0x32734e
movq 0x20b0(%rsp), %rdi
movq 0x20a0(%rsp), %rsi
movq 0x2150(%rsp), %rdx
callq 0x3297b0
movl %eax, 0x2090(%rsp)
cmpl $0x0, 0x2090(%rsp)
jne 0x327506
movq 0x2148(%rsp), %rax
testb $0x1, 0x3(%rax)
je 0x32742f
movq $0x0, 0x2088(%rsp)
movq 0x2088(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20a8(%rsp), %rdi
callq 0x328d30
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x32742d
movq 0x20a8(%rsp), %rdi
movq 0x2088(%rsp), %rsi
callq 0x328ec0
movq %rax, 0x2080(%rsp)
movq 0x2080(%rsp), %rdi
leaq 0x80(%rsp), %rsi
movl $0x2000, %edx           # imm = 0x2000
callq 0x32c530
leaq 0x80(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x2080(%rsp), %rdi
callq 0x32c410
movq %rax, %rdi
callq 0x16d430
movq 0x18(%rsp), %rsi
movq %rax, %rdx
leaq 0x2712c7(%rip), %rdi    # 0x5986d4
movb $0x0, %al
callq 0x19070
movq 0x2088(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x2088(%rsp)
jmp 0x32737a
jmp 0x32742f
movq 0x2148(%rsp), %rax
testb $0x1, 0x7(%rax)
je 0x3274e0
callq 0x11d4a0
movq %rax, 0x70(%rsp)
movq 0x20a0(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x4eef70
movq 0x2108(%rsp), %rsi
movq 0x2150(%rsp), %rcx
xorl %edi, %edi
leaq 0x1ef22e(%rip), %rdx    # 0x5166a4
callq 0xdd3f0
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x3274c9
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rdi
callq 0x11df50
movq %rax, 0x10(%rsp)
movq 0x70(%rsp), %rdi
callq 0x11dfa0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0xde230
movq 0x78(%rsp), %rdi
callq 0xde430
jmp 0x3274d4
movl $0xffffffff, 0x2090(%rsp) # imm = 0xFFFFFFFF
movq 0x70(%rsp), %rdi
callq 0x11f560
jmp 0x327504
movq 0x20a0(%rsp), %rdi
movq 0x2108(%rsp), %rsi
movq 0x2150(%rsp), %rdx
callq 0x4eee50
movl %eax, 0x2090(%rsp)
jmp 0x327506
jmp 0x327508
jmp 0x32750a
movq 0x2100(%rsp), %rdi
leaq 0x270dd6(%rip), %rsi    # 0x5982ef
movl $0x1e3, %edx            # imm = 0x1E3
callq 0xe88c0
movq 0x20a0(%rsp), %rdi
callq 0x31f730
movq 0x20b0(%rsp), %rdi
callq 0x329700
movq 0x20a8(%rsp), %rdi
callq 0x328c70
movq 0x20d0(%rsp), %rdi
callq 0x32f620
movq 0x20b8(%rsp), %rdi
callq 0x320bc0
movq 0x20d8(%rsp), %rdi
callq 0x81f80
movq 0x20c0(%rsp), %rdi
callq 0x11f560
movq 0x2110(%rsp), %rdi
callq 0x169460
movl 0x2090(%rsp), %eax
addq $0x2178, %rsp           # imm = 0x2178
retq
nopw (%rax,%rax)