// File: /workspace/github_c_makefile_star2_O1/lesgourg[P]class_public/build/../source/background.c
// Function: background_output_budget
int background_output_budget(
                             struct background* pba
                             ) {

  double budget_matter, budget_radiation, budget_other,budget_neutrino;
  int index_ncdm;

  budget_matter = 0;
  budget_radiation = 0;
  budget_other = 0;
  budget_neutrino = 0;

  //The name for the class_print_species macro can be at most 30 characters total
  if (pba->background_verbose > 1) {

    printf(" ---------------------------- Budget equation ----------------------- \n");

    printf(" ---> Nonrelativistic Species \n");
    class_print_species("Bayrons",b);
    budget_matter+=pba->Omega0_b;
    if (pba->has_cdm == _TRUE_) {
      class_print_species("Cold Dark Matter",cdm);
      budget_matter+=pba->Omega0_cdm;
    }
    if (pba->has_idm == _TRUE_){
      class_print_species("Interacting DM - idr,b,g",idm);
      budget_matter+=pba->Omega0_idm;
    }
    if (pba->has_dcdm == _TRUE_) {
      class_print_species("Decaying Cold Dark Matter",dcdm);
      budget_matter+=pba->Omega0_dcdm;
    }

    if (pba->N_ncdm > 0) {
      printf(" ---> Non-Cold Dark Matter Species (incl. massive neutrinos)\n");
    }
    if (pba->N_ncdm > 0) {
      for (index_ncdm=0;index_ncdm<pba->N_ncdm;++index_ncdm) {
        printf("-> %-26s%-4d Omega = %-15g , omega = %-15g\n","Non-Cold Species Nr.",index_ncdm+1,pba->Omega0_ncdm[index_ncdm],pba->Omega0_ncdm[index_ncdm]*pba->h*pba->h);
        budget_neutrino+=pba->Omega0_ncdm[index_ncdm];
        budget_matter+=pba->Omega0_ncdm[index_ncdm];
      }
    }

    printf(" ---> Relativistic Species \n");
    class_print_species("Photons",g);
    budget_radiation+=pba->Omega0_g;
    if (pba->has_ur == _TRUE_) {
      class_print_species("Ultra-relativistic relics",ur);
      budget_radiation+=pba->Omega0_ur;
    }
    if (pba->has_dr == _TRUE_) {
      class_print_species("Dark Radiation (from decay)",dr);
      budget_radiation+=pba->Omega0_dr;
    }
    if (pba->has_idr == _TRUE_) {
      class_print_species("Interacting Dark Radiation",idr);
      budget_radiation+=pba->Omega0_idr;
    }

    if ((pba->has_lambda == _TRUE_) || (pba->has_fld == _TRUE_) || (pba->has_scf == _TRUE_) || (pba->has_curvature == _TRUE_)) {
      printf(" ---> Other Content \n");
    }
    if (pba->has_lambda == _TRUE_) {
      class_print_species("Cosmological Constant",lambda);
      budget_other+=pba->Omega0_lambda;
    }
    if (pba->has_fld == _TRUE_) {
      class_print_species("Dark Energy Fluid",fld);
      budget_other+=pba->Omega0_fld;
    }
    if (pba->has_scf == _TRUE_) {
      class_print_species("Scalar Field",scf);
      budget_other+=pba->Omega0_scf;
    }
    if (pba->has_curvature == _TRUE_) {
      class_print_species("Spatial Curvature",k);
      budget_other+=pba->Omega0_k;
    }

    printf(" ---> Total budgets \n");
    printf(" Radiation                        Omega = %-15g , omega = %-15g \n",budget_radiation,budget_radiation*pba->h*pba->h);
    printf(" Non-relativistic                 Omega = %-15g , omega = %-15g \n",budget_matter,budget_matter*pba->h*pba->h);
    if (pba->N_ncdm > 0) {
      printf(" - Non-Free-Streaming Matter      Omega = %-15g , omega = %-15g \n",pba->Omega0_nfsm,pba->Omega0_nfsm*pba->h*pba->h);
      printf(" - Non-Cold Dark Matter           Omega = %-15g , omega = %-15g \n",budget_neutrino,budget_neutrino*pba->h*pba->h);
    }
    if ((pba->has_lambda == _TRUE_) || (pba->has_fld == _TRUE_) || (pba->has_scf == _TRUE_) || (pba->has_curvature == _TRUE_)) {
      printf(" Other Content                    Omega = %-15g , omega = %-15g \n",budget_other,budget_other*pba->h*pba->h);
    }
    printf(" TOTAL                            Omega = %-15g , omega = %-15g \n",budget_radiation+budget_matter+budget_other,(budget_radiation+budget_matter+budget_other)*pba->h*pba->h);
    printf(" -------------------------------------------------------------------- \n");
  }

  return _SUCCESS_;
}

