// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/squarealign.c
// Function: gt_squarealign_ctab
GtUword gt_squarealign_ctab(GtLinspaceManagement *spacemanager,
                            const GtScoreHandler *scorehandler,
                            GtUword *Ctab,
                            const GtUchar *useq,
                            GtUword ustart,
                            GtUword ulen,
                            const GtUchar *vseq,
                            GtUword vstart,
                            GtUword vlen,
                            GtUword rowoffset)
{
  GtUword **E, distance;

  gt_assert(Ctab && spacemanager && scorehandler);

  E = gt_linspace_management_change_to_square(spacemanager,ulen,vlen);
  E = gt_linspace_management_change_to_square(spacemanager,ulen, vlen);

  fillDPtab_in_square_space(E, useq, ustart, ulen,
                            vseq, vstart, vlen, scorehandler);
  distance = E[ulen][vlen];

  evaluate_crosspoints_from_2dimtab(E, Ctab, scorehandler, useq, ustart, ulen,
                                    vseq, vstart, vlen,  rowoffset);
  return distance;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x8(%rsp)
movq %rsi, 0x18(%rsp)
testq %rsi, %rsi
je 0x11f1f2
movq %rdi, %r13
testq %rdi, %rdi
je 0x11f1f2
movq %rdx, %r14
testq %rdx, %rdx
je 0x11f1f2
movq %r9, %rbx
movq %r8, %r15
movq 0x80(%rsp), %r12
movq 0x70(%rsp), %rbp
movq %r13, %rdi
movq %r9, %rsi
movq %r12, %rdx
callq 0xf99eb
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0xf99eb
movq %rax, %r13
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movq %rbx, %rcx
movq %rbp, %r8
movq 0x78(%rsp), %r9
movq %r15, 0x10(%rsp)
movq 0x18(%rsp), %r15
pushq %r15
pushq %r12
callq 0x11ec45
popq %rax
popq %rcx
movq (%r13,%rbx,8), %rax
movq (%rax,%r12,8), %rax
movq %rax, 0x20(%rsp)
movq %r15, %rdi
callq 0x114a6a
movq 0x88(%rsp), %rbp
movq %rax, %rdx
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
leaq -0x1(%rax,%rcx), %rax
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %rcx
addq %rcx, %rax
decq %rax
movq %rax, 0x28(%rsp)
movq %r14, 0x30(%rsp)
leaq (%rbx,%rbp), %rsi
testq %rbx, %rbx
setne %al
cmpq $0x2, %r12
setae %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x11f1a6
testq %rbx, %rbx
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x11f136
movq -0x8(%r13,%rbx,8), %rax
movq (%r13,%rbx,8), %rcx
movq (%rcx,%r12,8), %rcx
movq %rcx, 0x8(%rsp)
movq -0x8(%rax,%r12,8), %r15
movq 0x10(%rsp), %rax
movq %rsi, %r14
movzbl (%rax,%rbx), %esi
movq %r13, %rbp
movq %rdx, %r13
movq 0x28(%rsp), %rax
movzbl (%rax,%r12), %edx
movq 0x18(%rsp), %rdi
callq 0x114b2c
movq %r14, %rsi
movq %r13, %rdx
movq %rbp, %r13
addq %r15, %rax
cmpq %rax, 0x8(%rsp)
movq 0x30(%rsp), %r14
jne 0x11f13b
jmp 0x11f187
testq %rbx, %rbx
je 0x11f152
movq -0x8(%r13,%rbx,8), %rax
movq (%r13,%rbx,8), %rcx
movq (%rax,%r12,8), %rax
addq %rdx, %rax
cmpq %rax, (%rcx,%r12,8)
je 0x11f177
testq %r12, %r12
je 0x11f1ba
movq (%r13,%rbx,8), %rax
movq -0x8(%rax,%r12,8), %rcx
addq %rdx, %rcx
cmpq %rcx, (%rax,%r12,8)
jne 0x11f1ba
movq %rsi, -0x8(%r14,%r12,8)
decq %r12
jmp 0x11f0b6
decq %rbx
movq 0x88(%rsp), %rbp
jmp 0x11f0b2
movq 0x88(%rsp), %rbp
leaq (%rbx,%rbp), %rax
decq %rax
decq %rbx
movq %rax, -0x8(%r14,%r12,8)
decq %r12
jmp 0x11f0b2
movq 0x20(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x318da7(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c5e48(%rip), %rsi    # 0x2e5013
leaq 0x20781a(%rip), %rdx    # 0x3269ec
leaq 0x215894(%rip), %rcx    # 0x334a6d
leaq 0x2157b6(%rip), %r8     # 0x334996
movl $0xcf, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x318d6f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1c5e10(%rip), %rsi    # 0x2e5013
leaq 0x2157e4(%rip), %rdx    # 0x3349ee
leaq 0x215802(%rip), %rcx    # 0x334a13
leaq 0x21577e(%rip), %r8     # 0x334996
movl $0xe2, %r9d
jmp 0x11f1e6