// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/firstcodes-tab.c
// Function: gt_firstcodes_accumulatecounts_merge
GtUword gt_firstcodes_accumulatecounts_merge(
                                        GtFirstcodestab *tab,
                                        GtUword *differences,
                                        GtUword differentcodes,
                                        const GtUword *querystream_fst,
                                        const GtUword *querystream_lst,
                                        GtUword subjectindex,
                                        GtUword subjectcode)
{
  GtUword found = 0, lastocc = 0;
  const GtUword *query = querystream_fst;

  gt_assert(subjectindex < differentcodes);
  while (query <= querystream_lst)
  {
    if (*query <= subjectcode)
    {
      if (*query == subjectcode)
      {
        lastocc++;
      }
      query++;
    } else
    {
      if (lastocc > 0)
      {
        gt_firstcodes_countocc_increment(tab,differences,subjectindex,lastocc);
        found += lastocc;
        lastocc = 0;
      }
      if (subjectindex < differentcodes - 1)
      {
        subjectindex++;
        /* extract diff */
        subjectcode += (differences[subjectindex] & tab->differencemask);
      } else
      {
        break;
      }
    }
  }
  if (lastocc > 0)
  {
    gt_firstcodes_countocc_increment(tab,differences,subjectindex,lastocc);
    found += lastocc;
  }
  return found;
}

// Assembly:
subq $0x48, %rsp
movq 0x50(%rsp), %rax
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rax
cmpq 0x30(%rsp), %rax
jb 0x4bfc86
movq 0x17c34b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x563b4(%rip), %rsi     # 0x516013
leaq 0xf821d(%rip), %rdx     # 0x5b7e83
leaq 0xf8234(%rip), %rcx     # 0x5b7ea1
leaq 0xf811a(%rip), %r8      # 0x5b7d8e
movl $0x172, %r9d            # imm = 0x172
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4bfc88
jmp 0x4bfc8a
movq (%rsp), %rax
cmpq 0x20(%rsp), %rax
ja 0x4bfd5a
movq (%rsp), %rax
movq (%rax), %rax
cmpq 0x50(%rsp), %rax
ja 0x4bfcd4
movq (%rsp), %rax
movq (%rax), %rax
cmpq 0x50(%rsp), %rax
jne 0x4bfcc3
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
movq (%rsp), %rax
addq $0x8, %rax
movq %rax, (%rsp)
jmp 0x4bfd55
cmpq $0x0, 0x8(%rsp)
jbe 0x4bfd0d
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq 0x4bfda0
movq 0x8(%rsp), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x4bfd51
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x40(%rsp), %rcx
andq 0x58(%rcx), %rax
addq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
jmp 0x4bfd53
jmp 0x4bfd5a
jmp 0x4bfd55
jmp 0x4bfc8a
cmpq $0x0, 0x8(%rsp)
jbe 0x4bfd8a
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq 0x4bfda0
movq 0x8(%rsp), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)