// File: /workspace/github_c_makefile_star2_O2/PoulinV[P]AxiCLASS/build/../source/background.c
// Function: background_output_data
int background_output_data(
                           struct background *pba,
                           int number_of_titles,
                           double *data
                           ) {

  int index_tau, storeidx, n;
  double *dataptr, *pvecback;

  /** Stores quantities */
  for (index_tau=0; index_tau<pba->bt_size; index_tau++) {
    dataptr = data + index_tau*number_of_titles;
    pvecback = pba->background_table + index_tau*pba->bg_size;
    storeidx = 0;

    class_store_double(dataptr,1./pvecback[pba->index_bg_a]-1.,_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_time]/_Gyr_over_Mpc_,_TRUE_,storeidx);
    class_store_double(dataptr,pba->conformal_age-pvecback[pba->index_bg_conf_distance],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_H],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_conf_distance],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_ang_distance],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_lum_distance],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rs],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_g],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_b],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_cdm],pba->has_cdm,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_idm],pba->has_idm,storeidx);
    if (pba->has_ncdm == _TRUE_) {
      for (n=0; n<pba->N_ncdm; n++) {
        class_store_double(dataptr,pvecback[pba->index_bg_rho_ncdm1+n],_TRUE_,storeidx);
        class_store_double(dataptr,pvecback[pba->index_bg_p_ncdm1+n],_TRUE_,storeidx);
      }
    }
    class_store_double(dataptr,pvecback[pba->index_bg_rho_lambda],pba->has_lambda,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_fld],pba->has_fld,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_Omega_fld],pba->has_fld,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_w_fld],pba->has_fld,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_ur],pba->has_ur,storeidx);

    class_store_double(dataptr,pvecback[pba->index_bg_rho_idr],pba->has_idr,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_crit],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_dcdm],pba->has_dcdm,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_rho_dr],pba->has_dr,storeidx);

    class_store_double(dataptr,pvecback[pba->index_bg_rho_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_Omega_scf],pba->has_scf,storeidx);
    // printf("a %e pvecback[pba->index_bg_w_scf] %e\n",a,pvecback[pba->index_bg_w_scf]);
    class_store_double(dataptr,pvecback[pba->index_bg_p_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_p_prime_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_w_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_dw_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_phi_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_phi_prime_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_V_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_dV_scf],pba->has_scf,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_ddV_scf],pba->has_scf,storeidx);

    class_store_double(dataptr,pvecback[pba->index_bg_rho_tot],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_p_tot],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_p_tot_prime],_TRUE_,storeidx);

    class_store_double(dataptr,pvecback[pba->index_bg_D],_TRUE_,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_f],_TRUE_,storeidx);

    class_store_double(dataptr,pvecback[pba->index_bg_varc_alpha],pba->has_varconst,storeidx);
    class_store_double(dataptr,pvecback[pba->index_bg_varc_me],pba->has_varconst,storeidx);
  }

  return _SUCCESS_;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x440(%rdi), %eax
