// File: /workspace/github_c_makefile_star2_O3/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
movl %r9d, 0x8(%rsp)
movq %r8, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0x1b99d4
movq %rdi, %r14
movq 0xb0(%rdi), %rax
testq %rax, %rax
je 0x1b99d4
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq 0x8(%rax), %rbp
movq 0x28(%r14), %rdi
callq 0x317d80
testq %r15, %r15
je 0x1b99d9
movq 0x88(%rsp), %r13
testq %r13, %r13
je 0x1b99d9
movq 0x70(%rsp), %rax
movq 0x40(%r14), %rdx
movq 0x80(%rsp), %r10
addq %rax, %r10
subq $0x8, %rsp
leaq 0x18(%rsp), %rsi
movl $0x1, %edi
movq %rbx, %rcx
movq 0x8(%rsp), %r8
movl 0x10(%rsp), %r9d
pushq %r13
movq %r10, 0x10(%rsp)
pushq %r10
pushq %r15
movq %r12, 0x28(%rsp)
pushq %r12
pushq $0x0
pushq $0x1
pushq 0x48(%r14)
pushq 0xb8(%rsp)
pushq %rax
callq 0x1e0c69
addq $0x50, %rsp
movq 0x40(%r14), %rdx
testq %rdx, %rdx
je 0x1b99de
addq %rbp, %rbp
movzbl 0xa8(%r14), %edi
movq 0x28(%r14), %rsi
movq 0xb0(%r14), %rax
movq 0x28(%rax), %r9
subq $0x8, %rsp
xorl %r12d, %r12d
leaq 0x18(%rsp), %rbx
movq %rbx, %rcx
movq %rbp, %r8
pushq %r13
pushq %r12
pushq %r15
pushq %r12
pushq 0x20(%rax)
callq 0x31a34b
addq $0x30, %rsp
movq 0x28(%r14), %rdi
xorl %esi, %esi
callq 0x31872d
movq 0x40(%r14), %rdi
addq %r15, %r13
movq %r13, %rsi
callq 0x31a0c7
movq %r12, 0x78(%r14)
movq 0x8(%rbx), %rdx
movq %rdx, 0x88(%r14)
movq %r12, 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 0x1b99c5
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq (%rsp), %rcx
callq 0x1b97d1
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x675b1
callq 0x6753f
callq 0x67578