// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_condenseq_info.c
// Function: gt_condenseq_info_runner
static int gt_condenseq_info_runner(GT_UNUSED int argc, const char **argv,
                                        int parsed_args,
                                        void *tool_arguments,
                                        GtError *err)
{
  GtCondenseqInfoArguments *arguments = tool_arguments;
  int had_err = 0;
  GtCondenseq *ces = NULL;
  GtLogger *logger = NULL;

  gt_error_check(err);

  logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX, stderr);

  if (!had_err) {
    ces = gt_condenseq_new_from_file(argv[parsed_args], logger, err);
    if (ces == NULL)
      had_err = -1;
  }
  if (!had_err) {
    GtUword num, total;
    num = gt_condenseq_num_uniques(ces);
    total = gt_condenseq_total_unique_len(ces);
    printf(GT_WU "\tunique entries\n", num);
    printf(GT_WU "\tunique length\n", total);
    printf(GT_WU "\taverage unique length\n", total / num);
    if (arguments->align_len != GT_UNDEF_UINT)
      printf(GT_WU "\trelevant uniques (>= %u)\n",
             gt_condenseq_count_relevant_uniques(ces,
                                                 arguments->align_len),
             arguments->align_len);
    num = gt_condenseq_num_links(ces);
    total = gt_condenseq_total_link_len(ces);
    printf(GT_WU "\tlink entries\n", num);
    printf(GT_WU "\tlink length\n", total);
    printf(GT_WU "\taverage link length\n", total / num);
    printf(GT_WU "\ttotal length\n", gt_condenseq_total_length(ces));
  }

  if (!had_err && arguments->size) {
    GtUword size, links, uniques, eds, descs, ssp;
    size = gt_condenseq_size(ces, &uniques, &links, &eds, &descs, &ssp);
    printf(GT_WU "\tbytes total size\n", size);
    printf(GT_WU "\tbytes uniques size\n", uniques);
    printf(GT_WU "\tbytes links size (without editscripts)\n", links);
    printf(GT_WU "\tbytes editscripts size\n", eds);
    printf(GT_WU "\tbytes descriptions size\n", descs);
    printf(GT_WU "\tbytes ssptab size\n", ssp);
  }
  if (!had_err && arguments->gff) {
    had_err = gt_condenseq_output_to_gff3(ces, err);
  }
  if (!had_err && arguments->link != GT_UNDEF_UWORD) {
    if (arguments->link >= gt_condenseq_num_links(ces)) {
      gt_error_set(err, GT_WU " exceedes number of links: " GT_WU,
                   arguments->link, gt_condenseq_num_links(ces));
      had_err = -1;
    }
    else {
      GtUword match, mis, ins, del, vlen, size;
      const GtEditscript *es =
        gt_condenseq_link_editscript(ces, arguments->link);
      GtAlphabet *al = gt_condenseq_alphabet(ces);
      gt_editscript_get_stats(es, &match, &mis, &ins, &del);
      vlen = gt_editscript_get_target_len(es);
      gt_editscript_show(es, al);
      printf("target (v) len: " GT_WU "\n"
             GT_WU " matches\n"
             GT_WU " mismatches\n"
             GT_WU " indels\n",
             vlen, match, mis, ins + del);
      size = (GtUword) gt_editscript_size(es);
      printf(GT_WU "/" GT_WU " compressed size: %.2f\n",
             size, vlen, ((double) size / (double) vlen) * 100.0);
      gt_alphabet_delete(al);
    }
  }

  if (!had_err && arguments->dist) {
    GtFile *outfile = gt_file_new_from_fileptr(stdout);
    GtDiscDistri *dist = gt_condenseq_unique_length_dist(ces);
    printf("unique length distribution\n");
    gt_disc_distri_show(dist, outfile);
    gt_disc_distri_delete(dist);
    dist = gt_condenseq_link_length_dist(ces);
    printf("link length distribution\n");
    gt_disc_distri_show(dist, outfile);
    gt_disc_distri_delete(dist);
    gt_file_delete_without_handle(outfile);
  }
  if (!had_err && arguments->compdist) {
    GtFile *outfile = gt_file_new_from_fileptr(stdout);
    GtDiscDistri *dist = gt_condenseq_link_comp_dist(ces);
    printf("compression distribution\n");
    gt_disc_distri_show(dist, outfile);
    gt_disc_distri_delete(dist);
    gt_file_delete_without_handle(outfile);
  }
  gt_condenseq_delete(ces);
  gt_logger_delete(logger);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r13
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %rbx
testq %r8, %r8
je 0xa2ab3
movq %r13, %rdi
callq 0x101a9a
testb %al, %al
jne 0xa2ed6
movzbl 0xc(%r15), %edi
movq 0x4214c1(%rip), %rax    # 0x4c3f80
movq (%rax), %rdx
leaq 0x2ace0b(%rip), %rsi    # 0x34f8d4
callq 0x108ed0
movq %rax, %rsi
movslq %ebp, %rax
movq (%rbx,%rax,8), %rdi
movq %rsi, 0x28(%rsp)
movq %r13, %rdx
callq 0x132916
movq %rax, %r14
testq %rax, %rax
je 0xa2c90
movq %r14, %rdi
callq 0x1320f4
movq %rax, %rbx
movq %r14, %rdi
callq 0x132121
movq %rax, %r12
leaq 0x2afe9d(%rip), %rdi    # 0x3529ab
movq %rbx, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2afea0(%rip), %rdi    # 0x3529bf
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rax
xorl %edx, %edx
divq %rbx
leaq 0x2afe9a(%rip), %rdi    # 0x3529d2
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movl 0x8(%r15), %esi
cmpl $-0x1, %esi
je 0xa2b68
movq %r14, %rdi
callq 0x1342f2
movl 0x8(%r15), %edx
leaq 0x2afe8f(%rip), %rdi    # 0x3529ed
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r14, %rdi
callq 0x1320ef
movq %rax, %rbx
movq %r14, %rdi
callq 0x1320fc
movq %rax, %rbp
leaq 0x2afe86(%rip), %rdi    # 0x352a0b
xorl %r12d, %r12d
movq %rbx, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2afe84(%rip), %rdi    # 0x352a1d
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbp, %rax
xorl %edx, %edx
divq %rbx
leaq 0x2afe7c(%rip), %rdi    # 0x352a2e
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r14, %rdi
callq 0x13212a
leaq 0x2afe7c(%rip), %rdi    # 0x352a47
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
cmpb $0x1, 0x10(%r15)
jne 0xa2c79
leaq 0x10(%rsp), %rbp
leaq 0x18(%rsp), %rbx
movq %rsp, %rcx
leaq 0x8(%rsp), %r8
leaq 0x30(%rsp), %r9
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x13431b
leaq 0x2afe4d(%rip), %rdi    # 0x352a59
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq (%rbp), %rsi
leaq 0x2afe4e(%rip), %rdi    # 0x352a6f
xorl %eax, %eax
callq 0x17070
movq (%rbx), %rsi
leaq 0x2afe55(%rip), %rdi    # 0x352a87
xorl %eax, %eax
callq 0x17070
movq %rsp, %rax
movq (%rax), %rsi
leaq 0x2afe6d(%rip), %rdi    # 0x352ab3
xorl %eax, %eax
callq 0x17070
leaq 0x8(%rsp), %rax
movq (%rax), %rsi
leaq 0x2afe73(%rip), %rdi    # 0x352acf
xorl %eax, %eax
callq 0x17070
leaq 0x30(%rsp), %rax
movq (%rax), %rsi
leaq 0x2afe7a(%rip), %rdi    # 0x352aec
xorl %eax, %eax
callq 0x17070
cmpb $0x1, 0xd(%r15)
jne 0xa2c96
movq %r14, %rdi
movq %r13, %rsi
callq 0x133a7c
movl %eax, %r12d
jmp 0xa2c96
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
testl %r12d, %r12d
je 0xa2d8c
testl %r12d, %r12d
jne 0xa2d68
cmpb $0x1, 0xe(%r15)
jne 0xa2d1d
movq 0x421232(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdi
callq 0x103c55
movq %rax, %r13
movq %r14, %rdi
callq 0x1340be
movq %rax, %rbx
leaq 0x2afeac(%rip), %rdi    # 0x352b7f
callq 0x17bd0
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe9ad1
movq %rbx, %rdi
callq 0xe9ff6
movq %r14, %rdi
callq 0x134113
movq %rax, %rbx
leaq 0x2afe9d(%rip), %rdi    # 0x352b9a
callq 0x17bd0
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe9ad1
movq %rbx, %rdi
callq 0xe9ff6
movq %r13, %rdi
callq 0x103ae6
cmpb $0x1, 0xf(%r15)
jne 0xa2d68
movq 0x4211bd(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdi
callq 0x103c55
movq %rax, %rbx
movq %r14, %rdi
callq 0x134162
movq %rax, %r15
leaq 0x2afe6b(%rip), %rdi    # 0x352bb3
callq 0x17bd0
movq %r15, %rdi
movq %rbx, %rsi
callq 0xe9ad1
movq %r15, %rdi
callq 0xe9ff6
movq %rbx, %rdi
callq 0x103ae6
movq %r14, %rdi
callq 0x1323d6
movq 0x28(%rsp), %rdi
callq 0x10916a
movl %r12d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rbx
cmpq $-0x1, %rbx
je 0xa2ea1
movq %r14, %rdi
callq 0x1320ef
cmpq %rax, %rbx
jae 0xa2ea9
movq (%r15), %rsi
movq %r14, %rdi
callq 0x1342d1
movq %rax, %r13
movq %r14, %rdi
callq 0x1342ea
movq %rax, %r12
movq %rax, 0x20(%rsp)
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rsp, %rcx
leaq 0x8(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %r8
callq 0x13e38e
movq %r13, %rdi
callq 0x13e8e1
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
callq 0x13f7b5
leaq 0x18(%rsp), %rax
movq (%rax), %rdx
leaq 0x10(%rsp), %rax
movq (%rax), %rcx
movq (%rbx), %r8
movq %rsp, %rax
addq (%rax), %r8
leaq 0x2afd0a(%rip), %rdi    # 0x352b25
xorl %r12d, %r12d
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq %r13, %rdi
callq 0x13f58b
movq %rax, %xmm1
movq 0x2adaa3(%rip), %xmm2   # 0x3508e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x2adaa7(%rip), %xmm3   # 0x3508f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rbp, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
mulsd 0x2af972(%rip), %xmm0   # 0x3527f0
leaq 0x2afcdb(%rip), %rdi    # 0x352b60
movq %rax, %rsi
movq %rbp, %rdx
movb $0x1, %al
callq 0x17070
movq 0x20(%rsp), %rdi
callq 0xd335d
jmp 0xa2c9f
xorl %r12d, %r12d
jmp 0xa2c9f
movq (%r15), %rbx
movq %r14, %rdi
callq 0x1320ef
leaq 0x2afc48(%rip), %rsi    # 0x352b03
movq %r13, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0xa2c9f
callq 0x19708
nop