// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idx-limdfs.c
// Function: gt_newLimdfsresources
Limdfsresources *gt_newLimdfsresources(const Genericindex *genericindex,
                                    bool nowildcards,
                                    GtUword maxintervalwidth,
                                    GtUword maxpathlength,
                                    bool keepexpandedonstack,
                                    ProcessIdxMatch processmatch,
                                    void *processmatchinfo,
                                    Processresult processresult,
                                    void *patterninfo,
                                    const AbstractDfstransformer *adfst)
{
  Limdfsresources *limdfsresources;
  unsigned int numofchars;
  const GtEncseq *encseq;

  encseq = genericindex->suffixarray->encseq;
  numofchars = gt_alphabet_num_of_chars(gt_encseq_alphabet(encseq));
  limdfsresources = gt_malloc(sizeof *limdfsresources);
  limdfsresources->bwci.spaceBoundswithchar
    = gt_malloc(sizeof *limdfsresources->bwci.spaceBoundswithchar
                * (numofchars+1));
  limdfsresources->bwci.nextfreeBoundswithchar = 0;
  limdfsresources->bwci.allocatedBoundswithchar
    = (GtUword) (numofchars+1);
  GT_INITARRAY(&limdfsresources->stack,Lcpintervalwithinfo);
  gt_assert(numofchars <= GT_MAXALPHABETCHARACTER);
  limdfsresources->alphasize = (GtUchar) numofchars;
  limdfsresources->processmatch = processmatch;
  limdfsresources->processmatchinfo = processmatchinfo;
  limdfsresources->processresult = processresult;
  limdfsresources->patterninfo = patterninfo;
  limdfsresources->genericindex = genericindex;
  limdfsresources->nowildcards = nowildcards;
  limdfsresources->encseq = encseq;
  limdfsresources->maxintervalwidth = maxintervalwidth;
  limdfsresources->keepexpandedonstack = keepexpandedonstack;
  if (maxpathlength > 0)
  {
    limdfsresources->currentpathspace
      = gt_malloc(sizeof *limdfsresources->currentpathspace
                  * maxpathlength);
    limdfsresources->allocatedpathspace = maxpathlength;
  } else
  {
    limdfsresources->currentpathspace = NULL;
  }
  /* Application specific */
  limdfsresources->dfsconstinfo
    = adfst->allocatedfsconstinfo((unsigned int) limdfsresources->alphasize);
  if (genericindex->withesa)
  {
    limdfsresources->rangeOccs = NULL;
  } else
  {
    limdfsresources->rangeOccs
      = gt_malloc(sizeof *limdfsresources->rangeOccs
                  * GT_MULT2(limdfsresources->alphasize));
  }
  GT_INITARRAY(&limdfsresources->mstatspos,GtUword);
  if (maxintervalwidth > 0)
  {
    limdfsresources->mstatspos.spaceGtUword
      = gt_malloc(sizeof *limdfsresources->mstatspos.spaceGtUword
                  * maxintervalwidth);
    limdfsresources->mstatspos.allocatedGtUword = maxintervalwidth;
  }
  if (adfst->initLimdfsstackelem != NULL &&
      !limdfsresources->keepexpandedonstack)
  {
    adfst->initLimdfsstackelem(limdfsresources->copyofcopyofparentstate);
    adfst->initLimdfsstackelem(limdfsresources->copyofparent.aliasstate);
  }
  return limdfsresources;
}

// Assembly:
subq $0x48, %rsp
movb %r8b, %al
movq 0x68(%rsp), %r8
movq 0x60(%rsp), %r8
movq 0x58(%rsp), %r8
movq 0x50(%rsp), %r8
movq %rdi, 0x40(%rsp)
andb $0x1, %sil
movb %sil, 0x3f(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
andb $0x1, %al
movb %al, 0x27(%rsp)
movq %r9, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
callq 0xb0f00
movq %rax, %rdi
callq 0x7e8c0
movl %eax, 0xc(%rsp)
movl $0x148, %edi            # imm = 0x148
leaq 0x3251c3(%rip), %rsi    # 0x579f91
movl $0xe8, %edx
callq 0xe80f0
movq %rax, 0x10(%rsp)
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
imulq $0x18, %rax, %rdi
leaq 0x3251a0(%rip), %rsi    # 0x579f91
movl $0xeb, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x18(%rax)
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x20(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x30(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x28(%rax)
jmp 0x254e51
cmpl $0xff, 0xc(%rsp)
jbe 0x254e93
movq 0x3e713e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c11a7(%rip), %rsi    # 0x516013
leaq 0x32523e(%rip), %rdx    # 0x57a0b1
leaq 0x32525d(%rip), %rcx    # 0x57a0d7
leaq 0x325110(%rip), %r8     # 0x579f91
movl $0xf0, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x254e95
movl 0xc(%rsp), %eax
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0xc9(%rax)
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x130(%rax)
movq 0x50(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x138(%rax)
movq 0x58(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x140(%rax)
movq 0x60(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0xd0(%rax)
movq 0x40(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0xd8(%rax)
movb 0x3f(%rsp), %cl
movq 0x10(%rsp), %rax
andb $0x1, %cl
movb %cl, 0xe0(%rax)
movq (%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0xf8(%rax)
movq 0x30(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0xe8(%rax)
movb 0x27(%rsp), %cl
movq 0x10(%rsp), %rax
andb $0x1, %cl
movb %cl, 0xc8(%rax)
cmpq $0x0, 0x28(%rsp)
jbe 0x254f84
movq 0x28(%rsp), %rdi
shlq $0x0, %rdi
leaq 0x325039(%rip), %rsi    # 0x579f91
movl $0xff, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x118(%rax)
movq 0x28(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x120(%rax)
jmp 0x254f94
movq 0x10(%rsp), %rax
movq $0x0, 0x118(%rax)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rsp), %rcx
movzbl 0xc9(%rcx), %edi
callq *%rax
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movq 0x40(%rsp), %rax
testb $0x1, 0x18(%rax)
je 0x254fd3
movq 0x10(%rsp), %rax
movq $0x0, 0xf0(%rax)
jmp 0x255008
movq 0x10(%rsp), %rax
movzbl 0xc9(%rax), %eax
shll %eax
movslq %eax, %rdi
shlq $0x3, %rdi
leaq 0x324fa2(%rip), %rsi    # 0x579f91
movl $0x10f, %edx            # imm = 0x10F
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0xf0(%rax)
jmp 0x25500a
movq 0x10(%rsp), %rax
movq $0x0, 0x100(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x110(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x108(%rax)
cmpq $0x0, 0x30(%rsp)
jbe 0x25507c
movq 0x30(%rsp), %rdi
shlq $0x3, %rdi
leaq 0x324f3f(%rip), %rsi    # 0x579f91
movl $0x116, %edx            # imm = 0x116
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x100(%rax)
movq 0x30(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x108(%rax)
movq 0x68(%rsp), %rax
cmpq $0x0, 0x30(%rax)
je 0x2550c5
movq 0x10(%rsp), %rax
testb $0x1, 0xc8(%rax)
jne 0x2550c5
movq 0x68(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x10(%rsp), %rdi
addq $0x98, %rdi
callq *%rax
movq 0x68(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x10(%rsp), %rdi
addq $0x38, %rdi
addq $0x28, %rdi
callq *%rax
movq 0x10(%rsp), %rax
addq $0x48, %rsp
retq
nop