// File: /workspace/github_c_makefile_star2_O0/lesgourg[P]class_public/build/../source/background.c
// Function: background_initial_conditions
int background_initial_conditions(
                                  struct precision *ppr,
                                  struct background *pba,
                                  double * pvecback, /* vector with argument pvecback[index_bg] (must be already allocated, normal format is sufficient) */
                                  double * pvecback_integration, /* vector with argument pvecback_integration[index_bi] (must be already allocated with size pba->bi_size) */
                                  double * loga_ini
                                  ) {

  /** Summary: */

  /** - define local variables */

  /* scale factor */
  double a;

  double rho_ncdm, p_ncdm, rho_ncdm_rel_tot=0.;
  double f,Omega_rad, rho_rad;
  int counter,is_early_enough,n_ncdm;
  double scf_lambda;
  double rho_fld_today;
  double w_fld,dw_over_da_fld,integral_fld;

  /** - fix initial value of \f$ a \f$ */
  a = ppr->a_ini_over_a_today_default;

  /**  If we have ncdm species, perhaps we need to start earlier
       than the standard value for the species to be relativistic.
       This could happen for some WDM models.
  */

  if (pba->has_ncdm == _TRUE_) {

    for (counter=0; counter < _MAX_IT_; counter++) {

      is_early_enough = _TRUE_;
      rho_ncdm_rel_tot = 0.;

      for (n_ncdm=0; n_ncdm<pba->N_ncdm; n_ncdm++) {

        class_call(background_ncdm_momenta(pba->q_ncdm_bg[n_ncdm],
                                           pba->w_ncdm_bg[n_ncdm],
                                           pba->q_size_ncdm_bg[n_ncdm],
                                           pba->M_ncdm[n_ncdm],
                                           pba->factor_ncdm[n_ncdm],
                                           1./a-1.0,
                                           NULL,
                                           &rho_ncdm,
                                           &p_ncdm,
                                           NULL,
                                           NULL),
                   pba->error_message,
                   pba->error_message);
        rho_ncdm_rel_tot += 3.*p_ncdm;
        if (fabs(p_ncdm/rho_ncdm-1./3.)>ppr->tol_ncdm_initial_w) {
          is_early_enough = _FALSE_;
        }
      }
      if (is_early_enough == _TRUE_) {
        break;
      }
      else {
        a *= _SCALE_BACK_;
      }
    }
    class_test(counter == _MAX_IT_,
               pba->error_message,
               "Search for initial scale factor a such that all ncdm species are relativistic failed.");
  }

  /* Set initial values of {B} variables: */
  Omega_rad = pba->Omega0_g;
  if (pba->has_ur == _TRUE_) {
    Omega_rad += pba->Omega0_ur;
  }
  if (pba->has_idr == _TRUE_) {
    Omega_rad += pba->Omega0_idr;
  }
  rho_rad = Omega_rad*pow(pba->H0,2)/pow(a,4);
  if (pba->has_ncdm == _TRUE_) {
    /** - We must add the relativistic contribution from NCDM species */
    rho_rad += rho_ncdm_rel_tot;
  }
  if (pba->has_dcdm == _TRUE_) {
    /* Remember that the critical density today in CLASS conventions is H0^2 */
    pvecback_integration[pba->index_bi_rho_dcdm] =
      pba->Omega_ini_dcdm*pba->H0*pba->H0*pow(a,-3);
    if (pba->background_verbose > 3)
      printf("Density is %g. Omega_ini=%g\n",pvecback_integration[pba->index_bi_rho_dcdm],pba->Omega_ini_dcdm);
  }

  if (pba->has_dr == _TRUE_) {
    if (pba->has_dcdm == _TRUE_) {
      /**  - f is the critical density fraction of DR. The exact solution is:
       *
       * `f = -Omega_rad+pow(pow(Omega_rad,3./2.)+0.5*pow(a,6)*pvecback_integration[pba->index_bi_rho_dcdm]*pba->Gamma_dcdm/pow(pba->H0,3),2./3.);`
       *
       * but it is not numerically stable for very small f which is always the case.
       * Instead we use the Taylor expansion of this equation, which is equivalent to
       * ignoring f(a) in the Hubble rate.
       */
      f = 1./3.*pow(a,6)*pvecback_integration[pba->index_bi_rho_dcdm]*pba->Gamma_dcdm/pow(pba->H0,3)/sqrt(Omega_rad);
      pvecback_integration[pba->index_bi_rho_dr] = f*pba->H0*pba->H0/pow(a,4);
    }
    else{
      /** There is also a space reserved for a future case where dr is not sourced by dcdm */
      pvecback_integration[pba->index_bi_rho_dr] = 0.0;
    }
  }

  if (pba->has_fld == _TRUE_) {

    /* rho_fld today */
    rho_fld_today = pba->Omega0_fld * pow(pba->H0,2);

    /* integrate rho_fld(a) from a_ini to a_0, to get rho_fld(a_ini) given rho_fld(a0) */
    class_call(background_w_fld(pba,a,&w_fld,&dw_over_da_fld,&integral_fld), pba->error_message, pba->error_message);

    /* Note: for complicated w_fld(a) functions with no simple
       analytic integral, this is the place were you should compute
       numerically the simple 1d integral [int_{a_ini}^{a_0} 3
       [(1+w_fld)/a] da] (e.g. with the Romberg method?) instead of
       calling background_w_fld */

    /* rho_fld at initial time */
    pvecback_integration[pba->index_bi_rho_fld] = rho_fld_today * exp(integral_fld);

  }

  /** - Fix initial value of \f$ \phi, \phi' \f$
   * set directly in the radiation attractor => fixes the units in terms of rho_ur
   *
   * TODO:
   * - There seems to be some small oscillation when it starts.
   * - Check equations and signs. Sign of phi_prime?
   * - is rho_ur all there is early on?
   */
  if (pba->has_scf == _TRUE_) {
    scf_lambda = pba->scf_parameters[0];
    if (pba->attractor_ic_scf == _TRUE_) {
      pvecback_integration[pba->index_bi_phi_scf] = -1/scf_lambda*
        log(rho_rad*4./(3*pow(scf_lambda,2)-12))*pba->phi_ini_scf;
      if (3.*pow(scf_lambda,2)-12. < 0) {
        /** - --> If there is no attractor solution for scf_lambda, assign some value. Otherwise would give a nan.*/
        pvecback_integration[pba->index_bi_phi_scf] = 1./scf_lambda;//seems to do the work
        if (pba->background_verbose > 0) {
          printf(" No attractor IC for lambda = %.3e ! \n ",scf_lambda);
        }
      }
      pvecback_integration[pba->index_bi_phi_prime_scf] = 2.*a*sqrt(V_scf(pba,pvecback_integration[pba->index_bi_phi_scf]))*pba->phi_prime_ini_scf;
    }
    else {
      printf("Not using attractor initial conditions\n");
      /** - --> If no attractor initial conditions are assigned, gets the provided ones. */
      pvecback_integration[pba->index_bi_phi_scf] = pba->phi_ini_scf;
      pvecback_integration[pba->index_bi_phi_prime_scf] = pba->phi_prime_ini_scf;
    }
    class_test(!isfinite(pvecback_integration[pba->index_bi_phi_scf]) ||
               !isfinite(pvecback_integration[pba->index_bi_phi_scf]),
               pba->error_message,
               "initial phi = %e phi_prime = %e -> check initial conditions",
               pvecback_integration[pba->index_bi_phi_scf],
               pvecback_integration[pba->index_bi_phi_scf]);
  }

  /* Infer pvecback from pvecback_integration */
  class_call(background_functions(pba, a, pvecback_integration, normal_info, pvecback),
             pba->error_message,
             pba->error_message);

  /* Just checking that our initial time indeed is deep enough in the radiation
     dominated regime */
  class_test(fabs(pvecback[pba->index_bg_Omega_r]-1.) > ppr->tol_initial_Omega_r,
             pba->error_message,
             "Omega_r = %e, not close enough to 1. Decrease a_ini_over_a_today_default in order to start from radiation domination.",
             pvecback[pba->index_bg_Omega_r]);

  /** - compute initial proper time, assuming radiation-dominated
      universe since Big Bang and therefore \f$ t=1/(2H) \f$ (good
      approximation for most purposes) */

  class_test(pvecback[pba->index_bg_H] <= 0.,
             pba->error_message,
             "H = %e instead of strictly positive",pvecback[pba->index_bg_H]);

  pvecback_integration[pba->index_bi_time] = 1./(2.* pvecback[pba->index_bg_H]);

  /** - compute initial conformal time, assuming radiation-dominated
      universe since Big Bang and therefore \f$ \tau=1/(aH) \f$
      (good approximation for most purposes) */
  pvecback_integration[pba->index_bi_tau] = 1./(a * pvecback[pba->index_bg_H]);

  /** - compute initial sound horizon, assuming \f$ c_s=1/\sqrt{3} \f$ initially */
  pvecback_integration[pba->index_bi_rs] = pvecback_integration[pba->index_bi_tau]/sqrt(3.);

  /** - set initial value of D and D' in RD. D and D' need only be set up to an overall constant, since they will later be re-normalized. From Ma&Bertschinger, one can derive D ~ (ktau)^2 at early times, from which one finds D'/D = 2 aH (assuming aH=1/tau during RD) */
  pvecback_integration[pba->index_bi_D] = 1.;
  pvecback_integration[pba->index_bi_D_prime] = 2.*a*pvecback[pba->index_bg_H];

  /** - return the value finally chosen for the initial log(a) */
  *loga_ini = log(a);

  return _SUCCESS_;

}

