// File: /workspace/github_c_makefile_star2_O3/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
subq $0x30, %rsp
movslq 0x2b4(%rdi), %rbx
testq %rbx, %rbx
jle 0x5c037
movq 0x2d0(%rdi), %r15
movslq 0x2b0(%rdi), %r11
movslq 0x208(%rdi), %r13
movslq 0x290(%rdi), %rbp
movslq 0x284(%rdi), %rax
movq %rax, 0x28(%rsp)
movslq 0x20c(%rdi), %rax
movq %rax, 0x20(%rsp)
movslq 0x288(%rdi), %rax
movq %rax, 0x18(%rsp)
movslq 0x28c(%rdi), %rax
movq %rax, 0x10(%rsp)
movslq 0x294(%rdi), %rax
movq %rax, 0x8(%rsp)
movdqu 0x324(%rdi), %xmm0
pcmpeqw 0x9c974(%rip), %xmm0    # 0xf84b0
packsswb %xmm0, %xmm0
pmovmskb %xmm0, %eax
movl %eax, %ecx
andb $0x2, %cl
shrb %cl
movb %cl, -0x73(%rsp)
movl %eax, %ecx
andb $0x4, %cl
shrb $0x2, %cl
movb %cl, -0x74(%rsp)
movl %eax, %ecx
andb $0x8, %cl
shrb $0x3, %cl
movb %cl, -0x75(%rsp)
movl %eax, %ecx
andb $0x10, %cl
shrb $0x4, %cl
movb %cl, -0x76(%rsp)
movl %eax, %ecx
andb $0x20, %cl
shrb $0x5, %cl
movb %cl, -0x77(%rsp)
movl %eax, %ecx
andb $0x40, %cl
shrb $0x6, %cl
movb %cl, -0x78(%rsp)
movl %eax, -0x6c(%rsp)
shrb $0x7, %al
movb %al, -0x79(%rsp)
movslq %esi, %rax
movsd 0x836bf(%rip), %xmm0    # 0xdf260
movsd 0x83c3f(%rip), %xmm1    # 0xdf7e8
movsd 0x9c83f(%rip), %xmm2    # 0xf83f0
movslq 0x214(%rdi), %rcx
movq %rcx, -0x8(%rsp)
movslq 0x218(%rdi), %rcx
movq %rcx, -0x10(%rsp)
movzwl 0x320(%rdi), %ecx
movw %cx, -0x6e(%rsp)
movzwl 0x322(%rdi), %ecx
movw %cx, -0x70(%rsp)
movslq 0x27c(%rdi), %rcx
movq %rcx, -0x18(%rsp)
movslq 0x26c(%rdi), %rcx
movq %rcx, -0x20(%rsp)
movslq 0x270(%rdi), %rcx
movq %rcx, -0x28(%rsp)
movslq 0x274(%rdi), %rcx
movq %rcx, -0x30(%rsp)
movslq 0x298(%rdi), %rcx
movq %rcx, -0x38(%rsp)
movslq 0x29c(%rdi), %rcx
movq %rcx, -0x40(%rsp)
movzwl 0x336(%rdi), %ecx
movw %cx, -0x72(%rsp)
leaq (,%r11,8), %rcx
movq %rcx, -0x48(%rsp)
movq %rax, (%rsp)
leaq (,%rax,8), %rax
movq %rax, -0x50(%rsp)
xorl %r8d, %r8d
movq %rdx, %rcx
movq %r15, %rsi
movq %r11, -0x58(%rsp)
movq %r13, -0x60(%rsp)
movq %rbp, -0x68(%rsp)
movq %r8, %rax
imulq (%rsp), %rax
movq %r8, %r9
imulq %r11, %r9
leaq (%rdx,%rax,8), %r12
leaq (%r15,%r9,8), %r14
movapd %xmm0, %xmm3
divsd (%r14,%r13,8), %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%r12)
movsd (%r14,%rbp,8), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, 0x8(%r12)
movsd 0x198(%rdi), %xmm3
movq 0x28(%rsp), %rax
subsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x10(%r12)
movq 0x20(%rsp), %r9
movsd (%r14,%r9,8), %xmm3
movsd %xmm3, 0x18(%r12)
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x20(%r12)
movq 0x18(%rsp), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x28(%r12)
movq 0x10(%rsp), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x30(%r12)
movq 0x8(%rsp), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x38(%r12)
movq -0x8(%rsp), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x40(%r12)
movq -0x10(%rsp), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x48(%r12)
movl $0xa, %r9d
cmpw $0x1, -0x6e(%rsp)
jne 0x5bd62
movslq 0x21c(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x50(%r12)
movl $0xb, %r9d
cmpw $0x1, -0x70(%rsp)
jne 0x5bd83
movslq 0x220(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movl %r9d, %eax
incl %r9d
movsd %xmm3, (%r12,%rax,8)
cmpb $0x0, -0x75(%rsp)
je 0x5bdf6
movslq 0x70(%rdi), %rax
testq %rax, %rax
jle 0x5bdf6
movq %r15, %r11
movq %rbx, %rbp
movslq 0x260(%rdi), %rbx
movslq 0x264(%rdi), %r10
movl %r9d, %r9d
leaq (%rsi,%r10,8), %r10
leaq (%rsi,%rbx,8), %r15
addq %rax, %rax
leaq (%rcx,%r9,8), %rbx
xorl %r13d, %r13d
movsd (%r15,%r13,4), %xmm3
movsd %xmm3, (%rbx,%r13,8)
movsd (%r10,%r13,4), %xmm3
movsd %xmm3, 0x8(%rbx,%r13,8)
addq $0x2, %r13
cmpq %r13, %rax
jne 0x5bdbc
addl %r13d, %r9d
movq %rbp, %rbx
movq %r11, %r15
movq -0x58(%rsp), %r11
movq -0x60(%rsp), %r13
movq -0x68(%rsp), %rbp
cmpb $0x0, -0x76(%rsp)
je 0x5be16
movslq 0x224(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movslq %r9d, %rax
incl %r9d
movsd %xmm3, (%r12,%rax,8)
cmpb $0x0, -0x77(%rsp)
je 0x5be4b
movslq 0x228(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movslq %r9d, %rax
movsd %xmm3, (%r12,%rax,8)
movslq 0x22c(%rdi), %r9
movsd (%r14,%r9,8), %xmm3
leal 0x2(%rax), %r9d
movsd %xmm3, 0x8(%r12,%rax,8)
cmpb $0x0, -0x78(%rsp)
je 0x5be6b
movslq 0x234(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movslq %r9d, %rax
incl %r9d
movsd %xmm3, (%r12,%rax,8)
cmpb $0x0, -0x79(%rsp)
je 0x5be8b
movslq 0x230(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movslq %r9d, %rax
incl %r9d
movsd %xmm3, (%r12,%rax,8)
movq -0x18(%rsp), %rax
movsd (%r14,%rax,8), %xmm3
leal 0x1(%r9), %eax
movslq %r9d, %r10
movsd %xmm3, (%r12,%r10,8)
testb $0x1, -0x6c(%rsp)
je 0x5bec6
movslq 0x238(%rdi), %r10
movsd (%r14,%r10,8), %xmm3
addl $0x2, %r9d
cltq
movsd %xmm3, (%r12,%rax,8)
movl %r9d, %eax
cmpb $0x0, -0x73(%rsp)
je 0x5bee5
movslq 0x23c(%rdi), %r9
movsd (%r14,%r9,8), %xmm3
movslq %eax, %r9
incl %eax
movsd %xmm3, (%r12,%r9,8)
cmpb $0x0, -0x74(%rsp)
je 0x5bf96
movslq 0x254(%rdi), %r9
movsd (%r14,%r9,8), %xmm3
movslq %eax, %r9
movsd %xmm3, (%r12,%r9,8)
movslq 0x258(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x8(%r12,%r9,8)
movslq 0x25c(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x10(%r12,%r9,8)
movslq 0x240(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x18(%r12,%r9,8)
movslq 0x244(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x20(%r12,%r9,8)
movslq 0x248(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x28(%r12,%r9,8)
movslq 0x24c(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
movsd %xmm3, 0x30(%r12,%r9,8)
movslq 0x250(%rdi), %rax
movsd (%r14,%rax,8), %xmm3
leal 0x8(%r9), %eax
movsd %xmm3, 0x38(%r12,%r9,8)
movq -0x20(%rsp), %r9
movsd (%r14,%r9,8), %xmm3
cltq
movsd %xmm3, (%r12,%rax,8)
movq -0x28(%rsp), %r9
movsd (%r14,%r9,8), %xmm3
movsd %xmm3, 0x8(%r12,%rax,8)
movq -0x30(%rsp), %r9
movsd (%r14,%r9,8), %xmm3
movsd %xmm3, 0x10(%r12,%rax,8)
movq -0x38(%rsp), %r9
movsd (%r14,%r9,8), %xmm3
movsd %xmm3, 0x18(%r12,%rax,8)
movq -0x40(%rsp), %r9
movsd (%r14,%r9,8), %xmm3
movsd %xmm3, 0x20(%r12,%rax,8)
cmpw $0x1, -0x72(%rsp)
jne 0x5c021
movslq 0x2a0(%rdi), %r9
movsd (%r14,%r9,8), %xmm3
movsd %xmm3, 0x28(%r12,%rax,8)
movslq 0x2a4(%rdi), %r9
movsd (%r14,%r9,8), %xmm3
movsd %xmm3, 0x30(%r12,%rax,8)
incq %r8
addq -0x48(%rsp), %rsi
addq -0x50(%rsp), %rcx
cmpq %rbx, %r8
jne 0x5bc6b
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq