// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/dataset.c
// Function: k_way_anova_dataset_discrete
void k_way_anova_dataset_discrete(Datasetptr d, Instanceptr data, int* features, int fdependent)
{
 /*!Last Changed 07.05.2004 only for three way currently*/
 int ***counts, *rowsums, *colsums, *depsums, datasize, **rcsums, **rfsums, **cfsums;
 int rowsize, colsize, dependentsize, i, j, k, row, col, index;
 double expected, sum, completeconf, onefactorconf, conditionalconf;
 Instanceptr tmp;
 rowsize = d->features[features[0]].valuecount;
 colsize = d->features[features[1]].valuecount;
 dependentsize = d->features[fdependent].valuecount;
 counts = (int***) safecalloc_3d(sizeof(int **), sizeof(int *), sizeof(int), rowsize, colsize, colsize, "k_way_anova_dataset_discrete", 6);
 tmp = data;
 datasize = 0;
 while (tmp)
  {
   row = tmp->values[features[0]].stringindex;
   col = tmp->values[features[1]].stringindex;
   index = tmp->values[fdependent].stringindex;
   counts[row][col][index]++;
   tmp = tmp->next;
   datasize++;
  }
 rowsums = safecalloc(rowsize, sizeof(int), "k_way_anova_dataset_discrete", 20);
 colsums = safecalloc(colsize, sizeof(int), "k_way_anova_dataset_discrete", 21);
 depsums = safecalloc(dependentsize, sizeof(int), "k_way_anova_dataset_discrete", 22);
 rcsums = (int**) safecalloc_2d(sizeof(int *), sizeof(int), rowsize, colsize, "k_way_anova_dataset_discrete", 23);
 rfsums = (int**) safecalloc_2d(sizeof(int *), sizeof(int), rowsize, dependentsize, "k_way_anova_dataset_discrete", 24);
 cfsums = (int**) safecalloc_2d(sizeof(int *), sizeof(int), colsize, dependentsize, "k_way_anova_dataset_discrete", 25);
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
      {
       rowsums[i] += counts[i][j][k];
       colsums[j] += counts[i][j][k];
       depsums[k] += counts[i][j][k];
       rcsums[i][j] += counts[i][j][k];
       rfsums[i][k] += counts[i][j][k];
       cfsums[j][k] += counts[i][j][k];
      }
 /*Complete Independence*/
 sum = 0;
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
       if (counts[i][j][k] > 0)
        {
         expected = datasize * (rowsums[i] / (datasize + 0.0)) * (colsums[j] / (datasize + 0.0)) * (depsums[k] / (datasize + 0.0));
         if (expected > 0)
           sum += counts[i][j][k] * log(counts[i][j][k] / expected);
        }
 sum *= 2;
 completeconf = chi_square(rowsize * colsize * dependentsize - rowsize - colsize - dependentsize + 2, sum);
 if (get_parameter_o("displayresulton"))
  {
   if (completeconf < get_parameter_f("confidencelevel"))
     printf(m1253, features[0] + 1, features[1] + 1, fdependent + 1);
   else
     printf(m1254, features[0] + 1, features[1] + 1, fdependent + 1);       
  }
 /*One Factor Independence*/
 /*One Factor Independence - Dependent Factor*/
 sum = 0;
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
       if (counts[i][j][k] > 0)
        {
         expected = datasize * (rcsums[i][j] / (datasize + 0.0)) * (depsums[k] / (datasize + 0.0));
         if (expected > 0)
           sum += counts[i][j][k] * log(counts[i][j][k] / expected);
        }
 sum *= 2;
 onefactorconf = chi_square((rowsize - 1) * (colsize - 1), sum);
 if (get_parameter_o("displayresulton"))
  {
   if (onefactorconf < get_parameter_f("confidencelevel"))
     printf(m1255, fdependent + 1, features[0] + 1, features[1] + 1);
   else
     printf(m1256, fdependent + 1, features[0] + 1, features[1] + 1);
  }
 /*One Factor Independence - Factor 1*/
 sum = 0;
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
       if (counts[i][j][k] > 0)
        {
         expected = datasize * (rfsums[i][k] / (datasize + 0.0)) * (colsums[j] / (datasize + 0.0));
         if (expected > 0)
           sum += counts[i][j][k] * log(counts[i][j][k] / expected);
        }
 sum *= 2;
 onefactorconf = chi_square((rowsize - 1) * (dependentsize - 1), sum);
 if (get_parameter_o("displayresulton"))
  {
   if (onefactorconf < get_parameter_f("confidencelevel"))
     printf(m1255, features[1] + 1, fdependent + 1, features[0] + 1);
   else
     printf(m1256, features[1] + 1, fdependent + 1, features[0] + 1);
  }
 /*One Factor Independence - Factor 2*/
 sum = 0;
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
       if (counts[i][j][k] > 0)
        {
         expected = datasize * (cfsums[j][k] / (datasize + 0.0)) * (rowsums[i] / (datasize + 0.0));
         if (expected > 0)
           sum += counts[i][j][k] * log(counts[i][j][k] / expected);
        }
 sum *= 2;
 onefactorconf = chi_square((dependentsize - 1) * (colsize - 1), sum);
 if (get_parameter_o("displayresulton"))
  {  
   if (onefactorconf < get_parameter_f("confidencelevel"))
     printf(m1255, features[0] + 1, fdependent + 1, features[1] + 1);
   else
     printf(m1256, features[0] + 1, fdependent + 1, features[1] + 1);
  }
 /*Conditional Independence*/
 /*Conditional Independence - Dependent Factor*/
 sum = 0;
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
       if (counts[i][j][k] > 0)
        {
         expected = rfsums[i][k] * cfsums[j][k] / (depsums[k] + 0.0);
         if (expected > 0)
           sum += counts[i][j][k] * log(counts[i][j][k] / expected);
        }
 sum *= 2;
 conditionalconf = chi_square((rowsize - 1) * (colsize - 1) * dependentsize, sum);
 if (get_parameter_o("displayresulton"))
  {
   if (conditionalconf < get_parameter_f("confidencelevel"))
     printf(m1257, features[0] + 1, features[1] + 1, fdependent + 1);
   else
     printf(m1258, features[0] + 1, features[1] + 1, fdependent + 1);
  }
 /*Conditional Independence - 1 Factor*/
 sum = 0;
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
       if (counts[i][j][k] > 0)
        {
         expected = rcsums[i][j] * rfsums[i][k] / (rowsums[i] + 0.0);
         if (expected > 0)
           sum += counts[i][j][k] * log(counts[i][j][k] / expected);
        }
 sum *= 2;
 conditionalconf = chi_square((dependentsize - 1) * (colsize - 1) * rowsize, sum);
 if (get_parameter_o("displayresulton"))
  {
   if (conditionalconf < get_parameter_f("confidencelevel"))
     printf(m1257, features[1] + 1, fdependent + 1, features[0] + 1);
   else
     printf(m1258, features[1] + 1, fdependent + 1, features[0] + 1);
  }
 /*Conditional Independence - 2 Factor*/
 sum = 0;
 for (i = 0; i < rowsize; i++)
   for (j = 0; j < colsize; j++)
     for (k = 0; k < dependentsize; k++)
       if (counts[i][j][k] > 0)
        {
         expected = rcsums[i][j] * cfsums[j][k] / (colsums[j] + 0.0);
         if (expected > 0)
           sum += counts[i][j][k] * log(counts[i][j][k] / expected);
        }
 sum *= 2;
 conditionalconf = chi_square((rowsize - 1) * (dependentsize - 1) * colsize, sum);
 if (get_parameter_o("displayresulton"))
  {
   if (conditionalconf < get_parameter_f("confidencelevel"))
     printf(m1257, features[0] + 1, fdependent + 1, features[1] + 1);
   else
     printf(m1258, features[0] + 1, fdependent + 1, features[1] + 1);
  }
 safe_free(rowsums);
 safe_free(colsums);
 safe_free(depsums);
 free_2d((void**)rcsums, rowsize);
 free_2d((void**)rfsums, rowsize);
 free_2d((void**)cfsums, colsize);
 free_3d((void***)counts, rowsize, colsize);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movslq (%rdx), %rax
imulq $0x340, %rax, %rax      # imm = 0x340
movl 0x30f20(%rdi,%rax), %eax
movq %rax, 0x78(%rsp)
movslq %eax, %r13
movslq 0x4(%rdx), %rax
imulq $0x340, %rax, %rax      # imm = 0x340
movl 0x30f20(%rdi,%rax), %eax
movq %rax, 0x70(%rsp)
movslq %eax, %rbp
movq %rcx, 0x40(%rsp)
movslq %ecx, %r14
imulq $0x340, %r14, %rax      # imm = 0x340
movslq 0x30f20(%rdi,%rax), %rax
movq %rax, 0xa8(%rsp)
leaq 0x83597(%rip), %rax     # 0x9668f
pushq $0x8
popq %rdi
pushq $0x4
popq %rdx
movq %rdi, %rsi
movl %r13d, %ecx
movl %ebp, %r8d
movl %ebp, %r9d
pushq $0x6
pushq %rax
callq 0x35105
popq %rcx
popq %rdx
movq %rax, %r15
xorl %esi, %esi
testq %rbx, %rbx
je 0x13149
movq (%rbx), %rax
movslq (%r12), %rcx
movslq (%rax,%rcx,8), %rcx
movslq 0x4(%r12), %rdx
movslq (%rax,%rdx,8), %rdx
movslq (%rax,%r14,8), %rax
movq (%r15,%rcx,8), %rcx
movq (%rcx,%rdx,8), %rcx
incl (%rcx,%rax,4)
movq 0x10(%rbx), %rbx
incl %esi
jmp 0x13119
movl %esi, 0x10(%rsp)
movq %r12, 0x38(%rsp)
leaq 0x83536(%rip), %r14     # 0x9668f
pushq $0x4
popq %r12
pushq $0x14
popq %rcx
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x35067
movq %rax, 0x60(%rsp)
pushq $0x15
popq %rcx
movq %rbp, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x35067
movq %rax, 0x58(%rsp)
pushq $0x16
popq %rcx
movq 0xa8(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x35067
movq %rax, 0x50(%rsp)
pushq $0x8
popq %r14
pushq $0x17
popq %r9
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
movl %ebp, %ecx
leaq 0x834ce(%rip), %r8      # 0x9668f
callq 0x3509c
movq %rax, 0x88(%rsp)
pushq $0x18
popq %r9
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
movl %ebx, %ecx
leaq 0x834ab(%rip), %r8      # 0x9668f
movq %r8, %r14
callq 0x3509c
movq %rax, 0x80(%rsp)
pushq $0x19
popq %r9
pushq $0x8
popq %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %ebx, %ecx
movq %r14, %r8
callq 0x3509c
movq 0x50(%rsp), %r11
movq 0x58(%rsp), %r10
movq 0x60(%rsp), %r9
movq %rax, %rbp
xorl %eax, %eax
testl %ebx, %ebx
movl $0x0, %r12d
cmovgl %ebx, %r12d
movq 0x70(%rsp), %rcx
testl %ecx, %ecx
movl $0x0, %edx
cmovgl %ecx, %edx
movq %rdx, 0x30(%rsp)
movq 0x78(%rsp), %rcx
testl %ecx, %ecx
movl $0x0, %edx
cmovgl %ecx, %edx
movq %rdx, 0x28(%rsp)
cmpq 0x28(%rsp), %rax
je 0x132c6
xorl %ecx, %ecx
cmpq 0x30(%rsp), %rcx
je 0x132c1
xorl %edx, %edx
cmpq %rdx, %r12
je 0x132bc
movq (%r15,%rax,8), %rsi
movq (%rsi,%rcx,8), %rsi
movl (%rsi,%rdx,4), %edi
addl %edi, (%r9,%rax,4)
movl (%rsi,%rdx,4), %edi
addl %edi, (%r10,%rcx,4)
movl (%rsi,%rdx,4), %edi
addl %edi, (%r11,%rdx,4)
movl (%rsi,%rdx,4), %edi
movq 0x88(%rsp), %r8
movq (%r8,%rax,8), %r8
addl %edi, (%r8,%rcx,4)
movl (%rsi,%rdx,4), %edi
movq 0x80(%rsp), %r8
movq (%r8,%rax,8), %r8
addl %edi, (%r8,%rdx,4)
movl (%rsi,%rdx,4), %esi
movq (%rbp,%rcx,8), %rdi
addl %esi, (%rdi,%rdx,4)
incq %rdx
jmp 0x13264
incq %rcx
jmp 0x1325b
incq %rax
jmp 0x13252
cvtsi2sdl 0x10(%rsp), %xmm0
movapd %xmm0, 0x10(%rsp)
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movapd %xmm0, 0x90(%rsp)
xorpd %xmm4, %xmm4
xorl %r14d, %r14d
xorpd %xmm3, %xmm3
cmpq 0x28(%rsp), %r14
je 0x133b4
xorl %ebx, %ebx
cmpq 0x30(%rsp), %rbx
je 0x133ac
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x133a4
movq (%r15,%r14,8), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x1339c
cvtsi2sdl (%r9,%r14,4), %xmm0
movapd 0x10(%rsp), %xmm1
divsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movss (%r11,%r13,4), %xmm1
movss (%r10,%rbx,4), %xmm2
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
cvtdq2pd %xmm2, %xmm1
divpd 0x90(%rsp), %xmm1
mulsd %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
mulsd %xmm0, %xmm1
ucomisd %xmm4, %xmm1
jbe 0x1339c
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x48(%rsp)
divsd %xmm1, %xmm0
movsd %xmm3, 0x8(%rsp)
callq 0x4160
xorpd %xmm4, %xmm4
movsd 0x8(%rsp), %xmm3
movq 0x50(%rsp), %r11
movq 0x58(%rsp), %r10
movq 0x60(%rsp), %r9
mulsd 0x48(%rsp), %xmm0
addsd %xmm0, %xmm3
incq %r13
jmp 0x13305
incq %rbx
jmp 0x132f7
incq %r14
jmp 0x132ea
addsd %xmm3, %xmm3
movq 0x70(%rsp), %rcx
movl %ecx, %edi
movq 0x78(%rsp), %rax
imull %eax, %edi
movq 0xa8(%rsp), %rdx
imull %edx, %edi
addl %ecx, %eax
addl %edx, %eax
subl %eax, %edi
addl $0x2, %edi
movapd %xmm3, %xmm0
callq 0x1d59f
movsd %xmm0, 0x8(%rsp)
leaq 0x83214(%rip), %rdi     # 0x96605
callq 0x4cff1
testl %eax, %eax
je 0x1343b
leaq 0x82527(%rip), %rdi     # 0x95928
callq 0x4cdcf
movq 0x38(%rsp), %rax
movl (%rax), %esi
movl 0x4(%rax), %edx
incl %esi
incl %edx
movq 0x40(%rsp), %rax
leal 0x1(%rax), %ecx
ucomisd 0x8(%rsp), %xmm0
leaq 0x83283(%rip), %rax     # 0x966ac
leaq 0x832ad(%rip), %rdi     # 0x966dd
cmovaq %rax, %rdi
xorl %eax, %eax
callq 0x4030
xorpd %xmm3, %xmm3
xorl %r14d, %r14d
xorpd %xmm2, %xmm2
movq 0x50(%rsp), %rdx
cmpq 0x28(%rsp), %r14
je 0x13508
xorl %ebx, %ebx
cmpq 0x30(%rsp), %rbx
je 0x13500
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x134f8
movq (%r15,%r14,8), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x134f0
movq 0x88(%rsp), %rcx
movq (%rcx,%r14,8), %rcx
movss (%rdx,%r13,4), %xmm0
movss (%rcx,%rbx,4), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2pd %xmm1, %xmm1
divpd 0x90(%rsp), %xmm1
movapd %xmm1, %xmm0
mulsd 0x10(%rsp), %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
mulsd %xmm0, %xmm1
ucomisd %xmm3, %xmm1
jbe 0x134f0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x48(%rsp)
divsd %xmm1, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x4160
xorpd %xmm3, %xmm3
movsd 0x8(%rsp), %xmm2
movq 0x50(%rsp), %rdx
mulsd 0x48(%rsp), %xmm0
addsd %xmm0, %xmm2
incq %r13
jmp 0x13466
incq %rbx
jmp 0x13458
incq %r14
jmp 0x1344b
addsd %xmm2, %xmm2
movq 0x78(%rsp), %rax
leal -0x1(%rax), %ecx
movq 0x70(%rsp), %rax
leal -0x1(%rax), %edi
movl %edi, 0xb0(%rsp)
movl %ecx, 0x6c(%rsp)
imull %ecx, %edi
movl %edi, 0xb4(%rsp)
movapd %xmm2, %xmm0
callq 0x1d59f
movsd %xmm0, 0x8(%rsp)
leaq 0x830be(%rip), %rdi     # 0x96605
callq 0x4cff1
testl %eax, %eax
je 0x13591
leaq 0x823d1(%rip), %rdi     # 0x95928
callq 0x4cdcf
movq 0x40(%rsp), %rax
leal 0x1(%rax), %esi
movq 0x38(%rsp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
incl %edx
incl %ecx
ucomisd 0x8(%rsp), %xmm0
leaq 0x83193(%rip), %rax     # 0x96712
leaq 0x831bb(%rip), %rdi     # 0x96741
cmovaq %rax, %rdi
xorl %eax, %eax
callq 0x4030
xorpd %xmm3, %xmm3
xorl %r14d, %r14d
xorpd %xmm2, %xmm2
movq 0x58(%rsp), %rdx
cmpq 0x28(%rsp), %r14
je 0x1365e
xorl %ebx, %ebx
cmpq 0x30(%rsp), %rbx
je 0x13656
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x1364e
movq (%r15,%r14,8), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x13646
movq 0x80(%rsp), %rcx
movq (%rcx,%r14,8), %rcx
movss (%rdx,%rbx,4), %xmm0
movss (%rcx,%r13,4), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2pd %xmm1, %xmm1
divpd 0x90(%rsp), %xmm1
movapd %xmm1, %xmm0
mulsd 0x10(%rsp), %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
mulsd %xmm0, %xmm1
ucomisd %xmm3, %xmm1
jbe 0x13646
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x48(%rsp)
divsd %xmm1, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x4160
xorpd %xmm3, %xmm3
movsd 0x8(%rsp), %xmm2
movq 0x58(%rsp), %rdx
mulsd 0x48(%rsp), %xmm0
addsd %xmm0, %xmm2
incq %r13
jmp 0x135bc
incq %rbx
jmp 0x135ae
incq %r14
jmp 0x135a1
addsd %xmm2, %xmm2
movq 0xa8(%rsp), %rax
decl %eax
movl 0x6c(%rsp), %edi
movl %eax, 0x68(%rsp)
imull %eax, %edi
movl %edi, 0x6c(%rsp)
movapd %xmm2, %xmm0
callq 0x1d59f
movsd %xmm0, 0x8(%rsp)
leaq 0x82f74(%rip), %rdi     # 0x96605
callq 0x4cff1
testl %eax, %eax
je 0x136db
leaq 0x82287(%rip), %rdi     # 0x95928
callq 0x4cdcf
movq 0x38(%rsp), %rax
movl (%rax), %ecx
movl 0x4(%rax), %esi
incl %esi
movq 0x40(%rsp), %rax
leal 0x1(%rax), %edx
incl %ecx
ucomisd 0x8(%rsp), %xmm0
leaq 0x83049(%rip), %rax     # 0x96712
leaq 0x83071(%rip), %rdi     # 0x96741
cmovaq %rax, %rdi
xorl %eax, %eax
callq 0x4030
xorpd %xmm3, %xmm3
xorl %r14d, %r14d
xorpd %xmm2, %xmm2
movq 0x60(%rsp), %rdx
cmpq 0x28(%rsp), %r14
je 0x137a2
xorl %ebx, %ebx
cmpq 0x30(%rsp), %rbx
je 0x1379a
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x13792
movq (%r15,%r14,8), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x1378a
movq (%rbp,%rbx,8), %rcx
movss (%rdx,%r14,4), %xmm0
movss (%rcx,%r13,4), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2pd %xmm1, %xmm1
divpd 0x90(%rsp), %xmm1
movapd %xmm1, %xmm0
mulsd 0x10(%rsp), %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
mulsd %xmm0, %xmm1
ucomisd %xmm3, %xmm1
jbe 0x1378a
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x48(%rsp)
divsd %xmm1, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x4160
xorpd %xmm3, %xmm3
movsd 0x8(%rsp), %xmm2
movq 0x60(%rsp), %rdx
mulsd 0x48(%rsp), %xmm0
addsd %xmm0, %xmm2
incq %r13
jmp 0x13706
incq %rbx
jmp 0x136f8
incq %r14
jmp 0x136eb
addsd %xmm2, %xmm2
movl 0x68(%rsp), %edi
imull 0xb0(%rsp), %edi
movl %edi, 0x68(%rsp)
movapd %xmm2, %xmm0
callq 0x1d59f
movsd %xmm0, 0x10(%rsp)
leaq 0x82e39(%rip), %rdi     # 0x96605
callq 0x4cff1
testl %eax, %eax
je 0x13816
leaq 0x8214c(%rip), %rdi     # 0x95928
callq 0x4cdcf
movq 0x38(%rsp), %rax
movl (%rax), %esi
movl 0x4(%rax), %ecx
incl %esi
movq 0x40(%rsp), %rax
leal 0x1(%rax), %edx
incl %ecx
ucomisd 0x10(%rsp), %xmm0
leaq 0x82f0e(%rip), %rax     # 0x96712
leaq 0x82f36(%rip), %rdi     # 0x96741
cmovaq %rax, %rdi
xorl %eax, %eax
callq 0x4030
xorpd %xmm3, %xmm3
xorl %r14d, %r14d
xorpd %xmm2, %xmm2
movq 0x50(%rsp), %rsi
cmpq 0x28(%rsp), %r14
je 0x138d1
xorl %ebx, %ebx
cmpq 0x30(%rsp), %rbx
je 0x138c9
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x138c1
movq (%r15,%r14,8), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x138bc
movq 0x80(%rsp), %rcx
movq (%rcx,%r14,8), %rcx
movq (%rbp,%rbx,8), %rdx
movl (%rdx,%r13,4), %edx
imull (%rcx,%r13,4), %edx
cvtsi2sd %edx, %xmm1
cvtsi2sdl (%rsi,%r13,4), %xmm0
divsd %xmm0, %xmm1
ucomisd %xmm3, %xmm1
jbe 0x138bc
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x90(%rsp)
divsd %xmm1, %xmm0
movsd %xmm2, 0x10(%rsp)
callq 0x4160
xorpd %xmm3, %xmm3
movsd 0x10(%rsp), %xmm2
movq 0x50(%rsp), %rsi
mulsd 0x90(%rsp), %xmm0
addsd %xmm0, %xmm2
incq %r13
jmp 0x13841
incq %rbx
jmp 0x13833
incq %r14
jmp 0x13826
addsd %xmm2, %xmm2
movl 0xb4(%rsp), %edi
imull 0xa8(%rsp), %edi
movapd %xmm2, %xmm0
callq 0x1d59f
movsd %xmm0, 0x10(%rsp)
leaq 0x82d0b(%rip), %rdi     # 0x96605
callq 0x4cff1
testl %eax, %eax
je 0x13944
leaq 0x8201e(%rip), %rdi     # 0x95928
callq 0x4cdcf
movq 0x38(%rsp), %rax
movl (%rax), %esi
movl 0x4(%rax), %edx
incl %esi
incl %edx
movq 0x40(%rsp), %rax
leal 0x1(%rax), %ecx
ucomisd 0x10(%rsp), %xmm0
leaq 0x82e42(%rip), %rax     # 0x96774
leaq 0x82e81(%rip), %rdi     # 0x967ba
cmovaq %rax, %rdi
xorl %eax, %eax
callq 0x4030
xorpd %xmm3, %xmm3
xorl %r14d, %r14d
xorpd %xmm2, %xmm2
movq 0x60(%rsp), %rsi
cmpq 0x28(%rsp), %r14
je 0x13a0c
xorl %ebx, %ebx
cmpq 0x30(%rsp), %rbx
je 0x13a04
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x139fc
movq (%r15,%r14,8), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x139f4
movq 0x88(%rsp), %rcx
movq (%rcx,%r14,8), %rcx
movq 0x80(%rsp), %rdx
movq (%rdx,%r14,8), %rdx
movl (%rdx,%r13,4), %edx
imull (%rcx,%rbx,4), %edx
cvtsi2sd %edx, %xmm1
cvtsi2sdl (%rsi,%r14,4), %xmm0
divsd %xmm0, %xmm1
ucomisd %xmm3, %xmm1
jbe 0x139f4
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x90(%rsp)
divsd %xmm1, %xmm0
movsd %xmm2, 0x10(%rsp)
callq 0x4160
xorpd %xmm3, %xmm3
movsd 0x10(%rsp), %xmm2
movq 0x60(%rsp), %rsi
mulsd 0x90(%rsp), %xmm0
addsd %xmm0, %xmm2
incq %r13
jmp 0x1396f
incq %rbx
jmp 0x13961
incq %r14
jmp 0x13954
addsd %xmm2, %xmm2
movl 0x68(%rsp), %edi
imull 0x78(%rsp), %edi
movapd %xmm2, %xmm0
callq 0x1d59f
movsd %xmm0, 0x10(%rsp)
leaq 0x82bd6(%rip), %rdi     # 0x96605
callq 0x4cff1
testl %eax, %eax
je 0x13a79
leaq 0x81ee9(%rip), %rdi     # 0x95928
callq 0x4cdcf
movq 0x38(%rsp), %rax
movl (%rax), %ecx
movl 0x4(%rax), %esi
incl %esi
movq 0x40(%rsp), %rax
leal 0x1(%rax), %edx
incl %ecx
ucomisd 0x10(%rsp), %xmm0
leaq 0x82d0d(%rip), %rax     # 0x96774
leaq 0x82d4c(%rip), %rdi     # 0x967ba
cmovaq %rax, %rdi
xorl %eax, %eax
callq 0x4030
xorpd %xmm3, %xmm3
xorl %r14d, %r14d
xorpd %xmm2, %xmm2
movq 0x58(%rsp), %rsi
cmpq 0x28(%rsp), %r14
je 0x13b32
xorl %ebx, %ebx
cmpq 0x30(%rsp), %rbx
je 0x13b2a
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x13b22
movq (%r15,%r14,8), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x13b1d
movq 0x88(%rsp), %rcx
movq (%rcx,%r14,8), %rcx
movq (%rbp,%rbx,8), %rdx
movl (%rdx,%r13,4), %edx
imull (%rcx,%rbx,4), %edx
cvtsi2sd %edx, %xmm1
cvtsi2sdl (%rsi,%rbx,4), %xmm0
divsd %xmm0, %xmm1
ucomisd %xmm3, %xmm1
jbe 0x13b1d
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x90(%rsp)
divsd %xmm1, %xmm0
movsd %xmm2, 0x10(%rsp)
callq 0x4160
xorpd %xmm3, %xmm3
movsd 0x10(%rsp), %xmm2
movq 0x58(%rsp), %rsi
mulsd 0x90(%rsp), %xmm0
addsd %xmm0, %xmm2
incq %r13
jmp 0x13aa4
incq %rbx
jmp 0x13a96
incq %r14
jmp 0x13a89
addsd %xmm2, %xmm2
movl 0x6c(%rsp), %edi
imull 0x70(%rsp), %edi
movapd %xmm2, %xmm0
callq 0x1d59f
movsd %xmm0, 0x10(%rsp)
leaq 0x82ab0(%rip), %rdi     # 0x96605
callq 0x4cff1
testl %eax, %eax
je 0x13b9e
leaq 0x81dc3(%rip), %rdi     # 0x95928
callq 0x4cdcf
movq 0x38(%rsp), %rax
movl (%rax), %esi
movl 0x4(%rax), %ecx
incl %esi
movq 0x40(%rsp), %rdx
incl %edx
incl %ecx
ucomisd 0x10(%rsp), %xmm0
leaq 0x82be8(%rip), %rax     # 0x96774
leaq 0x82c27(%rip), %rdi     # 0x967ba
cmovaq %rax, %rdi
xorl %eax, %eax
callq 0x4030
movq 0x60(%rsp), %rdi
callq 0x34ff7
movq 0x58(%rsp), %rdi
callq 0x34ff7
movq 0x50(%rsp), %rdi
callq 0x34ff7
movq 0x88(%rsp), %rdi
movq 0x78(%rsp), %rbx
movl %ebx, %esi
callq 0x34fc3
movq 0x80(%rsp), %rdi
movl %ebx, %esi
callq 0x34fc3
movq %rbp, %rdi
movq 0x70(%rsp), %r14
movl %r14d, %esi
callq 0x34fc3
movq %r15, %rdi
movl %ebx, %esi
movl %r14d, %edx
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x34ffc