// File: /workspace/github_c_makefile_star2_O2/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, %r12
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
testq %r8, %r8
je 0x21d8a
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2218d
movzbl 0xc(%r15), %edi
movq 0x4161d2(%rip), %rax    # 0x437f68
movq (%rax), %rdx
leaq 0x2c4b34(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %rbx
movslq %ebp, %rax
movq (%r14,%rax,8), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0xc2100
movq %rax, %r14
pushq $-0x1
popq %rbp
testq %rax, %rax
je 0x2216c
movq %r14, %rdi
callq 0xc1747
movq %rax, %r13
movq %r14, %rdi
callq 0xc176f
movq %rax, %rbp
leaq 0x2c7bb5(%rip), %rdi    # 0x2e999b
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2c7bb8(%rip), %rdi    # 0x2e99af
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbp, %rax
xorl %edx, %edx
divq %r13
leaq 0x2c7bb2(%rip), %rdi    # 0x2e99c2
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movl 0x8(%r15), %esi
cmpl $-0x1, %esi
je 0x21e40
movq %r14, %rdi
callq 0xc3b3f
movl 0x8(%r15), %edx
leaq 0x2c7ba7(%rip), %rdi    # 0x2e99dd
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r14, %rdi
callq 0xc1742
movq %rax, %r13
movq %r14, %rdi
callq 0xc174f
movq %rax, %rbp
leaq 0x2c7b9e(%rip), %rdi    # 0x2e99fb
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2c7b9f(%rip), %rdi    # 0x2e9a0d
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbp, %rax
xorl %edx, %edx
divq %r13
leaq 0x2c7b97(%rip), %rdi    # 0x2e9a1e
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r14, %rdi
callq 0xc1778
leaq 0x2c7b97(%rip), %rdi    # 0x2e9a37
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
cmpb $0x1, 0x10(%r15)
jne 0x21f53
leaq 0x20(%rsp), %r13
leaq 0x28(%rsp), %rbp
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x30(%rsp), %r9
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0xc3b64
leaq 0x2c7b66(%rip), %rdi    # 0x2e9a49
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq (%r13), %rsi
leaq 0x2c7b67(%rip), %rdi    # 0x2e9a5f
xorl %eax, %eax
callq 0x17070
movq (%rbp), %rsi
leaq 0x2c7b6d(%rip), %rdi    # 0x2e9a77
xorl %eax, %eax
callq 0x17070
leaq 0x10(%rsp), %rax
movq (%rax), %rsi
leaq 0x2c7b83(%rip), %rdi    # 0x2e9aa3
xorl %eax, %eax
callq 0x17070
leaq 0x18(%rsp), %rax
movq (%rax), %rsi
leaq 0x2c7b89(%rip), %rdi    # 0x2e9abf
xorl %eax, %eax
callq 0x17070
leaq 0x30(%rsp), %rax
movq (%rax), %rsi
leaq 0x2c7b90(%rip), %rdi    # 0x2e9adc
xorl %eax, %eax
callq 0x17070
cmpb $0x1, 0xd(%r15)
jne 0x21f6f
movq %r14, %rdi
movq %r12, %rsi
callq 0xc32d2
movl %eax, %ebp
testl %eax, %eax
jne 0x2216c
movq %rbx, 0x8(%rsp)
movq (%r15), %rbx
cmpq $-0x1, %rbx
je 0x2207e
movq %r14, %rdi
callq 0xc1742
cmpq %rax, %rbx
jae 0x22142
movq (%r15), %rsi
movq %r14, %rdi
callq 0xc3aeb
movq %rax, %rbp
movq %r14, %rdi
callq 0xc3b37
movq %rax, %r12
leaq 0x28(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x18(%rsp), %rbx
movq %rbp, %rdi
movq %rbx, %r8
callq 0xce994
movq %rbp, %rdi
callq 0xcedcd
movq %rax, %r13
movq %rbp, %rdi
movq %r12, %rsi
callq 0xcfa88
leaq 0x28(%rsp), %rax
movq (%rax), %rdx
leaq 0x20(%rsp), %rax
movq (%rax), %rcx
movq (%rbx), %r8
leaq 0x10(%rsp), %rax
addq (%rax), %r8
leaq 0x2c7b13(%rip), %rdi    # 0x2e9b15
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbp, %rdi
callq 0xcf913
movq %rax, %xmm1
movq 0x2c58bf(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x2c58c3(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r13, %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 0x2c777e(%rip), %xmm0   # 0x2e97e0
leaq 0x2c7ae7(%rip), %rdi    # 0x2e9b50
movq %rax, %rsi
movq %r13, %rdx
movb $0x1, %al
callq 0x17070
movq %r12, %rdi
callq 0x568b5
cmpb $0x1, 0xe(%r15)
jne 0x220f3
movq 0x415e24(%rip), %rax    # 0x437eb0
movq (%rax), %rdi
callq 0x8d2a4
movq %rax, %r12
movq %r14, %rdi
callq 0xc38b5
movq %rax, %rbx
leaq 0x2c7ac6(%rip), %rdi    # 0x2e9b6f
callq 0x17b60
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6dab5
movq %rbx, %rdi
callq 0x6e064
movq %r14, %rdi
callq 0xc3900
movq %rax, %rbx
leaq 0x2c7ab7(%rip), %rdi    # 0x2e9b8a
callq 0x17b60
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6dab5
movq %rbx, %rdi
callq 0x6e064
movq %r12, %rdi
callq 0x8d080
xorl %ebp, %ebp
cmpb $0x1, 0xf(%r15)
jne 0x22167
movq 0x415dad(%rip), %rax    # 0x437eb0
movq (%rax), %rdi
callq 0x8d2a4
movq %rax, %rbx
movq %r14, %rdi
callq 0xc3948
movq %rax, %r15
leaq 0x2c7a83(%rip), %rdi    # 0x2e9ba3
callq 0x17b60
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6dab5
movq %r15, %rdi
callq 0x6e064
movq %rbx, %rdi
callq 0x8d080
jmp 0x22167
movq (%r15), %rbx
movq %r14, %rdi
callq 0xc1742
leaq 0x2c799f(%rip), %rsi    # 0x2e9af3
movq %r12, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
movq 0x8(%rsp), %rbx
movq %r14, %rdi
callq 0xc1b0c
movq %rbx, %rdi
callq 0x92fd0
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x415dd4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c2e75(%rip), %rsi    # 0x2e5013
leaq 0x2c301a(%rip), %rdx    # 0x2e51bf
leaq 0x2c77d6(%rip), %rcx    # 0x2e9982
leaq 0x2c7635(%rip), %r8     # 0x2e97e8
pushq $0x72
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop