// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
andl $0x0, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
andq $0x0, 0x28(%rdi)
leaq 0x38(%rdi), %rax
andl $0x0, 0x38(%rdi)
andq $0x0, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movq %rax, 0x50(%rdi)
andq $0x0, 0x68(%rdi)
xorps %xmm1, %xmm1
movups %xmm1, 0x58(%rdi)
movsd %xmm0, 0x70(%rdi)
leaq 0x78(%rdi), %r13
movq %r13, %rdi
movq %r8, %rsi
callq 0x22e0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x10516
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
callq 0x105d6
movq (%r15), %rcx
movq 0x8(%r15), %rax
subq %rcx, %rax
shrq $0x3, %rax
cmpl %eax, %ebp
jne 0x1049d
movq (%r14), %rsi
movq 0x8(%r14), %rax
subq %rsi, %rax
pushq $0x18
popq %rdi
cqto
idivq %rdi
cmpl %eax, %ebp
jne 0x104b6
movq 0x8(%rsi), %rax
subq (%rsi), %rax
shrq $0x3, %rax
cmpl %eax, %ebp
jne 0x104cf
movq 0x60(%rbx), %rax
xorl %edx, %edx
testl %ebp, %ebp
movl $0x0, %edi
cmovgl %ebp, %edi
movl %ebp, %r8d
cmpq %rdi, %rdx
je 0x1048e
movsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, (%rax,%rdx,8)
imulq $0x18, %rdx, %r9
addq %rsi, %r9
movq 0x68(%rbx), %r10
xorl %r11d, %r11d
cmpq %r11, %r8
je 0x10489
movq (%r9), %r14
movsd (%r14,%r11,8), %xmm0
movq (%r10,%rdx,8), %r14
movsd %xmm0, (%r14,%r11,8)
incq %r11
jmp 0x1046c
incq %rdx
jmp 0x1044f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa75c(%rip), %rdi      # 0x1ac00
leaq 0xa76b(%rip), %rsi      # 0x1ac16
leaq 0xa771(%rip), %rcx      # 0x1ac23
pushq $0x17
jmp 0x104e6
leaq 0xa7ea(%rip), %rdi      # 0x1aca7
leaq 0xa752(%rip), %rsi      # 0x1ac16
leaq 0xa758(%rip), %rcx      # 0x1ac23
pushq $0x18
jmp 0x104e6
leaq 0xa7e7(%rip), %rdi      # 0x1acbd
leaq 0xa739(%rip), %rsi      # 0x1ac16
leaq 0xa73f(%rip), %rcx      # 0x1ac23
pushq $0x19
popq %rdx
callq 0x2160
movq %rax, %r14
movq %r13, %rdi
callq 0x2100
jmp 0x104fc
movq %rax, %r14
leaq 0x30(%rbx), %rdi
callq 0x11922
movq %rbx, %rdi
callq 0x11922
movq %r14, %rdi
callq 0x23a0
nop