// Assembly:
cmpw $0x2, 0xb82(%rdi)
jl 0x5abfa
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0xa21b3(%rip), %rdi     # 0xfc806
callq 0x8510
leaq 0xa21ee(%rip), %rdi     # 0xfc84d
callq 0x8510
movsd 0x8(%rbx), %xmm2
movsd 0x20(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1e24(%rip), %rdi     # 0xfc4a5
leaq 0xa1e45(%rip), %rsi     # 0xfc4cd
movb $0x2, %al
callq 0x8030
xorpd %xmm0, %xmm0
addsd 0x20(%rbx), %xmm0
cmpw $0x1, 0x320(%rbx)
jne 0x5a6dc
movsd %xmm0, (%rsp)
movsd 0x8(%rbx), %xmm2
movsd 0x30(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1de1(%rip), %rdi     # 0xfc4a5
leaq 0xa1e2c(%rip), %rsi     # 0xfc4f7
movb $0x2, %al
callq 0x8030
movsd (%rsp), %xmm0
addsd 0x30(%rbx), %xmm0
cmpw $0x1, 0x322(%rbx)
jne 0x5a720
movsd %xmm0, (%rsp)
movsd 0x8(%rbx), %xmm2
movsd 0x38(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1d9d(%rip), %rdi     # 0xfc4a5
leaq 0xa1dc6(%rip), %rsi     # 0xfc4d5
movb $0x2, %al
callq 0x8030
movsd (%rsp), %xmm0
addsd 0x38(%rbx), %xmm0
cmpw $0x1, 0x324(%rbx)
jne 0x5a76a
movsd %xmm0, (%rsp)
movsd 0x8(%rbx), %xmm2
movsd 0x1b8(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1d56(%rip), %rdi     # 0xfc4a5
leaq 0xa1d98(%rip), %rsi     # 0xfc4ee
movb $0x2, %al
callq 0x8030
movsd (%rsp), %xmm0
addsd 0x1b8(%rbx), %xmm0
cmpl $0x0, 0x70(%rbx)
jle 0x5a786
leaq 0xa20f5(%rip), %rdi     # 0xfc86c
movsd %xmm0, (%rsp)
callq 0x8510
movsd (%rsp), %xmm0
cmpl $0x0, 0x70(%rbx)
jle 0x5a824
cmpl $0x0, 0x70(%rbx)
jle 0x5a824
xorpd %xmm1, %xmm1
xorl %r13d, %r13d
leaq 0xa1d60(%rip), %r14     # 0xfc508
leaq 0xa1d85(%rip), %r15     # 0xfc534
movsd %xmm0, (%rsp)
movsd %xmm1, 0x18(%rsp)
leaq 0x1(%r13), %r12
movq 0xa0(%rbx), %rax
movsd (%rax,%r13,8), %xmm0
movsd 0x8(%rbx), %xmm2
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
movq %r14, %rdi
movq %r15, %rsi
movl %r12d, %edx
movb $0x2, %al
callq 0x8030
movsd 0x18(%rsp), %xmm1
movq 0xa0(%rbx), %rax
movsd (%rax,%r13,8), %xmm0
addsd %xmm0, %xmm1
movsd (%rsp), %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, (%rsp)
movsd (%rsp), %xmm0
movslq 0x70(%rbx), %rax
movq %r12, %r13
cmpq %rax, %r12
jl 0x5a7af
jmp 0x5a828
xorpd %xmm1, %xmm1
movsd %xmm1, 0x18(%rsp)
movsd %xmm0, (%rsp)
leaq 0xa206f(%rip), %rdi     # 0xfc8a9
callq 0x8510
movsd 0x8(%rbx), %xmm2
movsd 0x10(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1c49(%rip), %rdi     # 0xfc4a5
leaq 0xa1ce6(%rip), %rsi     # 0xfc549
movb $0x2, %al
callq 0x8030
xorpd %xmm0, %xmm0
addsd 0x10(%rbx), %xmm0
cmpw $0x1, 0x330(%rbx)
jne 0x5a8b9
movsd 0x8(%rbx), %xmm2
movsd %xmm0, 0x10(%rsp)
movsd 0x28(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1c05(%rip), %rdi     # 0xfc4a5
leaq 0xa1caa(%rip), %rsi     # 0xfc551
movb $0x2, %al
callq 0x8030
movsd 0x10(%rsp), %xmm0
addsd 0x28(%rbx), %xmm0
cmpw $0x1, 0x326(%rbx)
jne 0x5a905
movsd 0x8(%rbx), %xmm2
movsd %xmm0, 0x10(%rsp)
movsd 0x1c0(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1bbc(%rip), %rdi     # 0xfc4a5
leaq 0xa1c7b(%rip), %rsi     # 0xfc56b
movb $0x2, %al
callq 0x8030
movsd 0x10(%rsp), %xmm0
addsd 0x1c0(%rbx), %xmm0
cmpw $0x1, 0x332(%rbx)
jne 0x5a94b
movsd 0x8(%rbx), %xmm2
movsd %xmm0, 0x10(%rsp)
movsd 0x40(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1b73(%rip), %rdi     # 0xfc4a5
leaq 0xa1c4e(%rip), %rsi     # 0xfc587
movb $0x2, %al
callq 0x8030
movsd 0x10(%rsp), %xmm0
addsd 0x40(%rbx), %xmm0
movsd %xmm0, 0x10(%rsp)
cmpw $0x1, 0x32c(%rbx)
je 0x5a979
cmpw $0x1, 0x32e(%rbx)
je 0x5a979
cmpw $0x1, 0x328(%rbx)
je 0x5a979
cmpw $0x1, 0x334(%rbx)
jne 0x5a985
leaq 0xa1f45(%rip), %rdi     # 0xfc8c5
callq 0x8510
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
cmpw $0x1, 0x32c(%rbx)
jne 0x5a9d9
movsd 0x8(%rbx), %xmm2
movsd 0xf8(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1aec(%rip), %rdi     # 0xfc4a5
leaq 0xa1be2(%rip), %rsi     # 0xfc5a2
movb $0x2, %al
callq 0x8030
xorpd %xmm0, %xmm0
addsd 0xf8(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
cmpw $0x1, 0x32e(%rbx)
jne 0x5aa25
movsd 0x8(%rbx), %xmm2
movsd 0x100(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1aa2(%rip), %rdi     # 0xfc4a5
leaq 0xa1bae(%rip), %rsi     # 0xfc5b8
movb $0x2, %al
callq 0x8030
movsd 0x8(%rsp), %xmm0
addsd 0x100(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
cmpw $0x1, 0x328(%rbx)
jne 0x5aa71
movsd 0x8(%rbx), %xmm2
movsd 0x108(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1a56(%rip), %rdi     # 0xfc4a5
leaq 0xa1b74(%rip), %rsi     # 0xfc5ca
movb $0x2, %al
callq 0x8030
movsd 0x8(%rsp), %xmm0
addsd 0x108(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
cmpw $0x1, 0x334(%rbx)
jne 0x5aabd
movsd 0x8(%rbx), %xmm2
movsd 0xf0(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1a0a(%rip), %rdi     # 0xfc4a5
leaq 0xa1b35(%rip), %rsi     # 0xfc5d7
movb $0x2, %al
callq 0x8030
movsd 0x8(%rsp), %xmm0
addsd 0xf0(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0xa1e16(%rip), %rdi     # 0xfc8da
callq 0x8510
movsd 0x8(%rbx), %xmm2
movsd 0x10(%rsp), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1b02(%rip), %rdi     # 0xfc5e9
movb $0x2, %al
callq 0x8030
movsd 0x8(%rbx), %xmm2
movsd (%rsp), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1b20(%rip), %rdi     # 0xfc62b
movb $0x2, %al
callq 0x8030
cmpl $0x0, 0x70(%rbx)
jle 0x5ab64
movsd 0x8(%rbx), %xmm2
movsd 0x1e0(%rbx), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1b35(%rip), %rdi     # 0xfc66d
movb $0x2, %al
callq 0x8030
movsd 0x8(%rbx), %xmm2
movsd 0x18(%rsp), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1b52(%rip), %rdi     # 0xfc6af
movb $0x2, %al
callq 0x8030
cmpw $0x1, 0x32c(%rbx)
je 0x5ab8c
cmpw $0x1, 0x32e(%rbx)
je 0x5ab8c
cmpw $0x1, 0x328(%rbx)
je 0x5ab8c
cmpw $0x1, 0x334(%rbx)
jne 0x5abb1
movsd 0x8(%rbx), %xmm2
movsd 0x8(%rsp), %xmm0
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1b47(%rip), %rdi     # 0xfc6f1
movb $0x2, %al
callq 0x8030
movsd (%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
addsd 0x8(%rsp), %xmm0
movsd 0x8(%rbx), %xmm2
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
leaq 0xa1b59(%rip), %rdi     # 0xfc733
movb $0x2, %al
callq 0x8030
leaq 0xa1d07(%rip), %rdi     # 0xfc8ef
callq 0x8510
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
xorl %eax, %eax
retq