// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/idxlocalidp.c
// Function: gt_completealignmentfromLocaliTracebackstate
const void *gt_completealignmentfromLocaliTracebackstate(
                                        GtUword *alignedquerylength,
                                        const Limdfsconstinfo *lci)
{
#ifndef NDEBUG
  Scoretype evalscore;
#endif
  const GtUchar *querysubstart;

#ifdef SKDEBUG
  gt_alignment_show_multieop_list(lci->tbs.alignment,stdout);
#endif
  gt_assert(lci->tbs.queryend >= lci->tbs.querypos);
  *alignedquerylength = lci->tbs.queryend - lci->tbs.querypos;
  querysubstart = lci->query + lci->tbs.querypos;
  gt_assert(querysubstart != NULL);
  gt_alignment_set_seqs(lci->tbs.alignment,
                        querysubstart,
                        *alignedquerylength,
                        lci->tbs.spaceGtUchardbsubstring,
                        (GtUword) lci->tbs.dbprefixlen);
#ifndef NDEBUG
  evalscore = gt_alignment_eval_with_score(lci->tbs.alignment,false,
                                           lci->scorevalues.matchscore,
                                           lci->scorevalues.mismatchscore,
                                           lci->scorevalues.gapextend);
  if (evalscore < 0 || (GtUword) evalscore < lci->threshold)
  {
    fprintf(stderr,"unexpected eval score "GT_WD"\n",evalscore);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
#endif
  return (const void *) lci->tbs.alignment;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rax
movq 0x18(%rsp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x2591ea
movq 0x3e2de7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bce50(%rip), %rsi    # 0x516013
leaq 0x321704(%rip), %rdx    # 0x57a8ce
leaq 0x321724(%rip), %rcx    # 0x57a8f5
leaq 0x321628(%rip), %r8     # 0x57a800
movl $0x2f4, %r9d            # imm = 0x2F4
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2591ec
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rcx
movq 0x18(%rsp), %rax
subq 0x50(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rsp), %rcx
addq 0x50(%rcx), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x25925d
movq 0x3e2d74(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2bcddd(%rip), %rsi    # 0x516013
leaq 0x3216e5(%rip), %rdx    # 0x57a922
leaq 0x3216b1(%rip), %rcx    # 0x57a8f5
leaq 0x3215b5(%rip), %r8     # 0x57a800
movl $0x2f7, %r9d            # imm = 0x2F7
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25925f
movq 0x18(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rax
movq (%rax), %rdx
movq 0x18(%rsp), %rax
movq 0x60(%rax), %rcx
movq 0x18(%rsp), %rax
movq 0x48(%rax), %r8
callq 0x129f60
movq 0x18(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rdx
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rsp), %rax
movq 0x18(%rax), %r8
xorl %esi, %esi
callq 0x12a9d0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jl 0x2592d3
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x38(%rcx), %rax
jae 0x2592fa
movq 0x3e2cc6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
leaq 0x32164f(%rip), %rsi    # 0x57a938
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x18(%rsp), %rax
movq 0x70(%rax), %rax
addq $0x28, %rsp
retq
nopl (%rax,%rax)