// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::complementaryNucleotide(char)
char complementaryNucleotide (char wildNucleotide)
{
  char r = ' ';
  switch (toLower (wildNucleotide))
  {
    case 'a': r = 't'; break;
    case 'c': r = 'g'; break;
    case 'g': r = 'c'; break;
    case 't': r = 'a'; break;
    case 'm': r = 'k'; break;
    case 'r': r = 'y'; break;
    case 'w': r = 'w'; break;
    case 's': r = 's'; break;
    case 'y': r = 'r'; break;
    case 'k': r = 'm'; break;
    case 'v': r = 'b'; break;
    case 'h': r = 'd'; break;
    case 'd': r = 'h'; break;
    case 'b': r = 'v'; break;
    case 'n': r = 'n'; break;
    default: 
    	throw runtime_error ("Bad wild nucleotide " + to_string (wildNucleotide));
  }
  if (isupper (wildNucleotide))
    r = toUpper (r);
  ASSERT (charInSet (r, extDnaAlphabet));

  return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %edi, %ebp
callq 0xb840
addb $-0x61, %al
cmpb $0x19, %al
jae 0x6dab9
movzbl %al, %eax
movl $0x16e34cf, %ecx        # imm = 0x16E34CF
btl %eax, %ecx
jae 0x6dab9
leaq 0x2a53d(%rip), %rcx     # 0x97f76
movb (%rax,%rcx), %bl
movl %ebp, %edi
callq 0xb460
testl %eax, %eax
je 0x6da51
movzbl %bl, %edi
callq 0xbab0
movl %eax, %ebx
callq 0xb070
movl $0x0, (%rax)
movq 0x4c16d(%rip), %rsi     # 0xb9bd0
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x40b7c
movsbl %bl, %esi
movq %r15, %rdi
xorl %edx, %edx
callq 0xb760
movq %rax, %r14
movq (%r15), %rdi
leaq 0x18(%rsp), %r12
cmpq %r12, %rdi
je 0x6da9f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
cmpq $-0x1, %r14
je 0x6db10
movl %ebx, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xb2d0
movq %rax, %r14
leaq 0x28(%rsp), %rdi
movl %ebp, %esi
callq 0xe1b2
leaq 0x2a2ad(%rip), %rsi     # 0x97d86
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0xeb12
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xb960
xorl %ebp, %ebp
movq 0x4b4ef(%rip), %rsi     # 0xb8ff0
movq 0x4b468(%rip), %rdx     # 0xb8f70
movq %r14, %rdi
callq 0xba00
callq 0xb6b0
testl %eax, %eax
jne 0x6dba8
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2a522(%rip), %rsi     # 0x98052
leaq 0x2a52b(%rip), %rdx     # 0x98062
leaq 0xa8(%rsp), %rdi
callq 0xdc76
leaq 0xc8(%rsp), %rdi
movl $0x41a, %esi            # imm = 0x41A
callq 0xe1b2
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0xe10a
leaq 0x25657(%rip), %rsi     # 0x931d1
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6dbb2
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6dbbf
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2a6dd(%rip), %rsi     # 0x982c7
leaq 0x2a700(%rip), %rdx     # 0x982f1
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0x25cac(%rip), %rsi     # 0x938b1
leaq 0x88(%rsp), %rdi
callq 0xbb10
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6dc33
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6dc40
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rsi
leaq 0x68(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xe10a
leaq 0x2a680(%rip), %rsi     # 0x982f2
leaq 0x28(%rsp), %rdi
callq 0xbb10
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6dc9a
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x6dca7
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 0x1155a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6dce7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6dce7
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dd07
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6dd07
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6dd23
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6dd23
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x6dd45
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6dd45
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x6dd61
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6dd61
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dd87
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6dd87
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ddad
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6ddad
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6de40
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6de40
movq %rax, %rbx
jmp 0x6de40
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ddf3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6de0e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
testb %bpl, %bpl
jne 0x6de38
jmp 0x6de40
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6de38
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6de38
movq %rax, %rbx
movq %r14, %rdi
callq 0xb440
movq %rbx, %rdi
callq 0xba60