// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/querymatch-align.c
// Function: gt_querymatchoutoptions_seededmatch2eoplist
void gt_querymatchoutoptions_seededmatch2eoplist(
                                GtQuerymatchoutoptions *querymatchoutoptions,
                                const GtSeqorEncseq *dbes,
                                GtUword dbstart_relative,
                                GtUword db_seqstart,
                                GtUword dblen,
                                GtReadmode query_readmode,
                                const GtSeqorEncseq *queryes,
                                GtUword query_seqstart,
                                GtUword query_seqlen,
                                GtUword querystart_rel,
                                GtUword querylen,
                                GtUword db_seedpos_rel,
                                GtUword query_seedpos_rel,
                                GtUword seedlen,
                                bool verify_alignment,
                                bool greedyextension)
{
  GtUword ulen, vlen, ustart, vstart;
  GtFtPolished_point right_best_polished_point = {0,0,0,0,0},
                     left_best_polished_point = {0,0,0,0,0};
  GtUword pol_size;
  GtSeqpaircoordinates *coords;
  GtUword leftcolumn, rightcolumn;

  gt_assert(querymatchoutoptions != NULL &&
            querymatchoutoptions->pol_info != NULL);
  pol_size = GT_MULT2(querymatchoutoptions->pol_info->cut_depth);
  gt_eoplist_reset(querymatchoutoptions->eoplist);
  ustart = db_seedpos_rel + seedlen;
  vstart = query_seedpos_rel + seedlen;
  gt_assert(dbstart_relative + dblen >= ustart);
  ulen = dbstart_relative + dblen - ustart;
  gt_assert(querystart_rel + querylen >= vstart);
  vlen = querystart_rel + querylen - vstart;
  if (ulen > 0 && vlen > 0)
  {
    gt_align_front_prune_edist(true,
                               &right_best_polished_point,
                               querymatchoutoptions->front_trace,
                               dbes,
                               queryes,
                               query_readmode,
                               query_seqstart,
                               query_seqlen,
                               querymatchoutoptions->ggemi,
                               greedyextension,
                               seedlen,
                               db_seqstart + ustart,
                               ulen,
                               query_seqstart + vstart,
                               vlen);
    if (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,
                          ulen,
                          NULL,
                          vlen);
      front_trace_reset(querymatchoutoptions->front_trace,ulen+vlen);
    }
  }
  gt_eoplist_match_add(querymatchoutoptions->eoplist,seedlen);
  if (db_seedpos_rel > dbstart_relative && query_seedpos_rel > querystart_rel)
  {
    ulen = db_seedpos_rel - dbstart_relative;
    vlen = query_seedpos_rel - querystart_rel;
    gt_align_front_prune_edist(false,
                               &left_best_polished_point,
                               querymatchoutoptions->front_trace,
                               dbes,
                               queryes,
                               query_readmode,
                               query_seqstart,
                               query_seqlen,
                               querymatchoutoptions->ggemi,
                               greedyextension,
                               seedlen,
                               db_seqstart + dbstart_relative,
                               ulen,
                               query_seqstart + querystart_rel,
                               vlen);
    if (querymatchoutoptions->front_trace != NULL)
    {
      GtUword previous_eoplistlen
        = gt_eoplist_length(querymatchoutoptions->eoplist);
      front_trace2eoplist(querymatchoutoptions->always_polished_ends,
                          querymatchoutoptions->eoplist,
                          querymatchoutoptions->front_trace,
                          &left_best_polished_point,
                          pol_size,
                          querymatchoutoptions->pol_info->match_score,
                          querymatchoutoptions->pol_info->difference_score,
                          NULL,
                          ulen,
                          NULL,
                          vlen);
      gt_eoplist_reverse_end(querymatchoutoptions->eoplist,previous_eoplistlen);
      front_trace_reset(querymatchoutoptions->front_trace,ulen+vlen);
    }
  }
  coords = &querymatchoutoptions->correction_info;
  gt_assert(db_seedpos_rel >= dbstart_relative + left_best_polished_point.row);
  coords->uoffset = db_seedpos_rel - left_best_polished_point.row -
                                     dbstart_relative;
  coords->ulen = seedlen + left_best_polished_point.row +
                 right_best_polished_point.row;
  leftcolumn = left_best_polished_point.alignedlen -
               left_best_polished_point.row;
  rightcolumn = right_best_polished_point.alignedlen -
                right_best_polished_point.row;
  gt_assert(query_seedpos_rel >= leftcolumn + querystart_rel);
  coords->voffset = query_seedpos_rel - leftcolumn - querystart_rel;
  coords->vlen = seedlen + leftcolumn + rightcolumn;
  coords->sumdist = left_best_polished_point.distance +
                    right_best_polished_point.distance;
  coords->sum_max_mismatches = left_best_polished_point.max_mismatches +
                               right_best_polished_point.max_mismatches;
  gt_eoplist_reverse_end(querymatchoutoptions->eoplist,0);
  if (verify_alignment)
  {
    gt_querymtch_alignment_verification(querymatchoutoptions,
                                        db_seqstart + dbstart_relative,
                                        coords->ulen,
                                        query_seqstart + querystart_rel,
                                        coords->vlen,
                                        coords->sumdist);
  }
  gt_eoplist_set_seedoffset(querymatchoutoptions->eoplist,
                            db_seedpos_rel - dbstart_relative,
                            seedlen);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %r9d, (%rsp)
movq %rcx, 0x10(%rsp)
movq %rsi, 0x20(%rsp)
xorps %xmm0, %xmm0
andq $0x0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x50(%rsp)
testq %rdi, %rdi
je 0x168788
movq %rdi, %rbx
movq 0xb0(%rdi), %rax
testq %rax, %rax
je 0x168788
movq %r8, %r12
movq %rdx, %r14
movq 0xf8(%rsp), %r13
movq 0xe8(%rsp), %rbp
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rbx), %rdi
callq 0x2b798d
movq %r13, %rax
addq %rbp, %rax
movq %r14, 0x28(%rsp)
addq %r14, %r12
movq %r12, %r14
subq %rax, %r14
jb 0x1687b9
movq 0xf0(%rsp), %r15
leaq (%r15,%r13), %r10
movq 0xe0(%rsp), %r13
addq 0xd8(%rsp), %r13
cmpq %r10, %r13
jb 0x1687ea
movq 0x8(%rsp), %rcx
addq %rcx, %rcx
movq %rcx, 0x8(%rsp)
cmpq %rax, %r12
sete %cl
subq %r10, %r13
sete %dl
orb %cl, %dl
movzbl 0x108(%rsp), %ecx
movq %rcx, 0x18(%rsp)
movq 0xf8(%rsp), %r12
jne 0x16858c
movq 0x40(%rbx), %rdx
addq 0x10(%rsp), %rax
movq 0xc8(%rsp), %r11
addq %r11, %r10
subq $0x8, %rsp
pushq $0x1
popq %rdi
leaq 0x68(%rsp), %rsi
movq 0x28(%rsp), %rcx
movq 0xc8(%rsp), %r8
movl 0x8(%rsp), %r9d
pushq %r13
pushq %r10
pushq %r14
pushq %rax
pushq %r12
pushq 0x48(%rsp)
pushq 0x48(%rbx)
pushq 0x110(%rsp)
pushq %r11
callq 0x18f545
addq $0x50, %rsp
movq 0x40(%rbx), %rdx
testq %rdx, %rdx
je 0x16858c
movzbl 0xa8(%rbx), %edi
movq 0x28(%rbx), %rsi
movq 0xb0(%rbx), %rax
movq 0x28(%rax), %r9
subq $0x8, %rsp
leaq 0x68(%rsp), %rcx
movq 0x10(%rsp), %r8
pushq %r13
pushq $0x0
pushq %r14
pushq $0x0
pushq 0x20(%rax)
callq 0x2ba8a2
addq $0x30, %rsp
movq 0x40(%rbx), %rdi
addq %r13, %r14
movq %r14, %rsi
callq 0x2ba420
movq 0x28(%rbx), %rdi
movq %r12, %rsi
callq 0x2b821a
movq %rbp, %r14
movq 0x28(%rsp), %r13
subq %r13, %r14
setbe %al
movq %r15, %r12
subq 0xd8(%rsp), %r12
setbe %cl
orb %al, %cl
jne 0x16868c
movq 0x40(%rbx), %rdx
movq 0x10(%rsp), %rax
addq %r13, %rax
movq 0xd8(%rsp), %rcx
movq 0xc8(%rsp), %r11
leaq (%rcx,%r11), %r10
subq $0x8, %rsp
leaq 0x38(%rsp), %rsi
xorl %edi, %edi
movq 0x28(%rsp), %rcx
movq 0xc8(%rsp), %r8
movl 0x8(%rsp), %r9d
pushq %r12
pushq %r10
pushq %r14
pushq %rax
pushq 0x120(%rsp)
pushq 0x48(%rsp)
pushq 0x48(%rbx)
pushq 0x110(%rsp)
pushq %r11
callq 0x18f545
addq $0x50, %rsp
cmpq $0x0, 0x40(%rbx)
je 0x16868c
movq 0x28(%rbx), %rdi
callq 0x2b8578
movq %rax, (%rsp)
movzbl 0xa8(%rbx), %edi
movq 0x28(%rbx), %rsi
movq 0x40(%rbx), %rdx
movq 0xb0(%rbx), %rax
movq 0x28(%rax), %r9
subq $0x8, %rsp
leaq 0x38(%rsp), %rcx
movq 0x10(%rsp), %r8
pushq %r12
pushq $0x0
pushq %r14
pushq $0x0
pushq 0x20(%rax)
callq 0x2ba8a2
addq $0x30, %rsp
movq 0x28(%rbx), %rdi
movq (%rsp), %rsi
callq 0x2b8584
movq 0x40(%rbx), %rdi
addq %r14, %r12
movq %r12, %rsi
callq 0x2ba420
movq 0x38(%rsp), %rax
leaq (%rax,%r13), %rcx
subq %rcx, %rbp
jb 0x168818
movq %rbp, 0x78(%rbx)
movq 0xf8(%rsp), %r12
leaq (%rax,%r12), %rdx
movq 0x68(%rsp), %rcx
addq %rcx, %rdx
movq %rdx, 0x88(%rbx)
movq 0x30(%rsp), %rdx
subq %rax, %rdx
movq 0xd8(%rsp), %rax
addq %rdx, %rax
subq %rax, %r15
jb 0x168846
movq %r12, %rax
subq %rcx, %rax
addq %rdx, %rax
addq 0x60(%rsp), %rax
movb 0x100(%rsp), %bpl
movq %r15, 0x80(%rbx)
movq %rax, 0x90(%rbx)
movq 0x70(%rsp), %rax
addq 0x40(%rsp), %rax
movq %rax, 0x98(%rbx)
movq 0x80(%rsp), %rax
addq 0x50(%rsp), %rax
movq %rax, 0xa0(%rbx)
movq 0x28(%rbx), %rdi
xorl %esi, %esi
callq 0x2b8584
testb %bpl, %bpl
je 0x168767
movq 0x10(%rsp), %rsi
addq %r13, %rsi
movq 0xd8(%rsp), %rcx
addq 0xc8(%rsp), %rcx
movq 0x88(%rbx), %rdx
movq 0x90(%rbx), %r8
movq 0x98(%rbx), %r9
movq %rbx, %rdi
callq 0x16887e
movq 0x28(%rbx), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2ba2b4
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2cf7d9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c87a(%rip), %rsi    # 0x2e5013
leaq 0x1e1998(%rip), %rdx    # 0x34a138
leaq 0x1e19d8(%rip), %rcx    # 0x34a17f
leaq 0x1e194e(%rip), %r8     # 0x34a0fc
movl $0x111, %r9d            # imm = 0x111
jmp 0x168872
movq 0x2cf7a8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c849(%rip), %rsi    # 0x2e5013
leaq 0x1e19da(%rip), %rdx    # 0x34a1ab
leaq 0x1e19a7(%rip), %rcx    # 0x34a17f
leaq 0x1e191d(%rip), %r8     # 0x34a0fc
movl $0x116, %r9d            # imm = 0x116
jmp 0x168872
movq 0x2cf777(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c818(%rip), %rsi    # 0x2e5013
leaq 0x1e19cc(%rip), %rdx    # 0x34a1ce
leaq 0x1e1976(%rip), %rcx    # 0x34a17f
leaq 0x1e18ec(%rip), %r8     # 0x34a0fc
movl $0x118, %r9d            # imm = 0x118
jmp 0x168872
movq 0x2cf749(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c7ea(%rip), %rsi    # 0x2e5013
leaq 0x1e19c2(%rip), %rdx    # 0x34a1f2
leaq 0x1e1948(%rip), %rcx    # 0x34a17f
leaq 0x1e18be(%rip), %r8     # 0x34a0fc
movl $0x163, %r9d            # imm = 0x163
jmp 0x168872
movq 0x2cf71b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x17c7bc(%rip), %rsi    # 0x2e5013
leaq 0x1e19d6(%rip), %rdx    # 0x34a234
leaq 0x1e191a(%rip), %rcx    # 0x34a17f
leaq 0x1e1890(%rip), %r8     # 0x34a0fc
movl $0x16c, %r9d            # imm = 0x16C
xorl %eax, %eax
callq 0x17a50
callq 0x17390