// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_stat.c
// Function: gt_stat_runner
static int gt_stat_runner(int argc, const char **argv, int parsed_args,
                          void *tool_arguments, GtError *err)
{
  StatArguments *arguments = tool_arguments;
  GtNodeStream *gff3_in_stream, *sort_stream, *add_introns_stream = NULL,
               *stat_stream;
  int had_err;
  gt_error_check(err);

  /* create a gff3 input stream */
  gff3_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*) gff3_in_stream);

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

  /* create stat stream */
  stat_stream = gt_stat_stream_new(arguments->addintrons
                                   ? add_introns_stream : gff3_in_stream,
                                   arguments->gene_length_distribution,
                                   arguments->gene_score_distribution,
                                   arguments->exon_length_distribution,
                                   arguments->exon_number_distribution,
                                   arguments->intron_length_distribution,
                                   arguments->cds_length_distribution,
                                   arguments->used_sources);

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

  /* show statistics */
  if (!had_err)
    gt_stat_stream_show_stats((GtStatStream*) stat_stream, arguments->outfp);

  /* free */
  gt_node_stream_delete(stat_stream);
  gt_node_stream_delete(gff3_in_stream);

  return had_err;
}

// Assembly:
subq $0x78, %rsp
movl %edi, 0x74(%rsp)
movq %rsi, 0x68(%rsp)
movl %edx, 0x64(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq $0x0, 0x30(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x7821e
movq 0x50(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x781e6
jmp 0x7821e
movq 0x5c3db3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x49de1c(%rip), %rsi    # 0x516013
leaq 0x49dfc1(%rip), %rdx    # 0x5161bf
leaq 0x4b50a8(%rip), %rcx    # 0x52d2ad
leaq 0x4b4e93(%rip), %r8     # 0x52d09f
movl $0x84, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x78220
movl 0x74(%rsp), %edi
subl 0x64(%rsp), %edi
movq 0x68(%rsp), %rsi
movslq 0x64(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x1746b0
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rax
testb $0x1, 0x8(%rax)
je 0x78258
movq 0x40(%rsp), %rdi
callq 0x1741e0
movq 0x48(%rsp), %rax
testb $0x1, 0x7(%rax)
je 0x78281
movq 0x40(%rsp), %rdi
callq 0x1da550
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdi
callq 0x129200
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rax
testb $0x1, 0x7(%rax)
je 0x78298
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x782a2
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rax
movb (%rax), %sil
movq 0x48(%rsp), %rax
movb 0x1(%rax), %dl
movq 0x48(%rsp), %rax
movb 0x3(%rax), %cl
movq 0x48(%rsp), %rax
movb 0x2(%rax), %r8b
movq 0x48(%rsp), %rax
movb 0x4(%rax), %r9b
movq 0x48(%rsp), %rax
movb 0x5(%rax), %r10b
movq 0x48(%rsp), %rax
movb 0x6(%rax), %al
andb $0x1, %sil
andb $0x1, %dl
andb $0x1, %cl
andb $0x1, %r8b
andb $0x1, %r9b
andb $0x1, %r10b
andb $0x1, %al
movzbl %sil, %esi
movzbl %dl, %edx
movzbl %cl, %ecx
movzbl %r8b, %r8d
movzbl %r9b, %r9d
movzbl %r10b, %r10d
movl %r10d, (%rsp)
movzbl %al, %eax
movl %eax, 0x8(%rsp)
callq 0x1e2b50
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0x24(%rsp)
cmpl $0x0, 0x24(%rsp)
jne 0x78352
movq 0x28(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x1e2c70
movq 0x28(%rsp), %rdi
callq 0x1b1cb0
movq 0x40(%rsp), %rdi
callq 0x1b1cb0
movl 0x24(%rsp), %eax
addq $0x78, %rsp
retq
nop