// File: /workspace/github_c_makefile_star2_O3/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 0x167d(%rip), %xmm1     # 0xee260
addsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movsd 0x20dd(%rip), %xmm0     # 0xeecd0
movsd %xmm1, 0x10(%rsp)
mulsd %xmm1, %xmm0
divsd 0x43d3(%rip), %xmm0     # 0xf0fd8
movsd %xmm0, (%rsp)
movl $0x20, %edi
movq %rcx, %rsi
callq 0x8440
cvttsd2si 0x8(%rsp), %edx
leaq 0x44013(%rip), %rsi     # 0x130c37
movq %rbx, %rdi
xorl %eax, %eax
callq 0x84e0
movl 0x40c(%r13), %eax
testl %eax, %eax
jne 0xeccae
movq %r13, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movl %ebp, 0x8(%rsp)
testl %ebp, %ebp
movsd (%rsp), %xmm1
jle 0xecc8d
movl 0x8(%rsp), %r12d
xorl %r13d, %r13d
leaq 0x43c9b(%rip), %rbp     # 0x1308fa
movsd (%r14,%r13,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 %r13
cmpq %r13, %r12
jne 0xecc5f
movl $0xa, %edi
movq %rbx, %rsi
callq 0x8440
movq 0x18(%rsp), %rax
movl 0x40c(%rax), %eax
movl 0x8(%rsp), %ebp
movq 0x20(%rsp), %r12
cmpl $0x1, %eax
jne 0xecf70
cmpl $0x1, 0x30(%r15)
jne 0xeccfb
movsd 0x18(%r12), %xmm0
mulsd 0x5e83(%rip), %xmm0     # 0xf2b50
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x64(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43c13(%rip), %rsi     # 0x1308fa
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x34(%r15)
jne 0xecd3f
movsd 0x18(%r12), %xmm0
mulsd 0x5e3f(%rip), %xmm0     # 0xf2b50
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x68(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43bcf(%rip), %rsi     # 0x1308fa
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x3c(%r15)
jne 0xecd83
movsd 0x18(%r12), %xmm0
mulsd 0x5dfb(%rip), %xmm0     # 0xf2b50
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x70(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43b8b(%rip), %rsi     # 0x1308fa
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x38(%r15)
jne 0xecdc7
movsd 0x18(%r12), %xmm0
mulsd 0x5db7(%rip), %xmm0     # 0xf2b50
mulsd %xmm0, %xmm0
mulsd (%rsp), %xmm0
movslq 0x6c(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43b47(%rip), %rsi     # 0x1308fa
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x40(%r15)
jne 0xecdfe
movsd 0x10(%rsp), %xmm0
mulsd (%rsp), %xmm0
movslq 0x74(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43b10(%rip), %rsi     # 0x1308fa
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x44(%r15)
jne 0xece61
xorpd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movapd %xmm1, %xmm0
jb 0xece1f
sqrtsd %xmm0, %xmm0
jmp 0xece24
callq 0x82b0
movsd (%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd 0x18(%r12), %xmm0
mulsd 0x5d14(%rip), %xmm0     # 0xf2b50
movslq 0x78(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43aad(%rip), %rsi     # 0x1308fa
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x48(%r15)
jne 0xece82
xorpd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movapd %xmm1, %xmm0
jb 0xece86
sqrtsd %xmm0, %xmm0
jmp 0xece8b
xorl %eax, %eax
jmp 0xeced0
callq 0x82b0
movsd (%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd 0x18(%r12), %xmm0
mulsd 0x5cad(%rip), %xmm0     # 0xf2b50
movslq 0x7c(%r15), %rax
mulsd (%r14,%rax,8), %xmm0
leaq 0x43a46(%rip), %rsi     # 0x1308fa
movq %rbx, %rdi
movl $0x18, %edx
movl $0xc, %ecx
movb $0x1, %al
callq 0x84e0
cmpl $0x1, 0x48(%r15)
sete %al
xorl %ecx, %ecx
cmpl $0x1, 0x30(%r15)
sete %cl
leal 0x1(%rcx), %edx
cmpl $0x1, 0x34(%r15)
cmovnel %ecx, %edx
movdqu 0x38(%r15), %xmm0
movzbl %al, %eax
pcmpeqd 0x59ba(%rip), %xmm0     # 0xf28b0
movmskps %xmm0, %ecx
shll $0x2, %ecx
movabsq $0x4332322132212110, %r12 # imm = 0x4332322132212110
movq %r12, %rsi
shrq %cl, %rsi
andl $0x7, %esi
addl %eax, %esi
addl %edx, %esi
cmpl %ebp, %esi
movsd (%rsp), %xmm1
jge 0xecf63
movl %edx, %edx
addq %rdx, %rax
shrq %cl, %r12
andl $0x7, %r12d
addq %rax, %r12
movl %ebp, %r13d
leaq 0x439c5(%rip), %r15     # 0x1308fa
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
jb 0xecf35
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