// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/multivariaterule.c
// Function: grow_revision_rule_multivariate
Decisionruleptr grow_revision_rule_multivariate(Instanceptr* growset, Decisionruleptr rule, int positive, Ripper_parameterptr param)
{
 /* Last Changed 21.01.2004*/
 /* Last Changed 14.01.2004*/
 /* Last Changed 20.05.2003*/
 Decisionruleptr newrule = create_copy_of_rule(rule);
 Decisionconditionptr newcondition;
 Instanceptr obey, notobey = NULL;
 int n, pnew, nnew;
 obey = (*growset);
 if (rule_cover_negative(obey, *newrule))
   n = 1;
 else
   n = 0;
 while (n > 0)
  {
   newcondition = find_best_multivariate_condition(&obey, positive, MULTIVARIATE_LINEAR, param);
   if (newcondition && newcondition->featureindex != -1)
    {
     count_examples_for_condition(newcondition, &pnew, &nnew, positive, obey);
     if (notobey == NULL || nnew != n)
       n = nnew;
     else
      {
       free_condition(*newcondition);
       safe_free(newcondition);       
       break;
      }
     send_exceptions(newcondition, &obey, &notobey);
     add_condition(newrule, newcondition);
    }
   else
    {
     if (newcondition && newcondition->featureindex == -1)
      {
       free_condition(*newcondition);
       safe_free(newcondition);
      }
     break;
    }
  }
 if (notobey)
  {
   merge_instancelist(&notobey, obey);
   (*growset) = notobey;
  }
 return newrule;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xad610
movq %rax, -0x28(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq 0x30(%rcx), %rdx
movq %rsp, %rax
movq %rdx, 0x30(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0xae310
cmpl $0x0, %eax
je 0x6d076
movl $0x1, -0x44(%rbp)
jmp 0x6d07d
movl $0x0, -0x44(%rbp)
jmp 0x6d07f
cmpl $0x0, -0x44(%rbp)
jle 0x6d1bb
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rcx
leaq -0x38(%rbp), %rdi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
callq 0x6d880
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x6d159
movq -0x30(%rbp), %rax
cmpl $-0x1, (%rax)
je 0x6d159
movq -0x30(%rbp), %rdi
movl -0x14(%rbp), %ecx
movq -0x38(%rbp), %r8
leaq -0x48(%rbp), %rsi
leaq -0x4c(%rbp), %rdx
callq 0xac3d0
cmpq $0x0, -0x40(%rbp)
je 0x6d0e1
movl -0x4c(%rbp), %eax
cmpl -0x44(%rbp), %eax
je 0x6d0e9
movl -0x4c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x6d139
movq -0x30(%rbp), %rcx
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)
callq 0xadc90
movq -0x30(%rbp), %rdi
callq 0x52e80
jmp 0x6d1bb
movq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0xdad60
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0xad950
jmp 0x6d1b6
cmpq $0x0, -0x30(%rbp)
je 0x6d1b4
movq -0x30(%rbp), %rax
cmpl $-0x1, (%rax)
jne 0x6d1b4
movq -0x30(%rbp), %rcx
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)
callq 0xadc90
movq -0x30(%rbp), %rdi
callq 0x52e80
jmp 0x6d1bb
jmp 0x6d07f
cmpq $0x0, -0x40(%rbp)
je 0x6d1da
movq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x44f40
movq -0x40(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopw (%rax,%rax)