// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idx-limdfs.c
// Function: gt_freeLimdfsresources
void gt_freeLimdfsresources(Limdfsresources **ptrlimdfsresources,
                         const AbstractDfstransformer *adfst)
{
  Limdfsresources *limdfsresources = *ptrlimdfsresources;

  adfst->freedfsconstinfo(&limdfsresources->dfsconstinfo);
  GT_FREEARRAY(&limdfsresources->bwci,Boundswithchar);
  if (adfst->freeLimdfsstackelem != NULL)
  {
    GtUword idx;

    for (idx = 0; idx < limdfsresources->stack.allocatedLcpintervalwithinfo;
         idx++)
    {
      adfst->freeLimdfsstackelem(limdfsresources->stack.
                                 spaceLcpintervalwithinfo[idx].aliasstate);
    }
    if (!limdfsresources->keepexpandedonstack)
    {
      adfst->freeLimdfsstackelem(limdfsresources->copyofcopyofparentstate);
      adfst->freeLimdfsstackelem(limdfsresources->copyofparent.aliasstate);
    }
  }
  GT_FREEARRAY(&limdfsresources->stack,Lcpintervalwithinfo);
  gt_free(limdfsresources->rangeOccs);
  gt_free(limdfsresources->currentpathspace);
  GT_FREEARRAY(&limdfsresources->mstatspos,GtUword);
  gt_free(*ptrlimdfsresources);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rsp), %rdi
callq *%rax
movq 0x10(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x255148
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x324e7a(%rip), %rsi    # 0x579f91
movl $0x17f, %edx            # imm = 0x17F
callq 0xe88c0
movq 0x10(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x8(%rax)
jmp 0x25514a
movq 0x18(%rsp), %rax
cmpq $0x0, 0x38(%rax)
je 0x2551e3
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jae 0x2551a4
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movq 0x20(%rcx), %rdi
imulq $0x60, 0x8(%rsp), %rcx
addq %rcx, %rdi
addq $0x28, %rdi
callq *%rax
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x255163
movq 0x10(%rsp), %rax
testb $0x1, 0xc8(%rax)
jne 0x2551e1
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rdi
addq $0x98, %rdi
callq *%rax
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rdi
addq $0x38, %rdi
addq $0x28, %rdi
callq *%rax
jmp 0x2551e3
jmp 0x2551e5
movq 0x10(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0x255232
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
leaq 0x324d90(%rip), %rsi    # 0x579f91
movl $0x190, %edx            # imm = 0x190
callq 0xe88c0
movq 0x10(%rsp), %rax
movq $0x0, 0x28(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x30(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x20(%rax)
jmp 0x255234
movq 0x10(%rsp), %rax
movq 0xf0(%rax), %rdi
leaq 0x324d4a(%rip), %rsi    # 0x579f91
movl $0x191, %edx            # imm = 0x191
callq 0xe88c0
movq 0x10(%rsp), %rax
movq 0x118(%rax), %rdi
leaq 0x324d2d(%rip), %rsi    # 0x579f91
movl $0x192, %edx            # imm = 0x192
callq 0xe88c0
movq 0x10(%rsp), %rax
cmpq $0x0, 0x100(%rax)
je 0x2552ca
movq 0x10(%rsp), %rax
movq 0x100(%rax), %rdi
leaq 0x324d01(%rip), %rsi    # 0x579f91
movl $0x193, %edx            # imm = 0x193
callq 0xe88c0
movq 0x10(%rsp), %rax
movq $0x0, 0x108(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x110(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x100(%rax)
jmp 0x2552cc
movq 0x20(%rsp), %rax
movq (%rax), %rdi
leaq 0x324cb6(%rip), %rsi    # 0x579f91
movl $0x194, %edx            # imm = 0x194
callq 0xe88c0
addq $0x28, %rsp
retq
nopw (%rax,%rax)