// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %rbx
movl %edx, %r12d
movq %rsi, %r15
movl %edi, %ebp
testq %r8, %r8
je 0x52bce
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x52c77
subl %r12d, %ebp
movslq %r12d, %rax
leaq (%r15,%rax,8), %rsi
movl %ebp, %edi
callq 0xdeebd
movq %rax, %r15
cmpb $0x1, 0x8(%rbx)
jne 0x52bf0
movq %r15, %rdi
callq 0xdeb22
cmpb $0x1, 0x7(%rbx)
movq %r15, %rdi
jne 0x52c14
movq %r15, %rdi
callq 0x11a5d8
movq %rax, %rdi
callq 0xb46bc
testb $0x1, 0x7(%rbx)
movq %r15, %rdi
cmovneq %rax, %rdi
movzbl (%rbx), %esi
movzbl 0x1(%rbx), %edx
movzbl 0x3(%rbx), %ecx
movzbl 0x2(%rbx), %r8d
movzbl 0x4(%rbx), %r9d
movzbl 0x5(%rbx), %eax
movzbl 0x6(%rbx), %r10d
pushq %r10
pushq %rax
callq 0x11fdf1
popq %rcx
popq %rdx
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x102b93
movl %eax, %ebp
testl %eax, %eax
jne 0x52c5c
movq 0x18(%rbx), %rsi
movq %r12, %rdi
callq 0x11fe81
movq %r12, %rdi
callq 0x10297b
movq %r15, %rdi
callq 0x10297b
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x3e52ea(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x29238b(%rip), %rsi    # 0x2e5013
leaq 0x292530(%rip), %rdx    # 0x2e51bf
leaq 0x2a9420(%rip), %rcx    # 0x2fc0b6
leaq 0x2a920b(%rip), %r8     # 0x2fbea8
movl $0x84, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop