// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::Dna::findPolyNucEnd(unsigned long, char) const
size_t Dna::findPolyNucEnd (size_t windowLen,
                            char nucleotide) const
{
  ASSERT (windowLen);
  ASSERT (charInSet (nucleotide, dnaAlphabet));


  size_t lastInitStart = seq. size () > windowLen ? seq. size () - windowLen : 0;
  size_t notPolyNuc = 0;
  FOR_REV (size_t, initStart, lastInitStart)
    if (polyNucWindow (initStart, windowLen, nucleotide))
    {
    	 lastInitStart = initStart;
    	 notPolyNuc = 0;
    }
    else
    {
      notPolyNuc++;
      if ((double) notPolyNuc > (double) windowLen * 1.3)  // PAR
        break;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
callq 0xb070
movl $0x0, (%rax)
testq %r15, %r15
je 0x73a25
movq 0x4618a(%rip), %rsi     # 0xb9a20
movq %rsp, %r12
leaq 0xa0(%rsp), %rdx
movq %r12, %rdi
callq 0x40b7c
movsbl %bpl, %ebp
movq %r12, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xb760
movq %rax, %r14
movq (%r12), %rdi
leaq 0x10(%rsp), %r12
cmpq %r12, %rdi
je 0x738d7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
cmpq $-0x1, %r14
je 0x73ac4
movq 0x30(%rbx), %r12
xorl %r14d, %r14d
movq %r12, %rax
subq %r15, %rax
cmovaeq %rax, %r14
jbe 0x7398f
movq %r15, %xmm0
punpckldq 0x236eb(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x236f3(%rip), %xmm0    # 0x97000
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x24697(%rip), %xmm1    # 0x97fb8
movapd %xmm1, 0x100(%rsp)
movq %r15, %r13
cmovbq %r12, %r13
notq %r13
addq %r12, %r13
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x7303e
testb %al, %al
je 0x73956
movq %r13, %r14
xorl %r12d, %r12d
jmp 0x73985
incq %r12
movq %r12, %xmm0
punpckldq 0x2368a(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x23692(%rip), %xmm0    # 0x97000
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
ucomisd 0x100(%rsp), %xmm1
ja 0x7398b
addq $-0x1, %r13
jb 0x7393a
movq 0x30(%rbx), %r12
cmpq %r12, %r14
jae 0x73a0b
movq %r14, %r13
negq %r13
movq 0x30(%rbx), %rdx
addq %r13, %rdx
cmpq %r15, %rdx
cmovaeq %r15, %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x7303e
testb %al, %al
jne 0x739ca
incq %r14
decq %r13
cmpq %r14, %r12
jne 0x7399a
movq 0x30(%rbx), %r12
jmp 0x73a0b
cmpq 0x30(%rbx), %r14
jae 0x73a02
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movsbl (%rax,%r14), %edi
movl %ebp, %esi
callq 0x6df3c
testb %al, %al
je 0x739f4
testq %r15, %r15
movl $0x1, %r15d
je 0x739f7
jmp 0x73a20
xorl %r15d, %r15d
incq %r14
cmpq 0x30(%rbx), %r14
jb 0x739d3
jmp 0x73a05
xorl %r15d, %r15d
subq %r15, %r14
movq %r14, %r12
movq %r12, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decq %r14
jmp 0x73a08
callq 0xb6b0
testl %eax, %eax
jne 0x73b63
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2460d(%rip), %rsi     # 0x98052
leaq 0x24616(%rip), %rdx     # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x9a9, %esi            # imm = 0x9A9
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x1f742(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73b6d
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x73b7a
callq 0xb6b0
testl %eax, %eax
jne 0x73b63
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2456e(%rip), %rsi     # 0x98052
leaq 0x24577(%rip), %rdx     # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x9aa, %esi            # imm = 0x9AA
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x1f6a3(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73bee
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x73bfb
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x24be4(%rip), %rsi     # 0x98787
leaq 0x24c13(%rip), %rdx     # 0x987bd
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x1fcf6(%rip), %rsi     # 0x938b1
leaq 0x60(%rsp), %rdi
callq 0xbb10
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73c66
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x73c73
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x24b64(%rip), %rsi     # 0x98787
leaq 0x24b93(%rip), %rdx     # 0x987bd
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x1fc76(%rip), %rsi     # 0x938b1
leaq 0x60(%rsp), %rdi
callq 0xbb10
leaq 0x50(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73cd6
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x73ce3
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rsi
leaq 0x40(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xe10a
leaq 0x24b16(%rip), %rsi     # 0x987be
leaq 0xa0(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73d42
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x73d4e
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rsi
leaq 0x40(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xe10a
leaq 0x24a3e(%rip), %rsi     # 0x98756
leaq 0xa0(%rsp), %rdi
callq 0xbb10
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73d6d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x73d79
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x73db6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73db6
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73e1d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73e1d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x73df7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73df7
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73e39
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73e39
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x73e55
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73e55
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x73e64
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73e64
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
jne 0x73e6e
jmp 0x73e82
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x73e82
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73e82
jmp 0x73e7f
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x73ea0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73ea0
jmp 0x73e9d
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73ec8
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73ec8
jmp 0x73ec5
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73ef0
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73ef0
jmp 0x73eed
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x73f14
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73f14
jmp 0x73f11
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60