// File: /workspace/github_c_makefile_star2_O3/ugobas[P]tnm/simulation.c
// Function: Simulate_ensemble
int Simulate_ensemble(int N_struct, float factor, char *name,
		      struct Para_simul Para_simul, float Mass_sqrt,
		      atom *atoms, int natoms,
		      struct axe *axe, int naxes,
		      struct bond *bonds,
		      struct residue *seq, int nres,
		      int N_diso, struct Normal_Mode NM,
		      struct Jacobian J, struct Reference Ref,
		      struct interaction *Int_list, int N_int,
		      struct interaction **Int_KB,
		      char *INT_TYPE, float s0, char *nameout,
		      int anhar)
{
  float E_thr=factor*factor*log(4*N_struct);
  float RMSD_mod_thr=0.02;
  float RMSD_min_fact=0.1;
  float sigma_thr=Mass_sqrt*RMSD_mod_thr/factor;
  float c_thr=Mass_sqrt*RMSD_mod_thr;
  float gasdev(long *idum);

  float *sigma2; int i, k;
  if(anhar){sigma2=NM.sigma2_anhar;}
  else{sigma2=NM.sigma2;}
  float sigma[NM.N];
  for(k=0; k<NM.N; k++){
    if(sigma2[k]>0){sigma[k]=sqrt(sigma2[k]);}
    else{sigma[k]=0;}
  }
  double RMSD_all=0;
  for(k=0; k<NM.N; k++){
    if(sigma[k]<sigma_thr)break;
    RMSD_all+=sigma2[k];
  }
  RMSD_all=sqrt(RMSD_all)/Mass_sqrt;
  float RMSD_thr=factor*RMSD_all*RMSD_min_fact;

  idum=randomgenerator();
  int n3=3*natoms;
  float mass[natoms]; for(i=0; i<natoms; i++)mass[i]=Mass(atoms+i);
  float coord_all_1[n3], coord_all[n3];
  Write_all_coord_atom(coord_all_1, atoms, natoms);

  // Open files
  char name_pdb[100], name_out[200];
  sprintf(name_pdb, "%s_%s_ensemble.pdb", nameout, name);
  FILE *file_pdb=fopen(name_pdb, "w");
  sprintf(name_out, "%s_%s_ensemble.dat", nameout, name);
  FILE *file_out=fopen(name_out, "w");
  fprintf(file_out, "#struct rmsd energy modes accept\n");
  if(anhar){
    fprintf(file_out, "# Omega2 corrected for anharmonicity\n");
    fprintf(file_pdb, "REMARK Omega2 corrected for anharmonicity\n");
  }

  double d_phi[naxes]; for(i=0; i<naxes; i++)d_phi[i]=0;
  float Ene_anhar,
    Ene_anhar_ini=Energy_anharmonic(coord_all_1,atoms,natoms,
				    seq,nres,Int_list,N_int,Int_KB,20,
				    axe, naxes, d_phi);
  // Write initial PDB
  //fprintf(file_pdb, "MODEL 0  RMSD from PDB= 0.0\n");
  //Print_PDB(file_pdb, atoms, natoms, coord_all_1, seq, 0, 0.00);
  fprintf(file_out, "%d %.3f %.3g 0 1\n", 0, 0.0, 0.0);

  int nsel=0, ndisc=0, ndisc_max=50, nconf=1;
  struct bond *bonds2=Set_bonds_topology(natoms, atoms, seq);
  //struct ali_atoms ali_a; Copy_ali(&ali_a, Ref);
  while(nsel<N_struct){
    if(ndisc>=ndisc_max)break;
    Set_bonds_measure(bonds, natoms, atoms);
    int nmode=0;
    for(k=0; k<NM.N; k++){
      // Change the structure with each relevant normal mode
      if(sigma[k]<sigma_thr)break;
      float c = gasdev(&idum)*factor*sigma[k], *mode=NM.Tors[k];
      if(c<c_thr)continue;
      nmode++;
      for(i=0; i<naxes; i++){d_phi[i]=c*mode[i];}
      Copy_bonds(bonds2, bonds, natoms);
      Build_up(bonds2, natoms, d_phi, naxes);
      Put_coord(coord_all, bonds2, natoms);
      Ene_anhar=Energy_anharmonic(coord_all,atoms,natoms,
				  seq,nres,Int_list,N_int,Int_KB,20,
				  axe, naxes, d_phi);
      Ene_anhar-= Ene_anhar_ini;
      if(Ene_anhar<=E_thr)Copy_bonds(bonds, bonds2, natoms); // accept
    }
    Put_coord(coord_all, bonds, natoms);
    float rmsd=rmsd_mclachlan_f(coord_all_1, coord_all, mass, natoms);
    Ene_anhar=Energy_anharmonic(coord_all,atoms,natoms,
				seq,nres,Int_list,N_int,Int_KB,20,
				axe, naxes, d_phi);
    Ene_anhar-= Ene_anhar_ini;
    fprintf(file_out, "%d %.3f %.3g %d", nconf, rmsd, Ene_anhar, nmode);
    nconf++;
    if(Ene_anhar>E_thr || rmsd<RMSD_thr){
      ndisc++; fprintf(file_out, " 0\n"); continue;
    }
    nsel++; fprintf(file_out, " 1\n");
    Print_PDB(file_pdb, atoms, natoms, coord_all, seq, nsel, rmsd);
  }
  printf("Distances printed in %s\n", name_out); fclose(file_out);
  if(nsel)printf("%d simulated structures printed in %s\n", nsel, name_pdb);
  fclose(file_pdb);
  Set_bonds_measure(bonds, natoms, atoms);
  //if(Ini_ch==0){Empty_tors(Diff_s); free(ali_sim.alignres); Ini_ch=1;}
  if(ndisc>=ndisc_max){
    printf("WARNING, amplitude factor= %.1f", factor);
    printf(" only %d over %d structure printed in ensemble\n",nsel,N_struct);
    printf("Rejection ratio= %.1f\n", (float)nconf/nsel-1);
    return(-1);
  }
  return(nsel);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %r9, -0x88(%rbp)
movq %r8, -0xb8(%rbp)
movl %ecx, %r15d
movq %rdx, -0x48(%rbp)
movss %xmm1, -0x2c(%rbp)
movq %rsi, %rbx
movss %xmm0, -0x3c(%rbp)
movq %rdi, -0xa8(%rbp)
leal (,%rdi,4), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x2120
movsd %xmm0, -0x50(%rbp)
movss 0x27f0e(%rip), %xmm0    # 0x5ad80
mulss -0x2c(%rbp), %xmm0
movss %xmm0, -0xc8(%rbp)
divss -0x3c(%rbp), %xmm0
movss %xmm0, -0x7c(%rbp)
cmpl $0x0, 0x1e0(%rbp)
leaq 0x98(%rbp), %rcx
leaq 0xf8(%rbp), %rax
cmoveq %rcx, %rax
movl -0x28(%rcx), %edx
movq %rsp, %rsi
leaq 0xf(,%rdx,4), %rcx
andq $-0x10, %rcx
subq %rcx, %rsi
movq %rsi, -0xc0(%rbp)
movq %rsi, %rsp
xorps %xmm0, %xmm0
movq %rdx, -0x70(%rbp)
testl %edx, %edx
movq %r15, -0x38(%rbp)
jle 0x32f4a
movq (%rax), %r14
xorl %r15d, %r15d
xorps %xmm2, %xmm2
movss (%r14,%r15,4), %xmm1
ucomiss %xmm2, %xmm1
xorps %xmm0, %xmm0
jbe 0x32efd
jb 0x32ef2
xorps %xmm0, %xmm0
sqrtss %xmm1, %xmm0
jmp 0x32efd
movaps %xmm1, %xmm0
callq 0x21d0
xorps %xmm2, %xmm2
movq -0xc0(%rbp), %rax
movss %xmm0, (%rax,%r15,4)
incq %r15
cmpq %r15, -0x70(%rbp)
jne 0x32ed9
xorps %xmm0, %xmm0
cmpl $0x0, -0x70(%rbp)
movq -0x38(%rbp), %r15
jle 0x32f4a
xorl %eax, %eax
movq -0xc0(%rbp), %rcx
movss -0x7c(%rbp), %xmm1
ucomiss (%rcx,%rax,4), %xmm1
ja 0x32f4a
xorps %xmm1, %xmm1
cvtss2sd (%r14,%rax,4), %xmm1
addsd %xmm1, %xmm0
incq %rax
cmpq %rax, -0x70(%rbp)
jne 0x32f29
ucomisd 0x1e226(%rip), %xmm0    # 0x51178
jb 0x32f5a
sqrtsd %xmm0, %xmm0
jmp 0x32f5f
callq 0x22a0
movsd %xmm0, -0x68(%rbp)
movq 0x1d8(%rbp), %r14
callq 0x32a14
movq %rax, 0x46591(%rip)     # 0x79508
leal (%r15,%r15,2), %eax
movl %r15d, %ecx
movq %rcx, -0x98(%rbp)
movq %rsp, %rdx
leaq 0xf(,%rcx,4), %rcx
andq $-0x10, %rcx
subq %rcx, %rdx
movq %rdx, %rsp
movq %r15, %rcx
movl %eax, %r15d
testl %ecx, %ecx
movq %rdx, -0xf0(%rbp)
jle 0x33042
xorl %r13d, %r13d
movq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x25a4d
movq -0xf0(%rbp), %rdx
movq -0x98(%rbp), %rdi
movss %xmm0, (%rdx,%r13,4)
incq %r13
addq $0x70, %r12
cmpq %r13, %rdi
jne 0x32fb6
movq %rsp, %r8
leaq 0xf(,%r15,4), %rax
andq $-0x10, %rax
subq %rax, %r8
movq %r8, %rsp
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, -0x60(%rbp)
movq %rcx, %rsp
movq -0x38(%rbp), %r15
testl %r15d, %r15d
movq %r8, -0xa0(%rbp)
jle 0x3306f
xorl %eax, %eax
movq -0x48(%rbp), %rcx
movq %r8, %rdx
xorl %esi, %esi
xorps %xmm0, %xmm0
cvtsd2ss (%rcx,%rsi,2), %xmm0
movss %xmm0, (%rdx,%rsi)
addq $0x4, %rsi
cmpl $0xc, %esi
jne 0x3301b
incq %rax
addq $0x70, %rcx
addq %rsi, %rdx
cmpq %rdi, %rax
jne 0x33019
jmp 0x3306f
movq %rsp, %rcx
leaq 0xf(,%r15,4), %rax
andq $-0x10, %rax
subq %rax, %rcx
movq %rcx, -0xa0(%rbp)
movq %rcx, %rsp
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, -0x60(%rbp)
movq %rcx, %rsp
movq -0x38(%rbp), %r15
leaq 0x27e9e(%rip), %rsi     # 0x5af14
leaq -0x170(%rbp), %r12
movq %r12, %rdi
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x2270
leaq 0x2416c(%rip), %r13     # 0x57200
movq %r12, %rdi
movq %r13, %rsi
callq 0x2220
movq %r14, %rdx
movq %rax, %r14
leaq 0x27e7b(%rip), %rsi     # 0x5af27
leaq -0x240(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x2270
movq %r12, %rdi
movq %r13, %rsi
callq 0x2220
movq %rax, %r12
leaq 0x27e65(%rip), %rdi     # 0x5af3a
movl $0x21, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x2290
cmpl $0x0, 0x1e0(%rbp)
je 0x33122
leaq 0x27e65(%rip), %rdi     # 0x5af5c
movl $0x25, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x2290
leaq 0x27e72(%rip), %rdi     # 0x5af82
movl $0x2a, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x2290
movq %r14, -0xd8(%rbp)
movq -0x88(%rbp), %r14
movl %r14d, %r13d
movq %rsp, %r10
leaq 0xf(,%r13,8), %rax
andq $-0x10, %rax
subq %rax, %r10
movq %r10, %rsp
testl %r14d, %r14d
movq -0xa0(%rbp), %rbx
movq %r10, -0x78(%rbp)
jle 0x3316e
leaq (,%r13,8), %rdx
movq %r10, %rdi
xorl %esi, %esi
callq 0x2110
movq -0x78(%rbp), %r10
movq %r13, -0x108(%rbp)
xorps %xmm0, %xmm0
cvtss2sd -0x3c(%rbp), %xmm0
movsd %xmm0, -0xd0(%rbp)
movq 0x50(%rbp), %r13
movq %rbx, %rdi
movq -0x48(%rbp), %rbx
movq %rbx, %rsi
movl %r15d, %edx
movq 0x58(%rbp), %rcx
movl 0x60(%rbp), %r8d
movq 0x1b8(%rbp), %r9
pushq %r10
pushq %r14
pushq -0xb8(%rbp)
pushq $0x14
pushq 0x1c8(%rbp)
movl 0x1c0(%rbp), %eax
pushq %rax
callq 0x1ad94
addq $0x30, %rsp
movsd %xmm0, -0x90(%rbp)
leaq 0x27dd7(%rip), %rsi     # 0x5afad
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %r12, -0xe0(%rbp)
movq %r12, %rdi
xorl %edx, %edx
movb $0x2, %al
callq 0x21a0
movl %r15d, %edi
movq %rbx, %rsi
movq 0x58(%rbp), %rdx
callq 0x15645
cmpl $0x0, -0xa8(%rbp)
jle 0x336da
movq %rax, %rbx
xorps %xmm0, %xmm0
cvtss2sd -0x2c(%rbp), %xmm0
movsd -0x68(%rbp), %xmm2
divsd %xmm0, %xmm2
movss -0x3c(%rbp), %xmm0
mulss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
mulsd -0xd0(%rbp), %xmm2
movsd -0x50(%rbp), %xmm1
mulsd %xmm0, %xmm1
mulsd 0x26a2b(%rip), %xmm2    # 0x59c70
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, -0x68(%rbp)
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
movss %xmm0, -0xc4(%rbp)
xorps %xmm0, %xmm0
cvtsd2ss -0x90(%rbp), %xmm0
movss %xmm0, -0x90(%rbp)
addq $0x8, %rax
movq %rax, -0x100(%rbp)
leaq 0x8(%r13), %rax
movq %rax, -0xf8(%rbp)
xorl %eax, %eax
movl $0x1, -0x54(%rbp)
movl $0x0, -0x30(%rbp)
movq %rax, -0xe8(%rbp)
movq %r13, %rdi
movl %r15d, %esi
movq -0x48(%rbp), %rdx
callq 0x14cf3
movl $0x0, -0x50(%rbp)
cmpl $0x0, -0x70(%rbp)
movq -0x98(%rbp), %r8
jle 0x3351d
leaq 0x70(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0xb0(%rbp)
xorl %r12d, %r12d
movl $0x0, -0x50(%rbp)
movq -0xc0(%rbp), %rax
movss (%rax,%r12,4), %xmm1
movss -0x7c(%rbp), %xmm0
ucomiss %xmm1, %xmm0
ja 0x3351d
leaq 0x46206(%rip), %rdi     # 0x79508
movss %xmm1, -0x2c(%rbp)
callq 0x5014c
movss -0x2c(%rbp), %xmm1
mulss -0x3c(%rbp), %xmm0
mulss %xmm0, %xmm1
movss -0xc8(%rbp), %xmm0
ucomiss %xmm1, %xmm0
ja 0x33509
testl %r14d, %r14d
movq -0x108(%rbp), %rsi
movq -0x78(%rbp), %rdx
jle 0x33362
movq -0xb0(%rbp), %rax
movq (%rax,%r12,8), %rax
xorl %ecx, %ecx
movss (%rax,%rcx,4), %xmm0
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %rsi
jne 0x33348
movq $0x0, 0x28(%rbx)
testl %r15d, %r15d
jle 0x33434
xorl %r15d, %r15d
xorl %r14d, %r14d
leaq (%r15,%r13), %rsi
leaq (%rbx,%r15), %rdi
movl $0xc0, %edx
callq 0x21b0
testl %r14d, %r14d
je 0x333b4
movq 0x28(%r13,%r15), %rax
subq %r13, %rax
shrq $0x6, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
leaq (%rax,%rax,2), %rax
shlq $0x6, %rax
addq %rbx, %rax
movq %rax, 0x28(%rbx,%r15)
incl %r14d
addq $0xc0, %r15
cmpl %r14d, -0x38(%rbp)
jne 0x33379
movq %rbx, %rdi
movq -0x38(%rbp), %r15
movl %r15d, %esi
movq -0x78(%rbp), %rdx
movq -0x88(%rbp), %r14
movl %r14d, %ecx
callq 0x15083
movq -0x100(%rbp), %rax
xorl %ecx, %ecx
movq -0x60(%rbp), %rdx
movq -0x98(%rbp), %rdi
movl -0x50(%rbp), %r8d
leaq (%rcx,%rcx,2), %rsi
shlq $0x6, %rsi
cmpl $0x0, 0x20(%rbx,%rsi)
js 0x33446
xorl %esi, %esi
xorps %xmm0, %xmm0
cvtsd2ss (%rax,%rsi,2), %xmm0
movss %xmm0, (%rdx,%rsi)
addq $0x4, %rsi
cmpq $0xc, %rsi
jne 0x3340a
incq %rcx
addq $0xc0, %rax
addq %rsi, %rdx
cmpq %rdi, %rcx
jne 0x333f9
jmp 0x33446
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %ecx
callq 0x15083
movl -0x50(%rbp), %r8d
incl %r8d
movl %r8d, -0x50(%rbp)
movq -0x60(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl %r15d, %edx
movq 0x58(%rbp), %rcx
movl 0x60(%rbp), %r8d
movq 0x1b8(%rbp), %r9
pushq -0x78(%rbp)
pushq %r14
pushq -0xb8(%rbp)
pushq $0x14
pushq 0x1c8(%rbp)
movl 0x1c0(%rbp), %eax
pushq %rax
callq 0x1ad94
addq $0x30, %rsp
cvtsd2ss %xmm0, %xmm0
subss -0x90(%rbp), %xmm0
movss -0x68(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jb 0x33509
movq $0x0, 0x28(%r13)
testl %r15d, %r15d
jle 0x33509
xorl %r15d, %r15d
xorl %r14d, %r14d
leaq (%rbx,%r15), %rsi
leaq (%r15,%r13), %rdi
movl $0xc0, %edx
callq 0x21b0
testl %r14d, %r14d
je 0x334ee
movq 0x28(%rbx,%r15), %rax
subq %rbx, %rax
shrq $0x6, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
leaq (%rax,%rax,2), %rax
shlq $0x6, %rax
addq %r13, %rax
movq %rax, 0x28(%r13,%r15)
incl %r14d
addq $0xc0, %r15
cmpl %r14d, -0x38(%rbp)
jne 0x334b3
movq -0x38(%rbp), %r15
movq -0x88(%rbp), %r14
incq %r12
cmpq -0x70(%rbp), %r12
movq -0x98(%rbp), %r8
jne 0x332e0
testl %r15d, %r15d
movq -0xa0(%rbp), %rdi
jle 0x33570
movq -0xf8(%rbp), %rax
xorl %ecx, %ecx
movq -0x60(%rbp), %rdx
leaq (%rcx,%rcx,2), %rsi
shlq $0x6, %rsi
cmpl $0x0, 0x20(%r13,%rsi)
js 0x33570
xorl %esi, %esi
xorps %xmm0, %xmm0
cvtsd2ss (%rax,%rsi,2), %xmm0
movss %xmm0, (%rdx,%rsi)
addq $0x4, %rsi
cmpq $0xc, %rsi
jne 0x33548
incq %rcx
addq $0xc0, %rax
addq %rsi, %rdx
cmpq %r8, %rcx
jne 0x33536
movq -0x60(%rbp), %r12
movq %r12, %rsi
movq -0xf0(%rbp), %rdx
movl %r15d, %ecx
callq 0x4dfa0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x2c(%rbp)
movq %r12, %rdi
movq -0x48(%rbp), %rsi
movl %r15d, %edx
movq 0x58(%rbp), %rcx
movl 0x60(%rbp), %r8d
movq 0x1b8(%rbp), %r9
pushq -0x78(%rbp)
pushq %r14
pushq -0xb8(%rbp)
pushq $0x14
pushq 0x1c8(%rbp)
movl 0x1c0(%rbp), %eax
pushq %rax
callq 0x1ad94
addq $0x30, %rsp
xorps %xmm1, %xmm1
cvtsd2ss %xmm0, %xmm1
subss -0x90(%rbp), %xmm1
movss %xmm1, -0xb0(%rbp)
xorps %xmm0, %xmm0
cvtss2sd -0x2c(%rbp), %xmm0
cvtss2sd %xmm1, %xmm1
movq -0xe0(%rbp), %r12
movq %r12, %rdi
leaq 0x279c0(%rip), %rsi     # 0x5afbf
movl -0x54(%rbp), %edx
movl -0x50(%rbp), %ecx
movb $0x2, %al
callq 0x21a0
movss -0xb0(%rbp), %xmm0
ucomiss -0x68(%rbp), %xmm0
ja 0x33675
movss -0xc4(%rbp), %xmm0
ucomiss -0x2c(%rbp), %xmm0
ja 0x33675
movl -0x30(%rbp), %r15d
incl %r15d
movl $0x3, %esi
movl $0x1, %edx
leaq 0x2797b(%rip), %rdi     # 0x5afbb
movq %r12, %rcx
callq 0x2290
movq -0xd8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq 0x58(%rbp), %r8
movl %r15d, %r9d
movss -0x2c(%rbp), %xmm0
callq 0x3285f
movq -0xe8(%rbp), %r14
jmp 0x3369c
movq -0xe8(%rbp), %r14
incl %r14d
movl $0x3, %esi
movl $0x1, %edx
leaq 0x2793f(%rip), %rdi     # 0x5afcf
movq %r12, %rcx
callq 0x2290
movl -0x30(%rbp), %r15d
incl -0x54(%rbp)
cmpl $0x32, %r14d
setge %r12b
movl %r15d, -0x30(%rbp)
cmpl -0xa8(%rbp), %r15d
movq -0x38(%rbp), %r15
movq %r14, %rax
movq -0x88(%rbp), %r14
jge 0x336cb
cmpl $0x32, %eax
jl 0x33299
xorps %xmm0, %xmm0
cvtsi2ssl -0x54(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
jmp 0x336f1
movl $0x0, -0x30(%rbp)
movss 0x1da33(%rip), %xmm0    # 0x5111c
movss %xmm0, -0x2c(%rbp)
xorl %r12d, %r12d
leaq 0x278db(%rip), %rdi     # 0x5afd3
leaq -0x240(%rbp), %rsi
xorl %eax, %eax
callq 0x20f0
movq -0xe0(%rbp), %rdi
callq 0x20c0
movl -0x30(%rbp), %r14d
testl %r14d, %r14d
movq -0xd8(%rbp), %rbx
je 0x3373a
leaq 0x278c3(%rip), %rdi     # 0x5afec
leaq -0x170(%rbp), %rdx
movl %r14d, %esi
xorl %eax, %eax
callq 0x20f0
movq %rbx, %rdi
callq 0x20c0
movq %r13, %rdi
movl %r15d, %esi
movq -0x48(%rbp), %rdx
callq 0x14cf3
testb %r12b, %r12b
je 0x337b8
leaq 0x278b6(%rip), %rdi     # 0x5b013
movsd -0xd0(%rbp), %xmm0
movb $0x1, %al
callq 0x20f0
leaq 0x278c0(%rip), %rdi     # 0x5b033
movl %r14d, %esi
movq -0xa8(%rbp), %rdx
xorl %eax, %eax
callq 0x20f0
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
movss -0x2c(%rbp), %xmm1
divss %xmm0, %xmm1
addss 0x1d973(%rip), %xmm1    # 0x51110
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
leaq 0x278b8(%rip), %rdi     # 0x5b063
movb $0x1, %al
callq 0x20f0
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %r14d, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq