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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %rsi, %r14
movq %rdi, 0x50(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0x4330
leaq 0xd0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x68(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rax, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
cmpq %rax, 0x8(%r14)
je 0x16672
movq (%r14), %rsi
leaq 0xe0(%rsp), %rdi
movl $0x8, %edx
callq 0x41c0
leaq 0x158(%rsp), %rdi
callq 0x40b0
testb %al, %al
je 0x166ef
movq 0xe0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x100(%rsp,%rax)
jne 0x16672
leaq (%rsp,%rax), %rdi
addq $0xe0, %rdi
addq $0x48, 0x50(%rsp)
leaq 0xc0(%rsp), %r13
leaq 0x8(%rsp), %rbp
leaq 0x98(%rsp), %r12
leaq 0x78(%rsp), %rbx
movl $0xa, %esi
callq 0x42a0
movsbl %al, %edx
leaq 0xe0(%rsp), %rdi
movq %r13, %rsi
callq 0x4570
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rbp, %rdi
leaq 0x27224(%rip), %rsi     # 0x3d6a0
leaq 0x2721e(%rip), %rdx     # 0x3d6a1
callq 0x6516
movq %r13, %rdi
movq %rbp, %rsi
leaq 0x30(%rsp), %rdx
movl $0x1, %ecx
callq 0x21b34
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x164b9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %rax
subq %r14, %rax
cmpq $0x40, %rax
jne 0x16651
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq %r12, %r15
movq %r12, %rdi
leaq 0x271b3(%rip), %rsi     # 0x3d6a0
leaq 0x271ad(%rip), %rdx     # 0x3d6a1
callq 0x6516
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21f22
leaq 0x58(%rsp), %rdi
movq %rbp, %rsi
callq 0x4370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x16530
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x16555
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %rdx
subq %r14, %rdx
sarq $0x5, %rdx
cmpq $0x1, %rdx
jbe 0x166dc
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %rbx, %r15
movq %rbx, %rdi
leaq 0x27116(%rip), %rsi     # 0x3d6a0
leaq 0x27110(%rip), %rdx     # 0x3d6a1
callq 0x6516
addq $0x20, %r14
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21f22
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x4380
movsd %xmm0, 0xb8(%rsp)
leaq 0x18(%rsp), %rax
cmpq %rax, %r14
je 0x165d8
movq 0x18(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x42e0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x165fa
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x6486
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x50(%rsp), %rdi
movq %rbp, %rsi
callq 0x2028e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x16651
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0xe0(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0xe0, %rdi
cmpl $0x0, 0x20(%rdi)
je 0x1644b
leaq 0x30(%rsp), %rdi
callq 0x6420
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x16698
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x166bd
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0xe0(%rsp), %rdi
callq 0x40c0
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25c46(%rip), %rdi     # 0x3c329
movl $0x1, %esi
xorl %eax, %eax
callq 0x4440
movq 0x3da8fa(%rip), %rdi    # 0x3f0ff0
leaq 0x26c35(%rip), %rsi     # 0x3d332
movl $0x1c, %edx
callq 0x4340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x3da8db(%rip), %rdi    # 0x3f0ff0
callq 0x4340
movq %rax, %rdi
callq 0x4150
xorl %edi, %edi
callq 0x4360
jmp 0x16799
movq %rax, %r14
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x1679c
movq 0xa8(%rsp), %rsi
jmp 0x1678f
jmp 0x16799
jmp 0x16799
jmp 0x16799
jmp 0x16799
movq %rax, %r14
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x1679c
movq 0x88(%rsp), %rsi
jmp 0x1678f
jmp 0x16778
jmp 0x16799
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1679c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x1679c
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x6420
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x167c2
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x167e7
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x42e0
leaq 0xe0(%rsp), %rdi
callq 0x40c0
movq %r14, %rdi
callq 0x4550