// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/querymatch-align.c
// Function: gt_frontprune2eoplist
void gt_frontprune2eoplist(GtQuerymatchoutoptions *querymatchoutoptions,
                           const GtSeqorEncseq *dbes,
                           GtUword dbstart,
                           GtUword dblen,
                           const GtSeqorEncseq *queryes,
                           GtReadmode query_readmode,
                           GtUword query_seqstart,
                           GtUword query_seqlen,
                           GtUword querystart,
                           GtUword querylen,
                           bool verify_alignment)
{
  GtFtPolished_point right_best_polished_point = {0,0,0,0,0};
  GtUword pol_size;
  GtSeqpaircoordinates *coords;
  const bool greedyextension = true, rightextension = true;

  gt_assert(querymatchoutoptions != NULL &&
            querymatchoutoptions->pol_info != NULL);
  pol_size = GT_MULT2(querymatchoutoptions->pol_info->cut_depth);
  gt_eoplist_reset(querymatchoutoptions->eoplist);
  gt_assert(dblen > 0 && querylen > 0);
  gt_align_front_prune_edist(rightextension,
                             &right_best_polished_point,
                             querymatchoutoptions->front_trace,
                             dbes,
                             queryes,
                             query_readmode,
                             query_seqstart,
                             query_seqlen,
                             querymatchoutoptions->ggemi,
                             greedyextension,
                             0,
                             dbstart,
                             dblen,
                             query_seqstart + querystart,
                             querylen);
  gt_assert(querymatchoutoptions->front_trace != NULL);
  front_trace2eoplist(querymatchoutoptions->always_polished_ends,
                      querymatchoutoptions->eoplist,
                      querymatchoutoptions->front_trace,
                      &right_best_polished_point,
                      pol_size,
                      querymatchoutoptions->pol_info->match_score,
                      querymatchoutoptions->pol_info->difference_score,
                      NULL,
                      dblen,
                      NULL,
                      querylen);
  gt_eoplist_reverse_end(querymatchoutoptions->eoplist,0);
  front_trace_reset(querymatchoutoptions->front_trace,dblen+querylen);
  coords = &querymatchoutoptions->correction_info;
  coords->uoffset = 0;
  coords->ulen = right_best_polished_point.row;
  coords->voffset = 0;
  coords->vlen = right_best_polished_point.alignedlen -
                 right_best_polished_point.row;
  coords->sumdist = right_best_polished_point.distance;
  coords->sum_max_mismatches = right_best_polished_point.max_mismatches;
  if (verify_alignment)
  {
    gt_querymtch_alignment_verification(querymatchoutoptions,
                                        dbstart,
                                        coords->ulen,
                                        query_seqstart + querystart,
                                        coords->vlen,
                                        coords->sumdist);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, (%rsp)
movq %rsi, 0x8(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0x168a72
movq %rdi, %r14
movq 0xb0(%rdi), %rax
testq %rax, %rax
je 0x168a72
movq %rcx, %r15
movq %r8, %r12
movl %r9d, %ebx
movq 0x8(%rax), %rbp
movq 0x28(%r14), %rdi
callq 0x2b798d
testq %r15, %r15
je 0x168aa0
movq 0x88(%rsp), %r13
testq %r13, %r13
je 0x168aa0
movq 0x70(%rsp), %rax
movq 0x40(%r14), %rdx
movq 0x80(%rsp), %r9
addq %rax, %r9
subq $0x8, %rsp
pushq $0x1
popq %rdi
leaq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rcx
movq %r12, %r8
movq %r9, %r12
movl %ebx, %r9d
pushq %r13
pushq %r12
pushq %r15
pushq 0x20(%rsp)
pushq $0x0
pushq $0x1
pushq 0x48(%r14)
pushq 0xb8(%rsp)
pushq %rax
callq 0x18f545
addq $0x50, %rsp
movq 0x40(%r14), %rdx
testq %rdx, %rdx
je 0x168ace
addq %rbp, %rbp
movzbl 0xa8(%r14), %edi
movq 0x28(%r14), %rsi
movq 0xb0(%r14), %rax
movq 0x28(%rax), %r9
subq $0x8, %rsp
leaq 0x18(%rsp), %rbx
movq %rbx, %rcx
movq %rbp, %r8
pushq %r13
pushq $0x0
pushq %r15
pushq $0x0
pushq 0x20(%rax)
callq 0x2ba8a2
addq $0x30, %rsp
movq 0x28(%r14), %rdi
xorl %esi, %esi
callq 0x2b8584
movq 0x40(%r14), %rdi
addq %r15, %r13
movq %r13, %rsi
callq 0x2ba420
andq $0x0, 0x78(%r14)
movq 0x8(%rbx), %rdx
movq %rdx, 0x88(%r14)
andq $0x0, 0x80(%r14)
movq (%rbx), %r8
subq %rdx, %r8
movq %r8, 0x90(%r14)
movq 0x10(%rbx), %r9
movq %r9, 0x98(%r14)
movq 0x20(%rbx), %rax
movq %rax, 0xa0(%r14)
cmpb $0x0, 0x90(%rsp)
je 0x168a63
movq %r14, %rdi
movq (%rsp), %rsi
movq %r12, %rcx
callq 0x16887e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2cf4ef(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c590(%rip), %rsi    # 0x2e5013
leaq 0x1e16ae(%rip), %rdx    # 0x34a138
leaq 0x1e17d4(%rip), %rcx    # 0x34a265
leaq 0x1e1664(%rip), %r8     # 0x34a0fc
movl $0x194, %r9d            # imm = 0x194
jmp 0x168afa
movq 0x2cf4c1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c562(%rip), %rsi    # 0x2e5013
leaq 0x1e17c3(%rip), %rdx    # 0x34a27b
leaq 0x1e17a6(%rip), %rcx    # 0x34a265
leaq 0x1e1636(%rip), %r8     # 0x34a0fc
movl $0x197, %r9d            # imm = 0x197
jmp 0x168afa
movq 0x2cf493(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c534(%rip), %rsi    # 0x2e5013
leaq 0x1e17af(%rip), %rdx    # 0x34a295
leaq 0x1e1778(%rip), %rcx    # 0x34a265
leaq 0x1e1608(%rip), %r8     # 0x34a0fc
movl $0x1a7, %r9d            # imm = 0x1A7
xorl %eax, %eax
callq 0x17a50
callq 0x17390