// File: /workspace/github_c_makefile_star2_O3/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, (%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %r14
movl %esi, %ebp
movw $0x0, 0x398(%rsp)
testl %esi, %esi
jle 0x3c2dd
movq %rdi, %r12
movl %ebp, %r15d
xorl %ebx, %ebx
leaq 0xa5117(%rip), %r13     # 0xe13b4
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 0x3c29d
leaq 0x8(%r14), %r12
subq $0x40, %rsp
movq 0x40(%rsp), %rbx
movq %rbx, 0x30(%rsp)
leaq 0x48e8(%rsp), %rsi
movq %r12, %rdi
callq 0x323ea
addq $0x40, %rsp
cmpl $0x1, %eax
jne 0x3c346
leaq 0xa30e1(%rip), %rsi     # 0xdf3f0
leaq 0xa8700(%rip), %rdx     # 0xe4a16
leaq 0x7530(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0xa2d02(%rip), %rsi     # 0xdf034
leaq 0xa879b(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x543, %ecx            # imm = 0x543
jmp 0x3c44f
subq $0x8, %rsp
leaq 0xf1c8(%rsp), %rax
leaq 0xfde8(%rsp), %r10
leaq 0xe938(%rsp), %r11
leaq 0x1bb0(%rsp), %r15
leaq 0x5ae0(%rsp), %r13
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 %r15
pushq %r13
leaq 0x2548(%rsp), %rax
pushq %rax
callq 0x3a3b3
addq $0x40, %rsp
testl %eax, %eax
je 0x3c3f5
leaq 0xa302f(%rip), %rsi     # 0xdf3f0
leaq 0xa86b5(%rip), %rdx     # 0xe4a7d
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0xa2c50(%rip), %rsi     # 0xdf034
leaq 0xa86e9(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x548, %ecx            # imm = 0x548
jmp 0x3c44f
leaq 0xa7db0(%rip), %rsi     # 0xe41ac
leaq 0x8(%rsp), %rdx
leaq 0xc(%rsp), %rcx
movq %r12, %rdi
movq %rbx, %r8
callq 0x1e736
cmpl $0x1, %eax
jne 0x3c472
leaq 0xa2fd3(%rip), %rsi     # 0xdf3f0
leaq 0xa86cd(%rip), %rdx     # 0xe4af1
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0xa2bf4(%rip), %rsi     # 0xdf034
leaq 0xa868d(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x54c, %ecx            # imm = 0x54C
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
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
testl %ebp, %ebp
jle 0x3c516
movq 0x30(%r14), %rax
movl %ebp, %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 0x3c49d
cmpw $0x1, %di
jne 0x3c516
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 0x3c527
leaq 0xbbd3b(%rip), %rdi     # 0xf825d
callq 0x8510
leaq 0x18(%rsp), %rsi
movw $0x0, 0xb82(%rsi)
leaq 0x48a8(%rsp), %rdi
callq 0x56907
cmpl $0x1, %eax
jne 0x3c59e
leaq 0xb9c(%rsp), %rcx
leaq 0xa2e9a(%rip), %rsi     # 0xdf3f0
leaq 0xa85d5(%rip), %rdx     # 0xe4b32
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2abe(%rip), %rsi     # 0xdf034
leaq 0xa8557(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x577, %ecx            # imm = 0x577
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
leaq 0x18(%rsp), %rdi
callq 0x58a2f
jmp 0x3c646
cmpl $0x0, 0x44(%r14)
je 0x3ca09
testb %r12b, %r12b
je 0x3c5ba
leaq 0xbbcbc(%rip), %rdi     # 0xf8271
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 0x5cfe9
cmpl $0x1, %eax
jne 0x3c665
leaq 0x40a4(%rsp), %rcx
leaq 0xa2ded(%rip), %rsi     # 0xdf3f0
leaq 0xa8541(%rip), %rdx     # 0xe4b4b
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2a11(%rip), %rsi     # 0xdf034
leaq 0xa84aa(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x581, %ecx            # imm = 0x581
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
leaq 0x18(%rsp), %rdi
callq 0x589b5
leaq 0x3040(%rsp), %rdi
callq 0x6120e
leaq 0x7530(%rsp), %rdi
callq 0x6d24a
jmp 0x3c459
cmpl $0x2, 0x44(%r14)
jb 0x3ca09
testb %r12b, %r12b
je 0x3c681
leaq 0xbbc0d(%rip), %rdi     # 0xf8289
callq 0x8510
leaq 0x7530(%rsp), %rcx
movw $0x0, 0x6bf0(%rcx)
leaq 0x48a8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x3040(%rsp), %rdx
callq 0x69234
cmpl $0x1, %eax
jne 0x3c715
leaq 0xe122(%rsp), %rcx
leaq 0xa2d30(%rip), %rsi     # 0xdf3f0
leaq 0xa84a5(%rip), %rdx     # 0xe4b6c
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2954(%rip), %rsi     # 0xdf034
leaq 0xa83ed(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x588, %ecx            # imm = 0x588
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
leaq 0x3040(%rsp), %rdi
callq 0x6114c
leaq 0x18(%rsp), %rdi
callq 0x589b5
jmp 0x3c653
cmpl $0x3, 0x44(%r14)
jb 0x3ca09
testb %r12b, %r12b
je 0x3c731
leaq 0xbbb74(%rip), %rdi     # 0xf82a0
callq 0x8510
leaq 0x2510(%rsp), %rdx
movw $0x0, 0x328(%rdx)
leaq 0x48a8(%rsp), %rdi
leaq 0x7530(%rsp), %rsi
callq 0x85c00
cmpl $0x1, %eax
jne 0x3c7a9
leaq 0x283a(%rsp), %rcx
leaq 0xa2c85(%rip), %rsi     # 0xdf3f0
leaq 0xa841e(%rip), %rdx     # 0xe4b90
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa28a9(%rip), %rsi     # 0xdf034
leaq 0xa8342(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x58f, %ecx            # imm = 0x58F
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
jmp 0x3c917
cmpl $0x4, 0x44(%r14)
jb 0x3ca09
testb %r12b, %r12b
je 0x3c7c5
leaq 0xbbaf4(%rip), %rdi     # 0xf82b4
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 0x90ee8
cmpl $0x1, %eax
jne 0x3c853
leaq 0x1d0a(%rsp), %rcx
leaq 0xa2bdb(%rip), %rsi     # 0xdf3f0
leaq 0xa8391(%rip), %rdx     # 0xe4bad
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa27ff(%rip), %rsi     # 0xdf034
leaq 0xa8298(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x596, %ecx            # imm = 0x596
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
jmp 0x3c90a
cmpl $0x5, 0x44(%r14)
jb 0x3ca09
testb %r12b, %r12b
je 0x3c86f
leaq 0xbba5d(%rip), %rdi     # 0xf82c7
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 0x94ade
cmpl $0x1, %eax
jne 0x3c940
leaq 0x6d2a(%rsp), %rcx
leaq 0xa2b2d(%rip), %rsi     # 0xdf3f0
leaq 0xa8309(%rip), %rdx     # 0xe4bd3
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2751(%rip), %rsi     # 0xdf034
leaq 0xa81ea(%rip), %rdx     # 0xe4ad4
movq (%rsp), %rdi
movl $0x59d, %ecx            # imm = 0x59D
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
leaq 0x1ba8(%rsp), %rdi
callq 0x93d15
leaq 0x2510(%rsp), %rdi
callq 0x87bf7
leaq 0x7530(%rsp), %rdi
callq 0x6d274
leaq 0x3040(%rsp), %rdi
callq 0x6114c
leaq 0x18(%rsp), %rdi
callq 0x589b5
jmp 0x3c459
cmpl $0x6, 0x44(%r14)
movq (%rsp), %rbx
jb 0x3ca09
testb %r12b, %r12b
je 0x3c960
leaq 0xbb97e(%rip), %rdi     # 0xf82d9
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 0xa3e5c
addq $0x10, %rsp
cmpl $0x1, %eax
movq (%rsp), %rbx
jne 0x3ca09
leaq 0x5bba(%rsp), %rcx
leaq 0xa2a32(%rip), %rsi     # 0xdf3f0
leaq 0xa8235(%rip), %rdx     # 0xe4bfa
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2656(%rip), %rsi     # 0xdf034
leaq 0xa80ef(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5a4, %ecx            # imm = 0x5A4
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
leaq 0x63c0(%rsp), %rdi
callq 0x98f2f
jmp 0x3c8fd
movl 0x40(%r14), %eax
testl %eax, %eax
movq 0x10(%rsp), %r8
jle 0x3ccc0
xorl %r12d, %r12d
leaq 0xa7214(%rip), %r13     # 0xe3c38
movsd 0xa32f4(%rip), %xmm3    # 0xdfd20
movsd 0xa287c(%rip), %xmm4    # 0xdf2b0
xorpd %xmm5, %xmm5
movq 0x30(%r14), %rcx
movl (%rcx,%r12,4), %ecx
cmpq $0x9, %rcx
ja 0x3cc12
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movsd 0x3f80(%rsp), %xmm0
mulsd %xmm3, %xmm0
divsd 0x3f90(%rsp), %xmm0
jmp 0x3cc02
movq 0x2e8(%rsp), %rcx
movslq 0x2cc(%rsp), %rsi
decq %rsi
movslq 0x2c8(%rsp), %rdx
imulq %rsi, %rdx
xorpd %xmm0, %xmm0
cmpw $0x1, 0x33e(%rsp)
jne 0x3cab0
movslq 0x254(%rsp), %rsi
movslq %edx, %rdi
addq %rsi, %rdi
movsd (%rcx,%rdi,8), %xmm0
movslq 0x250(%rsp), %rsi
addq %rsi, %rdx
addsd (%rcx,%rdx,8), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x68(%rsp), %xmm2
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
subsd %xmm0, %xmm2
movsd %xmm2, (%r8,%r12,8)
jmp 0x3cc12
movq 0x2e8(%rsp), %rcx
movslq 0x2cc(%rsp), %rsi
decq %rsi
movslq 0x2c8(%rsp), %rdx
imulq %rsi, %rdx
xorpd %xmm0, %xmm0
cmpw $0x1, 0x33e(%rsp)
jne 0x3cb24
movslq 0x254(%rsp), %rsi
movslq %edx, %rdi
addq %rsi, %rdi
movsd (%rcx,%rdi,8), %xmm0
movslq 0x250(%rsp), %rsi
addq %rsi, %rdx
addsd (%rcx,%rdx,8), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x20(%rsp), %xmm2
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
movq 0x38(%r14), %rcx
movsd (%rcx,%r12,8), %xmm1
divsd %xmm2, %xmm1
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
jmp 0x3cc0c
movq 0x1c70(%rsp), %rax
movslq 0x1bfc(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movsd 0x1e0(%rsp), %xmm0
divsd %xmm4, %xmm0
ucomisd %xmm5, %xmm0
jb 0x3cc85
sqrtsd %xmm0, %xmm0
jmp 0x3ccad
movsd 0x1c8(%rsp), %xmm0
jmp 0x3cc02
movq 0x2e8(%rsp), %rcx
movslq 0x2cc(%rsp), %rsi
decq %rsi
movslq 0x2c8(%rsp), %rdx
imulq %rsi, %rdx
xorpd %xmm0, %xmm0
cmpw $0x1, 0x33e(%rsp)
jne 0x3cbe4
movslq 0x254(%rsp), %rsi
movslq %edx, %rdi
addq %rsi, %rdi
movsd (%rcx,%rdi,8), %xmm0
movslq 0x250(%rsp), %rsi
addq %rsi, %rdx
addsd (%rcx,%rdx,8), %xmm0
movsd 0x18(%rsp), %xmm1
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
movq 0x38(%r14), %rcx
subsd (%rcx,%r12,8), %xmm0
movsd %xmm0, (%r8,%r12,8)
incq %r12
movslq %eax, %rcx
cmpq %rcx, %r12
jl 0x3ca38
jmp 0x3ccc0
movq 0x2e8(%rsp), %rcx
movslq 0x2cc(%rsp), %rdx
decq %rdx
movslq 0x2c8(%rsp), %rsi
imulq %rdx, %rsi
movslq 0x26c(%rsp), %rdx
addq %rsi, %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd 0x18(%rsp), %xmm1
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
subsd 0x120(%rsp), %xmm0
jmp 0x3cc0c
movq 0x1c70(%rsp), %rcx
movslq 0x1bfc(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
jmp 0x3cc0c
movsd %xmm1, (%rsp)
callq 0x82b0
movsd (%rsp), %xmm1
xorpd %xmm5, %xmm5
movsd 0xa2610(%rip), %xmm4    # 0xdf2b0
movsd 0xa3078(%rip), %xmm3    # 0xdfd20
movq 0x10(%rsp), %r8
mulsd %xmm0, %xmm1
movsd %xmm1, (%r8,%r12,8)
movl 0x40(%r14), %eax
jmp 0x3cc12
movl 0x44(%r14), %eax
cmpl $0x6, %eax
jb 0x3cd22
leaq 0x5ad8(%rsp), %rdi
callq 0xa538e
cmpl $0x1, %eax
jne 0x3cd1e
leaq 0x5bba(%rsp), %rcx
leaq 0xa2706(%rip), %rsi     # 0xdf3f0
leaq 0xa7f34(%rip), %rdx     # 0xe4c25
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa232a(%rip), %rsi     # 0xdf034
leaq 0xa7dc3(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5d9, %ecx            # imm = 0x5D9
jmp 0x3c44f
movl 0x44(%r14), %eax
cmpl $0x5, %eax
jb 0x3cd80
leaq 0x63c0(%rsp), %rdi
callq 0x98f2f
cmpl $0x1, %eax
jne 0x3cd7c
leaq 0x6d2a(%rsp), %rcx
leaq 0xa26a8(%rip), %rsi     # 0xdf3f0
leaq 0xa7ee9(%rip), %rdx     # 0xe4c38
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa22cc(%rip), %rsi     # 0xdf034
leaq 0xa7d65(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5dc, %ecx            # imm = 0x5DC
jmp 0x3c44f
movl 0x44(%r14), %eax
cmpl $0x4, %eax
jb 0x3cdde
leaq 0x1ba8(%rsp), %rdi
callq 0x93d15
cmpl $0x1, %eax
jne 0x3cdda
leaq 0x1d0a(%rsp), %rcx
leaq 0xa264a(%rip), %rsi     # 0xdf3f0
leaq 0xa7e9e(%rip), %rdx     # 0xe4c4b
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa226e(%rip), %rsi     # 0xdf034
leaq 0xa7d07(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5df, %ecx            # imm = 0x5DF
jmp 0x3c44f
movl 0x44(%r14), %eax
cmpl $0x3, %eax
jb 0x3ce3c
leaq 0x2510(%rsp), %rdi
callq 0x87bf7
cmpl $0x1, %eax
jne 0x3ce38
leaq 0x283a(%rsp), %rcx
leaq 0xa25ec(%rip), %rsi     # 0xdf3f0
leaq 0xa7e52(%rip), %rdx     # 0xe4c5d
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2210(%rip), %rsi     # 0xdf034
leaq 0xa7ca9(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5e2, %ecx            # imm = 0x5E2
jmp 0x3c44f
movl 0x44(%r14), %eax
cmpl $0x2, %eax
jb 0x3ce9a
leaq 0x7530(%rsp), %rdi
callq 0x6d274
cmpl $0x1, %eax
jne 0x3ce96
leaq 0xe122(%rsp), %rcx
leaq 0xa258e(%rip), %rsi     # 0xdf3f0
leaq 0xa7e09(%rip), %rdx     # 0xe4c72
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa21b2(%rip), %rsi     # 0xdf034
leaq 0xa7c4b(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5e5, %ecx            # imm = 0x5E5
jmp 0x3c44f
movl 0x44(%r14), %eax
testl %eax, %eax
je 0x3cef3
leaq 0x3040(%rsp), %rdi
callq 0x6114c
cmpl $0x1, %eax
jne 0x3cef3
leaq 0x40a4(%rsp), %rcx
leaq 0xa2531(%rip), %rsi     # 0xdf3f0
leaq 0xa7dc4(%rip), %rdx     # 0xe4c8a
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2155(%rip), %rsi     # 0xdf034
leaq 0xa7bee(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5e8, %ecx            # imm = 0x5E8
jmp 0x3c44f
leaq 0x18(%rsp), %rdi
callq 0x589b5
cmpl $0x1, %eax
jne 0x3cf45
leaq 0xb9c(%rsp), %rcx
leaq 0xa24df(%rip), %rsi     # 0xdf3f0
leaq 0xa7d8b(%rip), %rdx     # 0xe4ca3
leaq 0x13a0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x30af0
leaq 0xa2103(%rip), %rsi     # 0xdf034
leaq 0xa7b9c(%rip), %rdx     # 0xe4ad4
movq %rbx, %rdi
movl $0x5eb, %ecx            # imm = 0x5EB
jmp 0x3c44f
movl 0x10(%r14), %edx
testl %edx, %edx
jle 0x3cf5b
movq 0x28(%r14), %rdi
addq %rdx, %rdx
xorl %esi, %esi
callq 0x8200
xorl %ebx, %ebx
cmpl $0x1, 0x44(%r14)
ja 0x3c45e
leaq 0x7530(%rsp), %rdi
callq 0x6d24a
cmpl $0x0, 0x44(%r14)
jne 0x3c45e
leaq 0x3040(%rsp), %rdi
callq 0x6120e
jmp 0x3c45e