// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/assembly_stats_calculator.c
// Function: gt_assembly_stats_calculator_show
void gt_assembly_stats_calculator_show(GtAssemblyStatsCalculator *asc,
    GtLogger *logger)
{
  Nstats nstats;
  unsigned int i;

  gt_assert(asc != NULL);

  /* defaults are N50/N80 */
  if (gt_array_size(asc->nstats) == 0) {
    gt_assembly_stats_calculator_register_nstat(asc, 50, NULL);
    gt_assembly_stats_calculator_register_nstat(asc, 80, NULL);
  }

  nstats.nofstats = 0;
  gt_array_sort_stable(asc->nstats, gt_assembly_stats_calculator_cmp_nstat);
  for (i = 0; i < gt_array_size(asc->nstats); i++) {
    GtUword v = *(GtUword*) gt_array_get(asc->nstats, i);
    initNstat(i, "", v, (GtUint64) (asc->sumlength * ((float) v / 100U)));
  }
  if (asc->genome_length > 0) {
    GtUword j;
    for (j = 0; j < gt_array_size(asc->nstats); j++) {
      GtUword v = *(GtUword*) gt_array_get(asc->nstats, j);
      initNstat(i + j, "G", v,
                (GtUint64) (asc->genome_length * ((float) v / 100U)));
    }
  }

  initLimit(0, 500ULL);
  initLimit(1, 1000ULL);
  initLimit(2, 10000ULL);
  initLimit(3, 100000ULL);
  initLimit(4, 1000000ULL);
  nstats.current_len = 0;
  nstats.current_num = 0;
  nstats.half_num = (GtUint64) (asc->numofseq >> 1);
  nstats.fourth_num = nstats.half_num >> 1;
  nstats.three_fourth_num = nstats.fourth_num + nstats.half_num;
  nstats.median = 0;
  nstats.first_quartile = 0;
  nstats.third_quartile = 0;
  gt_disc_distri_foreach_in_reverse_order(asc->lengths, calcNstats, &nstats);

  gt_logger_log(logger, "number of contigs:     "Formatuint64_t"",
                PRINTuint64_tcast(asc->numofseq));
  if (asc->genome_length > 0)
  {
    gt_logger_log(logger, "genome length:         "GT_WU"",
                  PRINTuint64_tcast(asc->genome_length));
  }
  gt_logger_log(logger, "total contigs length:  "Formatuint64_t"",
                PRINTuint64_tcast(asc->sumlength));
  if (asc->genome_length > 0)
  {
    gt_logger_log(logger, "   as %% of genome:     %.2f %%", (double)
                  asc->sumlength * 100 / asc->genome_length);
  }
  gt_logger_log(logger, "mean contig size:      %.2f",
                (double) asc->sumlength / asc->numofseq);
  gt_logger_log(logger, "contig size first quartile: " GT_LLU,
                nstats.first_quartile);
  gt_logger_log(logger, "median contig size:         " GT_LLU, nstats.median);
  gt_logger_log(logger, "contig size third quartile: " GT_LLU,
                nstats.third_quartile);
  gt_logger_log(logger, "longest contig:             " GT_WU, asc->maxlength);
  gt_logger_log(logger, "shortest contig:            " GT_WU, asc->minlength);
  gt_logger_log(logger, "contigs > 500 nt:           " GT_LLU " (%.2f %%)",
                nstats.larger_than_limit[0], (double)
                nstats.larger_than_limit[0] * 100 / asc->numofseq);
  gt_logger_log(logger, "contigs > 1K nt:            " GT_LLU " (%.2f %%)",
                nstats.larger_than_limit[1], (double)
                nstats.larger_than_limit[1] * 100 / asc->numofseq);
  gt_logger_log(logger, "contigs > 10K nt:           " GT_LLU " (%.2f %%)",
                nstats.larger_than_limit[2], (double)
                nstats.larger_than_limit[2] * 100 / asc->numofseq);
  gt_logger_log(logger, "contigs > 100K nt:          " GT_LLU " (%.2f %%)",
                nstats.larger_than_limit[3], (double)
                nstats.larger_than_limit[3] * 100 / asc->numofseq);
  gt_logger_log(logger, "contigs > 1M nt:            " GT_LLU " (%.2f %%)",
                nstats.larger_than_limit[4], (double)
                nstats.larger_than_limit[4] * 100 / asc->numofseq);
  for (i = 0; i < nstats.nofstats ; i++)
  {
    if (nstats.nvalue[i] > 0)
    {
      gt_logger_log(logger, "N%s%02d                "GT_WU"", nstats.name[i],
          (int) nstats.val[i], nstats.nvalue[i]);
      gt_logger_log(logger, "L%s%02d                "GT_WU"", nstats.name[i],
          (int) nstats.val[i], nstats.lvalue[i]);
    }
    else
    {
      gt_logger_log(logger, "N%s%02d                n.a.",
          nstats.name[i], (int) nstats.val[i]);
      gt_logger_log(logger, "L%s%02d                n.a.",
          nstats.name[i], (int) nstats.val[i]);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
testq %rdi, %rdi
je 0xbb56f
movq %rdi, %r14
movq %rsi, 0x8(%rsp)
movq 0x30(%rdi), %rdi
callq 0x586a4
testq %rax, %rax
jne 0xbaea8
pushq $0x32
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0xbad79
pushq $0x50
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0xbad79
andl $0x0, 0x240(%rsp)
movq 0x30(%r14), %rdi
leaq 0x6ec(%rip), %rsi       # 0xbb5a7
callq 0x58809
xorl %ebp, %ebp
movl 0x240(%rsp), %ebx
leaq 0x2af6a0(%rip), %r12    # 0x36a570
movl %ebp, %r15d
movq 0x30(%r14), %rdi
callq 0x586a4
cmpq %r15, %rax
jbe 0xbaf9b
movq 0x30(%r14), %rdi
movq %r15, %rsi
callq 0x581aa
movq (%rax), %rax
movq %r12, 0x10(%rsp,%r15,8)
movq %rax, 0x1f0(%rsp,%r15,8)
movq 0x8(%r14), %rcx
testq %rcx, %rcx
js 0xbaf11
cvtsi2ss %rcx, %xmm0
jmp 0xbaf26
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
testq %rax, %rax
js 0xbaf32
cvtsi2ss %rax, %xmm1
jmp 0xbaf47
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
divss 0x239379(%rip), %xmm1   # 0x2f42c8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x25c579(%rip), %xmm1   # 0x3174e0
cvttss2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movq %rdx, 0xf0(%rsp,%r15,8)
andq $0x0, 0x150(%rsp,%r15,8)
andq $0x0, 0x1a0(%rsp,%r15,8)
movb $0x0, 0x60(%rsp,%r15)
incl %ebp
movl %ebp, %ebx
jmp 0xbaed0
movl %ebx, 0x240(%rsp)
cmpq $0x0, 0x20(%r14)
je 0xbb09f
movl 0x240(%rsp), %ebx
leaq (%rsp,%r15), %r12
addq $0x60, %r12
leaq (%rsp,%r15,8), %r13
addq $0x1f0, %r13            # imm = 0x1F0
xorl %r15d, %r15d
movq 0x30(%r14), %rdi
callq 0x586a4
cmpq %rax, %r15
jae 0xbb098
movq 0x30(%r14), %rdi
movq %r15, %rsi
callq 0x581aa
movq (%rax), %rax
leaq 0x290436(%rip), %rcx    # 0x34b428
movq %rcx, -0x1e0(%r13,%r15,8)
movq %rax, (%r13,%r15,8)
movq 0x20(%r14), %rcx
testq %rcx, %rcx
js 0xbb00f
cvtsi2ss %rcx, %xmm0
jmp 0xbb024
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
testq %rax, %rax
js 0xbb030
cvtsi2ss %rax, %xmm1
jmp 0xbb045
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
divss 0x23927b(%rip), %xmm1   # 0x2f42c8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subss 0x25c47b(%rip), %xmm1   # 0x3174e0
cvttss2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movq %rdx, -0x100(%r13,%r15,8)
andq $0x0, -0xa0(%r13,%r15,8)
andq $0x0, -0x50(%r13,%r15,8)
movb $0x0, (%r12,%r15)
incl %ebp
incq %r15
movl %ebp, %ebx
jmp 0xbafca
movl %ebx, 0x240(%rsp)
leaq 0x10(%rsp), %rdx
movq $0x1f4, 0xb0(%rdx) # imm = 0x1F4
andq $0x0, 0x88(%rdx)
movq $0x3e8, 0xb8(%rdx) # imm = 0x3E8
xorpd %xmm0, %xmm0
movupd %xmm0, 0x90(%rdx)
movq $0x2710, 0xc0(%rdx) # imm = 0x2710
movq $0x186a0, 0xc8(%rdx) # imm = 0x186A0
movupd %xmm0, 0xa0(%rdx)
movq $0xf4240, 0xd0(%rdx) # imm = 0xF4240
movupd %xmm0, 0x60(%rdx)
movq (%r14), %rax
movq %rax, %rcx
shrq %rcx
movq %rcx, 0x80(%rdx)
shrq $0x2, %rax
movq %rax, 0x78(%rdx)
addq %rcx, %rax
movq %rax, 0x138(%rdx)
andq $0x0, 0xd8(%rdx)
andq $0x0, 0x70(%rdx)
andq $0x0, 0x130(%rdx)
movq 0x28(%r14), %rdi
leaq -0x47d(%rip), %rsi      # 0xbacc1
callq 0x6dd4f
movq (%r14), %rdx
leaq 0x25c4fc(%rip), %rsi    # 0x317649
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x20(%r14), %rdx
testq %rdx, %rdx
je 0xbb176
leaq 0x25c4f8(%rip), %rsi    # 0x317664
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x8(%r14), %rdx
leaq 0x25c4fe(%rip), %rsi    # 0x31767f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x20(%r14), %rax
testq %rax, %rax
je 0xbb1f3
movsd 0x8(%r14), %xmm1
movsd 0x22c73e(%rip), %xmm2   # 0x2e78e0
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x22c743(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x22e61b(%rip), %xmm0   # 0x2e97e0
movq %rax, %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
leaq 0x25c4b1(%rip), %rsi    # 0x31769a
movq %rbx, %rdi
movb $0x1, %al
callq 0x92e71
movdqu (%r14), %xmm1
movdqa 0x25c2a0(%rip), %xmm0   # 0x3174a0
pand %xmm1, %xmm0
por 0x25c2a4(%rip), %xmm0   # 0x3174b0
psrlq $0x20, %xmm1
por 0x25c2a7(%rip), %xmm1   # 0x3174c0
subpd 0x25c2af(%rip), %xmm1   # 0x3174d0
addpd %xmm0, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
divsd %xmm1, %xmm0
leaq 0x25c482(%rip), %rsi    # 0x3176ba
movq %rbx, %rdi
movb $0x1, %al
callq 0x92e71
movq 0x80(%rsp), %rdx
leaq 0x25c485(%rip), %rsi    # 0x3176d6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0xe8(%rsp), %rdx
leaq 0x25c48d(%rip), %rsi    # 0x3176f7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x140(%rsp), %rdx
leaq 0x25c495(%rip), %rsi    # 0x317718
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x18(%r14), %rdx
leaq 0x25c4a1(%rip), %rsi    # 0x317739
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x10(%r14), %rdx
leaq 0x25c4ac(%rip), %rsi    # 0x317759
movq %rbx, %rdi
xorl %eax, %eax
callq 0x92e71
movq 0x98(%rsp), %rdx
movq %rdx, %xmm1
movq 0x22c614(%rip), %xmm0   # 0x2e78e0
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movdqa %xmm0, %xmm2
movapd 0x22c614(%rip), %xmm0   # 0x2e78f0
subpd %xmm0, %xmm1
movapd %xmm0, %xmm3
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x22e4e8(%rip), %xmm0   # 0x2e97e0
movq (%r14), %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
leaq 0x25c45d(%rip), %rsi    # 0x317779
movq %rbx, %rdi
movb $0x1, %al
callq 0x92e71
movq 0xa0(%rsp), %rdx
movq %rdx, %xmm1
movq 0x22c5a5(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x22c5a9(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x22e481(%rip), %xmm0   # 0x2e97e0
movq (%r14), %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
leaq 0x25c421(%rip), %rsi    # 0x3177a4
movq %rbx, %rdi
movb $0x1, %al
callq 0x92e71
movq 0xa8(%rsp), %rdx
movq %rdx, %xmm1
movq 0x22c53e(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x22c542(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x22e41a(%rip), %xmm0   # 0x2e97e0
movq (%r14), %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
leaq 0x25c3e5(%rip), %rsi    # 0x3177cf
movq %rbx, %rdi
movb $0x1, %al
callq 0x92e71
movq 0xb0(%rsp), %rdx
movq %rdx, %xmm1
movq 0x22c4d7(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x22c4db(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x22e3b3(%rip), %xmm0   # 0x2e97e0
movq (%r14), %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
leaq 0x25c3a9(%rip), %rsi    # 0x3177fa
movq %rbx, %rdi
movb $0x1, %al
callq 0x92e71
movq 0xb8(%rsp), %rdx
movq %rdx, %xmm1
movq 0x22c470(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x22c474(%rip), %xmm3   # 0x2e78f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x22e34c(%rip), %xmm0   # 0x2e97e0
movq (%r14), %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
leaq 0x25c36d(%rip), %rsi    # 0x317825
movq %rbx, %rdi
movb $0x1, %al
callq 0x92e71
leaq 0x25c3bd(%rip), %r14    # 0x317886
leaq 0x25c3d2(%rip), %r15    # 0x3178a2
leaq 0x25c379(%rip), %r12    # 0x317850
leaq 0x25c38d(%rip), %r13    # 0x31786b
xorl %ebp, %ebp
movl 0x240(%rsp), %eax
cmpq %rax, %rbp
jae 0xbb55d
movq 0x10(%rsp,%rbp,8), %rdx
movq 0x150(%rsp,%rbp,8), %r8
movl 0x1f0(%rsp,%rbp,8), %ecx
movq %rbx, %rdi
testq %r8, %r8
je 0xbb535
movq %r12, %rsi
xorl %eax, %eax
callq 0x92e71
movl 0x1f0(%rsp,%rbp,8), %ecx
movq 0x10(%rsp,%rbp,8), %rdx
movq 0x1a0(%rsp,%rbp,8), %r8
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x92e71
jmp 0xbb558
movq %r14, %rsi
xorl %eax, %eax
callq 0x92e71
movq 0x10(%rsp,%rbp,8), %rdx
movl 0x1f0(%rsp,%rbp,8), %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x92e71
incq %rbp
jmp 0xbb4e0
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x37c9f2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x229a93(%rip), %rsi    # 0x2e5013
leaq 0x25bf86(%rip), %rdx    # 0x31750d
leaq 0x25c099(%rip), %rcx    # 0x317627
leaq 0x25bf4f(%rip), %r8     # 0x3174e4
movl $0xe2, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390