// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/swalign.c
// Function: traceback
static Coordinate traceback(GtAlignment *a, DPentry **dptable,
                            GtUword i, GtUword j)
{
  Coordinate start_coordinate = { GT_UNDEF_UWORD, GT_UNDEF_UWORD };
  gt_assert(a && dptable);
  while (dptable[i][j].score) {
    gt_assert(dptable[i][j].score > 0);
    start_coordinate.x = i;
    start_coordinate.y = j;
    if (dptable[i][j].max_replacement) {
      gt_alignment_add_replacement(a);
      i--;
      j--;
    }
    else if (dptable[i][j].max_deletion) {
      gt_alignment_add_deletion(a);
      i--;;
    }
    else if (dptable[i][j].max_insertion) {
      gt_alignment_add_insertion(a);
      j--;
    }
  }
  gt_assert(start_coordinate.x != GT_UNDEF_UWORD);
  gt_assert(start_coordinate.y != GT_UNDEF_UWORD);
  return start_coordinate;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq 0x355ab9(%rip), %rax    # 0x541508
movq %rax, 0x28(%rsp)
movq 0x355ab5(%rip), %rax    # 0x541510
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x1eba70
cmpq $0x0, 0x18(%rsp)
jne 0x1ebaa8
movq 0x450529(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32a592(%rip), %rsi    # 0x516013
leaq 0x37cb16(%rip), %rdx    # 0x56859e
leaq 0x3c5973(%rip), %rcx    # 0x5b1402
leaq 0x37c9dc(%rip), %r8     # 0x568472
movl $0x4d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1ebaaa
jmp 0x1ebaac
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x1ebc03
jmp 0x1ebad2
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
jg 0x1ebb2a
movq 0x4504a7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32a510(%rip), %rsi    # 0x516013
leaq 0x37caa1(%rip), %rdx    # 0x5685ab
leaq 0x3c58f1(%rip), %rcx    # 0x5b1402
leaq 0x37c95a(%rip), %r8     # 0x568472
movl $0x4f, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1ebb2c
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
testb $0x1, 0x8(%rax)
je 0x1ebb88
movq 0x20(%rsp), %rdi
callq 0x12a410
movq 0x10(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x1ebbfe
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
testb $0x1, 0x9(%rax)
je 0x1ebbc2
movq 0x20(%rsp), %rdi
callq 0x12a480
movq 0x10(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x1ebbfc
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
testb $0x1, 0xa(%rax)
je 0x1ebbfa
movq 0x20(%rsp), %rdi
callq 0x12a4f0
movq 0x8(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x1ebbfc
jmp 0x1ebbfe
jmp 0x1ebaac
jmp 0x1ebc05
cmpq $-0x1, 0x28(%rsp)
jne 0x1ebc45
movq 0x45038c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32a3f5(%rip), %rsi    # 0x516013
leaq 0x37c99e(%rip), %rdx    # 0x5685c3
leaq 0x3c57d6(%rip), %rcx    # 0x5b1402
leaq 0x37c83f(%rip), %r8     # 0x568472
movl $0x60, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1ebc47
jmp 0x1ebc49
cmpq $-0x1, 0x30(%rsp)
jne 0x1ebc89
movq 0x450348(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32a3b1(%rip), %rsi    # 0x516013
leaq 0x37c97f(%rip), %rdx    # 0x5685e8
leaq 0x3c5792(%rip), %rcx    # 0x5b1402
leaq 0x37c7fb(%rip), %r8     # 0x568472
movl $0x61, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1ebc8b
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
addq $0x38, %rsp
retq
nopw (%rax,%rax)