// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0xc78c9(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1c0(%rax), %eax
subl $0x1, %eax
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xa727c(%rip), %rsi     # 0xe520d
movb $0x0, %al
callq 0x4280
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3e01f
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3e012
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rsi
shlq $0x5, %rsi
addq %rsi, %rax
movq 0x8(%rax), %rax
movslq -0x18(%rbp), %rsi
movsd (%rax,%rsi,8), %xmm0
leaq 0xa7224(%rip), %rsi     # 0xe5212
movb $0x1, %al
callq 0x4280
movq -0x8(%rbp), %rdi
leaq 0xa7d3b(%rip), %rsi     # 0xe5d3b
movb $0x0, %al
callq 0x4280
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x3dfb2
jmp 0x3e014
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3df9f
movq -0x8(%rbp), %rdi
leaq 0xa71f1(%rip), %rsi     # 0xe521b
movb $0x0, %al
callq 0x4280
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3e078
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movsd 0x10(%rax), %xmm0
leaq 0xa71bb(%rip), %rsi     # 0xe5221
movb $0x1, %al
callq 0x4280
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3e038
movq -0x8(%rbp), %rdi
leaq 0xa7cb8(%rip), %rsi     # 0xe5d3b
movb $0x0, %al
callq 0x4280
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edx
leaq 0xa7189(%rip), %rsi     # 0xe5225
movb $0x0, %al
callq 0x4280
movq -0x8(%rbp), %rdi
leaq 0xa718c(%rip), %rsi     # 0xe523a
movb $0x0, %al
callq 0x4280
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3e157
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
leaq 0xa714a(%rip), %rsi     # 0xe523e
movb $0x0, %al
callq 0x4280
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0x3e137
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rax
movslq -0x20(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq 0xa70fc(%rip), %rsi     # 0xe5221
movb $0x1, %al
callq 0x4280
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3e102
movq -0x8(%rbp), %rdi
leaq 0xa7bf9(%rip), %rsi     # 0xe5d3b
movb $0x0, %al
callq 0x4280
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x3e0bc
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3e22e
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %edx
leaq 0xa70b7(%rip), %rsi     # 0xe524d
movb $0x0, %al
callq 0x4280
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0x3e20e
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0x3e1f1
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x24(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq 0xa707c(%rip), %rsi     # 0xe525b
movb $0x1, %al
callq 0x4280
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x3e1b3
movq -0x8(%rbp), %rdi
leaq 0xa7b3f(%rip), %rsi     # 0xe5d3b
movb $0x0, %al
callq 0x4280
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x3e1a4
movq -0x8(%rbp), %rdi
leaq 0xa7b22(%rip), %rsi     # 0xe5d3b
movb $0x0, %al
callq 0x4280
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x3e15e
movq -0x8(%rbp), %rdi
leaq 0xa7b02(%rip), %rsi     # 0xe5d3b
movb $0x0, %al
callq 0x4280
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)