// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/idx-limdfs.c
// Function: pck_splitandprocess
static void pck_splitandprocess(Limdfsresources *limdfsresources,
                                const AbstractDfstransformer *adfst)
{
  GtUword idx;
  GtUword sumwidth = 0;
  const Indexbounds *parent = &(currentparent(limdfsresources)->lcpitv);
  GtCodetype startcode;

  if (parent->offset < (GtUword) limdfsresources->genericindex->maxdepth)
  {
    smalldepthbwtrangesplitwithoutspecial(&limdfsresources->bwci,
                                          limdfsresources->genericindex->mbtab,
                                          limdfsresources->alphasize,
                                          parent->code,
                                          (GtUword) (parent->offset + 1));
    startcode = parent->code * limdfsresources->alphasize;
  } else
  {
    gt_bwtrangesplitwithoutspecial(&limdfsresources->bwci,
                                limdfsresources->rangeOccs,
                                limdfsresources->genericindex->packedindex,
                                parent->leftbound,
                                parent->rightbound);
    startcode = 0;
  }
  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;
    gt_assert(child.inchar < limdfsresources->alphasize);
    child.code = startcode + child.inchar;
    addpathchar(limdfsresources,(GtUword) parent->offset,child.inchar);
    sumwidth += child.rightbound - child.leftbound;
#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);
  }
  if (!limdfsresources->nowildcards)
  {
    GtUword bound;
    Indexbounds child;

    for (bound = parent->leftbound + sumwidth;
         bound < parent->rightbound; bound++)
    {
      GtUchar cc = gt_bwtseqgetsymbol(bound,
                                   limdfsresources->genericindex->packedindex);

      child.offset = parent->offset+1;
      child.code = 0;  /* not used, but we better define it */
      if (cc != (GtUchar) GT_SEPARATOR)
      {
        child.leftbound = bound;
        child.inchar = cc;
        pck_overcontext(limdfsresources,&child,adfst);
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %r14
callq 0x1bbabe
movq %rax, %r15
movq (%rax), %rdx
movq 0xd8(%r14), %rax
movl 0x28(%rax), %ecx
cmpq %rcx, %rdx
jae 0x1bbd3e
movq 0x20(%rax), %rsi
movzbl 0xc9(%r14), %eax
movq 0x18(%r15), %rbp
imulq %rax, %rbp
movq $0x0, 0x18(%r14)
testl %eax, %eax
je 0x1bbd5c
movq %rbp, %rcx
shlq $0x4, %rcx
addq 0x8(%rsi,%rdx,8), %rcx
shll $0x4, %eax
addq %rcx, %rax
xorl %edx, %edx
movq (%rcx), %rdi
movq 0x8(%rcx), %rsi
cmpq %rsi, %rdi
jae 0x1bbd31
movq 0x8(%r14), %r8
movq 0x18(%r14), %r9
leaq (%r9,%r9,2), %r10
movb %dl, 0x10(%r8,%r10,8)
movq %rdi, (%r8,%r10,8)
incq %r9
movq %r9, 0x18(%r14)
movq %rsi, 0x8(%r8,%r10,8)
addq $0x10, %rcx
incb %dl
cmpq %rax, %rcx
jb 0x1bbd04
jmp 0x1bbd5c
leaq 0x8(%r14), %rdi
movq 0xf0(%r14), %rsi
movq 0x10(%rax), %rdx
movq 0x8(%r15), %rcx
movq 0x10(%r15), %r8
callq 0x1a8863
xorl %ebp, %ebp
cmpq $0x0, 0x18(%r14)
je 0x1bbdea
movl $0x10, %ebx
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1bbabe
movq %rax, %r15
movq 0x8(%r14), %rax
movzbl (%rax,%rbx), %edx
movb %dl, 0x30(%rsp)
movq (%r15), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
movups -0x10(%rax,%rbx), %xmm0
movups %xmm0, 0x18(%rsp)
cmpb 0xc9(%r14), %dl
jae 0x1bbe62
leaq (%rdx,%rbp), %rax
movq %rax, 0x28(%rsp)
movq (%r15), %rsi
movq %r14, %rdi
callq 0x1bbaff
addq 0x20(%rsp), %r12
subq 0x18(%rsp), %r12
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x1bbf0c
incq %r13
addq $0x18, %rbx
cmpq 0x18(%r14), %r13
jb 0x1bbd72
jmp 0x1bbded
xorl %r12d, %r12d
cmpb $0x0, 0xe0(%r14)
jne 0x1bbe53
addq 0x8(%r15), %r12
cmpq 0x10(%r15), %r12
jae 0x1bbe53
leaq 0x10(%rsp), %r13
movq 0xd8(%r14), %rax
movq 0x10(%rax), %rsi
movq %r12, %rdi
callq 0x1a8355
movq (%r15), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
movq $0x0, 0x28(%rsp)
cmpb $-0x1, %al
je 0x1bbe4a
movq %r12, 0x18(%rsp)
movb %al, 0x30(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
callq 0x1bc36c
incq %r12
cmpq 0x10(%r15), %r12
jb 0x1bbe06
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x66db9