// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/ft-eoplist.c
// Function: gt_eoplist_trace2cigar
void gt_eoplist_trace2cigar(GtEoplist *eoplist,bool dtrace,GtUword trace_delta)
{
  GtUword idx, offset_u = 0, offset_v = 0;

  gt_assert(eoplist != NULL && eoplist->trace.nextfreeint > 0);
  for (idx = 0; idx < eoplist->trace.nextfreeint; idx++)
  {
    GtUword this_distance, aligned_u, aligned_v;

    if (dtrace)
    {
      const int value = -(eoplist->trace.spaceint[idx] - trace_delta);
      gt_assert(value >= 0);
      aligned_v = (GtUword) value;
    } else
    {
      aligned_v = (GtUword) eoplist->trace.spaceint[idx];
    }
    gt_assert(offset_u < eoplist->ulen);
    aligned_u = GT_MIN(trace_delta,eoplist->ulen - offset_u);
    this_distance = gt_full_front_edist_trace_distance(eoplist->fet_segment,
                                                       eoplist->useq + offset_u,
                                                       aligned_u,
                                                       eoplist->vseq + offset_v,
                                                       aligned_v);
    gt_front_trace2eoplist_full_front_directed(eoplist,
                                               gt_full_front_trace_get(
                                                   eoplist->fet_segment),
                                               this_distance,
                                               eoplist->useq + offset_u,
                                               aligned_u,
                                               eoplist->vseq + offset_v,
                                               aligned_v);
    offset_u += aligned_u;
    offset_v += aligned_v;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x18(%rsp)
movl %esi, 0x14(%rsp)
testq %rdi, %rdi
je 0x2b8c35
movq %rdi, %r14
movq 0x80(%rdi), %rax
testq %rax, %rax
je 0x2b8c35
xorl %ebp, %ebp
xorl %r13d, %r13d
xorl %ebx, %ebx
cmpq %rax, %rbx
jae 0x2b8bc0
movq 0x70(%r14), %rax
movslq (%rax,%rbx,4), %r15
cmpb $0x0, 0x14(%rsp)
je 0x2b8b3c
movq 0x18(%rsp), %rax
subl %r15d, %eax
js 0x2b8bfd
movl %eax, %r15d
movq 0x40(%r14), %r12
subq %r13, %r12
jbe 0x2b8bcf
movq 0x18(%rsp), %rax
cmpq %rax, %r12
cmovaeq %rax, %r12
movq 0x90(%r14), %rdi
movq 0x28(%r14), %rsi
addq %r13, %rsi
movq 0x30(%r14), %rcx
addq %rbp, %rcx
movq %r12, %rdx
movq %r15, %r8
callq 0x2bf53e
movq %rax, 0x20(%rsp)
movq 0x90(%r14), %rdi
callq 0x2bf4fb
movq 0x28(%r14), %rcx
addq %r13, %rcx
movq 0x30(%r14), %r9
addq %rbp, %r9
movq %r15, (%rsp)
movq %r14, %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rdx
movq %r12, %r8
callq 0x2bb46b
addq %r12, %r13
addq %r15, %rbp
incq %rbx
movq 0x80(%r14), %rax
jmp 0x2b8b13
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17f392(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c433(%rip), %rsi     # 0x2e5013
leaq 0xca749(%rip), %rdx     # 0x383330
leaq 0xca720(%rip), %rcx     # 0x38330e
leaq 0xca3db(%rip), %r8      # 0x382fd0
movl $0x25f, %r9d            # imm = 0x25F
jmp 0x2b8c29
movq 0x17f364(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c405(%rip), %rsi     # 0x2e5013
leaq 0xca710(%rip), %rdx     # 0x383325
leaq 0xca6f2(%rip), %rcx     # 0x38330e
leaq 0xca3ad(%rip), %r8      # 0x382fd0
movl $0x259, %r9d            # imm = 0x259
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x17f32c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c3cd(%rip), %rsi     # 0x2e5013
leaq 0xca68f(%rip), %rdx     # 0x3832dc
leaq 0xca6ba(%rip), %rcx     # 0x38330e
leaq 0xca375(%rip), %r8      # 0x382fd0
movl $0x251, %r9d            # imm = 0x251
jmp 0x2b8c29