// File: /workspace/github_cpp_makefile_star2_O3/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 0x4080b(%rip), %rdx     # 0xb9a30
movb (%rdx), %sil
testb %sil, %sil
je 0x79241
xorl %ecx, %ecx
cmpb %al, %sil
je 0x7926a
movb 0x1(%rdx,%rcx), %sil
incq %rcx
testb %sil, %sil
jne 0x7922f
movq 0x40998(%rip), %rdx     # 0xb9be0
movl $0x14, %ecx
cmpb %bl, (%rdx)
je 0x7926a
movq 0x40998(%rip), %rdi     # 0xb9bf0
movsbl %al, %esi
callq 0xb230
movl $0x15, %ecx
testq %rax, %rax
je 0x7927f
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 0x79317
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1edb3(%rip), %rsi     # 0x98052
leaq 0x1edbc(%rip), %rdx     # 0x98062
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0xd7c, %esi            # imm = 0xD7C
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x19ee8(%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 0x79321
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7932e
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 0x1f7f0(%rip), %rsi     # 0x98b47
leaq 0x1f804(%rip), %rdx     # 0x98b62
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x1a542(%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 0x7939b
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x793a8
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 0x1a653(%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 0x7940b
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x79418
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 %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x79458
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x79458
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7947e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7947e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x7949a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7949a
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x794b6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x794b6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x794d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x794d2
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x794f8
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x794f8
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7951e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7951e
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x7953b
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rdi
callq 0xba60