// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/linearalign.c
// Function: fillDPtable_unitcost
static void fillDPtable_unitcost(bool downcase,GtUword *dpcolumn,
                                 const GtUchar *u, GtUword ulen,
                                 const GtUchar *v, GtUword vlen)
{
  GtUword i, j , nw, we;

  for (i = 0; i <= ulen; i++)
  {
    dpcolumn[i] = i;
  }
  for (j = 1UL; j <= vlen; j++) {
    GtUchar b = downcase ? tolower((int) v[j-1]) : v[j-1];
    nw = dpcolumn[0];
    dpcolumn[0] = j;
    for (i = 1UL; i <= ulen; i++) {
      GtUchar a = downcase ? tolower((int) u[i-1]) : u[i-1];
      we = dpcolumn[i];
       /* replacement */
      dpcolumn[i] = (a == b) ? nw : (nw + 1);
      if (dpcolumn[i-1] + 1 < dpcolumn[i]) /* deletion */
      {
        dpcolumn[i] = dpcolumn[i-1] + 1;
      }
      if (we + 1 < dpcolumn[i]) /* insertion */
      {
        dpcolumn[i] = we + 1;
      }
      nw = we;
    }
  }
}

// Assembly:
subq $0x68, %rsp
movb %dil, %al
andb $0x1, %al
movb %al, 0x67(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x48(%rsp), %rax
ja 0x19e4ae
movq 0x30(%rsp), %rdx
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x19e47f
movq $0x1, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x38(%rsp), %rax
ja 0x19e675
testb $0x1, 0x67(%rsp)
je 0x19e4eb
movq 0x40(%rsp), %rax
movq 0x28(%rsp), %rcx
subq $0x1, %rcx
movzbl (%rax,%rcx), %edi
callq 0x19a20
movl %eax, 0x10(%rsp)
jmp 0x19e501
movq 0x40(%rsp), %rax
movq 0x28(%rsp), %rcx
subq $0x1, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movb %al, 0x17(%rsp)
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, (%rax)
movq $0x1, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x48(%rsp), %rax
ja 0x19e660
testb $0x1, 0x67(%rsp)
je 0x19e560
movq 0x50(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
movzbl (%rax,%rcx), %edi
callq 0x19a20
movl %eax, 0xc(%rsp)
jmp 0x19e576
movq 0x50(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movb %al, 0x16(%rsp)
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
movzbl 0x16(%rsp), %eax
movzbl 0x17(%rsp), %ecx
cmpl %ecx, %eax
jne 0x19e5aa
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
jmp 0x19e5b7
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
movq (%rsp), %rdx
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
addq $0x1, %rax
movq 0x58(%rsp), %rcx
movq 0x30(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jae 0x19e613
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
addq $0x1, %rdx
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq 0x58(%rsp), %rcx
movq 0x30(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jae 0x19e643
movq 0x18(%rsp), %rdx
addq $0x1, %rdx
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x19e52c
jmp 0x19e662
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x19e4b7
addq $0x68, %rsp
retq
nopw (%rax,%rax)