// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/ripper.c
// Function: grow_revision_rule
Decisionruleptr grow_revision_rule(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;
 double bestgain;
 obey = (*growset);
 if (rule_cover_negative(obey, *newrule))
   n = 1;
 else
   n = 0;
 while (n > 0)
  {
   if (get_parameter_o("usediscrete") == ON)
     if (get_parameter_i("smallsetsize") == 0)
       newcondition = find_best_discrete_condition_omnivariate(obey, positive);
     else
       newcondition = find_best_discrete_condition(obey, get_parameter_i("smallsetsize"), positive, &bestgain);
   else
     newcondition = find_best_condition(obey, positive, 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 $0xd0, %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 0xa8ed6
movl $0x1, -0x44(%rbp)
jmp 0xa8edd
movl $0x0, -0x44(%rbp)
jmp 0xa8edf
cmpl $0x0, -0x44(%rbp)
jle 0xa9076
leaq 0x396f5(%rip), %rdi     # 0xe25e5
callq 0x79440
cmpl $0x1, %eax
jne 0xa8f49
leaq 0x39678(%rip), %rdi     # 0xe2579
callq 0x78f10
cmpl $0x0, %eax
jne 0xa8f1d
movq -0x38(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x479c0
movq %rax, -0x30(%rbp)
jmp 0xa8f47
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x3964d(%rip), %rdi     # 0xe2579
callq 0x78f10
movq -0x60(%rbp), %rdi
movl %eax, %esi
movl -0x14(%rbp), %edx
leaq -0x58(%rbp), %rcx
callq 0x47b20
movq %rax, -0x30(%rbp)
jmp 0xa8f5d
movq -0x38(%rbp), %rdi
movl -0x14(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0xda620
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xa9014
movq -0x30(%rbp), %rax
cmpl $-0x1, (%rax)
je 0xa9014
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 0xa8f9c
movl -0x4c(%rbp), %eax
cmpl -0x44(%rbp), %eax
je 0xa8fa4
movl -0x4c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0xa8ff4
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 0xa9076
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 0xa9071
cmpq $0x0, -0x30(%rbp)
je 0xa906f
movq -0x30(%rbp), %rax
cmpl $-0x1, (%rax)
jne 0xa906f
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 0xa9076
jmp 0xa8edf
cmpq $0x0, -0x40(%rbp)
je 0xa9095
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 $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)