// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/plot.c
// Function: plot_classification_model
void plot_classification_model(void* model, void* parameters, int algorithm, Instance mean, Instance variance)
{
 ON_OFF changedecisionthreshold = get_parameter_o("changedecisionthreshold");
 int i, j, color;
 char st[2];
 double* posteriors = safemalloc(current_dataset->classno * sizeof(double), "plot_model", 2);
 double meanx, meany, stdevx, stdevy;
 Instanceptr currentinstance;
 Point p, p3, p4;
 Prediction predicted, predictedy, predictedx;
 predictedy.classno = -1;
 if (!get_parameter_o("hold"))
   clear_image();
 color = img.imagelegend.legendcount;
 add_legend((char)('A' + color), classification_algorithms[algorithm - SELECTMAX].name);
 p3.x = color;
 p4.x = GRAY;
 st[0] = '.';
 st[1] = '\0';
 if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
  {
   meanx = mean.values[0].floatvalue;
   meany = mean.values[1].floatvalue;
   stdevx = sqrt(variance.values[0].floatvalue);
   stdevy = sqrt(variance.values[1].floatvalue);
  }
 currentinstance = empty_instance(3);
 for (i = 1; i < MESHDEPTH * PARTITIONS; i++)
  {
   p.x = img.xaxis.lim.min + i * ((img.xaxis.lim.max - img.xaxis.lim.min) / (MESHDEPTH * PARTITIONS));
   for (j = 1; j < MESHDEPTH * PARTITIONS; j++)
    {     
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[0].floatvalue = (p.x - meanx) / stdevx;
     else
       currentinstance->values[0].floatvalue = p.x;
     p.y = img.yaxis.lim.min + j * ((img.yaxis.lim.max - img.yaxis.lim.min) / (MESHDEPTH * PARTITIONS));
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[1].floatvalue = (p.y - meany) / stdevy;
     else
       currentinstance->values[1].floatvalue = p.y;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     currentinstance->values[2].stringindex = predicted.classno;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     if (changedecisionthreshold == ON && current_dataset->classno == 2)
      {
       if (posteriors[0] > get_parameter_f("decisionthreshold"))
         predicted.classno = 0;
       else
         predicted.classno = 1;
      }
     if (predicted.classno != predictedy.classno && j != 1)
       add_object(OBJECT_POINT, p, dummyp, p3, st);
     if (current_dataset->classno == 2 && j != 1 && in_list(algorithm, 2, SVM, SIMPLEXSVM) && ((predicted.hingeloss == 0.0 && predictedy.hingeloss > 0.0) || (predicted.hingeloss > 0.0 && predictedy.hingeloss == 0.0)))
       add_object(OBJECT_POINT, p, dummyp, p4, st);
     predictedy = predicted;
    }
  }
 for (i = 1; i < MESHDEPTH * PARTITIONS; i++)
  {
   p.x = img.xaxis.lim.max - i * ((img.xaxis.lim.max - img.xaxis.lim.min) / (MESHDEPTH * PARTITIONS));
   for (j = 1; j < MESHDEPTH * PARTITIONS; j++)
    {     
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[0].floatvalue = (p.x - meanx) / stdevx;
     else
       currentinstance->values[0].floatvalue = p.x;
     p.y = img.yaxis.lim.max - j * ((img.yaxis.lim.max - img.yaxis.lim.min) / (MESHDEPTH * PARTITIONS));
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[1].floatvalue = (p.y - meany) / stdevy;
     else
       currentinstance->values[1].floatvalue = p.y;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     currentinstance->values[2].stringindex = predicted.classno;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     if (changedecisionthreshold == ON && current_dataset->classno == 2)
      {
       if (posteriors[0] > get_parameter_f("decisionthreshold"))
         predicted.classno = 0;
       else
         predicted.classno = 1;
      }
     if (predicted.classno != predictedy.classno && j != 1)
       add_object(OBJECT_POINT, p, dummyp, p3, st);
     if (current_dataset->classno == 2 && j != 1 && in_list(algorithm, 2, SVM, SIMPLEXSVM) && ((predicted.hingeloss == 0.0 && predictedy.hingeloss > 0.0) || (predicted.hingeloss > 0.0 && predictedy.hingeloss == 0.0)))
       add_object(OBJECT_POINT, p, dummyp, p4, st);
     predictedy = predicted;
    }
  }
 for (i = 1; i < MESHDEPTH * PARTITIONS; i++)
  {
   p.y = img.yaxis.lim.min + i * ((img.yaxis.lim.max - img.yaxis.lim.min) / (MESHDEPTH * PARTITIONS));
   for (j = 1; j < MESHDEPTH * PARTITIONS; j++)
    {     
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[1].floatvalue = (p.y - meany) / stdevy;
     else
       currentinstance->values[1].floatvalue = p.y;
     p.x = img.xaxis.lim.min + j * ((img.xaxis.lim.max - img.xaxis.lim.min) / (MESHDEPTH * PARTITIONS));
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[0].floatvalue = (p.x - meanx) / stdevx;
     else
       currentinstance->values[0].floatvalue = p.x;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     currentinstance->values[2].stringindex = predicted.classno;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     if (changedecisionthreshold == ON && current_dataset->classno == 2)
      {
       if (posteriors[0] > get_parameter_f("decisionthreshold"))
         predicted.classno = 0;
       else
         predicted.classno = 1;
      }
     if (predicted.classno != predictedx.classno && j != 1)
       add_object(OBJECT_POINT, p, dummyp, p3, st);
     if (current_dataset->classno == 2 && j != 1 && in_list(algorithm, 2, SVM, SIMPLEXSVM) && ((predicted.hingeloss == 0.0 && predictedx.hingeloss > 0.0) || (predicted.hingeloss > 0.0 && predictedx.hingeloss == 0.0)))
       add_object(OBJECT_POINT, p, dummyp, p4, st);
     predictedx = predicted;
    }
  }
 for (i = 1; i < MESHDEPTH * PARTITIONS; i++)
  {
   p.y = img.yaxis.lim.max - i * ((img.yaxis.lim.max - img.yaxis.lim.min) / (MESHDEPTH * PARTITIONS));
   for (j = 1; j < MESHDEPTH * PARTITIONS; j++)
    {     
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[1].floatvalue = (p.y - meany) / stdevy;
     else
       currentinstance->values[1].floatvalue = p.y;
     p.x = img.xaxis.lim.max - j * ((img.xaxis.lim.max - img.xaxis.lim.min) / (MESHDEPTH * PARTITIONS));
     if (classification_algorithms[algorithm - SELECTMAX].mustnormalize)
       currentinstance->values[0].floatvalue = (p.x - meanx) / stdevx;
     else
       currentinstance->values[0].floatvalue = p.x;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     currentinstance->values[2].stringindex = predicted.classno;
     predicted = classification_algorithms[algorithm - SELECTMAX].test_algorithm(currentinstance, model, parameters, posteriors);
     if (changedecisionthreshold == ON && current_dataset->classno == 2)
      {
       if (posteriors[0] > get_parameter_f("decisionthreshold"))
         predicted.classno = 0;
       else
         predicted.classno = 1;
      }
     if (predicted.classno != predictedx.classno && j != 1)
       add_object(OBJECT_POINT, p, dummyp, p3, st);
     if (current_dataset->classno == 2 && j != 1 && in_list(algorithm, 2, SVM, SIMPLEXSVM) && ((predicted.hingeloss == 0.0 && predictedx.hingeloss > 0.0) || (predicted.hingeloss > 0.0 && predictedx.hingeloss == 0.0)))
       add_object(OBJECT_POINT, p, dummyp, p4, st);
     predictedx = predicted;
    }
  }
 safe_free(posteriors);
 export_image();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %edx, %r14d
movq %rsi, 0xa8(%rsp)
movq %rdi, 0xa0(%rsp)
leaq 0x52eb5(%rip), %rdi     # 0xa7bf4
callq 0x536e7
movl %eax, 0x4c(%rsp)
leaq 0x7db21(%rip), %rax     # 0xd2870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
shlq $0x3, %rdi
leaq 0x52eab(%rip), %rsi     # 0xa7c0c
movl $0x2, %edx
callq 0x390f5
movq %rax, 0x40(%rsp)
leaq 0x5299e(%rip), %rdi     # 0xa7715
callq 0x536e7
testl %eax, %eax
jne 0x54d87
xorl %eax, %eax
callq 0x2da74
leaq 0x35a32a(%rip), %rax    # 0x3af0b8
movl 0xec(%rax), %ebx
leal 0x41(%rbx), %eax
movq %r14, 0x98(%rsp)
leal -0x3e8(%r14), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,4), %r14
leaq 0x7c40c(%rip), %r15     # 0xd11c0
movq 0x10(%r15,%r14,8), %rsi
movsbl %al, %edi
callq 0x2c324
movw $0x2e, 0xa(%rsp)
cmpl $0x0, 0x1c(%r15,%r14,8)
je 0x54e17
leaq 0x150(%rsp), %rax
leaq 0x120(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x8(%rcx), %xmm0
movsd %xmm0, 0x88(%rsp)
movq (%rax), %r13
movsd (%r13), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x54e19
sqrtsd %xmm0, %xmm0
jmp 0x54e22
jmp 0x54e45
callq 0x4300
xorpd %xmm1, %xmm1
movsd %xmm0, 0x78(%rsp)
movsd 0x8(%r13), %xmm0
ucomisd %xmm1, %xmm0
jb 0x54e3a
sqrtsd %xmm0, %xmm0
jmp 0x54e3f
callq 0x4300
movsd %xmm0, 0x70(%rsp)
leaq (%r15,%r14,8), %rbp
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movsd %xmm0, 0x90(%rsp)
movl $0x3, %edi
callq 0x152fc
movq %rax, 0x50(%rsp)
movl $0x1, %eax
movsd 0x4d6ab(%rip), %xmm1    # 0xa2520
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movapd %xmm1, %xmm0
movq 0x50(%rsp), %r13
movq 0xa0(%rsp), %r12
movq 0x40(%rsp), %r15
movl %eax, 0x28(%rsp)
leaq 0x35a21d(%rip), %rax    # 0x3af0b8
movapd %xmm0, %xmm1
movsd 0x10(%rax), %xmm0
movsd 0x18(%rax), %xmm2
subsd %xmm0, %xmm2
divsd 0x4fedb(%rip), %xmm2    # 0xa4d90
movsd %xmm1, 0x58(%rsp)
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rsp)
subsd 0x80(%rsp), %xmm2
divsd 0x78(%rsp), %xmm2
movsd %xmm2, 0x68(%rsp)
movl $0x1f3, %r14d           # imm = 0x1F3
movsd 0x4d634(%rip), %xmm0    # 0xa2520
movsd %xmm0, 0x18(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movl %ebx, 0x2c(%rsp)
cmpl $0x0, 0x1c(%rbp)
movsd 0x10(%rsp), %xmm0
je 0x54f14
movsd 0x68(%rsp), %xmm0
movl %r14d, 0xc(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax)
leaq 0x35a18c(%rip), %rax    # 0x3af0b8
movsd 0x80(%rax), %xmm0
movsd 0x88(%rax), %xmm1
subsd %xmm0, %xmm1
divsd 0x4fe48(%rip), %xmm1    # 0xa4d90
mulsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movq %rbp, %r9
cmpl $0x0, 0x1c(%rbp)
movapd %xmm1, %xmm0
je 0x54f72
movapd %xmm1, %xmm0
subsd 0x88(%rsp), %xmm0
divsd 0x70(%rsp), %xmm0
movsd %xmm1, 0x38(%rsp)
movq (%r13), %rax
movsd %xmm0, 0x8(%rax)
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq 0xa8(%rsp), %rbx
movq %rbx, %rcx
movq %r15, %r8
movq %r9, %rbp
callq *0x8(%r9)
movl 0xb8(%rsp), %eax
movq (%r13), %rcx
movl %eax, 0x10(%rcx)
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq *0x8(%rbp)
movl 0xb8(%rsp), %ebx
movsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
cmpl $0x1, 0x4c(%rsp)
jne 0x55025
leaq 0x7d885(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
movl 0xc(%rsp), %r14d
jne 0x5502a
movq 0x40(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x60(%rsp)
leaq 0x52beb(%rip), %rdi     # 0xa7bfa
callq 0x534b6
xorl %ebx, %ebx
movsd 0x60(%rsp), %xmm1
ucomisd %xmm0, %xmm1
setbe %bl
jmp 0x5502a
movl 0xc(%rsp), %r14d
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x5506d
cmpl 0x2c(%rsp), %ebx
je 0x5506d
movsd 0x7d02f(%rip), %xmm2    # 0xd2070
movsd 0x7d02f(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x10(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movsd 0x90(%rsp), %xmm4
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x55127
leaq 0x7d7ef(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
jne 0x55127
movq 0x98(%rsp), %rdi
movl $0x2, %esi
movl $0x3f9, %edx            # imm = 0x3F9
movl $0x3fa, %ecx            # imm = 0x3FA
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x55127
movsd 0x20(%rsp), %xmm0
ucomisd 0x4dc4a(%rip), %xmm0    # 0xa2d08
jne 0x550d2
jp 0x550d2
movsd 0x30(%rsp), %xmm0
ucomisd 0x4dc38(%rip), %xmm0    # 0xa2d08
ja 0x550f4
movsd 0x20(%rsp), %xmm0
ucomisd 0x4dc28(%rip), %xmm0    # 0xa2d08
jbe 0x55127
movsd 0x30(%rsp), %xmm0
ucomisd 0x4dc18(%rip), %xmm0    # 0xa2d08
jne 0x55127
jp 0x55127
movsd 0x7cf74(%rip), %xmm2    # 0xd2070
movsd 0x7cf74(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x10(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movsd 0x4fa1b(%rip), %xmm4    # 0xa4b38
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
movsd 0x4d3f1(%rip), %xmm0    # 0xa2520
movsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
decl %r14d
jne 0x54ef2
movsd 0x58(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movl 0x28(%rsp), %eax
incl %eax
cmpl $0x1f4, %eax            # imm = 0x1F4
jne 0x54e90
movl $0x1, %eax
movsd 0x4d3ac(%rip), %xmm0    # 0xa2520
movq 0x50(%rsp), %r13
movq 0xa0(%rsp), %r12
movq 0x40(%rsp), %r15
movl %eax, 0x28(%rsp)
leaq 0x359f27(%rip), %rax    # 0x3af0b8
movapd %xmm0, %xmm1
movsd 0x18(%rax), %xmm0
movapd %xmm0, %xmm2
subsd 0x10(%rax), %xmm2
divsd 0x4fbcd(%rip), %xmm2    # 0xa4d78
movsd %xmm1, 0x58(%rsp)
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rsp)
subsd 0x80(%rsp), %xmm2
divsd 0x78(%rsp), %xmm2
movsd %xmm2, 0x68(%rsp)
movl $0x1f3, %r14d           # imm = 0x1F3
movsd 0x4d33e(%rip), %xmm0    # 0xa2520
movsd %xmm0, 0x18(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movl %ebx, 0x2c(%rsp)
cmpl $0x0, 0x1c(%rbp)
movsd 0x10(%rsp), %xmm0
je 0x5520a
movsd 0x68(%rsp), %xmm0
movl %r14d, 0xc(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, (%rax)
leaq 0x359e96(%rip), %rax    # 0x3af0b8
movsd 0x88(%rax), %xmm0
movapd %xmm0, %xmm1
subsd 0x80(%rax), %xmm1
divsd 0x4fb3a(%rip), %xmm1    # 0xa4d78
mulsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movq %rbp, %r9
cmpl $0x0, 0x1c(%rbp)
movapd %xmm1, %xmm0
je 0x55268
movapd %xmm1, %xmm0
subsd 0x88(%rsp), %xmm0
divsd 0x70(%rsp), %xmm0
movsd %xmm1, 0x38(%rsp)
movq (%r13), %rax
movsd %xmm0, 0x8(%rax)
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq 0xa8(%rsp), %rbx
movq %rbx, %rcx
movq %r15, %r8
movq %r9, %rbp
callq *0x8(%r9)
movl 0xb8(%rsp), %eax
movq (%r13), %rcx
movl %eax, 0x10(%rcx)
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq *0x8(%rbp)
movl 0xb8(%rsp), %ebx
movsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
cmpl $0x1, 0x4c(%rsp)
jne 0x5531b
leaq 0x7d58f(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
movl 0xc(%rsp), %r14d
jne 0x55320
movq 0x40(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x60(%rsp)
leaq 0x528f5(%rip), %rdi     # 0xa7bfa
callq 0x534b6
xorl %ebx, %ebx
movsd 0x60(%rsp), %xmm1
ucomisd %xmm0, %xmm1
setbe %bl
jmp 0x55320
movl 0xc(%rsp), %r14d
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x55363
cmpl 0x2c(%rsp), %ebx
je 0x55363
movsd 0x7cd39(%rip), %xmm2    # 0xd2070
movsd 0x7cd39(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x10(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movsd 0x90(%rsp), %xmm4
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x5541d
leaq 0x7d4f9(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
jne 0x5541d
movq 0x98(%rsp), %rdi
movl $0x2, %esi
movl $0x3f9, %edx            # imm = 0x3F9
movl $0x3fa, %ecx            # imm = 0x3FA
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x5541d
movsd 0x20(%rsp), %xmm0
ucomisd 0x4d954(%rip), %xmm0    # 0xa2d08
jne 0x553c8
jp 0x553c8
movsd 0x30(%rsp), %xmm0
ucomisd 0x4d942(%rip), %xmm0    # 0xa2d08
ja 0x553ea
movsd 0x20(%rsp), %xmm0
ucomisd 0x4d932(%rip), %xmm0    # 0xa2d08
jbe 0x5541d
movsd 0x30(%rsp), %xmm0
ucomisd 0x4d922(%rip), %xmm0    # 0xa2d08
jne 0x5541d
jp 0x5541d
movsd 0x7cc7e(%rip), %xmm2    # 0xd2070
movsd 0x7cc7e(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x10(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movsd 0x4f725(%rip), %xmm4    # 0xa4b38
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
movsd 0x4d0fb(%rip), %xmm0    # 0xa2520
movsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
decl %r14d
jne 0x551e8
movsd 0x58(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movl 0x28(%rsp), %eax
incl %eax
cmpl $0x1f4, %eax            # imm = 0x1F4
jne 0x55186
movl $0x1, %eax
movsd 0x4d0b6(%rip), %xmm1    # 0xa2520
movapd %xmm1, %xmm0
movq 0xa0(%rsp), %r12
movq 0x40(%rsp), %r15
movl %eax, 0x28(%rsp)
leaq 0x359c32(%rip), %rax    # 0x3af0b8
movapd %xmm0, %xmm1
movsd 0x80(%rax), %xmm0
movsd 0x88(%rax), %xmm2
subsd %xmm0, %xmm2
divsd 0x4f8ea(%rip), %xmm2    # 0xa4d90
movsd %xmm1, 0x58(%rsp)
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rsp)
subsd 0x88(%rsp), %xmm2
divsd 0x70(%rsp), %xmm2
movsd %xmm2, 0x68(%rsp)
movl $0x1f3, %r14d           # imm = 0x1F3
movsd 0x4d043(%rip), %xmm0    # 0xa2520
movsd %xmm0, 0x18(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movl %ebx, 0x2c(%rsp)
cmpl $0x0, 0x1c(%rbp)
movsd 0x10(%rsp), %xmm0
je 0x55505
movsd 0x68(%rsp), %xmm0
movl %r14d, 0xc(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, 0x8(%rax)
leaq 0x359b9a(%rip), %rax    # 0x3af0b8
movsd 0x10(%rax), %xmm0
movsd 0x18(%rax), %xmm1
subsd %xmm0, %xmm1
divsd 0x4f85c(%rip), %xmm1    # 0xa4d90
mulsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movq %rbp, %r9
cmpl $0x0, 0x1c(%rbp)
movapd %xmm1, %xmm0
je 0x5555e
movapd %xmm1, %xmm0
subsd 0x80(%rsp), %xmm0
divsd 0x78(%rsp), %xmm0
movsd %xmm1, 0x38(%rsp)
movq 0x50(%rsp), %r14
movq (%r14), %rax
movsd %xmm0, (%rax)
leaq 0xb0(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq 0xa8(%rsp), %rbx
movq %rbx, %rcx
movq %r15, %r8
movq %r9, %rbp
callq *0x8(%r9)
movl 0xb8(%rsp), %eax
movq (%r14), %rcx
movl %eax, 0x10(%rcx)
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq *0x8(%rbp)
movl 0xb8(%rsp), %ebx
movsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
cmpl $0x1, 0x4c(%rsp)
jne 0x55613
leaq 0x7d297(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
movl 0xc(%rsp), %r14d
jne 0x55618
movq 0x40(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x60(%rsp)
leaq 0x525fd(%rip), %rdi     # 0xa7bfa
callq 0x534b6
xorl %ebx, %ebx
movsd 0x60(%rsp), %xmm1
ucomisd %xmm0, %xmm1
setbe %bl
jmp 0x55618
movl 0xc(%rsp), %r14d
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x5565b
cmpl 0x2c(%rsp), %ebx
je 0x5565b
movsd 0x7ca41(%rip), %xmm2    # 0xd2070
movsd 0x7ca41(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x38(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x90(%rsp), %xmm4
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x55715
leaq 0x7d201(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
jne 0x55715
movq 0x98(%rsp), %rdi
movl $0x2, %esi
movl $0x3f9, %edx            # imm = 0x3F9
movl $0x3fa, %ecx            # imm = 0x3FA
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x55715
movsd 0x20(%rsp), %xmm0
ucomisd 0x4d65c(%rip), %xmm0    # 0xa2d08
jne 0x556c0
jp 0x556c0
movsd 0x30(%rsp), %xmm0
ucomisd 0x4d64a(%rip), %xmm0    # 0xa2d08
ja 0x556e2
movsd 0x20(%rsp), %xmm0
ucomisd 0x4d63a(%rip), %xmm0    # 0xa2d08
jbe 0x55715
movsd 0x30(%rsp), %xmm0
ucomisd 0x4d62a(%rip), %xmm0    # 0xa2d08
jne 0x55715
jp 0x55715
movsd 0x7c986(%rip), %xmm2    # 0xd2070
movsd 0x7c986(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x38(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x4f42d(%rip), %xmm4    # 0xa4b38
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
movsd 0x4ce03(%rip), %xmm0    # 0xa2520
movsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
decl %r14d
jne 0x554e3
movsd 0x58(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movl 0x28(%rsp), %eax
incl %eax
cmpl $0x1f4, %eax            # imm = 0x1F4
jne 0x5547b
movl $0x1, %eax
movsd 0x4cdbe(%rip), %xmm0    # 0xa2520
movq 0x50(%rsp), %r13
movq 0xa0(%rsp), %r12
movq 0x40(%rsp), %r15
movl %eax, 0x28(%rsp)
leaq 0x359939(%rip), %rax    # 0x3af0b8
movapd %xmm0, %xmm1
movsd 0x88(%rax), %xmm0
movapd %xmm0, %xmm2
subsd 0x80(%rax), %xmm2
divsd 0x4f5d9(%rip), %xmm2    # 0xa4d78
movsd %xmm1, 0x58(%rsp)
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rsp)
subsd 0x88(%rsp), %xmm2
divsd 0x70(%rsp), %xmm2
movsd %xmm2, 0x68(%rsp)
movl $0x1f3, %r14d           # imm = 0x1F3
movsd 0x4cd4a(%rip), %xmm0    # 0xa2520
movsd %xmm0, 0x18(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movl %ebx, 0x2c(%rsp)
cmpl $0x0, 0x1c(%rbp)
movsd 0x10(%rsp), %xmm0
je 0x557fe
movsd 0x68(%rsp), %xmm0
movl %r14d, 0xc(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rax
movsd %xmm0, 0x8(%rax)
leaq 0x3598a1(%rip), %rax    # 0x3af0b8
movsd 0x18(%rax), %xmm0
movapd %xmm0, %xmm1
subsd 0x10(%rax), %xmm1
divsd 0x4f54b(%rip), %xmm1    # 0xa4d78
mulsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movq %rbp, %r9
cmpl $0x0, 0x1c(%rbp)
movapd %xmm1, %xmm0
je 0x55857
movapd %xmm1, %xmm0
subsd 0x80(%rsp), %xmm0
divsd 0x78(%rsp), %xmm0
movsd %xmm1, 0x38(%rsp)
movq (%r13), %rax
movsd %xmm0, (%rax)
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq 0xa8(%rsp), %rbx
movq %rbx, %rcx
movq %r15, %r8
movq %r9, %rbp
callq *0x8(%r9)
movl 0xb8(%rsp), %eax
movq (%r13), %rcx
movl %eax, 0x10(%rcx)
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq *0x8(%rbp)
movl 0xb8(%rsp), %ebx
movsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
cmpl $0x1, 0x4c(%rsp)
jne 0x55909
leaq 0x7cfa1(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
movl 0xc(%rsp), %r14d
jne 0x5590e
movq 0x40(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x60(%rsp)
leaq 0x52307(%rip), %rdi     # 0xa7bfa
callq 0x534b6
xorl %ebx, %ebx
movsd 0x60(%rsp), %xmm1
ucomisd %xmm0, %xmm1
setbe %bl
jmp 0x5590e
movl 0xc(%rsp), %r14d
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x55951
cmpl 0x2c(%rsp), %ebx
je 0x55951
movsd 0x7c74b(%rip), %xmm2    # 0xd2070
movsd 0x7c74b(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x38(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x90(%rsp), %xmm4
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
cmpl $0x1f3, %r14d           # imm = 0x1F3
je 0x55a0b
leaq 0x7cf0b(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x2, 0x10(%rax)
jne 0x55a0b
movq 0x98(%rsp), %rdi
movl $0x2, %esi
movl $0x3f9, %edx            # imm = 0x3F9
movl $0x3fa, %ecx            # imm = 0x3FA
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x55a0b
movsd 0x20(%rsp), %xmm0
ucomisd 0x4d366(%rip), %xmm0    # 0xa2d08
jne 0x559b6
jp 0x559b6
movsd 0x30(%rsp), %xmm0
ucomisd 0x4d354(%rip), %xmm0    # 0xa2d08
ja 0x559d8
movsd 0x20(%rsp), %xmm0
ucomisd 0x4d344(%rip), %xmm0    # 0xa2d08
jbe 0x55a0b
movsd 0x30(%rsp), %xmm0
ucomisd 0x4d334(%rip), %xmm0    # 0xa2d08
jne 0x55a0b
jp 0x55a0b
movsd 0x7c690(%rip), %xmm2    # 0xd2070
movsd 0x7c690(%rip), %xmm3    # 0xd2078
movl $0x8, %edi
movsd 0x38(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x4f137(%rip), %xmm4    # 0xa4b38
leaq 0xa(%rsp), %rsi
callq 0x2c3cc
movsd 0x4cb0d(%rip), %xmm0    # 0xa2520
movsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
decl %r14d
jne 0x557dc
movsd 0x58(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movl 0x28(%rsp), %eax
incl %eax
cmpl $0x1f4, %eax            # imm = 0x1F4
jne 0x55774
movq 0x40(%rsp), %rdi
callq 0x39194
xorl %eax, %eax
callq 0x2de4a
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq