// File: /workspace/github_c_makefile_star2_O3/ugobas[P]tnm/mutation.c
// Function: Optimize_coeff
float Optimize_coeff(float *C_size_opt, float *C_stab_opt, float *C_dist_opt,
		     float *MSD_mut, float *MSD_cross,
		     float *A_mut, float *A_nomut,float *A_cross,float *offset,
		     float *pred_mut_3, float *pred_mut_2,
		     float *pred_mut_tot_2, 
		     int Na, int *n_cont_mut, float *Force, float *Force_coeff,
		     float *pred_mut_Cart, int N_Cart, 
		     float *pred_mut_Tors, int N_axes,
		     char *AAwt, int *Posmut, char *AAmut, int Nmut,
		     int **clist, int **cnum, struct interaction *Int_list,
		     struct residue *seq, int Nres, atom *atoms, int *resatom,
		     struct Reference Ref_kin,
		     int *kin_atom, struct Normal_Mode NM, float *sigma2,
		     float **B3, float *B_pred,
		     float *str_diff_3, float *str_diff_2)
{
  float y_max=-1000; float DE=0;
  ini_fit=1;

  // Initialize parameters
  float C_size=*C_size_opt, C_stab=*C_stab_opt, C_dist=*C_dist_opt;

  printf("Optimizing mutation coefficients\n");
  int ifit=0, j, n_fail=0;
  for(int it=0; it<200; it++){
    float x[3], y[3], yy, *C_move, *C_move_opt;
    if(ifit==0){C_move=&C_size; C_move_opt=C_size_opt; ifit=1;}
    else{C_move=&C_dist; C_move_opt=C_dist_opt; ifit=0;}
    if(it==0){
      y_max=Pred_mut_str(C_size, C_stab, C_dist, &DE, MSD_mut, MSD_cross,
			 A_mut, A_nomut, A_cross, offset,
			 pred_mut_3, pred_mut_2, pred_mut_tot_2, Na,
			 n_cont_mut, Force, Force_coeff,
			 pred_mut_Cart, N_Cart, pred_mut_Tors, N_axes, 
			 AAwt,Posmut,AAmut,Nmut,clist,cnum,Int_list,seq,Nres,
			 atoms, resatom, Ref_kin, kin_atom, NM, sigma2,
			 B3, B_pred, str_diff_2, str_diff_3);
      printf("%d cc: %.4g Weights: %.3g %.3g %.3g\n",
	     -1,y_max,C_size/scale_C,C_stab/scale_C,C_dist/scale_C);
    }
    x[1]=*C_move; y[1]=y_max; int j_max=1;
    float x_min=0, x_max=x[1]*100;
    for(j=0; j<=2; j+=2){
      if(j==0){x[0]=x[1]*0.85;}
      else if(j==2){x[2]=x[1]*1.15;}
      *C_move=x[j];
      y[j]=Pred_mut_str(C_size, C_stab, C_dist, &DE, MSD_mut, MSD_cross,
			A_mut, A_nomut, A_cross, offset,
			pred_mut_3, pred_mut_2, pred_mut_tot_2, Na,
			n_cont_mut, Force, Force_coeff,
			pred_mut_Cart, N_Cart, pred_mut_Tors, N_axes, 
			AAwt,Posmut,AAmut,Nmut,clist,cnum,Int_list,seq,Nres,
			atoms, resatom, Ref_kin, kin_atom, NM, sigma2,
			B3, B_pred, str_diff_3, str_diff_2);
      if(y[j] > y_max){y_max=y[j]; j_max=j;}
    }
    // Determine new value of x and test its score
    *C_move=Find_max_quad(x[0], x[1], x[2], y[0], y[1], y[2], x_min, x_max);
    if(*C_move==x[j_max]){yy=y_max;}
    else{
      yy=Pred_mut_str(C_size, C_stab, C_dist, &DE, MSD_mut, MSD_cross, 
		      A_mut, A_nomut, A_cross, offset,
		      pred_mut_3, pred_mut_2, pred_mut_tot_2, Na,
		      n_cont_mut, Force, Force_coeff,
		      pred_mut_Cart, N_Cart, pred_mut_Tors, N_axes, 
		      AAwt,Posmut,AAmut,Nmut,clist,cnum,Int_list,seq,Nres,
		      atoms, resatom, Ref_kin, kin_atom, NM, sigma2,
		      B3, B_pred, str_diff_3, str_diff_2);
    }
    printf("%d cc: %.4g Weights: %.3g %.3g %.3g\n",
	   it,yy,C_size/scale_C,C_stab/scale_C,C_dist/scale_C);
    if(yy > y_max){
      n_fail=0; y_max=yy;
    }else if(j_max!=1){
      n_fail=0; *C_move=x[j_max];
    }else{
      // Score does not improve. If two consecutive failures, exit.
      n_fail++; *C_move=x[j_max];
    }
    *C_move_opt=*C_move;
    if(n_fail>=2){
      printf("%d consecutive decreases, exiting\n", n_fail); break;
    }
  } // end iterations
  // Recompute
  y_max=Pred_mut_str(*C_size_opt, *C_stab_opt, *C_dist_opt, &DE,
		     MSD_mut, MSD_cross,
		     A_mut, A_nomut, A_cross, offset,
		     pred_mut_3, pred_mut_2, pred_mut_tot_2, Na,
		     n_cont_mut, Force, Force_coeff,
		     pred_mut_Cart, N_Cart, pred_mut_Tors, N_axes, 
		     AAwt,Posmut,AAmut,Nmut,clist,cnum,Int_list,seq,Nres,
		     atoms, resatom, Ref_kin, kin_atom, NM, sigma2,
		     B3, B_pred, str_diff_3, str_diff_2);
  printf("mut_pred_score: %.4g  Weights: %.3g %.3g %.3g\n",
  	 y_max, *C_size_opt/scale_C, *C_stab_opt/scale_C, *C_dist_opt/scale_C);

  return(y_max);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %r9, 0x220(%rsp)
movq %r8, 0x218(%rsp)
movq %rcx, 0x210(%rsp)
leaq 0x378(%rsp), %rbx
movl $0x1, 0x2b4c7(%rip)     # 0x68f64
movq %rdi, 0x250(%rsp)
movss (%rdi), %xmm0
movss %xmm0, 0x1f0(%rsp)
movq %rsi, 0x268(%rsp)
movss (%rsi), %xmm0
movss %xmm0, 0x1fc(%rsp)
movq %rdx, 0x258(%rsp)
movss (%rdx), %xmm0
movss %xmm0, 0x1ec(%rsp)
leaq 0x1f0c4(%rip), %rdi     # 0x5cba7
callq 0x2090
movss 0x1f0(%rsp), %xmm3
xorl %r15d, %r15d
movss 0x1bf5c(%rip), %xmm4    # 0x59a58
xorl %ebp, %ebp
xorl %r14d, %r14d
testl %r15d, %r15d
movq 0x258(%rsp), %rax
cmoveq 0x250(%rsp), %rax
movq %rax, 0x260(%rsp)
testl %ebp, %ebp
jne 0x3ddb8
leaq 0xf0(%rsp), %rdi
movl $0x1a, %ecx
leaq 0x3b0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0xd8(%rsp)
movups %xmm1, 0xc8(%rsp)
movups %xmm0, 0xb8(%rsp)
movq 0x498(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq 0x4a0(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x490(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x488(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x480(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x3a8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x370(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x368(%rsp), %rax
movq %rax, 0xa8(%rsp)
movl 0x360(%rsp), %eax
movl %eax, 0xa0(%rsp)
movq 0x358(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x350(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x348(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x340(%rsp), %rax
movq %rax, 0x80(%rsp)
movl 0x338(%rsp), %eax
movl %eax, 0x78(%rsp)
movq 0x330(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x328(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x320(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0x318(%rsp), %eax
movl %eax, 0x58(%rsp)
movq 0x310(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0x308(%rsp), %eax
movl %eax, 0x48(%rsp)
movq 0x300(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x2f8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x2f0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x2e8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x2e0(%rsp), %eax
movl %eax, 0x20(%rsp)
movq 0x2d8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x2d0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x2c8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x2c0(%rsp), %rax
movq %rax, (%rsp)
movaps %xmm3, %xmm0
movss 0x1fc(%rsp), %xmm1
movss 0x1ec(%rsp), %xmm2
leaq 0x20c(%rsp), %rdi
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
movq 0x220(%rsp), %rcx
movq 0x2b0(%rsp), %r8
movq 0x2b8(%rsp), %r9
movss %xmm3, 0x1f0(%rsp)
callq 0x3e7ef
movss %xmm0, 0x1f8(%rsp)
cvtss2sd %xmm0, %xmm0
movss 0x3b82f(%rip), %xmm3    # 0x7958c
movss 0x1f0(%rsp), %xmm1
divss %xmm3, %xmm1
cvtss2sd %xmm1, %xmm1
movss 0x1fc(%rsp), %xmm2
divss %xmm3, %xmm2
cvtss2sd %xmm2, %xmm2
movss 0x1ec(%rsp), %xmm4
divss %xmm3, %xmm4
xorps %xmm3, %xmm3
cvtss2sd %xmm4, %xmm3
leaq 0x1eb15(%rip), %rdi     # 0x5c8af
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movb $0x4, %al
callq 0x20f0
movss 0x1f8(%rsp), %xmm4
movss 0x1f0(%rsp), %xmm3
movq %r14, 0x270(%rsp)
movl %ebp, 0x240(%rsp)
movaps %xmm3, %xmm0
testl %r15d, %r15d
movss 0x1ec(%rsp), %xmm2
je 0x3dddb
movaps %xmm2, %xmm0
movl %r15d, %eax
xorl $0x1, %eax
movl %eax, 0x238(%rsp)
movss %xmm0, 0x230(%rsp)
movss %xmm0, 0x23c(%rsp)
cvtss2sd %xmm0, %xmm0
movaps %xmm0, %xmm1
mulsd 0x1e18f(%rip), %xmm1    # 0x5bf98
cvtsd2ss %xmm1, %xmm1
movss %xmm1, 0x244(%rsp)
mulsd 0x1e182(%rip), %xmm0    # 0x5bfa0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x1f4(%rsp)
movl $0x1, %r14d
xorl %r13d, %r13d
movb $0x1, %r12b
leaq 0x24c(%rsp), %rbp
leaq 0x22c(%rsp), %rax
movss %xmm4, 0x1f8(%rsp)
movss %xmm4, 0x204(%rsp)
movaps %xmm2, %xmm1
testb $0x1, %r12b
je 0x3de76
movss 0x1f4(%rsp), %xmm0
movss %xmm0, 0x22c(%rsp)
jmp 0x3de88
movss 0x244(%rsp), %xmm0
movss %xmm0, 0x234(%rsp)
movss (%rax), %xmm2
testl %r15d, %r15d
movss %xmm1, 0x200(%rsp)
movss %xmm3, 0x208(%rsp)
je 0x3dea8
movaps %xmm3, %xmm0
jmp 0x3deae
movaps %xmm2, %xmm0
movaps %xmm1, %xmm2
movss %xmm2, 0x1ec(%rsp)
movss %xmm0, 0x1f0(%rsp)
leaq 0xf0(%rsp), %rdi
movl $0x1a, %ecx
leaq 0x3b0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rbx), %xmm3
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm4
movups %xmm4, 0xd8(%rsp)
movups %xmm1, 0xc8(%rsp)
movups %xmm3, 0xb8(%rsp)
movq 0x4a0(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq 0x498(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x490(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x488(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x480(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x3a8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x370(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x368(%rsp), %rax
movq %rax, 0xa8(%rsp)
movl 0x360(%rsp), %eax
movl %eax, 0xa0(%rsp)
movq 0x358(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x350(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x348(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x340(%rsp), %rax
movq %rax, 0x80(%rsp)
movl 0x338(%rsp), %eax
movl %eax, 0x78(%rsp)
movq 0x330(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x328(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x320(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0x318(%rsp), %eax
movl %eax, 0x58(%rsp)
movq 0x310(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0x308(%rsp), %eax
movl %eax, 0x48(%rsp)
movq 0x300(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x2f8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x2f0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x2e8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x2e0(%rsp), %eax
movl %eax, 0x20(%rsp)
movq 0x2d8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x2d0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x2c8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x2c0(%rsp), %rax
movq %rax, (%rsp)
movss 0x1fc(%rsp), %xmm1
leaq 0x20c(%rsp), %rdi
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
movq 0x220(%rsp), %rcx
movq 0x2b0(%rsp), %r8
movq 0x2b8(%rsp), %r9
callq 0x3e7ef
movss 0x1ec(%rsp), %xmm2
movss 0x1f0(%rsp), %xmm3
movss 0x204(%rsp), %xmm1
ucomiss %xmm1, %xmm0
cmoval %r13d, %r14d
movss %xmm0, (%rbp)
maxss %xmm1, %xmm0
movl $0x2, %r13d
leaq 0x248(%rsp), %rbp
leaq 0x234(%rsp), %rax
movaps %xmm0, %xmm4
testb $0x1, %r12b
movl $0x0, %r12d
jne 0x3de50
movss %xmm0, 0x204(%rsp)
movss 0x23c(%rsp), %xmm1
movaps %xmm1, %xmm7
mulss 0x12fe1(%rip), %xmm7    # 0x51120
movss 0x234(%rsp), %xmm2
movss 0x24c(%rsp), %xmm3
movss 0x248(%rsp), %xmm5
xorps %xmm6, %xmm6
movss 0x1f4(%rsp), %xmm0
movss 0x1f8(%rsp), %xmm4
callq 0x4110c
movaps %xmm0, %xmm4
movss 0x200(%rsp), %xmm5
testl %r15d, %r15d
movl 0x240(%rsp), %ebp
je 0x3e198
movss 0x208(%rsp), %xmm4
movaps %xmm0, %xmm5
movslq %r14d, %rax
movss 0x22c(%rsp,%rax,4), %xmm1
movss %xmm1, 0x1f4(%rsp)
ucomiss %xmm1, %xmm0
movss 0x204(%rsp), %xmm0
movss %xmm5, 0x1ec(%rsp)
movss %xmm4, 0x1f0(%rsp)
jne 0x3e1d3
jnp 0x3e3f9
leaq 0xf0(%rsp), %rdi
movl $0x1a, %ecx
leaq 0x3b0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0xd8(%rsp)
movups %xmm1, 0xc8(%rsp)
movups %xmm0, 0xb8(%rsp)
movq 0x4a0(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq 0x498(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x490(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x488(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x480(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x3a8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x370(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x368(%rsp), %rax
movq %rax, 0xa8(%rsp)
movl 0x360(%rsp), %eax
movl %eax, 0xa0(%rsp)
movq 0x358(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x350(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x348(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x340(%rsp), %rax
movq %rax, 0x80(%rsp)
movl 0x338(%rsp), %eax
movl %eax, 0x78(%rsp)
movq 0x330(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x328(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x320(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0x318(%rsp), %eax
movl %eax, 0x58(%rsp)
movq 0x310(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0x308(%rsp), %eax
movl %eax, 0x48(%rsp)
movq 0x300(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x2f8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x2f0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x2e8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x2e0(%rsp), %eax
movl %eax, 0x20(%rsp)
movq 0x2d8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x2d0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x2c8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x2c0(%rsp), %rax
movq %rax, (%rsp)
movaps %xmm4, %xmm0
movss 0x1fc(%rsp), %xmm1
movaps %xmm5, %xmm2
leaq 0x20c(%rsp), %rdi
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
movq 0x220(%rsp), %rcx
movq 0x2b0(%rsp), %r8
movq 0x2b8(%rsp), %r9
callq 0x3e7ef
movss 0x1ec(%rsp), %xmm5
movss 0x1f0(%rsp), %xmm4
movss %xmm0, 0x1f8(%rsp)
cvtss2sd %xmm0, %xmm0
movss 0x3b17e(%rip), %xmm3    # 0x7958c
divss %xmm3, %xmm4
xorps %xmm1, %xmm1
cvtss2sd %xmm4, %xmm1
movss 0x1fc(%rsp), %xmm2
divss %xmm3, %xmm2
cvtss2sd %xmm2, %xmm2
divss %xmm3, %xmm5
xorps %xmm3, %xmm3
cvtss2sd %xmm5, %xmm3
leaq 0x1e473(%rip), %rdi     # 0x5c8af
movl %ebp, %esi
movb $0x4, %al
callq 0x20f0
movss 0x1f8(%rsp), %xmm4
movss 0x204(%rsp), %xmm1
ucomiss %xmm1, %xmm4
ja 0x3e508
cmpl $0x1, %r14d
jne 0x3e4bf
movss 0x1f4(%rsp), %xmm0
movaps %xmm0, %xmm3
testl %r15d, %r15d
je 0x3e489
movss 0x208(%rsp), %xmm3
movss %xmm0, 0x200(%rsp)
movq 0x270(%rsp), %rcx
leal 0x1(%rcx), %esi
movq 0x260(%rsp), %rax
movss %xmm0, (%rax)
testl %ecx, %ecx
jg 0x3e54b
movaps %xmm1, %xmm4
movss 0x200(%rsp), %xmm0
movss %xmm0, 0x1ec(%rsp)
jmp 0x3e530
testl %r15d, %r15d
movss 0x208(%rsp), %xmm0
je 0x3e4e1
movss %xmm0, 0x1f0(%rsp)
movss 0x1f4(%rsp), %xmm0
jmp 0x3e4fc
movss 0x1f4(%rsp), %xmm0
movss %xmm0, 0x1f0(%rsp)
movss 0x200(%rsp), %xmm0
movss %xmm0, 0x1ec(%rsp)
movaps %xmm1, %xmm4
movss 0x1f0(%rsp), %xmm3
movaps %xmm3, %xmm0
testl %r15d, %r15d
je 0x3e522
movss 0x1ec(%rsp), %xmm0
movq 0x260(%rsp), %rax
movss %xmm0, (%rax)
xorl %esi, %esi
incl %ebp
movl 0x238(%rsp), %r15d
movl %esi, %r14d
cmpl $0xc8, %ebp
jne 0x3db01
jmp 0x3e559
leaq 0x1e382(%rip), %rdi     # 0x5c8d4
xorl %eax, %eax
callq 0x20f0
movq 0x250(%rsp), %r12
movss (%r12), %xmm0
movq 0x268(%rsp), %r15
movss (%r15), %xmm1
movq 0x258(%rsp), %r14
movss (%r14), %xmm2
movl $0x1a, %ecx
leaq 0xf0(%rsp), %rdi
leaq 0x3b0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rbx), %xmm3
movups 0x10(%rbx), %xmm4
movups 0x20(%rbx), %xmm5
movups %xmm5, 0xd8(%rsp)
movups %xmm4, 0xc8(%rsp)
movups %xmm3, 0xb8(%rsp)
movq 0x4a0(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq 0x498(%rsp), %rax
movq %rax, 0x1d8(%rsp)
movq 0x490(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x488(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq 0x480(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x3a8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x370(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x368(%rsp), %rax
movq %rax, 0xa8(%rsp)
movl 0x360(%rsp), %eax
movl %eax, 0xa0(%rsp)
movq 0x358(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x350(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x348(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x340(%rsp), %rax
movq %rax, 0x80(%rsp)
movl 0x338(%rsp), %eax
movl %eax, 0x78(%rsp)
movq 0x330(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x328(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x320(%rsp), %rax
movq %rax, 0x60(%rsp)
movl 0x318(%rsp), %eax
movl %eax, 0x58(%rsp)
movq 0x310(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0x308(%rsp), %eax
movl %eax, 0x48(%rsp)
movq 0x300(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x2f8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x2f0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x2e8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0x2e0(%rsp), %eax
movl %eax, 0x20(%rsp)
movq 0x2d8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x2d0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x2c8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x2c0(%rsp), %rax
movq %rax, (%rsp)
leaq 0x20c(%rsp), %rdi
movq 0x2b0(%rsp), %r8
movq 0x2b8(%rsp), %r9
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
movq 0x220(%rsp), %rcx
callq 0x3e7ef
movss %xmm0, 0x1ec(%rsp)
cvtss2sd %xmm0, %xmm0
movss (%r12), %xmm1
movss 0x3adeb(%rip), %xmm3    # 0x7958c
divss %xmm3, %xmm1
cvtss2sd %xmm1, %xmm1
movss (%r15), %xmm2
divss %xmm3, %xmm2
cvtss2sd %xmm2, %xmm2
movss (%r14), %xmm4
divss %xmm3, %xmm4
xorps %xmm3, %xmm3
cvtss2sd %xmm4, %xmm3
leaq 0x1e12a(%rip), %rdi     # 0x5c8f7
movb $0x4, %al
callq 0x20f0
movss 0x1ec(%rsp), %xmm0
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq