// File: /workspace/github_cpp_makefile_star2_O1/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 0x6dc09
movzbl %al, %eax
movl $0x16e34cf, %ecx        # imm = 0x16E34CF
btl %eax, %ecx
jae 0x6dc09
leaq 0x2a3fd(%rip), %rcx     # 0x97f86
movb (%rax,%rcx), %bl
movl %ebp, %edi
callq 0xb460
testl %eax, %eax
je 0x6dba1
movzbl %bl, %edi
callq 0xbab0
movl %eax, %ebx
callq 0xb070
movl $0x0, (%rax)
movq 0x4c01d(%rip), %rsi     # 0xb9bd0
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x40d12
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 0x6dbef
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
cmpq $-0x1, %r14
je 0x6dc60
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 0xe1a8
leaq 0x2a16d(%rip), %rsi     # 0x97d96
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0xeaf5
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xb960
xorl %ebp, %ebp
movq 0x4b39f(%rip), %rsi     # 0xb8ff0
movq 0x4b318(%rip), %rdx     # 0xb8f70
movq %r14, %rdi
callq 0xba00
callq 0xb6b0
testl %eax, %eax
jne 0x6dcf8
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2a3e2(%rip), %rsi     # 0x98062
leaq 0x2a3eb(%rip), %rdx     # 0x98072
leaq 0xa8(%rsp), %rdi
callq 0xdc76
leaq 0xc8(%rsp), %rdi
movl $0x41a, %esi            # imm = 0x41A
callq 0xe1a8
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0xe100
leaq 0x25507(%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 0x6dd02
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6dd0f
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 0x2a59d(%rip), %rsi     # 0x982d7
leaq 0x2a5c0(%rip), %rdx     # 0x98301
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0x25b5c(%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 0x6dd83
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6dd90
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 0xe100
leaq 0x2a540(%rip), %rsi     # 0x98302
leaq 0x28(%rsp), %rdi
callq 0xbb10
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6ddea
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x6ddf7
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 %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6de37
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6de37
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6de57
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6de57
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6de73
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6de73
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x6de95
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6de95
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x6deb1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6deb1
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ded7
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6ded7
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6defd
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6defd
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6df77
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6df77
movq %rax, %rbx
jmp 0x6df77
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6df47
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6df47
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6df6a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6df6a
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6df77
movq %r14, %rdi
callq 0xb440
movq %rbx, %rdi
callq 0xba60