// File: /workspace/github_cpp_makefile_star2_O1/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 0x10bb(%rip), %r15      # 0x1404d
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0xa76c
leaq 0x28(%rsp), %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rbx, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0xa76c
leaq 0x48(%rsp), %r15
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1079(%rip), %rdx      # 0x1404d
movq %r15, %rdi
movq %rdx, %rsi
callq 0xa76c
movabsq $0x401f333333333333, %rax # imm = 0x401F333333333333
leaq 0x8(%rsp), %rdx
movq %rax, 0x60(%rdx)
movl %ebp, %edi
movq %r14, %rsi
callq 0xa5d7
testb %al, %al
je 0x130af
leaq 0x70(%rsp), %rdi
callq 0xfade
leaq 0x1038(%rip), %rsi      # 0x1404d
movq %r15, %rdi
callq 0x20b0
testl %eax, %eax
je 0x13058
movq 0x48(%rsp), %rsi
movsd 0x68(%rsp), %xmm0
leaq 0xa8(%rsp), %rdi
callq 0xfa4e
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xfc28
leaq 0xa8(%rsp), %rdi
callq 0xfbba
leaq 0xfee(%rip), %rsi       # 0x1404d
movq %rbx, %rdi
callq 0x20b0
testl %eax, %eax
je 0x13112
movq 0x8(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0xa8(%rsp), %rdi
callq 0x117fa
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xfe46
movsd %xmm0, (%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x1187e
jmp 0x13148
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xdbb6(%rip), %rsi      # 0x20c78
leaq 0xdbb5(%rip), %rdx      # 0x20c7e
leaq 0xa8(%rsp), %rdi
callq 0xa76c
leaq 0xa8(%rsp), %rdi
movsd 0xc28a(%rip), %xmm0     # 0x1f370
callq 0xa56c
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13108
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2230
movl $0x1, %ebx
jmp 0x1319e
movq 0x8(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0xaaac
leaq 0x70(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xfd34
movsd %xmm0, (%rsp)
leaq 0xa8(%rsp), %rdi
callq 0xb966
leaq 0xa8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xfcc6
leaq 0xb8(%rsp), %rbx
movq -0x10(%rbx), %rsi
leaq 0xdb12(%rip), %rdi      # 0x20c7f
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x2050
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x13192
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x70(%rsp), %rdi
callq 0xfbba
xorl %ebx, %ebx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x131b5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x131cc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x131e8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
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 0xb966
jmp 0x1323b
jmp 0x13238
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x1187e
jmp 0x1323b
jmp 0x13238
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0xfbba
jmp 0x1323b
jmp 0x13238
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xfbba
jmp 0x13270
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13270
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x13270
jmp 0x1326d
jmp 0x1326d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x132c0
movq %rbx, %rdi
callq 0x2390
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x132a1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x132a1
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1327a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x1327a
nop