// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/diagonalbandalign_affinegapcost.c
// Function: affineDtab_in_square_space
static GtAffineAlignRnode affineDtab_in_square_space(
                                                   GtLinspaceManagement *space,
                                                   GtAffineDiagAlignentry *Dtab,
                                                   const GtUchar *useq,
                                                   GtUword ustart,
                                                   GtUword ulen,
                                                   const GtUchar *vseq,
                                                   GtUword vstart,
                                                   GtUword vlen,
                                                   GtWord left_dist,
                                                   GtWord right_dist,
                                                   GtUword rowoffset,
                                                   GtAffineAlignEdge from_edge,
                                                   GtAffineAlignEdge edge,
                                                   GtAffineAlignEdge to_edge,
                                                   const GtScoreHandler
                                                   *scorehandler)
{
  GtAffinealignDPentry **Atabcolumn;
  GtUword idx, gap_opening;

  gt_assert(Dtab && space && scorehandler);

  gt_assert((ulen+1)*(vlen+1)*sizeof(**Atabcolumn) <=
               gt_linspace_management_get_valueTabsize(space));

  Atabcolumn = gt_linspace_management_get_rTabspace(space);
  *Atabcolumn = gt_linspace_management_get_valueTabspace(space);

  for (idx=1;idx<ulen+1;idx++)
    Atabcolumn[idx]=Atabcolumn[idx-1]+vlen+1;
  diagonalband_fillDPtab_affine(Atabcolumn, useq, ustart, ulen, vseq, vstart,
                                vlen, left_dist, right_dist,
                                from_edge, edge, scorehandler);

  gap_opening = gt_scorehandler_get_gap_opening(scorehandler);
  GtAffineAlignRnode rnode = evaluate_affineDBcrosspoints_from_2dimtab(Dtab,
                                            Atabcolumn, ulen, vlen, gap_opening,
                                            rowoffset, from_edge, to_edge);

  return rnode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq 0x100(%rsp), %rax
movl 0xf8(%rsp), %eax
movl 0xf0(%rsp), %eax
movl 0xe8(%rsp), %eax
movq 0xe0(%rsp), %rax
movq 0xd8(%rsp), %rax
movq 0xd0(%rsp), %rax
movq 0xc8(%rsp), %rax
movq 0xc0(%rsp), %rax
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, 0x78(%rsp)
je 0x156bc1
cmpq $0x0, 0x80(%rsp)
je 0x156bc1
cmpq $0x0, 0x100(%rsp)
jne 0x156bf9
movq 0x4e53d8(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3bf441(%rip), %rsi    # 0x516013
leaq 0x3f6a86(%rip), %rdx    # 0x54d65f
leaq 0x3f6a9d(%rip), %rcx    # 0x54d67d
leaq 0x3f67b5(%rip), %r8     # 0x54d39c
movl $0x1a2, %r9d            # imm = 0x1A2
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x156bfb
jmp 0x156bfd
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq 0xc8(%rsp), %rcx
addq $0x1, %rcx
imulq %rcx, %rax
imulq $0x30, %rax, %rax
movq %rax, 0x38(%rsp)
movq 0x80(%rsp), %rdi
callq 0x1a37b0
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
jbe 0x156c71
movq 0x4e5360(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3bf3c9(%rip), %rsi    # 0x516013
leaq 0x3f677a(%rip), %rdx    # 0x54d3cb
leaq 0x3f6a25(%rip), %rcx    # 0x54d67d
leaq 0x3f673d(%rip), %r8     # 0x54d39c
movl $0x1a5, %r9d            # imm = 0x1A5
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x156c73
movq 0x80(%rsp), %rdi
callq 0x1a3750
movq %rax, 0x50(%rsp)
movq 0x80(%rsp), %rdi
callq 0x1a3720
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movq $0x1, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq 0x60(%rsp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jae 0x156cf9
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
imulq $0x30, 0xc8(%rsp), %rax
addq %rax, %rdx
addq $0x30, %rdx
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x156ca6
movq 0x50(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0xc0(%rsp), %r9
movq 0xc8(%rsp), %r10
movq 0xd0(%rsp), %r11
movq 0xd8(%rsp), %rbx
movl 0xe8(%rsp), %ebp
movl 0xf0(%rsp), %r14d
movq 0x100(%rsp), %r15
movq %rsp, %rax
movq %r15, 0x28(%rax)
movl %r14d, 0x20(%rax)
movl %ebp, 0x18(%rax)
movq %rbx, 0x10(%rax)
movq %r11, 0x8(%rax)
movq %r10, (%rax)
callq 0x151570
movq 0x100(%rsp), %rdi
callq 0x1d1180
movq %rax, 0x40(%rsp)
movq 0x78(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movq 0x40(%rsp), %r8
movq 0xe0(%rsp), %r9
movl 0xe8(%rsp), %r10d
movl 0xf8(%rsp), %r11d
movq %rsp, %rax
movl %r11d, 0x8(%rax)
movl %r10d, (%rax)
callq 0x158a90
movq %rax, 0x88(%rsp)
movl %edx, 0x90(%rsp)
movq 0x88(%rsp), %rax
movl 0x90(%rsp), %edx
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)