// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_tallymer.c
// Function: showitvsumdistributionoftwo
static void showitvsumdistributionoftwo(Summode mode,
                                        const GtArrayuint64_t *dist1,
                                        const GtArrayuint64_t *dist2,
                                        const GtBitsequence *outputvector)
{
  GtUword idx;
  uint64_t sumoftwo, tmp;

  gt_assert(outputvector != NULL);
  for (idx=0; /* Nothing */; idx++)
  {
    if (GT_ISIBITSET(outputvector,idx))
    {
      if (idx < dist1->nextfreeuint64_t)
      {
        if (idx < dist2->nextfreeuint64_t)
        {
          sumoftwo = dist1->spaceuint64_t[idx] + dist2->spaceuint64_t[idx];
        } else
        {
          sumoftwo = dist1->spaceuint64_t[idx];
        }
      } else
      {
        if (idx < dist2->nextfreeuint64_t)
        {
          sumoftwo = dist2->spaceuint64_t[idx];
        } else
        {
          break;
        }
      }
      if (sumoftwo > 0)
      {
        if (mode == Onlyshowsum)
        {
          /*@ignore@*/
          printf(""GT_WU" " Formatuint64_t "\n",
                  idx,
                  PRINTuint64_tcast(sumoftwo));
          /*@end@*/
        } else
        {
          if (mode == Showfirst)
          {
            tmp = (idx < dist1->nextfreeuint64_t)
                     ? dist1->spaceuint64_t[idx]
                     : 0;
          } else
          {
            tmp = (idx < dist2->nextfreeuint64_t)
                     ? dist2->spaceuint64_t[idx]
                     : 0;
          }
          if (tmp > 0)
          {
            /*@ignore@*/
            printf(""GT_WU" " Formatuint64_t " %.3f\n",
                  idx,
                  PRINTuint64_tcast(tmp),
                  (double) tmp/(double) sumoftwo);
            /*@end@*/
          }
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rcx, %rcx
je 0xcef96
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
leaq 0x2b2f57(%rip), %r13    # 0x381ded
xorl %r12d, %r12d
movq %r12, %rax
shrq $0x6, %rax
movq (%rbx,%rax,8), %rax
movl %r12d, %ecx
shlq %cl, %rax
shrq $0x3f, %rax
je 0xcef7f
movq 0x10(%r15), %rcx
movq 0x10(%r14), %rax
cmpq %rcx, %r12
jae 0xceed6
movq (%r15), %rdx
movq (%rdx,%r12,8), %rdx
cmpq %rax, %r12
jae 0xceee6
movq (%r14), %rsi
addq (%rsi,%r12,8), %rdx
jmp 0xceee6
cmpq %rax, %r12
jae 0xcef87
movq (%r14), %rdx
movq (%rdx,%r12,8), %rdx
testq %rdx, %rdx
je 0xcef7f
cmpl $0x1, %ebp
je 0xcef07
testl %ebp, %ebp
jne 0xcef11
movq %r13, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
jmp 0xcef7f
movq %r15, %rsi
cmpq %rcx, %r12
jb 0xcef19
jmp 0xcef7f
movq %r14, %rsi
cmpq %rax, %r12
jae 0xcef7f
movq (%rsi), %rax
movq (%rax,%r12,8), %rax
testq %rax, %rax
je 0xcef7f
movq %rax, %xmm1
movq 0x2789ae(%rip), %xmm2   # 0x3478e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x2789b2(%rip), %xmm3   # 0x3478f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rdx, %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 0x28e0ea(%rip), %rdi    # 0x35d05c
movq %r12, %rsi
movq %rax, %rdx
movb $0x1, %al
callq 0x17070
incq %r12
jmp 0xcee99
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2161e