// File: /workspace/github_c_makefile_star2_O2/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 0x54557
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
leaq 0x2cdda6(%rip), %r13    # 0x3221fd
xorl %r12d, %r12d
movq %r12, %rax
shrq $0x6, %rax
movq (%rbx,%rax,8), %rax
movl %r12d, %ecx
shlq %cl, %rax
shrq $0x3f, %rax
je 0x54540
movq 0x10(%r15), %rcx
movq 0x10(%r14), %rax
cmpq %rcx, %r12
jae 0x54497
movq (%r15), %rdx
movq (%rdx,%r12,8), %rdx
cmpq %rax, %r12
jae 0x544a7
movq (%r14), %rsi
addq (%rsi,%r12,8), %rdx
jmp 0x544a7
cmpq %rax, %r12
jae 0x54548
movq (%r14), %rdx
movq (%rdx,%r12,8), %rdx
testq %rdx, %rdx
je 0x54540
cmpl $0x1, %ebp
je 0x544c8
testl %ebp, %ebp
jne 0x544d2
movq %r13, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
jmp 0x54540
movq %r15, %rsi
cmpq %rcx, %r12
jb 0x544da
jmp 0x54540
movq %r14, %rsi
cmpq %rax, %r12
jae 0x54540
movq (%rsi), %rax
movq (%rax,%r12,8), %rax
testq %rax, %rax
je 0x54540
movq %rax, %xmm1
movq 0x2933ed(%rip), %xmm2   # 0x2e78e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x2933f1(%rip), %xmm3   # 0x2e78f0
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 0x2a8ab0(%rip), %rdi    # 0x2fcfe3
movq %r12, %rsi
movq %rax, %rdx
movb $0x1, %al
callq 0x17070
incq %r12
jmp 0x5445a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3e3a0a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x290aab(%rip), %rsi    # 0x2e5013
leaq 0x2a8a43(%rip), %rdx    # 0x2fcfb2
leaq 0x2a8a51(%rip), %rcx    # 0x2fcfc7
leaq 0x2a819c(%rip), %r8     # 0x2fc719
movl $0x263, %r9d            # imm = 0x263
xorl %eax, %eax
callq 0x17a50
callq 0x17390