// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %ebp
movq %rdi, %r12
cmpb $0x1, 0xc8(%rdi)
jne 0x161964
movl %edx, %r13d
movq %rsi, (%rsp)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x160f4b
movq %rax, %r15
movb $0x1, 0x50(%rax)
movq %r14, (%rax)
movb %bpl, 0x20(%rax)
testb %r13b, %r13b
je 0x161981
movq 0x30(%r12), %rax
cmpq $0x1, %rax
jbe 0x1619e3
leaq -0x60(%r15), %r8
addq $-0x2, %rax
movq %rax, 0x58(%r15)
jmp 0x1619b8
movq (%r12), %rdi
addq $0x98, %r12
movzbl %bpl, %ecx
movq %r12, %rsi
movq %r14, %rdx
callq *0x58(%rbx)
xorl %r15d, %r15d
jmp 0x1619d1
movq 0x30(%r12), %rax
decq %rax
cmpq %rax, 0xc0(%r12)
jae 0x161a11
movq (%rsp), %rcx
movq %rax, (%rcx)
movq 0xc0(%r12), %rax
imulq $0x60, %rax, %r8
addq 0x20(%r12), %r8
movq %rax, 0x58(%r15)
cmpq %r15, %r8
jae 0x161a3f
movq (%r12), %rdi
movq %r15, %rsi
addq $0x28, %rsi
addq $0x28, %r8
movzbl %bpl, %ecx
movq %r14, %rdx
callq *0x50(%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2d657e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x18361f(%rip), %rsi    # 0x2e5013
leaq 0x1e66df(%rip), %rdx    # 0x3480da
leaq 0x1e6712(%rip), %rcx    # 0x348114
leaq 0x1e60af(%rip), %r8     # 0x347ab8
movl $0x23d, %r9d            # imm = 0x23D
jmp 0x161a6b
movq 0x2d6550(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1835f1(%rip), %rsi    # 0x2e5013
leaq 0x1e66fb(%rip), %rdx    # 0x348124
leaq 0x1e66e4(%rip), %rcx    # 0x348114
leaq 0x1e6081(%rip), %r8     # 0x347ab8
movl $0x243, %r9d            # imm = 0x243
jmp 0x161a6b
movq 0x2d6522(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1835c3(%rip), %rsi    # 0x2e5013
leaq 0x1e6721(%rip), %rdx    # 0x348178
leaq 0x1e66b6(%rip), %rcx    # 0x348114
leaq 0x1e6053(%rip), %r8     # 0x347ab8
movl $0x249, %r9d            # imm = 0x249
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop