// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/greedyfwdmat.c
// Function: gmatchposinsinglesequence
static void gmatchposinsinglesequence(Substringinfo *substringinfo,
                                      uint64_t unitnum,
                                      const GtUchar *query,
                                      GtUword querylen,
                                      const char *desc)
{
  const GtUchar *qptr;
  GtUword gmatchlength, remaining;
  GtUword witnessposition, *wptr;

  if (substringinfo->preprocessgmatchlength != NULL)
  {
    substringinfo->preprocessgmatchlength(unitnum,
                                          desc,
                                          substringinfo->processinfo);
  }
  if (((Rangespecinfo *) substringinfo->processinfo)->showsubjectpos ||
      substringinfo->encseq != NULL)
  {
    wptr = &witnessposition;
  } else
  {
    wptr = NULL;
  }
  for (qptr = query, remaining = querylen; remaining > 0; qptr++, remaining--)
  {
    gmatchlength = substringinfo->gmatchforward(substringinfo->genericindex,
                                                0,
                                                0,
                                                substringinfo->totallength,
                                                wptr,
                                                qptr,
                                                query+querylen);
    if (gmatchlength > 0)
    {
#ifndef NDEBUG
      if (substringinfo->encseq != NULL)
      {
        gt_assert(wptr != NULL);
        checkifsequenceisthere(substringinfo->encseq,
                               witnessposition,
                               gmatchlength,
                               qptr);
      }
#endif
      substringinfo->processgmatchlength(substringinfo->alphabet,
                                         query,
                                         gmatchlength,
                                         (GtUword) (qptr-query),
                                         wptr == NULL
                                           ? (GtUword) 0
                                           : witnessposition,
                                         substringinfo->processinfo);
    }
  }
  if (substringinfo->postprocessgmatchlength != NULL)
  {
    substringinfo->postprocessgmatchlength(substringinfo->alphabet,
                                           unitnum,
                                           desc,
                                           query,
                                           querylen,
                                           substringinfo->processinfo);
  }
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq 0x80(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0x254656
movq 0x80(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x78(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x80(%rsp), %rcx
movq 0x38(%rcx), %rdx
callq *%rax
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
testb $0x1, 0x2(%rax)
jne 0x254677
movq 0x80(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0x254683
leaq 0x40(%rsp), %rax
movq %rax, 0x38(%rsp)
jmp 0x25468c
movq $0x0, 0x38(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
jbe 0x254824
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x80(%rsp), %rcx
movq (%rcx), %rdi
movq 0x80(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x38(%rsp), %r8
movq 0x58(%rsp), %r9
movq 0x70(%rsp), %r10
addq 0x68(%rsp), %r10
xorl %edx, %edx
movq %rdx, %rsi
movq %r10, (%rsp)
callq *%rax
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
jbe 0x254801
movq 0x80(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0x254772
jmp 0x254710
cmpq $0x0, 0x38(%rsp)
jne 0x254750
movq 0x3e7881(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c18ea(%rip), %rsi    # 0x516013
leaq 0x3257eb(%rip), %rdx    # 0x579f1b
leaq 0x3257f1(%rip), %rcx    # 0x579f28
leaq 0x3257bb(%rip), %r8     # 0x579ef9
movl $0x8c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x254752
movq 0x80(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x58(%rsp), %rcx
callq 0x254880
movq 0x80(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rax
movq 0x70(%rsp), %rcx
subq %rcx, %rax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x2547cb
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0x2547d5
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %r8
movq 0x80(%rsp), %r9
movq 0x38(%r9), %r9
callq *%rax
jmp 0x254803
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
movq 0x48(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x2546a0
movq 0x80(%rsp), %rax
cmpq $0x0, 0x30(%rax)
je 0x25486d
movq 0x80(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x80(%rsp), %rcx
movq 0x10(%rcx), %rdi
movq 0x78(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %r8
movq 0x80(%rsp), %r9
movq 0x38(%r9), %r9
callq *%rax
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)