// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/idx-limdfs.c
// Function: tracethestackelems
static void tracethestackelems(GtIdxMatch *match,
                               Limdfsresources *limdfsresources,
                               GtUword pprefixlen,
                               const Lcpintervalwithinfo *runptr)
{
  GtUword previous = 0;

  gt_assert(runptr != NULL);
  gt_reinitLocaliTracebackstate(limdfsresources->dfsconstinfo,
                                runptr->lcpitv.offset,
                                pprefixlen);
  do
  {
    if (previous > 0)
    {
      gt_assert(previous - 1 == runptr->lcpitv.offset);
    }
    previous = runptr->lcpitv.offset;
    gt_assert(previous > 0);
    gt_assert(runptr->previousstackelem <
              limdfsresources->stack.nextfreeLcpintervalwithinfo);
    gt_processelemLocaliTracebackstate(limdfsresources->dfsconstinfo,
                                    runptr->lcpitv.inchar,runptr->aliasstate);
    runptr = limdfsresources->stack.spaceLcpintervalwithinfo +
             runptr->previousstackelem;
  } while (runptr->lcpitv.offset > 0);
  match->alignment
    = gt_completealignmentfromLocaliTracebackstate(&match->querylen,
                                                limdfsresources->dfsconstinfo);
  gt_assert(pprefixlen >= match->querylen);
  match->querystartpos = pprefixlen - match->querylen;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rcx, %rcx
je 0x1617dc
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %rdi
movq (%rcx), %rsi
callq 0x162110
xorl %r13d, %r13d
testq %r13, %r13
je 0x1616e4
decq %r13
cmpq (%r12), %r13
je 0x1616e8
jmp 0x1617a4
movq (%r12), %r13
testq %r13, %r13
je 0x161748
movq 0x58(%r12), %rax
cmpq 0x30(%r15), %rax
jae 0x161776
movq (%r15), %rdi
movzbl 0x20(%r12), %esi
leaq 0x28(%r12), %rdx
callq 0x16214d
imulq $0x60, 0x58(%r12), %rax
movq 0x20(%r15), %rcx
leaq (%rcx,%rax), %r12
cmpq $0x0, (%rcx,%rax)
jne 0x1616d1
leaq 0x30(%r14), %rdi
movq (%r15), %rsi
callq 0x162336
movq %rax, 0x40(%r14)
subq 0x30(%r14), %rbx
jb 0x16180a
movq %rbx, 0x28(%r14)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x2d6819(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1838ba(%rip), %rsi    # 0x2e5013
leaq 0x1e68d3(%rip), %rdx    # 0x348033
leaq 0x1e6893(%rip), %rcx    # 0x347ffa
leaq 0x1e634a(%rip), %r8     # 0x347ab8
movl $0x134, %r9d            # imm = 0x134
jmp 0x1617d0
movq 0x2d67eb(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x18388c(%rip), %rsi    # 0x2e5013
leaq 0x1e68b2(%rip), %rdx    # 0x348040
leaq 0x1e6865(%rip), %rcx    # 0x347ffa
leaq 0x1e631c(%rip), %r8     # 0x347ab8
movl $0x136, %r9d            # imm = 0x136
jmp 0x1617d0
movq 0x2d67bd(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x18385e(%rip), %rsi    # 0x2e5013
leaq 0x1e6851(%rip), %rdx    # 0x34800d
leaq 0x1e6837(%rip), %rcx    # 0x347ffa
leaq 0x1e62ee(%rip), %r8     # 0x347ab8
movl $0x131, %r9d            # imm = 0x131
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2d6785(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x183826(%rip), %rsi    # 0x2e5013
leaq 0x1e67f7(%rip), %rdx    # 0x347feb
leaq 0x1e67ff(%rip), %rcx    # 0x347ffa
leaq 0x1e62b6(%rip), %r8     # 0x347ab8
movl $0x129, %r9d            # imm = 0x129
jmp 0x1617d0
movq 0x2d6757(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1837f8(%rip), %rsi    # 0x2e5013
leaq 0x1e686d(%rip), %rdx    # 0x34808f
leaq 0x1e67d1(%rip), %rcx    # 0x347ffa
leaq 0x1e6288(%rip), %r8     # 0x347ab8
movl $0x13f, %r9d            # imm = 0x13F
jmp 0x1617d0