// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/idxlocalisw.c
// Function: gt_multiapplysmithwaterman
void gt_multiapplysmithwaterman(SWdpresource *dpresource,
                             const GtEncseq *encseq,
                             const GtUchar *query,
                             GtUword querylen)
{
  GtUword seqnum,
                seqstartpos,
                seqlength,
                numofdbsequences = gt_encseq_num_of_sequences(encseq);

  for (seqnum = 0; seqnum < numofdbsequences; seqnum++)
  {
    seqstartpos = gt_encseq_seqstartpos(encseq, seqnum);
    seqlength = gt_encseq_seqlength(encseq, seqnum);
    applysmithwaterman(dpresource,
                       encseq,
                       seqnum,
                       seqstartpos,
                       seqstartpos + seqlength,
                       query,
                       querylen);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, 0x60(%rsp)
movq %rdx, %r14
movq %rdi, %r12
movq %rsi, 0x30(%rsp)
movq %rsi, %rdi
callq 0xec1e8
movq %rax, 0x90(%rsp)
testq %rax, %rax
je 0x1bde02
movq 0x60(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x68(%rsp)
leaq 0x8(,%rax,8), %rcx
movq %rcx, 0x80(%rsp)
leaq 0x1(,%rax,8), %rcx
movq %rcx, 0x88(%rsp)
addq %r14, %rax
movq %rax, 0x98(%rsp)
xorl %r13d, %r13d
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0xefce0
movq %rax, %rbp
movq %rbx, %rdi
movq %r13, %rsi
callq 0xeffd3
movq %rax, %rbx
movq 0x68(%rsp), %rax
cmpq %rax, 0x50(%r12)
jae 0x1bd6ef
movq 0x68(%rsp), %rax
movq %rax, 0x50(%r12)
movq 0x30(%r12), %rdi
movq 0x80(%rsp), %rsi
leaq 0x1f40a0(%rip), %r15    # 0x3b1759
movq %r15, %rdx
movl $0x165, %ecx            # imm = 0x165
callq 0x1094e6
movq %rax, 0x30(%r12)
movq 0x40(%r12), %rdi
movq 0x50(%r12), %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
movq %r15, %rdx
movl $0x168, %ecx            # imm = 0x168
callq 0x1094e6
movq %rax, 0x40(%r12)
movq 0x30(%r12), %r15
cmpq $0x0, 0x60(%rsp)
js 0x1bd72d
movq 0x88(%rsp), %rax
addq %r15, %rax
leaq 0x8(%r15), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %r15, %rdx
notq %rdx
addq %rcx, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x173a0
movq %r13, 0x70(%rsp)
addq %rbp, %rbx
movq %rbx, 0x20(%rsp)
cmpq %rbx, %rbp
movq %rbp, 0x18(%rsp)
jae 0x1bd839
movq $0x0, 0x28(%rsp)
xorl %ebx, %ebx
movq %rbp, %r13
xorl %ebp, %ebp
movq 0x30(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xec1f8
cmpb $-0x1, %al
je 0x1bde23
cmpq $0x0, 0x60(%rsp)
jle 0x1bd829
movq %r13, %rcx
subq 0x18(%rsp), %rcx
incq %rcx
xorl %edx, %edx
xorl %esi, %esi
cmpb $-0x1, (%r14,%rdx)
je 0x1bde14
movq %rsi, %rdi
movq 0x28(%r12), %r8
addq (%r15,%rdx,8), %r8
movq 0x8(%r15,%rdx,8), %rsi
movq %r8, 0x8(%r15,%rdx,8)
movb (%r14,%rdx), %r9b
cmpb %al, %r9b
setne %r10b
cmpb $-0x2, %r9b
setae %r9b
orb %r10b, %r9b
movzbl %r9b, %r9d
addq 0x10(%r12,%r9,8), %rdi
cmpq %r8, %rdi
jle 0x1bd7d4
movq %rdi, 0x8(%r15,%rdx,8)
movq 0x28(%r12), %rdi
addq %rsi, %rdi
cmpq 0x8(%r15,%rdx,8), %rdi
jle 0x1bd7e8
movq %rdi, 0x8(%r15,%rdx,8)
movq 0x8(%r15,%rdx,8), %rdi
testq %rdi, %rdi
js 0x1bd808
cmpq %rbp, %rdi
jle 0x1bd811
leaq 0x1(%rdx), %r8
movq %r8, 0x28(%rsp)
movq %rcx, %rbx
movq %rdi, %rbp
jmp 0x1bd811
movq $0x0, 0x8(%r15,%rdx,8)
leaq (%r14,%rdx), %rdi
incq %rdi
incq %rdx
cmpq 0x98(%rsp), %rdi
jb 0x1bd78a
incq %r13
cmpq 0x20(%rsp), %r13
jne 0x1bd758
jmp 0x1bd846
movq $0x0, 0x28(%rsp)
xorl %ebx, %ebx
xorl %ebp, %ebp
cmpq 0x38(%r12), %rbp
jl 0x1bddec
movq 0x40(%r12), %r13
movq 0x28(%rsp), %r15
testq %r15, %r15
js 0x1bd8b3
leaq (%r15,%r15,2), %rax
leaq 0x1(,%rax,8), %rcx
addq %r13, %rcx
leaq 0x18(%r13), %rax
cmpq %rax, %rcx
cmovaq %rcx, %rax
addq $-0x18, %rax
xorl %ecx, %ecx
subq %r13, %rax
setne %cl
subq %rcx, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rdx
shrq $0x4, %rdx
addq %rcx, %rdx
leaq (%rdx,%rdx,2), %rax
leaq 0x18(,%rax,8), %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x173a0
movq 0x18(%rsp), %rax
addq %rax, %rbx
movq %rbx, 0x58(%rsp)
cmpq %rax, %rbx
jbe 0x1bda52
addq %r14, %r15
movq %r13, 0x50(%rsp)
leaq 0x28(%r13), %rcx
movq %rcx, 0x48(%rsp)
movq $0x0, 0x10(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x20(%rsp)
movq $0x0, 0x8(%rsp)
xorl %r13d, %r13d
movq %rax, %rsi
movq 0x30(%rsp), %rdi
movq %rsi, 0x40(%rsp)
xorl %edx, %edx
callq 0xec1f8
cmpb $-0x1, %al
je 0x1bde2d
cmpq $0x0, 0x28(%rsp)
pcmpeqd %xmm2, %xmm2
xorps %xmm3, %xmm3
jle 0x1bda3d
movq 0x50(%rsp), %rcx
movdqu 0x8(%rcx), %xmm0
movq (%rcx), %rdi
movq 0x40(%rsp), %rcx
incq %rcx
movq %rcx, 0x38(%rsp)
movq 0x48(%rsp), %rdx
xorl %esi, %esi
cmpb $-0x1, (%r14,%rsi)
je 0x1bde19
movdqa %xmm0, %xmm1
movq %rdi, %r8
movq -0x10(%rdx), %rdi
movdqu -0x8(%rdx), %xmm0
movq 0x28(%r12), %r9
movq -0x28(%rdx), %r10
addq %r9, %r10
movq %r10, -0x10(%rdx)
movq -0x20(%rdx), %r11
movq -0x18(%rdx), %rcx
incq %r11
movq %r11, -0x8(%rdx)
movq %rcx, (%rdx)
movb (%r14,%rsi), %cl
cmpb %al, %cl
setne %r11b
cmpb $-0x2, %cl
setae %cl
orb %r11b, %cl
movzbl %cl, %ecx
addq 0x10(%r12,%rcx,8), %r8
cmpq %r10, %r8
jle 0x1bd9b4
movq %r8, -0x10(%rdx)
psubq %xmm2, %xmm1
movdqu %xmm1, -0x8(%rdx)
leaq -0x10(%rdx), %r10
addq %rdi, %r9
cmpq (%r10), %r9
jle 0x1bd9d9
movq %r9, -0x10(%rdx)
movq %xmm0, -0x8(%rdx)
pshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
movq %xmm1, %rcx
incq %rcx
movq %rcx, (%rdx)
movq (%r10), %r8
testq %r8, %r8
js 0x1bda1a
cmpq %r13, %r8
jle 0x1bda26
movq -0x8(%rdx), %r9
movq (%rdx), %r10
movq %rsi, %rbx
movq %r9, 0x10(%rsp)
subq %r9, %rbx
incq %rbx
movq 0x18(%rsp), %rcx
movq %r10, 0x8(%rsp)
addq %r10, %rcx
movq 0x38(%rsp), %r9
subq %rcx, %r9
movq %r9, 0x20(%rsp)
movq %r8, %r13
jmp 0x1bda26
movups %xmm3, (%r10)
movq $0x0, 0x10(%r10)
leaq (%r14,%rsi), %rcx
incq %rcx
incq %rsi
addq $0x18, %rdx
cmpq %r15, %rcx
jb 0x1bd94a
movq 0x40(%rsp), %rsi
incq %rsi
cmpq 0x58(%rsp), %rsi
jne 0x1bd8fd
jmp 0x1bda72
movq $0x0, 0x10(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x20(%rsp)
movq $0x0, 0x8(%rsp)
xorl %r13d, %r13d
cmpq %rbp, %r13
jne 0x1bde37
movb $0x0, 0xa0(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %rbx, 0xc8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xd0(%rsp)
testq %r13, %r13
js 0x1bde3c
movq %r13, 0xd8(%rsp)
cmpb $0x1, (%r12)
jne 0x1bdd68
movq 0x10(%rsp), %rax
incq %rax
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %r15
imulq %rax, %r15
cmpq %r15, 0x58(%r12)
jae 0x1bdb1a
movq %r15, 0x58(%r12)
movq 0x68(%r12), %rdi
movq %r15, %rsi
leaq 0x1f3c4e(%rip), %rdx    # 0x3b1759
movl $0x189, %ecx            # imm = 0x189
callq 0x1094e6
movq %rax, 0x68(%r12)
movq %r15, 0x50(%rsp)
movq 0x8(%r12), %rdi
callq 0x126d7c
movq 0x8(%rsp), %rax
cmpq %rax, 0x60(%r12)
jae 0x1bdb5a
movq 0x8(%rsp), %rsi
movq %rsi, 0x60(%r12)
movq 0x48(%r12), %rdi
leaq 0x1f3c0e(%rip), %rdx    # 0x3b1759
movl $0x192, %ecx            # imm = 0x192
callq 0x1094e6
movq %rax, 0x48(%r12)
movq 0x8(%r12), %r13
movq 0x30(%r12), %rcx
movq 0x48(%r12), %rax
movq %rax, 0x28(%rsp)
movq 0x68(%r12), %rsi
movq 0x38(%r12), %rax
movq %rax, 0x78(%rsp)
addq %r14, %rbx
movb $0x0, (%rsi)
movq $0x0, (%rcx)
movq %rcx, 0x38(%rsp)
addq $0x8, %rcx
movq 0x10(%rsp), %rdx
leaq (%rbx,%rdx), %rbp
movq %rsi, 0x48(%rsp)
leaq 0x1(%rsi), %r15
movq %rbx, %rax
movq %rcx, 0x58(%rsp)
testq %rdx, %rdx
jle 0x1bdbd1
movq 0x28(%r12), %rdx
addq -0x8(%rcx), %rdx
movq %rdx, (%rcx)
movb $0x2, (%r15)
addq $0x8, %rcx
incq %rax
incq %r15
cmpq %rbp, %rax
jb 0x1bdbb2
movq 0x20(%rsp), %rcx
addq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
leaq (%rcx,%rax), %rdx
movq %rcx, %rsi
movq %rcx, 0x20(%rsp)
movq %rdx, 0x40(%rsp)
cmpq %rdx, %rcx
jae 0x1bdcd7
movq 0x30(%rsp), %rdi
movq %rsi, 0x18(%rsp)
xorl %edx, %edx
callq 0xec1f8
cmpb $-0x1, %al
je 0x1bde32
movq 0x38(%rsp), %rsi
movq (%rsi), %r8
movq 0x28(%r12), %rdx
addq %r8, %rdx
leaq 0x1(%r15), %rcx
movq %rdx, (%rsi)
movb $0x4, (%r15)
cmpq $0x0, 0x10(%rsp)
jle 0x1bdcc1
movq %rbx, %rdx
movq 0x58(%rsp), %rsi
cmpb $-0x1, (%rdx)
je 0x1bde1e
movq (%rsi), %rdi
movq 0x28(%r12), %r9
addq -0x8(%rsi), %r9
movq %r9, (%rsi)
movb $0x2, (%rcx)
movb (%rdx), %r9b
cmpb %al, %r9b
setne %r10b
cmpb $-0x2, %r9b
setae %r9b
orb %r10b, %r9b
movzbl %r9b, %r9d
addq 0x10(%r12,%r9,8), %r8
cmpq (%rsi), %r8
jl 0x1bdc90
sete %r9b
addb %r9b, %r9b
incb %r9b
movb %r9b, (%rcx)
movq %r8, (%rsi)
movq 0x28(%r12), %r8
addq %rdi, %r8
cmpq (%rsi), %r8
jl 0x1bdcaf
movb $0x4, %r9b
jne 0x1bdca9
movb (%rcx), %r9b
orb $0x4, %r9b
movb %r9b, (%rcx)
movq %r8, (%rsi)
addq $0x8, %rsi
incq %rdx
incq %rcx
movq %rdi, %r8
cmpq %rbp, %rdx
jb 0x1bdc42
movq 0x18(%rsp), %rsi
incq %rsi
movq %rcx, %r15
cmpq 0x40(%rsp), %rsi
jne 0x1bdbfa
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
leaq (%rcx,%rax), %r15
decq %r15
movq $-0x2, %rcx
movq 0x10(%rsp), %rax
subq %rax, %rcx
movq %rcx, 0x18(%rsp)
notq %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rbp
movzbl (%r15), %eax
movq %r13, %rdi
testb $0x2, %al
je 0x1bdd1e
callq 0x126d42
decq %r15
jmp 0x1bdd09
testb $0x1, %al
jne 0x1bdd32
testb $0x4, %al
je 0x1bdd7c
callq 0x126d5f
movq 0x38(%rsp), %rax
jmp 0x1bdd3c
callq 0x126d25
movq 0x18(%rsp), %rax
subq $0x1, %rbp
jb 0x1bde28
addq %rax, %r15
movq 0x20(%rsp), %rax
leaq (%rax,%rbp), %rsi
movq 0x30(%rsp), %rdi
xorl %edx, %edx
callq 0xec1f8
movq 0x28(%rsp), %rcx
movb %al, (%rcx,%rbp)
jmp 0x1bdd09
xorl %eax, %eax
movq %rax, 0xc0(%rsp)
movq %rax, 0xe0(%rsp)
jmp 0x1bddda
movq %rbx, %rsi
movq 0x10(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x126bf9
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
movq 0x28(%r12), %r8
movq %r13, %rdi
xorl %esi, %esi
callq 0x126fa5
testq %rax, %rax
js 0x1bde41
cmpq 0x78(%rsp), %rax
jb 0x1bde41
movq 0x8(%r12), %rax
movq %rax, 0xe0(%rsp)
movq 0x48(%r12), %rax
movq %rax, 0xc0(%rsp)
movq 0x78(%r12), %rdi
leaq 0xa0(%rsp), %rsi
callq *0x70(%r12)
movq 0x70(%rsp), %r13
incq %r13
cmpq 0x90(%rsp), %r13
jne 0x1bd66e
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6762c
callq 0x675ba
callq 0x67548
callq 0x67663
callq 0x674eb
callq 0x675f3
callq 0x67581
callq 0x67479
callq 0x674b2
movq %rax, %rdi
callq 0x67524