// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../source/distortions.c
// Function: distortions_constants
int distortions_constants(struct precision * ppr,
                          struct background * pba,
                          struct thermodynamics * pth,
                          struct distortions * psd){

  /** Define unit conventions */
  psd->x_to_nu = (_k_B_*pba->T_cmb/_h_P_)/1e9;                    // [GHz]
  psd->DI_units = 2.*pow(_k_B_*pba->T_cmb,3.)/pow(_h_P_*_c_,2.);  // [W/(m^2 Hz sr)]

  /** Define transition redshifts z_muy and z_th */
  psd->z_muy = 5.e4;
  psd->z_th = 1.98e6*
    pow((1.-pth->YHe/2.)/0.8767,-2./5.)*
    pow(pba->Omega0_b*pow(pba->h,2.)/0.02225,-2./5.)*
    pow(pba->T_cmb/2.726,1./5.);

  class_sprintf(psd->sd_PCA_file_generator,"%s/%s",ppr->sd_external_path,"generate_PCA_files.py");
  class_sprintf(psd->sd_detector_list_file,"%s/%s",ppr->sd_external_path,"detectors_list.dat");

  return _SUCCESS_;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq 0x38(%rsp), %rax
movsd 0x4788b(%rip), %xmm0    # 0x1d6640
mulsd 0x18(%rax), %xmm0
movsd 0x47876(%rip), %xmm1    # 0x1d6638
divsd %xmm1, %xmm0
movsd 0x4785a(%rip), %xmm1    # 0x1d6628
divsd %xmm1, %xmm0
movq 0x28(%rsp), %rax
movsd %xmm0, 0x380(%rax)
movq 0x38(%rsp), %rax
movsd 0x47854(%rip), %xmm0    # 0x1d6640
mulsd 0x18(%rax), %xmm0
movsd 0x4489f(%rip), %xmm1    # 0x1d3698
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x43e77(%rip), %xmm0    # 0x1d2c80
mulsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movsd 0x67496(%rip), %xmm0    # 0x1f62b0
movsd 0x43e5e(%rip), %xmm1    # 0x1d2c80
callq 0x8610
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0x28(%rsp), %rax
movsd %xmm0, 0x388(%rax)
movq 0x28(%rsp), %rax
movsd 0x7b4b3(%rip), %xmm0    # 0x20a300
movsd %xmm0, 0x310(%rax)
movq 0x30(%rsp), %rax
movsd (%rax), %xmm1
movsd 0x43e1a(%rip), %xmm0    # 0x1d2c80
divsd %xmm0, %xmm1
movsd 0x433d6(%rip), %xmm0    # 0x1d2248
subsd %xmm1, %xmm0
movsd 0x7b47a(%rip), %xmm1    # 0x20a2f8
divsd %xmm1, %xmm0
movsd 0x7b456(%rip), %xmm1    # 0x20a2e0
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x7b456(%rip), %xmm0    # 0x20a2f0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x38(%rsp), %rax
movsd 0x20(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x38(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd 0x43dba(%rip), %xmm1    # 0x1d2c80
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd 0x7b408(%rip), %xmm1    # 0x20a2e8
divsd %xmm1, %xmm0
movsd 0x7b3f4(%rip), %xmm1    # 0x20a2e0
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x38(%rsp), %rax
movsd 0x18(%rax), %xmm0
movsd 0x6d4aa(%rip), %xmm1    # 0x1fc3c0
divsd %xmm1, %xmm0
movsd 0x4335e(%rip), %xmm1    # 0x1d2280
callq 0x8610
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x28(%rsp), %rax
movsd %xmm0, 0x318(%rax)
movq 0x40(%rsp), %rcx
addq $0x928, %rcx            # imm = 0x928
xorl %eax, %eax
movl %eax, %esi
leaq 0x7b7d0(%rip), %rdx     # 0x20a728
leaq 0x7b7cf(%rip), %r8      # 0x20a72e
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x24(%rsp)
movq 0x28(%rsp), %rdi
addq $0x6f4, %rdi            # imm = 0x6F4
movl 0x24(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movq 0x40(%rsp), %rcx
addq $0x928, %rcx            # imm = 0x928
leaq 0x7b792(%rip), %rdx     # 0x20a728
leaq 0x7b791(%rip), %r8      # 0x20a72e
movb $0x0, %al
callq 0x8540
jmp 0x18efa6
movq 0x40(%rsp), %rcx
addq $0x928, %rcx            # imm = 0x928
xorl %eax, %eax
movl %eax, %esi
leaq 0x7b76b(%rip), %rdx     # 0x20a728
leaq 0x7b780(%rip), %r8      # 0x20a744
movq %rsi, %rdi
movb $0x0, %al
callq 0x8540
movl %eax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
addq $0x958, %rdi            # imm = 0x958
movl 0x20(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
movq 0x40(%rsp), %rcx
addq $0x928, %rcx            # imm = 0x928
leaq 0x7b72d(%rip), %rdx     # 0x20a728
leaq 0x7b742(%rip), %r8      # 0x20a744
movb $0x0, %al
callq 0x8540
xorl %eax, %eax
addq $0x48, %rsp
retq