// File: /workspace/github_c_makefile_star2_O1/lesgourg[P]class_public/build/../source/input.c
// Function: input_try_unknown_parameters
int input_try_unknown_parameters(double * unknown_parameter,
                                 int unknown_parameters_size,
                                 void * voidpfzw,
                                 double * output,
                                 ErrorMsg errmsg){
  /** Summary */

  /** Define local variables */
  struct precision pr;        /* for precision parameters */
  struct background ba;       /* for cosmological background */
  struct thermodynamics th;           /* for thermodynamics */
  struct perturbations pt;         /* for source functions */
  struct transfer tr;        /* for transfer functions */
  struct primordial pm;       /* for primordial spectra */
  struct harmonic hr;          /* for output spectra */
  struct fourier fo;        /* for non-linear spectra */
  struct lensing le;          /* for lensed spectra */
  struct distortions sd;      /* for spectral distortions */
  struct output op;           /* for output files */

  int i;
  double rho_dcdm_today, rho_dr_today;
  struct fzerofun_workspace * pfzw;
  int input_verbose;
  int flag;
  int param;
  short compute_sigma8 = _FALSE_;

  /* Assume for now shooting did not fail */
  ba.shooting_failed = _FALSE_;

  pfzw = (struct fzerofun_workspace *) voidpfzw;
  /** Read input parameters */
  // This needs to be done with enough accuracy. A standard double has a relative
  // precision of around 1e-16, so 1e-20 should be good enough for the shooting
  for (i=0; i < unknown_parameters_size; i++) {
    class_sprintf(pfzw->fc.value[pfzw->unknown_parameters_index[i]],"%.20e",unknown_parameter[i]);
  }

  class_call(input_read_precisions(&(pfzw->fc),&pr,&ba,&th,&pt,&tr,&pm,&hr,&fo,&le,&sd,&op,
                                   errmsg),
             errmsg,
             errmsg);

  class_call(input_read_parameters(&(pfzw->fc),&pr,&ba,&th,&pt,&tr,&pm,&hr,&fo,&le,&sd,&op,
                                   errmsg),
             errmsg,
             errmsg);

  class_call(parser_read_int(&(pfzw->fc),"input_verbose",&param,&flag,errmsg),
             errmsg,
             errmsg);

  if (flag == _TRUE_)
    input_verbose = param;
  else
    input_verbose = 0;

  /** Optimise flags for sigma8 calculation.*/
  for (i=0; i < unknown_parameters_size; i++) {
    if (pfzw->target_name[i] == sigma8) {
      compute_sigma8 = _TRUE_;
    }
    if (pfzw->target_name[i] == S8) {
      compute_sigma8 = _TRUE_;
    }
  }

  /* Sigma8 depends on linear P(k), so no need to run anything except linear P(k) during shooting */
  if (compute_sigma8 == _TRUE_) {
    /* In June 2020 the k_max_for_pk was increased for higher precision,
       and in February 2022 the value was converted into a set of two precision parameters */
    pt.k_max_for_pk=
      MIN(MAX(pr.k_max_for_pk_sigma8_min, pt.k_max_for_pk),
          pr.k_max_for_pk_sigma8_max);
    pt.has_pk_matter=_TRUE_;
    pt.has_perturbations = _TRUE_;
    pt.has_cl_cmb_temperature = _FALSE_;
    pt.has_cls = _FALSE_;
    pt.has_cl_cmb_polarization = _FALSE_;
    pt.has_cl_cmb_lensing_potential = _FALSE_;
    pt.has_cl_number_count = _FALSE_;
    pt.has_cl_lensing_potential=_FALSE_;
    pt.has_density_transfers=_FALSE_;
    pt.has_velocity_transfers=_FALSE_;
    fo.has_pk_eq=_FALSE_;
    fo.method=nl_none;
  }

  /** Shoot forward into class up to required stage */
  if (pfzw->required_computation_stage >= cs_background){
    if (input_verbose>2)
      printf("Stage 1: background\n");
    ba.background_verbose = 0;
    class_call_except(background_init(&pr,&ba), ba.error_message, errmsg, background_free_input(&ba);thermodynamics_free_input(&th);perturbations_free_input(&pt););
  }

  if (pfzw->required_computation_stage >= cs_thermodynamics){
    if (input_verbose>2)
      printf("Stage 2: thermodynamics\n");
    pr.thermo_Nz_lin = 10000;
    pr.thermo_Nz_log = 500;
    th.thermodynamics_verbose = 0;
    th.hyrec_verbose = 0;
    class_call_except(thermodynamics_init(&pr,&ba,&th), th.error_message, errmsg, background_free(&ba);thermodynamics_free_input(&th);perturbations_free_input(&pt););
  }

  if (pfzw->required_computation_stage >= cs_perturbations){
    if (input_verbose>2)
      printf("Stage 3: perturbations\n");
    pt.perturbations_verbose = 0;
    class_call_except(perturbations_init(&pr,&ba,&th,&pt), pt.error_message, errmsg, thermodynamics_free(&th);background_free(&ba);perturbations_free_input(&pt););
  }

  if (pfzw->required_computation_stage >= cs_primordial){
    if (input_verbose>2)
      printf("Stage 4: primordial\n");
    pm.primordial_verbose = 0;
    class_call_except(primordial_init(&pr,&pt,&pm), pm.error_message, errmsg, perturbations_free(&pt);thermodynamics_free(&th);background_free(&ba));
  }

  if (pfzw->required_computation_stage >= cs_nonlinear){
    if (input_verbose>2)
      printf("Stage 5: nonlinear\n");
    fo.fourier_verbose = 0;
    class_call_except(fourier_init(&pr,&ba,&th,&pt,&pm,&fo), fo.error_message, errmsg, primordial_free(&pm);perturbations_free(&pt);thermodynamics_free(&th);background_free(&ba));
  }

  if (pfzw->required_computation_stage >= cs_transfer){
    if (input_verbose>2)
      printf("Stage 6: transfer\n");
    tr.transfer_verbose = 0;
    class_call_except(transfer_init(&pr,&ba,&th,&pt,&fo,&tr), tr.error_message, errmsg, fourier_free(&fo);primordial_free(&pm);perturbations_free(&pt);thermodynamics_free(&th);background_free(&ba));
  }

  if (pfzw->required_computation_stage >= cs_spectra){
    if (input_verbose>2)
      printf("Stage 7: spectra\n");
    hr.harmonic_verbose = 0;
    class_call_except(harmonic_init(&pr,&ba,&pt,&pm,&fo,&tr,&hr),hr.error_message, errmsg, transfer_free(&tr);fourier_free(&fo);primordial_free(&pm);perturbations_free(&pt);thermodynamics_free(&th);background_free(&ba));
  }

  /** Get the corresponding shoot variable and put into output */
  for (i=0; i < pfzw->target_size; i++) {
    switch (pfzw->target_name[i]) {
    case theta_s:
    case theta_s_100:
      output[i] = 100.*th.rs_rec/th.ra_rec-pfzw->target_value[i];
      break;
    case Neff:
      output[i] = ba.Neff-pfzw->target_value[i];
      break;
    case Omega_dcdmdr:
      rho_dcdm_today = ba.background_table[(ba.bt_size-1)*ba.bg_size+ba.index_bg_rho_dcdm];
      if (ba.has_dr == _TRUE_)
        rho_dr_today = ba.background_table[(ba.bt_size-1)*ba.bg_size+ba.index_bg_rho_dr];
      else
        rho_dr_today = 0.;
      output[i] = (rho_dcdm_today+rho_dr_today)/(ba.H0*ba.H0)-pfzw->target_value[i];
      break;
    case omega_dcdmdr:
      rho_dcdm_today = ba.background_table[(ba.bt_size-1)*ba.bg_size+ba.index_bg_rho_dcdm];
      if (ba.has_dr == _TRUE_)
        rho_dr_today = ba.background_table[(ba.bt_size-1)*ba.bg_size+ba.index_bg_rho_dr];
      else
        rho_dr_today = 0.;
      output[i] = (rho_dcdm_today+rho_dr_today)/(ba.H0*ba.H0)-pfzw->target_value[i]/ba.h/ba.h;
      break;
    case Omega_scf:
      /** In case scalar field is used to fill, pba->Omega0_scf is not equal to pfzw->target_value[i].*/
      output[i] = ba.background_table[(ba.bt_size-1)*ba.bg_size+ba.index_bg_rho_scf]/(ba.H0*ba.H0)-ba.Omega0_scf;
      break;
    case Omega_ini_dcdm:
    case omega_ini_dcdm:
      rho_dcdm_today = ba.background_table[(ba.bt_size-1)*ba.bg_size+ba.index_bg_rho_dcdm];
      if (ba.has_dr == _TRUE_)
        rho_dr_today = ba.background_table[(ba.bt_size-1)*ba.bg_size+ba.index_bg_rho_dr];
      else
        rho_dr_today = 0.;
      output[i] = -(rho_dcdm_today+rho_dr_today)/(ba.H0*ba.H0)+ba.Omega0_dcdmdr;
      break;
    case sigma8:
      output[i] = fo.sigma8[fo.index_pk_m];
      break;
    case S8:
      output[i] = fo.sigma8[fo.index_pk_m]*sqrt(ba.Omega0_m/0.3);
      break;
    }
  }

  /** Free structures */
  if (pfzw->required_computation_stage >= cs_spectra){
    class_call(harmonic_free(&hr), hr.error_message, errmsg);
  }
  if (pfzw->required_computation_stage >= cs_transfer){
    class_call(transfer_free(&tr), tr.error_message, errmsg);
  }
  if (pfzw->required_computation_stage >= cs_nonlinear){
    class_call(fourier_free(&fo), fo.error_message, errmsg);
  }
  if (pfzw->required_computation_stage >= cs_primordial){
    class_call(primordial_free(&pm), pm.error_message, errmsg);
  }
  if (pfzw->required_computation_stage >= cs_perturbations){
    class_call(perturbations_free(&pt), pt.error_message, errmsg);
  }
  if (pfzw->required_computation_stage >= cs_thermodynamics){
    class_call(thermodynamics_free(&th), th.error_message, errmsg);
  }
  if (pfzw->required_computation_stage >= cs_background){
    class_call(background_free(&ba), ba.error_message, errmsg);
  }

  /** Set filecontent to unread */
  for (i=0; i<pfzw->fc.size; i++) {
    pfzw->fc.read[i] = _FALSE_;
  }

  /** Free pointers allocated on input if neccessary */
  if (pfzw->required_computation_stage < cs_perturbations) {
    /** Some pointers in ppt may not be allocated if has_perturbations is _FALSE_, but this is handled in perturbations_free_input as neccessary. */
    perturbations_free_input(&pt);
  }
  if (pfzw->required_computation_stage < cs_thermodynamics) {
    thermodynamics_free_input(&th);
  }
  if (pfzw->required_computation_stage < cs_background) {
    background_free_input(&ba);
  }
  return _SUCCESS_;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x11be8, %rsp          # imm = 0x11BE8
movq %r8, %rbp
movq %rcx, 0x10(%rsp)
movq %rdx, %r14
movw $0x0, 0x398(%rsp)
movl %esi, (%rsp)
testl %esi, %esi
jle 0x3d6e2
movq %rdi, %r12
movl (%rsp), %r15d
xorl %ebx, %ebx
leaq 0xa5d02(%rip), %r13     # 0xe33a4
movsd (%r12,%rbx,8), %xmm0
xorl %edi, %edi
xorl %esi, %esi
movq %r13, %rdx
movb $0x1, %al
callq 0x8550
movq (%r14), %rcx
movslq (%rcx,%rbx,4), %rdi
shlq $0xa, %rdi
addq 0x20(%r14), %rdi
incl %eax
movslq %eax, %rsi
movsd (%r12,%rbx,8), %xmm0
movq %r13, %rdx
movb $0x1, %al
callq 0x8550
incq %rbx
cmpq %rbx, %r15
jne 0x3d6a2
leaq 0x8(%r14), %r12
subq $0x40, %rsp
movq %rbp, 0x30(%rsp)
leaq 0x48e8(%rsp), %rsi
movq %r12, %rdi
callq 0x32551
addq $0x40, %rsp
cmpl $0x1, %eax
jne 0x3d746
leaq 0xa3ce1(%rip), %rsi     # 0xe13f0
leaq 0xa92d0(%rip), %rdx     # 0xe69e6
leaq 0x7530(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0xa3902(%rip), %rsi     # 0xe1034
leaq 0xa936b(%rip), %rdx     # 0xe6aa4
movq %rbp, %rdi
movl $0x543, %ecx            # imm = 0x543
jmp 0x3d852
subq $0x8, %rsp
leaq 0xf1c8(%rsp), %rax
leaq 0xfde8(%rsp), %r10
leaq 0xe938(%rsp), %r11
movq %rbp, %rbx
leaq 0x1bb0(%rsp), %rbp
leaq 0x5ae0(%rsp), %r13
leaq 0x2518(%rsp), %r15
leaq 0x48b0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x3048(%rsp), %rcx
leaq 0x7538(%rsp), %r8
leaq 0x63c8(%rsp), %r9
movq %r12, %rdi
pushq %rbx
pushq %rax
pushq %r10
pushq %r11
pushq %rbp
pushq %r13
pushq %r15
callq 0x3b7ac
addq $0x40, %rsp
testl %eax, %eax
je 0x3d7f8
leaq 0xa3c2c(%rip), %rsi     # 0xe13f0
leaq 0xa9282(%rip), %rdx     # 0xe6a4d
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0xa384d(%rip), %rsi     # 0xe1034
leaq 0xa92b6(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x548, %ecx            # imm = 0x548
jmp 0x3d852
leaq 0xa897d(%rip), %rsi     # 0xe617c
leaq 0x8(%rsp), %rdx
leaq 0xc(%rsp), %rcx
movq %r12, %rdi
movq %rbx, %r8
callq 0x1e6c0
cmpl $0x1, %eax
jne 0x3d875
leaq 0xa3bd0(%rip), %rsi     # 0xe13f0
leaq 0xa929a(%rip), %rdx     # 0xe6ac1
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30c2c
leaq 0xa37f1(%rip), %rsi     # 0xe1034
leaq 0xa925a(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x54c, %ecx            # imm = 0x54C
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
movl $0x1, %ebx
movl %ebx, %eax
addq $0x11be8, %rsp          # imm = 0x11BE8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, 0xc(%rsp)
sete %al
cmpl $0x3, 0x8(%rsp)
setge %r12b
andb %al, %r12b
movl (%rsp), %ecx
testl %ecx, %ecx
jle 0x3d91c
movq 0x30(%r14), %rax
movl %ecx, %ecx
xorl %edx, %edx
movl $0x1, %esi
xorl %edi, %edi
movl (%rax,%rdx,4), %r8d
andl $-0x2, %r8d
cmpl $0x8, %r8d
cmovel %esi, %edi
incq %rdx
cmpq %rdx, %rcx
jne 0x3d8a3
cmpw $0x1, %di
jne 0x3d91c
movsd 0x7580(%rsp), %xmm0
maxsd 0x50e8(%rsp), %xmm0
minsd 0x50f0(%rsp), %xmm0
movsd %xmm0, 0x7580(%rsp)
movl $0x1, 0x7530(%rsp)
movq $0x0, 0x7550(%rsp)
movq $0x10000, 0x7558(%rsp) # imm = 0x10000
movw $0x0, 0x1bd0(%rsp)
movl $0x0, 0x1ba8(%rsp)
testb %r12b, %r12b
je 0x3d92d
leaq 0xbc905(%rip), %rdi     # 0xfa22d
callq 0x8510
leaq 0x18(%rsp), %rsi
movw $0x0, 0xb82(%rsi)
leaq 0x48a8(%rsp), %rdi
callq 0x58aa4
cmpl $0x1, %eax
jne 0x3d9a4
leaq 0xb9c(%rsp), %rcx
leaq 0xa3a94(%rip), %rsi     # 0xe13f0
leaq 0xa919f(%rip), %rdx     # 0xe6b02
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa36b8(%rip), %rsi     # 0xe1034
leaq 0xa9121(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x577, %ecx            # imm = 0x577
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
leaq 0x18(%rsp), %rdi
callq 0x5ac77
jmp 0x3da4c
cmpl $0x0, 0x44(%r14)
je 0x3da6b
testb %r12b, %r12b
je 0x3d9c0
leaq 0xbc886(%rip), %rdi     # 0xfa241
callq 0x8510
movabsq $0x1f400002710, %rax    # imm = 0x1F400002710
leaq 0x48a8(%rsp), %rdi
movq %rax, 0x1a8(%rdi)
leaq 0x3040(%rsp), %rdx
movl $0x0, 0x1060(%rdx)
leaq 0x18(%rsp), %rsi
callq 0x5f3ad
cmpl $0x1, %eax
jne 0x3da6b
leaq 0x40a4(%rsp), %rcx
leaq 0xa39e7(%rip), %rsi     # 0xe13f0
leaq 0xa910b(%rip), %rdx     # 0xe6b1b
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa360b(%rip), %rsi     # 0xe1034
leaq 0xa9074(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x581, %ecx            # imm = 0x581
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
leaq 0x18(%rsp), %rdi
callq 0x5abfd
leaq 0x3040(%rsp), %rdi
callq 0x635f6
leaq 0x7530(%rsp), %rdi
callq 0x6f792
jmp 0x3d85c
cmpl $0x2, 0x44(%r14)
jb 0x3db1b
testb %r12b, %r12b
je 0x3da87
leaq 0xbc7d7(%rip), %rdi     # 0xfa259
callq 0x8510
leaq 0x7530(%rsp), %rcx
movw $0x0, 0x6bf0(%rcx)
leaq 0x48a8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x3040(%rsp), %rdx
callq 0x6b7a0
cmpl $0x1, %eax
jne 0x3db1b
leaq 0xe122(%rsp), %rcx
leaq 0xa392a(%rip), %rsi     # 0xe13f0
leaq 0xa906f(%rip), %rdx     # 0xe6b3c
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa354e(%rip), %rsi     # 0xe1034
leaq 0xa8fb7(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x588, %ecx            # imm = 0x588
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
leaq 0x3040(%rsp), %rdi
callq 0x63534
leaq 0x18(%rsp), %rdi
callq 0x5abfd
jmp 0x3da59
cmpl $0x3, 0x44(%r14)
jb 0x3dbaf
testb %r12b, %r12b
je 0x3db37
leaq 0xbc73e(%rip), %rdi     # 0xfa270
callq 0x8510
leaq 0x2510(%rsp), %rdx
movw $0x0, 0x328(%rdx)
leaq 0x48a8(%rsp), %rdi
leaq 0x7530(%rsp), %rsi
callq 0x87dd1
cmpl $0x1, %eax
jne 0x3dbaf
leaq 0x283a(%rsp), %rcx
leaq 0xa387f(%rip), %rsi     # 0xe13f0
leaq 0xa8fe8(%rip), %rdx     # 0xe6b60
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa34a3(%rip), %rsi     # 0xe1034
leaq 0xa8f0c(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x58f, %ecx            # imm = 0x58F
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
jmp 0x3dddd
cmpl $0x4, 0x44(%r14)
jb 0x3dc59
testb %r12b, %r12b
je 0x3dbcb
leaq 0xbc6be(%rip), %rdi     # 0xfa284
callq 0x8510
leaq 0x1ba8(%rsp), %r9
movw $0x0, 0x160(%r9)
leaq 0x48a8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x3040(%rsp), %rdx
leaq 0x7530(%rsp), %rcx
leaq 0x2510(%rsp), %r8
callq 0x931d1
cmpl $0x1, %eax
jne 0x3dc59
leaq 0x1d0a(%rsp), %rcx
leaq 0xa37d5(%rip), %rsi     # 0xe13f0
leaq 0xa8f5b(%rip), %rdx     # 0xe6b7d
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa33f9(%rip), %rsi     # 0xe1034
leaq 0xa8e62(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x596, %ecx            # imm = 0x596
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
jmp 0x3ddd0
cmpl $0x5, 0x44(%r14)
jb 0x3dd03
testb %r12b, %r12b
je 0x3dc75
leaq 0xbc627(%rip), %rdi     # 0xfa297
callq 0x8510
leaq 0x63c0(%rsp), %r9
movw $0x0, 0x968(%r9)
leaq 0x48a8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x3040(%rsp), %rdx
leaq 0x7530(%rsp), %rcx
leaq 0x1ba8(%rsp), %r8
callq 0x96d6e
cmpl $0x1, %eax
jne 0x3dd03
leaq 0x6d2a(%rsp), %rcx
leaq 0xa372b(%rip), %rsi     # 0xe13f0
leaq 0xa8ed7(%rip), %rdx     # 0xe6ba3
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa334f(%rip), %rsi     # 0xe1034
leaq 0xa8db8(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x59d, %ecx            # imm = 0x59D
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
jmp 0x3ddc3
cmpl $0x6, 0x44(%r14)
jb 0x3de06
testb %r12b, %r12b
je 0x3dd1f
leaq 0xbc58f(%rip), %rdi     # 0xfa2a9
callq 0x8510
movw $0x0, 0x5bb8(%rsp)
subq $0x8, %rsp
leaq 0x48b0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x7538(%rsp), %rdx
leaq 0x2518(%rsp), %rcx
leaq 0x1bb0(%rsp), %r8
leaq 0x63c8(%rsp), %r9
pushq %r13
callq 0xa63e8
addq $0x10, %rsp
cmpl $0x1, %eax
jne 0x3de06
leaq 0x5bba(%rsp), %rcx
leaq 0xa3673(%rip), %rsi     # 0xe13f0
leaq 0xa8e46(%rip), %rdx     # 0xe6bca
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa3297(%rip), %rsi     # 0xe1034
leaq 0xa8d00(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5a4, %ecx            # imm = 0x5A4
movq %r14, %r8
xorl %eax, %eax
callq 0x30c2c
leaq 0x63c0(%rsp), %rdi
callq 0x9b347
leaq 0x1ba8(%rsp), %rdi
callq 0x95fcf
leaq 0x2510(%rsp), %rdi
callq 0x89e19
leaq 0x7530(%rsp), %rdi
callq 0x6f7bc
leaq 0x3040(%rsp), %rdi
callq 0x63534
leaq 0x18(%rsp), %rdi
callq 0x5abfd
jmp 0x3d85c
cmpl $0x0, 0x40(%r14)
movq 0x10(%rsp), %rdi
jle 0x3e0a2
xorl %r12d, %r12d
leaq 0xa7de8(%rip), %r13     # 0xe5c08
movsd 0xa3ef8(%rip), %xmm2    # 0xe1d20
movsd 0xa3480(%rip), %xmm3    # 0xe12b0
xorpd %xmm4, %xmm4
movq 0x30(%r14), %rax
movl (%rax,%r12,4), %eax
cmpq $0x9, %rax
ja 0x3dffd
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movsd 0x3f80(%rsp), %xmm5
mulsd %xmm2, %xmm5
divsd 0x3f90(%rsp), %xmm5
jmp 0x3dfed
movq 0x2e8(%rsp), %rax
movslq 0x2cc(%rsp), %rdx
decq %rdx
movslq 0x2c8(%rsp), %rcx
imulq %rdx, %rcx
xorpd %xmm0, %xmm0
cmpw $0x1, 0x33e(%rsp)
jne 0x3deac
movslq 0x254(%rsp), %rdx
movslq %ecx, %rsi
addq %rdx, %rsi
movsd (%rax,%rsi,8), %xmm0
movslq 0x250(%rsp), %rdx
addq %rdx, %rcx
addsd (%rax,%rcx,8), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x68(%rsp), %xmm5
mulsd %xmm1, %xmm1
jmp 0x3df41
movq 0x2e8(%rsp), %rax
movslq 0x2cc(%rsp), %rdx
decq %rdx
movslq 0x2c8(%rsp), %rcx
imulq %rdx, %rcx
xorpd %xmm5, %xmm5
cmpw $0x1, 0x33e(%rsp)
jne 0x3df0f
movslq 0x254(%rsp), %rdx
movslq %ecx, %rsi
addq %rdx, %rsi
movsd (%rax,%rsi,8), %xmm5
movslq 0x250(%rsp), %rdx
addq %rdx, %rcx
addsd (%rax,%rcx,8), %xmm5
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
mulsd %xmm0, %xmm0
divsd %xmm0, %xmm5
movq 0x38(%r14), %rax
movsd (%rax,%r12,8), %xmm0
divsd %xmm1, %xmm0
divsd %xmm1, %xmm0
subsd %xmm0, %xmm5
jmp 0x3dff7
movq 0x1c70(%rsp), %rax
movslq 0x1bfc(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm5
movsd 0x1e0(%rsp), %xmm0
divsd %xmm3, %xmm0
ucomisd %xmm4, %xmm0
jb 0x3e071
sqrtsd %xmm0, %xmm0
jmp 0x3e099
movsd 0x1c8(%rsp), %xmm5
jmp 0x3dfed
movq 0x2e8(%rsp), %rax
movslq 0x2cc(%rsp), %rdx
decq %rdx
movslq 0x2c8(%rsp), %rcx
imulq %rdx, %rcx
xorpd %xmm5, %xmm5
cmpw $0x1, 0x33e(%rsp)
jne 0x3dfcf
movslq 0x254(%rsp), %rdx
movslq %ecx, %rsi
addq %rdx, %rsi
movsd (%rax,%rsi,8), %xmm5
movslq 0x250(%rsp), %rdx
addq %rdx, %rcx
addsd (%rax,%rcx,8), %xmm5
movsd 0x18(%rsp), %xmm0
mulsd %xmm0, %xmm0
divsd %xmm0, %xmm5
movq 0x38(%r14), %rax
subsd (%rax,%r12,8), %xmm5
movsd %xmm5, (%rdi,%r12,8)
incq %r12
movslq 0x40(%r14), %rax
cmpq %rax, %r12
jl 0x3de34
jmp 0x3e0a2
movq 0x2e8(%rsp), %rax
movslq 0x2cc(%rsp), %rcx
decq %rcx
movslq 0x2c8(%rsp), %rdx
imulq %rcx, %rdx
movslq 0x26c(%rsp), %rcx
addq %rdx, %rcx
movsd (%rax,%rcx,8), %xmm5
movsd 0x18(%rsp), %xmm0
mulsd %xmm0, %xmm0
divsd %xmm0, %xmm5
subsd 0x120(%rsp), %xmm5
jmp 0x3dff7
movq 0x1c70(%rsp), %rax
movslq 0x1bfc(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm5
jmp 0x3dff7
movsd %xmm5, (%rsp)
callq 0x82b0
movsd (%rsp), %xmm5
xorpd %xmm4, %xmm4
movsd 0xa3224(%rip), %xmm3    # 0xe12b0
movsd 0xa3c8c(%rip), %xmm2    # 0xe1d20
movq 0x10(%rsp), %rdi
mulsd %xmm0, %xmm5
jmp 0x3dff7
cmpl $0x6, 0x44(%r14)
jb 0x3e0fe
leaq 0x5ad8(%rsp), %rdi
callq 0xa78e3
cmpl $0x1, %eax
jne 0x3e0fe
leaq 0x5bba(%rsp), %rcx
leaq 0xa3326(%rip), %rsi     # 0xe13f0
leaq 0xa8b24(%rip), %rdx     # 0xe6bf5
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa2f4a(%rip), %rsi     # 0xe1034
leaq 0xa89b3(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5d9, %ecx            # imm = 0x5D9
jmp 0x3d852
cmpl $0x5, 0x44(%r14)
jb 0x3e15a
leaq 0x63c0(%rsp), %rdi
callq 0x9b347
cmpl $0x1, %eax
jne 0x3e15a
leaq 0x6d2a(%rsp), %rcx
leaq 0xa32ca(%rip), %rsi     # 0xe13f0
leaq 0xa8adb(%rip), %rdx     # 0xe6c08
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa2eee(%rip), %rsi     # 0xe1034
leaq 0xa8957(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5dc, %ecx            # imm = 0x5DC
jmp 0x3d852
cmpl $0x4, 0x44(%r14)
jb 0x3e1b6
leaq 0x1ba8(%rsp), %rdi
callq 0x95fcf
cmpl $0x1, %eax
jne 0x3e1b6
leaq 0x1d0a(%rsp), %rcx
leaq 0xa326e(%rip), %rsi     # 0xe13f0
leaq 0xa8a92(%rip), %rdx     # 0xe6c1b
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa2e92(%rip), %rsi     # 0xe1034
leaq 0xa88fb(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5df, %ecx            # imm = 0x5DF
jmp 0x3d852
cmpl $0x3, 0x44(%r14)
jb 0x3e212
leaq 0x2510(%rsp), %rdi
callq 0x89e19
cmpl $0x1, %eax
jne 0x3e212
leaq 0x283a(%rsp), %rcx
leaq 0xa3212(%rip), %rsi     # 0xe13f0
leaq 0xa8a48(%rip), %rdx     # 0xe6c2d
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa2e36(%rip), %rsi     # 0xe1034
leaq 0xa889f(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5e2, %ecx            # imm = 0x5E2
jmp 0x3d852
cmpl $0x2, 0x44(%r14)
jb 0x3e26e
leaq 0x7530(%rsp), %rdi
callq 0x6f7bc
cmpl $0x1, %eax
jne 0x3e26e
leaq 0xe122(%rsp), %rcx
leaq 0xa31b6(%rip), %rsi     # 0xe13f0
leaq 0xa8a01(%rip), %rdx     # 0xe6c42
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa2dda(%rip), %rsi     # 0xe1034
leaq 0xa8843(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5e5, %ecx            # imm = 0x5E5
jmp 0x3d852
cmpl $0x0, 0x44(%r14)
je 0x3e2ca
leaq 0x3040(%rsp), %rdi
callq 0x63534
cmpl $0x1, %eax
jne 0x3e2ca
leaq 0x40a4(%rsp), %rcx
leaq 0xa315a(%rip), %rsi     # 0xe13f0
leaq 0xa89bd(%rip), %rdx     # 0xe6c5a
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa2d7e(%rip), %rsi     # 0xe1034
leaq 0xa87e7(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5e8, %ecx            # imm = 0x5E8
jmp 0x3d852
leaq 0x18(%rsp), %rdi
callq 0x5abfd
cmpl $0x1, %eax
jne 0x3e31c
leaq 0xb9c(%rsp), %rcx
leaq 0xa3108(%rip), %rsi     # 0xe13f0
leaq 0xa8984(%rip), %rdx     # 0xe6c73
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30c2c
leaq 0xa2d2c(%rip), %rsi     # 0xe1034
leaq 0xa8795(%rip), %rdx     # 0xe6aa4
movq %rbx, %rdi
movl $0x5eb, %ecx            # imm = 0x5EB
jmp 0x3d852
movl 0x10(%r14), %edx
testl %edx, %edx
jle 0x3e332
movq 0x28(%r14), %rdi
addq %rdx, %rdx
xorl %esi, %esi
callq 0x8200
cmpl $0x1, 0x44(%r14)
ja 0x3e346
leaq 0x7530(%rsp), %rdi
callq 0x6f792
xorl %ebx, %ebx
cmpl $0x0, 0x44(%r14)
jne 0x3d861
leaq 0x3040(%rsp), %rdi
callq 0x635f6
jmp 0x3d861