movslq %esi, %rcx
xorl %esi, %esi
testl %eax, %eax
cmovlel %esi, %eax
leaq (,%rcx,8), %r8
movsd 0x83deb(%rip), %xmm0    # 0xe5260
movsd 0x8436b(%rip), %xmm1    # 0xe57e8
movsd 0xa04f3(%rip), %xmm2    # 0x101978
movl $0xa, %r9d
movq %rdx, %r11
xorl %ebx, %ebx
cmpq %rax, %rbx
je 0x618d5
movq %rbx, %r14
imulq %rcx, %r14
leaq (%rdx,%r14,8), %r14
movslq 0x43c(%rdi), %r15
imulq %rbx, %r15
shlq $0x3, %r15
addq 0x460(%rdi), %r15
movslq 0x380(%rdi), %r12
movapd %xmm0, %xmm3
divsd (%r15,%r12,8), %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%r14)
movslq 0x41c(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, 0x8(%r14)
movsd 0x310(%rdi), %xmm3
movslq 0x410(%rdi), %r12
subsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x10(%r14)
movslq 0x384(%rdi), %r13
movsd (%r15,%r13,8), %xmm3
movsd %xmm3, 0x18(%r14)
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x20(%r14)
movslq 0x414(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x28(%r14)
movslq 0x418(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x30(%r14)
movslq 0x420(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x38(%r14)
movslq 0x38c(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x40(%r14)
movslq 0x390(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x48(%r14)
cmpw $0x1, 0x4b4(%rdi)
movl %r9d, %r12d
jne 0x615ad
movslq 0x394(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x50(%r14)
movl $0xb, %r10d
movl %r10d, %r12d
cmpw $0x1, 0x4b6(%rdi)
jne 0x615d0
movslq 0x398(%rdi), %r13
movsd (%r15,%r13,8), %xmm3
movl %r12d, %r13d
incl %r12d
movsd %xmm3, (%r14,%r13,8)
cmpw $0x1, 0x4be(%rdi)
jne 0x61628
movl 0x248(%rdi), %r13d
movl %r12d, %r12d
testl %r13d, %r13d
cmovlel %esi, %r13d
xorl %ebp, %ebp
cmpl %ebp, %r13d
je 0x61628
movslq 0x3ec(%rdi), %r10
addq %rbp, %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, (%r11,%r12,8)
movslq 0x3f0(%rdi), %r10
addq %rbp, %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x8(%r11,%r12,8)
addq $0x2, %r12
incq %rbp
jmp 0x615ed
cmpw $0x1, 0x4c0(%rdi)
jne 0x6164b
movslq 0x39c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
incl %r12d
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x4c2(%rdi)
jne 0x61697
movslq 0x3a0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
movsd %xmm3, (%r14,%r10,8)
movslq 0x3a8(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x8(%r14,%r10,8)
movslq 0x3a4(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
leal 0x3(%r10), %r12d
movsd %xmm3, 0x10(%r14,%r10,8)
cmpw $0x1, 0x4c4(%rdi)
jne 0x616ba
movslq 0x3ac(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
incl %r12d
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x4c6(%rdi)
jne 0x616dd
movslq 0x3b0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
incl %r12d
movsd %xmm3, (%r14,%r10,8)
movslq 0x408(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
leal 0x1(%r12), %ebp
movslq %r12d, %r10
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x4b8(%rdi)
jne 0x6171f
movslq 0x3b4(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
addl $0x2, %r12d
movslq %ebp, %r10
movsd %xmm3, (%r14,%r10,8)
movl %r12d, %ebp
cmpw $0x1, 0x4ba(%rdi)
jne 0x61741
movslq 0x3b8(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %ebp, %r10
incl %ebp
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x4bc(%rdi)
jne 0x61832
movslq 0x3d0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %ebp, %r12
movsd %xmm3, (%r14,%r12,8)
movslq 0x3d4(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x8(%r14,%r12,8)
movslq 0x3d8(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x10(%r14,%r12,8)
movslq 0x3dc(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x18(%r14,%r12,8)
movslq 0x3e0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x20(%r14,%r12,8)
movslq 0x3e4(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x28(%r14,%r12,8)
movslq 0x3bc(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x30(%r14,%r12,8)
movslq 0x3c0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x38(%r14,%r12,8)
movslq 0x3c4(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x40(%r14,%r12,8)
movslq 0x3c8(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x48(%r14,%r12,8)
movslq 0x3cc(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
leal 0xb(%r12), %ebp
movsd %xmm3, 0x50(%r14,%r12,8)
movslq 0x3f8(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %ebp, %r12
movsd %xmm3, (%r14,%r12,8)
movslq 0x3fc(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x8(%r14,%r12,8)
movslq 0x400(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x10(%r14,%r12,8)
movslq 0x424(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x18(%r14,%r12,8)
movslq 0x428(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x20(%r14,%r12,8)
cmpw $0x1, 0x4ca(%rdi)
jne 0x618ca
movslq 0x42c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x28(%r14,%r12,8)
movslq 0x430(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x30(%r14,%r12,8)
incq %rbx
addq %r8, %r11
jmp 0x61490
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq