// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/firstcodes-scan.c
// Function: gt_firstcodes_kmerscan
GtUword gt_firstcodes_kmerscan(const GtEncseq *encseq,
                                     const GtBitsequence *twobitencoding,
                                     bool withcheck,
                                     GtUword totallength,
                                     GtUword numofsequences,
                                     GtUword maxunitindex,
                                     unsigned int kmersize,
                                     unsigned int minmatchlength,
                                     GtProcesskmercode processcode,
                                     void *data)
{
  GtUword laststart = 0, encodingsum = 0, fseqnum = 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)
      {
        encodingsum += (GtUword) gt_firstcodes_kmerscan_range(
                                                twobitencoding,
                                                withcheck,
                                                kmersize,
                                                minmatchlength,
                                                laststart,
                                                range.start,
                                                fseqnum,
                                                numofsequences - 1 - fseqnum,
                                                maxunitindex,
                                                processcode,
                                                data);
      }
      laststart = range.end;
      fseqnum++;
    }
    gt_specialrangeiterator_delete(sri);
  }
  if (totallength - laststart >= (GtUword) minmatchlength)
  {
    encodingsum += (GtUword) gt_firstcodes_kmerscan_range(
                                              twobitencoding,
                                              withcheck,
                                              kmersize,
                                              minmatchlength,
                                              laststart,
                                              totallength,
                                              fseqnum,
                                              numofsequences - 1 - fseqnum,
                                              maxunitindex,
                                              processcode,
                                              data);
  }
  return encodingsum;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movb %dl, %al
movq 0xc8(%rsp), %rdx
movq 0xc0(%rsp), %rdx
movl 0xb8(%rsp), %edx
movl 0xb0(%rsp), %edx
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
andb $0x1, %al
movb %al, 0x87(%rsp)
movq %rcx, 0x78(%rsp)
movq %r8, 0x70(%rsp)
movq %r9, 0x68(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x90(%rsp), %rdi
callq 0xaf360
testb $0x1, %al
jne 0x243233
jmp 0x24338a
movq 0x90(%rsp), %rdi
movl $0x1, %esi
callq 0xaf650
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xaf770
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x37(%rsp)
jne 0x243268
jmp 0x243279
movq 0x38(%rsp), %rax
cmpq 0x78(%rsp), %rax
setb %al
movb %al, 0x37(%rsp)
movb 0x37(%rsp), %al
testb $0x1, %al
jne 0x243286
jmp 0x243380
jmp 0x243288
movq 0x38(%rsp), %rax
cmpq 0x60(%rsp), %rax
jae 0x2432cc
movq 0x3f8d05(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2d2d6e(%rip), %rsi    # 0x516013
leaq 0x334e04(%rip), %rdx    # 0x5780b0
leaq 0x334e16(%rip), %rcx    # 0x5780c9
leaq 0x334e26(%rip), %r8     # 0x5780e0
movl $0xc8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2432ce
movq 0x38(%rsp), %rax
subq 0x60(%rsp), %rax
movl 0xb8(%rsp), %ecx
cmpq %rcx, %rax
jb 0x243363
movq 0x88(%rsp), %rdi
movb 0x87(%rsp), %sil
movl 0xb0(%rsp), %edx
movl 0xb8(%rsp), %ecx
movq 0x60(%rsp), %r8
movq 0x38(%rsp), %r9
movq 0x50(%rsp), %r14
movq 0x70(%rsp), %rbx
subq $0x1, %rbx
subq 0x50(%rsp), %rbx
movq 0x68(%rsp), %r11
movq 0xc0(%rsp), %r10
movq 0xc8(%rsp), %rax
andb $0x1, %sil
movzbl %sil, %esi
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x242d40
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x24324a
movq 0x48(%rsp), %rdi
callq 0xafc80
movq 0x78(%rsp), %rax
subq 0x60(%rsp), %rax
movl 0xb8(%rsp), %ecx
cmpq %rcx, %rax
jb 0x24341f
movq 0x88(%rsp), %rdi
movb 0x87(%rsp), %sil
movl 0xb0(%rsp), %edx
movl 0xb8(%rsp), %ecx
movq 0x60(%rsp), %r8
movq 0x78(%rsp), %r9
movq 0x50(%rsp), %r14
movq 0x70(%rsp), %rbx
subq $0x1, %rbx
subq 0x50(%rsp), %rbx
movq 0x68(%rsp), %r11
movq 0xc0(%rsp), %r10
movq 0xc8(%rsp), %rax
andb $0x1, %sil
movzbl %sil, %esi
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x242d40
addq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
nop