// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x0, (%rax)
cmpq %r14, 0x30(%r15)
jb 0x732e1
movq %rax, %r12
movl $0x0, (%rax)
movq 0x4684b(%rip), %rsi     # 0xb9a20
leaq 0x8(%rsp), %r13
leaq 0xa8(%rsp), %rdx
movq %r13, %rdi
callq 0x40d12
movsbl %bpl, %ebp
movq %r13, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xb760
movq %rax, %r13
leaq 0x8(%rsp), %rax
movq (%rax), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7321c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
cmpq $-0x1, %r13
je 0x73380
addq %r14, %rbx
movq 0x30(%r15), %rax
cmpq %rbx, %rax
cmovbq %rax, %rbx
movl $0x0, (%r12)
cmpq %r14, %rbx
jb 0x7341f
movq %rbx, %r12
subq %r14, %r12
jne 0x73251
xorl %eax, %eax
jmp 0x732cf
xorpd %xmm0, %xmm0
jbe 0x7329b
xorl %r13d, %r13d
movq 0x28(%r15), %rax
movsbl (%rax,%r14), %edi
movl %ebp, %esi
callq 0x6e073
xorb $0x1, %al
movzbl %al, %eax
addq %rax, %r13
incq %r14
cmpq %r14, %rbx
jne 0x7325a
movq %r13, %xmm1
punpckldq 0x23d79(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x23d81(%rip), %xmm1    # 0x97010
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r12, %xmm1
punpckldq 0x23d58(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x23d60(%rip), %xmm1    # 0x97010
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movsd 0x24cf8(%rip), %xmm1    # 0x97fc0
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 0x734be
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x24d61(%rip), %rsi     # 0x98062
leaq 0x24d6a(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xc8(%rsp), %rdi
movl $0x994, %esi            # imm = 0x994
callq 0xe1a8
leaq 0xe8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0xe100
leaq 0x1fe86(%rip), %rsi     # 0x931d1
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x734c8
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x734d5
callq 0xb6b0
testl %eax, %eax
jne 0x734be
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x24cc2(%rip), %rsi     # 0x98062
leaq 0x24ccb(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xc8(%rsp), %rdi
movl $0x995, %esi            # imm = 0x995
callq 0xe1a8
leaq 0xe8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0xe100
leaq 0x1fde7(%rip), %rsi     # 0x931d1
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x73549
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x73556
callq 0xb6b0
testl %eax, %eax
jne 0x734be
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x24c23(%rip), %rsi     # 0x98062
leaq 0x24c2c(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xc8(%rsp), %rdi
movl $0x998, %esi            # imm = 0x998
callq 0xe1a8
leaq 0xe8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0xe100
leaq 0x1fd48(%rip), %rsi     # 0x931d1
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x735ca
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x735d7
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x25216(%rip), %rsi     # 0x98714
leaq 0x2524a(%rip), %rdx     # 0x9874f
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x2039b(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7364b
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x73658
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x25195(%rip), %rsi     # 0x98714
leaq 0x251c9(%rip), %rdx     # 0x9874f
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x2031a(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x736c2
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x736cf
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x25114(%rip), %rsi     # 0x98714
leaq 0x25148(%rip), %rdx     # 0x9874f
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x20299(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7373e
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x7374b
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe100
leaq 0x250c3(%rip), %rsi     # 0x98750
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x737b3
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x737c0
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe100
leaq 0x25062(%rip), %rsi     # 0x98766
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x737e1
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x737ee
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe100
leaq 0x2500a(%rip), %rsi     # 0x9878a
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7380f
movups (%rcx), %xmm0
leaq 0x18(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x7381c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
jmp 0x73841
jmp 0x73873
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
jne 0x73864
jmp 0x73876
jmp 0x73873
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x73876
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73876
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x738a0
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x738a0
jmp 0x7389d
jmp 0x7389d
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x738c0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x738c0
jmp 0x738bd
jmp 0x738bd
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x738e0
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x738e0
jmp 0x738dd
jmp 0x738dd
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x73900
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73900
jmp 0x738fd
jmp 0x738fd
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7392a
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7392a
jmp 0x73927
jmp 0x73927
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73954
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x73954
jmp 0x73951
jmp 0x73951
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x7397a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7397a
jmp 0x73977
jmp 0x73977
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60