// File: pgrouchy[P]NoiseWorld/./mathNet.h
// Function: Tree::Tree(bool, int, int, bool, int, int, int)
Tree(bool makeTerminal, int currentDepth, int maxDepth, bool isGrow, int my_num_outputs, int my_isl, int my_id) {
        myDepth = currentDepth;
        tree_id = new TreeID(my_isl, my_id);

        if (currentDepth == 0) {
            numConstants = 0;
            numTerminals = 0;
            numNodes = 0;
        }

        if (makeTerminal) {
            isTerminal = true;
            numTerminals = 1;
            leftTree = NULL;
            rightTree = NULL;
            if (randfloat() < PERCENT_CONSTANT) {
                isConstant = true;
                myVal = (2.0*(double)MAX_CONSTANT*randfloat() - (double)MAX_CONSTANT);
                numConstants = 1;
                numNodes = 1;
            } else {
                isConstant = false;
                myVal = (double)((int)((NUM_INPUTS + my_num_outputs) * randfloat()));
                numConstants = 0;
                numNodes = 1;
            }
        } else {
            isTerminal = false;
            isConstant = false;
            myVal = (int)(NUM_FUNCTIONS * randfloat());

            if (currentDepth == (maxDepth-1)) {
                leftTree = new Tree(true, (myDepth+1), maxDepth, isGrow, my_num_outputs, my_isl, my_id);
                rightTree = new Tree(true, (myDepth+1), maxDepth, isGrow, my_num_outputs, my_isl, my_id);
            } else if (isGrow) {
                bool nextIsTerminal = false;
                if (randfloat() < PERCENT_TERMINAL) {
                    nextIsTerminal = true;
                }
                leftTree = new Tree(nextIsTerminal, (myDepth+1), maxDepth, isGrow, my_num_outputs, my_isl, my_id);
                nextIsTerminal = false;
                if (randfloat() < PERCENT_TERMINAL) {
                    nextIsTerminal = true;
                }
                rightTree = new Tree(nextIsTerminal, (myDepth+1), maxDepth, isGrow, my_num_outputs, my_isl, my_id);
            } else {
                leftTree = new Tree(false, (myDepth+1), maxDepth, isGrow, my_num_outputs, my_isl, my_id);
                rightTree = new Tree(false, (myDepth+1), maxDepth, isGrow, my_num_outputs, my_isl, my_id);
            }
            numConstants = leftTree->numConstants + rightTree->numConstants;
            numTerminals = leftTree->numTerminals + rightTree->numTerminals;
            numNodes = 1 + leftTree->numNodes + rightTree->numNodes;
        }
    }

// Assembly:
subq $0x88, %rsp
movb %r8b, %al
movl 0x98(%rsp), %r8d
movl 0x90(%rsp), %r8d
movq %rdi, 0x80(%rsp)
andb $0x1, %sil
movb %sil, 0x7f(%rsp)
movl %edx, 0x78(%rsp)
movl %ecx, 0x74(%rsp)
andb $0x1, %al
movb %al, 0x73(%rsp)
movl %r9d, 0x6c(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x48(%rsp)
movl 0x78(%rsp), %ecx
movl %ecx, 0x28(%rax)
movl $0x8, %edi
callq 0x32a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x50(%rsp)
movl 0x90(%rsp), %esi
movl 0x98(%rsp), %edx
callq 0x12dc0
jmp 0x130dc
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rax)
cmpl $0x0, 0x78(%rsp)
jne 0x1312f
movq 0x48(%rsp), %rax
movl $0x0, 0x2c(%rax)
movl $0x0, 0x30(%rax)
movl $0x0, 0x34(%rax)
jmp 0x1312f
movq 0x50(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
movl $0x8, %esi
callq 0x32b0
jmp 0x1360f
testb $0x1, 0x7f(%rsp)
je 0x13209
movq 0x48(%rsp), %rax
movl $0x1, 0x18(%rax)
movl $0x1, 0x30(%rax)
movq $0x0, (%rax)
movq $0x0, 0x8(%rax)
callq 0x8110
movaps %xmm0, %xmm1
movsd 0x20d4(%rip), %xmm0     # 0x15240
ucomisd %xmm1, %xmm0
jbe 0x131b5
movq 0x48(%rsp), %rax
movl $0x1, 0x1c(%rax)
callq 0x8110
movq 0x48(%rsp), %rax
movsd 0x20c0(%rip), %xmm1     # 0x15250
mulsd %xmm1, %xmm0
movsd 0x20bc(%rip), %xmm1     # 0x15258
addsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rax)
movl $0x1, 0x2c(%rax)
movl $0x1, 0x34(%rax)
jmp 0x13204
movq 0x48(%rsp), %rax
movl $0x0, 0x1c(%rax)
movl 0x6c(%rsp), %eax
addl $0x3, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x40(%rsp)
callq 0x8110
movq 0x48(%rsp), %rax
movaps %xmm0, %xmm1
movsd 0x40(%rsp), %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x20(%rax)
movl $0x0, 0x2c(%rax)
movl $0x1, 0x34(%rax)
jmp 0x13607
movq 0x48(%rsp), %rax
movl $0x0, 0x18(%rax)
movl $0x0, 0x1c(%rax)
callq 0x8110
movq 0x48(%rsp), %rax
movaps %xmm0, %xmm1
movsd 0x1e57(%rip), %xmm0     # 0x15088
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x20(%rax)
movl 0x78(%rsp), %eax
movl 0x74(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x13365
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq 0x48(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x38(%rsp)
movl 0x28(%rax), %edx
incl %edx
movl 0x74(%rsp), %ecx
movl 0x6c(%rsp), %r9d
movl 0x90(%rsp), %esi
movl 0x98(%rsp), %r10d
movzbl 0x73(%rsp), %r8d
movq %rsp, %rax
movl %r10d, 0x8(%rax)
movl %esi, (%rax)
andl $0x1, %r8d
movl $0x1, %esi
callq 0x13060
jmp 0x132ab
movq 0x48(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, (%rax)
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq 0x48(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x30(%rsp)
movl 0x28(%rax), %edx
incl %edx
movl 0x74(%rsp), %ecx
movl 0x6c(%rsp), %r9d
movl 0x90(%rsp), %esi
movl 0x98(%rsp), %r10d
movzbl 0x73(%rsp), %r8d
movq %rsp, %rax
movl %r10d, 0x8(%rax)
movl %esi, (%rax)
andl $0x1, %r8d
movl $0x1, %esi
callq 0x13060
jmp 0x1330e
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x135cf
movq 0x38(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0x1360f
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0x1360f
testb $0x1, 0x73(%rsp)
je 0x134cc
movb $0x0, 0x5b(%rsp)
callq 0x8110
movaps %xmm0, %xmm1
movsd 0x1ebb(%rip), %xmm0     # 0x15240
ucomisd %xmm1, %xmm0
jbe 0x13390
movb $0x1, 0x5b(%rsp)
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq 0x48(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x28(%rsp)
movl 0x28(%rax), %edx
incl %edx
movl 0x74(%rsp), %ecx
movl 0x6c(%rsp), %r9d
movl 0x90(%rsp), %r10d
movl 0x98(%rsp), %r11d
movzbl 0x73(%rsp), %r8d
movzbl 0x5b(%rsp), %esi
movq %rsp, %rax
movl %r11d, 0x8(%rax)
movl %r10d, (%rax)
andl $0x1, %esi
andl $0x1, %r8d
callq 0x13060
jmp 0x133eb
movq 0x48(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, (%rax)
movb $0x0, 0x5b(%rsp)
callq 0x8110
movaps %xmm0, %xmm1
movsd 0x1e33(%rip), %xmm0     # 0x15240
ucomisd %xmm1, %xmm0
jbe 0x1343c
movb $0x1, 0x5b(%rsp)
jmp 0x1343c
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0x1360f
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq 0x48(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x20(%rsp)
movl 0x28(%rax), %edx
incl %edx
movl 0x74(%rsp), %ecx
movl 0x6c(%rsp), %r9d
movl 0x90(%rsp), %r10d
movl 0x98(%rsp), %r11d
movzbl 0x73(%rsp), %r8d
movzbl 0x5b(%rsp), %esi
movq %rsp, %rax
movl %r11d, 0x8(%rax)
movl %r10d, (%rax)
andl $0x1, %esi
andl $0x1, %r8d
callq 0x13060
jmp 0x13497
movq 0x48(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x135cd
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0x1360f
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq 0x48(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x18(%rsp)
movl 0x28(%rax), %edx
incl %edx
movl 0x74(%rsp), %ecx
movl 0x6c(%rsp), %r9d
movl 0x90(%rsp), %esi
movl 0x98(%rsp), %r10d
movzbl 0x73(%rsp), %r8d
movq %rsp, %rax
movl %r10d, 0x8(%rax)
movl %esi, (%rax)
andl $0x1, %r8d
xorl %esi, %esi
callq 0x13060
jmp 0x1351f
movq 0x48(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, (%rax)
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq 0x48(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x10(%rsp)
movl 0x28(%rax), %edx
incl %edx
movl 0x74(%rsp), %ecx
movl 0x6c(%rsp), %r9d
movl 0x90(%rsp), %esi
movl 0x98(%rsp), %r10d
movzbl 0x73(%rsp), %r8d
movq %rsp, %rax
movl %r10d, 0x8(%rax)
movl %esi, (%rax)
andl $0x1, %r8d
xorl %esi, %esi
callq 0x13060
jmp 0x1357f
movq 0x48(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x135cd
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0x1360f
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0x1360f
jmp 0x135cf
movq 0x48(%rsp), %rax
movq (%rax), %rcx
movl 0x2c(%rcx), %ecx
movq 0x8(%rax), %rdx
addl 0x2c(%rdx), %ecx
movl %ecx, 0x2c(%rax)
movq (%rax), %rcx
movl 0x30(%rcx), %ecx
movq 0x8(%rax), %rdx
addl 0x30(%rdx), %ecx
movl %ecx, 0x30(%rax)
movq (%rax), %rcx
movl 0x34(%rcx), %ecx
addl $0x1, %ecx
movq 0x8(%rax), %rdx
addl 0x34(%rdx), %ecx
movl %ecx, 0x34(%rax)
addq $0x88, %rsp
retq
movq 0x60(%rsp), %rdi
callq 0x3430
nopl (%rax)