// File: /workspace/github_cpp_makefile_star2_O3/gjoni[P]iPot/src/rrce20.cpp
// Function: main
int main(int argc, char *argv[]) {

	/*
	 * (1) process arguments
	 */
	OPTS opts = { "", "", "", DMAX };
	if (!GetOpts(argc, argv, opts)) {
		PrintOpts("rrce20", DMAX);
		return 1;
	}

	/*
	 * (2) set potential
	 */
	RRCE RRCE_;
	if (opts.table != "") {
		RRCE_ = RRCE(opts.table.c_str(), opts.dmax);
	}

	/*
	 * (2) get RRCE energy
	 */
	double E;
	if (opts.lig == "") {
		E = RRCE_.GetEnergy(Chain(opts.rec.c_str()));
	} else {
		E = RRCE_.GetEnergy(Complex(opts.rec.c_str(), opts.lig.c_str()));
	}

	printf("E(%s)= %.5e\n", RRCE_.GetName().c_str(), E);

	return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %r14
movl %edi, %ebp
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1253(%rip), %r15      # 0x1404d
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0xa67c
leaq 0x28(%rsp), %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rbx, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0xa67c
leaq 0x48(%rsp), %r15
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1211(%rip), %rdx      # 0x1404d
movq %r15, %rdi
movq %rdx, %rsi
callq 0xa67c
movabsq $0x401f333333333333, %rax # imm = 0x401F333333333333
leaq 0x8(%rsp), %rdx
movq %rax, 0x60(%rdx)
movl %ebp, %edi
movq %r14, %rsi
callq 0xa4e7
testb %al, %al
je 0x12f17
leaq 0x70(%rsp), %rdi
callq 0xf90e
leaq 0x11d0(%rip), %rsi      # 0x1404d
movq %r15, %rdi
callq 0x20b0
testl %eax, %eax
je 0x12ec0
movq 0x48(%rsp), %rsi
movsd 0x68(%rsp), %xmm0
leaq 0xa8(%rsp), %rdi
callq 0xf87e
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xfa5a
leaq 0xa8(%rsp), %rdi
callq 0xf9ea
leaq 0x1186(%rip), %rsi      # 0x1404d
movq %rbx, %rdi
callq 0x20b0
testl %eax, %eax
je 0x12f7a
movq 0x8(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0xa8(%rsp), %rdi
callq 0x116c4
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xfc7c
movsd %xmm0, (%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x11748
jmp 0x12fb0
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xdd3e(%rip), %rsi      # 0x20c68
leaq 0xdd3d(%rip), %rdx      # 0x20c6e
leaq 0xa8(%rsp), %rdi
callq 0xa67c
leaq 0xa8(%rsp), %rdi
movsd 0xc412(%rip), %xmm0     # 0x1f360
callq 0xa47c
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x12f70
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2220
movl $0x1, %ebx
jmp 0x13006
movq 0x8(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0xa948
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xfb66
movsd %xmm0, (%rsp)
leaq 0xa8(%rsp), %rdi
callq 0xb7f0
leaq 0xa8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xfaf8
leaq 0xb8(%rsp), %rbx
movq -0x10(%rbx), %rsi
leaq 0xdc9a(%rip), %rdi      # 0x20c6f
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x2050
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x12ffa
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2220
leaq 0x70(%rsp), %rdi
callq 0xf9ea
xorl %ebx, %ebx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1301d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2220
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x13034
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2220
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x13050
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2220
movl %ebx, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0xb7f0
jmp 0x130a3
jmp 0x130a0
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x11748
jmp 0x130a3
jmp 0x130a0
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0xf9ea
jmp 0x130a3
jmp 0x130a0
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xf9ea
jmp 0x130d8
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x130d8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2220
jmp 0x130d8
jmp 0x130d5
jmp 0x130d5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x13128
movq %rbx, %rdi
callq 0x2380
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x13109
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2220
jmp 0x13109
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x130e2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2220
jmp 0x130e2
nop