// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/affinealign.c
// Function: gt_affinealign_with_Management
GtWord gt_affinealign_with_Management(GtLinspaceManagement *spacemanager,
                                     const GtScoreHandler *scorehandler,
                                     GtAlignment *align,
                                     const GtUchar *u, GtUword ulen,
                                     const GtUchar *v, GtUword vlen)
{
  GtAffinealignDPentry **dptable;
  GtUword idx;
  gt_assert(u && v && 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, u, ulen, v, vlen, GT_WORD_MAX, GT_WORD_MAX,
                         GT_WORD_MAX, GT_WORD_MAX, Affine_X, scorehandler);
  return gt_affinealign_traceback(align, dptable, ulen, vlen);
}

// Assembly:
subq $0x78, %rsp
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, 0x58(%rsp)
je 0x48514a
cmpq $0x0, 0x48(%rsp)
je 0x48514a
cmpq $0x0, 0x70(%rsp)
je 0x48514a
cmpq $0x0, 0x68(%rsp)
jne 0x485182
movq 0x1b6e4f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x90eb8(%rip), %rsi     # 0x516013
leaq 0x12c2f5(%rip), %rdx    # 0x5b1457
leaq 0x12c315(%rip), %rcx    # 0x5b147e
leaq 0x12c29c(%rip), %r8     # 0x5b140c
movl $0xd6, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x485184
jmp 0x485186
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq 0x80(%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 0x4851f7
movq 0x1b6dda(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x90e43(%rip), %rsi     # 0x516013
leaq 0x12c2c6(%rip), %rdx    # 0x5b149d
leaq 0x12c2a0(%rip), %rcx    # 0x5b147e
leaq 0x12c227(%rip), %r8     # 0x5b140c
movl $0xd9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4851f9
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 0x50(%rsp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jae 0x485279
movq 0x40(%rsp), %rax
movq 0x38(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
imulq $0x30, 0x80(%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 0x485226
movq 0x40(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x80(%rsp), %r8
movq 0x68(%rsp), %rax
movabsq $0x7fffffffffffffff, %r10 # imm = 0x7FFFFFFFFFFFFFFF
movq %r10, %r9
movq %r10, (%rsp)
movq %r10, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl $0x3, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x484260
movq 0x60(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x80(%rsp), %rcx
callq 0x483bb0
addq $0x78, %rsp
retq
nopl (%rax,%rax)