// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idx-limdfs.c
// Function: expandsingleton
static Lcpintervalwithinfo *expandsingleton(Limdfsresources *limdfsresources,
                                            GtUword *resetvalue,
                                            bool notfirst,
                                            GtUchar cc,
                                            GtUword currentdepth,
                                            const AbstractDfstransformer *adfst)
{
  if (limdfsresources->keepexpandedonstack)
  {
    Lcpintervalwithinfo *instate;
    Lcpintervalwithinfo *outstate;

    outstate = allocateStackspace(limdfsresources,adfst);
    outstate->keeponstack = true;
    outstate->lcpitv.offset = (GtUword) currentdepth;
    outstate->lcpitv.inchar = cc;
    if (notfirst)
    {
      instate = outstate-1;
      gt_assert(limdfsresources->stack.nextfreeLcpintervalwithinfo >= 2UL);
      outstate->previousstackelem
        = limdfsresources->stack.nextfreeLcpintervalwithinfo - 2;
    } else
    {
      gt_assert(limdfsresources->parentindex <
                limdfsresources->stack.nextfreeLcpintervalwithinfo-1);
      *resetvalue = limdfsresources->stack.nextfreeLcpintervalwithinfo-1;
      instate = limdfsresources->stack.spaceLcpintervalwithinfo +
                limdfsresources->parentindex;
      outstate->previousstackelem = limdfsresources->parentindex;
    }
    gt_assert(instate < outstate);
    adfst->nextLimdfsstate(limdfsresources->dfsconstinfo,
                           outstate->aliasstate,
                           currentdepth,
                           cc,
                           instate->aliasstate);
    return outstate;
  }
  adfst->inplacenextLimdfsstate(limdfsresources->dfsconstinfo,
                                limdfsresources->copyofcopyofparentstate,
                                currentdepth,
                                cc);
  return NULL;
}

// Assembly:
subq $0x48, %rsp
movb %cl, %al
movb %dl, %cl
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
andb $0x1, %cl
movb %cl, 0x2f(%rsp)
movb %al, 0x2e(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq 0x38(%rsp), %rax
testb $0x1, 0xc8(%rax)
je 0x257fac
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x256c40
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movb $0x1, 0x50(%rax)
movq 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movb 0x2e(%rsp), %cl
movq 0x8(%rsp), %rax
movb %cl, 0x20(%rax)
testb $0x1, 0x2f(%rsp)
je 0x257e85
movq 0x8(%rsp), %rax
addq $-0x60, %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
cmpq $0x2, 0x30(%rax)
jae 0x257e68
movq 0x3e4169(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2be1d2(%rip), %rsi    # 0x516013
leaq 0x32276b(%rip), %rdx    # 0x57a5b3
leaq 0x32279e(%rip), %rcx    # 0x57a5ed
leaq 0x32213b(%rip), %r8     # 0x579f91
movl $0x23d, %r9d            # imm = 0x23D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x257e6a
movq 0x38(%rsp), %rax
movq 0x30(%rax), %rcx
subq $0x2, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x58(%rax)
jmp 0x257f27
jmp 0x257e87
movq 0x38(%rsp), %rax
movq 0xc0(%rax), %rax
movq 0x38(%rsp), %rcx
movq 0x30(%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jb 0x257edd
movq 0x3e40f4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2be15d(%rip), %rsi    # 0x516013
leaq 0x322740(%rip), %rdx    # 0x57a5fd
leaq 0x322729(%rip), %rcx    # 0x57a5ed
leaq 0x3220c6(%rip), %r8     # 0x579f91
movl $0x243, %r9d            # imm = 0x243
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x257edf
movq 0x38(%rsp), %rax
movq 0x30(%rax), %rcx
subq $0x1, %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x38(%rsp), %rcx
imulq $0x60, 0xc0(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0xc0(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x58(%rax)
jmp 0x257f29
movq 0x10(%rsp), %rax
cmpq 0x8(%rsp), %rax
jb 0x257f6d
movq 0x3e4064(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2be0cd(%rip), %rsi    # 0x516013
leaq 0x322704(%rip), %rdx    # 0x57a651
leaq 0x322699(%rip), %rcx    # 0x57a5ed
leaq 0x322036(%rip), %r8     # 0x579f91
movl $0x249, %r9d            # imm = 0x249
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x257f6f
movq 0x18(%rsp), %rax
movq 0x50(%rax), %rax
movq 0x38(%rsp), %rcx
movq (%rcx), %rdi
movq 0x8(%rsp), %rsi
addq $0x28, %rsi
movq 0x20(%rsp), %rdx
movb 0x2e(%rsp), %cl
movq 0x10(%rsp), %r8
addq $0x28, %r8
movzbl %cl, %ecx
callq *%rax
movq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x257fde
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rax
movq 0x38(%rsp), %rcx
movq (%rcx), %rdi
movq 0x38(%rsp), %rsi
addq $0x98, %rsi
movq 0x20(%rsp), %rdx
movzbl 0x2e(%rsp), %ecx
callq *%rax
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)