// File: pgrouchy[P]NoiseWorld/./mathNet.h
// Function: Genome::Genome(Genome*)
Genome(Genome *copyMe) {
        int i;
        list<Tree*>::iterator curTree;
        Tree *new_tree;
        pop_id = copyMe->pop_id;
        num_trees = copyMe->num_trees;
        myData = new double[num_trees];
        initialVal = new double[num_trees];
        fitness = copyMe->fitness;
        closestInd = copyMe->closestInd;
        is_alive = copyMe->is_alive;
        age = copyMe->age;
        mainGridLocation[0] = copyMe->mainGridLocation[0];
        mainGridLocation[1] = copyMe->mainGridLocation[1];
        isNan = copyMe->isNan;

        for (i = 0; i < 2; i++) {
            myPosition[i] = copyMe->myPosition[i];
        }

        i = 0;
        for (curTree = copyMe->trees.begin(); curTree != copyMe->trees.end(); ++curTree) {
//            cout << "Copying eq net...";
            initialVal[i] = copyMe->initialVal[i];
            //myData[i] = copyMe->myData[i];
            new_tree = new Tree((*curTree));
            trees.push_back(new_tree);
            tree_id_lookup.push_back(new TreeID((*curTree)->tree_id));
//            cout << "done copying eq net." << endl;
            i++;
        }
    }

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq 0x90(%rsp), %rdi
movq %rdi, 0x38(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
callq 0x9090
movq 0x38(%rsp), %rdi
addq $0x18, %rdi
movq %rdi, 0x30(%rsp)
callq 0x90a0
leaq 0x78(%rsp), %rdi
callq 0x7ce0
movq 0x38(%rsp), %rax
movq 0x88(%rsp), %rcx
movl 0x30(%rcx), %ecx
movl %ecx, 0x30(%rax)
movq 0x88(%rsp), %rcx
movl 0x34(%rcx), %ecx
movl %ecx, 0x34(%rax)
movslq 0x34(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3030
movq %rax, 0x40(%rsp)
jmp 0x8465
movq 0x28(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x78(%rax)
movslq 0x34(%rax), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3030
movq %rax, 0x20(%rsp)
jmp 0x8499
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x80(%rax)
movq 0x88(%rsp), %rcx
movl 0x38(%rcx), %ecx
movl %ecx, 0x38(%rax)
movq 0x88(%rsp), %rcx
movq 0x50(%rcx), %rcx
movq %rcx, 0x50(%rax)
movq 0x88(%rsp), %rcx
movb 0x58(%rcx), %cl
andb $0x1, %cl
movb %cl, 0x58(%rax)
movq 0x88(%rsp), %rcx
movsd 0x40(%rcx), %xmm0
movsd %xmm0, 0x40(%rax)
movq 0x88(%rsp), %rcx
movl 0x48(%rcx), %ecx
movl %ecx, 0x48(%rax)
movq 0x88(%rsp), %rcx
movl 0x4c(%rcx), %ecx
movl %ecx, 0x4c(%rax)
movq 0x88(%rsp), %rcx
movb 0x88(%rcx), %cl
andb $0x1, %cl
movb %cl, 0x88(%rax)
movl $0x0, 0x84(%rsp)
cmpl $0x2, 0x84(%rsp)
jge 0x8582
movq 0x28(%rsp), %rax
movq 0x88(%rsp), %rcx
movslq 0x84(%rsp), %rdx
movsd 0x68(%rcx,%rdx,8), %xmm0
movslq 0x84(%rsp), %rcx
movsd %xmm0, 0x68(%rax,%rcx,8)
movl 0x84(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x84(%rsp)
jmp 0x8529
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x8702
movl $0x0, 0x84(%rsp)
movq 0x88(%rsp), %rdi
callq 0x8810
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x88(%rsp), %rdi
callq 0x8860
movq %rax, 0x50(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x8840
testb $0x1, %al
jne 0x85d3
jmp 0x86fa
movq 0x28(%rsp), %rax
movq 0x88(%rsp), %rcx
movq 0x80(%rcx), %rdx
movslq 0x84(%rsp), %rcx
movsd (%rdx,%rcx,8), %xmm0
movq 0x80(%rax), %rax
movsd %xmm0, (%rax,%rcx,8)
movl $0x38, %edi
callq 0x32a0
movq %rax, 0x18(%rsp)
jmp 0x8611
leaq 0x78(%rsp), %rdi
callq 0x8890
movq 0x18(%rsp), %rdi
movq (%rax), %rsi
callq 0x90b0
jmp 0x862a
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %rsi
callq 0x9250
jmp 0x8645
movq 0x28(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
movl $0x8, %edi
callq 0x32a0
movq %rax, 0x10(%rsp)
jmp 0x8664
leaq 0x78(%rsp), %rdi
callq 0x8890
movq 0x10(%rsp), %rdi
movq (%rax), %rax
movq 0x10(%rax), %rsi
callq 0x92d0
jmp 0x8681
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x48(%rsp), %rsi
callq 0x9290
jmp 0x869c
movl 0x84(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x84(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x88b0
jmp 0x85a9
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0x8702
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
movl $0x8, %esi
callq 0x32b0
jmp 0x8702
addq $0x98, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x8be0
movq 0x38(%rsp), %rdi
callq 0x8bf0
movq 0x68(%rsp), %rdi
callq 0x3430