// File: /workspace/github_c_makefile_star2_O3/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 $0x108, %rsp            # imm = 0x108
movq %rcx, 0x60(%rsp)
movq %rdx, %r14
movq %rdi, %r12
movq %rsi, 0x48(%rsp)
movq %rsi, %rdi
callq 0xe7bac
movq %rax, 0xa8(%rsp)
testq %rax, %rax
je 0x1b5382
movq 0x60(%rsp), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x80(%rsp)
leaq 0x8(,%rcx,8), %rax
movq %rax, 0x98(%rsp)
leaq 0x1(,%rcx,8), %rax
movq %rax, 0xa0(%rsp)
leaq (%r14,%rcx), %r13
xorl %ebp, %ebp
movq %r13, 0x78(%rsp)
movq 0x48(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0xeb6ee
movq %rax, (%rsp)
movq %r15, %rdi
movq %rbp, 0x88(%rsp)
movq %rbp, %rsi
callq 0xeb9d2
movq %rax, %rbx
movq 0x80(%rsp), %rax
cmpq %rax, 0x50(%r12)
jae 0x1b4b8a
movq 0x80(%rsp), %rax
movq %rax, 0x50(%r12)
movq 0x30(%r12), %rdi
movq 0x98(%rsp), %rsi
leaq 0x1f3649(%rip), %r15    # 0x3a819d
movq %r15, %rdx
movl $0x165, %ecx            # imm = 0x165
callq 0x104461
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 0x104461
movq %rax, 0x40(%r12)
movq 0x30(%r12), %r15
cmpq $0x0, 0x60(%rsp)
js 0x1b4bc8
movq 0xa0(%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 (%rsp), %rbp
addq %rbp, %rbx
movq %rbx, 0x28(%rsp)
cmpq %rbx, %rbp
jae 0x1b4d10
xorl %ebx, %ebx
movq $0x0, 0x30(%rsp)
movq %rbp, %rsi
xorl %r11d, %r11d
movq %rbx, %rbp
movq %r11, %rbx
movq 0x48(%rsp), %rdi
movq %rsi, 0x8(%rsp)
xorl %edx, %edx
callq 0xe7bbc
cmpb $-0x1, %al
je 0x1b53a3
cmpq $0x0, 0x60(%rsp)
jle 0x1b4cca
movq 0x8(%rsp), %rcx
subq (%rsp), %rcx
incq %rcx
xorl %edx, %edx
xorl %esi, %esi
movq %rbx, %r11
movq %rbp, %rbx
movq 0x30(%rsp), %rbp
cmpb $-0x1, (%r14,%rdx)
je 0x1b5394
movq %rsi, %r8
movq 0x28(%r12), %rdi
addq (%r15,%rdx,8), %rdi
movq 0x8(%r15,%rdx,8), %rsi
movq %rdi, 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), %r8
cmpq %rdi, %r8
jle 0x1b4c81
movq %r8, 0x8(%r15,%rdx,8)
movq %r8, %rdi
movq 0x28(%r12), %r8
addq %rsi, %r8
cmpq %rdi, %r8
jle 0x1b4c96
movq %r8, 0x8(%r15,%rdx,8)
movq %r8, %rdi
testq %rdi, %rdi
js 0x1b4cac
cmpq %r11, %rdi
jle 0x1b4cb5
leaq 0x1(%rdx), %rbx
movq %rcx, %rbp
movq %rdi, %r11
jmp 0x1b4cb5
movq $0x0, 0x8(%r15,%rdx,8)
leaq (%r14,%rdx), %rdi
incq %rdi
incq %rdx
cmpq %r13, %rdi
jb 0x1b4c34
jmp 0x1b4cd5
movq %rbx, %r11
movq %rbp, %rbx
movq 0x30(%rsp), %rbp
movq %rbp, 0x30(%rsp)
movq 0x8(%rsp), %rsi
incq %rsi
cmpq 0x28(%rsp), %rsi
jne 0x1b4bee
cmpq 0x38(%r12), %r11
movq (%rsp), %r15
jl 0x1b5369
movq 0x40(%r12), %rdi
movq 0x30(%rsp), %rbp
addq %r15, %rbp
testq %rbx, %rbx
jns 0x1b4d26
jmp 0x1b4d8c
cmpq $0x0, 0x38(%r12)
jg 0x1b5369
movq 0x40(%r12), %rdi
xorl %ebx, %ebx
xorl %r11d, %r11d
movq %rdi, 0x58(%rsp)
leaq (%rbx,%rbx,2), %rax
leaq (%rdi,%rax,8), %rcx
incq %rcx
leaq 0x18(%rdi), %rax
cmpq %rax, %rcx
cmovaq %rcx, %rax
addq $-0x18, %rax
xorl %ecx, %ecx
subq %rdi, %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
xorl %esi, %esi
movq %rbx, %r15
movq %r11, %rbx
callq 0x173a0
movq 0x58(%rsp), %rdi
movq %rbx, %r11
movq %r15, %rbx
movq (%rsp), %r15
cmpq %r15, %rbp
jbe 0x1b4fa2
leaq (%r14,%rbx), %rcx
movq %rcx, 0x70(%rsp)
movq %rdi, 0x58(%rsp)
leaq 0x28(%rdi), %rcx
movq %rcx, 0xb0(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x40(%rsp)
movq %r11, 0x50(%rsp)
movq %rbx, 0xb8(%rsp)
movq %rbp, 0x30(%rsp)
movq 0x48(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xe7bbc
movb %al, 0x28(%rsp)
cmpb $-0x1, %al
je 0x1b53ad
movq %r15, 0x90(%rsp)
testq %rbx, %rbx
xorps %xmm0, %xmm0
jle 0x1b4f7a
movq 0x58(%rsp), %rax
movq 0x10(%rax), %r8
movq (%rax), %rbx
movq 0x8(%rax), %rbp
movq 0x90(%rsp), %rax
incq %rax
movq %rax, 0x68(%rsp)
movq 0xb0(%rsp), %rdx
xorl %esi, %esi
movq %rbx, %rax
cmpb $-0x1, (%r14,%rsi)
je 0x1b5399
movq %rbp, %rcx
movq %rax, %r10
movq -0x10(%rdx), %rax
movq %rax, 0x8(%rsp)
movq -0x8(%rdx), %rbp
movq (%rdx), %r15
movq 0x28(%r12), %r9
addq %r9, %rbx
movq %rbx, -0x10(%rdx)
movq -0x20(%rdx), %rdi
movq -0x18(%rdx), %r11
incq %rdi
movq %rdi, -0x8(%rdx)
movq %r11, (%rdx)
movq %r14, %r13
movb (%r14,%rsi), %r14b
cmpb 0x28(%rsp), %r14b
movq %r12, %rax
setne %r12b
cmpb $-0x2, %r14b
setae %r14b
orb %r12b, %r14b
movq %rax, %r12
movzbl %r14b, %r14d
addq 0x10(%rax,%r14,8), %r10
cmpq %rbx, %r10
jle 0x1b4ed2
movq %r10, -0x10(%rdx)
incq %rcx
movq %rcx, -0x8(%rdx)
incq %r8
movq %r8, (%rdx)
movq %r8, %r11
movq %rcx, %rdi
movq %r10, %rbx
movq 0x8(%rsp), %rax
addq %rax, %r9
cmpq %rbx, %r9
movq %r15, %r8
jle 0x1b4ef7
movq %r9, -0x10(%rdx)
movq %rbp, -0x8(%rdx)
leaq 0x1(%r8), %r11
movq %r11, (%rdx)
movq %rbp, %rdi
movq %r9, %rbx
testq %rbx, %rbx
movq %r13, %r14
js 0x1b4f44
cmpq 0x40(%rsp), %rbx
movq 0x78(%rsp), %r13
jle 0x1b4f5a
movq %rsi, %rax
subq %rdi, %rax
incq %rax
movq %rax, 0x20(%rsp)
movq (%rsp), %rax
leaq (%rax,%r11), %rcx
movq 0x68(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rax
movq %rdi, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq %rbx, 0x40(%rsp)
jmp 0x1b4f5a
leaq -0x10(%rdx), %rcx
movups %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
xorl %ebx, %ebx
movq 0x78(%rsp), %r13
leaq (%r14,%rsi), %rcx
incq %rcx
incq %rsi
addq $0x18, %rdx
cmpq 0x70(%rsp), %rcx
movq 0x50(%rsp), %r11
jb 0x1b4e4a
jmp 0x1b4f7f
movq 0x50(%rsp), %r11
movq 0x90(%rsp), %r15
incq %r15
movq 0x30(%rsp), %rbp
cmpq %rbp, %r15
movq 0xb8(%rsp), %rbx
jne 0x1b4dee
jmp 0x1b4fcf
movq $0x0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x40(%rsp)
cmpq %r11, 0x40(%rsp)
jne 0x1b53bc
movb $0x0, 0xc0(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x18(%rsp), %rcx
movq %rcx, 0xd8(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xf0(%rsp)
testq %r11, %r11
js 0x1b53b7
movq %r11, 0xf8(%rsp)
cmpb $0x1, (%r12)
jne 0x1b50ba
movq 0x10(%rsp), %rax
incq %rax
leaq 0x1(%rcx), %rbx
imulq %rax, %rbx
cmpq %rbx, 0x58(%r12)
jae 0x1b5078
movq %rbx, 0x58(%r12)
movq 0x68(%r12), %rdi
movq %rbx, %rsi
leaq 0x1f3134(%rip), %rdx    # 0x3a819d
movl $0x189, %ecx            # imm = 0x189
callq 0x104461
movq %rax, 0x68(%r12)
movq 0x8(%r12), %rdi
callq 0x120f84
movq 0x18(%rsp), %rsi
cmpq %rsi, 0x60(%r12)
movq %rbx, 0x40(%rsp)
jae 0x1b50d5
movq %rsi, 0x60(%r12)
movq 0x48(%r12), %rdi
leaq 0x1f30f9(%rip), %rdx    # 0x3a819d
movl $0x192, %ecx            # imm = 0x192
callq 0x104461
movq %rax, 0x8(%rsp)
movq %rax, 0x48(%r12)
jmp 0x1b50df
movq $0x0, 0xe0(%rsp)
leaq 0x100(%rsp), %rax
xorl %ecx, %ecx
jmp 0x1b5354
movq 0x48(%r12), %rax
movq %rax, 0x8(%rsp)
movq (%rsp), %rsi
movq 0x8(%r12), %r15
movq 0x30(%r12), %rdx
movq 0x68(%r12), %rcx
movq 0x38(%r12), %rax
movq %rax, 0x68(%rsp)
movq 0x20(%rsp), %rax
addq %r14, %rax
movb $0x0, (%rcx)
movq $0x0, (%rdx)
movq %rdx, 0x28(%rsp)
leaq 0x8(%rdx), %rdi
movq 0x10(%rsp), %rdx
leaq (%rax,%rdx), %rbx
movq %rcx, (%rsp)
leaq 0x1(%rcx), %r13
movq %rax, 0x20(%rsp)
movq %rdi, 0x70(%rsp)
movq %rdi, %rcx
testq %rdx, %rdx
jle 0x1b515a
movq 0x28(%r12), %rdx
addq -0x8(%rcx), %rdx
movq %rdx, (%rcx)
movb $0x2, (%r13)
addq $0x8, %rcx
incq %rax
incq %r13
cmpq %rbx, %rax
jb 0x1b513a
movq 0x38(%rsp), %rax
addq %rsi, %rax
movq 0x18(%rsp), %rcx
addq %rax, %rcx
movq %rax, %rsi
movq %rax, 0x38(%rsp)
movq %rcx, 0x50(%rsp)
cmpq %rcx, %rax
jae 0x1b5266
movq 0x48(%rsp), %rdi
movq %rsi, %rbp
xorl %edx, %edx
callq 0xe7bbc
cmpb $-0x1, %al
je 0x1b53b2
movq 0x28(%rsp), %rsi
movq (%rsi), %r8
movq 0x28(%r12), %rdx
addq %r8, %rdx
leaq 0x1(%r13), %rcx
movq %rdx, (%rsi)
movb $0x4, (%r13)
cmpq $0x0, 0x10(%rsp)
jle 0x1b5252
movq 0x20(%rsp), %rdx
movq 0x70(%rsp), %rsi
cmpb $-0x1, (%rdx)
je 0x1b539e
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
movq (%rsi), %r9
cmpq %r9, %r8
jl 0x1b521d
sete %r9b
addb %r9b, %r9b
incb %r9b
movb %r9b, (%rcx)
movq %r8, (%rsi)
movq %r8, %r9
movq 0x28(%r12), %r8
addq %rdi, %r8
cmpq %r9, %r8
jl 0x1b523c
movb $0x4, %r9b
jne 0x1b5236
movb (%rcx), %r9b
orb $0x4, %r9b
movb %r9b, (%rcx)
movq %r8, (%rsi)
addq $0x8, %rsi
incq %rdx
incq %rcx
movq %rdi, %r8
cmpq %rbx, %rdx
jb 0x1b51c9
movq %rbp, %rsi
incq %rsi
movq %rcx, %r13
cmpq 0x50(%rsp), %rsi
jne 0x1b5180
movq 0x40(%rsp), %rax
movq (%rsp), %rcx
leaq (%rcx,%rax), %rbx
decq %rbx
movq $-0x2, %rbp
movq 0x10(%rsp), %rax
subq %rax, %rbp
notq %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rsp), %r13
movzbl (%rbx), %eax
movq %r15, %rdi
testb $0x2, %al
je 0x1b52a6
callq 0x120f4a
decq %rbx
jmp 0x1b5292
testb $0x1, %al
jne 0x1b52ba
testb $0x4, %al
je 0x1b52ef
callq 0x120f67
movq 0x28(%rsp), %rax
jmp 0x1b52c2
callq 0x120f2d
movq %rbp, %rax
subq $0x1, %r13
jb 0x1b53a8
addq %rax, %rbx
movq 0x38(%rsp), %rax
leaq (%rax,%r13), %rsi
movq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0xe7bbc
movq 0x8(%rsp), %rcx
movb %al, (%rcx,%r13)
jmp 0x1b5292
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x120e01
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
movq 0x28(%r12), %r8
movq %r15, %rdi
xorl %esi, %esi
callq 0x1211ad
testq %rax, %rax
js 0x1b53c1
cmpq 0x68(%rsp), %rax
jb 0x1b53c1
movq 0x8(%r12), %rax
movq %rax, 0x100(%rsp)
movq 0x48(%r12), %rcx
leaq 0xe0(%rsp), %rax
movq 0x78(%rsp), %r13
movq %rcx, (%rax)
movq 0x78(%r12), %rdi
leaq 0xc0(%rsp), %rsi
callq *0x70(%r12)
movq 0x88(%rsp), %rbp
incq %rbp
cmpq 0xa8(%rsp), %rbp
jne 0x1b4afa
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x65e6d
callq 0x65dfb
callq 0x65d89
callq 0x65ea4
callq 0x65d2c
callq 0x65e34
callq 0x65dc2
callq 0x65cf3
callq 0x65cba
movq %rax, %rdi
callq 0x65d65