// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movb %sil, %al
movq %rdi, 0x60(%rsp)
andb $0x1, %al
movb %al, 0x5f(%rsp)
movq %rdx, 0x50(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x4c3a30
movq 0x60(%rsp), %rax
cmpq $0x0, 0x80(%rax)
ja 0x4c3a68
movq 0x178569(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x525d2(%rip), %rsi     # 0x516013
leaq 0xf4ca6(%rip), %rdx     # 0x5b86ee
leaq 0xf4cd1(%rip), %rcx     # 0x5b8720
leaq 0xf48e2(%rip), %r8      # 0x5b8338
movl $0x251, %r9d            # imm = 0x251
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c3a6a
movq $0x0, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq 0x60(%rsp), %rcx
cmpq 0x80(%rcx), %rax
jae 0x4c3c66
testb $0x1, 0x5f(%rsp)
je 0x4c3afe
movq 0x60(%rsp), %rax
movq 0x70(%rax), %rax
movq 0x48(%rsp), %rcx
movslq (%rax,%rcx,4), %rcx
subq 0x50(%rsp), %rcx
xorl %eax, %eax
subq %rcx, %rax
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
jge 0x4c3af0
movq 0x1784e1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x5254a(%rip), %rsi     # 0x516013
leaq 0xf4c67(%rip), %rdx     # 0x5b8737
leaq 0xf4c49(%rip), %rcx     # 0x5b8720
leaq 0xf485a(%rip), %r8      # 0x5b8338
movl $0x259, %r9d            # imm = 0x259
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c3af2
movslq 0x1c(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x4c3b15
movq 0x60(%rsp), %rax
movq 0x70(%rax), %rax
movq 0x48(%rsp), %rcx
movslq (%rax,%rcx,4), %rax
movq %rax, 0x20(%rsp)
jmp 0x4c3b17
movq 0x40(%rsp), %rax
movq 0x60(%rsp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x4c3b5f
movq 0x178472(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x524db(%rip), %rsi     # 0x516013
leaq 0xf4c03(%rip), %rdx     # 0x5b8742
leaq 0xf4bda(%rip), %rcx     # 0x5b8720
leaq 0xf47eb(%rip), %r8      # 0x5b8338
movl $0x25f, %r9d            # imm = 0x25F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c3b61
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
movq 0x40(%rcx), %rcx
subq 0x40(%rsp), %rcx
cmpq %rcx, %rax
jae 0x4c3b85
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x4c3b98
movq 0x60(%rsp), %rax
movq 0x40(%rax), %rax
subq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x60(%rsp), %rax
movq 0x28(%rax), %rsi
addq 0x40(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rcx
addq 0x38(%rsp), %rcx
movq 0x20(%rsp), %r8
callq 0x4cfcf0
movq %rax, 0x30(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rax
movq 0x90(%rax), %rdi
callq 0x4cfca0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x30(%rsp), %rdx
movq 0x60(%rsp), %rax
movq 0x28(%rax), %rcx
addq 0x40(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0x60(%rsp), %rax
movq 0x30(%rax), %r9
addq 0x38(%rsp), %r9
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
callq 0x4c7e10
movq 0x28(%rsp), %rax
addq 0x40(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x20(%rsp), %rax
addq 0x38(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x4c3a73
addq $0x68, %rsp
retq
nopl (%rax,%rax)