// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/swalign.c
// Function: gt_swalign
GtAlignment* gt_swalign(GtSeq *u, GtSeq *v, const GtScoreFunction *sf)
{
  gt_assert(u && v && sf);
  return smith_waterman_align(gt_seq_get_orig(u), gt_seq_get_orig(v),
                              gt_seq_get_encoded(u), gt_seq_get_encoded(v),
                              gt_seq_length(u), gt_seq_length(v),
                              gt_score_function_get_scores(sf),
                              gt_score_function_get_deletion_score(sf),
                              gt_score_function_get_insertion_score(sf),
                              gt_seq_get_alphabet(u), gt_seq_get_alphabet(v));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
testq %rdi, %rdi
je 0x18771c
movq %rsi, %r15
testq %rsi, %rsi
je 0x18771c
testq %rdx, %rdx
je 0x18771c
movq %rdi, %r14
movq %rdx, %r13
callq 0x11942d
movq %rax, 0x48(%rsp)
movq %r15, %rdi
callq 0x11942d
movq %rax, 0x40(%rsp)
movq %r14, %rdi
callq 0x11943c
movq %rax, 0x20(%rsp)
movq %r15, %rdi
callq 0x11943c
movq %rax, %rbp
movq %r14, %rdi
callq 0x1194a2
movq %rax, %r12
movq %r15, %rdi
callq 0x1194a2
movq %rax, %rbx
movq %r13, %rdi
callq 0x1189e0
movq %rax, 0x18(%rsp)
movq %r13, %rdi
callq 0x1189f3
movl %eax, 0x30(%rsp)
movq %r13, %rdi
callq 0x118a02
movl %eax, 0x28(%rsp)
movq %r14, %rdi
callq 0x119492
movq %rax, %r14
movq %r15, %rdi
callq 0x119492
movq 0x20(%rsp), %xmm0
movq %rbp, 0x50(%rsp)
movq %rbp, %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movq 0x48(%rsp), %xmm1
movq 0x40(%rsp), %xmm2
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
pxor %xmm2, %xmm2
pcmpeqd %xmm2, %xmm1
pcmpeqd %xmm2, %xmm0
movdqa %xmm1, %xmm2
shufps $0xdd, %xmm0, %xmm2     # xmm2 = xmm2[1,3],xmm0[1,3]
shufps $0x88, %xmm0, %xmm1     # xmm1 = xmm1[0,2],xmm0[0,2]
andps %xmm2, %xmm1
movmskps %xmm1, %ecx
testl %ecx, %ecx
jne 0x187721
cmpq $0x0, 0x18(%rsp)
je 0x187721
testq %r14, %r14
je 0x187721
testq %rax, %rax
je 0x187721
testq %r12, %r12
je 0x187721
testq %rbx, %rbx
je 0x187721
movq %rax, 0x38(%rsp)
movq %r14, 0x8(%rsp)
leaq 0x1(%r12), %rbp
leaq 0x8(,%r12,8), %rdi
leaq 0x217bf0(%rip), %r13    # 0x39efa3
movq %r13, %rsi
movl $0x78, %edx
callq 0x1092b2
movq %rax, %r15
leaq 0x1(%rbx), %r14
movq %r14, %rdi
imulq %rbp, %rdi
movl $0x10, %esi
movq %r13, %rdx
movl $0x78, %ecx
callq 0x1093ef
movq %rax, (%r15)
movq %rbp, %r13
cmpq $0x2, %rbp
jb 0x18740c
shlq $0x4, %rbx
addq $0x10, %rbx
movq (%r15), %rax
addq %rbx, %rax
xorl %ecx, %ecx
movq %rax, 0x8(%r15,%rcx,8)
addq %rbx, %rax
incq %rcx
cmpq %rcx, %r12
jne 0x1873fc
movq %r15, 0x10(%rsp)
movq 0x8(%rsp), %rdi
callq 0xd3724
movl %eax, %ebx
movq 0x38(%rsp), %rdi
callq 0xd3724
movl %ebx, 0x8(%rsp)
testl %ebx, %ebx
je 0x187726
testl %eax, %eax
je 0x187726
decl 0x8(%rsp)
decl %eax
movl %eax, 0x38(%rsp)
movslq 0x30(%rsp), %rax
movq %rax, 0x30(%rsp)
movslq 0x28(%rsp), %rdx
movq %r13, %rax
cmpq $0x3, %r13
movl $0x2, %ecx
cmovbq %rcx, %rax
cmpq $0x3, %r14
cmovaeq %r14, %rcx
movq %rcx, 0x28(%rsp)
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
movl $0x1, %r8d
movq $-0x1, %rbx
movl $0xfe, %r9d
movq $-0x1, %r14
movq 0x10(%rsp), %r12
leaq -0x1(%r8), %r10
shlq $0x4, %r10
movq %r8, %r11
shlq $0x4, %r11
movl $0x1, %esi
movq 0x20(%rsp), %rcx
movzbl -0x1(%rcx,%rsi), %ecx
cmpl %r9d, %ecx
cmovel 0x8(%rsp), %ecx
movq 0x50(%rsp), %r15
movzbl -0x1(%r15,%r8), %ebp
cmpl %r9d, %ebp
cmovel 0x38(%rsp), %ebp
movslq %ecx, %rcx
movq 0x18(%rsp), %r15
movq (%r15,%rcx,8), %rcx
movslq %ebp, %r15
movslq (%rcx,%r15,4), %r13
movq -0x8(%r12,%rsi,8), %rcx
addq (%rcx,%r10), %r13
movq (%rcx,%r11), %r15
addq 0x30(%rsp), %r15
movq %r13, %rbp
cmpq %r15, %r13
jg 0x187503
movq %r15, %rbp
movq (%r12,%rsi,8), %r12
movq (%r12,%r10), %rcx
addq %rdx, %rcx
cmpq %rcx, %rbp
jg 0x187516
movq %rcx, %rbp
testq %rbp, %rbp
jg 0x18751d
xorl %ebp, %ebp
movq %rbp, (%r12,%r11)
cmpq %r13, %rbp
sete 0x8(%r12,%r11)
cmpq %r15, %rbp
sete 0x9(%r12,%r11)
cmpq %rcx, %rbp
sete 0xa(%r12,%r11)
cmpq %rdi, %rbp
cmovgq %r8, %rbx
cmovgq %rsi, %r14
cmovgq %rbp, %rdi
incq %rsi
cmpq %rsi, %rax
movq 0x10(%rsp), %r12
jne 0x1874ae
incq %r8
cmpq 0x28(%rsp), %r8
jne 0x18749a
cmpq $-0x1, %r14
je 0x18772b
cmpq $-0x1, %rbx
je 0x187730
movq (%r12,%r14,8), %rax
movq %rbx, %r15
shlq $0x4, %r15
cmpq $0x0, (%rax,%r15)
je 0x18763c
callq 0x126b24
testq %rax, %rax
je 0x187735
movq %rax, %r12
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0x187644
addq %r15, %rax
movq %rbx, %rdx
movq %r14, %rcx
testq %rsi, %rsi
jle 0x187717
movq %rcx, %rbp
movq %rdx, %r13
cmpb $0x1, 0x8(%rax)
jne 0x1875eb
movq %r12, %rdi
callq 0x126d25
leaq -0x1(%rbp), %rcx
leaq -0x1(%r13), %rdx
jmp 0x18761d
cmpb $0x1, 0x9(%rax)
jne 0x187602
movq %r12, %rdi
callq 0x126d42
leaq -0x1(%rbp), %rcx
movq %r13, %rdx
jmp 0x18761d
cmpb $0x1, 0xa(%rax)
movq %rbp, %rcx
movq %r13, %rdx
jne 0x18761d
movq %r12, %rdi
callq 0x126d5f
leaq -0x1(%r13), %rdx
movq %rbp, %rcx
movq 0x10(%rsp), %rax
movq (%rax,%rcx,8), %rsi
movq %rdx, %rdi
shlq $0x4, %rdi
leaq (%rsi,%rdi), %rax
movq (%rsi,%rdi), %rsi
testq %rsi, %rsi
jne 0x1875c4
jmp 0x187652
xorl %r12d, %r12d
jmp 0x1876d9
movq $-0x1, %rbp
movq $-0x1, %r13
cmpq $-0x1, %rbp
je 0x18773a
cmpq $-0x1, %r13
je 0x18773f
leaq -0x1(%rbp), %rax
movq %rax, 0x18(%rsp)
leaq -0x1(%r13), %r15
leaq -0x1(%r14), %rax
movq %rax, 0x8(%rsp)
leaq -0x1(%rbx), %rax
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rax
leaq (%rax,%rbp), %rsi
decq %rsi
subq %rbp, %r14
incq %r14
movq 0x40(%rsp), %rax
leaq (%rax,%r13), %rcx
decq %rcx
subq %r13, %rbx
incq %rbx
movq %r12, %rdi
movq %r14, %rdx
movq %rbx, %r8
callq 0x126bf9
movq %r12, %rdi
movq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x126caf
movq %r12, %rdi
movq %r15, %rsi
movq 0x20(%rsp), %rdx
callq 0x126cdb
movq 0x10(%rsp), %r14
movq (%r14), %rdi
leaq 0x2178bb(%rip), %rbx    # 0x39efa3
movq %rbx, %rsi
movl $0x90, %edx
callq 0x109670
movq %r14, %rdi
movq %rbx, %rsi
movl $0x90, %edx
callq 0x109670
movq %r12, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x58490
callq 0x583e9
callq 0x58422
callq 0x58459
callq 0x585a3
callq 0x5856c
callq 0x58535
callq 0x584fe
callq 0x584c7