// File: /workspace/github_c_makefile_star2_O3/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 0x1b2f09
movq %rax, %r15
movq (%rax), %rdx
movq 0xd8(%r14), %rax
movl 0x28(%rax), %ecx
cmpq %rcx, %rdx
jae 0x1b3180
movq 0x20(%rax), %rsi
movzbl 0xc9(%r14), %eax
movq 0x18(%r15), %rbp
imulq %rax, %rbp
movq $0x0, 0x18(%r14)
testl %eax, %eax
je 0x1b322e
movq %rbp, %rcx
shlq $0x4, %rcx
addq 0x8(%rsi,%rdx,8), %rcx
shll $0x4, %eax
addq %rcx, %rax
xorl %esi, %esi
xorl %edx, %edx
movq (%rcx), %r8
movq 0x8(%rcx), %rdi
cmpq %rdi, %r8
jae 0x1b3172
movq 0x8(%r14), %r9
leaq (%rdx,%rdx,2), %r10
movb %sil, 0x10(%r9,%r10,8)
movq %r8, (%r9,%r10,8)
incq %rdx
movq %rdx, 0x18(%r14)
movq %rdi, 0x8(%r9,%r10,8)
addq $0x10, %rcx
incb %sil
cmpq %rax, %rcx
jb 0x1b3149
jmp 0x1b31a2
leaq 0x8(%r14), %rdi
movq 0xf0(%r14), %rsi
movq 0x10(%rax), %rdx
movq 0x8(%r15), %rcx
movq 0x10(%r15), %r8
callq 0x1a00a9
movq 0x18(%r14), %rdx
xorl %ebp, %ebp
testq %rdx, %rdx
je 0x1b322e
movl $0x10, %ebx
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x1b2f09
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 0x1b32a6
leaq (%rdx,%rbp), %rax
movq %rax, 0x28(%rsp)
movq (%r15), %rsi
movq %r14, %rdi
callq 0x1b2f3a
addq 0x20(%rsp), %r12
subq 0x18(%rsp), %r12
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x1b3371
incq %r13
addq $0x18, %rbx
cmpq 0x18(%r14), %r13
jb 0x1b31b6
jmp 0x1b3231
xorl %r12d, %r12d
cmpb $0x0, 0xe0(%r14)
jne 0x1b3297
addq 0x8(%r15), %r12
cmpq 0x10(%r15), %r12
jae 0x1b3297
leaq 0x10(%rsp), %r13
movq 0xd8(%r14), %rax
movq 0x10(%rax), %rsi
movq %r12, %rdi
callq 0x19fbe6
movq (%r15), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
movq $0x0, 0x28(%rsp)
cmpb $-0x1, %al
je 0x1b328e
movq %r12, 0x18(%rsp)
movb %al, 0x30(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
callq 0x1b37d1
incq %r12
cmpq 0x10(%r15), %r12
jb 0x1b324a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x655fa