// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/diagonalbandalign.c
// Function: diagonalband_squarespace_distance_only
static GtUword diagonalband_squarespace_distance_only(const GtUchar *useq,
                                                      GtUword ustart,
                                                      GtUword ulen,
                                                      const GtUchar *vseq,
                                                      GtUword vstart,
                                                      GtUword vlen,
                                                      GtWord left_dist,
                                                      GtWord right_dist,
                                                      GtUword matchcost,
                                                      GtUword mismatchcost,
                                                      GtUword gapcost)
{
  GtUword **EDtabcolumn, distance = GT_UWORD_MAX;
  GtScoreHandler *scorehandler;

   if ((left_dist > GT_MIN(0, (GtWord)vlen-(GtWord)ulen))||
      (right_dist < GT_MAX(0, (GtWord)vlen-(GtWord)ulen)))
  {
    gt_assert(false);
  }
  gt_array2dim_malloc(EDtabcolumn, (ulen+1), (vlen+1));
  scorehandler = gt_scorehandler_new(matchcost, mismatchcost, 0, gapcost);
  gt_scorehandler_plain(scorehandler);
  gt_scorehandler_downcase(scorehandler);
  diagonalband_fillDPtab_in_square_space(EDtabcolumn, useq, ustart, ulen,
                                         vseq, vstart, vlen,
                                         left_dist, right_dist, scorehandler);

  distance = EDtabcolumn[ulen][vlen];
  gt_array2dim_delete(EDtabcolumn);
  gt_scorehandler_delete(scorehandler);
  return distance;
}

// Assembly:
pushq %rbx
subq $0x90, %rsp
movq 0xc0(%rsp), %rax
movq 0xb8(%rsp), %rax
movq 0xb0(%rsp), %rax
movq 0xa8(%rsp), %rax
movq 0xa0(%rsp), %rax
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq %rdx, 0x78(%rsp)
movq %rcx, 0x70(%rsp)
movq %r8, 0x68(%rsp)
movq %r9, 0x60(%rsp)
movq $-0x1, 0x50(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x60(%rsp), %rcx
subq 0x78(%rsp), %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jge 0x14ea44
xorl %eax, %eax
movq %rax, 0x30(%rsp)
jmp 0x14ea53
movq 0x60(%rsp), %rax
subq 0x78(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq %rcx, %rax
jg 0x14eaa7
movq 0xa8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rcx
subq 0x78(%rsp), %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jle 0x14ea89
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x14ea98
movq 0x60(%rsp), %rax
subq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq %rcx, %rax
jge 0x14eae1
jmp 0x14eaa9
movq 0x4ed4f0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3c7559(%rip), %rsi    # 0x516013
leaq 0x40a2a2(%rip), %rdx    # 0x558d63
leaq 0x3fe872(%rip), %rcx    # 0x54d33a
leaq 0x3fe5cd(%rip), %r8     # 0x54d09c
movl $0x80, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
movq 0x78(%rsp), %rdi
addq $0x1, %rdi
shlq $0x3, %rdi
leaq 0x3fe5a7(%rip), %rsi    # 0x54d09c
movl $0x82, %edx
callq 0xe80f0
movq %rax, 0x58(%rsp)
movq 0x78(%rsp), %rdi
addq $0x1, %rdi
shlq $0x3, %rdi
movq 0x60(%rsp), %rax
addq $0x1, %rax
imulq %rax, %rdi
leaq 0x3fe577(%rip), %rsi    # 0x54d09c
movl $0x82, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x58(%rsp), %rax
movq %rcx, (%rax)
movq $0x1, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x78(%rsp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jae 0x14eb96
movq 0x58(%rsp), %rax
movq 0x40(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq 0x60(%rsp), %rax
addq $0x1, %rax
shlq $0x3, %rax
addq %rax, %rdx
movq 0x58(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x14eb43
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rcx
xorl %eax, %eax
movl %eax, %edx
callq 0x1d0fb0
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
callq 0x1d10b0
movq 0x48(%rsp), %rdi
callq 0x1d1100
movq 0x58(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x78(%rsp), %rcx
movq 0x70(%rsp), %r8
movq 0x68(%rsp), %r9
movq 0x60(%rsp), %rbx
movq 0xa0(%rsp), %r11
movq 0xa8(%rsp), %r10
movq 0x48(%rsp), %rax
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x14d060
movq 0x58(%rsp), %rax
movq 0x78(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x60(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
movq (%rax), %rdi
leaq 0x3fe44b(%rip), %rsi    # 0x54d09c
movl $0x8b, %edx
callq 0xe88c0
movq 0x58(%rsp), %rdi
leaq 0x3fe435(%rip), %rsi    # 0x54d09c
movl $0x8b, %edx
callq 0xe88c0
movq 0x48(%rsp), %rdi
callq 0x1d1150
movq 0x50(%rsp), %rax
addq $0x90, %rsp
popq %rbx
retq
nopl (%rax)