// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movl %edx, %r14d
movq %rsi, 0x18(%rsp)
movq %rdi, %rbx
leaq 0xa6e4a(%rip), %rax     # 0xd2870
movq (%rax), %rax
movl 0x1c0(%rax), %eax
movq %rax, 0x20(%rsp)
leal -0x1(%rax), %ebp
leaq 0x79c87(%rip), %rdi     # 0xa56c5
movl $0x19, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
movl %r14d, %r13d
movl %ebp, %r15d
movl %r14d, 0xc(%rsp)
testl %r14d, %r14d
movq %r13, 0x28(%rsp)
jle 0x2bade
leaq 0x79cda(%rip), %r12     # 0xa5746
xorl %ebp, %ebp
leaq 0x1(%rbp), %rdx
movq %rbx, %rdi
leaq 0x79c63(%rip), %rsi     # 0xa56df
movq %rdx, 0x10(%rsp)
xorl %eax, %eax
callq 0x42e0
cmpl $0x2, 0x20(%rsp)
movq 0x18(%rsp), %r13
jl 0x2babf
leaq (%rbp,%rbp,2), %rbp
xorl %r14d, %r14d
movq (%r13), %rax
movq (%rax,%rbp,8), %rax
movsd (%rax,%r14,8), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x42e0
incq %r14
cmpq %r14, %r15
jne 0x2ba9c
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4150
movq 0x10(%rsp), %rax
movq %rax, %rbp
movq 0x28(%rsp), %r13
cmpq %r13, %rax
jne 0x2ba6e
leaq 0x79c0a(%rip), %rdi     # 0xa56ef
movl $0x1f, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
cmpl $0x0, 0xc(%rsp)
jle 0x2bb9e
xorl %r14d, %r14d
leaq 0x1(%r14), %rdx
movq %rbx, %rdi
leaq 0x79bfc(%rip), %rsi     # 0xa570f
movq %rdx, 0x30(%rsp)
xorl %eax, %eax
callq 0x42e0
cmpl $0x2, 0x20(%rsp)
jl 0x2bb8b
leaq (%r14,%r14,2), %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
xorl %r14d, %r14d
movq %rbx, %r12
movq 0x18(%rsp), %rbx
movq %r15, %rbp
movq 0x10(%rsp), %r15
movq (%rbx), %rax
movq 0x10(%rax,%r15,8), %rax
movq (%rax,%r13,8), %rax
movsd (%rax,%r14,8), %xmm0
movq %r12, %rdi
leaq 0x79bbd(%rip), %rsi     # 0xa571e
movb $0x1, %al
callq 0x42e0
incq %r14
cmpq %r14, %rbp
jne 0x2bb45
movl $0xa, %edi
movq %r12, %rsi
callq 0x4150
incq %r13
cmpq %rbp, %r13
movq %r12, %rbx
movq %rbp, %r15
jne 0x2bb32
movq 0x28(%rsp), %r13
movq 0x30(%rsp), %r14
cmpq %r13, %r14
jne 0x2bb05
leaq 0x79b80(%rip), %rdi     # 0xa5725
movl $0x1f, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
cmpl $0x0, 0xc(%rsp)
movq 0x18(%rsp), %r14
jle 0x2bbec
xorl %r12d, %r12d
leaq 0x79b78(%rip), %r15     # 0xa5745
movq 0x10(%r14), %rax
movsd (%rax,%r12,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x42e0
incq %r12
cmpq %r12, %r13
jne 0x2bbcd
movl $0xa, %edi
movq %rbx, %rsi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4150