// File: /workspace/github_c_makefile_star2_O3/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:
movslq 0x440(%rdi), %r10
testq %r10, %r10
jle 0x65b79
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq 0x460(%rdi), %rbx
movslq 0x43c(%rdi), %r11
movslq 0x380(%rdi), %r15
movslq 0x41c(%rdi), %rbp
movslq 0x410(%rdi), %rax
movq %rax, 0x28(%rsp)
movslq 0x384(%rdi), %rax
movq %rax, 0x20(%rsp)
movslq 0x414(%rdi), %rax
movq %rax, 0x18(%rsp)
movslq 0x418(%rdi), %rax
movq %rax, 0x10(%rsp)
movslq 0x420(%rdi), %rax
movq %rax, 0x8(%rsp)
movdqu 0x4b8(%rdi), %xmm0
pcmpeqw 0xa5545(%rip), %xmm0    # 0x10ab90
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 0x88bb0(%rip), %xmm0    # 0xee260
movsd 0x89130(%rip), %xmm1    # 0xee7e8
movsd 0xa53f0(%rip), %xmm2    # 0x10aab0
movslq 0x38c(%rdi), %rcx
movq %rcx, -0x8(%rsp)
movslq 0x390(%rdi), %rcx
movq %rcx, -0x10(%rsp)
movzwl 0x4b4(%rdi), %ecx
movw %cx, -0x6e(%rsp)
movzwl 0x4b6(%rdi), %ecx
movw %cx, -0x70(%rsp)
movslq 0x408(%rdi), %rcx
movq %rcx, -0x18(%rsp)
movslq 0x3f8(%rdi), %rcx
movq %rcx, -0x20(%rsp)
movslq 0x3fc(%rdi), %rcx
movq %rcx, -0x28(%rsp)
movslq 0x400(%rdi), %rcx
movq %rcx, -0x30(%rsp)
movslq 0x424(%rdi), %rcx
movq %rcx, -0x38(%rsp)
movslq 0x428(%rdi), %rcx
movq %rcx, -0x40(%rsp)
movzwl 0x4ca(%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 %r13d, %r13d
movq %rdx, %rcx
movq %rbx, %r14
movq %r11, -0x58(%rsp)
movq %r15, -0x60(%rsp)
movq %rbp, -0x68(%rsp)
movq %r13, %rax
imulq (%rsp), %rax
movq %r13, %r8
imulq %r11, %r8
leaq (%rdx,%rax,8), %rsi
leaq (%rbx,%r8,8), %r12
movapd %xmm0, %xmm3
divsd (%r12,%r15,8), %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%rsi)
movsd (%r12,%rbp,8), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, 0x8(%rsi)
movsd 0x310(%rdi), %xmm3
movq 0x28(%rsp), %rax
subsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x10(%rsi)
movq 0x20(%rsp), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x18(%rsi)
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x20(%rsi)
movq 0x18(%rsp), %rax
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x28(%rsi)
movq 0x10(%rsp), %rax
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x30(%rsi)
movq 0x8(%rsp), %rax
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x38(%rsi)
movq -0x8(%rsp), %rax
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x40(%rsi)
movq -0x10(%rsp), %rax
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x48(%rsi)
movl $0xa, %eax
cmpw $0x1, -0x6e(%rsp)
jne 0x65859
movslq 0x394(%rdi), %rax
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x50(%rsi)
movl $0xb, %eax
cmpw $0x1, -0x70(%rsp)
jne 0x65879
movslq 0x398(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movl %eax, %r8d
incl %eax
movsd %xmm3, (%rsi,%r8,8)
cmpb $0x0, -0x75(%rsp)
je 0x658ee
movslq 0x248(%rdi), %r8
testq %r8, %r8
jle 0x658ee
movq %rbx, %r11
movq %r10, %rbp
movslq 0x3ec(%rdi), %r9
movslq 0x3f0(%rdi), %r10
movl %eax, %eax
leaq (%r14,%r10,8), %r15
leaq (%r14,%r9,8), %r10
addq %r8, %r8
leaq (%rcx,%rax,8), %rbx
xorl %r9d, %r9d
movsd (%r10,%r9,4), %xmm3
movsd %xmm3, (%rbx,%r9,8)
movsd (%r15,%r9,4), %xmm3
movsd %xmm3, 0x8(%rbx,%r9,8)
addq $0x2, %r9
cmpq %r9, %r8
jne 0x658b4
addl %r9d, %eax
movq %rbp, %r10
movq %r11, %rbx
movq -0x58(%rsp), %r11
movq -0x60(%rsp), %r15
movq -0x68(%rsp), %rbp
cmpb $0x0, -0x76(%rsp)
je 0x6590d
movslq 0x39c(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movslq %eax, %r8
incl %eax
movsd %xmm3, (%rsi,%r8,8)
cmpb $0x0, -0x77(%rsp)
je 0x65956
movslq 0x3a0(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movslq %eax, %r8
movsd %xmm3, (%rsi,%r8,8)
movslq 0x3a8(%rdi), %rax
movsd (%r12,%rax,8), %xmm3
movsd %xmm3, 0x8(%rsi,%r8,8)
movslq 0x3a4(%rdi), %rax
movsd (%r12,%rax,8), %xmm3
leal 0x3(%r8), %eax
movsd %xmm3, 0x10(%rsi,%r8,8)
cmpb $0x0, -0x78(%rsp)
je 0x65975
movslq 0x3ac(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movslq %eax, %r8
incl %eax
movsd %xmm3, (%rsi,%r8,8)
cmpb $0x0, -0x79(%rsp)
je 0x65994
movslq 0x3b0(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movslq %eax, %r8
incl %eax
movsd %xmm3, (%rsi,%r8,8)
movq -0x18(%rsp), %r8
movsd (%r12,%r8,8), %xmm3
leal 0x1(%rax), %r8d
movslq %eax, %r9
movsd %xmm3, (%rsi,%r9,8)
testb $0x1, -0x6c(%rsp)
je 0x659cf
movslq 0x3b4(%rdi), %r9
movsd (%r12,%r9,8), %xmm3
addl $0x2, %eax
movslq %r8d, %r8
movsd %xmm3, (%rsi,%r8,8)
movl %eax, %r8d
cmpb $0x0, -0x73(%rsp)
je 0x659ee
movslq 0x3b8(%rdi), %rax
movsd (%r12,%rax,8), %xmm3
movslq %r8d, %rax
incl %r8d
movsd %xmm3, (%rsi,%rax,8)
cmpb $0x0, -0x74(%rsp)
je 0x65ad0
movslq 0x3d0(%rdi), %rax
movsd (%r12,%rax,8), %xmm3
movslq %r8d, %rax
movsd %xmm3, (%rsi,%rax,8)
movslq 0x3d4(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x8(%rsi,%rax,8)
movslq 0x3d8(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x10(%rsi,%rax,8)
movslq 0x3dc(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x18(%rsi,%rax,8)
movslq 0x3e0(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x20(%rsi,%rax,8)
movslq 0x3e4(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x28(%rsi,%rax,8)
movslq 0x3bc(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x30(%rsi,%rax,8)
movslq 0x3c0(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x38(%rsi,%rax,8)
movslq 0x3c4(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x40(%rsi,%rax,8)
movslq 0x3c8(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x48(%rsi,%rax,8)
movslq 0x3cc(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
leal 0xb(%rax), %r8d
movsd %xmm3, 0x50(%rsi,%rax,8)
movq -0x20(%rsp), %rax
movsd (%r12,%rax,8), %xmm3
movslq %r8d, %rax
movsd %xmm3, (%rsi,%rax,8)
movq -0x28(%rsp), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x8(%rsi,%rax,8)
movq -0x30(%rsp), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x10(%rsi,%rax,8)
movq -0x38(%rsp), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x18(%rsi,%rax,8)
movq -0x40(%rsp), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x20(%rsi,%rax,8)
cmpw $0x1, -0x72(%rsp)
jne 0x65b55
movslq 0x42c(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x28(%rsi,%rax,8)
movslq 0x430(%rdi), %r8
movsd (%r12,%r8,8), %xmm3
movsd %xmm3, 0x30(%rsi,%rax,8)
incq %r13
addq -0x48(%rsp), %r14
addq -0x50(%rsp), %rcx
cmpq %r10, %r13
jne 0x6577a
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq