// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/seq.cpp
// Function: Seq_sp::SubstMat::char2score(char, char) const
AlignScore SubstMat::char2score (char c1,
                                 char c2) const
{ 
  QC_ASSERT (c1 >= '\0');
  QC_ASSERT (c2 >= '\0');
  
  if (strchr (peptideWildcards, c1))
    c1 = 'X';
  if (strchr (peptideWildcards, c2))
    c2 = 'X';

  const size_t i1 = (size_t) c1;
  const size_t i2 = (size_t) c2;
  QC_ASSERT (i1 < sim_size);
  QC_ASSERT (i2 < sim_size);

  if (   c1 == '-' 
      || c2 == '-'
     )
    return 0;
    
    
  if (! goodIndex (i1))
    throw runtime_error ("Bad amino acid: " + string (1, c1) + " (" + to_string (i1) + ")");
  if (! goodIndex (i2))
    throw runtime_error ("Bad amino acid: " + string (1, c2) + " (" + to_string (i2) + ")");
    
  const AlignScore s = sim [i1] [i2]; 
  ASSERT (s == s);
  return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
callq 0xb070
movl $0x0, (%rax)
testb %bl, %bl
js 0x7651c
movq %rax, %r12
movl $0x0, (%rax)
testb %bpl, %bpl
js 0x765ae
movzbl %bpl, %ebp
movq 0x4378e(%rip), %r13     # 0xb9bf0
movq %r13, %rdi
movl %ebx, %esi
callq 0xb230
testq %rax, %rax
movzbl %bl, %r15d
movl $0x58, %ebx
cmovnel %ebx, %r15d
movq %r13, %rdi
movl %ebp, %esi
callq 0xb230
testq %rax, %rax
cmovel %ebp, %ebx
movl $0x0, (%r12)
cmpb $0x2d, %r15b
sete %al
cmpb $0x2d, %bl
sete %cl
orb %al, %cl
xorpd %xmm0, %xmm0
jne 0x7650a
movl $0xff, %eax
andl %eax, %r15d
movl %r15d, %ecx
shll $0xa, %ecx
addq %r14, %rcx
addq $0x8, %rcx
movsd (%rcx,%r15,8), %xmm0
ucomisd %xmm0, %xmm0
jp 0x76640
andl %eax, %ebx
addq $0x8, %r14
movl %ebx, %eax
shll $0xa, %eax
addq %r14, %rax
movsd (%rax,%rbx,8), %xmm0
ucomisd %xmm0, %xmm0
jp 0x766c2
shll $0xa, %r15d
addq %r15, %r14
movsd (%r14,%rbx,8), %xmm0
movl $0x0, (%r12)
ucomisd %xmm0, %xmm0
jp 0x76743
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x767d5
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x21b29(%rip), %rsi     # 0x98062
leaq 0x21b32(%rip), %rdx     # 0x98072
leaq 0x48(%rsp), %rdi
callq 0xdc76
leaq 0x68(%rsp), %rdi
movl $0xd04, %esi            # imm = 0xD04
callq 0xe1a8
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xe100
leaq 0x1cc5a(%rip), %rsi     # 0x931d1
leaq 0x88(%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 0x768ee
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
jmp 0x768fb
callq 0xb6b0
testl %eax, %eax
jne 0x767d5
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x21a97(%rip), %rsi     # 0x98062
leaq 0x21aa0(%rip), %rdx     # 0x98072
leaq 0x48(%rsp), %rdi
callq 0xdc76
leaq 0x68(%rsp), %rdi
movl $0xd05, %esi            # imm = 0xD05
callq 0xe1a8
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xe100
leaq 0x1cbc8(%rip), %rsi     # 0x931d1
leaq 0x88(%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 0x7697d
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
jmp 0x7698a
movl $0x10, %edi
callq 0xb2d0
movq %rax, %r14
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movsbl %r15b, %edx
leaq 0x48(%rsp), %rdi
movl $0x1, %esi
callq 0xb670
leaq 0x22325(%rip), %rsi     # 0x98996
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xeaf5
leaq 0x1f0be(%rip), %rsi     # 0x95748
leaq 0x88(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x767df
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
jmp 0x767ec
movl $0x10, %edi
callq 0xb2d0
movq %rax, %r14
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movsbl %bl, %edx
leaq 0x48(%rsp), %rdi
movl $0x1, %esi
callq 0xb670
leaq 0x222a5(%rip), %rsi     # 0x98996
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xeaf5
leaq 0x1f03e(%rip), %rsi     # 0x95748
leaq 0x88(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76866
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
jmp 0x76873
callq 0xb6b0
testl %eax, %eax
jne 0x767d5
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x21902(%rip), %rsi     # 0x98062
leaq 0x2190b(%rip), %rdx     # 0x98072
leaq 0x48(%rsp), %rdi
callq 0xdc76
leaq 0x68(%rsp), %rdi
movl $0xd1d, %esi            # imm = 0xD1D
callq 0xe1a8
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xe100
leaq 0x1ca33(%rip), %rsi     # 0x931d1
leaq 0x88(%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 0x76a0c
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
jmp 0x76a19
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 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0xeb65
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xe100
leaq 0x208ca(%rip), %rsi     # 0x970f9
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76b9f
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
jmp 0x76bac
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 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0xeb65
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xe100
leaq 0x20843(%rip), %rsi     # 0x970f9
leaq 0xa8(%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 0x76bed
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
jmp 0x76bfa
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 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2201f(%rip), %rsi     # 0x98946
leaq 0x22051(%rip), %rdx     # 0x9897f
leaq 0xe8(%rsp), %rdi
callq 0xdc76
leaq 0x1cf6f(%rip), %rsi     # 0x938b1
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0xd8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76a9b
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
jmp 0x76aae
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 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x21f90(%rip), %rsi     # 0x98946
leaq 0x21fc2(%rip), %rdx     # 0x9897f
leaq 0xe8(%rsp), %rdi
callq 0xdc76
leaq 0x1cee0(%rip), %rsi     # 0x938b1
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0xd8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76b1d
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
jmp 0x76b30
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 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x21f01(%rip), %rsi     # 0x98946
leaq 0x21f33(%rip), %rdx     # 0x9897f
leaq 0xe8(%rsp), %rdi
callq 0xdc76
leaq 0x1ce51(%rip), %rsi     # 0x938b1
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0xd8(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76c39
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
jmp 0x76c4c
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
movq 0x8(%rax), %rsi
leaq 0xc8(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe100
leaq 0x21e9a(%rip), %rsi     # 0x98980
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76cb4
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
jmp 0x76cc1
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
movq 0x8(%rax), %rsi
leaq 0xc8(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe100
leaq 0x21e23(%rip), %rsi     # 0x9898b
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76ce2
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
jmp 0x76cef
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r14, %rdi
callq 0xb960
xorl %ebp, %ebp
movq 0x42414(%rip), %rsi     # 0xb8ff0
movq 0x4238d(%rip), %rdx     # 0xb8f70
movq %r14, %rdi
callq 0xba00
jmp 0x76c39
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r14, %rdi
callq 0xb960
xorl %ebp, %ebp
movq 0x423c6(%rip), %rsi     # 0xb8ff0
movq 0x4233f(%rip), %rdx     # 0xb8f70
movq %r14, %rdi
callq 0xba00
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
movq 0x8(%rax), %rsi
leaq 0xc8(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe100
leaq 0x21d23(%rip), %rsi     # 0x989a7
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x76d10
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
jmp 0x76d1d
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%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), %rdx
leaq 0x28(%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), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
jmp 0x76d48
jmp 0x76d64
jmp 0x76d91
jmp 0x76d48
jmp 0x76d64
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x76d67
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76d67
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76d94
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76d94
jmp 0x76e4f
jmp 0x76d91
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r13, %rdi
je 0x76e52
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76e52
jmp 0x76ebe
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x76de1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76de1
movq %rax, %rbx
movb $0x1, %bpl
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76e7c
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76e7c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x76e2a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76e2a
movq %rax, %rbx
movb $0x1, %bpl
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76e9f
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76e9f
jmp 0x76e4f
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x76ec1
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76ec1
jmp 0x76f1f
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76ee5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76ee5
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76f04
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76f04
jmp 0x76ebe
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x76f22
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76f22
jmp 0x76f9e
movq %rax, %rbx
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x76f50
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76f50
movq %rax, %rbx
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x76f79
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76f79
jmp 0x76f1f
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76fa1
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76fa1
jmp 0x76ff3
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76fc6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76fc6
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76fd8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76fd8
jmp 0x76f9e
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x76ff6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x76ff6
jmp 0x77028
movq %rax, %rbx
movb $0x1, %bpl
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
jne 0x76fe2
jmp 0x77017
movq %rax, %rbx
movb $0x1, %bpl
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x77017
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x77017
jmp 0x76ff3
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x7702b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x7702b
jmp 0x77011
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x7702b
movq %r14, %rdi
callq 0xb440
jmp 0x7702b
jmp 0x77028
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60
nop