// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagband-struct.c
// Function: gt_diagband_statistics_add
void gt_diagband_statistics_add(void *v_diagband_statistics,
                                /* remove GT_UNUSED once arguments are used */
                                GT_UNUSED const GtEncseq *aencseq,
                                GT_UNUSED const GtEncseq *bencseq,
                                GT_UNUSED GtUword aseqnum,
                                GT_UNUSED GtUword bseqnum,
                                const GtDiagbandStruct *diagband_struct,
                                const GtDiagbandseedMaximalmatch *memstore,
                                GT_UNUSED unsigned int seedlength,
                                const GtSeedpairPositions *seedstore,
                                GtUword segment_length)
{
  GtUword idx;
  GtDiagbandStatistics *diagband_statistics
    = (GtDiagbandStatistics *) v_diagband_statistics;

  if (diagband_statistics->track == NULL)
  {
    GT_INITBITTAB(diagband_statistics->track,diagband_struct->num_diagbands);
  } else
  {
    GT_CLEARBITTAB(diagband_statistics->track,diagband_struct->num_diagbands);
  }
  if (seedstore != NULL)
  {
    for (idx = 0; idx < segment_length; idx++)
    {
      const GtUword diagband_idx
        = GT_DIAGBANDSEED_DIAGONALBAND(diagband_struct->amaxlen,
                                       diagband_struct->logdiagbandwidth,
                                       seedstore[idx].apos,
                                       seedstore[idx].bpos);
      gt_diagband_statistics_score_add(diagband_statistics,diagband_struct,
                                       diagband_idx);
    }
  } else
  {
    gt_assert(memstore != NULL);
    for (idx = 0; idx < segment_length; idx++)
    {
      const GtUword diagband_idx
        = GT_DIAGBANDSEED_DIAGONALBAND(diagband_struct->amaxlen,
                                       diagband_struct->logdiagbandwidth,
                                       memstore[idx].apos,
                                       memstore[idx].bpos);
      gt_diagband_statistics_score_add(diagband_statistics,diagband_struct,
                                       diagband_idx);
    }
  }
}

// Assembly:
subq $0x78, %rsp
movq 0x98(%rsp), %rax
movq 0x90(%rsp), %rax
movl 0x88(%rsp), %eax
movq 0x80(%rsp), %rax
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x4a3c83
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
shrq $0x6, %rax
cmpq $0x0, %rax
jne 0x4a3c1a
movl $0x1, %eax
movq %rax, 0x18(%rsp)
jmp 0x4a3c34
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
subq $0x1, %rax
shrq $0x6, %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rsi
shlq $0x3, %rsi
xorl %eax, %eax
movl %eax, %edi
leaq 0x111f46(%rip), %rdx    # 0x5b5b98
movl $0x13e, %ecx            # imm = 0x13E
callq 0xe8540
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x30(%rsp), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x19360
jmp 0x4a3cdf
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
shrq $0x6, %rax
cmpq $0x0, %rax
jne 0x4a3cb0
movl $0x1, %eax
movq %rax, 0x8(%rsp)
jmp 0x4a3cca
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
subq $0x1, %rax
shrq $0x6, %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x19360
cmpq $0x0, 0x90(%rsp)
je 0x4a3d6f
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x98(%rsp), %rax
jae 0x4a3d6a
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x90(%rsp), %rcx
movq 0x40(%rsp), %rdx
movl 0x4(%rcx,%rdx,8), %ecx
addq %rcx, %rax
movq 0x90(%rsp), %rcx
movq 0x40(%rsp), %rdx
movl (%rcx,%rdx,8), %ecx
subq %rcx, %rax
movq 0x48(%rsp), %rcx
movq 0x8(%rcx), %rcx
shrq %cl, %rax
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x4a3e40
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x4a3cf7
jmp 0x4a3e3a
jmp 0x4a3d71
cmpq $0x0, 0x80(%rsp)
jne 0x4a3db4
movq 0x19821d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x72286(%rip), %rsi     # 0x516013
leaq 0x111f06(%rip), %rdx    # 0x5b5c9a
leaq 0x111fc5(%rip), %rcx    # 0x5b5d60
leaq 0x111df6(%rip), %r8     # 0x5b5b98
movl $0x151, %r9d            # imm = 0x151
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4a3db6
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x98(%rsp), %rax
jae 0x4a3e38
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x80(%rsp), %rcx
imulq $0xc, 0x40(%rsp), %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
addq %rcx, %rax
movq 0x80(%rsp), %rcx
imulq $0xc, 0x40(%rsp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subq %rcx, %rax
movq 0x48(%rsp), %rcx
movq 0x8(%rcx), %rcx
shrq %cl, %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x4a3e40
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x4a3dbf
jmp 0x4a3e3a
addq $0x78, %rsp
retq
nop