// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/data.c
// Function: between_class_matrix
matrix between_class_matrix(Instanceptr myptr)
{
 int i, j, k;
 Instanceptr temp = myptr;
 int *c_counts;
 Instanceptr c_means;
 Instance mean;
 matrix result = matrix_alloc(current_dataset->multifeaturecount - 1, current_dataset->multifeaturecount - 1);
 c_counts = find_class_counts(temp);
 c_means = find_class_means(temp, c_counts);
 mean = find_mean(temp);
 for (i = 0; i < current_dataset->classno; i++)
   for (j = 0; j < current_dataset->multifeaturecount - 1; j++)
     for (k = 0; k < current_dataset->multifeaturecount - 1; k++)
       result.values[j][k] += c_counts[i] * ((real_feature(data_x(c_means, i), j) - real_feature(&mean, j))) * ((real_feature(data_x(c_means, i), k) - real_feature(&mean, k)));
 safe_free(mean.values);
 safe_free(c_counts);
 deallocate(c_means);
 return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0xeb2b2(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1c0(%rax), %edi
subl $0x1, %edi
leaq 0xeb29f(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1c0(%rax), %esi
subl $0x1, %esi
callq 0x57fc0
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq -0x30(%rbp), %rdi
callq 0x183a0
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x188c0
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
callq 0x19b30
leaq -0x70(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x30, %edx
callq 0x42b0
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
leaq 0xeb232(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x10(%rcx), %eax
jge 0x1a759
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
leaq 0xeb215(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
movl 0x1c0(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x1a749
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
leaq 0xeb1f0(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
movl 0x1c0(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x1a739
movq -0x38(%rbp), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,4), %xmm0
movsd %xmm0, -0xb8(%rbp)
movq -0x40(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x46c40
movq %rax, %rdi
movl -0x20(%rbp), %esi
callq 0x42c40
movsd %xmm0, -0xc0(%rbp)
movl -0x20(%rbp), %esi
leaq -0x70(%rbp), %rdi
callq 0x42c40
movsd -0xc0(%rbp), %xmm1
movaps %xmm0, %xmm2
movsd -0xb8(%rbp), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0xa8(%rbp)
movq -0x40(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x46c40
movq %rax, %rdi
movl -0x24(%rbp), %esi
callq 0x42c40
movsd %xmm0, -0xb0(%rbp)
movl -0x24(%rbp), %esi
leaq -0x70(%rbp), %rdi
callq 0x42c40
movsd -0xb0(%rbp), %xmm2
movaps %xmm0, %xmm1
movsd -0xa8(%rbp), %xmm0
subsd %xmm1, %xmm2
movq -0x8(%rbp), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x1a646
jmp 0x1a73b
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x1a621
jmp 0x1a74b
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1a604
movq -0x70(%rbp), %rdi
callq 0x52e80
movq -0x38(%rbp), %rdi
callq 0x52e80
movq -0x40(%rbp), %rdi
callq 0x44510
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0xc0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)