// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/ripper.c
// Function: optimize_ruleset
void optimize_ruleset(Ruleset* r, int positive, Instanceptr* instances, double proportion, Ripper_parameterptr param)
{
 /* Last Changed 24.11.2003 If after revising and renewing rules there are instances that are not covered by ruleset learn new rules to cover them*/
 /* Last Changed 20.06.2003 Rewritten*/
 /* Last Changed 21.05.2003*/
 int first, rulecount = 0, fp, fn, covered, uncovered;
 Decisionruleptr rule, replacementrule, revisionrule, before, next, newrule;
 Instanceptr grow, prune, removed = NULL, pruneremoved = NULL;
 double replacementdl, revisiondl, dl, smallestdl, dlnow, datadlwithout, ruledl, datadlwith;
 before = NULL;
 fp = 0;
 covered = 0;
 uncovered = data_size(*instances);
 fn = find_class_count(*instances, positive);
 rule = r->start;
 while (rule && rule->classno != positive)
  {
   before = rule;
   rule = rule->next;
   rulecount++;
  }
 while (rule && fn > 0)
  {
   dl = relative_compression(r, positive, rulecount, *instances, NULL, NULL, NULL, proportion);
   divide_instancelist(instances, &prune, &grow, 3);
   pruneremoved = NULL;
   replacementrule = growrule(&grow, positive, param);
   remove_rule_after(r, before, rule);
   add_rule_after(r, before, replacementrule);
   remove_covered_by_ruleset(&prune, &pruneremoved, *r, rulecount + 1);
   if (replacementrule->decisioncount > 0)
     prunerule_in_optimize_phase(replacementrule, prune, positive);
   update_counts(replacementrule, grow, 1);
   update_counts(replacementrule, prune, 0);
   update_counts(replacementrule, pruneremoved, 0);
   replacementdl = relative_compression(r, positive, rulecount, grow, prune, pruneremoved, NULL, proportion);
   revisionrule = grow_revision_rule(&grow, rule, positive, param);
   remove_rule_after(r, before, replacementrule);
   add_rule_after(r, before, revisionrule);
   prunerule_in_optimize_phase(revisionrule, prune, positive);
   update_counts(revisionrule, grow, 1);
   update_counts(revisionrule, prune, 0);
   update_counts(revisionrule, pruneremoved, 0);
   revisiondl = relative_compression(r, positive, rulecount, grow, prune, pruneremoved, NULL, proportion);
   *instances = restore_instancelist(*instances, grow);
   merge_instancelist(instances, prune);
   merge_instancelist(instances, pruneremoved);
   if (dless(replacementdl, dl) || dless(revisiondl, dl))
     if (dless(replacementdl,revisiondl))
      {
       remove_rule_after(r, before, revisionrule);
       add_rule_after(r, before, replacementrule);
       free_rule(*revisionrule);
       safe_free(revisionrule);
       free_rule(*rule);
       safe_free(rule);
       remove_covered(instances, &removed, replacementrule);
       rule = replacementrule;
      }
     else
      {
       free_rule(*replacementrule);
       safe_free(replacementrule);
       free_rule(*rule);
       safe_free(rule);       
       remove_covered(instances, &removed, revisionrule);
       rule = revisionrule;
      }
   else
    {
     remove_rule_after(r, before, revisionrule);
     add_rule_after(r, before, rule);
     free_rule(*revisionrule);
     safe_free(revisionrule);
     free_rule(*replacementrule);
     safe_free(replacementrule);
     remove_covered(instances, &removed, rule);
    }
   covered += (rule->falsepositives + rule->covered);
   uncovered -= (rule->falsepositives + rule->covered);
   fp += rule->falsepositives;
   fn -= rule->covered;
   before = rule;
   rule = rule->next;
   rulecount++;
  }
 if (!rule)
  {
   smallestdl = +INT_MAX;
   first = 1;
   while (fn > 0)
    {
     divide_instancelist(instances, &prune, &grow, 3);
     newrule = growrule(&grow, positive, param);
     if (newrule->start)
       prunerule(newrule, prune, positive, 2);
     if (!(newrule->start))
      {
       *instances = restore_instancelist(*instances, grow);
       merge_instancelist(instances, prune);
       free_rule(*newrule);
       safe_free(newrule);
       break;
      }
     update_counts(newrule, grow, 1);
     update_counts(newrule, prune, 0);
     *instances = restore_instancelist(*instances, grow);
     merge_instancelist(instances, prune);
     datadlwithout = description_length_of_exceptions(covered, uncovered, fp, fn, proportion);
     ruledl = description_length_of_rule(*newrule, r->possibleconditioncount);
     datadlwith = description_length_of_exceptions(covered + newrule->covered + newrule->falsepositives, uncovered - newrule->covered - newrule->falsepositives, fp + newrule->falsepositives, fn - newrule->covered, proportion);
     if (first)
       dlnow = datadlwith + ruledl;
     else
       dlnow = dlnow - datadlwithout + datadlwith + ruledl;
     if (dless(dlnow,smallestdl) && (first != 1 || error_rate_of_rule(*newrule) < 0.5))
      {
       smallestdl = dlnow;
       insert_rule_and_update_counts(newrule, r, &covered, &uncovered, &fp, &fn);
       remove_covered(instances, &removed, newrule);
      }
     else
       if ((dlnow - smallestdl > 64) || (error_rate_of_rule(*newrule) >= 0.5))
        {
         free_rule(*newrule);
         safe_free(newrule);
         break;
        }
       else
        {
         insert_rule_and_update_counts(newrule, r, &covered, &uncovered, &fp, &fn);
         remove_covered(instances, &removed, newrule);
        }
     first = 0;
    }
  }
 else
  {
   while (rule)
    {
     next = rule->next;
     if (rule->classno == positive)
      {
       before->next = next;
       free_rule(*rule);
       safe_free(rule);
       r->rulecount--;
       if (next == NULL)
         r->end = before;
      }
     else
       before = rule;
     rule = next;
    }
   if (before)
     before->next = NULL;
  }
 merge_instancelist(instances, removed);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x30(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movq $0x0, -0x60(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0x449f0
movl %eax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movl -0xc(%rbp), %esi
callq 0x18240
movl %eax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x48(%rbp)
movb %al, -0xd1(%rbp)
je 0xa914f
movq -0x48(%rbp), %rax
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
setne %al
movb %al, -0xd1(%rbp)
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0xa915b
jmp 0xa917a
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x48(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xa912e
jmp 0xa917c
xorl %eax, %eax
cmpq $0x0, -0x48(%rbp)
movb %al, -0xd2(%rbp)
je 0xa9198
cmpl $0x0, -0x38(%rbp)
setg %al
movb %al, -0xd2(%rbp)
movb -0xd2(%rbp), %al
testb $0x1, %al
jne 0xa91a7
jmp 0xa9659
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x30(%rbp), %edx
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movsd -0x20(%rbp), %xmm0
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
movq $0x0, (%rsp)
callq 0xda220
movsd %xmm0, -0xa8(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %rdx
movl $0x3, %ecx
callq 0x45f60
movq $0x0, -0x90(%rbp)
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq -0x78(%rbp), %rdi
callq 0xdaf10
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0xae850
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0xae7d0
movq -0x8(%rbp), %rcx
movl -0x30(%rbp), %edx
addl $0x1, %edx
movq 0x20(%rcx), %rsi
movq %rsp, %rax
movq %rsi, 0x20(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq -0x80(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xdb410
movq -0x50(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jle 0xa927e
movq -0x50(%rbp), %rdi
movq -0x80(%rbp), %rsi
movl -0xc(%rbp), %edx
callq 0xd9a20
movq -0x50(%rbp), %rdi
movq -0x78(%rbp), %rsi
movl $0x1, %edx
callq 0xaea90
movq -0x50(%rbp), %rdi
movq -0x80(%rbp), %rsi
xorl %edx, %edx
callq 0xaea90
movq -0x50(%rbp), %rdi
movq -0x90(%rbp), %rsi
xorl %edx, %edx
callq 0xaea90
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x30(%rbp), %edx
movq -0x78(%rbp), %rcx
movq -0x80(%rbp), %r8
movq -0x90(%rbp), %r9
movsd -0x20(%rbp), %xmm0
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0xda220
movsd %xmm0, -0x98(%rbp)
movq -0x48(%rbp), %rsi
movl -0xc(%rbp), %edx
movq -0x28(%rbp), %rcx
leaq -0x78(%rbp), %rdi
callq 0xa8e60
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0xae850
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0xae7d0
movq -0x58(%rbp), %rdi
movq -0x80(%rbp), %rsi
movl -0xc(%rbp), %edx
callq 0xd9a20
movq -0x58(%rbp), %rdi
movq -0x78(%rbp), %rsi
movl $0x1, %edx
callq 0xaea90
movq -0x58(%rbp), %rdi
movq -0x80(%rbp), %rsi
xorl %edx, %edx
callq 0xaea90
movq -0x58(%rbp), %rdi
movq -0x90(%rbp), %rsi
xorl %edx, %edx
callq 0xaea90
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x30(%rbp), %edx
movq -0x78(%rbp), %rcx
movq -0x80(%rbp), %r8
movq -0x90(%rbp), %r9
movsd -0x20(%rbp), %xmm0
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0xda220
movsd %xmm0, -0xa0(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x78(%rbp), %rsi
callq 0x464e0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x44f40
movq -0x18(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0x44f40
movsd -0x98(%rbp), %xmm0
movsd -0xa8(%rbp), %xmm1
callq 0x52750
cmpl $0x0, %eax
jne 0xa9407
movsd -0xa0(%rbp), %xmm0
movsd -0xa8(%rbp), %xmm1
callq 0x52750
cmpl $0x0, %eax
je 0xa9555
movsd -0x98(%rbp), %xmm0
movsd -0xa0(%rbp), %xmm1
callq 0x52750
cmpl $0x0, %eax
je 0xa94ce
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0xae850
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0xae7d0
movq -0x58(%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 0xadd10
movq -0x58(%rbp), %rdi
callq 0x52e80
movq -0x48(%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 0xadd10
movq -0x48(%rbp), %rdi
callq 0x52e80
movq -0x18(%rbp), %rdi
movq -0x50(%rbp), %rdx
leaq -0x88(%rbp), %rsi
callq 0xdb5b0
movq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xa9550
movq -0x50(%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 0xadd10
movq -0x50(%rbp), %rdi
callq 0x52e80
movq -0x48(%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 0xadd10
movq -0x48(%rbp), %rdi
callq 0x52e80
movq -0x18(%rbp), %rdi
movq -0x58(%rbp), %rdx
leaq -0x88(%rbp), %rsi
callq 0xdb5b0
movq -0x58(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xa95f1
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0xae850
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0xae7d0
movq -0x58(%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 0xadd10
movq -0x58(%rbp), %rdi
callq 0x52e80
movq -0x50(%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 0xadd10
movq -0x50(%rbp), %rdi
callq 0x52e80
movq -0x18(%rbp), %rdi
movq -0x48(%rbp), %rdx
leaq -0x88(%rbp), %rsi
callq 0xdb5b0
movq -0x48(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x48(%rbp), %rcx
addl 0x4(%rcx), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x48(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x48(%rbp), %rax
addl 0x4(%rax), %ecx
movl -0x40(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x40(%rbp)
movq -0x48(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x48(%rbp), %rax
movl 0x4(%rax), %ecx
movl -0x38(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x38(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x48(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xa917c
cmpq $0x0, -0x48(%rbp)
jne 0xa99dc
movsd 0x389a4(%rip), %xmm0    # 0xe2010
movsd %xmm0, -0xb0(%rbp)
movl $0x1, -0x2c(%rbp)
cmpl $0x0, -0x38(%rbp)
jle 0xa99d7
movq -0x18(%rbp), %rdi
leaq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %rdx
movl $0x3, %ecx
callq 0x45f60
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq -0x78(%rbp), %rdi
callq 0xdaf10
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0xa96cf
movq -0x70(%rbp), %rdi
movq -0x80(%rbp), %rsi
movl -0xc(%rbp), %edx
movl $0x2, %ecx
callq 0xdb170
movq -0x70(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0xa9739
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x78(%rbp), %rsi
callq 0x464e0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x44f40
movq -0x70(%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 0xadd10
movq -0x70(%rbp), %rdi
callq 0x52e80
jmp 0xa99d7
movq -0x70(%rbp), %rdi
movq -0x78(%rbp), %rsi
movl $0x1, %edx
callq 0xaea90
movq -0x70(%rbp), %rdi
movq -0x80(%rbp), %rsi
xorl %edx, %edx
callq 0xaea90
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x78(%rbp), %rsi
callq 0x464e0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x44f40
movl -0x3c(%rbp), %edi
movl -0x40(%rbp), %esi
movl -0x34(%rbp), %edx
movl -0x38(%rbp), %ecx
movsd -0x20(%rbp), %xmm0
callq 0xabdd0
movsd %xmm0, -0xc0(%rbp)
movq -0x70(%rbp), %rcx
movq -0x8(%rbp), %rax
movl 0x20(%rax), %edi
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 0xabc80
movsd %xmm0, -0xc8(%rbp)
movl -0x3c(%rbp), %edi
movq -0x70(%rbp), %rax
addl 0x4(%rax), %edi
movq -0x70(%rbp), %rax
addl 0x8(%rax), %edi
movl -0x40(%rbp), %esi
movq -0x70(%rbp), %rax
subl 0x4(%rax), %esi
movq -0x70(%rbp), %rax
subl 0x8(%rax), %esi
movl -0x34(%rbp), %edx
movq -0x70(%rbp), %rax
addl 0x8(%rax), %edx
movl -0x38(%rbp), %ecx
movq -0x70(%rbp), %rax
subl 0x4(%rax), %ecx
movsd -0x20(%rbp), %xmm0
callq 0xabdd0
movsd %xmm0, -0xd0(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0xa9840
movsd -0xd0(%rbp), %xmm0
addsd -0xc8(%rbp), %xmm0
movsd %xmm0, -0xb8(%rbp)
jmp 0xa9868
movsd -0xb8(%rbp), %xmm0
subsd -0xc0(%rbp), %xmm0
addsd -0xd0(%rbp), %xmm0
addsd -0xc8(%rbp), %xmm0
movsd %xmm0, -0xb8(%rbp)
movsd -0xb8(%rbp), %xmm0
movsd -0xb0(%rbp), %xmm1
callq 0x52750
cmpl $0x0, %eax
je 0xa990d
cmpl $0x1, -0x2c(%rbp)
jne 0xa98c7
movq -0x70(%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 0xaedc0
movaps %xmm0, %xmm1
movsd 0x390f7(%rip), %xmm0    # 0xe29b8
ucomisd %xmm1, %xmm0
jbe 0xa990d
movsd -0xb8(%rbp), %xmm0
movsd %xmm0, -0xb0(%rbp)
movq -0x70(%rbp), %rdi
movq -0x8(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
leaq -0x40(%rbp), %rcx
leaq -0x34(%rbp), %r8
leaq -0x38(%rbp), %r9
callq 0xdb970
movq -0x18(%rbp), %rdi
movq -0x70(%rbp), %rdx
leaq -0x88(%rbp), %rsi
callq 0xdb5b0
jmp 0xa99cb
movsd -0xb8(%rbp), %xmm0
subsd -0xb0(%rbp), %xmm0
movsd 0x42acb(%rip), %xmm1    # 0xec3f0
ucomisd %xmm1, %xmm0
ja 0xa9963
movq -0x70(%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 0xaedc0
movsd 0x3905b(%rip), %xmm1    # 0xe29b8
ucomisd %xmm1, %xmm0
jb 0xa9998
movq -0x70(%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 0xadd10
movq -0x70(%rbp), %rdi
callq 0x52e80
jmp 0xa99d7
movq -0x70(%rbp), %rdi
movq -0x8(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
leaq -0x40(%rbp), %rcx
leaq -0x34(%rbp), %r8
leaq -0x38(%rbp), %r9
callq 0xdb970
movq -0x18(%rbp), %rdi
movq -0x70(%rbp), %rdx
leaq -0x88(%rbp), %rsi
callq 0xdb5b0
jmp 0xa99cb
movl $0x0, -0x2c(%rbp)
jmp 0xa967b
jmp 0xa9a8b
jmp 0xa99de
cmpq $0x0, -0x48(%rbp)
je 0xa9a76
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
jne 0xa9a61
movq -0x68(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x48(%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 0xadd10
movq -0x48(%rbp), %rdi
callq 0x52e80
movq -0x8(%rbp), %rax
movl 0x10(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x10(%rax)
cmpq $0x0, -0x68(%rbp)
jne 0xa9a5f
movq -0x60(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0xa9a69
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xa99de
cmpq $0x0, -0x60(%rbp)
je 0xa9a89
movq -0x60(%rbp), %rax
movq $0x0, 0x30(%rax)
jmp 0xa9a8b
movq -0x18(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x44f40
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)