// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/univariatetree.c
// Function: find_discrete_split_count
int find_discrete_split_count(int size)
{
 int* iter;
 int i, j, sum = 0, anysame, multiplier1, multiplier2;
 iter = first_iterator(size);
 do{
   anysame = NO;
   for (i = 0; i < size; i++)
     for (j = i + 1; j < size; j++)
       if (iter[i] == iter[j])
         anysame = YES;
   for (i = 0; i < size; i++)
     if (iter[i] == current_dataset->classdefno)
       anysame = YES;
   if (anysame)
     continue;
   multiplier1 = 1;
   for (i = 0; i < size; i++)
     multiplier1 *= factorial(current_dataset->features[iter[i]].valuecount); 
   multiplier2 = 1;
   for (i = 0; i < size; i++)
     multiplier2 *= current_dataset->features[iter[i]].valuecount; 
   sum += multiplier1 * (multiplier2 - 1);
 }while (next_iterator(iter, size, current_dataset->featurecount - 1));
 safe_free(iter); 
 return sum; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x4(%rbp), %edi
callq 0x51b20
movq %rax, -0x10(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xdd5ee
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xdd5e1
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0x10(%rbp), %rcx
movslq -0x18(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0xdd5d4
movl $0x1, -0x20(%rbp)
jmp 0xdd5d6
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xdd5ad
jmp 0xdd5e3
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xdd59c
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xdd62e
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movl (%rax,%rcx,4), %eax
leaq 0x28231(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x1407128(%rcx), %eax
jne 0xdd621
movl $0x1, -0x20(%rbp)
jmp 0xdd623
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xdd5f5
cmpl $0x0, -0x20(%rbp)
je 0xdd639
jmp 0xdd6f2
movl $0x1, -0x24(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xdd68f
leaq 0x281ea(%rip), %rax     # 0x105840
movq (%rax), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movq -0x10(%rbp), %rcx
movslq -0x14(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
movl 0x18(%rax), %edi
callq 0x52b60
imull -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xdd647
movl $0x1, -0x28(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xdd6e0
leaq 0x28194(%rip), %rax     # 0x105840
movq (%rax), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movq -0x10(%rbp), %rcx
movslq -0x14(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
movl 0x18(%rax), %eax
imull -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xdd69d
movl -0x24(%rbp), %eax
movl -0x28(%rbp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x4(%rbp), %esi
leaq 0x28140(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1bc(%rax), %edx
subl $0x1, %edx
callq 0x52330
cmpl $0x0, %eax
jne 0xdd58e
movq -0x10(%rbp), %rdi
callq 0x52e80
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)