// File: /workspace/github_c_makefile_star2_O3/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 $0x68, %rsp
testq %rdi, %rdi
je 0x17f069
movq %rsi, %rbx
testq %rsi, %rsi
je 0x17f069
testq %rdx, %rdx
je 0x17f069
movq %rdi, %r14
movq %rdx, %rbp
callq 0x113d55
movq %rax, 0x48(%rsp)
movq %rbx, %rdi
callq 0x113d55
movq %rax, 0x40(%rsp)
movq %r14, %rdi
callq 0x113d64
movq %rax, %r12
movq %rbx, %rdi
callq 0x113d64
movq %rax, %r13
movq %r14, %rdi
callq 0x113dcc
movq %rax, %r15
movq %rbx, %rdi
callq 0x113dcc
movq %rbx, 0x10(%rsp)
movq %rax, %rbx
movq %rbp, %rdi
callq 0x113341
movq %rax, 0x18(%rsp)
movq %rbp, %rdi
callq 0x113354
movl %eax, 0x30(%rsp)
movq %rbp, %rdi
callq 0x113363
movl %eax, 0x20(%rsp)
movq %r14, %rdi
callq 0x113dbc
movq %rax, %r14
movq 0x10(%rsp), %rdi
callq 0x113dbc
movq %r12, 0x38(%rsp)
movq %r12, %xmm0
movq %r13, 0x60(%rsp)
movq %r13, %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 0x17f06e
cmpq $0x0, 0x18(%rsp)
je 0x17f06e
testq %r14, %r14
je 0x17f06e
testq %rax, %rax
je 0x17f06e
testq %r15, %r15
je 0x17f06e
testq %rbx, %rbx
je 0x17f06e
movq %rax, 0x28(%rsp)
movq %r14, 0x8(%rsp)
leaq 0x1(%r15), %r14
leaq 0x8(,%r15,8), %rdi
leaq 0x216e04(%rip), %rbp    # 0x395af3
movq %rbp, %rsi
movl $0x78, %edx
callq 0x104226
movq %rax, %r12
leaq 0x1(%rbx), %r13
movq %r13, %rdi
imulq %r14, %rdi
movl $0x10, %esi
movq %rbp, %rdx
movl $0x78, %ecx
callq 0x10436a
movq %rax, (%r12)
movq %r14, %rbp
cmpq $0x2, %r14
jb 0x17ed4a
shlq $0x4, %rbx
addq $0x10, %rbx
movq (%r12), %rax
addq %rbx, %rax
xorl %ecx, %ecx
movq %rax, 0x8(%r12,%rcx,8)
addq %rbx, %rax
incq %rcx
cmpq %rcx, %r15
jne 0x17ed3a
movq %r12, 0x10(%rsp)
movq 0x8(%rsp), %rdi
callq 0xd11cf
movl %eax, %ebx
movq 0x28(%rsp), %rdi
callq 0xd11cf
movl %ebx, 0x8(%rsp)
testl %ebx, %ebx
je 0x17f073
movl %eax, %r12d
testl %eax, %eax
je 0x17f073
decl 0x8(%rsp)
decl %r12d
movslq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movslq 0x20(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x3, %rbp
movl $0x2, %eax
cmovbq %rax, %rbp
movq %rbp, 0x30(%rsp)
cmpq $0x3, %r13
cmovaeq %r13, %rax
movq %rax, 0x50(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
movl $0x1, %esi
movq $-0x1, %rbx
movl $0xfe, %r10d
movq $-0x1, %r14
movq %rdi, 0x58(%rsp)
leaq -0x1(%rsi), %r11
shlq $0x4, %r11
movq (%rdi,%r11), %r13
movq %rsi, %r9
shlq $0x4, %r9
movq (%rdi,%r9), %r15
movl $0x1, %ebp
movq 0x38(%rsp), %rax
movzbl -0x1(%rax,%rbp), %eax
cmpl %r10d, %eax
cmovel 0x8(%rsp), %eax
movq 0x60(%rsp), %rcx
movzbl -0x1(%rcx,%rsi), %ecx
cmpl %r10d, %ecx
movl %r12d, %edx
cmovel %r12d, %ecx
cltq
movq 0x18(%rsp), %rdi
movq (%rdi,%rax,8), %rax
movslq %ecx, %rcx
movslq (%rax,%rcx,4), %rcx
addq %r13, %rcx
addq 0x28(%rsp), %r15
movq 0x10(%rsp), %rax
movq (%rax,%rbp,8), %rdi
movq (%rdi,%r11), %r13
movq 0x20(%rsp), %rax
addq %r13, %rax
cmpq %r15, %rcx
movq %r15, %r12
cmovgq %rcx, %r12
cmpq %rax, %r12
jg 0x17ee69
movq %rax, %r12
testq %r12, %r12
jg 0x17ee71
xorl %r12d, %r12d
movq %r12, (%rdi,%r9)
cmpq %rcx, %r12
sete 0x8(%rdi,%r9)
cmpq %r15, %r12
sete 0x9(%rdi,%r9)
cmpq %rax, %r12
sete 0xa(%rdi,%r9)
cmpq %r8, %r12
cmovgq %rsi, %rbx
cmovgq %rbp, %r14
cmovgq %r12, %r8
incq %rbp
movq %r12, %r15
cmpq %rbp, 0x30(%rsp)
movl %edx, %r12d
jne 0x17ee02
incq %rsi
cmpq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdi
jne 0x17ede6
cmpq $-0x1, %r14
je 0x17f078
cmpq $-0x1, %rbx
movq 0x10(%rsp), %rbp
je 0x17f07d
movq (%rbp,%r14,8), %rax
movq %rbx, %r15
shlq $0x4, %r15
cmpq $0x0, (%rax,%r15)
je 0x17f026
callq 0x120d2c
testq %rax, %rax
je 0x17f082
movq %rax, %r12
movq (%rbp,%r14,8), %rax
movq (%rax,%r15), %rsi
testq %rsi, %rsi
je 0x17f064
addq %r15, %rax
movq %rbx, %rdx
movq %r14, %rcx
testq %rsi, %rsi
jle 0x17f05f
movq %rcx, %r15
movq %rdx, %r13
cmpb $0x1, 0x8(%rax)
jne 0x17ef49
movq %r12, %rdi
callq 0x120f2d
leaq -0x1(%r15), %rcx
leaq -0x1(%r13), %rdx
jmp 0x17ef7b
cmpb $0x1, 0x9(%rax)
jne 0x17ef60
movq %r12, %rdi
callq 0x120f4a
leaq -0x1(%r15), %rcx
movq %r13, %rdx
jmp 0x17ef7b
cmpb $0x1, 0xa(%rax)
movq %r15, %rcx
movq %r13, %rdx
jne 0x17ef7b
movq %r12, %rdi
callq 0x120f67
leaq -0x1(%r13), %rdx
movq %r15, %rcx
movq (%rbp,%rcx,8), %rsi
movq %rdx, %rdi
shlq $0x4, %rdi
leaq (%rsi,%rdi), %rax
movq (%rsi,%rdi), %rsi
testq %rsi, %rsi
jne 0x17ef22
cmpq $-0x1, %r15
je 0x17f064
cmpq $-0x1, %r13
je 0x17f087
leaq -0x1(%r15), %rax
movq %rax, 0x38(%rsp)
leaq -0x1(%r13), %rax
movq %rax, 0x18(%rsp)
leaq -0x1(%r14), %rbp
leaq -0x1(%rbx), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rax
leaq (%rax,%r15), %rsi
decq %rsi
subq %r15, %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 0x120e01
movq %r12, %rdi
movq 0x38(%rsp), %rsi
movq %rbp, %rdx
callq 0x120eb7
movq %r12, %rdi
movq 0x18(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x120ee3
movq 0x10(%rsp), %rbp
movq (%rbp), %rdi
jmp 0x17f029
xorl %r12d, %r12d
leaq 0x216ac3(%rip), %rbx    # 0x395af3
movq %rbx, %rsi
movl $0x90, %edx
callq 0x1045eb
movq %rbp, %rdi
movq %rbx, %rsi
movl $0x90, %edx
callq 0x1045eb
movq %r12, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x57211
callq 0x5727f
callq 0x5716a
callq 0x571a3
callq 0x571da
callq 0x57324
callq 0x572ed
callq 0x572b6
callq 0x57248