// File: /workspace/github_cpp_makefile_star2_O3/gjoni[P]iPot/src/AACE.cpp
// Function: AACE::AACE(std::vector<std::pair<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::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const&, std::vector<double, std::allocator<double>> const&, std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>> const&, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
AACE::AACE(const GROUPS_TYPE &GROUPS, const std::vector<double> &h_, 
			const std::vector<std::vector<double> > &J_, 
		double dmax_, const std::string &name_) : h(NULL), J(NULL), 
		dmax(dmax_), name(name_) {

	int dim = ReadGroups(GROUPS);
	Allocate(dim);

	assert((int)h_.size() == dim);
	assert((int)J_.size() == dim);
	assert((int)J_[0].size() == dim);

	for (int i = 0; i < dim; i++) {
		h[i] = h_[i];
		for (int j = 0; j < dim; j++) {
			J[i][j] = J_[i][j];
		}
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbp
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
xorl %ecx, %ecx
movl %ecx, 0x8(%rdi)
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
leaq 0x38(%rdi), %rax
movl %ecx, 0x38(%rdi)
movq %rcx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movq %rax, 0x50(%rdi)
xorps %xmm1, %xmm1
movups %xmm1, 0x58(%rdi)
movq %rcx, 0x68(%rdi)
movsd %xmm0, 0x70(%rdi)
leaq 0x78(%rdi), %r13
leaq 0x88(%rdi), %r12
movq %r12, 0x78(%rdi)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x12d4c
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x10c6a
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
callq 0x10d66
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
cmpl %ecx, %ebp
jne 0x10bd7
movq (%r14), %rcx
movq 0x8(%r14), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
imull $0xaaaaaaab, %edx, %edx # imm = 0xAAAAAAAB
cmpl %edx, %ebp
jne 0x10bf6
movq 0x8(%rcx), %rdx
subq (%rcx), %rdx
shrq $0x3, %rdx
cmpl %edx, %ebp
jne 0x10c15
testl %ebp, %ebp
jle 0x10bc8
movq 0x60(%rbx), %rdx
movq 0x68(%rbx), %rsi
movl %ebp, %edi
xorl %r8d, %r8d
movsd (%rax,%r8,8), %xmm0
movsd %xmm0, (%rdx,%r8,8)
leaq (%r8,%r8,2), %r9
movq (%rcx,%r9,8), %r9
movq (%rsi,%r8,8), %r10
xorl %r11d, %r11d
movsd (%r9,%r11,8), %xmm0
movsd %xmm0, (%r10,%r11,8)
incq %r11
cmpq %r11, %rdi
jne 0x10bac
incq %r8
cmpq %rdi, %r8
jne 0x10b91
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc022(%rip), %rdi      # 0x1cc00
leaq 0xc031(%rip), %rsi      # 0x1cc16
leaq 0xc037(%rip), %rcx      # 0x1cc23
movl $0x17, %edx
callq 0x2160
leaq 0xc0aa(%rip), %rdi      # 0x1cca7
leaq 0xc012(%rip), %rsi      # 0x1cc16
leaq 0xc018(%rip), %rcx      # 0x1cc23
movl $0x18, %edx
callq 0x2160
leaq 0xc0a1(%rip), %rdi      # 0x1ccbd
leaq 0xbff3(%rip), %rsi      # 0x1cc16
leaq 0xbff9(%rip), %rcx      # 0x1cc23
movl $0x19, %edx
callq 0x2160
movq %rax, %r14
movq (%r13), %rdi
cmpq %r12, %rdi
je 0x10c51
movq (%r12), %rsi
incq %rsi
callq 0x2220
jmp 0x10c51
movq %rax, %r14
leaq 0x30(%rbx), %rdi
callq 0x1268a
movq %rbx, %rdi
callq 0x1268a
movq %r14, %rdi
callq 0x2380