// File: /workspace/github_c_makefile_star2_O3/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 0xa0823
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
jne 0xa0c2a
movzbl 0xc(%r15), %edi
movq 0x418751(%rip), %rax    # 0x4b8f80
movq (%rax), %rdx
leaq 0x2a609b(%rip), %rsi    # 0x3468d4
callq 0x103e40
movq %rax, %rbx
movslq %ebp, %rax
movq (%r14,%rax,8), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x12c8eb
movq %rax, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xa0c09
movq %r14, %rdi
callq 0x12c0d5
movq %rax, %r13
movq %r14, %rdi
callq 0x12c102
movq %rax, %rbp
leaq 0x2a911a(%rip), %rdi    # 0x34999b
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2a911d(%rip), %rdi    # 0x3499af
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbp, %rax
xorl %edx, %edx
divq %r13
leaq 0x2a9117(%rip), %rdi    # 0x3499c2
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movl 0x8(%r15), %esi
cmpl $-0x1, %esi
je 0xa08db
movq %r14, %rdi
callq 0x12e299
movl 0x8(%r15), %edx
leaq 0x2a910c(%rip), %rdi    # 0x3499dd
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r14, %rdi
callq 0x12c0d0
movq %rax, %r13
movq %r14, %rdi
callq 0x12c0dd
movq %rax, %rbp
leaq 0x2a9103(%rip), %rdi    # 0x3499fb
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x2a9104(%rip), %rdi    # 0x349a0d
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbp, %rax
xorl %edx, %edx
divq %r13
leaq 0x2a90fc(%rip), %rdi    # 0x349a1e
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r14, %rdi
callq 0x12c10b
leaq 0x2a90fc(%rip), %rdi    # 0x349a37
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
cmpb $0x1, 0x10(%r15)
jne 0xa09ee
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 0x12e2c2
leaq 0x2a90cb(%rip), %rdi    # 0x349a49
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq (%r13), %rsi
leaq 0x2a90cc(%rip), %rdi    # 0x349a5f
xorl %eax, %eax
callq 0x17070
movq (%rbp), %rsi
leaq 0x2a90d2(%rip), %rdi    # 0x349a77
xorl %eax, %eax
callq 0x17070
leaq 0x10(%rsp), %rax
movq (%rax), %rsi
leaq 0x2a90e8(%rip), %rdi    # 0x349aa3
xorl %eax, %eax
callq 0x17070
leaq 0x18(%rsp), %rax
movq (%rax), %rsi
leaq 0x2a90ee(%rip), %rdi    # 0x349abf
xorl %eax, %eax
callq 0x17070
leaq 0x30(%rsp), %rax
movq (%rax), %rsi
leaq 0x2a90f5(%rip), %rdi    # 0x349adc
xorl %eax, %eax
callq 0x17070
cmpb $0x1, 0xd(%r15)
jne 0xa0a0a
movq %r14, %rdi
movq %r12, %rsi
callq 0x12da11
movl %eax, %ebp
testl %eax, %eax
jne 0xa0c09
movq %rbx, 0x8(%rsp)
movq (%r15), %rbx
cmpq $-0x1, %rbx
je 0xa0b19
movq %r14, %rdi
callq 0x12c0d0
cmpq %rax, %rbx
jae 0xa0bdd
movq (%r15), %rsi
movq %r14, %rdi
callq 0x12e278
movq %rax, %rbp
movq %r14, %rdi
callq 0x12e291
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 0x137cab
movq %rbp, %rdi
callq 0x1381ec
movq %rax, %r13
movq %rbp, %rdi
movq %r12, %rsi
callq 0x139018
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 0x2a9078(%rip), %rdi    # 0x349b15
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbp, %rdi
callq 0x138dee
movq %rax, %xmm1
movq 0x2a6e24(%rip), %xmm2   # 0x3478e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x2a6e28(%rip), %xmm3   # 0x3478f0
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 0x2a8ce3(%rip), %xmm0   # 0x3497e0
leaq 0x2a904c(%rip), %rdi    # 0x349b50
movq %rax, %rsi
movq %r13, %rdx
movb $0x1, %al
callq 0x17070
movq %r12, %rdi
callq 0xd0e1c
cmpb $0x1, 0xe(%r15)
jne 0xa0b8e
movq 0x4183b1(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdi
callq 0xfed85
movq %rax, %r12
movq %r14, %rdi
callq 0x12e065
movq %rax, %rbx
leaq 0x2a902b(%rip), %rdi    # 0x349b6f
callq 0x17bd0
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe55d7
movq %rbx, %rdi
callq 0xe5a93
movq %r14, %rdi
callq 0x12e0ba
movq %rax, %rbx
leaq 0x2a901c(%rip), %rdi    # 0x349b8a
callq 0x17bd0
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe55d7
movq %rbx, %rdi
callq 0xe5a93
movq %r12, %rdi
callq 0xfec16
xorl %ebp, %ebp
cmpb $0x1, 0xf(%r15)
jne 0xa0c04
movq 0x41833a(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdi
callq 0xfed85
movq %rax, %rbx
movq %r14, %rdi
callq 0x12e109
movq %rax, %r15
leaq 0x2a8fe8(%rip), %rdi    # 0x349ba3
callq 0x17bd0
movq %r15, %rdi
movq %rbx, %rsi
callq 0xe55d7
movq %r15, %rdi
callq 0xe5a93
movq %rbx, %rdi
callq 0xfec16
jmp 0xa0c04
movq (%r15), %rbx
movq %r14, %rdi
callq 0x12c0d0
leaq 0x2a8f04(%rip), %rsi    # 0x349af3
movq %r12, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x8(%rsp), %rbx
movq %r14, %rdi
callq 0x12c3a7
movq %rbx, %rdi
callq 0x1040e0
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x19696
nop