// File: /workspace/github_cpp_makefile_star2_O2/atfrank[P]PCASA/lib/CASA.cpp
// Function: CASA::loadRefFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void CASA::loadRefFile(const std::string freffile)
{
	std::ifstream refFile;
	std::istream* refinp;
	std::string line, key;
	std::vector<std::string> s;
	double refsasa;
	if (freffile.length() > 0){
		refFile.open(freffile.c_str(), std::ios::in);
		refinp=&refFile;
		if (refFile.is_open()) {
			while (refinp->good() && !(refinp->eof()))
			{
				getline(*refinp, line);
				Misc::splitStr(line, " ", s, true);
				if (s.size() ==  2){
					key = Misc::trim(s.at(0));				
					refsasa = atof(Misc::trim(s.at(1)).c_str());
					this->refSASA.insert(std::pair<std::string,double>(key,refsasa));	
				}
			}
		}
		else {
			std::cerr << "Error: Unable to open file: " << freffile << std::endl;	
			exit(0);		                
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0x4360
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
andq $0x0, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
cmpq %rcx, 0x8(%rbx)
je 0x16409
movq (%rbx), %rsi
leaq 0xe0(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x41e0
leaq 0x158(%rsp), %rdi
callq 0x40b0
testb %al, %al
je 0x16446
addq $0x18, 0x8(%rsp)
leaq 0x18305(%rip), %r12     # 0x2e5c4
leaq 0x78(%rsp), %r13
leaq 0x7(%rsp), %rbp
leaq 0x10(%rsp), %rbx
movq 0xe0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x100(%rsp,%rax)
jne 0x16409
leaq 0xe0(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x4080
movq %r13, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x58d8
leaq 0x58(%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
pushq $0x1
popq %rcx
callq 0x188fc
movq %r13, %rdi
callq 0x4170
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cmpq $0x40, %rax
jne 0x162ce
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5914
movq %rax, %r14
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x58d8
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x18be4
leaq 0x38(%rsp), %rdi
movq %r13, %rsi
callq 0x4390
movq %r13, %rdi
callq 0x4170
movq %r15, %rdi
callq 0x4170
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x5914
movq %rax, %r14
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x58d8
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x18be4
movq 0x78(%rsp), %rdi
callq 0x43a0
movsd %xmm0, 0x30(%rsp)
movq %r13, %rdi
callq 0x4170
movq %r15, %rdi
callq 0x4170
movq %r13, %rdi
leaq 0x38(%rsp), %rsi
callq 0x4430
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x174a0
movq %r13, %rdi
callq 0x4170
jmp 0x162ce
leaq 0x10(%rsp), %rdi
callq 0x59a0
leaq 0x38(%rsp), %rdi
callq 0x4170
leaq 0x58(%rsp), %rdi
callq 0x4170
leaq 0xe0(%rsp), %rdi
callq 0x40e0
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3ceba3(%rip), %rdi    # 0x3e4ff0
leaq 0x17ebe(%rip), %rsi     # 0x2e312
callq 0x4300
movq %rax, %rdi
movq %rbx, %rsi
callq 0x42c0
movq %rax, %rdi
callq 0x4180
xorl %edi, %edi
callq 0x4380
jmp 0x1649d
jmp 0x1649d
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
jmp 0x164aa
jmp 0x1649d
jmp 0x1649d
jmp 0x1649d
jmp 0x1649d
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
jmp 0x164aa
jmp 0x164a2
jmp 0x1649d
movq %rax, %rbx
jmp 0x164af
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x4170
leaq 0x10(%rsp), %rdi
callq 0x59a0
leaq 0x38(%rsp), %rdi
callq 0x4170
leaq 0x58(%rsp), %rdi
callq 0x4170
leaq 0xe0(%rsp), %rdi
callq 0x40e0
movq %rbx, %rdi
callq 0x4560