// File: /workspace/github_c_makefile_star2_O2/ugobas[P]tnm/confchange.c
// Function: Print_angular_differences
void Print_angular_differences(float **diff_angles, char *type,
			       char **name_dphi, int num_dphi,
			       char *name_para, struct axe *axe,
			       int N_axes, struct residue *seq1)
{
  char nameout[100]; int a, i;
  sprintf(nameout, "%s.Angular_diff%s.dat", name_para, type);
  printf("Writing angular differences in %s\n", nameout);
  FILE *file_out=fopen(nameout, "w");
  fprintf(file_out, "# %d angles %d methods for deriving angles\n",
	  N_axes, num_dphi);
  for(i=0; i<num_dphi; i++)
    fprintf(file_out, "# Method %d: %s\n", i, name_dphi[i]);	     
  fprintf(file_out, "#angle ");
  for(i=0; i<num_dphi; i++)fprintf(file_out, " %d=dphi%d", i+2, i+1);
  fprintf(file_out, "\n");
  for(a=0; a<N_axes; a++){
    struct residue *r=seq1+(axe[a].bond)->atom->res;
    fprintf(file_out, "%c%s%c_%c", axe[a].type,r->pdbres,r->chain,r->amm);
    for(i=0; i<num_dphi; i++){
      fprintf(file_out, " %.4f", diff_angles[i][a]);
    }
    fprintf(file_out, "\n");
  }
  fclose(file_out);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, (%rsp)
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rcx
movq %rdi, %r14
movl 0xb0(%rsp), %r13d
leaq 0x27dfe(%rip), %rsi     # 0x54993
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r8, %rdx
xorl %eax, %eax
callq 0x2260
leaq 0x27dfb(%rip), %rdi     # 0x549a9
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20f0
leaq 0x24591(%rip), %rsi     # 0x51150
movq %rbx, %rdi
callq 0x2210
movq %rax, %r12
leaq 0x27dfb(%rip), %rsi     # 0x549cc
movq %rax, %rdi
movl %r13d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2190
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
movl %ebp, %r13d
xorl %ebx, %ebx
cmpq %rbx, %r13
je 0x2cc10
movq (%r15,%rbx,8), %rcx
movq %r12, %rdi
leaq 0x27391(%rip), %rsi     # 0x53f93
movl %ebx, %edx
xorl %eax, %eax
callq 0x2190
incq %rbx
jmp 0x2cbef
leaq 0x27de1(%rip), %rdi     # 0x549f8
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq %r12, %rcx
callq 0x2280
leaq 0x2737f(%rip), %rbx     # 0x53fab
xorl %r15d, %r15d
subl $0x1, %ebp
jb 0x2cc4d
leal 0x2(%r15), %edx
incl %r15d
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x2190
jmp 0x2cc2f
pushq $0xa
popq %rdi
movq %r12, %rsi
callq 0x2140
xorl %eax, %eax
movl 0xb0(%rsp), %ecx
testl %ecx, %ecx
cmovlel %eax, %ecx
movq %rcx, 0x8(%rsp)
leaq 0x25ff3(%rip), %rbp     # 0x52c65
xorl %r15d, %r15d
cmpq 0x8(%rsp), %r15
je 0x2ccfb
imulq $0x158, %r15, %rax      # imm = 0x158
movq (%rsp), %rdx
movq 0x8(%rdx,%rax), %rcx
movq (%rcx), %rcx
movslq 0x64(%rcx), %rcx
shlq $0x5, %rcx
movsbl (%rdx,%rax), %edx
movq 0xb8(%rsp), %rax
addq %rax, %rcx
addq $0xd, %rcx
movsbl -0x1(%rcx), %r8d
movsbl 0x6(%rcx), %r9d
movq %r12, %rdi
leaq 0x27d42(%rip), %rsi     # 0x54a00
xorl %eax, %eax
callq 0x2190
xorl %ebx, %ebx
cmpq %rbx, %r13
je 0x2cce8
movq (%r14,%rbx,8), %rax
cvtss2sd (%rax,%r15,4), %xmm0
movq %r12, %rdi
movq %rbp, %rsi
movb $0x1, %al
callq 0x2190
incq %rbx
jmp 0x2ccc7
pushq $0xa
popq %rdi
movq %r12, %rsi
callq 0x2140
incq %r15
jmp 0x2cc75
movq %r12, %rdi
callq 0x20c0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq