// File: /workspace/github_c_makefile_star2_O2/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 0x160b54
movq %rax, %r15
movq (%rax), %rdx
movq 0xd8(%r14), %rax
movl 0x28(%rax), %ecx
cmpq %rcx, %rdx
jae 0x160e06
movq 0x20(%rax), %rsi
movzbl 0xc9(%r14), %eax
movq 0x18(%r15), %rbp
imulq %rax, %rbp
andq $0x0, 0x18(%r14)
movq %rbp, %rcx
shlq $0x4, %rcx
addq 0x8(%rsi,%rdx,8), %rcx
shll $0x4, %eax
addq %rcx, %rax
xorl %edx, %edx
xorl %esi, %esi
cmpq %rax, %rcx
jae 0x160e24
movq (%rcx), %r8
movq 0x8(%rcx), %rdi
cmpq %rdi, %r8
jae 0x160dfe
movq 0x8(%r14), %r9
imulq $0x18, %rsi, %r10
movb %dl, 0x10(%r9,%r10)
movq %r8, (%r9,%r10)
incq %rsi
movq %rsi, 0x18(%r14)
movq %rdi, 0x8(%r9,%r10)
addq $0x10, %rcx
incb %dl
jmp 0x160dd0
leaq 0x8(%r14), %rdi
movq 0xf0(%r14), %rsi
movq 0x10(%rax), %rdx
movq 0x8(%r15), %rcx
movq 0x10(%r15), %r8
callq 0x14b80d
xorl %ebp, %ebp
pushq $0x10
popq %rbx
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq 0x18(%r14), %r13
jae 0x160ea5
movq %r14, %rdi
callq 0x160b54
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 0x160f13
leaq (%rdx,%rbp), %rax
movq %rax, 0x28(%rsp)
movq (%r15), %rsi
movq %r14, %rdi
callq 0x160bb4
addq 0x20(%rsp), %r12
subq 0x18(%rsp), %r12
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x160ff4
incq %r13
addq $0x18, %rbx
jmp 0x160e2d
cmpb $0x0, 0xe0(%r14)
je 0x160ebe
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq 0x8(%r15), %r12
leaq 0x10(%rsp), %r13
cmpq 0x10(%r15), %r12
jae 0x160eaf
movq 0xd8(%r14), %rax
movq 0x10(%rax), %rsi
movq %r12, %rdi
callq 0x14b266
movq (%r15), %rcx
incq %rcx
movq %rcx, 0x10(%rsp)
andq $0x0, 0x28(%rsp)
cmpb $-0x1, %al
je 0x160f0e
movq %r12, 0x18(%rsp)
movb %al, 0x30(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
callq 0x16145a
incq %r12
jmp 0x160ec7
movq 0x2d704e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1840ef(%rip), %rsi    # 0x2e5013
leaq 0x1e7270(%rip), %rdx    # 0x34819b
leaq 0x1e7293(%rip), %rcx    # 0x3481c5
leaq 0x1e6b7f(%rip), %r8     # 0x347ab8
movl $0x43b, %r9d            # imm = 0x43B
xorl %eax, %eax
callq 0x17a50
callq 0x17390