// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/diagonalbandalign_affinegapcost.c
// Function: gt_diagonalbandalign_affinegapcost_compute_generic
void gt_diagonalbandalign_affinegapcost_compute_generic(GtLinspaceManagement
                                                        *spacemanager,
                                                        const GtScoreHandler
                                                        *scorehandler,
                                                        GtAlignment *align,
                                                        const GtUchar *useq,
                                                        GtUword ustart,
                                                        GtUword ulen,
                                                        const GtUchar *vseq,
                                                        GtUword vstart,
                                                        GtUword vlen,
                                                        GtWord left_dist,
                                                        GtWord right_dist)
{
  gt_assert(useq  && vseq && spacemanager && scorehandler && align);

  /* set new bounds, if left_dist or right_dist is out of sequence */
  left_dist = GT_MAX(-(GtWord) ulen,left_dist);
  right_dist = GT_MIN((GtWord) vlen,right_dist);
  gt_alignment_set_seqs(align, useq+ustart, ulen, vseq+vstart, vlen);
  gt_calc_diagonalbandaffinealign(spacemanager, scorehandler, align,
                                             useq, ustart, ulen,
                                             vseq, vstart, vlen,
                                             left_dist, right_dist);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq 0x50(%rsp), %rcx
movq %rcx, %xmm0
movq %r15, %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movq %rsi, 0x10(%rsp)
movq %rsi, %xmm0
movq %rdi, 0x8(%rsp)
movq %rdi, %xmm2
punpcklqdq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0]
pxor %xmm0, %xmm0
pcmpeqd %xmm0, %xmm2
pcmpeqd %xmm0, %xmm1
movdqa %xmm1, %xmm0
shufps $0xdd, %xmm2, %xmm0     # xmm0 = xmm0[1,3],xmm2[1,3]
shufps $0x88, %xmm2, %xmm1     # xmm1 = xmm1[0,2],xmm2[0,2]
andps %xmm0, %xmm1
movmskps %xmm1, %eax
testl %eax, %eax
jne 0xcb886
movq %rdx, %r12
testq %rdx, %rdx
je 0xcb886
movq %r9, %rbp
movq 0x70(%rsp), %r13
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %r9, %rbx
negq %rbx
cmpq %rax, %rbx
cmovleq %rax, %rbx
cmpq %r13, %rsi
cmovlq %rsi, %r13
movq %rsi, %rax
leaq (%r15,%r8), %rsi
addq %rdx, %rcx
movq %r12, %rdi
movq %r9, %rdx
movq %r8, %r14
movq %rax, %r8
callq 0xb4f1f
subq $0x8, %rsp
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
movq %rbp, %r9
pushq %r13
pushq %rbx
pushq 0x78(%rsp)
pushq 0x78(%rsp)
pushq 0x78(%rsp)
callq 0xcb8be
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x36c6db(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x21977c(%rip), %rsi    # 0x2e5013
leaq 0x24fa82(%rip), %rdx    # 0x31b320
leaq 0x24fab1(%rip), %rcx    # 0x31b356
leaq 0x24f9ae(%rip), %r8     # 0x31b25a
movl $0x5b2, %r9d            # imm = 0x5B2
xorl %eax, %eax
callq 0x17a50
callq 0x17390