// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/squarealign.c
// Function: gt_squarealign_calculate_generic
GtUword gt_squarealign_calculate_generic (GtLinspaceManagement *spacemanager,
                                          GtAlignment *align,
                                          const GtUchar *useq,
                                          GtUword ustart,
                                          GtUword ulen,
                                          const GtUchar *vseq,
                                          GtUword vstart,
                                          GtUword vlen,
                                          const GtScoreHandler *scorehandler)
{
  GtUword **E, distance;
  gt_assert(align && scorehandler);

  if (spacemanager == NULL)
  {
    /*use it in normally case*/
    gt_array2dim_malloc(E, (ulen+1), (vlen+1));
  }
  else
  {
    /*use it in lineraspace context*/
    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];
  /* reconstruct alignment from 2dimarray E */
  gt_reconstructalignment_from_EDtab(align, E, useq, ustart, ulen, vseq, vstart,
                                     vlen, scorehandler);
  if (spacemanager == NULL)
  {
    gt_array2dim_delete(E);
  }
  return distance;
}

// Assembly:
subq $0x68, %rsp
movq 0x80(%rsp), %rax
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %rax
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0x1e0b07
cmpq $0x0, 0x80(%rsp)
jne 0x1e0b3f
movq 0x45b492(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3354fb(%rip), %rsi    # 0x516013
leaq 0x36c536(%rip), %rdx    # 0x54d055
leaq 0x38645b(%rip), %rcx    # 0x566f81
leaq 0x386475(%rip), %r8     # 0x566fa2
movl $0x4f, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1e0b41
cmpq $0x0, 0x60(%rsp)
jne 0x1e0c04
movq 0x40(%rsp), %rdi
addq $0x1, %rdi
shlq $0x3, %rdi
leaq 0x386441(%rip), %rsi    # 0x566fa2
movl $0x54, %edx
callq 0xe80f0
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rdi
addq $0x1, %rdi
shlq $0x3, %rdi
movq 0x78(%rsp), %rax
addq $0x1, %rax
imulq %rax, %rdi
leaq 0x386411(%rip), %rsi    # 0x566fa2
movl $0x54, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq $0x1, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x40(%rsp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jae 0x1e0c02
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq 0x78(%rsp), %rax
addq $0x1, %rax
shlq $0x3, %rax
addq %rax, %rdx
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x1e0baf
jmp 0x1e0c1d
movq 0x60(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x78(%rsp), %rdx
callq 0x1a3830
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x70(%rsp), %r9
movq 0x78(%rsp), %r10
movq 0x80(%rsp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1e0d00
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x78(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x28(%rsp)
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x40(%rsp), %r8
movq 0x38(%rsp), %r9
movq 0x70(%rsp), %r11
movq 0x78(%rsp), %r10
movq 0x80(%rsp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x1c6820
cmpq $0x0, 0x60(%rsp)
jne 0x1e0cec
movq 0x30(%rsp), %rax
movq (%rax), %rdi
leaq 0x3862d6(%rip), %rsi    # 0x566fa2
movl $0x64, %edx
callq 0xe88c0
movq 0x30(%rsp), %rdi
leaq 0x3862c0(%rip), %rsi    # 0x566fa2
movl $0x64, %edx
callq 0xe88c0
movq 0x28(%rsp), %rax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)