// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/eps.c
// Function: plot_decision_leaf_model
void plot_decision_leaf_model(FILE* outfile, Decisionnodeptr rootnode, Point p, int radius)
{
 Prediction predicted, predictedold;
 double output, input1, input2, prevoutput;
 double min1 = current_dataset->features[0].min.floatvalue, max1 = current_dataset->features[0].max.floatvalue;
 double min2 = current_dataset->features[1].min.floatvalue, max2 = current_dataset->features[1].max.floatvalue; 
 int i, j, posx1, posx2, posy1, posy2, width = (2 * WIDTHFACTOR - 0.5) * radius, height = width, left = p.x - width / 2, right = p.x + width / 2, top = p.y - 2 * radius, bottom = p.y - 2 * radius - height;
 write_rectangle(outfile, left, top, right, bottom, FILL_NONE, BLACK);
 setcolor(outfile, RED);
 for (i = 1; i < width; i++)
  {
   input1 = ((min1 + i * ((max1 - min1) / width)) - mean.values[0].floatvalue) / sqrt(variance.values[0].floatvalue);
   for (j = 1; j < width; j++)
    {
     input2 = ((min2 + j * ((max2 - min2) / width)) - mean.values[1].floatvalue) / sqrt(variance.values[1].floatvalue);      
     output = sigmoid(soft_output_of_subdecisiontree(rootnode, input1, input2));
     if (output > 0.5)
       predicted.classno = 1;
     else
       predicted.classno = 0;
     if (predictedold.classno != predicted.classno && j != 1)
       write_string(outfile, left + i, bottom + j, ".", ALIGN_LEFT);
     predictedold = predicted;
    }
  }
 for (i = width - 1; i > 0; i--)
  {
   input1 = ((min1 + i * ((max1 - min1) / width)) - mean.values[0].floatvalue) / sqrt(variance.values[0].floatvalue);
   for (j = width - 1; j > 0; j--)
    {
     input2 = ((min2 + j * ((max2 - min2) / width)) - mean.values[1].floatvalue) / sqrt(variance.values[1].floatvalue);      
     output = sigmoid(soft_output_of_subdecisiontree(rootnode, input1, input2));
     if (output > 0.5)
       predicted.classno = 1;
     else
       predicted.classno = 0;
     if (predictedold.classno != predicted.classno && j != width - 1)
       write_string(outfile, left + i, bottom + j, ".", ALIGN_LEFT);
     predictedold = predicted;
    }
  }
 for (i = 1; i < width; i++)
  {
   input2 = ((min2 + i * ((max2 - min2) / width)) - mean.values[1].floatvalue) / sqrt(variance.values[1].floatvalue);
   for (j = 1; j < width; j++)
    {
     input1 = ((min1 + j * ((max1 - min1) / width)) - mean.values[0].floatvalue) / sqrt(variance.values[0].floatvalue);      
     output = sigmoid(soft_output_of_subdecisiontree(rootnode, input1, input2));
     if (output > 0.5)
       predicted.classno = 1;
     else
       predicted.classno = 0;
     if (predictedold.classno != predicted.classno && j != 1)
       write_string(outfile, left + j, bottom + i, ".", ALIGN_LEFT);
     predictedold = predicted;
    }
  }
 for (i = width - 1; i > 0; i--)
  {
   input2 = ((min2 + i * ((max2 - min2) / width)) - mean.values[1].floatvalue) / sqrt(variance.values[1].floatvalue);
   for (j = width - 1; j > 0; j--)
    {
     input1 = ((min1 + j * ((max1 - min1) / width)) - mean.values[0].floatvalue) / sqrt(variance.values[0].floatvalue);      
     output = sigmoid(soft_output_of_subdecisiontree(rootnode, input1, input2));
     if (output > 0.5)
       predicted.classno = 1;
     else
       predicted.classno = 0;
     if (predictedold.classno != predicted.classno && j != width - 1)
       write_string(outfile, left + j, bottom + i, ".", ALIGN_LEFT);
     predictedold = predicted;
    }
  }
 setcolor(outfile, BLACK); 
 if (rootnode->featureno != LEAF_NODE)
  {  
   for (i = 0; i < width; i++)
    {
     input1 = ((min1 + i * ((max1 - min1) / width)) - mean.values[0].floatvalue) / sqrt(variance.values[0].floatvalue);
     input2 = -(rootnode->w.values[0][0] + rootnode->w.values[1][0] * input1) / rootnode->w.values[2][0];
     output = input2 * sqrt(variance.values[1].floatvalue) + mean.values[1].floatvalue;
     if (i != 0 && output >= min2 && output <= max2 && prevoutput >= min2 && prevoutput <= max2)
      {
       posy1 = return_pos(prevoutput, bottom, top, min2, max2);
       posy2 = return_pos(output, bottom, top, min2, max2);
       write_line(outfile, left + i - 1, posy1, left + i, posy2);            
      }
     prevoutput = output;
    }
   for (i = 0; i < width; i++)
    {
     input2 = ((min2 + i * ((max2 - min2) / width)) - mean.values[1].floatvalue) / sqrt(variance.values[1].floatvalue);
     input1 = -(rootnode->w.values[0][0] + rootnode->w.values[2][0] * input2) / rootnode->w.values[1][0];
     output = input1 * sqrt(variance.values[0].floatvalue) + mean.values[0].floatvalue;
     if (i != 0 && output >= min1 && output <= max1 && prevoutput >= min1 && prevoutput <= max1)
      {
       posx1 = return_pos(prevoutput, left, right, min1, max1);
       posx2 = return_pos(output, left, right, min1, max1);
       write_line(outfile, posx1, bottom + i - 1, posx2, bottom + i);            
      }
     prevoutput = output;
    }
  }
 else
   if (rootnode->leaftype == CONSTANTLEAF)
    {
     for (i = 0; i < width; i++)
      {
       input1 = ((min1 + i * ((max1 - min1) / width)) - mean.values[0].floatvalue) / sqrt(variance.values[0].floatvalue);
       for (j = 0; j < width; j++)
        {
         input2 = ((min2 + j * ((max2 - min2) / width)) - mean.values[1].floatvalue) / sqrt(variance.values[1].floatvalue);      
         output = sigmoid(soft_output_of_subdecisiontree(rootnode, input1, input2));
         fprintf(outfile, "%.3f %.3f %.3f setrgbcolor\n", 1 - output, 1 - output, 1 - output);
         write_string(outfile, left + i, bottom + j, ".", ALIGN_CENTER);
        }
      }     
    }
 setcolor(outfile, BLACK);     
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, 0x18(%rsp)
movq %rdi, %rbx
leaq 0xb1e33(%rip), %rax     # 0xd5870
movq (%rax), %rax
cvtsi2sd %edx, %xmm2
mulsd 0x8438c(%rip), %xmm2    # 0xa7dd8
cvttsd2si %xmm2, %r14d
movl %r14d, %ecx
shrl $0x1f, %ecx
addl %r14d, %ecx
sarl %ecx
cvtsi2sd %ecx, %xmm3
movapd %xmm0, %xmm4
subsd %xmm3, %xmm4
cvttsd2si %xmm4, %r10d
movsd 0x30f10(%rax), %xmm4
movsd %xmm4, 0x38(%rsp)
addsd %xmm0, %xmm3
cvttsd2si %xmm3, %r8d
movsd 0x30f18(%rax), %xmm0
movsd %xmm0, 0x60(%rsp)
addl %edx, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd 0x31250(%rax), %xmm3
movsd %xmm3, 0x48(%rsp)
subsd %xmm0, %xmm1
cvttsd2si %xmm1, %ecx
cvttpd2dq %xmm2, %xmm0
cvtdq2pd %xmm0, %xmm2
movsd 0x31258(%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movapd %xmm2, 0xa0(%rsp)
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %r9d
leaq 0x845be(%rip), %rsi     # 0xa809e
movq %r10, 0x78(%rsp)
movl %r10d, %edx
movl %ecx, 0x9c(%rsp)
movl %r8d, 0x98(%rsp)
movq %r9, 0x68(%rsp)
xorl %eax, %eax
callq 0x42e0
movsd 0xb10cd(%rip), %xmm0    # 0xd4bd8
movsd 0xb10cd(%rip), %xmm1    # 0xd4be0
movsd 0xb10cd(%rip), %xmm2    # 0xd4be8
leaq 0x843f3(%rip), %rsi     # 0xa7f15
movq %rbx, 0x70(%rsp)
movq %rbx, %rdi
movb $0x3, %al
callq 0x42e0
movq %r14, 0x8(%rsp)
cmpl $0x2, %r14d
jl 0x2413d
movsd 0x60(%rsp), %xmm1
subsd 0x38(%rsp), %xmm1
movapd 0xa0(%rsp), %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x80(%rsp)
movsd 0x50(%rsp), %xmm1
subsd 0x48(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x40(%rsp)
movl $0x1, %r15d
movsd 0x8199a(%rip), %xmm0    # 0xa5520
leaq 0x84c95(%rip), %r13     # 0xa8822
movsd %xmm0, 0x88(%rsp)
mulsd 0x80(%rsp), %xmm0
addsd 0x38(%rsp), %xmm0
leaq 0x38e3fc(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x38e418(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd (%rax), %xmm0
ucomisd 0x82139(%rip), %xmm0    # 0xa5d08
jb 0x23bd7
sqrtsd %xmm0, %xmm0
jmp 0x23bdc
callq 0x4300
movsd 0x10(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movq 0x78(%rsp), %rax
leal (%r15,%rax), %ebp
movl $0x1, %r12d
movsd 0x8191d(%rip), %xmm0    # 0xa5520
movl %ebx, %r14d
movsd %xmm0, 0x20(%rsp)
movapd %xmm0, %xmm1
mulsd 0x40(%rsp), %xmm1
addsd 0x48(%rsp), %xmm1
leaq 0x38e385(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd 0x8(%rax), %xmm1
leaq 0x38e3a6(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x820c6(%rip), %xmm0    # 0xa5d08
jb 0x23c4a
sqrtsd %xmm0, %xmm0
jmp 0x23c5b
movsd %xmm1, 0x58(%rsp)
callq 0x4300
movsd 0x58(%rsp), %xmm1
movq 0x18(%rsp), %rdi
divsd %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
callq 0x1e222
callq 0x55a80
xorl %ebx, %ebx
ucomisd 0x8209a(%rip), %xmm0    # 0xa5d18
seta %bl
cmpl $0x1, %r12d
je 0x23ca7
cmpl %ebx, %r14d
je 0x23ca7
movq 0x68(%rsp), %rax
leal (%rax,%r12), %edx
movq 0x70(%rsp), %rdi
movl %ebp, %esi
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x23500
movsd 0x20(%rsp), %xmm0
addsd 0x8186b(%rip), %xmm0    # 0xa5520
incl %r12d
cmpl %r12d, 0x8(%rsp)
jne 0x23c03
movsd 0x88(%rsp), %xmm0
addsd 0x8184c(%rip), %xmm0    # 0xa5520
incl %r15d
cmpl 0x8(%rsp), %r15d
jne 0x23b8d
cmpl $0x2, 0x8(%rsp)
jl 0x2413d
movq 0x8(%rsp), %rax
leal -0x1(%rax), %ecx
movq 0x68(%rsp), %rax
decl %eax
movl %eax, 0x58(%rsp)
movq %rcx, 0x90(%rsp)
movl %ecx, %r14d
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
mulsd 0x80(%rsp), %xmm0
addsd 0x38(%rsp), %xmm0
leaq 0x38e27f(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
leaq 0x38e29b(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd (%rax), %xmm0
ucomisd 0x81fbc(%rip), %xmm0    # 0xa5d08
jb 0x23d54
sqrtsd %xmm0, %xmm0
jmp 0x23d59
callq 0x4300
movsd 0x20(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x78(%rsp), %rax
movq %r14, 0x88(%rsp)
leal (%r14,%rax), %ebp
xorl %r12d, %r12d
movq 0x8(%rsp), %r13
leal -0x1(%r13), %r14d
xorps %xmm1, %xmm1
cvtsi2sd %r14d, %xmm1
mulsd 0x40(%rsp), %xmm1
addsd 0x48(%rsp), %xmm1
leaq 0x38e207(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd 0x8(%rax), %xmm1
leaq 0x38e228(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x81f48(%rip), %xmm0    # 0xa5d08
jb 0x23dc8
sqrtsd %xmm0, %xmm0
jmp 0x23dd9
movsd %xmm1, 0x10(%rsp)
callq 0x4300
movsd 0x10(%rsp), %xmm1
movq 0x18(%rsp), %rdi
divsd %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
callq 0x1e222
callq 0x55a80
xorl %r15d, %r15d
ucomisd 0x81f1b(%rip), %xmm0    # 0xa5d18
seta %r15b
cmpl %r15d, %ebx
sete %al
testl %r12d, %r12d
sete %cl
orb %al, %cl
jne 0x23e2f
addl 0x58(%rsp), %r13d
movq 0x70(%rsp), %rdi
movl %ebp, %esi
movl %r13d, %edx
leaq 0x849fb(%rip), %rcx     # 0xa8822
xorl %r8d, %r8d
callq 0x23500
incl %r12d
movl %r14d, %r13d
movl %r15d, %ebx
cmpl $0x1, %r14d
jg 0x23d82
movq 0x88(%rsp), %rcx
leal -0x1(%rcx), %eax
movl %r15d, %ebx
cmpl $0x1, %ecx
movl %eax, %r14d
jg 0x23d0b
cmpl $0x2, 0x8(%rsp)
jl 0x2413d
movl $0x1, %ebx
movsd 0x816ac(%rip), %xmm0    # 0xa5520
leaq 0x849a7(%rip), %r13     # 0xa8822
movsd %xmm0, 0x88(%rsp)
mulsd 0x40(%rsp), %xmm0
addsd 0x48(%rsp), %xmm0
leaq 0x38e111(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd 0x8(%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x38e12c(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x81e4c(%rip), %xmm0    # 0xa5d08
jb 0x23ec4
sqrtsd %xmm0, %xmm0
jmp 0x23ec9
callq 0x4300
movsd 0x10(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movq 0x68(%rsp), %rax
leal (%rbx,%rax), %ebp
movl $0x1, %r12d
movsd 0x81631(%rip), %xmm1    # 0xa5520
movl %r15d, %r14d
movsd %xmm1, 0x20(%rsp)
mulsd 0x80(%rsp), %xmm1
addsd 0x38(%rsp), %xmm1
leaq 0x38e09a(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd (%rax), %xmm1
leaq 0x38e0bc(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd (%rax), %xmm0
ucomisd 0x81ddd(%rip), %xmm0    # 0xa5d08
jb 0x23f33
sqrtsd %xmm0, %xmm0
jmp 0x23f44
movsd %xmm1, 0x58(%rsp)
callq 0x4300
movsd 0x58(%rsp), %xmm1
movq 0x18(%rsp), %rdi
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movsd 0x10(%rsp), %xmm1
callq 0x1e222
callq 0x55a80
xorl %r15d, %r15d
ucomisd 0x81dac(%rip), %xmm0    # 0xa5d18
seta %r15b
cmpl $0x1, %r12d
je 0x23f96
cmpl %r15d, %r14d
je 0x23f96
movq 0x78(%rsp), %rax
leal (%rax,%r12), %esi
movq 0x70(%rsp), %rdi
movl %ebp, %edx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x23500
movsd 0x20(%rsp), %xmm1
addsd 0x8157c(%rip), %xmm1    # 0xa5520
incl %r12d
cmpl %r12d, 0x8(%rsp)
jne 0x23eef
movsd 0x88(%rsp), %xmm0
addsd 0x8155d(%rip), %xmm0    # 0xa5520
incl %ebx
cmpl 0x8(%rsp), %ebx
jne 0x23e7b
cmpl $0x2, 0x8(%rsp)
movq 0x90(%rsp), %rbx
jl 0x2413d
movq 0x78(%rsp), %rax
decl %eax
movl %eax, 0x58(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd 0x40(%rsp), %xmm0
addsd 0x48(%rsp), %xmm0
leaq 0x38dfa1(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd 0x8(%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
leaq 0x38dfbc(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x81cdc(%rip), %xmm0    # 0xa5d08
jb 0x24034
sqrtsd %xmm0, %xmm0
jmp 0x24039
callq 0x4300
movsd 0x20(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x68(%rsp), %rax
movq %rbx, 0x90(%rsp)
leal (%rbx,%rax), %ebp
xorl %r12d, %r12d
movq 0x8(%rsp), %r13
leal -0x1(%r13), %r14d
xorps %xmm1, %xmm1
cvtsi2sd %r14d, %xmm1
mulsd 0x80(%rsp), %xmm1
addsd 0x38(%rsp), %xmm1
leaq 0x38df25(%rip), %rax    # 0x3b1fa8
movq (%rax), %rax
subsd (%rax), %xmm1
leaq 0x38df47(%rip), %rax    # 0x3b1fd8
movq (%rax), %rax
movsd (%rax), %xmm0
ucomisd 0x81c68(%rip), %xmm0    # 0xa5d08
jb 0x240a8
sqrtsd %xmm0, %xmm0
jmp 0x240b9
movsd %xmm1, 0x10(%rsp)
callq 0x4300
movsd 0x10(%rsp), %xmm1
movq 0x18(%rsp), %rdi
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movsd 0x20(%rsp), %xmm1
callq 0x1e222
callq 0x55a80
xorl %ebx, %ebx
ucomisd 0x81c38(%rip), %xmm0    # 0xa5d18
seta %bl
cmpl %ebx, %r15d
sete %al
testl %r12d, %r12d
sete %cl
orb %al, %cl
jne 0x24111
addl 0x58(%rsp), %r13d
movq 0x70(%rsp), %rdi
movl %r13d, %esi
movl %ebp, %edx
leaq 0x84719(%rip), %rcx     # 0xa8822
xorl %r8d, %r8d
callq 0x23500
incl %r12d
movl %r14d, %r13d
movl %ebx, %r15d
cmpl $0x1, %r14d
jg 0x24061
movq 0x90(%rsp), %rcx
leal -0x1(%rcx), %eax
movl %ebx, %r15d
cmpl $0x1, %ecx
movl %eax, %ebx
jg 0x23fed
movsd 0xb0a7b(%rip), %xmm0    # 0xd4bc0
movsd 0xb0a7b(%rip), %xmm1    # 0xd4bc8
movsd 0xb0a7b(%rip), %xmm2    # 0xd4bd0
leaq 0x83db9(%rip), %rsi     # 0xa7f15
movq 0x70(%rsp), %rdi
movb $0x3, %al
callq 0x42e0
movq 0x18(%rsp), %rax
cmpl $-0x1, 0x30(%rax)
je 0x24528
cmpl $0x0, 0x8(%rsp)
jle 0x246da
movsd 0x60(%rsp), %xmm0
subsd 0x38(%rsp), %xmm0
divsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
leaq 0x38de04(%rip), %r14    # 0x3b1fa8
movq (%r14), %rax
movq 0x8(%rsp), %rcx
movl %ecx, %ebx
negl %ebx
leaq 0x38de21(%rip), %r13    # 0x3b1fd8
movq 0x78(%rsp), %r15
xorl %ebp, %ebp
xorpd %xmm0, %xmm0
movl 0x9c(%rsp), %r12d
movaps %xmm3, %xmm2
movsd %xmm0, 0x40(%rsp)
movapd %xmm0, %xmm3
mulsd 0x58(%rsp), %xmm3
addsd 0x38(%rsp), %xmm3
subsd (%rax), %xmm3
movq (%r13), %rax
movsd (%rax), %xmm0
ucomisd 0x81b11(%rip), %xmm0    # 0xa5d08
movsd %xmm2, 0x10(%rsp)
jb 0x24205
sqrtsd %xmm0, %xmm0
jmp 0x24216
movapd %xmm3, 0x20(%rsp)
callq 0x4300
movapd 0x20(%rsp), %xmm3
movq 0x18(%rsp), %rax
divsd %xmm0, %xmm3
movq 0x40(%rax), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rdx
mulsd (%rdx), %xmm3
addsd (%rcx), %xmm3
xorpd 0x81f96(%rip), %xmm3    # 0xa61d0
movq 0x10(%rax), %rax
divsd (%rax), %xmm3
movq (%r13), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x81ab5(%rip), %xmm0    # 0xa5d08
jb 0x2425b
sqrtsd %xmm0, %xmm0
jmp 0x2426c
movapd %xmm3, 0x20(%rsp)
callq 0x4300
movapd 0x20(%rsp), %xmm3
movsd 0x10(%rsp), %xmm2
mulsd %xmm0, %xmm3
movq (%r14), %rax
addsd 0x8(%rax), %xmm3
subl $0x1, %ebp
jb 0x24338
ucomisd 0x48(%rsp), %xmm3
jb 0x24338
movsd 0x50(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0x24338
ucomisd 0x48(%rsp), %xmm2
jb 0x24338
movsd 0x50(%rsp), %xmm0
ucomisd %xmm2, %xmm0
jb 0x24338
movapd %xmm2, %xmm0
movq 0x68(%rsp), %r14
movl %r14d, %edi
movl %r12d, %esi
movapd %xmm3, 0x20(%rsp)
movsd 0x48(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
callq 0x2e6b3
movl %eax, %r13d
movapd 0x20(%rsp), %xmm0
movl %r14d, %edi
leaq 0x38dcb4(%rip), %r14    # 0x3b1fa8
movl %r12d, %esi
movsd 0x48(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
callq 0x2e6b3
leal -0x1(%r15), %edx
movq 0x70(%rsp), %rdi
leaq 0x83d42(%rip), %rsi     # 0xa805a
movl %r13d, %ecx
leaq 0x38dcb6(%rip), %r13    # 0x3b1fd8
movl %r15d, %r8d
movl %eax, %r9d
xorl %eax, %eax
callq 0x42e0
movapd 0x20(%rsp), %xmm3
movq (%r14), %rax
movsd 0x40(%rsp), %xmm0
addsd 0x811da(%rip), %xmm0    # 0xa5520
incl %r15d
cmpl %ebp, %ebx
jne 0x241ca
cmpl $0x0, 0x8(%rsp)
jle 0x246da
movsd 0x50(%rsp), %xmm0
subsd 0x48(%rsp), %xmm0
divsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movq (%r14), %rax
leaq 0x83cd9(%rip), %r15     # 0xa805a
xorl %r12d, %r12d
xorpd %xmm0, %xmm0
movapd %xmm3, %xmm2
movsd %xmm0, 0x8(%rsp)
movapd %xmm0, %xmm3
mulsd 0x50(%rsp), %xmm3
addsd 0x48(%rsp), %xmm3
subsd 0x8(%rax), %xmm3
movq (%r13), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x81950(%rip), %xmm0    # 0xa5d08
movsd %xmm2, 0x40(%rsp)
jb 0x243c6
sqrtsd %xmm0, %xmm0
jmp 0x243d7
movapd %xmm3, 0x20(%rsp)
callq 0x4300
movapd 0x20(%rsp), %xmm3
movq 0x18(%rsp), %rax
divsd %xmm0, %xmm3
movq 0x40(%rax), %rax
movq 0x10(%rax), %rcx
mulsd (%rcx), %xmm3
movq (%rax), %rcx
addsd (%rcx), %xmm3
movq 0x8(%rax), %rax
xorpd 0x81dd1(%rip), %xmm3    # 0xa61d0
divsd (%rax), %xmm3
movq (%r13), %rax
movsd (%rax), %xmm0
ucomisd 0x818f5(%rip), %xmm0    # 0xa5d08
jb 0x2441b
sqrtsd %xmm0, %xmm0
jmp 0x2442c
movapd %xmm3, 0x20(%rsp)
callq 0x4300
movapd 0x20(%rsp), %xmm3
movsd 0x40(%rsp), %xmm2
mulsd %xmm0, %xmm3
movq (%r14), %rax
addsd (%rax), %xmm3
subl $0x1, %r12d
jb 0x24500
ucomisd 0x38(%rsp), %xmm3
jb 0x24500
movsd 0x60(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0x24500
ucomisd 0x38(%rsp), %xmm2
jb 0x24500
movsd 0x60(%rsp), %xmm0
ucomisd %xmm2, %xmm0
jb 0x24500
movapd %xmm2, %xmm0
movq 0x78(%rsp), %r14
movl %r14d, %edi
movl 0x98(%rsp), %r13d
movl %r13d, %esi
movapd %xmm3, 0x20(%rsp)
movsd 0x38(%rsp), %xmm1
movsd 0x60(%rsp), %xmm2
callq 0x2e6b3
movl %eax, %ebp
movapd 0x20(%rsp), %xmm0
movl %r14d, %edi
leaq 0x38dae9(%rip), %r14    # 0x3b1fa8
movl %r13d, %esi
leaq 0x38db0f(%rip), %r13    # 0x3b1fd8
movsd 0x38(%rsp), %xmm1
movsd 0x60(%rsp), %xmm2
callq 0x2e6b3
movq 0x68(%rsp), %r9
leal -0x1(%r9), %ecx
movq 0x70(%rsp), %rdi
movq %r15, %rsi
movl %ebp, %edx
movl %eax, %r8d
xorl %eax, %eax
callq 0x42e0
movapd 0x20(%rsp), %xmm3
movq (%r14), %rax
movsd 0x8(%rsp), %xmm0
addsd 0x81012(%rip), %xmm0    # 0xa5520
movq 0x68(%rsp), %rcx
incl %ecx
movq %rcx, 0x68(%rsp)
cmpl %r12d, %ebx
jne 0x24388
jmp 0x246da
cmpl $0x0, 0x60(%rax)
setne %al
cmpl $0x0, 0x8(%rsp)
setle %cl
orb %al, %cl
jne 0x246da
movsd 0x60(%rsp), %xmm0
subsd 0x38(%rsp), %xmm0
movapd 0xa0(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x60(%rsp)
movsd 0x50(%rsp), %xmm0
subsd 0x48(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x50(%rsp)
xorl %r14d, %r14d
leaq 0x38da2a(%rip), %rbx    # 0x3b1fa8
leaq 0x38da53(%rip), %r15    # 0x3b1fd8
leaq 0x84296(%rip), %rbp     # 0xa8822
xorpd %xmm0, %xmm0
movsd %xmm0, 0x80(%rsp)
mulsd 0x60(%rsp), %xmm0
addsd 0x38(%rsp), %xmm0
movq (%rbx), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0x40(%rsp)
movq (%r15), %rax
movsd (%rax), %xmm0
ucomisd 0x81747(%rip), %xmm0    # 0xa5d08
jb 0x245c9
sqrtsd %xmm0, %xmm0
jmp 0x245ce
callq 0x4300
movsd 0x40(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x40(%rsp)
movq 0x78(%rsp), %rax
movq %r14, 0x58(%rsp)
leal (%r14,%rax), %r13d
xorl %r12d, %r12d
xorpd %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movapd %xmm0, %xmm1
mulsd 0x50(%rsp), %xmm1
addsd 0x48(%rsp), %xmm1
movq (%rbx), %rax
subsd 0x8(%rax), %xmm1
movq (%r15), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x816e7(%rip), %xmm0    # 0xa5d08
jb 0x24629
sqrtsd %xmm0, %xmm0
jmp 0x2463a
movsd %xmm1, 0x10(%rsp)
callq 0x4300
movsd 0x10(%rsp), %xmm1
movq 0x18(%rsp), %rdi
divsd %xmm0, %xmm1
movsd 0x40(%rsp), %xmm0
callq 0x1e222
callq 0x55a80
movsd 0x80ec5(%rip), %xmm1    # 0xa5520
subsd %xmm0, %xmm1
movq 0x70(%rsp), %r14
movq %r14, %rdi
leaq 0x838a7(%rip), %rsi     # 0xa7f15
movapd %xmm1, %xmm0
movapd %xmm1, %xmm2
movb $0x3, %al
callq 0x42e0
movq 0x68(%rsp), %rax
leal (%rax,%r12), %edx
movq %r14, %rdi
movl %r13d, %esi
movq %rbp, %rcx
movl $0x2, %r8d
callq 0x23500
movsd 0x20(%rsp), %xmm0
addsd 0x80e78(%rip), %xmm0    # 0xa5520
incl %r12d
cmpl %r12d, 0x8(%rsp)
jne 0x245f3
movsd 0x80(%rsp), %xmm0
addsd 0x80e59(%rip), %xmm0    # 0xa5520
movq 0x58(%rsp), %r14
incl %r14d
cmpl 0x8(%rsp), %r14d
jne 0x24590
movsd 0xb04de(%rip), %xmm0    # 0xd4bc0
movsd 0xb04de(%rip), %xmm1    # 0xd4bc8
movsd 0xb04de(%rip), %xmm2    # 0xd4bd0
leaq 0x8381c(%rip), %rsi     # 0xa7f15
movq 0x70(%rsp), %rdi
movb $0x3, %al
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42e0