// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/tyr-search.c
// Function: singleseqtyrsearch
static void singleseqtyrsearch(const Tyrindex *tyrindex,
                               const Tyrcountinfo *tyrcountinfo,
                               const Tyrsearchinfo *tyrsearchinfo,
                               const Tyrbckinfo *tyrbckinfo,
                               uint64_t unitnum,
                               const GtUchar *query,
                               GtUword querylen,
                               GT_UNUSED const char *desc)
{
  const GtUchar *qptr, *result;
  GtUword offset, skipvalue;

  if (tyrsearchinfo->mersize > querylen)
  {
    return;
  }
  qptr = query;
  offset = 0;
  while (qptr <= query + querylen - tyrsearchinfo->mersize)
  {
    skipvalue = gt_containsspecialbytestring(qptr,offset,
                                             tyrsearchinfo->mersize);
    if (skipvalue == tyrsearchinfo->mersize)
    {
      offset = tyrsearchinfo->mersize-1;
      if (tyrsearchinfo->searchstrand & STRAND_FORWARD)
      {
        result = gt_searchsinglemer(qptr,tyrindex,
                                    tyrsearchinfo,tyrbckinfo);
        if (result != NULL)
        {
          mermatchoutput(tyrindex,
                         tyrcountinfo,
                         tyrsearchinfo,
                         result,
                         query,
                         qptr,
                         unitnum,
                         true);
        }
      }
      if (tyrsearchinfo->searchstrand & STRAND_REVERSE)
      {
        gt_assert(tyrsearchinfo->rcbuf != NULL);
        gt_copy_reverse_complement(tyrsearchinfo->rcbuf,qptr,
                                   tyrsearchinfo->mersize);
        result = gt_searchsinglemer(tyrsearchinfo->rcbuf,tyrindex,
                                    tyrsearchinfo,tyrbckinfo);
        if (result != NULL)
        {
          mermatchoutput(tyrindex,
                         tyrcountinfo,
                         tyrsearchinfo,
                         result,
                         query,
                         qptr,
                         unitnum,
                         false);
        }
      }
      qptr++;
    } else
    {
      offset = 0;
      qptr += (skipvalue+1);
    }
  }
}

// Assembly:
subq $0x68, %rsp
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %rax
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rax
cmpq 0x70(%rsp), %rax
jbe 0x2f7b11
jmp 0x2f7d05
movq 0x38(%rsp), %rax
movq %rax, 0x30(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
addq 0x70(%rsp), %rcx
movq 0x50(%rsp), %rsi
xorl %edx, %edx
subq 0x20(%rsi), %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
ja 0x2f7d05
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rdx
callq 0x2f7d60
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x50(%rsp), %rcx
cmpq 0x20(%rcx), %rax
jne 0x2f7ce4
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rax
subq $0x1, %rax
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rax
movl 0x2c(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2f7bf9
movq 0x30(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
callq 0x2f7490
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x2f7bf7
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x30(%rsp), %r9
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movl $0x1, 0x8(%rsp)
callq 0x2f7e20
jmp 0x2f7bf9
movq 0x50(%rsp), %rax
movl 0x2c(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x2f7cd4
jmp 0x2f7c0f
movq 0x50(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2f7c53
movq 0x34437e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x21e3e7(%rip), %rsi    # 0x516013
leaq 0x298259(%rip), %rdx    # 0x58fe8c
leaq 0x29826f(%rip), %rcx    # 0x58fea9
leaq 0x298223(%rip), %r8     # 0x58fe64
movl $0xbd, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2f7c55
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x50(%rsp), %rax
movq 0x20(%rax), %rdx
callq 0x2a9cb0
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x60(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
callq 0x2f7490
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x2f7cd2
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x30(%rsp), %r9
movq 0x40(%rsp), %rax
xorl %r10d, %r10d
movq %rax, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x2f7e20
jmp 0x2f7cd4
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x2f7d00
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rax
addq $0x1, %rax
addq 0x30(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x2f7b24
addq $0x68, %rsp
retq
nopw (%rax,%rax)