// File: /workspace/github_cpp_makefile_star2_O3/atfrank[P]PCASA/lib/CASA.cpp
// Function: CASA::CASA(Molecule*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
CASA::CASA (Molecule *mol, const std::string fparmfile, const std::string freffile, const std::string fsasa){
    this->initializeAminoAcids();        
    this->initializeHist();

    /* load SASA info from file */
    if (fsasa.length() > 0){
      this->loadSASAFile(fsasa);
    }
    /* load parameters */
    if (fparmfile.length() > 0){
      this->loadParmFile(fparmfile);
    } 
    else {
    	this->initializeSASACoef();
    }
    /* load reference SASA */
    if (freffile.length() > 0){
      this->loadRefFile(freffile);
    }
    else {
    	this->initializeRefSASA();
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x20(%rdi), %rcx
movl %eax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rcx, 0x30(%rdi)
movq %rcx, 0x38(%rdi)
movq %rax, 0x40(%rdi)
leaq 0x50(%rdi), %rcx
movl %eax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movq %rcx, 0x60(%rdi)
movq %rcx, 0x68(%rdi)
movq %rax, 0x70(%rdi)
leaq 0x80(%rdi), %rcx
movl %eax, 0x80(%rdi)
movq %rax, 0x88(%rdi)
movq %rcx, 0x90(%rdi)
movq %rcx, 0x98(%rdi)
movq %rax, 0xa0(%rdi)
leaq 0xb0(%rdi), %rcx
movl %eax, 0xb0(%rdi)
movq %rax, 0xb8(%rdi)
movq %rcx, 0xc0(%rdi)
movq %rcx, 0xc8(%rdi)
movq %rax, 0xd0(%rdi)
callq 0x1546a
movq %rbx, %rdi
callq 0x15a00
movq 0x8(%r12), %rdx
testq %rdx, %rdx
je 0x1533a
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x647c
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x15abc
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1533a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x15383
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x647c
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x16214
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x1538b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x1538b
movq %rbx, %rdi
callq 0x16694
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x153ce
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x647c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1e7c2
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x153d6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x153d6
movq %rbx, %rdi
callq 0x1ec42
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1542a
movq 0x10(%rsp), %rsi
jmp 0x1541d
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x1542a
movq 0x30(%rsp), %rsi
jmp 0x1541d
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1542a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x1542a
movq %rax, %r14
leaq 0xa8(%rbx), %rdi
leaq 0x78(%rbx), %r15
leaq 0x48(%rbx), %r12
leaq 0x18(%rbx), %r13
callq 0x1fc92
movq %r15, %rdi
callq 0x1fc92
movq %r12, %rdi
callq 0x1fc92
movq %r13, %rdi
callq 0x1fc92
movq %rbx, %rdi
callq 0x6412
movq %r14, %rdi
callq 0x4550