// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idx-limdfs.c
// Function: pck_overcontext
static void pck_overcontext(Limdfsresources *limdfsresources,
                            const Indexbounds *child,
                            const AbstractDfstransformer *adfst)
{
  GtUchar cc;
  GtUword contextlength, resetvalue = 0;
  bool processinchar = true;
  GtUword bound;
  Bwtseqcontextiterator *bsci;
  Limdfsresult limdfsresult;
  GtIdxMatch match;

  gt_assert(child != NULL);
  bound = child->leftbound;
  bsci
    = gt_Bwtseqcontextiterator_new(limdfsresources->genericindex->packedindex,
                                   bound);
  initparentcopy(limdfsresources,adfst);
#ifdef SKDEBUG
  printf("retrieve context for bound = "GT_WU"\n",(GtUword) bound);
#endif
  for (contextlength = 0; /* nothing */; contextlength++)
  {
    if (processinchar)
    {
      cc = child->inchar;
      processinchar = false;
    } else
    {
      cc = gt_Bwtseqcontextiterator_next(&bound,bsci);
    }
    if (cc != (GtUchar) GT_SEPARATOR &&
        (!limdfsresources->nowildcards || cc != (GtUchar) GT_WILDCARD))
    {
      Lcpintervalwithinfo *outstate;
#ifdef SKDEBUG
      printf("cc=%u\n",(unsigned int) cc);
#endif
      addpathchar(limdfsresources,
                  (GtUword) (child->offset - 1 + contextlength),cc);
      outstate = expandsingleton(limdfsresources,
                                 &resetvalue,
                                 (contextlength > 0) ? true : false,
                                 cc,
                                 (GtUword) (child->offset+contextlength),
                                 adfst);
      adfst->fullmatchLimdfsstate(&limdfsresult,
                                  limdfsresources->keepexpandedonstack
                                    ? outstate->aliasstate
                                    : limdfsresources->copyofcopyofparentstate,
                                  bound,
                                  bound+1,
                                  (GtUword) 1,
                                  (GtUword) (child->offset+contextlength),
                                  limdfsresources->dfsconstinfo);
      if (limdfsresult.status == Limdfsstop)
      {
        break;
      }
      if (limdfsresult.status == Limdfssuccess)
      {
        GtUword startpos;

        startpos = gt_bwtseqfirstmatch(
                                    limdfsresources->genericindex->packedindex,
                                    child->leftbound);
        match.dbabsolute = true;
        match.dbstartpos = limdfsresources->genericindex->totallength -
                           (startpos + child->offset);
        match.dblen = child->offset + contextlength;
        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;
    }
  }
  if (limdfsresources->keepexpandedonstack)
  {
    gt_assert(resetvalue > 0);
    limdfsresources->stack.nextfreeLcpintervalwithinfo = resetvalue;
  }
  gt_Bwtseqcontextiterator_delete(bsci);
  bsci = NULL;
}

// Assembly:
subq $0xd8, %rsp
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq %rdx, 0xc0(%rsp)
movq $0x0, 0xa8(%rsp)
movb $0x1, 0xa7(%rsp)
cmpq $0x0, 0xc8(%rsp)
jne 0x2575c6
movq 0x3e4a0b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bea74(%rip), %rsi    # 0x516013
leaq 0x322fe0(%rip), %rdx    # 0x57a586
leaq 0x322fe7(%rip), %rcx    # 0x57a594
leaq 0x3229dd(%rip), %r8     # 0x579f91
movl $0x2cb, %r9d            # imm = 0x2CB
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2575c8
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0xd0(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x10(%rax), %rdi
movq 0x98(%rsp), %rsi
callq 0x22f720
movq %rax, 0x90(%rsp)
movq 0xd0(%rsp), %rdi
movq 0xc0(%rsp), %rsi
callq 0x257d10
movq $0x0, 0xb0(%rsp)
testb $0x1, 0xa7(%rsp)
je 0x25764b
movq 0xc8(%rsp), %rax
movb 0x20(%rax), %al
movb %al, 0xbf(%rsp)
movb $0x0, 0xa7(%rsp)
jmp 0x257667
movq 0x90(%rsp), %rsi
leaq 0x98(%rsp), %rdi
callq 0x22f7e0
movb %al, 0xbf(%rsp)
movzbl 0xbf(%rsp), %eax
cmpl $0xff, %eax
je 0x2578fa
movq 0xd0(%rsp), %rax
testb $0x1, 0xe0(%rax)
je 0x25769e
movzbl 0xbf(%rsp), %eax
cmpl $0xfe, %eax
je 0x2578fa
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq (%rax), %rsi
subq $0x1, %rsi
addq 0xb0(%rsp), %rsi
movzbl 0xbf(%rsp), %edx
callq 0x256500
movq 0xd0(%rsp), %rdi
movq 0xb0(%rsp), %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq $0x0, %rdx
cmoval %ecx, %eax
cmpl $0x0, %eax
setne %al
movb 0xbf(%rsp), %cl
movq 0xc8(%rsp), %rdx
movq (%rdx), %r8
addq 0xb0(%rsp), %r8
movq 0xc0(%rsp), %r9
movzbl %cl, %ecx
movzbl %al, %edx
andl $0x1, %edx
leaq 0xa8(%rsp), %rsi
callq 0x257da0
movq %rax, 0x28(%rsp)
movq 0xc0(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0xd0(%rsp), %rax
testb $0x1, 0xc8(%rax)
je 0x25775d
movq 0x28(%rsp), %rax
addq $0x28, %rax
movq %rax, 0x10(%rsp)
jmp 0x257770
movq 0xd0(%rsp), %rax
addq $0x98, %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x98(%rsp), %rcx
addq $0x1, %rcx
movq 0xc8(%rsp), %rdi
movq (%rdi), %r9
addq 0xb0(%rsp), %r9
movq 0xd0(%rsp), %rdi
movq (%rdi), %r10
leaq 0x78(%rsp), %rdi
movl $0x1, %r8d
movq %r10, (%rsp)
callq *%rax
cmpl $0x2, 0x78(%rsp)
jne 0x2577c9
jmp 0x257917
cmpl $0x0, 0x78(%rsp)
jne 0x2578f8
movq 0xd0(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x10(%rax), %rdi
movq 0xc8(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x22f2c0
movq %rax, 0x20(%rsp)
movb $0x1, 0x30(%rsp)
movq 0xd0(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0xc8(%rsp), %rdx
addq (%rdx), %rcx
subq %rcx, %rax
movq %rax, 0x40(%rsp)
movq 0xc8(%rsp), %rax
movq (%rax), %rax
addq 0xb0(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xd0(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xd0(%rsp), %rax
testb $0x1, 0xc8(%rax)
je 0x2578a5
movq 0xd0(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x30(%rsp), %rdi
callq 0x2579b0
jmp 0x2578b7
movq $0x0, 0x58(%rsp)
movq $0x0, 0x70(%rsp)
movq 0xd0(%rsp), %rax
movq 0x130(%rax), %rax
movq 0xd0(%rsp), %rcx
movq 0x138(%rcx), %rdi
leaq 0x30(%rsp), %rsi
callq *%rax
movq 0xd0(%rsp), %rax
movq 0x128(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x128(%rax)
jmp 0x257917
jmp 0x2578fc
jmp 0x257917
jmp 0x2578fe
movq 0xb0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xb0(%rsp)
jmp 0x257625
movq 0xd0(%rsp), %rax
testb $0x1, 0xc8(%rax)
je 0x257983
jmp 0x25792a
cmpq $0x0, 0xa8(%rsp)
ja 0x25796d
movq 0x3e4664(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2be6cd(%rip), %rsi    # 0x516013
leaq 0x322c57(%rip), %rdx    # 0x57a5a4
leaq 0x322c40(%rip), %rcx    # 0x57a594
leaq 0x322636(%rip), %r8     # 0x579f91
movl $0x31d, %r9d            # imm = 0x31D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25796f
movq 0xa8(%rsp), %rcx
movq 0xd0(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x90(%rsp), %rdi
callq 0x22fa60
movq $0x0, 0x90(%rsp)
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)