// File: /workspace/github_c_makefile_star2_O1/PoulinV[P]AxiCLASS/build/../source/lensing.c
// Function: lensing_d00
int lensing_d00(
                double * mu,
                int num_mu,
                int lmax,
                double ** d00
                ) {
  double ll;
  int index_mu, l;
  double *fac1, *fac2, *fac3;
  ErrorMsg erreur;

  class_alloc(fac1,lmax*sizeof(double),erreur);
  class_alloc(fac2,lmax*sizeof(double),erreur);
  class_alloc(fac3,lmax*sizeof(double),erreur);
  for (l=1; l<lmax; l++) {
    ll = (double) l;
    fac1[l] = sqrt((2*ll+3)/(2*ll+1))*(2*ll+1)/(ll+1);
    fac2[l] = sqrt((2*ll+3)/(2*ll-1))*ll/(ll+1);
    fac3[l] = sqrt(2./(2*ll+3));
  }

  class_setup_parallel();
  for (index_mu=0;index_mu<num_mu;index_mu++) {
    class_run_parallel(=,
      double declare_list_of_variables_inside_parallel_region(dlm1, dl, dlp1);
      int l;
      dlm1=1.0/sqrt(2.); /* l=0 */
      d00[index_mu][0]=dlm1*sqrt(2.);
      dl=mu[index_mu] * sqrt(3./2.); /*l=1*/
      d00[index_mu][1]=dl*sqrt(2./3.);
      for (l=1;l<lmax;l++){
        /* sqrt((2l+1)/2)*d00 recurrence, supposed to be more stable */
        dlp1 = fac1[l]*mu[index_mu]*dl - fac2[l]*dlm1;
        d00[index_mu][l+1] = dlp1 * fac3[l];
        dlm1 = dl;
        dl = dlp1;
      }
      return _SUCCESS_;
    );
  }
  class_finish_parallel();
  free(fac1); free(fac2); free(fac3);
  return _SUCCESS_;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10c8, %rsp           # imm = 0x10C8
movq %rcx, 0xa8(%rsp)
movl %esi, 0x24(%rsp)
movq %rdi, 0xa0(%rsp)
movl %edx, 0xc(%rsp)
movslq %edx, %r15
shlq $0x3, %r15
movq %r15, %rdi
callq 0x8460
testq %rax, %rax
je 0xbcda8
movq %rax, %r13
movq %r15, %rdi
callq 0x8460
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0xbcdeb
movq %r15, %rdi
callq 0x8460
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0xbce7c
cmpl $0x2, 0xc(%rsp)
jl 0xbcacc
movl 0xc(%rsp), %ebx
movl $0x1, %r14d
movl $0x2, %ebp
xorpd %xmm1, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movsd %xmm0, 0x28(%rsp)
movapd %xmm0, %xmm3
addsd %xmm0, %xmm3
movapd %xmm3, %xmm2
unpcklpd %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0]
addpd 0x68d12(%rip), %xmm2    # 0x1256f0
movapd %xmm2, %xmm4
unpckhpd %xmm2, %xmm4            # xmm4 = xmm4[1],xmm2[1]
movapd %xmm2, %xmm0
divsd %xmm4, %xmm0
ucomisd %xmm1, %xmm0
movapd %xmm2, 0x50(%rsp)
jb 0xbca00
sqrtsd %xmm0, %xmm0
jmp 0xbca2d
movapd %xmm3, 0x40(%rsp)
movapd %xmm4, 0xb0(%rsp)
callq 0x82b0
movapd 0xb0(%rsp), %xmm4
movapd 0x40(%rsp), %xmm3
movapd 0x50(%rsp), %xmm2
xorpd %xmm1, %xmm1
movl %ebp, %eax
xorps %xmm5, %xmm5
cvtsi2sd %rax, %xmm5
mulsd %xmm0, %xmm4
divsd %xmm5, %xmm4
movsd %xmm4, (%r13,%r14,8)
addsd 0x34d9a(%rip), %xmm3    # 0xf17e8
movapd %xmm2, %xmm0
divsd %xmm3, %xmm0
ucomisd %xmm1, %xmm0
jb 0xbca62
sqrtsd %xmm0, %xmm0
jmp 0xbca7d
movsd %xmm5, 0x40(%rsp)
callq 0x82b0
movsd 0x40(%rsp), %xmm5
movapd 0x50(%rsp), %xmm2
xorpd %xmm1, %xmm1
mulsd 0x28(%rsp), %xmm0
divsd %xmm5, %xmm0
movq 0x38(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
movsd 0x35266(%rip), %xmm0    # 0xf1d00
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0xbcaaa
sqrtsd %xmm0, %xmm0
jmp 0xbcab3
callq 0x82b0
xorpd %xmm1, %xmm1
movq 0x30(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
incl %ebp
cmpq %r14, %rbx
jne 0xbc9b8
callq 0x1c5f0
leaq 0xc0(%rsp), %rdi
movl %eax, %esi
callq 0x1c6a0
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
cmpl $0x0, 0x24(%rsp)
jle 0xbcd7f
movl $0x0, 0x50(%rsp)
movabsq $0x100000001, %rbx      # imm = 0x100000001
leaq 0x8d6d6(%rip), %rax     # 0x14a1f0
addq $0x10, %rax
movq %rax, 0x28(%rsp)
movq %r13, 0x40(%rsp)
movl $0x20, %edi
callq 0x83b0
movq %rax, %r12
movq %rbx, 0x8(%rax)
movq 0x28(%rsp), %rax
movq %rax, (%r12)
movl $0x70, %edi
callq 0x83b0
movq %rax, %r15
movq %rbx, 0x8(%rax)
leaq 0x8e676(%rip), %rax     # 0x14b1d0
movq %rax, (%r15)
movq %r15, %rbx
addq $0x10, %rbx
movq %rbx, %rdi
leaq 0x10(%rsp), %rsi
callq 0x1d42e
movq %r12, %r14
addq $0x10, %r14
leaq 0x8e6a1(%rip), %rax     # 0x14b220
movq %rax, 0x10(%r15)
movq 0xa8(%rsp), %rax
movq %rax, 0x38(%r15)
movl 0x50(%rsp), %eax
movl %eax, 0x40(%r15)
movq 0xa0(%rsp), %rax
movq %rax, 0x48(%r15)
movl 0xc(%rsp), %eax
movl %eax, 0x50(%r15)
movq %r13, 0x58(%r15)
movq 0x38(%rsp), %rax
movq %rax, 0x60(%r15)
movq 0x30(%rsp), %rax
movq %rax, 0x68(%r15)
movq %rbx, 0x10(%r12)
movq %r15, 0x18(%r12)
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x1d35e
movq %r14, 0x60(%rsp)
movq %r12, 0x68(%rsp)
movq 0x8f3c4(%rip), %rax     # 0x14bfb0
cmpb $0x0, (%rax)
je 0xbcbf8
incl 0x8(%r12)
jmp 0xbcbfe
lock
incl 0x8(%r12)
movl $0x1, %r15d
lock
xaddl %r15d, 0xe0(%rsp)
movl 0xc0(%rsp), %ecx
testl %ecx, %ecx
je 0xbcc9f
xorl %r13d, %r13d
leal (%r15,%r13), %eax
xorl %edx, %edx
divl %ecx
movq 0xe8(%rsp), %rbx
imulq $0xb0, %rdx, %rbp
leaq (%rbx,%rbp), %rdi
addq $0x58, %rdi
movq %rdi, 0x10(%rsp)
callq 0x8080
movl %eax, %r14d
testl %eax, %eax
sete 0x18(%rsp)
je 0xbcc61
leaq 0x10(%rsp), %rdi
callq 0x1d17a
jmp 0xbcc87
addq %rbp, %rbx
movq %rbx, %rdi
leaq 0x60(%rsp), %rsi
callq 0xc5bfa
leaq 0x10(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %rbx
movq %rbx, %rdi
callq 0x81c0
testl %r14d, %r14d
je 0xbcd21
incl %r13d
movl 0xc0(%rsp), %ecx
cmpl %ecx, %r13d
jb 0xbcc20
movl %r15d, %eax
xorl %edx, %edx
divl 0xc0(%rsp)
movq 0xe8(%rsp), %r14
imulq $0xb0, %rdx, %rbx
leaq (%r14,%rbx), %rax
addq $0x58, %rax
movq %rax, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x1d20a
addq %rbx, %r14
movb $0x1, 0x18(%rsp)
movq %r14, %rdi
leaq 0x60(%rsp), %rsi
callq 0xc5bfa
leaq 0x10(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %r14
movq %r14, %rdi
callq 0x81c0
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xbcd10
callq 0x1d2a6
movq 0x40(%rsp), %r13
movabsq $0x100000001, %rbx      # imm = 0x100000001
jmp 0xbcd3f
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
movabsq $0x100000001, %rbx      # imm = 0x100000001
je 0xbcd3a
callq 0x1d2a6
movq 0x40(%rsp), %r13
movq %r12, %rdi
callq 0x1d2a6
leaq 0x70(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x1dcb8
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xbcd6b
callq 0x1d2a6
movl 0x50(%rsp), %eax
incl %eax
movl %eax, 0x50(%rsp)
cmpl 0x24(%rsp), %eax
jne 0xbcb28
movq 0x70(%rsp), %rbx
movq 0x78(%rsp), %r14
cmpq %r14, %rbx
je 0xbce2e
movq %rbx, %rdi
callq 0x1c724
testl %eax, %eax
jne 0xbcecb
addq $0x10, %rbx
jmp 0xbcd89
leaq 0x34255(%rip), %rsi     # 0xf1004
leaq 0x6bc9e(%rip), %rdx     # 0x128a54
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x34262(%rip), %rsi     # 0xf1034
leaq 0x6bc80(%rip), %rdx     # 0x128a59
leaq 0x8c0(%rsp), %rdi
movl $0x4f6, %ecx            # imm = 0x4F6
jmp 0xbceba
leaq 0x34212(%rip), %rsi     # 0xf1004
leaq 0x6bc6c(%rip), %rdx     # 0x128a65
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x3421f(%rip), %rsi     # 0xf1034
leaq 0x6bc3d(%rip), %rdx     # 0x128a59
leaq 0x8c0(%rsp), %rdi
movl $0x4f7, %ecx            # imm = 0x4F7
jmp 0xbceba
movq 0x70(%rsp), %rbx
movq 0x78(%rsp), %r14
cmpq %rbx, %r14
je 0xbce5c
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0xbce4e
callq 0x1d2a6
addq $0x10, %r15
cmpq %r14, %r15
jne 0xbce40
movq %rbx, 0x78(%rsp)
movq %r13, %rdi
callq 0x8410
movq 0x38(%rsp), %rdi
callq 0x8410
movq 0x30(%rsp), %rdi
callq 0x8410
xorl %ebx, %ebx
jmp 0xbced0
leaq 0x34181(%rip), %rsi     # 0xf1004
leaq 0x6bbe0(%rip), %rdx     # 0x128a6a
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x3418e(%rip), %rsi     # 0xf1034
leaq 0x6bbac(%rip), %rdx     # 0x128a59
leaq 0x8c0(%rsp), %rdi
movl $0x4f8, %ecx            # imm = 0x4F8
movq %rbx, %r8
xorl %eax, %eax
callq 0x30c2c
movl $0x1, %ebx
jmp 0xbcee7
movl $0x1, %ebx
leaq 0x70(%rsp), %rdi
callq 0x1c770
leaq 0xc0(%rsp), %rdi
callq 0x1c7b0
movl %ebx, %eax
addq $0x10c8, %rsp           # imm = 0x10C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xbcf04
movq %rax, %rbx
jmp 0xbcf47
jmp 0xbcf3a
movq %rax, %rbx
jmp 0xbcf70
movq %rax, %rbx
jmp 0xbcf19
movq %rax, %rbx
movq %r15, %rdi
callq 0x8380
movq %r12, %rdi
callq 0x8380
jmp 0xbcf70
movq %rax, %rbx
jmp 0xbcf68
movq %rax, %rbx
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
jne 0xbcf6b
jmp 0xbcf70
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1d17a
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xbcf56
callq 0x1d2a6
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xbcf68
callq 0x1d2a6
movq %r12, %rdi
callq 0x1d2a6
leaq 0x70(%rsp), %rdi
callq 0x1c770
leaq 0xc0(%rsp), %rdi
callq 0x1c7b0
movq %rbx, %rdi
callq 0x8650