// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/seed_extend_parts.c
// Function: gt_sequence_parts_info_variance_show
void gt_sequence_parts_info_variance_show(const GtSequencePartsInfo *spi)
{
  GtUword variance_sum = 0, idx, avgpartlength;

  avgpartlength = spi->totallength/spi->parts_number;
  for (idx = 0; idx < spi->parts_number; idx++)
  {
    const GtUword partlength
      = gt_sequence_parts_info_partlength(
             spi,
             gt_sequence_parts_info_start_get(spi,idx),
             gt_sequence_parts_info_end_get(spi,idx));
    if (partlength > avgpartlength)
    {
      GtUword diff = partlength - avgpartlength;
      variance_sum += diff * diff;
    } else
    {
      GtUword diff = avgpartlength - partlength;
      variance_sum += diff * diff;
    }
    printf("# Part " GT_WU ": sequence " GT_WU "..." GT_WU ", total length="
           GT_WU ", max_length=" GT_WU "\n",idx+1,
           gt_sequence_parts_info_start_get(spi,idx),
           gt_sequence_parts_info_end_get(spi,idx),
           partlength,
           gt_sequence_parts_info_max_length_get(spi,idx));
  }
  printf("# Variance of parts is %.2e\n",
           (double) variance_sum/spi->parts_number);
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq $0x0, 0x58(%rsp)
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x60(%rsp), %rcx
xorl %edx, %edx
divq 0x28(%rcx)
movq %rax, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jae 0x2b0597
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2b00f0
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2b0170
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
callq 0x2af880
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x48(%rsp), %rax
jbe 0x2b04ee
movq 0x40(%rsp), %rax
subq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
imulq 0x38(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
jmp 0x2b0512
movq 0x48(%rsp), %rax
subq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
imulq 0x30(%rsp), %rax
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2b00f0
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2b0170
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x2b0290
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq %rax, %r9
leaq 0x2d7b45(%rip), %rdi    # 0x5880c2
movb $0x0, %al
callq 0x19070
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x2b0464
movq 0x58(%rsp), %xmm0
movaps 0x26838c(%rip), %xmm3   # 0x518930
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x268390(%rip), %xmm2   # 0x518940
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq 0x60(%rsp), %rax
movq 0x28(%rax), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x2d7b1d(%rip), %rdi    # 0x588104
movb $0x1, %al
callq 0x19070
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)