// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x2158, %rsp           # imm = 0x2158
movq %rdi, 0x2148(%rsp)
movl %esi, 0x2144(%rsp)
movl %edx, 0x2140(%rsp)
movq %rcx, 0x2138(%rsp)
movslq 0x2140(%rsp), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x2120(%rsp)
cmpq $0x0, 0x2120(%rsp)
jne 0x15aa4a
movslq 0x2140(%rsp), %rax
shlq $0x3, %rax
movl %eax, 0x190c(%rsp)
leaq 0x1100(%rsp), %rdi
movl 0x190c(%rsp), %ecx
leaq 0x77602(%rip), %rsi     # 0x1d2004
leaq 0xaf82d(%rip), %rdx     # 0x20a236
movb $0x0, %al
callq 0x5b9c0
leaq 0x1910(%rsp), %rdi
leaq 0x1100(%rsp), %r8
leaq 0x7760d(%rip), %rsi     # 0x1d2034
leaq 0xaf80d(%rip), %rdx     # 0x20a23b
movl $0x4f6, %ecx            # imm = 0x4F6
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x2154(%rsp)
jmp 0x15af08
movslq 0x2140(%rsp), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x2118(%rsp)
cmpq $0x0, 0x2118(%rsp)
jne 0x15aadf
movslq 0x2140(%rsp), %rax
shlq $0x3, %rax
movl %eax, 0x10fc(%rsp)
leaq 0x8f0(%rsp), %rdi
movl 0x10fc(%rsp), %ecx
leaq 0x7756d(%rip), %rsi     # 0x1d2004
leaq 0xaf7a9(%rip), %rdx     # 0x20a247
movb $0x0, %al
callq 0x5b9c0
leaq 0x1910(%rsp), %rdi
leaq 0x8f0(%rsp), %r8
leaq 0x77578(%rip), %rsi     # 0x1d2034
leaq 0xaf778(%rip), %rdx     # 0x20a23b
movl $0x4f7, %ecx            # imm = 0x4F7
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x2154(%rsp)
jmp 0x15af08
movslq 0x2140(%rsp), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x2110(%rsp)
cmpq $0x0, 0x2110(%rsp)
jne 0x15ab74
movslq 0x2140(%rsp), %rax
shlq $0x3, %rax
movl %eax, 0x8ec(%rsp)
leaq 0xe0(%rsp), %rdi
movl 0x8ec(%rsp), %ecx
leaq 0x774d8(%rip), %rsi     # 0x1d2004
leaq 0xaf719(%rip), %rdx     # 0x20a24c
movb $0x0, %al
callq 0x5b9c0
leaq 0x1910(%rsp), %rdi
leaq 0xe0(%rsp), %r8
leaq 0x774e3(%rip), %rsi     # 0x1d2034
leaq 0xaf6e3(%rip), %rdx     # 0x20a23b
movl $0x4f8, %ecx            # imm = 0x4F8
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x2154(%rsp)
jmp 0x15af08
movl $0x1, 0x2128(%rsp)
movl 0x2128(%rsp), %eax
cmpl 0x2140(%rsp), %eax
jge 0x15acea
cvtsi2sdl 0x2128(%rsp), %xmm0
movsd %xmm0, 0x2130(%rsp)
movsd 0x2130(%rsp), %xmm0
addsd %xmm0, %xmm0
movsd 0x78ade(%rip), %xmm1    # 0x1d3698
addsd %xmm1, %xmm0
movsd 0x2130(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0x77675(%rip), %xmm2    # 0x1d2248
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x82e0
movsd 0x2130(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0x77653(%rip), %xmm2    # 0x1d2248
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd 0x77643(%rip), %xmm1    # 0x1d2248
addsd 0x2130(%rsp), %xmm1
divsd %xmm1, %xmm0
movq 0x2120(%rsp), %rax
movslq 0x2128(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd 0x2130(%rsp), %xmm0
addsd %xmm0, %xmm0
movsd 0x78a5c(%rip), %xmm1    # 0x1d3698
addsd %xmm1, %xmm0
movsd 0x2130(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0x77b7b(%rip), %xmm2    # 0x1d27d0
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x82e0
mulsd 0x2130(%rsp), %xmm0
movsd 0x775d5(%rip), %xmm1    # 0x1d2248
addsd 0x2130(%rsp), %xmm1
divsd %xmm1, %xmm0
movq 0x2118(%rsp), %rax
movslq 0x2128(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd 0x2130(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0x789ee(%rip), %xmm0    # 0x1d3698
addsd %xmm0, %xmm1
movsd 0x77fca(%rip), %xmm0    # 0x1d2c80
divsd %xmm1, %xmm0
callq 0x82e0
movq 0x2110(%rsp), %rax
movslq 0x2128(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x2128(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2128(%rsp)
jmp 0x15ab7f
callq 0x2edc0
movl %eax, %esi
leaq 0xa0(%rsp), %rdi
callq 0x2ef50
leaq 0x88(%rsp), %rdi
callq 0x2f070
movl $0x0, 0x212c(%rsp)
movl 0x212c(%rsp), %eax
cmpl 0x2144(%rsp), %eax
jge 0x15adfe
movq 0x2138(%rsp), %rax
movq %rax, 0x40(%rsp)
movl 0x212c(%rsp), %eax
movl %eax, 0x48(%rsp)
movq 0x2148(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0x2140(%rsp), %eax
movl %eax, 0x58(%rsp)
movq 0x2120(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x2118(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x2110(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x160ca0
jmp 0x15ad9a
leaq 0x88(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x2f080
jmp 0x15adae
leaq 0x78(%rsp), %rdi
callq 0x2f0b0
movl 0x212c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x212c(%rsp)
jmp 0x15ad16
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0x15aeec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x2f0b0
jmp 0x15aeec
leaq 0x88(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
callq 0x2f0c0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x2f0f0
movq %rax, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x2f120
testb $0x1, %al
jne 0x15ae3e
jmp 0x15ae89
leaq 0x20(%rsp), %rdi
callq 0x2f160
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x2f170
movl %eax, 0x8(%rsp)
jmp 0x15ae5d
movl 0x8(%rsp), %eax
cmpl $0x0, %eax
je 0x15ae7b
movl $0x1, 0x2154(%rsp)
movl $0x1, 0xc(%rsp)
jmp 0x15aed0
jmp 0x15ae7d
leaq 0x20(%rsp), %rdi
callq 0x2f1f0
jmp 0x15ae29
leaq 0x88(%rsp), %rdi
callq 0x2f210
movq 0x2120(%rsp), %rdi
callq 0x8420
movq 0x2118(%rsp), %rdi
callq 0x8420
movq 0x2110(%rsp), %rdi
callq 0x8420
movl $0x0, 0x2154(%rsp)
movl $0x1, 0xc(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x2f230
leaq 0xa0(%rsp), %rdi
callq 0x2f290
jmp 0x15af08
leaq 0x88(%rsp), %rdi
callq 0x2f230
leaq 0xa0(%rsp), %rdi
callq 0x2f290
jmp 0x15af17
movl 0x2154(%rsp), %eax
addq $0x2158, %rsp           # imm = 0x2158
retq
movq 0x38(%rsp), %rdi
callq 0x8640
nopw %cs:(%rax,%rax)