// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/hmm.c
// Function: printgaussianmixtureemission
void printgaussianmixtureemission(FILE *controlfile, Gaussianmixtureptr gm, int numberofcomponents)
{
 int i, j, k;
 int numrealfeatures = current_dataset->multifeaturecount - 1;
 fprintf(controlfile, "\ngaussian mixture:\n mean\n");
 for (i = 0; i < numberofcomponents; i++)
  {
   fprintf(controlfile, " component %d\n ", i + 1);
	  for (j = 0; j < numrealfeatures; j++)
		   fprintf(controlfile, "%.14f ", gm->components[i].mean[j]);
   fprintf(controlfile, "\n");
  }
 fprintf(controlfile, "\ngaussian mixture:\n covariance\n");
 for (i = 0; i < numberofcomponents; i++)
  {
   fprintf(controlfile, " component %d\n", i + 1);
	  for (j = 0; j < numrealfeatures; j++)
    {
		   for (k = 0; k < numrealfeatures; k++)
 	 		  fprintf(controlfile, "%.19f ", gm->components[i].covariance.values[j][k]);
		   fprintf(controlfile, "\n");
		  }
  }
 fprintf(controlfile,"\ngaussian mixture:\n components\n");
 for (i = 0; i < numberofcomponents; i++)
  {
		 fprintf(controlfile, " %.14f ", gm->weights[i]);
  }
 fprintf(controlfile,"\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r14d
movq %rsi, 0x18(%rsp)
movq %rdi, %rbx
leaq 0xa51ee(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x1c0(%rax), %ebp
decl %ebp
leaq 0x70009(%rip), %rdi     # 0x9869d
pushq $0x19
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
xorl %eax, %eax
testl %ebp, %ebp
movl $0x0, %ecx
movl %ebp, 0x8(%rsp)
cmovgl %ebp, %ecx
movq %rcx, 0x20(%rsp)
testl %r14d, %r14d
cmovlel %eax, %r14d
movq %r14, 0x10(%rsp)
pushq $0xa
popq %rbp
leaq 0x70051(%rip), %r13     # 0x9871e
xorl %r14d, %r14d
cmpq 0x10(%rsp), %r14
je 0x28730
leaq 0x1(%r14), %r12
movq %rbx, %rdi
leaq 0x6ffd2(%rip), %rsi     # 0x986b7
movl %r12d, %edx
xorl %eax, %eax
callq 0x42e0
imulq $0x18, %r14, %r14
xorl %r15d, %r15d
cmpq %r15, 0x20(%rsp)
je 0x28721
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r14), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x42e0
incq %r15
jmp 0x286f6
movl %ebp, %edi
movq %rbx, %rsi
callq 0x4150
movq %r12, %r14
jmp 0x286d0
leaq 0x6ff90(%rip), %rdi     # 0x986c7
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
movl 0x8(%rsp), %r12d
leaq 0x6ffa5(%rip), %r13     # 0x986f6
xorl %r14d, %r14d
cmpq 0x10(%rsp), %r14
je 0x287cb
leaq 0x1(%r14), %rdx
movq %rbx, %rdi
leaq 0x6ff7e(%rip), %rsi     # 0x986e7
movq %rdx, 0x8(%rsp)
xorl %eax, %eax
callq 0x42e0
imulq $0x18, %r14, %rbp
xorl %r14d, %r14d
cmpq 0x20(%rsp), %r14
je 0x287c4
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x287b4
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax,%rbp), %rax
movq (%rax,%r14,8), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x42e0
incq %r15
jmp 0x28786
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x4150
incq %r14
jmp 0x2877c
movq 0x8(%rsp), %r14
jmp 0x28754
leaq 0x6ff2b(%rip), %rdi     # 0x986fd
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
xorl %r14d, %r14d
leaq 0x6ff33(%rip), %r12     # 0x9871d
cmpq %r14, 0x10(%rsp)
je 0x28812
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movsd (%rax,%r14,8), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x42e0
incq %r14
jmp 0x287ea
pushq $0xa
popq %rdi
movq %rbx, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4150