// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/seq.cpp
// Function: Seq_sp::aa2num(char)
size_t aa2num (char wildAminoacid)
{
  const char c = toUpper (wildAminoacid);

  size_t i = 0;
  for (const char* a = peptideAlphabet; *a; a++)
    if (c == *a)
      return i;
    else
    	i++;
  if (wildAminoacid == *terminator)
    return 20;
  if (isAmbigAa (c))
    return 21;

  NEVER_CALL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %edi, %ebx
callq 0xbab0
movq 0x4048f(%rip), %rdx     # 0xb9a30
movb (%rdx), %sil
testb %sil, %sil
je 0x795bd
xorl %ecx, %ecx
cmpb %al, %sil
je 0x795e6
movb 0x1(%rdx,%rcx), %sil
incq %rcx
testb %sil, %sil
jne 0x795ab
movq 0x4061c(%rip), %rdx     # 0xb9be0
movl $0x14, %ecx
cmpb %bl, (%rdx)
je 0x795e6
movq 0x4061c(%rip), %rdi     # 0xb9bf0
movsbl %al, %esi
callq 0xb230
movl $0x15, %ecx
testq %rax, %rax
je 0x795fb
movq %rcx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x79693
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1ea47(%rip), %rsi     # 0x98062
leaq 0x1ea50(%rip), %rdx     # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0xd7c, %esi            # imm = 0xD7C
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x19b6c(%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 0x7969d
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x796aa
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 0x1f484(%rip), %rsi     # 0x98b57
leaq 0x1f498(%rip), %rdx     # 0x98b72
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x1a1c6(%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 0x79717
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x79724
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 0x1a2d7(%rip), %rsi     # 0x93a30
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 0x79787
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x79794
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 %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x797d4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x797d4
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x797fa
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x797fa
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x79816
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x79816
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x79832
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x79832
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7984e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7984e
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79874
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x79874
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7989a
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7989a
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x798b7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rdi
callq 0xba60