// File: /workspace/github_c_makefile_star2_O1/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 0x5e3c7
movq %rdx, %r11
movq 0x2d0(%rdi), %rcx
movslq 0x2b0(%rdi), %r14
movslq 0x208(%rdi), %rax
movq %rax, 0x28(%rsp)
movslq 0x290(%rdi), %rax
movq %rax, 0x20(%rsp)
movslq 0x284(%rdi), %rax
movq %rax, 0x18(%rsp)
movslq 0x20c(%rdi), %rax
movq %rax, 0x10(%rsp)
movslq 0x288(%rdi), %rax
movq %rax, 0x8(%rsp)
movslq 0x28c(%rdi), %rax
movq %rax, (%rsp)
movslq 0x294(%rdi), %rax
movq %rax, -0x8(%rsp)
movdqu 0x324(%rdi), %xmm0
pcmpeqw 0x9c5f8(%rip), %xmm0    # 0xfa480
packsswb %xmm0, %xmm0
pmovmskb %xmm0, %eax
movl %eax, %edx
andb $0x2, %dl
shrb %dl
movb %dl, -0x7b(%rsp)
movl %eax, %r9d
andb $0x4, %r9b
shrb $0x2, %r9b
movl %eax, %edx
andb $0x8, %dl
shrb $0x3, %dl
movb %dl, -0x7c(%rsp)
movl %eax, %edx
andb $0x10, %dl
shrb $0x4, %dl
movb %dl, -0x7d(%rsp)
movl %eax, %edx
andb $0x20, %dl
shrb $0x5, %dl
movb %dl, -0x80(%rsp)
movl %eax, %edx
andb $0x40, %dl
shrb $0x6, %dl
movb %dl, -0x7e(%rsp)
movl %eax, -0x74(%rsp)
shrb $0x7, %al
movb %al, -0x7f(%rsp)
movslq %esi, %rax
movsd 0x83374(%rip), %xmm0    # 0xe1260
movsd 0x838f4(%rip), %xmm1    # 0xe17e8
movsd 0x9c4c4(%rip), %xmm2    # 0xfa3c0
movslq 0x214(%rdi), %rdx
movq %rdx, -0x18(%rsp)
movslq 0x218(%rdi), %rdx
movq %rdx, -0x20(%rsp)
movzwl 0x320(%rdi), %edx
movw %dx, -0x76(%rsp)
movzwl 0x322(%rdi), %edx
movw %dx, -0x78(%rsp)
movslq 0x27c(%rdi), %rdx
movq %rdx, -0x28(%rsp)
movslq 0x26c(%rdi), %rdx
movq %rdx, -0x30(%rsp)
movslq 0x270(%rdi), %rdx
movq %rdx, -0x38(%rsp)
movslq 0x274(%rdi), %rdx
movq %rdx, -0x40(%rsp)
movslq 0x298(%rdi), %rdx
movq %rdx, -0x48(%rsp)
movslq 0x29c(%rdi), %rdx
movq %rdx, -0x50(%rsp)
movzwl 0x336(%rdi), %edx
movw %dx, -0x7a(%rsp)
leaq (,%r14,8), %rdx
movq %rdx, -0x58(%rsp)
movq %rax, -0x10(%rsp)
leaq (,%rax,8), %rax
movq %rax, -0x60(%rsp)
xorl %r8d, %r8d
movq %r11, %r12
movq %rcx, %r15
movq %rcx, -0x68(%rsp)
movq %r14, -0x70(%rsp)
movq %r8, %rax
imulq -0x10(%rsp), %rax
movq %r8, %rdx
imulq %r14, %rdx
leaq (%r11,%rax,8), %rax
leaq (%rcx,%rdx,8), %r13
movapd %xmm0, %xmm3
movq 0x28(%rsp), %rdx
divsd (%r13,%rdx,8), %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%rax)
movq 0x20(%rsp), %rdx
movsd (%r13,%rdx,8), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, 0x8(%rax)
movsd 0x198(%rdi), %xmm3
movq 0x18(%rsp), %rdx
subsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x10(%rax)
movq 0x10(%rsp), %rsi
movsd (%r13,%rsi,8), %xmm3
movsd %xmm3, 0x18(%rax)
movsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x20(%rax)
movq 0x8(%rsp), %rdx
movsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x28(%rax)
movq (%rsp), %rdx
movsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x30(%rax)
movq -0x8(%rsp), %rdx
movsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x38(%rax)
movq -0x18(%rsp), %rdx
movsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x40(%rax)
movq -0x20(%rsp), %rdx
movsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x48(%rax)
movl $0xa, %esi
cmpw $0x1, -0x76(%rsp)
jne 0x5e0a6
movslq 0x21c(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movsd %xmm3, 0x50(%rax)
movl $0xb, %esi
cmpw $0x1, -0x78(%rsp)
jne 0x5e0c5
movslq 0x220(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movl %esi, %edx
incl %esi
movsd %xmm3, (%rax,%rdx,8)
cmpb $0x0, -0x7c(%rsp)
je 0x5e130
movslq 0x70(%rdi), %rdx
testq %rdx, %rdx
jle 0x5e130
movq %rbx, %rcx
movq %r11, %rbx
movslq 0x260(%rdi), %r11
movslq 0x264(%rdi), %r10
movl %esi, %esi
leaq (%r15,%r10,8), %r10
leaq (%r15,%r11,8), %r14
addq %rdx, %rdx
leaq (%r12,%rsi,8), %r11
xorl %ebp, %ebp
movsd (%r14,%rbp,4), %xmm3
movsd %xmm3, (%r11,%rbp,8)
movsd (%r10,%rbp,4), %xmm3
movsd %xmm3, 0x8(%r11,%rbp,8)
addq $0x2, %rbp
cmpq %rbp, %rdx
jne 0x5e0fc
addl %ebp, %esi
movq %rbx, %r11
movq %rcx, %rbx
movq -0x68(%rsp), %rcx
movq -0x70(%rsp), %r14
cmpb $0x0, -0x7d(%rsp)
je 0x5e14f
movslq 0x224(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movslq %esi, %rdx
incl %esi
movsd %xmm3, (%rax,%rdx,8)
cmpb $0x0, -0x80(%rsp)
je 0x5e16e
movslq 0x228(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movslq %esi, %rdx
incl %esi
movsd %xmm3, (%rax,%rdx,8)
cmpb $0x0, -0x80(%rsp)
je 0x5e18d
movslq 0x22c(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movslq %esi, %rdx
incl %esi
movsd %xmm3, (%rax,%rdx,8)
cmpb $0x0, -0x7e(%rsp)
je 0x5e1ac
movslq 0x234(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movslq %esi, %rdx
incl %esi
movsd %xmm3, (%rax,%rdx,8)
cmpb $0x0, -0x7f(%rsp)
je 0x5e1cb
movslq 0x230(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movslq %esi, %rdx
incl %esi
movsd %xmm3, (%rax,%rdx,8)
movq -0x28(%rsp), %rdx
movsd (%r13,%rdx,8), %xmm3
leal 0x1(%rsi), %edx
movslq %esi, %r10
movsd %xmm3, (%rax,%r10,8)
testb $0x1, -0x74(%rsp)
je 0x5e205
movslq 0x238(%rdi), %r10
movsd (%r13,%r10,8), %xmm3
addl $0x2, %esi
movslq %edx, %rdx
movsd %xmm3, (%rax,%rdx,8)
movl %esi, %edx
cmpb $0x0, -0x7b(%rsp)
je 0x5e224
movslq 0x23c(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e241
movslq 0x254(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e25e
movslq 0x258(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e27b
movslq 0x25c(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e298
movslq 0x240(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e2b5
movslq 0x244(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e2d2
movslq 0x248(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e2ef
movslq 0x24c(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x5e30c
movslq 0x250(%rdi), %rsi
movsd (%r13,%rsi,8), %xmm3
movslq %edx, %rsi
incl %edx
movsd %xmm3, (%rax,%rsi,8)
leal 0x5(%rdx), %esi
movq -0x30(%rsp), %r10
movsd (%r13,%r10,8), %xmm3
movslq %edx, %r10
movsd %xmm3, (%rax,%r10,8)
movq -0x38(%rsp), %rbp
movsd (%r13,%rbp,8), %xmm3
movsd %xmm3, 0x8(%rax,%r10,8)
movq -0x40(%rsp), %rbp
movsd (%r13,%rbp,8), %xmm3
movsd %xmm3, 0x10(%rax,%r10,8)
movq -0x48(%rsp), %rbp
movsd (%r13,%rbp,8), %xmm3
movsd %xmm3, 0x18(%rax,%r10,8)
movq -0x50(%rsp), %rbp
movsd (%r13,%rbp,8), %xmm3
movsd %xmm3, 0x20(%rax,%r10,8)
cmpw $0x1, -0x7a(%rsp)
jne 0x5e393
movslq 0x2a0(%rdi), %r10
movsd (%r13,%r10,8), %xmm3
addl $0x6, %edx
movslq %esi, %rsi
movsd %xmm3, (%rax,%rsi,8)
movl %edx, %esi
cmpw $0x1, -0x7a(%rsp)
jne 0x5e3b1
movslq 0x2a4(%rdi), %rdx
movsd (%r13,%rdx,8), %xmm3
movslq %esi, %rdx
movsd %xmm3, (%rax,%rdx,8)
incq %r8
addq -0x58(%rsp), %r15
addq -0x60(%rsp), %r12
cmpq %rbx, %r8
jne 0x5dfb2
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq