// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idx-limdfs.c
// Function: esa_splitandprocess
static void esa_splitandprocess(Limdfsresources *limdfsresources,
                                const AbstractDfstransformer *adfst)
{
  GtUword firstspecial;
  GtUchar extendchar;
  GtUword idx;
  const Indexbounds *parent = &(currentparent(limdfsresources)->lcpitv);

  extendchar = gt_lcpintervalextendlcp(
                       limdfsresources->genericindex->suffixarray->encseq,
                       limdfsresources->genericindex->suffixarray->readmode,
                       limdfsresources->genericindex->suffixarray->suftab,
                       limdfsresources->genericindex->totallength,
                       limdfsresources->alphasize,
                       parent->offset,
                       parent->leftbound,
                       parent->rightbound);
  if (extendchar < limdfsresources->alphasize)
  {
    limdfsresources->bwci.spaceBoundswithchar[0].lbound = parent->leftbound;
    limdfsresources->bwci.spaceBoundswithchar[0].rbound = parent->rightbound;
    limdfsresources->bwci.spaceBoundswithchar[0].inchar = extendchar;
    limdfsresources->bwci.nextfreeBoundswithchar = 1UL;
  } else
  {
    limdfsresources->bwci.nextfreeBoundswithchar = 0;
    gt_lcpintervalsplitwithoutspecial(
                     &limdfsresources->bwci,
                     limdfsresources->genericindex->suffixarray->encseq,
                     limdfsresources->genericindex->suffixarray->readmode,
                     limdfsresources->genericindex->totallength,
                     limdfsresources->genericindex->suffixarray->suftab,
                     parent->offset,
                     parent->leftbound,
                     parent->rightbound);
  }
  firstspecial = parent->leftbound;
  for (idx = 0; idx < limdfsresources->bwci.nextfreeBoundswithchar; idx++)
  {
    Indexbounds child;

    /* reset as parentptr may have been moved */
    parent = &(currentparent(limdfsresources)->lcpitv);
    child.inchar = limdfsresources->bwci.spaceBoundswithchar[idx].inchar;
    child.offset = parent->offset+1;
    child.leftbound = limdfsresources->bwci.spaceBoundswithchar[idx].lbound;
    child.rightbound = limdfsresources->bwci.spaceBoundswithchar[idx].rbound;
    child.code = 0; /* not used, but we better define it */
    addpathchar(limdfsresources,(GtUword) parent->offset,child.inchar);
#ifdef SKDEBUG
    printf("%u-child of ",(unsigned int) child.inchar);
    showLCPinterval(limdfsresources->genericindex->withesa,parent);
    printf(" is ");
    showLCPinterval(limdfsresources->genericindex->withesa,&child);
    printf("\n");
#endif
    processchildinterval(limdfsresources, &child, adfst);
    firstspecial = child.rightbound+1;
  }
  if (!limdfsresources->nowildcards)
  {
    Indexbounds child;
    GtUword bound;

    child.inchar = (GtUchar) GT_WILDCARD;
    child.offset = parent->offset+1;
    child.code = 0;  /* not used, but we better define it */
    for (bound = firstspecial; bound <= parent->rightbound; bound++)
    {
      child.leftbound = child.rightbound = bound;
      esa_overcontext(limdfsresources,&child,adfst);
    }
  }
}

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq 0x90(%rsp), %rdi
callq 0x256440
movq %rax, 0x68(%rsp)
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movq (%rax), %rdi
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movl 0x48(%rax), %esi
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movq 0x58(%rax), %rdx
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x90(%rsp), %rax
movb 0xc9(%rax), %r8b
movq 0x68(%rsp), %rax
movq (%rax), %r9
movq 0x68(%rsp), %rax
movq 0x8(%rax), %r10
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rax
movzbl %r8b, %r8d
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x23ffe0
movb %al, 0x7f(%rsp)
movzbl 0x7f(%rsp), %eax
movq 0x90(%rsp), %rcx
movzbl 0xc9(%rcx), %ecx
cmpl %ecx, %eax
jge 0x2566bc
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, (%rax)
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x8(%rax)
movb 0x7f(%rsp), %cl
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
movb %cl, 0x10(%rax)
movq 0x90(%rsp), %rax
movq $0x1, 0x18(%rax)
jmp 0x256753
movq 0x90(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x90(%rsp), %rdi
addq $0x8, %rdi
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movq (%rax), %rsi
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movl 0x48(%rax), %edx
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x90(%rsp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movq 0x58(%rax), %r8
movq 0x68(%rsp), %rax
movq (%rax), %r9
movq 0x68(%rsp), %rax
movq 0x8(%rax), %r10
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x23fcb0
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x80(%rsp)
movq $0x0, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0x90(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jae 0x25685f
movq 0x90(%rsp), %rdi
callq 0x256440
movq %rax, 0x68(%rsp)
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
imulq $0x18, 0x70(%rsp), %rcx
addq %rcx, %rax
movb 0x10(%rax), %al
movb %al, 0x60(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
imulq $0x18, 0x70(%rsp), %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
imulq $0x18, 0x70(%rsp), %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x58(%rsp)
movq 0x90(%rsp), %rdi
movq 0x68(%rsp), %rax
movq (%rax), %rsi
movzbl 0x60(%rsp), %edx
callq 0x256500
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %rdx
leaq 0x40(%rsp), %rsi
callq 0x256d50
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x80(%rsp)
movq 0x70(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x70(%rsp)
jmp 0x25676d
movq 0x90(%rsp), %rax
testb $0x1, 0xe0(%rax)
jne 0x2568e7
movb $-0x2, 0x38(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x10(%rcx), %rax
ja 0x2568e5
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %rax, 0x20(%rsp)
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %rdx
leaq 0x18(%rsp), %rsi
callq 0x256e00
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x25689c
jmp 0x2568e7
addq $0x98, %rsp
retq
nop