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

  const size_t end = min (start + windowLen, seq. size ());
  ASSERT (start <= end);
  if (start == end)
    return false;

  size_t mismatch = 0;
  FOR_START (size_t, i, start, end)
    if (! nucleotideMatch (seq [i], nucleotide))
      mismatch++;

  return (double) mismatch / (double) (end - start) <= 0.2;  // PAR
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0xb070
movq %rax, 0x100(%rsp)
movl $0x0, (%rax)
cmpq %r14, 0x30(%r15)
jb 0x7318c
movq 0x469a2(%rip), %rsi     # 0xb9a20
leaq 0x20(%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, %r13
movq (%r12), %rdi
leaq 0x30(%rsp), %r12
cmpq %r12, %rdi
je 0x730c1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
cmpq $-0x1, %r13
je 0x7322b
addq %r14, %rbx
movq 0x30(%r15), %rax
cmpq %rbx, %rax
cmovbq %rax, %rbx
movq 0x100(%rsp), %rax
movl $0x0, (%rax)
cmpq %r14, %rbx
jb 0x732ca
movq %rbx, %r12
subq %r14, %r12
jne 0x730fc
xorl %eax, %eax
jmp 0x7317a
xorpd %xmm0, %xmm0
jbe 0x73146
xorl %r13d, %r13d
movq 0x28(%r15), %rax
movsbl (%rax,%r14), %edi
movl %ebp, %esi
callq 0x6df3c
xorb $0x1, %al
movzbl %al, %eax
addq %rax, %r13
incq %r14
cmpq %r14, %rbx
jne 0x73105
movq %r13, %xmm1
punpckldq 0x23ebe(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x23ec6(%rip), %xmm1    # 0x97000
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r12, %xmm1
punpckldq 0x23e9d(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x23ea5(%rip), %xmm1    # 0x97000
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movsd 0x24e3d(%rip), %xmm1    # 0x97fb0
ucomisd %xmm0, %xmm1
setae %al
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x73369
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x24ea6(%rip), %rsi     # 0x98052
leaq 0x24eaf(%rip), %rdx     # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x994, %esi            # imm = 0x994
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x1ffdb(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73373
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7337f
callq 0xb6b0
testl %eax, %eax
jne 0x73369
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x24e07(%rip), %rsi     # 0x98052
leaq 0x24e10(%rip), %rdx     # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x995, %esi            # imm = 0x995
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x1ff3c(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x733f3
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x733ff
callq 0xb6b0
testl %eax, %eax
jne 0x73369
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x24d68(%rip), %rsi     # 0x98052
leaq 0x24d71(%rip), %rdx     # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x998, %esi            # imm = 0x998
callq 0xe1b2
leaq 0xe0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x1fe9d(%rip), %rsi     # 0x931d1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73471
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7347d
movl $0x1, %edi
callq 0xb6d0
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2535c(%rip), %rsi     # 0x98704
leaq 0x25390(%rip), %rdx     # 0x9873f
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x204f1(%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 0x734ef
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x734fc
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x252dd(%rip), %rsi     # 0x98704
leaq 0x25311(%rip), %rdx     # 0x9873f
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x20472(%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 0x73564
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x73571
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2525f(%rip), %rsi     # 0x98704
leaq 0x25293(%rip), %rdx     # 0x9873f
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x203f4(%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 0x735d6
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x735e3
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
movq %rsp, %rsi
callq 0xe10a
leaq 0x25211(%rip), %rsi     # 0x98740
leaq 0xa0(%rsp), %rdi
callq 0xbb10
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73641
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x7364e
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
movq %rsp, %rsi
callq 0xe10a
leaq 0x251b2(%rip), %rsi     # 0x98756
leaq 0xa0(%rsp), %rdi
callq 0xbb10
movq %r12, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7366f
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x7367c
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
movq %rsp, %rsi
callq 0xe10a
leaq 0x25164(%rip), %rsi     # 0x9877a
leaq 0xa0(%rsp), %rdi
callq 0xbb10
movq %r12, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7369d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x736aa
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
jmp 0x736cf
jmp 0x736eb
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x736ee
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x736ee
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73758
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73758
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x73730
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73730
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73774
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73774
jmp 0x73755
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %rbp, %rdi
je 0x73792
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73792
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x737a1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x737a1
jmp 0x7378f
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
jne 0x737ab
jmp 0x737c1
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x737c1
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x737c1
jmp 0x737be
jmp 0x737be
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x737e0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x737e0
jmp 0x737dd
jmp 0x737dd
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7380a
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7380a
jmp 0x73807
jmp 0x73807
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73834
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73834
jmp 0x73831
jmp 0x73831
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x7385a
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7385a
jmp 0x73857
jmp 0x73857
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60