// File: /workspace/github_c_makefile_star2_O1/PoulinV[P]AxiCLASS/build/../source/output.c
// Function: output_one_line_of_cl
int output_one_line_of_cl(
                          struct background * pba,
                          struct harmonic * phr,
                          struct output * pop,
                          FILE * clfile,
                          double l,
                          double * cl, /* array with argument cl[index_ct] */
                          int ct_size
                          ) {
  int index_ct, index_ct_rest;
  double factor;

  factor = l*(l+1)/2./_PI_;

  fprintf(clfile," ");

  if (0==1){
    class_fprintf_int(clfile, (int)l, _TRUE_);
  }
  else{
    fprintf(clfile,"%4d ",(int)l);
  }

  if (pop->output_format == class_format) {

    for (index_ct=0; index_ct < ct_size; index_ct++) {
      class_fprintf_double(clfile, factor*cl[index_ct], _TRUE_);
    }
    fprintf(clfile,"\n");
  }

  if (pop->output_format == camb_format) {
    class_fprintf_double(clfile, factor*pow(pba->T_cmb*1.e6,2)*cl[phr->index_ct_tt], phr->has_tt);
    class_fprintf_double(clfile, factor*pow(pba->T_cmb*1.e6,2)*cl[phr->index_ct_ee], phr->has_ee);
    class_fprintf_double(clfile, factor*pow(pba->T_cmb*1.e6,2)*cl[phr->index_ct_bb], phr->has_bb);
    class_fprintf_double(clfile, factor*pow(pba->T_cmb*1.e6,2)*cl[phr->index_ct_te], phr->has_te);
    class_fprintf_double(clfile, l*(l+1)*factor*cl[phr->index_ct_pp], phr->has_pp);
    class_fprintf_double(clfile, sqrt(l*(l+1))*factor*pba->T_cmb*1.e6*cl[phr->index_ct_tp], phr->has_tp);
    class_fprintf_double(clfile, sqrt(l*(l+1))*factor*pba->T_cmb*1.e6*cl[phr->index_ct_ep], phr->has_ep);
    index_ct_rest = 0;
    if (phr->has_tt == _TRUE_)
      index_ct_rest++;
    if (phr->has_ee == _TRUE_)
      index_ct_rest++;
    if (phr->has_bb == _TRUE_)
      index_ct_rest++;
    if (phr->has_te == _TRUE_)
      index_ct_rest++;
    if (phr->has_pp == _TRUE_)
      index_ct_rest++;
    if (phr->has_tp == _TRUE_)
      index_ct_rest++;
    if (phr->has_ep == _TRUE_)
      index_ct_rest++;
    /* Now print the remaining (if any) entries:*/
    for (index_ct=index_ct_rest; index_ct < ct_size; index_ct++) {
      class_fprintf_double(clfile, factor*cl[index_ct], _TRUE_);
    }

    fprintf(clfile,"\n");

  }
  return _SUCCESS_;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebp
movq %r8, %r14
movsd %xmm0, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
movsd 0x12cb(%rip), %xmm1     # 0xf1260
addsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movsd 0x1d2b(%rip), %xmm0     # 0xf1cd0
movsd %xmm1, 0x10(%rsp)
mulsd %xmm1, %xmm0
divsd 0x4011(%rip), %xmm0     # 0xf3fc8
movsd %xmm0, (%rsp)
movl $0x20, %edi
movq %rcx, %rsi
callq 0x8440
cvttsd2si 0x8(%rsp), %edx
leaq 0x43c31(%rip), %rsi     # 0x133c07
movq %rbx, %rdi
xorl %eax, %eax
callq 0x84e0
cmpl $0x0, 0x40c(%r13)
jne 0xf0059
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movl %ebp, 0x8(%rsp)
testl %ebp, %ebp
movsd (%rsp), %xmm1
jle 0xf003e
movl 0x8(%rsp), %r12d
xorl %r15d, %r15d
leaq 0x438ba(%rip), %rbp     # 0x1338ca
movsd (%r14,%r15,8), %xmm0
mulsd %xmm1, %xmm0
movq %rbx, %rdi
movq %rbp, %rsi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
movsd (%rsp), %xmm1
incq %r15
cmpq %r15, %r12
jne 0xf0010
movl $0xa, %edi
movq %rbx, %rsi
callq 0x8440
movl 0x8(%rsp), %ebp
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r12
cmpl $0x1, 0x40c(%r13)
jne 0xf0327
cmpl $0x1, 0x30(%r15)
jne 0xf00ab
movsd 0x18(%r12), %xmm0
mulsd 0x5aa3(%rip), %xmm0     # 0xf5b20
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x64(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43833(%rip), %rsi     # 0x1338ca
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x34(%r15)
jne 0xf00ef
movsd 0x18(%r12), %xmm0
mulsd 0x5a5f(%rip), %xmm0     # 0xf5b20
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x68(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x437ef(%rip), %rsi     # 0x1338ca
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x3c(%r15)
jne 0xf0133
movsd 0x18(%r12), %xmm0
mulsd 0x5a1b(%rip), %xmm0     # 0xf5b20
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x70(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x437ab(%rip), %rsi     # 0x1338ca
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x38(%r15)
jne 0xf0177
movsd 0x18(%r12), %xmm0
mulsd 0x59d7(%rip), %xmm0     # 0xf5b20
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x6c(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43767(%rip), %rsi     # 0x1338ca
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x40(%r15)
jne 0xf01ae
movsd 0x10(%rsp), %xmm0
mulsd (%rsp), %xmm0
movslq 0x74(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43730(%rip), %rsi     # 0x1338ca
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x44(%r15)
jne 0xf0211
xorpd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movapd %xmm1, %xmm0
jb 0xf01cf
sqrtsd %xmm0, %xmm0
jmp 0xf01d4
callq 0x82b0
movsd (%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd 0x18(%r12), %xmm0
mulsd 0x5934(%rip), %xmm0     # 0xf5b20
movslq 0x78(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x436cd(%rip), %rsi     # 0x1338ca
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x48(%r15)
jne 0xf0274
xorpd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movapd %xmm1, %xmm0
jb 0xf0232
sqrtsd %xmm0, %xmm0
jmp 0xf0237
callq 0x82b0
movsd (%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd 0x18(%r12), %xmm0
mulsd 0x58d1(%rip), %xmm0     # 0xf5b20
movslq 0x7c(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x4366a(%rip), %rsi     # 0x1338ca
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
xorl %ecx, %ecx
cmpl $0x1, 0x30(%r15)
sete %cl
leal 0x1(%rcx), %eax
cmpl $0x1, 0x34(%r15)
cmovnel %ecx, %eax
movdqu 0x38(%r15), %xmm0
movl 0x48(%r15), %edx
xorl %esi, %esi
cmpl $0x1, %edx
sete %sil
pcmpeqd 0x55fc(%rip), %xmm0     # 0xf58a0
movmskps %xmm0, %ecx
shll $0x2, %ecx
movabsq $0x4332322132212110, %r12 # imm = 0x4332322132212110
movq %r12, %rdi
shrq %cl, %rdi
andl $0x7, %edi
addl %eax, %esi
addl %edi, %esi
cmpl %ebp, %esi
movsd (%rsp), %xmm1
jge 0xf031a
xorl %esi, %esi
cmpl $0x1, %edx
sete %sil
movl %eax, %eax
addq %rax, %rsi
shrq %cl, %r12
andl $0x7, %r12d
addq %rsi, %r12
movslq %ebp, %r13
leaq 0x435de(%rip), %r15     # 0x1338ca
movsd (%r14,%r12,8), %xmm0
mulsd %xmm1, %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
movsd (%rsp), %xmm1
incq %r12
cmpq %r13, %r12
jl 0xf02ec
movl $0xa, %edi
movq %rbx, %rsi
callq 0x8440
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq