// File: /workspace/github_c_makefile_star2_O1/PoulinV[P]AxiCLASS/build/../source/lensing.c
// Function: lensing_d3m3
int lensing_d3m3(
                 double * mu,
                 int num_mu,
                 int lmax,
                 double ** d3m3
                 ) {
  double ll;
  int index_mu, l;
  double *fac1, *fac2, *fac3, *fac4;
  ErrorMsg erreur;
  class_alloc(fac1,lmax*sizeof(double),erreur);
  class_alloc(fac2,lmax*sizeof(double),erreur);
  class_alloc(fac3,lmax*sizeof(double),erreur);
  class_alloc(fac4,lmax*sizeof(double),erreur);
  for (l=3;l<lmax;l++) {
    ll = (double) l;
    fac1[l] = sqrt((2*ll+3)*(2*ll+1))*(ll+1)/((ll-2)*(ll+4));
    fac2[l] = 9.0/(ll*(ll+1));
    fac3[l] = sqrt((2*ll+3)/(2*ll-1))*(ll-3)*(ll+3)*(l+1)/((ll-2)*(ll+4)*ll);
    fac4[l] = sqrt(2./(2*ll+3));
  }

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10b8, %rsp           # imm = 0x10B8
movq %rcx, 0xa8(%rsp)
movl %esi, 0x1c(%rsp)
movq %rdi, 0xa0(%rsp)
movl %edx, 0x4(%rsp)
movslq %edx, %r12
shlq $0x3, %r12
movq %r12, %rdi
callq 0x8460
testq %rax, %rax
je 0xc0ed5
movq %rax, %rbp
movq %r12, %rdi
callq 0x8460
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0xc0f18
movq %r12, %rdi
callq 0x8460
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0xc0f5b
movq %r12, %rdi
callq 0x8460
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0xc0ff6
cmpl $0x4, 0x4(%rsp)
jl 0xc0bfb
movl 0x4(%rsp), %ebx
addq $-0x3, %rbx
xorl %r14d, %r14d
xorpd %xmm2, %xmm2
leal 0x3(%r14), %eax
xorps %xmm4, %xmm4
cvtsi2sd %eax, %xmm4
movapd %xmm4, %xmm5
addsd %xmm4, %xmm5
movapd %xmm5, %xmm3
unpcklpd %xmm5, %xmm3            # xmm3 = xmm3[0],xmm5[0]
addpd 0x64c4c(%rip), %xmm3    # 0x1256f0
movapd %xmm3, %xmm0
unpckhpd %xmm3, %xmm0            # xmm0 = xmm0[1],xmm3[1]
mulsd %xmm3, %xmm0
ucomisd %xmm2, %xmm0
movapd %xmm3, 0x50(%rsp)
movsd %xmm4, 0x20(%rsp)
jb 0xc0ac8
sqrtsd %xmm0, %xmm0
jmp 0xc0ae9
movapd %xmm5, 0x40(%rsp)
callq 0x82b0
movapd 0x40(%rsp), %xmm5
movsd 0x20(%rsp), %xmm4
movapd 0x50(%rsp), %xmm3
xorpd %xmm2, %xmm2
leal 0x4(%r14), %eax
xorps %xmm6, %xmm6
cvtsi2sd %rax, %xmm6
mulsd %xmm6, %xmm0
leal 0x1(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
leal 0x7(%r14), %eax
xorps %xmm7, %xmm7
cvtsi2sd %rax, %xmm7
mulsd %xmm1, %xmm7
divsd %xmm7, %xmm0
movsd %xmm0, 0x18(%rbp,%r14,8)
movapd %xmm4, %xmm0
mulsd %xmm6, %xmm0
movsd 0x31bb1(%rip), %xmm1    # 0xf26e0
divsd %xmm0, %xmm1
movq 0x38(%rsp), %rax
movsd %xmm1, 0x18(%rax,%r14,8)
addsd 0x30ca1(%rip), %xmm5    # 0xf17e8
movapd %xmm3, %xmm0
divsd %xmm5, %xmm0
ucomisd %xmm2, %xmm0
jb 0xc0b5b
sqrtsd %xmm0, %xmm0
jmp 0xc0b8e
movsd %xmm6, 0x40(%rsp)
movsd %xmm7, 0x98(%rsp)
callq 0x82b0
movsd 0x98(%rsp), %xmm7
movsd 0x40(%rsp), %xmm6
movsd 0x20(%rsp), %xmm4
movapd 0x50(%rsp), %xmm3
xorpd %xmm2, %xmm2
xorps %xmm1, %xmm1
cvtsi2sd %r14d, %xmm1
mulsd %xmm0, %xmm1
leal 0x6(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm6, %xmm0
mulsd %xmm4, %xmm7
divsd %xmm7, %xmm0
movq 0x30(%rsp), %rax
movsd %xmm0, 0x18(%rax,%r14,8)
movsd 0x31136(%rip), %xmm0    # 0xf1d00
divsd %xmm3, %xmm0
ucomisd %xmm2, %xmm0
jb 0xc0bda
sqrtsd %xmm0, %xmm0
jmp 0xc0be3
callq 0x82b0
xorpd %xmm2, %xmm2
movq 0x28(%rsp), %rax
movsd %xmm0, 0x18(%rax,%r14,8)
incq %r14
cmpq %r14, %rbx
jne 0xc0a81
callq 0x1c5f0
leaq 0xb0(%rsp), %rdi
movl %eax, %esi
callq 0x1c6a0
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
cmpl $0x0, 0x1c(%rsp)
jle 0xc0eac
movl $0x0, 0x50(%rsp)
movabsq $0x100000001, %rbx      # imm = 0x100000001
leaq 0x895a7(%rip), %rax     # 0x14a1f0
addq $0x10, %rax
movq %rax, 0x20(%rsp)
movq %rbp, 0x40(%rsp)
movl $0x20, %edi
callq 0x83b0
movq %rax, %r13
movq %rbx, 0x8(%rax)
movq 0x20(%rsp), %rax
movq %rax, (%r13)
movl $0x78, %edi
callq 0x83b0
movq %rax, %r15
movq %rbx, 0x8(%rax)
leaq 0x8ac47(%rip), %rax     # 0x14b8d0
movq %rax, (%r15)
movq %r15, %rbx
addq $0x10, %rbx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x1d42e
movq %r13, %r14
addq $0x10, %r14
leaq 0x8ac72(%rip), %rax     # 0x14b920
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 0x4(%rsp), %eax
movl %eax, 0x50(%r15)
movq %rbp, 0x58(%r15)
movq 0x38(%rsp), %rax
movq %rax, 0x60(%r15)
movq 0x30(%rsp), %rax
movq %rax, 0x68(%r15)
movq 0x28(%rsp), %rax
movq %rax, 0x70(%r15)
movq %rbx, 0x10(%r13)
movq %r15, 0x18(%r13)
leaq 0x88(%rsp), %rdi
movq %r14, %rsi
callq 0x1d35e
movq %r14, 0x60(%rsp)
movq %r13, 0x68(%rsp)
movq 0x8b28e(%rip), %rax     # 0x14bfb0
cmpb $0x0, (%rax)
je 0xc0d2d
incl 0x8(%r13)
jmp 0xc0d32
lock
incl 0x8(%r13)
movl $0x1, %r15d
lock
xaddl %r15d, 0xd0(%rsp)
movl 0xb0(%rsp), %ecx
testl %ecx, %ecx
je 0xc0dcc
xorl %ebp, %ebp
leal (%r15,%rbp), %eax
xorl %edx, %edx
divl %ecx
movq 0xd8(%rsp), %rbx
imulq $0xb0, %rdx, %r12
leaq (%rbx,%r12), %rdi
addq $0x58, %rdi
movq %rdi, 0x8(%rsp)
callq 0x8080
movl %eax, %r14d
testl %eax, %eax
sete 0x10(%rsp)
je 0xc0d90
leaq 0x8(%rsp), %rdi
callq 0x1d17a
jmp 0xc0db6
addq %r12, %rbx
movq %rbx, %rdi
leaq 0x60(%rsp), %rsi
callq 0xc93e8
leaq 0x8(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %rbx
movq %rbx, %rdi
callq 0x81c0
testl %r14d, %r14d
je 0xc0e4e
incl %ebp
movl 0xb0(%rsp), %ecx
cmpl %ecx, %ebp
jb 0xc0d4f
movl %r15d, %eax
xorl %edx, %edx
divl 0xb0(%rsp)
movq 0xd8(%rsp), %r14
imulq $0xb0, %rdx, %rbx
leaq (%r14,%rbx), %rax
addq $0x58, %rax
movq %rax, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x1d20a
addq %rbx, %r14
movb $0x1, 0x10(%rsp)
movq %r14, %rdi
leaq 0x60(%rsp), %rsi
callq 0xc93e8
leaq 0x8(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %r14
movq %r14, %rdi
callq 0x81c0
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xc0e3d
callq 0x1d2a6
movq 0x40(%rsp), %rbp
movabsq $0x100000001, %rbx      # imm = 0x100000001
jmp 0xc0e6c
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
movabsq $0x100000001, %rbx      # imm = 0x100000001
je 0xc0e67
callq 0x1d2a6
movq 0x40(%rsp), %rbp
movq %r13, %rdi
callq 0x1d2a6
leaq 0x70(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x1dcb8
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xc0e98
callq 0x1d2a6
movl 0x50(%rsp), %eax
incl %eax
movl %eax, 0x50(%rsp)
cmpl 0x1c(%rsp), %eax
jne 0xc0c57
movq 0x70(%rsp), %rbx
movq 0x78(%rsp), %r14
cmpq %r14, %rbx
je 0xc0f9e
movq %rbx, %rdi
callq 0x1c724
testl %eax, %eax
jne 0xc1057
addq $0x10, %rbx
jmp 0xc0eb6
leaq 0x30128(%rip), %rsi     # 0xf1004
leaq 0x67b71(%rip), %rdx     # 0x128a54
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x30135(%rip), %rsi     # 0xf1034
leaq 0x67bc5(%rip), %rdx     # 0x128acb
leaq 0x8b0(%rsp), %rdi
movl $0x6d3, %ecx            # imm = 0x6D3
jmp 0xc1034
leaq 0x300e5(%rip), %rsi     # 0xf1004
leaq 0x67b3f(%rip), %rdx     # 0x128a65
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x300f2(%rip), %rsi     # 0xf1034
leaq 0x67b82(%rip), %rdx     # 0x128acb
leaq 0x8b0(%rsp), %rdi
movl $0x6d4, %ecx            # imm = 0x6D4
jmp 0xc1034
leaq 0x300a2(%rip), %rsi     # 0xf1004
leaq 0x67b01(%rip), %rdx     # 0x128a6a
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x300af(%rip), %rsi     # 0xf1034
leaq 0x67b3f(%rip), %rdx     # 0x128acb
leaq 0x8b0(%rsp), %rdi
movl $0x6d5, %ecx            # imm = 0x6D5
jmp 0xc1034
movq 0x70(%rsp), %rbx
movq 0x78(%rsp), %r14
cmpq %rbx, %r14
je 0xc0fcc
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0xc0fbe
callq 0x1d2a6
addq $0x10, %r15
cmpq %r14, %r15
jne 0xc0fb0
movq %rbx, 0x78(%rsp)
movq %rbp, %rdi
callq 0x8410
movq 0x38(%rsp), %rdi
callq 0x8410
movq 0x30(%rsp), %rdi
callq 0x8410
movq 0x28(%rsp), %rdi
callq 0x8410
xorl %ebx, %ebx
jmp 0xc105c
leaq 0x30007(%rip), %rsi     # 0xf1004
leaq 0x67a77(%rip), %rdx     # 0x128a7b
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x30014(%rip), %rsi     # 0xf1034
leaq 0x67aa4(%rip), %rdx     # 0x128acb
leaq 0x8b0(%rsp), %rdi
movl $0x6d6, %ecx            # imm = 0x6D6
movq %rbx, %r8
xorl %eax, %eax
callq 0x30c2c
movl $0x1, %ebx
movl %ebx, %eax
addq $0x10b8, %rsp           # imm = 0x10B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %ebx
leaq 0x70(%rsp), %rdi
callq 0x1c770
leaq 0xb0(%rsp), %rdi
callq 0x1c7b0
jmp 0xc1043
jmp 0xc107e
movq %rax, %rbx
jmp 0xc10c1
jmp 0xc10b4
movq %rax, %rbx
jmp 0xc10ea
movq %rax, %rbx
jmp 0xc1093
movq %rax, %rbx
movq %r15, %rdi
callq 0x8380
movq %r13, %rdi
callq 0x8380
jmp 0xc10ea
movq %rax, %rbx
jmp 0xc10e2
movq %rax, %rbx
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
jne 0xc10e5
jmp 0xc10ea
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1d17a
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xc10d0
callq 0x1d2a6
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xc10e2
callq 0x1d2a6
movq %r13, %rdi
callq 0x1d2a6
leaq 0x70(%rsp), %rdi
callq 0x1c770
leaq 0xb0(%rsp), %rdi
callq 0x1c7b0
movq %rbx, %rdi
callq 0x8650