// Assembly:
subq $0x5918, %rsp           # imm = 0x5918
movq %rdi, 0x5908(%rsp)
movq %rsi, 0x5900(%rsp)
movq %rdx, 0x58f8(%rsp)
movq %rcx, 0x58f0(%rsp)
movq %r8, 0x58e8(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x58c8(%rsp)
movq 0x5908(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x58e0(%rsp)
movq 0x5900(%rsp), %rax
movswl 0x32a(%rax), %eax
cmpl $0x1, %eax
jne 0x9d77e
movl $0x0, 0x58ac(%rsp)
cmpl $0x2710, 0x58ac(%rsp) # imm = 0x2710
jge 0x9d6f3
movl $0x1, 0x58a8(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x58c8(%rsp)
movl $0x0, 0x58a4(%rsp)
movl 0x58a4(%rsp), %eax
movq 0x5900(%rsp), %rcx
cmpl 0x70(%rcx), %eax
jge 0x9d6b5
movq 0x5900(%rsp), %rax
movq 0x340(%rax), %rax
movslq 0x58a4(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x5900(%rsp), %rax
movq 0x348(%rax), %rax
movslq 0x58a4(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x5900(%rsp), %rax
movq 0x368(%rax), %rax
movslq 0x58a4(%rsp), %rcx
movl (%rax,%rcx,4), %edx
movq 0x5900(%rsp), %rax
movq 0x90(%rax), %rax
movslq 0x58a4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x5900(%rsp), %rax
movq 0x378(%rax), %rax
movslq 0x58a4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movsd 0x119cca(%rip), %xmm2   # 0x1b7248
divsd 0x58e0(%rsp), %xmm2
movsd 0x119cb9(%rip), %xmm3   # 0x1b7248
subsd %xmm3, %xmm2
xorl %eax, %eax
movl %eax, %ecx
leaq 0x58d8(%rsp), %r8
leaq 0x58d0(%rsp), %r9
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x95580
cmpl $0x1, %eax
jne 0x9d62f
leaq 0x5070(%rsp), %rdi
movq 0x5900(%rsp), %rcx
addq $0xb84, %rcx            # imm = 0xB84
leaq 0x119df8(%rip), %rsi    # 0x1b73d8
leaq 0x1347c6(%rip), %rdx    # 0x1d1dad
movb $0x0, %al
callq 0x5b9c0
movq 0x5900(%rsp), %rdi
addq $0xb84, %rdi            # imm = 0xB84
leaq 0x5070(%rsp), %r8
leaq 0x119a28(%rip), %rsi    # 0x1b7034
leaq 0x134870(%rip), %rdx    # 0x1d1e83
movl $0x886, %ecx            # imm = 0x886
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x5914(%rsp)
jmp 0x9e361
movsd 0x58d0(%rsp), %xmm0
movsd 0x58c8(%rsp), %xmm1
movsd 0x11b04f(%rip), %xmm2   # 0x1b8698
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x58c8(%rsp)
movsd 0x58d0(%rsp), %xmm0
divsd 0x58d8(%rsp), %xmm0
movsd 0x11ce24(%rip), %xmm1   # 0x1ba498
subsd %xmm1, %xmm0
movaps 0x119bb1(%rip), %xmm1   # 0x1b7230
pand %xmm1, %xmm0
movq 0x5908(%rsp), %rax
ucomisd 0x50(%rax), %xmm0
jbe 0x9d69d
movl $0x0, 0x58a8(%rsp)
jmp 0x9d69f
movl 0x58a4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x58a4(%rsp)
jmp 0x9d4d6
cmpl $0x1, 0x58a8(%rsp)
jne 0x9d6c1
jmp 0x9d6f3
movsd 0x119b97(%rip), %xmm0   # 0x1b7260
mulsd 0x58e0(%rsp), %xmm0
movsd %xmm0, 0x58e0(%rsp)
jmp 0x9d6dd
movl 0x58ac(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x58ac(%rsp)
jmp 0x9d4a3
cmpl $0x2710, 0x58ac(%rsp) # imm = 0x2710
jne 0x9d77c
leaq 0x4870(%rsp), %rdi
leaq 0x134792(%rip), %rsi    # 0x1d1ea1
movb $0x0, %al
callq 0x5b9c0
leaq 0x4070(%rsp), %rdi
leaq 0x4870(%rsp), %rcx
leaq 0x119955(%rip), %rsi    # 0x1b7082
leaq 0x11ccab(%rip), %rdx    # 0x1ba3df
movb $0x0, %al
callq 0x5b9c0
movq 0x5900(%rsp), %rdi
addq $0xb84, %rdi            # imm = 0xB84
leaq 0x4070(%rsp), %r8
leaq 0x1198db(%rip), %rsi    # 0x1b7034
leaq 0x134723(%rip), %rdx    # 0x1d1e83
movl $0x895, %ecx            # imm = 0x895
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x5914(%rsp)
jmp 0x9e361
jmp 0x9d77e
movq 0x5900(%rsp), %rax
movsd 0x10(%rax), %xmm0
movsd %xmm0, 0x58b8(%rsp)
movq 0x5900(%rsp), %rax
movswl 0x330(%rax), %eax
cmpl $0x1, %eax
jne 0x9d7c7
movq 0x5900(%rsp), %rax
movsd 0x28(%rax), %xmm0
addsd 0x58b8(%rsp), %xmm0
movsd %xmm0, 0x58b8(%rsp)
movq 0x5900(%rsp), %rax
movswl 0x332(%rax), %eax
cmpl $0x1, %eax
jne 0x9d7fa
movq 0x5900(%rsp), %rax
movsd 0x40(%rax), %xmm0
addsd 0x58b8(%rsp), %xmm0
movsd %xmm0, 0x58b8(%rsp)
movsd 0x58b8(%rsp), %xmm0
movsd %xmm0, 0x60(%rsp)
movq 0x5900(%rsp), %rax
movsd (%rax), %xmm0
movsd 0x11a463(%rip), %xmm1   # 0x1b7c80
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x60(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x68(%rsp)
movsd 0x58e0(%rsp), %xmm0
movsd 0x11cc82(%rip), %xmm1   # 0x1ba4c8
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x68(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x58b0(%rsp)
movq 0x5900(%rsp), %rax
movswl 0x32a(%rax), %eax
cmpl $0x1, %eax
jne 0x9d890
movsd 0x58c8(%rsp), %xmm0
addsd 0x58b0(%rsp), %xmm0
movsd %xmm0, 0x58b0(%rsp)
movq 0x5900(%rsp), %rax
movswl 0x324(%rax), %eax
cmpl $0x1, %eax
jne 0x9d95f
movq 0x5900(%rsp), %rax
movsd 0x58(%rax), %xmm0
movq 0x5900(%rsp), %rax
mulsd (%rax), %xmm0
movq 0x5900(%rsp), %rax
mulsd (%rax), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0x58e0(%rsp), %xmm0
movsd 0x11d0c4(%rip), %xmm1   # 0x1ba9a8
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x58(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2f0(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x5900(%rsp), %rax
movswl 0xb82(%rax), %eax
cmpl $0x3, %eax
jle 0x9d95d
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2f0(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x5900(%rsp), %rax
movsd 0x58(%rax), %xmm1
leaq 0x1345a1(%rip), %rdi    # 0x1d1ef7
movb $0x2, %al
callq 0x8030
jmp 0x9d95f
movq 0x5900(%rsp), %rax
movswl 0x326(%rax), %eax
cmpl $0x1, %eax
jne 0x9dabc
movq 0x5900(%rsp), %rax
movswl 0x324(%rax), %eax
cmpl $0x1, %eax
jne 0x9da9b
movsd 0x58e0(%rsp), %xmm0
movsd 0x11ace8(%rip), %xmm1   # 0x1b8688
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x11cae8(%rip), %xmm0   # 0x1ba498
mulsd %xmm1, %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2f0(%rcx), %rcx
mulsd (%rax,%rcx,8), %xmm0
movq 0x5900(%rsp), %rax
mulsd 0x60(%rax), %xmm0
movsd %xmm0, 0x40(%rsp)
movq 0x5900(%rsp), %rax
movsd (%rax), %xmm0
movsd 0x11aca1(%rip), %xmm1   # 0x1b8698
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x40(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x58b8(%rsp), %xmm0
callq 0x82e0
movaps %xmm0, %xmm1
movsd 0x48(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x58c0(%rsp)
movsd 0x58c0(%rsp), %xmm0
movq 0x5900(%rsp), %rax
mulsd (%rax), %xmm0
movq 0x5900(%rsp), %rax
mulsd (%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0x58e0(%rsp), %xmm0
movsd 0x11ca5d(%rip), %xmm1   # 0x1ba4c8
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x50(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2f4(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x9daba
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2f4(%rcx), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x9dabc
movq 0x5900(%rsp), %rax
movswl 0x32e(%rax), %eax
cmpl $0x1, %eax
jne 0x9dbff
movq 0x5900(%rsp), %rax
movsd 0x100(%rax), %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x5900(%rsp), %rax
movsd (%rax), %xmm0
movsd 0x11a182(%rip), %xmm1   # 0x1b7c80
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x38(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x5890(%rsp)
movq 0x5900(%rsp), %rdi
movsd 0x58e0(%rsp), %xmm0
leaq 0x5888(%rsp), %rsi
leaq 0x5880(%rsp), %rdx
leaq 0x5878(%rsp), %rcx
callq 0x95920
cmpl $0x1, %eax
jne 0x9dbb9
leaq 0x3870(%rsp), %rdi
movq 0x5900(%rsp), %rcx
addq $0xb84, %rcx            # imm = 0xB84
leaq 0x11986e(%rip), %rsi    # 0x1b73d8
leaq 0x1343a3(%rip), %rdx    # 0x1d1f14
movb $0x0, %al
callq 0x5b9c0
movq 0x5900(%rsp), %rdi
addq $0xb84, %rdi            # imm = 0xB84
leaq 0x3870(%rsp), %r8
leaq 0x11949e(%rip), %rsi    # 0x1b7034
leaq 0x1342e6(%rip), %rdx    # 0x1d1e83
movl $0x8c6, %ecx            # imm = 0x8C6
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x5914(%rsp)
jmp 0x9e361
movsd 0x5890(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd 0x5878(%rsp), %xmm0
callq 0x8670
movaps %xmm0, %xmm1
movsd 0x30(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2f8(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x5900(%rsp), %rax
movswl 0x328(%rax), %eax
cmpl $0x1, %eax
jne 0x9dfac
movq 0x5900(%rsp), %rax
movq 0x148(%rax), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x5898(%rsp)
movq 0x5900(%rsp), %rax
movswl 0x150(%rax), %eax
cmpl $0x1, %eax
jne 0x9de06
movsd 0x119b7d(%rip), %xmm0   # 0x1b77d0
divsd 0x5898(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd 0x11c85e(%rip), %xmm0   # 0x1ba4c8
mulsd 0x58b0(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x5898(%rsp), %xmm0
movsd 0x119ff6(%rip), %xmm1   # 0x1b7c80
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
movsd 0x11a9f8(%rip), %xmm2   # 0x1b8698
mulsd %xmm2, %xmm1
movsd 0x1324b4(%rip), %xmm2   # 0x1d0160
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x82f0
movaps %xmm0, %xmm1
movsd 0x28(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x5900(%rsp), %rax
mulsd 0x158(%rax), %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd 0x5898(%rsp), %xmm0
movsd 0x119f7d(%rip), %xmm1   # 0x1b7c80
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x11a985(%rip), %xmm0   # 0x1b8698
mulsd %xmm0, %xmm1
movsd 0x132441(%rip), %xmm0   # 0x1d0160
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x9dd86
movsd 0x119514(%rip), %xmm0   # 0x1b7248
divsd 0x5898(%rsp), %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x5900(%rsp), %rax
movswl 0xb82(%rax), %eax
cmpl $0x0, %eax
jle 0x9dd84
movsd 0x5898(%rsp), %xmm0
leaq 0x1341d4(%rip), %rdi    # 0x1d1f51
movb $0x1, %al
callq 0x8030
jmp 0x9dd86
movsd 0x119ef2(%rip), %xmm0   # 0x1b7c80
mulsd 0x58e0(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x5900(%rsp), %rdi
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x953c0
callq 0x82e0
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x5900(%rsp), %rax
mulsd 0x160(%rax), %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x300(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x9de6c
leaq 0x13416c(%rip), %rdi    # 0x1d1f79
movb $0x0, %al
callq 0x8030
movq 0x5900(%rsp), %rax
movsd 0x158(%rax), %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x5900(%rsp), %rax
movsd 0x160(%rax), %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x300(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq %xmm0, %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
subq %rcx, %rax
setl %al
testb $0x1, %al
jne 0x9deb0
jmp 0x9def6
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq %xmm0, %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
subq %rcx, %rax
setl %al
testb $0x1, %al
jne 0x9dfaa
leaq 0x3070(%rsp), %rdi
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x2fc(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm1
leaq 0x134064(%rip), %rsi    # 0x1d1fa1
movb $0x2, %al
callq 0x5b9c0
leaq 0x2870(%rsp), %rdi
leaq 0x3070(%rsp), %rcx
leaq 0x119127(%rip), %rsi    # 0x1b7082
leaq 0x13407b(%rip), %rdx    # 0x1d1fdd
movb $0x0, %al
callq 0x5b9c0
movq 0x5900(%rsp), %rdi
addq $0xb84, %rdi            # imm = 0xB84
leaq 0x2870(%rsp), %r8
leaq 0x1190ad(%rip), %rsi    # 0x1b7034
leaq 0x133ef5(%rip), %rdx    # 0x1d1e83
movl $0x8f4, %ecx            # imm = 0x8F4
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x5914(%rsp)
jmp 0x9e361
jmp 0x9dfac
movq 0x5900(%rsp), %rdi
movsd 0x58e0(%rsp), %xmm0
movq 0x58f0(%rsp), %rsi
movq 0x58f8(%rsp), %rcx
movl $0x1, %edx
callq 0x93ab0
cmpl $0x1, %eax
jne 0x9e049
leaq 0x2070(%rsp), %rdi
movq 0x5900(%rsp), %rcx
addq $0xb84, %rcx            # imm = 0xB84
leaq 0x1193de(%rip), %rsi    # 0x1b73d8
leaq 0x13404d(%rip), %rdx    # 0x1d204e
movb $0x0, %al
callq 0x5b9c0
movq 0x5900(%rsp), %rdi
addq $0xb84, %rdi            # imm = 0xB84
leaq 0x2070(%rsp), %r8
leaq 0x11900e(%rip), %rsi    # 0x1b7034
leaq 0x133e56(%rip), %rdx    # 0x1d1e83
movl $0x8fa, %ecx            # imm = 0x8FA
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x5914(%rsp)
jmp 0x9e361
movq 0x58f8(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x278(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x1191db(%rip), %xmm1   # 0x1b7248
subsd %xmm1, %xmm0
movaps 0x1191b8(%rip), %xmm1   # 0x1b7230
pand %xmm1, %xmm0
movq 0x5908(%rsp), %rax
ucomisd 0x20(%rax), %xmm0
jbe 0x9e127
leaq 0x1870(%rsp), %rdi
movq 0x58f8(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x278(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq 0x133fde(%rip), %rsi    # 0x1d2098
movb $0x1, %al
callq 0x5b9c0
leaq 0x1070(%rsp), %rdi
leaq 0x1870(%rsp), %rcx
leaq 0x118faa(%rip), %rsi    # 0x1b7082
leaq 0x13402f(%rip), %rdx    # 0x1d210e
movb $0x0, %al
callq 0x5b9c0
movq 0x5900(%rsp), %rdi
addq $0xb84, %rdi            # imm = 0xB84
leaq 0x1070(%rsp), %r8
leaq 0x118f30(%rip), %rsi    # 0x1b7034
leaq 0x133d78(%rip), %rdx    # 0x1d1e83
movl $0x901, %ecx            # imm = 0x901
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x5914(%rsp)
jmp 0x9e361
movq 0x58f8(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x20c(%rcx), %rcx
xorps %xmm0, %xmm0
ucomisd (%rax,%rcx,8), %xmm0
jb 0x9e1de
leaq 0x870(%rsp), %rdi
movq 0x58f8(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x20c(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq 0x133fdb(%rip), %rsi    # 0x1d2152
movb $0x1, %al
callq 0x5b9c0
leaq 0x70(%rsp), %rdi
leaq 0x870(%rsp), %rcx
leaq 0x118ef0(%rip), %rsi    # 0x1b7082
leaq 0x133fdd(%rip), %rdx    # 0x1d2176
movb $0x0, %al
callq 0x5b9c0
movq 0x5900(%rsp), %rdi
addq $0xb84, %rdi            # imm = 0xB84
leaq 0x70(%rsp), %r8
leaq 0x118e79(%rip), %rsi    # 0x1b7034
leaq 0x133cc1(%rip), %rdx    # 0x1d1e83
movl $0x909, %ecx            # imm = 0x909
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x5914(%rsp)
jmp 0x9e361
movq 0x58f8(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x20c(%rcx), %rcx
movsd 0x119a83(%rip), %xmm1   # 0x1b7c80
mulsd (%rax,%rcx,8), %xmm1
movsd 0x11903e(%rip), %xmm0   # 0x1b7248
divsd %xmm1, %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x304(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd 0x58e0(%rsp), %xmm1
movq 0x58f8(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x20c(%rcx), %rcx
mulsd (%rax,%rcx,8), %xmm1
movsd 0x118ff1(%rip), %xmm0   # 0x1b7248
divsd %xmm1, %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x30c(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x30c(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x11a3f7(%rip), %xmm0   # 0x1b8698
callq 0x82e0
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x308(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x310(%rcx), %rcx
movsd 0x118f5a(%rip), %xmm0   # 0x1b7248
movsd %xmm0, (%rax,%rcx,8)
movsd 0x119985(%rip), %xmm0   # 0x1b7c80
mulsd 0x58e0(%rsp), %xmm0
movq 0x58f8(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x20c(%rcx), %rcx
mulsd (%rax,%rcx,8), %xmm0
movq 0x58f0(%rsp), %rax
movq 0x5900(%rsp), %rcx
movslq 0x314(%rcx), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd 0x58e0(%rsp), %xmm0
callq 0x82f0
movq 0x58e8(%rsp), %rax
movsd %xmm0, (%rax)
movl $0x0, 0x5914(%rsp)
movl 0x5914(%rsp), %eax
addq $0x5918, %rsp           # imm = 0x5918
retq