// File: /workspace/github_c_makefile_star2_O1/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), %r11
testq %r11, %r11
jle 0x68488
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq 0x460(%rdi), %rbx
movslq 0x43c(%rdi), %r14
movslq 0x380(%rdi), %rax
movq %rax, 0x28(%rsp)
movslq 0x41c(%rdi), %rax
movq %rax, 0x20(%rsp)
movslq 0x410(%rdi), %rax
movq %rax, 0x18(%rsp)
movslq 0x384(%rdi), %rax
movq %rax, 0x10(%rsp)
movslq 0x414(%rdi), %rax
movq %rax, 0x8(%rsp)
movslq 0x418(%rdi), %rax
movq %rax, (%rsp)
movslq 0x420(%rdi), %rax
movq %rax, -0x8(%rsp)
movdqu 0x4b8(%rdi), %xmm0
pcmpeqw 0xa5ca3(%rip), %xmm0    # 0x10db70
packsswb %xmm0, %xmm0
pmovmskb %xmm0, %eax
movl %eax, %ecx
andb $0x2, %cl
shrb %cl
movb %cl, -0x7b(%rsp)
movl %eax, %r9d
andb $0x4, %r9b
shrb $0x2, %r9b
movl %eax, %ecx
andb $0x8, %cl
shrb $0x3, %cl
movb %cl, -0x7c(%rsp)
movl %eax, %ecx
andb $0x10, %cl
shrb $0x4, %cl
movb %cl, -0x7d(%rsp)
movl %eax, %r13d
andb $0x20, %r13b
shrb $0x5, %r13b
movl %eax, %ecx
andb $0x40, %cl
shrb $0x6, %cl
movb %cl, -0x7e(%rsp)
movl %eax, -0x74(%rsp)
shrb $0x7, %al
movb %al, -0x7f(%rsp)
movslq %esi, %rax
movsd 0x89330(%rip), %xmm0    # 0xf1260
movsd 0x898b0(%rip), %xmm1    # 0xf17e8
movsd 0xa5b48(%rip), %xmm2    # 0x10da88
movslq 0x38c(%rdi), %rcx
movq %rcx, -0x18(%rsp)
movslq 0x390(%rdi), %rcx
movq %rcx, -0x20(%rsp)
movzwl 0x4b4(%rdi), %ecx
movw %cx, -0x76(%rsp)
movzwl 0x4b6(%rdi), %ecx
movw %cx, -0x78(%rsp)
movslq 0x408(%rdi), %rcx
movq %rcx, -0x28(%rsp)
movslq 0x3f8(%rdi), %rcx
movq %rcx, -0x30(%rsp)
movslq 0x3fc(%rdi), %rcx
movq %rcx, -0x38(%rsp)
movslq 0x400(%rdi), %rcx
movq %rcx, -0x40(%rsp)
movslq 0x424(%rdi), %rcx
movq %rcx, -0x48(%rsp)
movslq 0x428(%rdi), %rcx
movq %rcx, -0x50(%rsp)
movzwl 0x4ca(%rdi), %ecx
movw %cx, -0x7a(%rsp)
leaq (,%r14,8), %rcx
movq %rcx, -0x58(%rsp)
movq %rax, -0x10(%rsp)
leaq (,%rax,8), %rax
movq %rax, -0x60(%rsp)
xorl %r8d, %r8d
movq %rdx, %rcx
movq %rbx, %r12
movb %r13b, -0x80(%rsp)
movq %rbx, -0x68(%rsp)
movq %r14, -0x70(%rsp)
movq %r8, %r10
imulq -0x10(%rsp), %r10
movq %r8, %rsi
imulq %r14, %rsi
leaq (%rdx,%r10,8), %rax
leaq (%rbx,%rsi,8), %r15
movapd %xmm0, %xmm3
movq 0x28(%rsp), %rsi
divsd (%r15,%rsi,8), %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%rax)
movq 0x20(%rsp), %rsi
movsd (%r15,%rsi,8), %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, 0x8(%rax)
movsd 0x310(%rdi), %xmm3
movq 0x18(%rsp), %rsi
subsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x10(%rax)
movq 0x10(%rsp), %r10
movsd (%r15,%r10,8), %xmm3
movsd %xmm3, 0x18(%rax)
movsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x20(%rax)
movq 0x8(%rsp), %rsi
movsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x28(%rax)
movq (%rsp), %rsi
movsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x30(%rax)
movq -0x8(%rsp), %rsi
movsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x38(%rax)
movq -0x18(%rsp), %rsi
movsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x40(%rax)
movq -0x20(%rsp), %rsi
movsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x48(%rax)
movl $0xa, %esi
cmpw $0x1, -0x76(%rsp)
jne 0x680e4
movslq 0x394(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movsd %xmm3, 0x50(%rax)
movl $0xb, %esi
cmpw $0x1, -0x78(%rsp)
jne 0x68104
movslq 0x398(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movl %esi, %r10d
incl %esi
movsd %xmm3, (%rax,%r10,8)
cmpb $0x0, -0x7c(%rsp)
je 0x68171
movslq 0x248(%rdi), %r13
testq %r13, %r13
jle 0x6816c
movq %r11, %rbx
movslq 0x3ec(%rdi), %r11
movslq 0x3f0(%rdi), %r10
movl %esi, %esi
leaq (%r12,%r10,8), %r10
leaq (%r12,%r11,8), %r14
addq %r13, %r13
leaq (%rcx,%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, %r13
jne 0x6813b
addl %ebp, %esi
movq %rbx, %r11
movq -0x68(%rsp), %rbx
movq -0x70(%rsp), %r14
movb -0x80(%rsp), %r13b
cmpb $0x0, -0x7d(%rsp)
je 0x68190
movslq 0x39c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %esi, %r10
incl %esi
movsd %xmm3, (%rax,%r10,8)
testb %r13b, %r13b
je 0x681ad
movslq 0x3a0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %esi, %r10
incl %esi
movsd %xmm3, (%rax,%r10,8)
testb %r13b, %r13b
je 0x681ca
movslq 0x3a8(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %esi, %r10
incl %esi
movsd %xmm3, (%rax,%r10,8)
testb %r13b, %r13b
je 0x681e7
movslq 0x3a4(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %esi, %r10
incl %esi
movsd %xmm3, (%rax,%r10,8)
cmpb $0x0, -0x7e(%rsp)
je 0x68206
movslq 0x3ac(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %esi, %r10
incl %esi
movsd %xmm3, (%rax,%r10,8)
cmpb $0x0, -0x7f(%rsp)
je 0x68225
movslq 0x3b0(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %esi, %r10
incl %esi
movsd %xmm3, (%rax,%r10,8)
movq -0x28(%rsp), %r10
movsd (%r15,%r10,8), %xmm3
leal 0x1(%rsi), %r13d
movslq %esi, %r10
movsd %xmm3, (%rax,%r10,8)
testb $0x1, -0x74(%rsp)
je 0x68260
movslq 0x3b4(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
addl $0x2, %esi
movslq %r13d, %r10
movsd %xmm3, (%rax,%r10,8)
movl %esi, %r13d
cmpb $0x0, -0x7b(%rsp)
je 0x6827f
movslq 0x3b8(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x6829c
movslq 0x3d0(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x682b9
movslq 0x3d4(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x682d6
movslq 0x3d8(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x682f3
movslq 0x3dc(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x68310
movslq 0x3e0(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x6832d
movslq 0x3e4(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x6834a
movslq 0x3bc(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x68367
movslq 0x3c0(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x68384
movslq 0x3c4(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x683a1
movslq 0x3c8(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
testb %r9b, %r9b
je 0x683be
movslq 0x3cc(%rdi), %rsi
movsd (%r15,%rsi,8), %xmm3
movslq %r13d, %rsi
incl %r13d
movsd %xmm3, (%rax,%rsi,8)
leal 0x5(%r13), %esi
movq -0x30(%rsp), %r10
movsd (%r15,%r10,8), %xmm3
movslq %r13d, %r10
movsd %xmm3, (%rax,%r10,8)
movq -0x38(%rsp), %rbp
movsd (%r15,%rbp,8), %xmm3
movsd %xmm3, 0x8(%rax,%r10,8)
movq -0x40(%rsp), %rbp
movsd (%r15,%rbp,8), %xmm3
movsd %xmm3, 0x10(%rax,%r10,8)
movq -0x48(%rsp), %rbp
movsd (%r15,%rbp,8), %xmm3
movsd %xmm3, 0x18(%rax,%r10,8)
movq -0x50(%rsp), %rbp
movsd (%r15,%rbp,8), %xmm3
movsd %xmm3, 0x20(%rax,%r10,8)
cmpw $0x1, -0x7a(%rsp)
jne 0x68442
movslq 0x42c(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
addl $0x6, %r13d
movslq %esi, %rsi
movsd %xmm3, (%rax,%rsi,8)
movl %r13d, %esi
movb -0x80(%rsp), %r13b
cmpw $0x1, -0x7a(%rsp)
jne 0x68464
movslq 0x430(%rdi), %r10
movsd (%r15,%r10,8), %xmm3
movslq %esi, %rsi
movsd %xmm3, (%rax,%rsi,8)
incq %r8
addq -0x58(%rsp), %r12
addq -0x60(%rsp), %rcx
cmpq %r11, %r8
jne 0x67ffb
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq