// File: /workspace/github_c_makefile_star2_O1/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 0xd15ac
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
leaq 0x294c82(%rip), %r12    # 0x36612d
xorl %r13d, %r13d
movq %r13, %rax
shrq $0x6, %rax
movq (%rbx,%rax,8), %rax
movl %r13d, %ecx
shlq %cl, %rax
shrq $0x3f, %rax
je 0xd1595
movq 0x10(%r15), %rax
cmpq %rax, %r13
jae 0xd14e8
movq (%r15), %rcx
movq (%rcx,%r13,8), %rdx
cmpq 0x10(%r14), %r13
jae 0xd14f9
movq (%r14), %rcx
addq (%rcx,%r13,8), %rdx
jmp 0xd14f9
cmpq 0x10(%r14), %r13
jae 0xd159d
movq (%r14), %rcx
movq (%rcx,%r13,8), %rdx
testq %rdx, %rdx
je 0xd1595
cmpl $0x1, %ebp
je 0xd151e
testl %ebp, %ebp
jne 0xd152f
leaq 0x2b9c99(%rip), %rdi    # 0x38b1ab
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
jmp 0xd1595
movq %r15, %rcx
cmpq %rax, %r13
jae 0xd1538
movq (%rcx), %rax
movq (%rax,%r13,8), %rax
jmp 0xd153a
movq %r14, %rcx
cmpq 0x10(%r14), %r13
jb 0xd1526
xorl %eax, %eax
testq %rax, %rax
je 0xd1595
movq %rax, %xmm1
movq 0x27f394(%rip), %xmm2   # 0x3508e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x27f398(%rip), %xmm3   # 0x3508f0
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
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
movb $0x1, %al
callq 0x17070
incq %r13
jmp 0xd14ae
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x21a8c