// File: pgrouchy[P]NoiseWorld/mathNet.cpp
// Function: Tree::loadTree(_IO_FILE*, int, int)
void Tree::loadTree(FILE *myFile, int islID, int myID) {
    int myInt, myInt2, myInt3, myInt4, myInt5, myInt6;
    double myDouble;

    this->tree_id = new TreeID(islID, myID);

    fscanf(myFile, "%d,%d,%d,%lf,%d,%d,%d\n", &myInt, &myInt2, &myInt3, &myDouble, &myInt4, &myInt5, &myInt6);

    if (myInt == 0)
        this->isConstant = false;
    else
        this->isConstant = true;

    if (myInt2 == 0)
        this->isTerminal = false;
    else
        this->isTerminal = true;

    this->myDepth = myInt3;

    this->myVal = myDouble;

    this->numConstants = myInt4;
    this->numNodes = myInt5;
    this->numTerminals = myInt6;

    if (!this->isTerminal) {
        this->leftTree = new Tree();
        this->leftTree->loadTree(myFile, islID, myID);
        this->rightTree = new Tree();
        this->rightTree->loadTree(myFile, islID, myID);
    } else {
        this->leftTree = NULL;
        this->rightTree = NULL;
    }
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movl %edx, 0x74(%rsp)
movl %ecx, 0x70(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x30(%rsp)
movl $0x8, %edi
callq 0x32a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x38(%rsp)
movl 0x74(%rsp), %esi
movl 0x70(%rsp), %edx
callq 0x12dc0
jmp 0xce4d
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq 0x78(%rsp), %rdi
leaq 0x8597(%rip), %rsi      # 0x153fe
leaq 0x6c(%rsp), %rdx
leaq 0x68(%rsp), %rcx
leaq 0x64(%rsp), %r8
leaq 0x50(%rsp), %r9
leaq 0x60(%rsp), %r11
leaq 0x5c(%rsp), %r10
leaq 0x58(%rsp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x3470
cmpl $0x0, 0x6c(%rsp)
jne 0xced6
movq 0x30(%rsp), %rax
movl $0x0, 0x1c(%rax)
jmp 0xcee2
movq 0x38(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
movl $0x8, %esi
callq 0x32b0
jmp 0xd013
movq 0x30(%rsp), %rax
movl $0x1, 0x1c(%rax)
cmpl $0x0, 0x68(%rsp)
jne 0xcef7
movq 0x30(%rsp), %rax
movl $0x0, 0x18(%rax)
jmp 0xcf03
movq 0x30(%rsp), %rax
movl $0x1, 0x18(%rax)
movq 0x30(%rsp), %rax
movl 0x64(%rsp), %ecx
movl %ecx, 0x28(%rax)
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x20(%rax)
movl 0x60(%rsp), %ecx
movl %ecx, 0x2c(%rax)
movl 0x5c(%rsp), %ecx
movl %ecx, 0x34(%rax)
movl 0x58(%rsp), %ecx
movl %ecx, 0x30(%rax)
cmpl $0x0, 0x18(%rax)
jne 0xcff7
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x28(%rsp)
callq 0x12db0
jmp 0xcf55
movq 0x30(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, (%rax)
movq (%rax), %rdi
movq 0x78(%rsp), %rsi
movl 0x74(%rsp), %edx
movl 0x70(%rsp), %ecx
callq 0xce00
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x20(%rsp)
callq 0x12db0
jmp 0xcf93
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x8(%rax), %rdi
movq 0x78(%rsp), %rsi
movl 0x74(%rsp), %edx
movl 0x70(%rsp), %ecx
callq 0xce00
jmp 0xd00b
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0xd013
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
movl $0x38, %esi
callq 0x32b0
jmp 0xd013
movq 0x30(%rsp), %rax
movq $0x0, (%rax)
movq $0x0, 0x8(%rax)
addq $0x88, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0x3430
nopl (%rax)