// File: /workspace/github_cpp_makefile_star2_O1/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 0x6d514
movl %edi, %ebp
cmpl $0x2d, %edi
jne 0x6d520
movb $0x1, %r14b
jmp 0x6d517
xorl %r14d, %r14d
movb %r14b, 0x4(%rbx)
jmp 0x6d5d8
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 0x6d68c
leaq 0x2a8fd(%rip), %rcx     # 0x97e48
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, (%rbx)
jmp 0x6d5b6
movw $0x101, 0x1(%rbx)       # imm = 0x101
jmp 0x6d5b6
movl $0x1010101, (%rbx)      # imm = 0x1010101
jmp 0x6d5b6
movw $0x101, (%rbx)          # imm = 0x101
movb $0x1, 0x2(%rbx)
jmp 0x6d5b6
movb $0x1, %al
movb %al, (%rbx)
movb %al, 0x2(%rbx)
jmp 0x6d5b6
movw $0x101, (%rbx)          # imm = 0x101
jmp 0x6d5b6
movb $0x1, %al
movb %al, (%rbx)
jmp 0x6d58f
movb $0x1, %al
movb %al, 0x1(%rbx)
movb %al, 0x3(%rbx)
jmp 0x6d5b6
movb $0x1, (%rbx)
movw $0x101, 0x2(%rbx)       # imm = 0x101
jmp 0x6d5b6
movw $0x101, 0x1(%rbx)       # imm = 0x101
jmp 0x6d5ac
movw $0x101, (%rbx)          # imm = 0x101
movb $0x1, 0x3(%rbx)
jmp 0x6d5b6
movb $0x1, 0x1(%rbx)
xorl %eax, %eax
xorl %r14d, %r14d
addb (%rbx,%rax), %r14b
incq %rax
cmpq $0x5, %rax
jne 0x6d5bb
callq 0xb070
movl $0x0, (%rax)
testb %r14b, %r14b
je 0x6d5ed
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 0x6d73d
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2aa55(%rip), %rsi     # 0x98062
leaq 0x2aa5e(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x3a7, %esi            # imm = 0x3A7
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x25b7a(%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 0x6d747
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6d754
leaq 0x2ac0e(%rip), %rdi     # 0x982a1
movl %ebp, %esi
movl %ebp, %edx
xorl %eax, %eax
callq 0xb080
callq 0xb6b0
testl %eax, %eax
jne 0x6d73d
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x2a9a4(%rip), %rsi     # 0x98062
leaq 0x2a9ad(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x39f, %esi            # imm = 0x39F
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x25ac9(%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 0x6d838
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6d845
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 0x2ab2d(%rip), %rsi     # 0x982aa
leaq 0x2ab52(%rip), %rdx     # 0x982d6
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x2611c(%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 0x6d7c1
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6d7ce
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 0xe100
leaq 0x2b820(%rip), %rsi     # 0x99023
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 0x6d8b2
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6d8bf
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 0x2aa3c(%rip), %rsi     # 0x982aa
leaq 0x2aa61(%rip), %rdx     # 0x982d6
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x2602b(%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 0x6d8e0
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6d8ed
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 0x1151b
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 0xe100
leaq 0x266cf(%rip), %rsi     # 0x93ff1
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 0x6d950
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x6d95d
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 0x1151b
jmp 0x6d98b
jmp 0x6d9a7
jmp 0x6d9cf
jmp 0x6d9ed
jmp 0x6da0b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6d9aa
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d9aa
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d9d2
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d9d2
jmp 0x6da29
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x6d9f0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6d9f0
jmp 0x6da4f
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x6da0e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6da0e
jmp 0x6da75
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6da2c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6da2c
jmp 0x6da97
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6da52
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6da52
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6da78
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6da78
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x6da9a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x6da9a
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60