// File: /workspace/github_cpp_makefile_star2_O2/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 $0x128, %rsp            # imm = 0x128
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
callq 0xc070
andl $0x0, (%rax)
testq %r15, %r15
je 0x4c7e0
movq 0x3d3d5(%rip), %rsi     # 0x89a50
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xdbbe
movsbl %bpl, %edi
movl %edi, 0xc(%rsp)
movq %r14, %rsi
callq 0x2a35c
movl %eax, %r12d
movq %r14, %rdi
callq 0xcbe8
testb %r12b, %r12b
je 0x4c8b4
movq 0x30(%rbx), %rax
xorl %r14d, %r14d
subq %r15, %rax
cmovaeq %rax, %r14
movq %r15, %xmm0
punpckldq 0x158f4(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x158fc(%rip), %xmm0    # 0x61fd0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x16890(%rip), %xmm1    # 0x62f78
movapd %xmm1, 0x110(%rsp)
pushq $0x1
popq %rbp
movq %r14, %r13
negq %r13
leaq -0x1(%r14), %r12
movq %r13, %rax
addq %rbp, %rax
cmpq $0x1, %rax
je 0x4c759
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl 0xc(%rsp), %ecx
callq 0x4c1e8
testb %al, %al
jne 0x4c754
movq %rbp, %xmm0
punpckldq 0x15893(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1589b(%rip), %xmm0    # 0x61fd0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
incq %rbp
decq %r12
ucomisd 0x110(%rsp), %xmm1
jbe 0x4c6fe
jmp 0x4c759
movq %r12, %r14
jmp 0x4c6f1
movq 0x30(%rbx), %r12
movl 0xc(%rsp), %ebp
movq 0x30(%rbx), %rdx
cmpq %r12, %r14
jae 0x4c7cb
addq %r13, %rdx
cmpq %r15, %rdx
cmovaeq %r15, %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x4c1e8
testb %al, %al
jne 0x4c78d
incq %r14
decq %r13
jmp 0x4c761
xorl %r15d, %r15d
pushq $0x1
popq %r12
cmpq 0x30(%rbx), %r14
jae 0x4c7c0
movq 0x28(%rbx), %rax
movsbl (%rax,%r14), %edi
movl %ebp, %esi
callq 0x49346
testb %al, %al
je 0x4c7b8
testq %r15, %r15
movq %r12, %r15
je 0x4c7bb
jmp 0x4c7c5
xorl %r15d, %r15d
incq %r14
jmp 0x4c794
subq %r15, %r14
jmp 0x4c7c8
decq %r14
movq %r14, %rdx
movq %rdx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xc6d0
testl %eax, %eax
jne 0x4c988
leaq 0x1681e(%rip), %rsi     # 0x63012
leaq 0xb0(%rsp), %rdi
leaq 0xb(%rsp), %rdx
callq 0xdbbe
leaq 0x90(%rsp), %rdi
movl $0x9a9, %esi            # imm = 0x9A9
callq 0xe2d5
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0xe26e
leaq 0x11995(%rip), %rdx     # 0x5e1d1
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xe24f
leaq 0x16f00(%rip), %rsi     # 0x63758
leaq 0x50(%rsp), %rdi
leaq 0xa(%rsp), %rdx
callq 0xdbbe
leaq 0x1205e(%rip), %rdx     # 0x5e8cc
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe24f
leaq 0x10(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0x16ef4(%rip), %rdx     # 0x6378f
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe24f
leaq 0x30(%rsp), %rdi
callq 0x101d0
callq 0xc6d0
testl %eax, %eax
jne 0x4c988
leaq 0x1674a(%rip), %rsi     # 0x63012
leaq 0xb0(%rsp), %rdi
leaq 0xb(%rsp), %rdx
callq 0xdbbe
leaq 0x90(%rsp), %rdi
movl $0x9aa, %esi            # imm = 0x9AA
callq 0xe2d5
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0xe26e
leaq 0x118c1(%rip), %rdx     # 0x5e1d1
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xe24f
leaq 0x16e2c(%rip), %rsi     # 0x63758
leaq 0x50(%rsp), %rdi
leaq 0xa(%rsp), %rdx
callq 0xdbbe
leaq 0x11f8a(%rip), %rdx     # 0x5e8cc
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe24f
leaq 0x10(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0x16db8(%rip), %rdx     # 0x63727
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe24f
leaq 0x30(%rsp), %rdi
callq 0x101d0
pushq $0x1
popq %rdi
callq 0xc6f0
jmp 0x4c994
jmp 0x4c9a3
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xcbe8
jmp 0x4c9a6
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xcbe8
jmp 0x4c9b7
jmp 0x4c9b4
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xcbe8
jmp 0x4c9c8
jmp 0x4c9c5
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xcbe8
jmp 0x4c9d9
jmp 0x4c9d6
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xcbe8
jmp 0x4c9ed
jmp 0x4c9ea
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xcbe8
jmp 0x4ca01
jmp 0x4c9fe
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xcbe8
jmp 0x4ca15
jmp 0x4ca12
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xcbe8
jmp 0x4ca29
jmp 0x4ca26
movq %rax, %rbx
movq %rbx, %rdi
callq 0xcaa0
nop