// File: /workspace/github_cpp_makefile_star2_O1/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 0x155ce
movq %rbx, %rdi
callq 0x15b64
movq 0x8(%r12), %rdx
testq %rdx, %rdx
je 0x1549e
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x6486
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x15c20
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1549e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x154e7
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x6486
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x1637c
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x154ef
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x154ef
movq %rbx, %rdi
callq 0x167fc
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x15532
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x6486
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1e92a
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1553a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x1553a
movq %rbx, %rdi
callq 0x1edaa
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1558e
movq 0x10(%rsp), %rsi
jmp 0x15581
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x1558e
movq 0x30(%rsp), %rsi
jmp 0x15581
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1558e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x1558e
movq %rax, %r14
leaq 0xa8(%rbx), %rdi
leaq 0x78(%rbx), %r15
leaq 0x48(%rbx), %r12
leaq 0x18(%rbx), %r13
callq 0x1fdfa
movq %r15, %rdi
callq 0x1fdfa
movq %r12, %rdi
callq 0x1fdfa
movq %r13, %rdi
callq 0x1fdfa
movq %rbx, %rdi
callq 0x6420
movq %r14, %rdi
callq 0x4550