// File: /workspace/github_c_makefile_star2_O2/lesgourg[P]class_public/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_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_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_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 0x2b4(%rdi), %eax
movslq %esi, %rcx
xorl %esi, %esi
testl %eax, %eax
cmovlel %esi, %eax
leaq (,%rcx,8), %r8
movsd 0x7e9ec(%rip), %xmm0    # 0xd6260
movsd 0x7ef6c(%rip), %xmm1    # 0xd67e8
movsd 0x97a2c(%rip), %xmm2    # 0xef2b0
movl $0xa, %r9d
movq %rdx, %r11
xorl %ebx, %ebx
cmpq %rax, %rbx
je 0x57c80
movq %rbx, %r14
imulq %rcx, %r14
leaq (%rdx,%r14,8), %r14
movslq 0x2b0(%rdi), %r15
imulq %rbx, %r15
shlq $0x3, %r15
addq 0x2d0(%rdi), %r15
movslq 0x208(%rdi), %r12
movapd %xmm0, %xmm3
divsd (%r15,%r12,8), %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%r14)
movslq 0x290(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, 0x8(%r14)
movsd 0x198(%rdi), %xmm3
movslq 0x284(%rdi), %r12
subsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x10(%r14)
movslq 0x20c(%rdi), %r13
movsd (%r15,%r13,8), %xmm3
movsd %xmm3, 0x18(%r14)
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x20(%r14)
movslq 0x288(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x28(%r14)
movslq 0x28c(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x30(%r14)
movslq 0x294(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x38(%r14)
movslq 0x214(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x40(%r14)
movslq 0x218(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x48(%r14)
cmpw $0x1, 0x320(%rdi)
movl %r9d, %r12d
jne 0x579ac
movslq 0x21c(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x50(%r14)
movl $0xb, %r10d
movl %r10d, %r12d
cmpw $0x1, 0x322(%rdi)
jne 0x579cf
movslq 0x220(%rdi), %r13
movsd (%r15,%r13,8), %xmm3
movl %r12d, %r13d
incl %r12d
movsd %xmm3, (%r14,%r13,8)
cmpw $0x1, 0x32a(%rdi)
jne 0x57a24
movl 0x70(%rdi), %r13d
movl %r12d, %r12d
testl %r13d, %r13d
cmovlel %esi, %r13d
xorl %ebp, %ebp
cmpl %ebp, %r13d
je 0x57a24
movslq 0x260(%rdi), %r10
addq %rbp, %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, (%r11,%r12,8)
movslq 0x264(%rdi), %r10
addq %rbp, %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x8(%r11,%r12,8)
addq $0x2, %r12
incq %rbp
jmp 0x579e9
cmpw $0x1, 0x32c(%rdi)
jne 0x57a47
movslq 0x224(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
incl %r12d
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x32e(%rdi)
jne 0x57a7f
movslq 0x228(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
movsd %xmm3, (%r14,%r10,8)
movslq 0x22c(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
leal 0x2(%r10), %r12d
movsd %xmm3, 0x8(%r14,%r10,8)
cmpw $0x1, 0x330(%rdi)
jne 0x57aa2
movslq 0x234(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
incl %r12d
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x332(%rdi)
jne 0x57ac5
movslq 0x230(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r12d, %r10
incl %r12d
movsd %xmm3, (%r14,%r10,8)
movslq 0x27c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
leal 0x1(%r12), %ebp
movslq %r12d, %r10
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x324(%rdi)
jne 0x57b07
movslq 0x238(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
addl $0x2, %r12d
movslq %ebp, %r10
movsd %xmm3, (%r14,%r10,8)
movl %r12d, %ebp
cmpw $0x1, 0x326(%rdi)
jne 0x57b29
movslq 0x23c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %ebp, %r10
incl %ebp
movsd %xmm3, (%r14,%r10,8)
cmpw $0x1, 0x328(%rdi)
jne 0x57bdd
movslq 0x254(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %ebp, %r10
movsd %xmm3, (%r14,%r10,8)
movslq 0x258(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x8(%r14,%r10,8)
movslq 0x25c(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x10(%r14,%r10,8)
movslq 0x240(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x18(%r14,%r10,8)
movslq 0x244(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x20(%r14,%r10,8)
movslq 0x248(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x28(%r14,%r10,8)
movslq 0x24c(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
movsd %xmm3, 0x30(%r14,%r10,8)
movslq 0x250(%rdi), %r12
movsd (%r15,%r12,8), %xmm3
leal 0x8(%r10), %ebp
movsd %xmm3, 0x38(%r14,%r10,8)
movslq 0x26c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %ebp, %r12
movsd %xmm3, (%r14,%r12,8)
movslq 0x270(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x8(%r14,%r12,8)
movslq 0x274(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x10(%r14,%r12,8)
movslq 0x298(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x18(%r14,%r12,8)
movslq 0x29c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x20(%r14,%r12,8)
cmpw $0x1, 0x336(%rdi)
jne 0x57c75
movslq 0x2a0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x28(%r14,%r12,8)
movslq 0x2a4(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x30(%r14,%r12,8)
incq %rbx
addq %r8, %r11
jmp 0x5788f
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq