// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/hmm.c
// Function: printgaussianhmm
void printgaussianhmm(FILE *controlfile, Hmmptr hmm)
{
 int i, j, st, ft, ft2, numrealfeatures;
 Gaussianptr g;
 numrealfeatures = current_dataset->multifeaturecount - 1;
 fprintf(controlfile, "a :\n");
 for (i = 0; i < hmm->statecount; i++)
 	for (j = 0; j < hmm->statecount; j++)
   {
 		 fprintf(controlfile, "%i %i %f", i, j, hmm->states[i].a_i_dot[j]);
 		 fprintf(controlfile, "\n");
 	 }
 fprintf(controlfile, "Pi :\n");
 for (i = 0; i < hmm->statecount; i++)
   fprintf(controlfile, "%f ", hmm->states[i].pi);
 fprintf(controlfile, "\n");
 fprintf(controlfile, "number of states %d\n", hmm->statecount);
 fprintf(controlfile, "b:\n");
 for (st = 0; st < hmm->statecount; st++)
  {
	  g = (Gaussianptr)(hmm->states[st].b);
 	 fprintf(controlfile, "mean state %d\n", st);
	  for (ft = 0; ft < numrealfeatures; ft++)
 		  fprintf(controlfile,"%f ", g->mean[ft]);
   fprintf(controlfile, "\n"); 
  }
 for (st = 0; st < hmm->statecount; st++)
  {
	  g = (Gaussianptr)(hmm->states[st].b);
 	 fprintf(controlfile, "cov state %d\n", st);
 	 for (ft = 0; ft < numrealfeatures; ft++)
    {
			  for (ft2 = 0; ft2 < numrealfeatures; ft2++)
 				  fprintf(controlfile, "%.25f ", g->covariance.values[ft][ft2]);
     fprintf(controlfile, "\n");
    } 
   fprintf(controlfile, "\n"); 
  }	
 fprintf(controlfile, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa9aaf(%rip), %rax     # 0xd5870
movq (%rax), %rax
movl 0x1c0(%rax), %eax
movq %rax, (%rsp)
leaq 0x7c898(%rip), %rdi     # 0xa866d
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
movl 0x8(%r14), %eax
testl %eax, %eax
jle 0x2be51
xorl %r15d, %r15d
leaq 0x7c879(%rip), %r12     # 0xa8672
testl %eax, %eax
jle 0x2be46
movq %r15, %rbp
shlq $0x5, %rbp
xorl %r13d, %r13d
movq (%r14), %rax
movq 0x8(%rax,%rbp), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %r13d, %ecx
movb $0x1, %al
callq 0x42e0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4150
incq %r13
movl 0x8(%r14), %eax
movslq %eax, %rcx
cmpq %rcx, %r13
jl 0x2be07
jmp 0x2be49
movslq %eax, %rcx
incq %r15
cmpq %rcx, %r15
jl 0x2bdf9
leaq 0x7c823(%rip), %rdi     # 0xa867b
movl $0x5, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
cmpl $0x0, 0x8(%r14)
jle 0x2bea7
movl $0x10, %r12d
xorl %r13d, %r13d
leaq 0x7c800(%rip), %r15     # 0xa8681
movq (%r14), %rax
movsd (%rax,%r12), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x42e0
incq %r13
movslq 0x8(%r14), %rax
addq $0x20, %r12
cmpq %rax, %r13
jl 0x2be81
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4150
movl 0x8(%r14), %edx
leaq 0x7c7c6(%rip), %rsi     # 0xa8685
movq %rbx, %rdi
xorl %eax, %eax
callq 0x42e0
leaq 0x7c7ca(%rip), %rdi     # 0xa869a
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
cmpl $0x0, 0x8(%r14)
jle 0x2c00d
movq (%rsp), %rax
decl %eax
movl %eax, %ebp
leaq 0x7c785(%rip), %r12     # 0xa8681
xorl %r13d, %r13d
movq %r14, 0x8(%rsp)
movq (%r14), %rax
movq %r13, %rcx
shlq $0x5, %rcx
movq 0x18(%rax,%rcx), %r15
movq %rbx, %rdi
leaq 0x7c781(%rip), %rsi     # 0xa869e
movl %r13d, %edx
xorl %eax, %eax
callq 0x42e0
cmpl $0x2, (%rsp)
jl 0x2bf4e
xorl %r14d, %r14d
movq (%r15), %rax
movsd (%rax,%r14,8), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x42e0
incq %r14
cmpq %r14, %rbp
jne 0x2bf30
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4150
incq %r13
movq 0x8(%rsp), %r14
movslq 0x8(%r14), %rax
cmpq %rax, %r13
jl 0x2bf04
testl %eax, %eax
jle 0x2c00d
leaq 0x7c740(%rip), %r12     # 0xa86bb
xorl %edx, %edx
movq (%r14), %rax
movq %rdx, %rcx
shlq $0x5, %rcx
movq 0x18(%rax,%rcx), %r15
movq %rbx, %rdi
leaq 0x7c717(%rip), %rsi     # 0xa86ad
movq %rdx, 0x10(%rsp)
xorl %eax, %eax
callq 0x42e0
cmpl $0x2, (%rsp)
jl 0x2bfe6
xorl %r13d, %r13d
xorl %r14d, %r14d
movq 0x10(%r15), %rax
movq (%rax,%r13,8), %rax
movsd (%rax,%r14,8), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x42e0
incq %r14
cmpq %r14, %rbp
jne 0x2bfae
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4150
incq %r13
cmpq %rbp, %r13
jne 0x2bfab
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4150
movq 0x10(%rsp), %rdx
incq %rdx
movq 0x8(%rsp), %r14
movslq 0x8(%r14), %rax
cmpq %rax, %rdx
jl 0x2bf7d
movl $0xa, %edi
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4150