// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/linearalign.c
// Function: nextEDtabRtabcolumn
static void nextEDtabRtabcolumn(GtUword *EDtabcolumn,
                                GtUword *Rtabcolumn,
                                GtUword colindex,
                                GtUword midcolumn,
                                GtUchar b,
                                const GtUchar *useq,
                                GtUword ustart,
                                GtUword ulen,
                                const GtScoreHandler *scorehandler)
{
  GtUword rowindex, val, gapcost,
          northwestEDtabentry,
          westEDtabentry,
          northwestRtabentry,
          westRtabentry = 0;

  gt_assert(scorehandler);
  gapcost = gt_scorehandler_get_gapscore(scorehandler);

  westEDtabentry = EDtabcolumn[0];
  EDtabcolumn[0] += gapcost;

  if (colindex > midcolumn)
  {
    Rtabcolumn[0] = 0;
  }

  for (rowindex = 1UL; rowindex <= ulen; rowindex++) {
    northwestEDtabentry = westEDtabentry;
    northwestRtabentry  = westRtabentry;
    westEDtabentry = EDtabcolumn[rowindex];
    westRtabentry  = Rtabcolumn[rowindex];
    EDtabcolumn[rowindex] += gapcost; /* 1. recurrence */

    /* 2. recurrence: */
    val = northwestEDtabentry + gt_scorehandler_get_replacement(scorehandler,
                                                    useq[ustart+rowindex-1], b);
    if (val <= EDtabcolumn[rowindex])
    {
      EDtabcolumn[rowindex] = val;
      if (colindex > midcolumn)
      {
        Rtabcolumn[rowindex] = northwestRtabentry;
      }
    }
    /* 3. recurrence: */
    if ((val = EDtabcolumn[rowindex-1]+gapcost) < EDtabcolumn[rowindex])
    {
      EDtabcolumn[rowindex] = val;
      if (colindex > midcolumn)
      {
        Rtabcolumn[rowindex] = Rtabcolumn[rowindex-1];
      }
    }
  }
}

// Assembly:
subq $0x78, %rsp
movb %r8b, %al
movq 0x90(%rsp), %r8
movq 0x88(%rsp), %r8
movq 0x80(%rsp), %r8
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movb %al, 0x57(%rsp)
movq %r9, 0x48(%rsp)
movq $0x0, 0x10(%rsp)
cmpq $0x0, 0x90(%rsp)
jne 0x19de38
movq 0x49e199(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x378202(%rip), %rsi    # 0x516013
leaq 0x3c453b(%rip), %rdx    # 0x562353
leaq 0x3ba7a0(%rip), %rcx    # 0x5585bf
leaq 0x3ba4ce(%rip), %r8     # 0x5582f4
movl $0x4c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x19de3a
movq 0x90(%rsp), %rdi
callq 0x1d11d0
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rcx
movq 0x70(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq 0x60(%rsp), %rax
cmpq 0x58(%rsp), %rax
jbe 0x19de81
movq 0x68(%rsp), %rax
movq $0x0, (%rax)
movq $0x1, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x88(%rsp), %rax
ja 0x19e001
movq 0x20(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x70(%rsp), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdx
movq 0x70(%rsp), %rax
movq 0x40(%rsp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x80(%rsp), %rcx
addq 0x40(%rsp), %rcx
subq $0x1, %rcx
movb (%rax,%rcx), %al
movzbl %al, %esi
movzbl 0x57(%rsp), %edx
callq 0x1d12c0
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x70(%rsp), %rcx
movq 0x40(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
ja 0x19df7f
movq 0x38(%rsp), %rdx
movq 0x70(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x60(%rsp), %rax
cmpq 0x58(%rsp), %rax
jbe 0x19df7d
movq 0x18(%rsp), %rdx
movq 0x68(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x19df7f
movq 0x70(%rsp), %rax
movq 0x40(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
addq 0x30(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rcx
movq 0x40(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jae 0x19dfec
movq 0x38(%rsp), %rdx
movq 0x70(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x60(%rsp), %rax
cmpq 0x58(%rsp), %rax
jbe 0x19dfea
movq 0x68(%rsp), %rax
movq 0x40(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq 0x68(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x19dfec
jmp 0x19dfee
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x19de8a
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)