// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/linearalign.c
// Function: nextLStabcolumn
static void nextLStabcolumn(GtWord *Ltabcolumn,
                            GtUwordPair *Starttabcolumn,
                            const GtScoreHandler *scorehandler,
                            const GtUchar *useq,
                            GtUword ustart, GtUword ulen,
                            const GtUchar b, GtUword colindex,
                            GtMaxcoordvalue *max)
{
  GtUword rowindex;
  GtUwordPair northwestStarttabentry, westStarttabentry;
  GtWord northwestLtabentry, westLtabentry, gapscore;

  gt_assert(max != NULL);
  gapscore = gt_scorehandler_get_gapscore(scorehandler);

  westLtabentry = Ltabcolumn[0];
  westStarttabentry = Starttabcolumn[0];

  Ltabcolumn[0] = 0;
  Starttabcolumn[0].a = 0;
  Starttabcolumn[0].b = colindex;
  for (rowindex = 1UL; rowindex <= ulen; rowindex++)
  {
    GtWord val;

    northwestLtabentry = westLtabentry;
    northwestStarttabentry = westStarttabentry;
    westLtabentry = Ltabcolumn[rowindex];
    westStarttabentry = Starttabcolumn[rowindex];
    Ltabcolumn[rowindex] += gapscore;

    val = northwestLtabentry + gt_scorehandler_get_replacement(scorehandler,
                                                  useq[ustart + rowindex-1], b);

    if (val >= Ltabcolumn[rowindex])
    {
      Ltabcolumn[rowindex] = val;
      Starttabcolumn[rowindex] = northwestStarttabentry;
    }
    if ((val = Ltabcolumn[rowindex-1]+gapscore) > Ltabcolumn[rowindex])
    {
      Ltabcolumn[rowindex] = val;
      Starttabcolumn[rowindex]=Starttabcolumn[rowindex-1];
    }
    if (0 > Ltabcolumn[rowindex])
    {
      Ltabcolumn[rowindex] = 0;
      Starttabcolumn[rowindex].a = rowindex;
      Starttabcolumn[rowindex].b = colindex;
    }
    if (Ltabcolumn[rowindex] > gt_maxcoordvalue_get_value(max))
    {
      gt_maxcoordvalue_coord_update(max, Ltabcolumn[rowindex],
                                    Starttabcolumn[rowindex],
                                    rowindex, colindex);
    }
  }
}

// Assembly:
subq $0x88, %rsp
movq 0xa0(%rsp), %rax
movq 0x98(%rsp), %rax
movb 0x90(%rsp), %al
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq %r9, 0x58(%rsp)
cmpq $0x0, 0xa0(%rsp)
jne 0x19e162
movq 0x49de6f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x377ed8(%rip), %rsi    # 0x516013
leaq 0x3ba4cf(%rip), %rdx    # 0x558611
leaq 0x3ba4d4(%rip), %rcx    # 0x55861d
leaq 0x3ba1a4(%rip), %r8     # 0x5582f4
movl $0x22f, %r9d            # imm = 0x22F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x19e164
movq 0x70(%rsp), %rdi
callq 0x1d11d0
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x80(%rsp), %rax
movq $0x0, (%rax)
movq 0x78(%rsp), %rax
movq $0x0, (%rax)
movq 0x98(%rsp), %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x8(%rax)
movq $0x1, 0x50(%rsp)
movq 0x50(%rsp), %rax
cmpq 0x58(%rsp), %rax
ja 0x19e445
movq 0x20(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rax
movq 0x50(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %rdx
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rdi
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rcx
addq 0x50(%rsp), %rcx
subq $0x1, %rcx
movb (%rax,%rcx), %al
movzbl %al, %esi
movzbl 0x90(%rsp), %edx
callq 0x1d12c0
movq %rax, %rcx
movq 0x8(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x80(%rsp), %rcx
movq 0x50(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jl 0x19e2e3
movq 0x10(%rsp), %rdx
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x78(%rsp), %rax
movq 0x50(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x40(%rsp), %rcx
movq %rcx, (%rax)
movq 0x48(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
addq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rcx
movq 0x50(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jle 0x19e35f
movq 0x10(%rsp), %rdx
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x78(%rsp), %rax
movq 0x50(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x78(%rsp), %rcx
movq 0x50(%rsp), %rdx
subq $0x1, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq 0x80(%rsp), %rcx
movq 0x50(%rsp), %rdx
xorl %eax, %eax
cmpq (%rcx,%rdx,8), %rax
jle 0x19e3bf
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
movq $0x0, (%rax,%rcx,8)
movq 0x50(%rsp), %rcx
movq 0x78(%rsp), %rax
movq 0x50(%rsp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq 0x98(%rsp), %rcx
movq 0x78(%rsp), %rax
movq 0x50(%rsp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
movq 0xa0(%rsp), %rdi
callq 0x1ac4c0
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jle 0x19e430
movq 0xa0(%rsp), %rdi
movq 0x80(%rsp), %rax
movq 0x50(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x78(%rsp), %rax
movq 0x50(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x50(%rsp), %r8
movq 0x98(%rsp), %r9
movq (%rax), %rdx
movq 0x8(%rax), %rcx
callq 0x1ac6e0
jmp 0x19e432
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x19e1ce
addq $0x88, %rsp
retq
nopl (%rax)