// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/firstcodes-accum.c
// Function: gt_firstcodes_accum_kmerscan
static void gt_firstcodes_accum_kmerscan(const GtEncseq *encseq,
                                         const GtBitsequence *twobitencoding,
                                         GtUword totallength,
                                         GtUword maxunitindex,
                                         unsigned int kmersize,
                                         unsigned int minmatchlength,
                                         GtCodeposbuffer *buf)
{
  GtUword laststart = 0;

  if (gt_encseq_has_specialranges(encseq))
  {
    GtSpecialrangeiterator *sri;
    GtRange range;

    sri = gt_specialrangeiterator_new(encseq,true);
    while (gt_specialrangeiterator_next(sri,&range)
           && range.start < totallength)
    {
      gt_assert(range.start >= laststart);
      if (range.start - laststart >= (GtUword) minmatchlength)
      {
        gt_firstcodes_accum_kmerscan_range(twobitencoding,
                                           kmersize,
                                           minmatchlength,
                                           laststart,
                                           range.start - laststart,
                                           maxunitindex,
                                           buf);
      }
      laststart = range.end;
    }
    gt_specialrangeiterator_delete(sri);
  }
  if (totallength - laststart >= (GtUword) minmatchlength)
  {
    gt_firstcodes_accum_kmerscan_range(twobitencoding,
                                       kmersize,
                                       minmatchlength,
                                       laststart,
                                       totallength - laststart,
                                       maxunitindex,
                                       buf);
  }
}

// Assembly:
subq $0x58, %rsp
movq 0x60(%rsp), %rax
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movl %r8d, 0x34(%rsp)
movl %r9d, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x50(%rsp), %rdi
callq 0xaf360
testb $0x1, %al
jne 0x4b73f3
jmp 0x4b74e6
movq 0x50(%rsp), %rdi
movl $0x1, %esi
callq 0xaf650
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xaf770
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0xf(%rsp)
jne 0x4b7425
jmp 0x4b7436
movq 0x10(%rsp), %rax
cmpq 0x40(%rsp), %rax
setb %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x4b7443
jmp 0x4b74dc
jmp 0x4b7445
movq 0x10(%rsp), %rax
cmpq 0x28(%rsp), %rax
jae 0x4b7489
movq 0x184b48(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x5ebb1(%rip), %rsi     # 0x516013
leaq 0xc0c47(%rip), %rdx     # 0x5780b0
leaq 0x100312(%rip), %rcx    # 0x5b7782
leaq 0x100273(%rip), %r8     # 0x5b76ea
movl $0x94, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4b748b
movq 0x10(%rsp), %rax
subq 0x28(%rsp), %rax
movl 0x30(%rsp), %ecx
cmpq %rcx, %rax
jb 0x4b74cd
movq 0x48(%rsp), %rdi
movl 0x34(%rsp), %esi
movl 0x30(%rsp), %edx
movq 0x28(%rsp), %rcx
movq 0x10(%rsp), %r8
subq 0x28(%rsp), %r8
movq 0x38(%rsp), %r9
movq 0x60(%rsp), %rax
movq %rax, (%rsp)
callq 0x4b7550
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0x4b7407
movq 0x20(%rsp), %rdi
callq 0xafc80
movq 0x40(%rsp), %rax
subq 0x28(%rsp), %rax
movl 0x30(%rsp), %ecx
cmpq %rcx, %rax
jb 0x4b7528
movq 0x48(%rsp), %rdi
movl 0x34(%rsp), %esi
movl 0x30(%rsp), %edx
movq 0x28(%rsp), %rcx
movq 0x40(%rsp), %r8
subq 0x28(%rsp), %r8
movq 0x38(%rsp), %r9
movq 0x60(%rsp), %rax
movq %rax, (%rsp)
callq 0x4b7550
addq $0x58, %rsp
retq
nopl (%rax)