// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idx-limdfs.c
// Function: esa_overcontext
static void esa_overcontext(Limdfsresources *limdfsresources,
                            const Indexbounds *child,
                            const AbstractDfstransformer *adfst)
{
  GtUword pos, startpos;
  GtUword resetvalue = 0;
  GtUchar cc;
  Limdfsresult limdfsresult;
  GtIdxMatch match;

  initparentcopy(limdfsresources,adfst);
  startpos = ESASUFFIXPTRGET(limdfsresources->genericindex->suffixarray->suftab,
                             child->leftbound);
#ifdef SKDEBUG
  printf("retrieve context of startpos="GT_WU"\n",(GtUword) startpos);
#endif
  for (pos = startpos + child->offset - 1;
       pos < limdfsresources->genericindex->totallength; pos++)
  {
    cc = gt_encseq_get_encoded_char(
                          limdfsresources->genericindex->suffixarray->encseq,
                          pos,
                          limdfsresources->genericindex->suffixarray->readmode);
    if (cc != (GtUchar) GT_SEPARATOR &&
        (!limdfsresources->nowildcards || cc != (GtUchar) GT_WILDCARD))
    {
#ifdef SKDEBUG
      printf("cc=%u\n",(unsigned int) cc);
#endif
      Lcpintervalwithinfo *outstate;

      addpathchar(limdfsresources,(GtUword) (pos - startpos),cc);
      outstate = expandsingleton(limdfsresources,
                                 &resetvalue,
                                 (pos > startpos + child->offset - 1)
                                    ? true : false,
                                 cc,
                                 (GtUword) (pos - startpos + 1),
                                 adfst);
      adfst->fullmatchLimdfsstate(&limdfsresult,
                                  limdfsresources->keepexpandedonstack
                                    ?  outstate->aliasstate
                                    :  limdfsresources->copyofcopyofparentstate,
                                  child->leftbound,
                                  child->leftbound,
                                  (GtUword) 1,
                                  (GtUword) (pos-startpos+1),
                                  limdfsresources->dfsconstinfo);
      if (limdfsresult.status == Limdfsstop)
      {
        break;
      }
      if (limdfsresult.status == Limdfssuccess)
      {
        match.dbabsolute = true;
        match.dbstartpos = startpos;
        match.dblen = pos - startpos + 1;
        match.dbsubstring = limdfsresources->currentpathspace;
        match.querylen = limdfsresult.pprefixlen;
        match.distance = limdfsresult.distance;
        if (limdfsresources->keepexpandedonstack)
        {
          tracethestackelems(&match,limdfsresources,limdfsresult.pprefixlen,
                             outstate);
        } else
        {
          match.querystartpos = 0;
          match.alignment = NULL;
        }
        /* call processmatch */
        limdfsresources->processmatch(limdfsresources->processmatchinfo,&match);
        limdfsresources->numberofmatches++;
        break;
      }
    } else
    {
      break; /* failure */
    }
  }
  if (limdfsresources->keepexpandedonstack)
  {
    gt_assert(resetvalue > 0);
    limdfsresources->stack.nextfreeLcpintervalwithinfo = resetvalue;
  }
}

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq $0x0, 0x88(%rsp)
movq 0xb0(%rsp), %rdi
movq 0xa0(%rsp), %rsi
callq 0x257d10
movq 0xb0(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movq 0x58(%rax), %rax
movq 0xa8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq 0xa8(%rsp), %rcx
addq (%rcx), %rax
subq $0x1, %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq 0xb0(%rsp), %rcx
movq 0xd8(%rcx), %rcx
cmpq 0x8(%rcx), %rax
jae 0x257162
movq 0xb0(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movq (%rax), %rdi
movq 0x98(%rsp), %rsi
movq 0xb0(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movl 0x48(%rax), %edx
callq 0xa9da0
movb %al, 0x87(%rsp)
movzbl 0x87(%rsp), %eax
cmpl $0xff, %eax
je 0x257145
movq 0xb0(%rsp), %rax
testb $0x1, 0xe0(%rax)
je 0x256f23
movzbl 0x87(%rsp), %eax
cmpl $0xfe, %eax
je 0x257145
movq 0xb0(%rsp), %rdi
movq 0x98(%rsp), %rsi
subq 0x90(%rsp), %rsi
movzbl 0x87(%rsp), %edx
callq 0x256500
movq 0xb0(%rsp), %rdi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rsi
movq 0xa8(%rsp), %rax
addq (%rax), %rsi
subq $0x1, %rsi
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmoval %ecx, %eax
cmpl $0x0, %eax
setne %al
movb 0x87(%rsp), %cl
movq 0x98(%rsp), %r8
subq 0x90(%rsp), %r8
addq $0x1, %r8
movq 0xa0(%rsp), %r9
movzbl %cl, %ecx
movzbl %al, %edx
andl $0x1, %edx
leaq 0x88(%rsp), %rsi
callq 0x257da0
movq %rax, 0x18(%rsp)
movq 0xa0(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0xb0(%rsp), %rax
testb $0x1, 0xc8(%rax)
je 0x256ff2
movq 0x18(%rsp), %rax
addq $0x28, %rax
movq %rax, 0x8(%rsp)
jmp 0x257005
movq 0xb0(%rsp), %rax
addq $0x98, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rsi
movq 0xa8(%rsp), %rcx
movq 0x8(%rcx), %rdx
movq 0xa8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x98(%rsp), %r9
subq 0x90(%rsp), %r9
addq $0x1, %r9
movq 0xb0(%rsp), %rdi
movq (%rdi), %r10
leaq 0x68(%rsp), %rdi
movl $0x1, %r8d
movq %r10, (%rsp)
callq *%rax
cmpl $0x2, 0x68(%rsp)
jne 0x257063
jmp 0x257162
cmpl $0x0, 0x68(%rsp)
jne 0x257143
movb $0x1, 0x20(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x98(%rsp), %rax
subq 0x90(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
movq 0xb0(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xb0(%rsp), %rax
testb $0x1, 0xc8(%rax)
je 0x2570f0
movq 0xb0(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x20(%rsp), %rdi
callq 0x2579b0
jmp 0x257102
movq $0x0, 0x48(%rsp)
movq $0x0, 0x60(%rsp)
movq 0xb0(%rsp), %rax
movq 0x130(%rax), %rax
movq 0xb0(%rsp), %rcx
movq 0x138(%rcx), %rdi
leaq 0x20(%rsp), %rsi
callq *%rax
movq 0xb0(%rsp), %rax
movq 0x128(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x128(%rax)
jmp 0x257162
jmp 0x257147
jmp 0x257162
jmp 0x257149
movq 0x98(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x98(%rsp)
jmp 0x256e8d
movq 0xb0(%rsp), %rax
testb $0x1, 0xc8(%rax)
je 0x2571ce
jmp 0x257175
cmpq $0x0, 0x88(%rsp)
ja 0x2571b8
movq 0x3e4e19(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bee82(%rip), %rsi    # 0x516013
leaq 0x32340c(%rip), %rdx    # 0x57a5a4
leaq 0x3234c5(%rip), %rcx    # 0x57a664
leaq 0x322deb(%rip), %r8     # 0x579f91
movl $0x2b5, %r9d            # imm = 0x2B5
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2571ba
movq 0x88(%rsp), %rcx
movq 0xb0(%rsp), %rax
movq %rcx, 0x30(%rax)
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)