// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/decisiontree.c
// Function: createnewnode
Decisionnodeptr createnewnode(Decisionnodeptr parentnode, int howmany)
{
 /*!Last Changed 14.07.2006*/
 /*!Last Changed 23.11.2004 added possibleconditioncount*/
 /*!Last Changed 26.09.2004 added parent*/
 /*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 08.04.2003*/
 int i,j;
 Decisionnodeptr newnode;
 newnode = (Decisionnodeptr)safemalloc(howmany * sizeof(struct decisionnode), "createnewnode", 3);
 if (parentnode)
  {
   for (j = 0; j < howmany; j++)
    {
     newnode[j].possibleconditioncount = parentnode->possibleconditioncount;
     newnode[j].parent = parentnode;
     newnode[j].rule = safemalloc(parentnode->conditioncount*sizeof(Decisioncondition), "createnewnode", 10);
     for (i = 0; i < parentnode->conditioncount; i++)
       newnode[j].rule[i] = copy_of_condition(parentnode->rule[i]); 
     newnode[j].conditioncount = parentnode->conditioncount;
    }
  }
 else
   for (j = 0; j < howmany; j++)
    {
     newnode[j].parent = parentnode;
     newnode[j].rule = NULL;
     newnode[j].conditioncount = 0;
    } 
 for (j = 0; j < howmany; j++)
  {
   newnode[j].featureno = LEAF_NODE;
   newnode[j].counts = NULL;
   newnode[j].instances = NULL;
   newnode[j].expanded = BOOLEAN_FALSE;
   newnode[j].leaftype = CONSTANTLEAF;
   newnode[j].outputs = NULL;
   newnode[j].w0s = NULL;
  }
 return newnode;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movslq -0xc(%rbp), %rax
imulq $0x160, %rax, %rdi      # imm = 0x160
leaq 0xbb05c(%rip), %rsi     # 0xe4500
movl $0x3, %edx
callq 0x52d70
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x2963e
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x2963c
movq -0x8(%rbp), %rax
movl 0x8c(%rax), %ecx
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rdx
imulq $0x160, %rdx, %rdx      # imm = 0x160
addq %rdx, %rax
movl %ecx, 0x8c(%rax)
movq -0x8(%rbp), %rcx
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rdx
imulq $0x160, %rdx, %rdx      # imm = 0x160
addq %rdx, %rax
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movslq 0x80(%rax), %rax
imulq $0x70, %rax, %rdi
leaq 0xbafde(%rip), %rsi     # 0xe4500
movl $0xa, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rdx
imulq $0x160, %rdx, %rdx      # imm = 0x160
addq %rdx, %rax
movq %rcx, 0x58(%rax)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x80(%rcx), %eax
jge 0x2960c
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movq 0x58(%rax), %rax
movslq -0x10(%rbp), %rcx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rcx
movslq -0x10(%rbp), %rax
imulq $0x70, %rax, %rax
addq %rax, %rcx
movq %rcx, -0xa0(%rbp)
movups 0x60(%rcx), %xmm0
movq %rsp, %rax
movups %xmm0, 0x60(%rax)
movups 0x50(%rcx), %xmm0
movups %xmm0, 0x50(%rax)
movups 0x40(%rcx), %xmm0
movups %xmm0, 0x40(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups 0x30(%rcx), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq -0x90(%rbp), %rdi
callq 0xad350
movq -0x98(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x70, %edx
callq 0x42b0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x2954c
movq -0x8(%rbp), %rax
movl 0x80(%rax), %ecx
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rdx
imulq $0x160, %rdx, %rdx      # imm = 0x160
addq %rdx, %rax
movl %ecx, 0x80(%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x294c4
jmp 0x296aa
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x296a8
movq -0x8(%rbp), %rcx
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rdx
imulq $0x160, %rdx, %rdx      # imm = 0x160
addq %rdx, %rax
movq %rcx, 0x18(%rax)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movq $0x0, 0x58(%rax)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movl $0x0, 0x80(%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x29645
jmp 0x296aa
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x29784
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movl $0xffffffff, 0x30(%rax) # imm = 0xFFFFFFFF
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movq $0x0, 0xa0(%rax)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movq $0x0, 0x20(%rax)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movl $0x0, 0x130(%rax)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movl $0x0, 0x60(%rax)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movq $0x0, 0x70(%rax)
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movq $0x0, 0x50(%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x296b1
movq -0x20(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)