// File: /workspace/github_cpp_makefile_star2_O1/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 0x73b75
movl $0x0, (%rax)
movq 0x46064(%rip), %rsi     # 0xb9a20
movq %rsp, %r12
leaq 0xa0(%rsp), %rdx
movq %r12, %rdi
callq 0x40d12
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 0x739fd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
cmpq $-0x1, %r14
je 0x73c14
movq 0x30(%rbx), %rax
xorl %r14d, %r14d
movq %rax, %rcx
subq %r15, %rcx
cmovaeq %rcx, %r14
jbe 0x73ab1
movq %r15, %xmm0
punpckldq 0x235d5(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x235dd(%rip), %xmm0    # 0x97010
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x24581(%rip), %xmm1    # 0x97fc8
movapd %xmm1, 0x100(%rsp)
movq %r15, %r12
cmovbq %rax, %r12
notq %r12
addq %rax, %r12
xorl %r13d, %r13d
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x73194
testb %al, %al
je 0x73a7c
movq %r12, %r14
xorl %r13d, %r13d
jmp 0x73aab
incq %r13
movq %r13, %xmm0
punpckldq 0x23574(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2357c(%rip), %xmm0    # 0x97010
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
ucomisd 0x100(%rsp), %xmm1
ja 0x73ab1
addq $-0x1, %r12
jb 0x73a60
movq 0x30(%rbx), %r13
cmpq %r13, %r14
setb %r12b
jae 0x73b52
movq 0x30(%rbx), %rdx
subq %r14, %rdx
cmpq %r15, %rdx
cmovaeq %r15, %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x73194
testb %al, %al
jne 0x73b0f
incq %r14
cmpq %r13, %r14
je 0x73b4f
movq 0x30(%rbx), %rdx
subq %r14, %rdx
cmpq %r15, %rdx
cmovaeq %r15, %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x73194
testb %al, %al
je 0x73ae1
cmpq %r13, %r14
setb %r12b
cmpq 0x30(%rbx), %r14
jae 0x73b47
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movsbl (%rax,%r14), %edi
movl %ebp, %esi
callq 0x6e073
testb %al, %al
je 0x73b39
testq %r15, %r15
movl $0x1, %r15d
je 0x73b3c
jmp 0x73b70
xorl %r15d, %r15d
incq %r14
cmpq 0x30(%rbx), %r14
jb 0x73b18
jmp 0x73b4a
xorl %r15d, %r15d
subq %r15, %r14
jmp 0x73b52
xorl %r12d, %r12d
testb %r12b, %r12b
jne 0x73b5b
movq 0x30(%rbx), %r14
movq %r14, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
decq %r14
jmp 0x73b52
callq 0xb6b0
testl %eax, %eax
jne 0x73cb3
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x244cd(%rip), %rsi     # 0x98062
leaq 0x244d6(%rip), %rdx     # 0x98072
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x9a9, %esi            # imm = 0x9A9
callq 0xe1a8
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x1f5f2(%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 0x73cbd
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x73cca
callq 0xb6b0
testl %eax, %eax
jne 0x73cb3
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2442e(%rip), %rsi     # 0x98062
leaq 0x24437(%rip), %rdx     # 0x98072
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x9aa, %esi            # imm = 0x9AA
callq 0xe1a8
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x1f553(%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 0x73d3e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x73d4b
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 0x24aa4(%rip), %rsi     # 0x98797
leaq 0x24ad3(%rip), %rdx     # 0x987cd
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x1fba6(%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 0x73db6
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x73dc3
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 0x24a24(%rip), %rsi     # 0x98797
leaq 0x24a53(%rip), %rdx     # 0x987cd
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x1fb26(%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 0x73e26
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x73e33
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 0xe100
leaq 0x249d6(%rip), %rsi     # 0x987ce
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 0x73e92
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x73e9e
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 0xe100
leaq 0x248fe(%rip), %rsi     # 0x98766
leaq 0xa0(%rsp), %rdi
callq 0xbb10
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73ebd
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x73ec9
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 0x1151b
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 0x1151b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x73f06
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73f06
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73f6d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73f6d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x73f47
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73f47
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73f89
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73f89
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x73fa5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73fa5
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x73fb4
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73fb4
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
jne 0x73fbe
jmp 0x73fd2
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x73fd2
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73fd2
jmp 0x73fcf
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x73ff0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73ff0
jmp 0x73fed
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74018
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x74018
jmp 0x74015
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74040
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x74040
jmp 0x7403d
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x74064
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x74064
jmp 0x74061
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60