// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/CASA.cpp
// Function: CASA::predictHist(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
double CASA::predictHist(const std::string &resname){
  double predSASA = 0.0;
  std::string res = "";
  std::string key = "";
  for (unsigned int i=0; i< this->aminoAcids.size(); i++){
    res = this->aminoAcids.at(i);
    key = resname+":"+res;
    predSASA += this->sasaCoef.at(key)*this->hist.at(res);
  }
  return(predSASA);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c039(%rip), %r15     # 0x3b4b6
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x6512
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x6512
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x1f636
leaq 0x98(%rsp), %r12
leaq 0x48(%r14), %rcx
movq %rcx, 0x78(%rsp)
leaq 0x78(%r14), %rcx
movq %rcx, 0x70(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movl $0x1, %r13d
xorl %esi, %esi
leaq 0x10(%rsp), %rbp
leaq 0x50(%rsp), %r15
shlq $0x5, %rsi
addq %rax, %rsi
leaq 0x30(%rsp), %rdi
callq 0x4180
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x647c
movq %rbp, %rdi
leaq 0x1bd13(%rip), %rsi     # 0x3b233
callq 0x45a0
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %rbp, %rdi
callq 0x4100
movq %r12, 0x88(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f563
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x1f56d
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
leaq 0x88(%rsp), %rsi
callq 0x4370
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f5b5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1f5d1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x78(%rsp), %rdi
movq %r15, %rsi
callq 0x1fc3e
movsd (%rax), %xmm0
movsd %xmm0, 0x80(%rsp)
movq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1fc3e
movsd 0x80(%rsp), %xmm1
mulsd (%rax), %xmm1
movsd 0x8(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %r13d, %esi
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %r13d
cmpq %rsi, %rcx
ja 0x1f4e9
jmp 0x1f640
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1f65c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1f678
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x42e0
movsd 0x8(%rsp), %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x1f6d9
jmp 0x1f6ba
jmp 0x1f699
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1f6bd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x1f6bd
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1f6d9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1f6f5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x42e0
movq %rbx, %rdi
callq 0x4550
nop