LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/heating/injection.c
// Function: injection_free
int injection_free(struct thermodynamics* pth){

  /** - Define local variables */
  struct injection* pin = &(pth->in);
  int index_inj, index_dep;

  /* Redshift */
  free(pin->z_table);

  /* Energy injection */
  for(index_inj=0;index_inj<pin->inj_size;++index_inj){
    free(pin->injection_table[index_inj]);
  }
  free(pin->injection_table);

  if(pin->has_PBH_eva==_TRUE_){
    free(pin->PBH_table_z);
    free(pin->PBH_table_mass);
    free(pin->PBH_table_mass_dd);
    free(pin->PBH_table_F);
    free(pin->PBH_table_F_dd);
  }

  /* Injection efficiency */
  if(pin->f_eff_type == f_eff_from_file){
    free(pin->feff_table);
  }
  if(pin->chi_type == chi_from_z_file){
    free(pin->chiz_table);
  }
  if(pin->chi_type == chi_from_x_file || pin->chi_type == chi_Galli_file){
    free(pin->chix_table);
  }

  /* Deposition function */
  free(pin->chi);

  /* Energy deposition */
  for(index_dep=0;index_dep<pin->dep_size;++index_dep){
    free(pin->deposition_table[index_dep]);
  }
  free(pin->deposition_table);
  free(pin->pvecdeposition);

  return _SUCCESS_;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x508(%rdi), %rdi
callq 0x8410
cmpl $0x0, 0x5ac(%rbx)
jle 0xd0813
xorl %r14d, %r14d
movq 0x588(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x8410
incq %r14
movslq 0x5ac(%rbx), %rax
cmpq %rax, %r14
jl 0xd07f4
movq 0x588(%rbx), %rdi
callq 0x8410
cmpl $0x1, 0x624(%rbx)
jne 0xd0864
movq 0x558(%rbx), %rdi
callq 0x8410
movq 0x560(%rbx), %rdi
callq 0x8410
movq 0x568(%rbx), %rdi
callq 0x8410
movq 0x570(%rbx), %rdi
callq 0x8410
movq 0x578(%rbx), %rdi
callq 0x8410
cmpl $0x1, 0x160(%rbx)
jne 0xd0879
movq 0x5c0(%rbx), %rdi
callq 0x8410
movl 0x264(%rbx), %eax
cmpl $0x6, %eax
jne 0xd0896
movq 0x5c8(%rbx), %rdi
callq 0x8410
movl 0x264(%rbx), %eax
cmpl $0x5, %eax
je 0xd08a0
cmpl $0x2, %eax
jne 0xd08ac
movq 0x5d8(%rbx), %rdi
callq 0x8410
movq 0x5f0(%rbx), %rdi
callq 0x8410
cmpl $0x0, 0x60c(%rbx)
jle 0xd08e3
xorl %r14d, %r14d
movq 0x5e8(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x8410
incq %r14
movslq 0x60c(%rbx), %rax
cmpq %rax, %r14
jl 0xd08c4
movq 0x5e8(%rbx), %rdi
callq 0x8410
movq 0x610(%rbx), %rdi
callq 0x8410
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/heating/injection.c
// Function: injection_rate_DM_decay
int injection_rate_DM_decay(struct injection * pin,
                            double z,
                            double * energy_rate){

  /** - Calculate injection rates */
  *energy_rate = pin->rho_cdm*pin->DM_decay_fraction*pin->DM_decay_Gamma*
                 exp(-pin->DM_decay_Gamma*pin->t);                                                  // [J/(m^3 s)]

  return _SUCCESS_;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movsd 0x410(%rdi), %xmm1
mulsd 0x50(%rdi), %xmm1
movsd 0x58(%rdi), %xmm0
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
xorpd 0x1c85c(%rip), %xmm0    # 0xee230
mulsd 0x3f8(%rdi), %xmm0
callq 0x8670
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/heating/injection.c
// Function: injection_deposition_at_z
int injection_deposition_at_z(struct thermodynamics* pth,
                              double z){

  /** - Define local variables */
  struct injection* pin = &(pth->in);
  int index_dep;
  double h,a,b;

  /** - Interpolate at required z in the table */
  class_test(z < pin->filled_until_z,
             pin->error_message,
             "injection is not yet calculated beyond %.10e (asked for at %.10e)",pin->filled_until_z,z);

  class_call(array_spline_hunt(pin->z_table,
                               pin->z_size,
                               z,
                               &(pin->last_index_z),
                               &h,&a,&b,
                               pin->error_message),
           pin->error_message,
           pin->error_message);

  for(index_dep=0; index_dep<pin->dep_size; ++index_dep){
    pin->pvecdeposition[index_dep] = ( a*pin->deposition_table[index_dep][pin->last_index_z]+
                                        b*pin->deposition_table[index_dep][pin->last_index_z+1] );
  }

  return _SUCCESS_;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1020, %rsp           # imm = 0x1020
movapd %xmm0, %xmm1
movq %rdi, %rbx
movsd 0x528(%rdi), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xd2485
leaq 0x56b65(%rip), %rsi     # 0x128f96
leaq 0x820(%rsp), %r14
movq %r14, %rdi
movb $0x2, %al
callq 0x30af0
leaq 0x1bc38(%rip), %rsi     # 0xee082
leaq 0x56b87(%rip), %rdx     # 0x128fd8
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x30af0
addq $0x630, %rbx            # imm = 0x630
leaq 0x1bbc3(%rip), %rsi     # 0xee034
leaq 0x56b78(%rip), %rdx     # 0x128ff0
movq %rbx, %rdi
movl $0x29b, %ecx            # imm = 0x29B
movq %r15, %r8
jmp 0xd24fd
movq 0x508(%rbx), %rdi
movl 0x510(%rbx), %esi
leaq 0x53c(%rbx), %rdx
leaq 0x630(%rbx), %r14
movq %r14, (%rsp)
leaq 0x20(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x10(%rsp), %r9
movapd %xmm1, %xmm0
callq 0x19e56
cmpl $0x1, %eax
jne 0xd2516
leaq 0x1bf28(%rip), %rsi     # 0xee3f0
leaq 0x56b3b(%rip), %rdx     # 0x12900a
leaq 0x820(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0x1bb49(%rip), %rsi     # 0xee034
leaq 0x56afe(%rip), %rdx     # 0x128ff0
movq %r14, %rdi
movl $0x2a4, %ecx            # imm = 0x2A4
movq %rbx, %r8
xorl %eax, %eax
callq 0x30af0
movl $0x1, %eax
addq $0x1020, %rsp           # imm = 0x1020
popq %rbx
popq %r14
popq %r15
retq
movslq 0x60c(%rbx), %rcx
testq %rcx, %rcx
jle 0xd256d
movq 0x5e8(%rbx), %rdx
movq 0x610(%rbx), %rsi
movslq 0x53c(%rbx), %rdi
xorl %eax, %eax
xorl %r8d, %r8d
movsd 0x18(%rsp), %xmm0
movq (%rdx,%r8,8), %r9
movsd 0x10(%rsp), %xmm1
mulsd 0x8(%r9,%rdi,8), %xmm1
mulsd (%r9,%rdi,8), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rsi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0xd253c
jmp 0xd2509
xorl %eax, %eax
jmp 0xd2509
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/heating/injection.c
// Function: injection_output_data
int injection_output_data(struct injection * pin,
                          int number_of_titles,
                          double * data){
  int storeidx;
  double * dataptr;
  int index_z;

  for (index_z=0; index_z<pin->z_size; index_z++) {
    dataptr = data + index_z*number_of_titles;
    storeidx = 0;
    class_store_double(dataptr, pin->z_table[index_z], _TRUE_, storeidx);
    class_store_double(dataptr, pin->deposition_table[pin->index_dep_heat][index_z], _TRUE_, storeidx);
    class_store_double(dataptr, pin->deposition_table[pin->index_dep_ionH][index_z], _TRUE_, storeidx);
    class_store_double(dataptr, pin->deposition_table[pin->index_dep_ionHe][index_z], _TRUE_, storeidx);
    class_store_double(dataptr, pin->deposition_table[pin->index_dep_lya][index_z], _TRUE_, storeidx);
  }

  return _SUCCESS_;
}

// Assembly:
movslq 0x450(%rdi), %rax
testq %rax, %rax
jle 0xd26e2
movq 0x448(%rdi), %rcx
movq 0x528(%rdi), %r11
movslq 0x538(%rdi), %r8
movq (%r11,%r8,8), %r8
movslq 0x53c(%rdi), %r9
movq (%r11,%r9,8), %r9
movslq 0x540(%rdi), %r10
movq (%r11,%r10,8), %r10
movslq 0x544(%rdi), %rdi
movq (%r11,%rdi,8), %rdi
movslq %esi, %rsi
addq $0x20, %rdx
shlq $0x3, %rsi
xorl %r11d, %r11d
movsd (%rcx,%r11,8), %xmm0
movsd %xmm0, -0x20(%rdx)
movsd (%r8,%r11,8), %xmm0
movsd %xmm0, -0x18(%rdx)
movsd (%r9,%r11,8), %xmm0
movsd %xmm0, -0x10(%rdx)
movsd (%r10,%r11,8), %xmm0
movsd %xmm0, -0x8(%rdx)
movsd (%rdi,%r11,8), %xmm0
movsd %xmm0, (%rdx)
incq %r11
addq %rsi, %rdx
cmpq %r11, %rax
jne 0xd26a1
xorl %eax, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/heating/noninjection.c
// Function: noninjection_rate_acoustic_diss
int noninjection_rate_acoustic_diss(struct noninjection * pni,
                                    double z,
                                    double * energy_rate){

  /** Define local variables */
  int index_k;
  double dQrho_dz;
  double A_wkb;

  /** a) Calculate full function */
  // CURRENTLY NOT YET IMPLEMENTED

  /** b) Calculate approximated function */
  if (_TRUE_){

    A_wkb = 1./(1.+4./15.*pni->f_nu_wkb);

    /* Define integrand for approximated function */
    for (index_k=0; index_k<pni->k_size; index_k++) {
      pni->integrand_approx[index_k] = 4.*A_wkb*A_wkb*pow(pni->k[index_k],1.)*
                              pni->pk_primordial_k[index_k]*
                              exp(-2.*pow(pni->k[index_k]/pni->kD,2.))*
                              pni->dkD_dz;
    }

    class_call(array_trapezoidal_integral(pni->integrand_approx,
                                          pni->k_size,
                                          pni->k_weights,
                                          &dQrho_dz,
                                          pni->error_message),
               pni->error_message,
               pni->error_message);

  }

  *energy_rate = dQrho_dz*pni->H*pni->rho_g/pni->a;                                                 // [J/(m^3 s)]

  return _SUCCESS_;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x820, %rsp            # imm = 0x820
movq %rsi, %rbx
movq %rdi, %r14
movl 0x10(%rdi), %esi
testl %esi, %esi
jle 0xd34ed
movsd 0x78(%r14), %xmm0
mulsd 0x3f091(%rip), %xmm0    # 0x1124f0
movsd 0x1adf9(%rip), %xmm1    # 0xee260
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd 0x1dfc1(%rip), %xmm0    # 0xf1438
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %r15d, %r15d
movq 0x18(%r14), %rax
movq 0x28(%r14), %rcx
movsd (%rax,%r15,8), %xmm0
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
mulsd (%rcx,%r15,8), %xmm1
movsd %xmm1, 0x10(%rsp)
divsd 0x88(%r14), %xmm0
mulsd %xmm0, %xmm0
mulsd 0x1c29f(%rip), %xmm0    # 0xef760
callq 0x8670
mulsd 0x10(%rsp), %xmm0
mulsd 0x80(%r14), %xmm0
movq 0x30(%r14), %rdi
movsd %xmm0, (%rdi,%r15,8)
incq %r15
movslq 0x10(%r14), %rsi
cmpq %rsi, %r15
jl 0xd3488
jmp 0xd34f1
movq 0x30(%r14), %rdi
movq 0x20(%r14), %rdx
leaq 0x110(%r14), %r15
leaq 0x18(%rsp), %rcx
movq %r15, %r8
callq 0x1b518
cmpl $0x1, %eax
jne 0xd3555
leaq 0x1aedb(%rip), %rsi     # 0xee3f0
leaq 0x56a49(%rip), %rdx     # 0x129f65
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0x1aaff(%rip), %rsi     # 0xee034
leaq 0x56a97(%rip), %rdx     # 0x129fd3
movq %r15, %rdi
movl $0x16c, %ecx            # imm = 0x16C
movq %rbx, %r8
xorl %eax, %eax
callq 0x30af0
movl $0x1, %eax
jmp 0xd357c
movsd 0x18(%rsp), %xmm0
mulsd 0xc8(%r14), %xmm0
mulsd 0xd8(%r14), %xmm0
divsd 0xd0(%r14), %xmm0
movsd %xmm0, (%rbx)
xorl %eax, %eax
addq $0x820, %rsp            # imm = 0x820
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/heating/noninjection.c
// Function: noninjection_photon_heating_at_z
int noninjection_photon_heating_at_z(struct noninjection* pni,
                                     double z,
                                     double* heat){

  /** Define local variables */
  double h,a,b;

  class_call(array_spline_hunt(pni->z_table,
                               pni->z_size,
                               z,
                               &(pni->last_index_z),
                               &h,&a,&b,
                               pni->error_message),
           pni->error_message,
           pni->error_message);

  * heat = ( a*pni->photon_dep_table[pni->last_index_z] + b*pni->photon_dep_table[pni->last_index_z+1] );

  return _SUCCESS_;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x820, %rsp            # imm = 0x820
movq %rsi, %r14
movq %rdi, %r15
movq 0x68(%rdi), %rdi
movl 0x60(%r15), %esi
leaq 0x70(%r15), %rdx
leaq 0x110(%r15), %rbx
movq %rbx, (%rsp)
leaq 0x18(%rsp), %rcx
leaq 0x10(%rsp), %r8
leaq 0x8(%rsp), %r9
callq 0x19e56
cmpl $0x1, %eax
jne 0xd366e
leaq 0x1adc2(%rip), %rsi     # 0xee3f0
leaq 0x568ab(%rip), %rdx     # 0x129ee0
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x30af0
leaq 0x1a9e6(%rip), %rsi     # 0xee034
leaq 0x568ef(%rip), %rdx     # 0x129f44
movq %rbx, %rdi
movl $0x129, %ecx            # imm = 0x129
movq %r14, %r8
xorl %eax, %eax
callq 0x30af0
movl $0x1, %eax
jmp 0xd369b
movsd 0x10(%rsp), %xmm0
movq 0x108(%r15), %rax
movslq 0x70(%r15), %rcx
movsd 0x8(%rsp), %xmm1
mulsd 0x8(%rax,%rcx,8), %xmm1
mulsd (%rax,%rcx,8), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%r14)
xorl %eax, %eax
addq $0x820, %rsp            # imm = 0x820
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/heating/noninjection.c
// Function: noninjection_output_data
int noninjection_output_data(struct noninjection * pni,
                             int number_of_titles,
                             double * data){
  int storeidx;
  double * dataptr;
  int index_z;

  for (index_z=0; index_z<pni->z_size; index_z++) {
    dataptr = data + index_z*number_of_titles;
    storeidx = 0;
    class_store_double(dataptr, pni->z_table[index_z], _TRUE_, storeidx);
    class_store_double(dataptr, pni->photon_dep_table[index_z], _TRUE_, storeidx);
  }

  return _SUCCESS_;
}

// Assembly:
movslq 0x60(%rdi), %rax
testq %rax, %rax
jle 0xd374e
movq 0x68(%rdi), %rcx
movq 0x108(%rdi), %rdi
movslq %esi, %rsi
addq $0x8, %rdx
shlq $0x3, %rsi
xorl %r8d, %r8d
movsd (%rcx,%r8,8), %xmm0
movsd %xmm0, -0x8(%rdx)
movsd (%rdi,%r8,8), %xmm0
movsd %xmm0, (%rdx)
incq %r8
addq %rsi, %rdx
cmpq %r8, %rax
jne 0xd372e
xorl %eax, %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/hyrectools.c
// Function: create_1D_array
double *create_1D_array(unsigned n1, int *error, char error_message[SIZE_ErrorM]){

  double *matrix = (double *) calloc(n1, sizeof(double));
  char sub_message[128];
  if (*error == 1) return matrix;
   
  if (matrix == NULL) {
    sprintf(sub_message, "unable to allocate memory in create_1D_array \n");
    strcat(error_message, sub_message);
    *error = 1;
  }
  return matrix;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %edi
movl $0x8, %esi
callq 0x8250
movq %rax, %r15
testq %rax, %rax
jne 0xd37c2
cmpl $0x1, (%rbx)
je 0xd37c2
movups 0x56897(%rip), %xmm0    # 0x12a02f
movq %rsp, %rsi
movups %xmm0, 0x1f(%rsi)
movaps 0x5687a(%rip), %xmm0    # 0x12a020
movaps %xmm0, 0x10(%rsi)
movaps 0x5685f(%rip), %xmm0    # 0x12a010
movaps %xmm0, (%rsi)
movq %r14, %rdi
callq 0x8660
movl $0x1, (%rbx)
movq %r15, %rax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/hyrectools.c
// Function: create_2D_array
double **create_2D_array(unsigned n1, unsigned n2, int *error, char error_message[SIZE_ErrorM]){
  
  unsigned i;
  double **matrix = (double **) calloc(n1, sizeof(double *));
  char sub_message[128];
  if (*error == 1) return matrix;
   
  if (matrix == NULL){
    sprintf(sub_message, "unable to allocate memory in create_2D_array \n");
    strcat(error_message, sub_message);
    *error = 1;
  }
  for (i = 0; i < n1; i++)  matrix[i] = create_1D_array(n2, error, error_message);
   
  return matrix;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movl %edi, %r13d
movl %edi, %r15d
movl $0x8, %esi
movq %r15, %rdi
callq 0x8250
movq %rax, %r12
cmpl $0x1, (%r14)
je 0xd385f
testq %r12, %r12
jne 0xd383e
movups 0x5684c(%rip), %xmm0    # 0x12a05f
movq %rsp, %rsi
movups %xmm0, 0x1f(%rsi)
movaps 0x5682f(%rip), %xmm0    # 0x12a050
movaps %xmm0, 0x10(%rsi)
movaps 0x56814(%rip), %xmm0    # 0x12a040
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x8660
movl $0x1, (%r14)
testl %r13d, %r13d
je 0xd385f
xorl %r13d, %r13d
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xd3766
movq %rax, (%r12,%r13,8)
incq %r13
cmpq %r13, %r15
jne 0xd3846
movq %r12, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/hyrectools.c
// Function: create_3D_array
double ***create_3D_array(unsigned n1, unsigned n2, unsigned n3, int *error, char error_message[SIZE_ErrorM]){

  unsigned i;
  double ***matrix = (double ***) calloc(n1, sizeof(double **));
  char sub_message[128];
  if (*error == 1) return matrix;

  if (matrix == NULL) {
    sprintf(sub_message, "unable to allocate memory in create_3D_array \n");
    strcat(error_message, sub_message);
    *error = 1;
  }
  for (i = 0; i < n1; i++)  matrix[i] = create_2D_array(n2, n3, error, error_message);
         
  return matrix;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r8, %rbp
movq %rcx, %r15
movl %edx, %ebx
movl %esi, %r14d
movl %edi, 0x4(%rsp)
movl %edi, %r12d
movl $0x8, %esi
movq %r12, %rdi
callq 0x8250
movq %rax, %r13
cmpl $0x1, (%r15)
je 0xd394b
testq %r13, %r13
movq %r15, 0x8(%rsp)
jne 0xd391f
movups 0x567a1(%rip), %xmm0    # 0x12a08f
leaq 0x10(%rsp), %rsi
movups %xmm0, 0x1f(%rsi)
movaps 0x56782(%rip), %xmm0    # 0x12a080
movaps %xmm0, 0x10(%rsi)
movaps 0x56767(%rip), %xmm0    # 0x12a070
movaps %xmm0, (%rsi)
movq %rbp, %rdi
callq 0x8660
movq 0x8(%rsp), %rax
movl $0x1, (%rax)
cmpl $0x0, 0x4(%rsp)
je 0xd394b
movl %ebx, %r15d
xorl %ebx, %ebx
movl %r14d, %edi
movl %r15d, %esi
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
callq 0xd37d2
movq %rax, (%r13,%rbx,8)
incq %rbx
cmpq %rbx, %r12
jne 0xd392b
movq %r13, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/hyrectools.c
// Function: rec_interp1d
double rec_interp1d(double x0, double dx, double *ytab, unsigned int Nx, double x, int *error, char error_message[SIZE_ErrorM]) {

  long ix;
  double frac;
  char sub_message[128];
  if (*error == 1) return 0.;

  /* Check if in range */
  if (dx > 0 && (x<x0 || x>x0+dx*(Nx-1))) {
    sprintf(sub_message,"x-value out of range in interpolation in rec_interp1d.\n");
    strcat(error_message, sub_message);
    *error = 1;
    return 0.;
  }
  if (dx < 0 && (x>x0 || x<x0+dx*(Nx-1))) {
    sprintf(sub_message,"x-value out of range in interpolation in rec_interp1d.\n"); 
    strcat(error_message, sub_message);
    *error = 1;
    return 0.;
  }

  /* Identify location to interpolate */
  ix = (long)floor((x-x0)/dx);
  if (ix<1) ix=1; 
  if (ix>Nx-3) ix=Nx-3;
  frac = (x-x0)/dx-ix;
  ytab += ix-1;

  /* Return value */
  return(
    -ytab[0]*frac*(1.-frac)*(2.-frac)/6.
    +ytab[1]*(1.+frac)*(1.-frac)*(2.-frac)/2.
    +ytab[2]*(1.+frac)*frac*(2.-frac)/2.
    -ytab[3]*(1.+frac)*frac*(1.-frac)/6.
  );
}

// Assembly:
xorpd %xmm7, %xmm7
cmpl $0x1, (%rdx)
je 0xd3c29
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
xorpd %xmm4, %xmm4
ucomisd %xmm4, %xmm1
jbe 0xd3ace
ucomisd %xmm2, %xmm0
ja 0xd3af4
leal -0x1(%r15), %eax
cvtsi2sd %rax, %xmm3
mulsd %xmm1, %xmm3
addsd %xmm0, %xmm3
ucomisd %xmm3, %xmm2
ja 0xd3af4
ucomisd %xmm1, %xmm4
jbe 0xd3b41
ucomisd %xmm0, %xmm2
ja 0xd3af4
leal -0x1(%r15), %eax
xorps %xmm3, %xmm3
cvtsi2sd %rax, %xmm3
mulsd %xmm1, %xmm3
addsd %xmm0, %xmm3
ucomisd %xmm2, %xmm3
jbe 0xd3b41
movups 0x565fd(%rip), %xmm0    # 0x12a0f8
leaq 0x10(%rsp), %rsi
movaps %xmm0, 0x20(%rsi)
movups 0x565dd(%rip), %xmm0    # 0x12a0e8
movaps %xmm0, 0x10(%rsi)
movupd 0x565c1(%rip), %xmm0    # 0x12a0d8
movapd %xmm0, (%rsi)
movabsq $0xa2e6431707265, %rax  # imm = 0xA2E6431707265
movq %rax, 0x30(%rsi)
movq %rcx, %rdi
callq 0x8660
movl $0x1, (%r14)
xorpd %xmm7, %xmm7
jmp 0xd3c1d
subsd %xmm0, %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
movapd %xmm2, %xmm0
callq 0x85e0
cvttsd2si %xmm0, %rcx
cmpq $0x2, %rcx
movl $0x1, %eax
cmovgeq %rcx, %rax
addl $-0x3, %r15d
cmpq %r15, %rax
cmovgeq %r15, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd 0x8(%rsp), %xmm5
subsd %xmm0, %xmm5
movsd -0x8(%rbx,%rax,8), %xmm2
mulsd %xmm5, %xmm2
movsd 0x1a6c7(%rip), %xmm0    # 0xee260
movapd %xmm0, %xmm1
subsd %xmm5, %xmm1
mulsd %xmm1, %xmm2
movsd 0x1b153(%rip), %xmm4    # 0xeed00
subsd %xmm5, %xmm4
mulsd %xmm4, %xmm2
movsd 0x1bab3(%rip), %xmm3    # 0xef670
divsd %xmm3, %xmm2
addsd %xmm5, %xmm0
movapd %xmm5, %xmm8
movsd (%rbx,%rax,8), %xmm5
mulsd %xmm0, %xmm5
mulsd %xmm1, %xmm5
mulsd %xmm4, %xmm5
movsd 0x1b0ed(%rip), %xmm6    # 0xeecd0
mulsd %xmm6, %xmm5
subsd %xmm2, %xmm5
movsd 0x8(%rbx,%rax,8), %xmm7
mulsd %xmm0, %xmm7
mulsd %xmm8, %xmm7
mulsd %xmm4, %xmm7
mulsd %xmm6, %xmm7
addsd %xmm5, %xmm7
mulsd 0x10(%rbx,%rax,8), %xmm0
mulsd %xmm8, %xmm0
mulsd %xmm1, %xmm0
divsd %xmm3, %xmm0
subsd %xmm0, %xmm7
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
movapd %xmm7, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/helium.c
// Function: rec_xesaha_HeII_III
double rec_xesaha_HeII_III(REC_COSMOPARAMS *cosmo, double z, double *xHeIII) {

  double Tr, nH, ainv, s;
  double nH0 = cosmo->nH0, Tr0 = cosmo->T0, fHe = cosmo->fHe;
  double fsR = cosmo->fsR, meR = cosmo->meR;
  /* Current conditions */
  Tr = Tr0*(ainv=1+z) /fsR/fsR/meR; /* Rescaled for different alpha, me */
  nH = nH0*ainv*ainv*ainv;

  /* Obtain Saha ratio, xe*xHeIII/xHeII
   * prefactor = (2*pi*m*k/h^2)^1.5. Includes dependence on fine-structure constant and electron mass*/

  s = fsR*fsR*fsR*meR*meR*meR* 2.414194e15*Tr*sqrt(Tr)*exp(-631462.7/Tr)/nH;

  *xHeIII = 2.*s*fHe/(1.+s+fHe)/(1.+sqrt(1.+4.*s*fHe/(1.+s+fHe)/(1.+s+fHe)));

  return(1. + fHe + *xHeIII);
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
movapd %xmm0, %xmm2
movsd 0x80(%rdi), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x88(%rdi), %xmm0
movaps %xmm0, 0x40(%rsp)
movsd 0x98(%rdi), %xmm0
movsd 0xa0(%rdi), %xmm1
addsd 0x1a1ed(%rip), %xmm2    # 0xee260
movsd 0x8(%rdi), %xmm3
movapd %xmm2, 0x50(%rsp)
mulsd %xmm2, %xmm3
divsd %xmm0, %xmm3
divsd %xmm0, %xmm3
movapd %xmm0, %xmm2
mulsd %xmm0, %xmm2
mulsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
mulsd 0x56106(%rip), %xmm2    # 0x12a1b0
movapd %xmm2, 0x30(%rsp)
divsd %xmm1, %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm3
movapd %xmm3, 0x10(%rsp)
jb 0xd40cd
xorps %xmm0, %xmm0
sqrtsd %xmm3, %xmm0
jmp 0xd40dc
movapd %xmm3, %xmm0
callq 0x82b0
movapd 0x10(%rsp), %xmm3
movapd %xmm0, 0x20(%rsp)
movsd 0x560ce(%rip), %xmm0    # 0x12a1b8
divsd %xmm3, %xmm0
callq 0x8670
movapd 0x50(%rsp), %xmm1
movapd 0x30(%rsp), %xmm2
unpcklpd %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movapd 0x10(%rsp), %xmm3
unpcklpd 0x40(%rsp), %xmm3       # xmm3 = xmm3[0],mem[0]
mulpd %xmm2, %xmm3
movapd 0x20(%rsp), %xmm2
unpcklpd %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
mulpd %xmm3, %xmm2
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
mulpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
divsd %xmm1, %xmm0
movapd %xmm0, %xmm3
addsd %xmm0, %xmm3
movsd 0x8(%rsp), %xmm2
mulsd %xmm2, %xmm3
movsd 0x1a111(%rip), %xmm4    # 0xee260
movapd %xmm0, %xmm1
addsd %xmm4, %xmm1
addsd %xmm2, %xmm1
divsd %xmm1, %xmm3
mulsd 0x1d2d1(%rip), %xmm0    # 0xf1438
mulsd %xmm2, %xmm0
divsd %xmm1, %xmm0
divsd %xmm1, %xmm0
addsd %xmm4, %xmm0
ucomisd 0x1a0d9(%rip), %xmm0    # 0xee258
jb 0xd4187
sqrtsd %xmm0, %xmm0
jmp 0xd41a0
movapd %xmm3, 0x10(%rsp)
callq 0x82b0
movsd 0x1a0c6(%rip), %xmm4    # 0xee260
movapd 0x10(%rsp), %xmm3
addsd %xmm4, %xmm0
divsd %xmm0, %xmm3
movsd %xmm3, (%rbx)
movsd 0x8(%rsp), %xmm0
addsd %xmm4, %xmm0
addsd %xmm3, %xmm0
addq $0x60, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/helium.c
// Function: rec_saha_xHeII
double rec_saha_xHeII(REC_COSMOPARAMS *cosmo, double z) {

  double Tr, nH, ainv, s;
  double nH0 = cosmo->nH0, Tr0 = cosmo->T0, fHe = cosmo->fHe;
  double fsR = cosmo->fsR, meR = cosmo->meR;

  /* Current conditions */
  Tr = Tr0*(ainv=1+z) /fsR/fsR/meR; /* Rescaled for different alpha, me */
  nH = nH0*ainv*ainv*ainv;

  /* Obtain Saha ratio, xe*xHeII/xHeI. prefactor = (2*pi*m*k/h^2)^1.5 */
  s = fsR*fsR*fsR*meR*meR*meR *2.414194e15*Tr*sqrt(Tr)*exp(-285325./Tr)/nH * 4.;

  return 2.*s*fHe/(1.+s)/(1.+sqrt(1.+4.*s*fHe/(1.+s)/(1.+s)));

}

// Assembly:
subq $0x68, %rsp
movapd %xmm0, %xmm2
movsd 0x80(%rdi), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x88(%rdi), %xmm0
movaps %xmm0, 0x40(%rsp)
movsd 0x98(%rdi), %xmm0
movsd 0xa0(%rdi), %xmm1
addsd 0x1a065(%rip), %xmm2    # 0xee260
movsd 0x8(%rdi), %xmm3
movapd %xmm2, 0x50(%rsp)
mulsd %xmm2, %xmm3
divsd %xmm0, %xmm3
divsd %xmm0, %xmm3
movapd %xmm0, %xmm2
mulsd %xmm0, %xmm2
mulsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
mulsd 0x55f7e(%rip), %xmm2    # 0x12a1b0
movapd %xmm2, 0x30(%rsp)
divsd %xmm1, %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm3
movapd %xmm3, (%rsp)
jb 0xd4254
xorps %xmm0, %xmm0
sqrtsd %xmm3, %xmm0
jmp 0xd4262
movapd %xmm3, %xmm0
callq 0x82b0
movapd (%rsp), %xmm3
movapd %xmm0, 0x20(%rsp)
movsd 0x55f50(%rip), %xmm0    # 0x12a1c0
divsd %xmm3, %xmm0
callq 0x8670
movapd 0x50(%rsp), %xmm1
movapd 0x30(%rsp), %xmm2
unpcklpd %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movapd (%rsp), %xmm3
unpcklpd 0x40(%rsp), %xmm3       # xmm3 = xmm3[0],mem[0]
mulpd %xmm2, %xmm3
movapd 0x20(%rsp), %xmm2
unpcklpd %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
mulpd %xmm3, %xmm2
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
mulpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
divsd %xmm1, %xmm0
movsd 0x1d176(%rip), %xmm1    # 0xf1438
mulsd %xmm1, %xmm0
movapd %xmm0, %xmm5
addsd %xmm0, %xmm5
movsd 0x18(%rsp), %xmm4
mulsd %xmm4, %xmm5
movsd 0x19f80(%rip), %xmm2    # 0xee260
movapd %xmm0, %xmm3
addsd %xmm2, %xmm3
divsd %xmm3, %xmm5
mulsd %xmm1, %xmm0
mulsd %xmm4, %xmm0
divsd %xmm3, %xmm0
divsd %xmm3, %xmm0
addsd %xmm2, %xmm0
ucomisd 0x19f50(%rip), %xmm0    # 0xee258
jb 0xd4310
sqrtsd %xmm0, %xmm0
jmp 0xd431f
movapd %xmm5, (%rsp)
callq 0x82b0
movapd (%rsp), %xmm5
addsd 0x19f39(%rip), %xmm0    # 0xee260
divsd %xmm0, %xmm5
movapd %xmm5, %xmm0
addq $0x68, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/hydrogen.c
// Function: free_atomic
void free_atomic(HYREC_ATOMIC *atomic){
  free_2D_array(atomic->logAlpha_tab[0], NTM);
  free_2D_array(atomic->logAlpha_tab[1], NTM);
  free_2D_array(atomic->logAlpha_tab[2], NTM);
  free_2D_array(atomic->logAlpha_tab[3], NTM);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x460(%rdi), %rdi
movl $0x28, %esi
callq 0xd3874
movq 0x468(%rbx), %rdi
movl $0x28, %esi
callq 0xd3874
movq 0x470(%rbx), %rdi
movl $0x28, %esi
callq 0xd3874
movq 0x478(%rbx), %rdi
movl $0x28, %esi
popq %rbx
jmp 0xd3874
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/hydrogen.c
// Function: solveTXeqB
void solveTXeqB(double *diag, double *updiag, double *dndiag, double *X, double *B,
                unsigned N, int *error, char error_message[SIZE_ErrorM]){
  int i;
  double denom;
  double *alpha = create_1D_array(N, error, error_message);
  double *gamma = create_1D_array(N, error, error_message);  /* X[i] = gamma[i] - alpha[i] * X[i+1] */

  alpha[0] = updiag[0] / diag[0];
  gamma[0] = B[0] / diag[0];

  for (i = 1; i < N; i++) {
    denom = diag[i] - dndiag[i] * alpha[i-1];
    alpha[i] = updiag[i] / denom;
    gamma[i] = (B[i] - dndiag[i] * gamma[i-1]) / denom;
  }

  X[N-1] = gamma[N-1];
  for (i = N-2; i >= 0; i--) X[i] = gamma[i] - alpha[i] * X[i+1];

  free(alpha);
  free(gamma);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r15d
movq %r8, %r13
movq %rcx, (%rsp)
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %rbx
movq 0x50(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq 0x58(%rsp), %rdx
movq %rdx, 0x8(%rsp)
movl %r9d, %edi
callq 0xd3766
movq %rax, %r14
movl %r15d, %edi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0xd3766
movq %r15, %rsi
movq %rax, %r15
movsd (%r12), %xmm0
divsd (%rbx), %xmm0
movsd %xmm0, (%r14)
movsd (%r13), %xmm0
divsd (%rbx), %xmm0
movsd %xmm0, (%rax)
cmpl $0x1, %esi
jbe 0xd761e
movq (%rsp), %rdx
movl %esi, %eax
leaq -0x8(,%rax,8), %rax
xorl %ecx, %ecx
movsd 0x8(%rbx,%rcx), %xmm0
movsd 0x8(%rbp,%rcx), %xmm1
mulsd (%r14,%rcx), %xmm1
subsd %xmm1, %xmm0
movsd 0x8(%r12,%rcx), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%r14,%rcx)
movsd 0x8(%r13,%rcx), %xmm1
movsd 0x8(%rbp,%rcx), %xmm2
mulsd (%r15,%rcx), %xmm2
subsd %xmm2, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%r15,%rcx)
addq $0x8, %rcx
cmpq %rcx, %rax
jne 0xd758f
leal -0x1(%rsi), %eax
movsd (%r15,%rax,8), %xmm0
movsd %xmm0, (%rdx,%rax,8)
addl $-0x2, %esi
js 0xd762f
movl %esi, %eax
movsd 0x8(%rdx,%rax,8), %xmm0
movsd (%r15,%rax,8), %xmm1
mulsd (%r14,%rax,8), %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rax,8)
movapd %xmm1, %xmm0
addq $-0x1, %rax
jb 0xd75fd
jmp 0xd762f
decl %esi
movsd (%r15,%rsi,8), %xmm0
movq (%rsp), %rax
movsd %xmm0, (%rax,%rsi,8)
movq %r14, %rdi
callq 0x8410
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8410
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/hydrogen.c
// Function: interp_Dfnu
double interp_Dfnu(double lna_start, double dlna, double *ytab, unsigned int iz, double lna){
  long ind;
  double frac;

  /* If iz = 0 or 1, radiation field at earlier times is still thermal.
     Also thermal if iz > 1 and lna < lna_start. */
  if (iz == 0 || iz == 1 || lna < lna_start) return 0.;

  /* Check if in range */
  if (lna >= lna_start + dlna*(iz-1)) {
    fprintf(stderr, "Error in interp_Dfnu: lna-value out of range in interpolation routine\n");
    fprintf(stderr, "The time-step used is probably too large\n");
    exit(1);
  }

  /* If iz >= 2, do a linear interpolation so the spectrum is always positive */
  ind  = (long) floor((lna-lna_start)/dlna);
  frac = (lna-lna_start)/dlna - ind;

  return (1.-frac)*ytab[ind] + frac*ytab[ind+1];

}

// Assembly:
pushq %rbx
subq $0x10, %rsp
cmpl $0x2, %esi
jb 0xd7a08
ucomisd %xmm2, %xmm0
ja 0xd7a08
decl %esi
cvtsi2sd %rsi, %xmm3
mulsd %xmm1, %xmm3
addsd %xmm0, %xmm3
ucomisd %xmm3, %xmm2
jae 0xd7a12
movq %rdi, %rbx
subsd %xmm0, %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
movapd %xmm2, %xmm0
callq 0x85e0
cvttsd2si %xmm0, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x1686d(%rip), %xmm0    # 0xee260
subsd %xmm1, %xmm0
mulsd 0x8(%rbx,%rax,8), %xmm1
mulsd (%rbx,%rax,8), %xmm0
addsd %xmm1, %xmm0
jmp 0xd7a0c
xorpd %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
retq
callq 0x9995
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: rec_Tmss
double rec_Tmss(double z, double xe, REC_COSMOPARAMS *cosmo, double dEdtdV, double H) {

  double fsR = cosmo->fsR;
  double meR = cosmo->meR;
  double Tr  = cosmo->T0 *(1.+z);
  double nH  = cosmo->nH0 *cube(1.+z);

  /* Coefficient = 8 sigma_T a_r / (3 m_e c) */
  /* Here Tr, Tm are the actual (not rescaled) temperatures */
  double coeff  = fsR*fsR/meR/meR/meR*4.91466895548409e-22*Tr*Tr*Tr*Tr*xe/(1.+xe+cosmo->fHe)/H;
  double Tm = Tr/(1.+1./coeff)
              + (1.+2.*xe)/3.*dEdtdV/kBoltz /(1.5 *nH*(1.+xe+cosmo->fHe))/H /(1.+coeff);

  return Tm;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movsd %xmm3, 0x30(%rsp)
movsd %xmm2, 0x38(%rsp)
movq %rdi, %rbx
movsd %xmm1, 0x28(%rsp)
movsd 0x88(%rdi), %xmm1
movsd %xmm1, 0x20(%rsp)
movsd 0x98(%rdi), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0xa0(%rdi), %xmm1
movsd %xmm1, 0x10(%rsp)
addsd 0x14995(%rip), %xmm0    # 0xee260
movsd 0x8(%rdi), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
callq 0xd3759
movsd 0x8(%rsp), %xmm5
mulsd %xmm5, %xmm5
movsd 0x10(%rsp), %xmm1
divsd %xmm1, %xmm5
divsd %xmm1, %xmm5
divsd %xmm1, %xmm5
mulsd 0x50ebd(%rip), %xmm5    # 0x12a7c0
mulsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm6
mulsd %xmm6, %xmm5
mulsd %xmm6, %xmm5
mulsd %xmm6, %xmm5
mulsd %xmm6, %xmm5
movsd 0x28(%rsp), %xmm3
mulsd %xmm3, %xmm5
movapd %xmm3, %xmm1
movsd 0x1492b(%rip), %xmm7    # 0xee260
addsd %xmm7, %xmm1
addsd 0x80(%rbx), %xmm1
divsd %xmm1, %xmm5
movsd 0x30(%rsp), %xmm4
divsd %xmm4, %xmm5
movapd %xmm7, %xmm2
divsd %xmm5, %xmm2
addsd %xmm7, %xmm2
addsd %xmm3, %xmm3
addsd %xmm7, %xmm3
divsd 0x15d15(%rip), %xmm3    # 0xef680
mulsd 0x38(%rsp), %xmm3
divsd 0x509ef(%rip), %xmm3    # 0x12a368
mulsd 0x17647(%rip), %xmm0    # 0xf0fc8
divsd %xmm2, %xmm6
mulsd %xmm1, %xmm0
divsd %xmm0, %xmm3
divsd %xmm4, %xmm3
addsd %xmm7, %xmm5
divsd %xmm5, %xmm3
addsd %xmm6, %xmm3
movapd %xmm3, %xmm0
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: rec_dTmdlna
double rec_dTmdlna(double z, double xe, double Tm, REC_COSMOPARAMS *cosmo, double dEdtdV, double H) {
  double fsR = cosmo->fsR;
  double meR = cosmo->meR;
  double Tr  = cosmo->T0 *(1.+z);
  double nH  = cosmo->nH0 *cube(1.+z);
  return ( (Tr/Tm-1.<1e-10  && Tr > 3000.)  ? -Tr :
          -2.*Tm + fsR*fsR/meR/meR/meR*4.91466895548409e-22*Tr*Tr*Tr*Tr*xe/(1.+xe+cosmo->fHe)*(Tr-Tm)/H
          + (1.+2.*xe)/3. *dEdtdV /kBoltz /(1.5 *nH*(1.+xe+cosmo->fHe))/H);
   /* Coefficient = 8 sigma_T a_r / (3 m_e c) */
   /* Here Tr, Tm are the actual (not rescaled) temperatures */
}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movsd %xmm4, 0x28(%rsp)
movsd %xmm3, 0x18(%rsp)
movq %rdi, %rbx
movsd %xmm2, 0x38(%rsp)
movsd %xmm1, 0x30(%rsp)
movsd 0x88(%rdi), %xmm1
movsd %xmm1, 0x20(%rsp)
movsd 0x98(%rdi), %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0xa0(%rdi), %xmm1
movsd %xmm1, 0x8(%rsp)
addsd 0x14867(%rip), %xmm0    # 0xee260
movsd 0x8(%rdi), %xmm1
mulsd %xmm0, %xmm1
movapd %xmm1, 0x40(%rsp)
callq 0xd3759
movsd 0x38(%rsp), %xmm6
movapd 0x40(%rsp), %xmm4
movapd %xmm4, %xmm1
divsd %xmm6, %xmm1
addsd 0x14dbf(%rip), %xmm1    # 0xee7e8
movsd 0x19247(%rip), %xmm2    # 0xf2c78
ucomisd %xmm1, %xmm2
jbe 0xd9a52
ucomisd 0x50d89(%rip), %xmm4    # 0x12a7c8
jbe 0xd9a52
xorpd 0x147e7(%rip), %xmm4    # 0xee230
movapd %xmm4, %xmm0
jmp 0xd9b06
movsd 0x20(%rsp), %xmm5
mulsd %xmm0, %xmm5
movsd 0x10(%rsp), %xmm3
mulsd %xmm3, %xmm3
movsd 0x8(%rsp), %xmm0
divsd %xmm0, %xmm3
divsd %xmm0, %xmm3
divsd %xmm0, %xmm3
mulsd 0x50d40(%rip), %xmm3    # 0x12a7c0
mulsd %xmm4, %xmm3
mulsd %xmm4, %xmm3
mulsd %xmm4, %xmm3
mulsd %xmm4, %xmm3
movsd 0x147c8(%rip), %xmm2    # 0xee260
movsd 0x30(%rsp), %xmm0
movapd %xmm0, %xmm1
addsd %xmm2, %xmm1
addsd 0x80(%rbx), %xmm1
mulsd %xmm0, %xmm3
divsd %xmm1, %xmm3
subsd %xmm6, %xmm4
mulsd %xmm3, %xmm4
movsd 0x28(%rsp), %xmm3
divsd %xmm3, %xmm4
addsd %xmm6, %xmm6
subsd %xmm6, %xmm4
addsd %xmm0, %xmm0
addsd %xmm2, %xmm0
divsd 0x15ba0(%rip), %xmm0    # 0xef680
mulsd 0x18(%rsp), %xmm0
divsd 0x5087a(%rip), %xmm0    # 0x12a368
mulsd 0x174d2(%rip), %xmm5    # 0xf0fc8
mulsd %xmm1, %xmm5
divsd %xmm5, %xmm0
divsd %xmm3, %xmm0
addsd %xmm4, %xmm0
addq $0x50, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: Tm_implicit
double Tm_implicit(double z, double xe, double Tm, REC_COSMOPARAMS *cosmo, double dEdtdV, double H, double DLNA) {
  double fsR = cosmo->fsR;
  double meR = cosmo->meR;
  double Tr  = cosmo->T0 *(1.+z);
  double nH  = cosmo->nH0 *cube(1.+z);
  double gamma = fsR*fsR/meR/meR/meR*4.91466895548409e-22*Tr*Tr*Tr*Tr*xe/(1.+xe+cosmo->fHe)/H;
  return (Tm + DLNA*(gamma*Tr + (1.+2.*xe)/3. *dEdtdV /kBoltz /(1.5 *nH*(1.+xe+cosmo->fHe))/H) )/ ( 1.+(2.+gamma)*DLNA );
}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movsd %xmm5, 0x48(%rsp)
movsd %xmm4, 0x38(%rsp)
movsd %xmm3, 0x30(%rsp)
movq %rdi, %rbx
movsd %xmm2, 0x40(%rsp)
movsd %xmm1, 0x28(%rsp)
movsd 0x88(%rdi), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x98(%rdi), %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0xa0(%rdi), %xmm1
movsd %xmm1, 0x18(%rsp)
addsd 0x146fc(%rip), %xmm0    # 0xee260
movsd 0x8(%rdi), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
callq 0xd3759
mulsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm2
mulsd %xmm2, %xmm2
movsd 0x18(%rsp), %xmm1
divsd %xmm1, %xmm2
divsd %xmm1, %xmm2
divsd %xmm1, %xmm2
mulsd 0x50c1e(%rip), %xmm2    # 0x12a7c0
movsd 0x20(%rsp), %xmm4
mulsd %xmm4, %xmm2
mulsd %xmm4, %xmm2
mulsd %xmm4, %xmm2
mulsd %xmm4, %xmm2
movsd 0x28(%rsp), %xmm6
mulsd %xmm6, %xmm2
movapd %xmm6, %xmm1
movsd 0x14692(%rip), %xmm3    # 0xee260
addsd %xmm3, %xmm1
addsd 0x80(%rbx), %xmm1
addsd %xmm6, %xmm6
addsd %xmm3, %xmm6
divsd 0x15a96(%rip), %xmm6    # 0xef680
divsd %xmm1, %xmm2
mulsd 0x30(%rsp), %xmm6
divsd 0x5076c(%rip), %xmm6    # 0x12a368
movsd 0x38(%rsp), %xmm5
divsd %xmm5, %xmm2
mulsd 0x173ba(%rip), %xmm0    # 0xf0fc8
mulsd %xmm1, %xmm0
divsd %xmm0, %xmm6
divsd %xmm5, %xmm6
mulsd %xmm2, %xmm4
addsd %xmm6, %xmm4
movsd 0x48(%rsp), %xmm0
mulsd %xmm0, %xmm4
addsd 0x40(%rsp), %xmm4
addsd 0x150c6(%rip), %xmm2    # 0xeed00
mulsd %xmm0, %xmm2
addsd %xmm3, %xmm2
divsd %xmm2, %xmm4
movapd %xmm4, %xmm0
addq $0x50, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: hyrec_integrator
double hyrec_integrator(double deriv, double deriv_prev[2], double z) {
  double result;

  if (MODEL == FULL) result = 1.25 * deriv - 0.25 *deriv_prev[1];
  else result = 23./12.*deriv -16./12. * deriv_prev[0] + 5./12. *deriv_prev[1];

  // update derivatives
  deriv_prev[1] = deriv_prev[0];
  deriv_prev[0] = deriv;

  return result;
}

// Assembly:
movsd (%rdi), %xmm2
movsd 0x8(%rdi), %xmm1
movsd 0x30e17(%rip), %xmm3    # 0x10aa78
mulsd %xmm2, %xmm3
movsd 0x50b63(%rip), %xmm4    # 0x12a7d0
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
mulsd 0x50b5b(%rip), %xmm1    # 0x12a7d8
addsd %xmm4, %xmm1
movsd %xmm2, 0x8(%rdi)
movsd %xmm0, (%rdi)
movapd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: hyrec_allocate
void hyrec_allocate(HYREC_DATA *data, double zmax, double zmin) {
  double DLNA;
  if (MODEL == SWIFT) DLNA = DLNA_SWIFT;
  else DLNA = DLNA_HYREC;

  data->error = 0;
  data->error_message=malloc(SIZE_ErrorM);
  sprintf(data->error_message, "\n**** ERROR HAS OCCURRED in HYREC-2 ****\n");

  data->zmax = (zmax > 3000.? zmax : 3000.);
  data->zmin = zmin;

  data->atomic = (HYREC_ATOMIC *) malloc(sizeof(HYREC_ATOMIC));
  allocate_and_read_atomic(data->atomic, &data->error, data->path_to_hyrec, data->error_message);

  data->fit = (FIT_FUNC *) malloc(sizeof(FIT_FUNC));
  allocate_and_read_fit(data->fit, &data->error, data->path_to_hyrec, data->error_message);

  data->cosmo  = (REC_COSMOPARAMS *) malloc(sizeof(REC_COSMOPARAMS));
  data->cosmo->inj_params = (INJ_PARAMS *)  malloc(sizeof(INJ_PARAMS));

  data->Nz = (long int) (log((1.+zmax)/(1.+zmin))/DLNA) + 2;
  data->rad = (RADIATION *) malloc(sizeof(RADIATION));

  // For now assume that radiation field never needed over more than 1 decade in redshift
  // (typically from z ~ 1700 to 800 for recombination history)
  // Will have to adapt for outputting radiation fields at lower z
  if (MODEL == FULL)  allocate_radiation(data->rad, (long int) (log(10.)/DLNA), &data->error, data->error_message);

  data->xe_output = create_1D_array(data->Nz, &data->error, data->error_message);
  data->Tm_output = create_1D_array(data->Nz, &data->error, data->error_message);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rdi, %rbx
leaq 0x38(%rdi), %r14
movl $0x0, 0x38(%rdi)
movl $0x800, %edi            # imm = 0x800
callq 0x8460
movq %rax, %r15
movq %rax, 0x48(%rbx)
movups 0x4f17e(%rip), %xmm0    # 0x12b2b5
movups %xmm0, (%rax)
movups 0x4f184(%rip), %xmm0    # 0x12b2c5
movups %xmm0, 0x10(%rax)
movups 0x4f183(%rip), %xmm0    # 0x12b2cf
movups %xmm0, 0x1a(%rax)
movsd (%rsp), %xmm0
maxsd 0x4e66b(%rip), %xmm0    # 0x12a7c8
movsd %xmm0, 0x10(%rbx)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rbx)
movl $0x3848, %edi           # imm = 0x3848
callq 0x8460
movq %rax, (%rbx)
movq 0x50(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0xd4ffc
movl $0x28, %edi
callq 0x8460
movq %rax, 0x60(%rbx)
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0xd5542
movl $0xc0, %edi
callq 0x8460
movq %rax, %r15
movq %rax, 0x8(%rbx)
movl $0x70, %edi
callq 0x8460
movq %rax, 0xb8(%r15)
movsd 0x12089(%rip), %xmm0    # 0xee260
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm2
addsd %xmm0, %xmm2
divsd %xmm2, %xmm1
movapd %xmm1, %xmm0
callq 0x82c0
divsd 0x4e199(%rip), %xmm0    # 0x12a398
cvttsd2si %xmm0, %r15
addq $0x2, %r15
movq %r15, 0x20(%rbx)
movl $0x28, %edi
callq 0x8460
movq %rax, 0x58(%rbx)
movq 0x48(%rbx), %rdx
movl %r15d, %edi
movq %r14, %rsi
callq 0xd3766
movq %rax, 0x28(%rbx)
movl 0x20(%rbx), %edi
movq 0x48(%rbx), %rdx
movq %r14, %rsi
callq 0xd3766
movq %rax, 0x30(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: hyrec_free
void hyrec_free(HYREC_DATA *data) {
  free_atomic(data->atomic);
  free(data->cosmo->inj_params);
  free(data->cosmo);
  free(data->atomic);
  free(data->xe_output);
  free(data->Tm_output);
  free(data->error_message);
  if (MODEL == FULL) free_radiation(data->rad);
  free(data->rad);
  free_fit(data->fit);
  free(data->fit);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0xd54f9
movq 0x8(%rbx), %rax
movq 0xb8(%rax), %rdi
callq 0x8410
movq 0x8(%rbx), %rdi
callq 0x8410
movq (%rbx), %rdi
callq 0x8410
movq 0x28(%rbx), %rdi
callq 0x8410
movq 0x30(%rbx), %rdi
callq 0x8410
movq 0x48(%rbx), %rdi
callq 0x8410
movq 0x58(%rbx), %rdi
callq 0x8410
movq 0x60(%rbx), %rdi
callq 0xd5707
movq 0x60(%rbx), %rdi
popq %rbx
jmp 0x8410
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: hyrec_xe
double hyrec_xe(double z, HYREC_DATA *data) {
  if (z > data->zmax) return data->xe_output[0];
  if (z < data->zmin) {
    fprintf(stderr, "\033[1m\033[31m error\033[22;30m in hyrec_xe: requesting x_e at z = %f ", z);
    fprintf(stderr, "lower than zmin\n");
    exit(1);
  }
  double DLNA = data->cosmo->dlna;
  return rec_interp1d(-log(1.+data->zmax), DLNA, data->xe_output, data->Nz, -log(1.+z), &data->error, data->error_message);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movapd %xmm0, %xmm2
movsd 0x10(%rdi), %xmm0
ucomisd %xmm0, %xmm2
jbe 0xdc2f1
movq 0x28(%rbx), %rax
movsd (%rax), %xmm0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movsd 0x18(%rbx), %xmm1
movsd %xmm2, (%rsp)
ucomisd %xmm2, %xmm1
ja 0xdc37b
movq 0x8(%rbx), %rax
movsd 0xa8(%rax), %xmm1
movsd %xmm1, 0x8(%rsp)
addsd 0x11f45(%rip), %xmm0    # 0xee260
callq 0x82c0
xorpd 0x11f08(%rip), %xmm0    # 0xee230
movapd %xmm0, 0x10(%rsp)
movq 0x28(%rbx), %r14
movl 0x20(%rbx), %ebp
movsd (%rsp), %xmm0
addsd 0x11f1e(%rip), %xmm0    # 0xee260
callq 0x82c0
movapd 0x11ee1(%rip), %xmm2    # 0xee230
xorpd %xmm0, %xmm2
movq 0x48(%rbx), %rcx
addq $0x38, %rbx
movaps 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xd3a85
movsd (%rsp), %xmm0
callq 0x99d5
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/history.c
// Function: hyrec_Tm
double hyrec_Tm(double z, HYREC_DATA *data) {
  if(z > data->zmax) return data->cosmo->T0*(1.+z);
  if (z < data->zmin) {
    fprintf(stderr, "\033[1m\033[31m error\033[22;30m in hyrec_Tm: requesting x_e at z = %f ", z);
    fprintf(stderr, "lower than zmin\n");
    exit(1);
  }
  double DLNA = data->cosmo->dlna;
  return rec_interp1d(-log(1.+data->zmax), DLNA, data->Tm_output, data->Nz, -log(1.+z), &data->error, data->error_message);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movapd %xmm0, %xmm2
movsd 0x10(%rdi), %xmm0
ucomisd %xmm0, %xmm2
jbe 0xdc3bd
addsd 0x11eb9(%rip), %xmm2    # 0xee260
movq 0x8(%rbx), %rax
mulsd 0x8(%rax), %xmm2
movapd %xmm2, %xmm0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movsd 0x18(%rbx), %xmm1
movsd %xmm2, (%rsp)
ucomisd %xmm2, %xmm1
ja 0xdc447
movq 0x8(%rbx), %rax
movsd 0xa8(%rax), %xmm1
movsd %xmm1, 0x8(%rsp)
addsd 0x11e79(%rip), %xmm0    # 0xee260
callq 0x82c0
xorpd 0x11e3c(%rip), %xmm0    # 0xee230
movapd %xmm0, 0x10(%rsp)
movq 0x30(%rbx), %r14
movl 0x20(%rbx), %ebp
movsd (%rsp), %xmm0
addsd 0x11e52(%rip), %xmm0    # 0xee260
callq 0x82c0
movapd 0x11e15(%rip), %xmm2    # 0xee230
xorpd %xmm0, %xmm2
movq 0x48(%rbx), %rcx
addq $0x38, %rbx
movaps 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xd3a85
movsd (%rsp), %xmm0
callq 0x9a0b
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/wrap_hyrec.c
// Function: thermodynamics_hyrec_free
int thermodynamics_hyrec_free(struct thermohyrec* phy){

  /* We just need to free hyrec (without error management) */
  hyrec_free(phy->data);
  free(phy->data);

  return _SUCCESS_;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0xdc24a
movq (%rbx), %rdi
callq 0x8410
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../external/HyRec2020/energy_injection.c
// Function: beta_pbh
double beta_pbh(double Mpbh, double z, double xe, double Teff) {
  double a, vB, tB;

  a     = 1./(1.+z);
  vB    = 9.09e3 * sqrt((1.+xe)*Teff);    /* Bondi speed in cm/s */
  tB    = 1.33e26 *Mpbh/vB/vB/vB;         /* Bondi timescale in sec*/

  return 5.60e-24 *xe/a/a/a/a *tB;       
}

// Assembly:
subq $0x38, %rsp
movapd %xmm0, %xmm5
movsd 0x11673(%rip), %xmm4    # 0xee260
addsd %xmm4, %xmm1
movapd %xmm2, %xmm0
addsd %xmm4, %xmm0
divsd %xmm1, %xmm4
mulsd %xmm3, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0xdcc11
sqrtsd %xmm0, %xmm0
jmp 0xdcc38
movapd %xmm2, 0x20(%rsp)
movapd %xmm4, 0x10(%rsp)
movapd %xmm5, (%rsp)
callq 0x82b0
movapd (%rsp), %xmm5
movapd 0x10(%rsp), %xmm4
movapd 0x20(%rsp), %xmm2
mulsd 0x4e8a0(%rip), %xmm0    # 0x12b4e0
mulsd 0x4e8a0(%rip), %xmm5    # 0x12b4e8
mulsd 0x4e8a0(%rip), %xmm2    # 0x12b4f0
divsd %xmm4, %xmm2
unpcklpd %xmm5, %xmm2            # xmm2 = xmm2[0],xmm5[0]
unpcklpd %xmm0, %xmm4            # xmm4 = xmm4[0],xmm0[0]
divpd %xmm4, %xmm2
divpd %xmm4, %xmm2
divpd %xmm4, %xmm2
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
mulsd %xmm2, %xmm0
addq $0x38, %rsp
retq