// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/affinealign.c
// Function: gt_affinealign_ctab
void gt_affinealign_ctab(GtLinspaceManagement *spacemanager,
                         const GtScoreHandler *scorehandler,
                         GtUword *Ctab,
                         const GtUchar *useq,
                         GtUword ustart,
                         GtUword ulen,
                         const GtUchar *vseq,
                         GtUword vstart,
                         GtUword vlen,
                         GtUword rowoffset,
                         GtAffineAlignEdge from_edge,
                         GtAffineAlignEdge to_edge)
{
  GtAffinealignDPentry **dptable;
  GtUword idx;
  gt_assert(Ctab && spacemanager && scorehandler);
  gt_assert((ulen+1)*(vlen+1)*sizeof(**dptable) <=
             gt_linspace_management_get_valueTabsize(spacemanager));

  dptable = gt_linspace_management_get_rTabspace(spacemanager);
  *dptable = gt_linspace_management_get_valueTabspace(spacemanager);

  for (idx = 1; idx < ulen+1; idx++)
    dptable[idx] = dptable[idx-1] + vlen + 1;

  affinealign_fill_table(dptable, &useq[ustart], ulen, &vseq[vstart], vlen,
                         GT_WORD_MAX, GT_WORD_MAX, GT_WORD_MAX,
                         GT_WORD_MAX, from_edge, scorehandler);

  evaluate_affinecrosspoints_from_2dimtab(Ctab, dptable, scorehandler, ulen,
                                          vlen, rowoffset, to_edge);

}

// Assembly:
subq $0x78, %rsp
movl 0xa8(%rsp), %eax
movl 0xa0(%rsp), %eax
movq 0x98(%rsp), %rax
movq 0x90(%rsp), %rax
movq 0x88(%rsp), %rax
movq 0x80(%rsp), %rax
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x485358
cmpq $0x0, 0x70(%rsp)
je 0x485358
cmpq $0x0, 0x68(%rsp)
jne 0x485390
movq 0x1b6c41(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x90caa(%rip), %rsi     # 0x516013
leaq 0xe1c8a(%rip), %rdx     # 0x566ffa
leaq 0x12c183(%rip), %rcx    # 0x5b14fa
leaq 0x12c08e(%rip), %r8     # 0x5b140c
movl $0x120, %r9d            # imm = 0x120
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x485392
jmp 0x485394
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq 0x90(%rsp), %rcx
addq $0x1, %rcx
imulq %rcx, %rax
imulq $0x30, %rax, %rax
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rdi
callq 0x1a37b0
movq %rax, %rcx
movq 0x30(%rsp), %rax
cmpq %rcx, %rax
jbe 0x485405
movq 0x1b6bcc(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x90c35(%rip), %rsi     # 0x516013
leaq 0x12c0b8(%rip), %rdx    # 0x5b149d
leaq 0x12c10e(%rip), %rcx    # 0x5b14fa
leaq 0x12c019(%rip), %r8     # 0x5b140c
movl $0x122, %r9d            # imm = 0x122
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x485407
movq 0x70(%rsp), %rdi
callq 0x1a3750
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rdi
callq 0x1a3720
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq $0x1, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x48(%rsp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jae 0x485487
movq 0x40(%rsp), %rax
movq 0x38(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
imulq $0x30, 0x90(%rsp), %rax
addq %rax, %rdx
addq $0x30, %rdx
movq 0x40(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
jmp 0x485434
movq 0x40(%rsp), %rdi
movq 0x58(%rsp), %rsi
addq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x80(%rsp), %rcx
addq 0x88(%rsp), %rcx
movq 0x90(%rsp), %r8
movl 0xa0(%rsp), %r10d
movq 0x68(%rsp), %rax
movabsq $0x7fffffffffffffff, %r11 # imm = 0x7FFFFFFFFFFFFFFF
movq %r11, %r9
movq %r11, (%rsp)
movq %r11, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x484260
movq 0x60(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x90(%rsp), %r8
movq 0x98(%rsp), %r9
movl 0xa8(%rsp), %eax
movl %eax, (%rsp)
callq 0x485530
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)