// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::wild2nucleotides(char, bool*)
uchar wild2nucleotides (char wildNucleotide,
              		      bool acgtb [5])
{
  bool& a = acgtb [0];
  bool& c = acgtb [1];
  bool& g = acgtb [2];
  bool& t = acgtb [3];
  a = false;
  c = false;
  g = false;
  t = false;

  // acgtb[4]
  if (wildNucleotide == ' ')
  {
    acgtb [4] = false;
    return 0;
  }
  if (wildNucleotide == '-')
  {
    acgtb [4] = true;
    return 1;
  }
  acgtb [4] = isUpper (wildNucleotide);
  
  switch (toLower (wildNucleotide))
    {
      case 'a': a = true;
      Case 'c':           c = true;
      Case 'g':                     g = true;
      Case 't':                               t = true;
      Case 'm': a = true; c = true;
      Case 'r': a = true;           g = true;
      Case 'w': a = true;                     t = true;
      Case 's':           c = true; g = true;
      Case 'y':           c = true;           t = true;
      Case 'k':                     g = true; t = true;
      Case 'v': a = true; c = true; g = true;
      Case 'h': a = true; c = true;           t = true;
      Case 'd': a = true;           g = true; t = true;
      Case 'b':           c = true; g = true; t = true;
      Case 'n': a = true; c = true; g = true; t = true;
      Default: printf ("!%c! %d\n", wildNucleotide, wildNucleotide);
               ERROR;
    }


  uchar n = 0;
  FOR (uchar, i, 5)
    if (acgtb [i])
      n++;
  ASSERT (n > 0);


  return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
movl $0x0, (%rsi)
cmpl $0x20, %edi
je 0x6d3c4
movl %edi, %ebp
cmpl $0x2d, %edi
jne 0x6d3d0
movb $0x1, %r14b
jmp 0x6d3c7
xorl %r14d, %r14d
movb %r14b, 0x4(%rbx)
jmp 0x6d488
movl %ebp, %edi
callq 0xbab0
cmpb %bpl, %al
sete 0x4(%rbx)
movl %ebp, %edi
callq 0xb840
movzbl %al, %eax
addl $-0x61, %eax
cmpl $0x18, %eax
ja 0x6d53c
leaq 0x2aa3d(%rip), %rcx     # 0x97e38
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, (%rbx)
jmp 0x6d466
movw $0x101, 0x1(%rbx)       # imm = 0x101
jmp 0x6d466
movl $0x1010101, (%rbx)      # imm = 0x1010101
jmp 0x6d466
movw $0x101, (%rbx)          # imm = 0x101
movb $0x1, 0x2(%rbx)
jmp 0x6d466
movb $0x1, %al
movb %al, (%rbx)
movb %al, 0x2(%rbx)
jmp 0x6d466
movw $0x101, (%rbx)          # imm = 0x101
jmp 0x6d466
movb $0x1, %al
movb %al, (%rbx)
jmp 0x6d43f
movb $0x1, %al
movb %al, 0x1(%rbx)
movb %al, 0x3(%rbx)
jmp 0x6d466
movb $0x1, (%rbx)
movw $0x101, 0x2(%rbx)       # imm = 0x101
jmp 0x6d466
movw $0x101, 0x1(%rbx)       # imm = 0x101
jmp 0x6d45c
movw $0x101, (%rbx)          # imm = 0x101
movb $0x1, 0x3(%rbx)
jmp 0x6d466
movb $0x1, 0x1(%rbx)
xorl %eax, %eax
xorl %r14d, %r14d
addb (%rbx,%rax), %r14b
incq %rax
cmpq $0x5, %rax
jne 0x6d46b
callq 0xb070
movl $0x0, (%rax)
testb %r14b, %r14b
je 0x6d49d
movl %r14d, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x6d5ed
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2ab95(%rip), %rsi     # 0x98052
leaq 0x2ab9e(%rip), %rdx     # 0x98062
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x3a7, %esi            # imm = 0x3A7
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x25cca(%rip), %rsi     # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6d5f7
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6d604
leaq 0x2ad4e(%rip), %rdi     # 0x98291
movl %ebp, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0xb080
callq 0xb6b0
testl %eax, %eax
jne 0x6d5ed
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2aae4(%rip), %rsi     # 0x98052
leaq 0x2aaed(%rip), %rdx     # 0x98062
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x39f, %esi            # imm = 0x39F
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x25c19(%rip), %rsi     # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6d6e8
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6d6f5
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2ac6d(%rip), %rsi     # 0x9829a
leaq 0x2ac92(%rip), %rdx     # 0x982c6
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x2626c(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6d671
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6d67e
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe10a
leaq 0x2b960(%rip), %rsi     # 0x99013
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6d762
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6d76f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2ab7c(%rip), %rsi     # 0x9829a
leaq 0x2aba1(%rip), %rdx     # 0x982c6
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x2617b(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6d790
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6d79d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe10a
leaq 0x26809(%rip), %rsi     # 0x93fdb
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6d800
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6d80d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
jmp 0x6d83b
jmp 0x6d857
jmp 0x6d87f
jmp 0x6d89d
jmp 0x6d8bb
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6d85a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d85a
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d882
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d882
jmp 0x6d8d9
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x6d8a0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d8a0
jmp 0x6d8ff
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x6d8be
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d8be
jmp 0x6d925
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6d8dc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d8dc
jmp 0x6d947
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d902
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d902
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d928
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d928
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x6d94a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d94a
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60