// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/squarealign.c
// Function: fillDPtab_in_square_space
static void fillDPtab_in_square_space(GtUword **E,
                                      const GtUchar *useq,
                                      GtUword ustart,
                                      GtUword ulen,
                                      const GtUchar *vseq,
                                      GtUword vstart,
                                      GtUword vlen,
                                      const GtScoreHandler *scorehandler)
{
  GtUword i, j, gapcost;
  gapcost =  gt_scorehandler_get_gapscore(scorehandler);

  E[0][0] = 0;
  for (i = 1; i <= ulen; i++)
  {
    E[i][0] = E[i-1][0] + gapcost;
  }
  for (j = 1; j <= vlen; j++)
  {
    E[0][j] = E[0][j-1] + gapcost;
    for (i = 1; i <= ulen; i++)
    {
      GtUword val;

      E[i][j] = E[i][j-1] + gapcost;
      val = E[i-1][j-1] + gt_scorehandler_get_replacement(scorehandler,
                                                          useq[ustart+i-1],
                                                          vseq[vstart+j-1]);
      if (val <= E[i][j])
      {
        E[i][j] = val;
      }
      if ((val = E[i-1][j] + gapcost) < E[i][j])
      {
        E[i][j] = val;
      }
    }
  }
}

// Assembly:
subq $0x58, %rsp
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rax
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x28(%rsp)
movq 0x68(%rsp), %rdi
callq 0x1d11d0
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
movq $0x1, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x38(%rsp), %rax
ja 0x1e0d9a
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rcx
addq 0x10(%rsp), %rcx
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x1e0d53
movq $0x1, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x60(%rsp), %rax
ja 0x1e0f58
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
addq 0x10(%rsp), %rdx
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq $0x1, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x38(%rsp), %rax
ja 0x1e0f43
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
addq 0x10(%rsp), %rdx
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x40(%rsp), %rcx
addq 0x20(%rsp), %rcx
subq $0x1, %rcx
movb (%rax,%rcx), %dl
movq 0x30(%rsp), %rax
movq 0x28(%rsp), %rcx
addq 0x18(%rsp), %rcx
subq $0x1, %rcx
movzbl %dl, %esi
movzbl (%rax,%rcx), %edx
callq 0x1d12c0
movq %rax, %rcx
movq (%rsp), %rax
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x50(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x18(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
ja 0x1e0ed4
movq 0x8(%rsp), %rdx
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movq 0x18(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jae 0x1e0f2e
movq 0x8(%rsp), %rdx
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x1e0f30
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x1e0de7
jmp 0x1e0f45
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x1e0da3
addq $0x58, %rsp
retq
nopl (%rax)