// File: /workspace/github_c_makefile_star2_O0/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 $0xb8, %rsp
movb 0x110(%rsp), %al
movq 0x108(%rsp), %r10
movq 0x100(%rsp), %r10
movq 0xf8(%rsp), %r10
movq 0xf0(%rsp), %r10
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rcx, 0x98(%rsp)
movq %r8, 0x90(%rsp)
movl %r9d, 0x8c(%rsp)
andb $0x1, %al
movb %al, 0x8b(%rsp)
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x19360
movb $0x1, 0x4f(%rsp)
movb $0x1, 0x4e(%rsp)
cmpq $0x0, 0xb0(%rsp)
je 0x2649e9
movq 0xb0(%rsp), %rax
cmpq $0x0, 0xb0(%rax)
jne 0x264a21
movq 0x3d75b0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2b1619(%rip), %rsi    # 0x516013
leaq 0x317e08(%rip), %rdx    # 0x57c809
leaq 0x317f2e(%rip), %rcx    # 0x57c936
leaq 0x317dbe(%rip), %r8     # 0x57c7cd
movl $0x194, %r9d            # imm = 0x194
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x264a23
movq 0xb0(%rsp), %rax
movq 0xb0(%rax), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, 0x58(%rsp)
movq 0xb0(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x4c1820
cmpq $0x0, 0x98(%rsp)
jbe 0x264a65
cmpq $0x0, 0x108(%rsp)
ja 0x264a9d
movq 0x3d7534(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2b159d(%rip), %rsi    # 0x516013
leaq 0x317ecf(%rip), %rdx    # 0x57c94c
leaq 0x317eb2(%rip), %rcx    # 0x57c936
leaq 0x317d42(%rip), %r8     # 0x57c7cd
movl $0x197, %r9d            # imm = 0x197
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x264a9f
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rdx
movq 0xa8(%rsp), %rcx
movq 0x90(%rsp), %r8
movl 0x8c(%rsp), %r9d
movq 0xf0(%rsp), %r12
movq 0xf8(%rsp), %r15
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %r14
movq 0xa0(%rsp), %rbx
movq 0x98(%rsp), %r11
movq 0xf0(%rsp), %r10
addq 0x100(%rsp), %r10
movq 0x108(%rsp), %rax
movl $0x1, %edi
leaq 0x60(%rsp), %rsi
xorl %ebp, %ebp
movq %r12, (%rsp)
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movl $0x1, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq %r11, 0x30(%rsp)
movq %r10, 0x38(%rsp)
movq %rax, 0x40(%rsp)
callq 0x2ac1b0
movq 0xb0(%rsp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x264b92
movq 0x3d743f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2b14a8(%rip), %rsi    # 0x516013
leaq 0x317df4(%rip), %rdx    # 0x57c966
leaq 0x317dbd(%rip), %rcx    # 0x57c936
leaq 0x317c4d(%rip), %r8     # 0x57c7cd
movl $0x1a7, %r9d            # imm = 0x1A7
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x264b94
movq 0xb0(%rsp), %rax
movb 0xa8(%rax), %dil
movq 0xb0(%rsp), %rax
movq 0x28(%rax), %rsi
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rdx
movq 0x58(%rsp), %r8
movq 0xb0(%rsp), %rax
movq 0xb0(%rax), %rax
movq 0x28(%rax), %r9
movq 0xb0(%rsp), %rax
movq 0xb0(%rax), %rax
movq 0x20(%rax), %r11
movq 0x98(%rsp), %r10
movq 0x108(%rsp), %rax
leaq 0x60(%rsp), %rcx
xorl %ebx, %ebx
andb $0x1, %dil
movzbl %dil, %edi
movq %r11, (%rsp)
movq $0x0, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x4c6f40
movq 0xb0(%rsp), %rax
movq 0x28(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x4c3010
movq 0xb0(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x98(%rsp), %rsi
addq 0x108(%rsp), %rsi
callq 0x4c68d0
movq 0xb0(%rsp), %rax
addq $0x78, %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq $0x0, (%rax)
movq 0x68(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x50(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x60(%rsp), %rcx
subq 0x68(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x70(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x80(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x28(%rax)
testb $0x1, 0x8b(%rsp)
je 0x264d14
movq 0xb0(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rdx
movq 0xf0(%rsp), %rcx
addq 0x100(%rsp), %rcx
movq 0x50(%rsp), %rax
movq 0x18(%rax), %r8
movq 0x50(%rsp), %rax
movq 0x20(%rax), %r9
callq 0x2648b0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)