// File: /workspace/github_c_makefile_star2_O1/PoulinV[P]AxiCLASS/build/../source/lensing.c
// Function: lensing_d4m2
int lensing_d4m2(
                 double * mu,
                 int num_mu,
                 int lmax,
                 double ** d4m2
                 ) {
  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=4;l<lmax;l++) {
    ll = (double) l;
    fac1[l] = sqrt((2*ll+3)*(2*ll+1)/((ll-3)*(ll+5)*(ll-1)*(ll+3))) * (ll+1.);
    fac2[l] = 8./(ll*(ll+1));
    fac3[l] = sqrt((2*ll+3)*(ll-4)*(ll+4)*(ll-2)*(ll+2)/((2*ll-1)*(ll-3)*(ll+5)*(ll-1)*(ll+3)))*(ll+1)/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);
      d4m2[index_mu][0]=0;
      d4m2[index_mu][1]=0;
      d4m2[index_mu][2]=0;
      dlm1=0.; /*l=3*/
      d4m2[index_mu][3]=0;
      dl=sqrt(126.)*(1+mu[index_mu])*(1-mu[index_mu])*(1-mu[index_mu])*(1-mu[index_mu])/16.; /*l=4*/
      d4m2[index_mu][4] = dl * sqrt(2./9.);
      for (l=4;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;
        d4m2[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 $0x1108, %rsp           # imm = 0x1108
movq %rcx, 0xb8(%rsp)
movl %esi, 0x2c(%rsp)
movq %rdi, 0xb0(%rsp)
movl %edx, 0xc(%rsp)
movslq %edx, %r12
shlq $0x3, %r12
movq %r12, %rdi
callq 0x8460
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0xbf8fe
movq %r12, %rdi
callq 0x8460
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0xbf941
movq %r12, %rdi
callq 0x8460
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0xbf984
movq %r12, %rdi
callq 0x8460
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0xbfa21
cmpl $0x5, 0xc(%rsp)
jl 0xbf631
movl 0xc(%rsp), %ebx
movl $0x4, %r14d
movl $0x5, %ebp
xorpd %xmm5, %xmm5
xorps %xmm6, %xmm6
cvtsi2sd %r14d, %xmm6
movapd %xmm6, %xmm8
addsd %xmm6, %xmm8
movapd %xmm8, %xmm7
unpcklpd %xmm8, %xmm7            # xmm7 = xmm7[0],xmm8[0]
addpd 0x662db(%rip), %xmm7    # 0x1256f0
movapd %xmm7, %xmm0
unpckhpd %xmm7, %xmm0            # xmm0 = xmm0[1],xmm7[1]
mulsd %xmm7, %xmm0
movd %r14d, %xmm1
pshufd $0x50, %xmm1, %xmm9     # xmm9 = xmm1[0,0,1,1]
movdqa %xmm9, %xmm1
paddd 0x662e7(%rip), %xmm1    # 0x125720
cvtdq2pd %xmm1, %xmm11
movdqa %xmm9, %xmm10
paddd 0x662e4(%rip), %xmm10   # 0x125730
pxor %xmm3, %xmm3
punpckldq %xmm3, %xmm10   # xmm10 = xmm10[0],xmm3[0],xmm10[1],xmm3[1]
movdqa 0x35493(%rip), %xmm4    # 0xf48f0
por %xmm4, %xmm10
subpd %xmm4, %xmm10
movapd %xmm11, %xmm1
movdqa %xmm9, %xmm2
paddd 0x66287(%rip), %xmm2    # 0x125700
cvtdq2pd %xmm2, %xmm12
mulpd %xmm10, %xmm1
mulpd %xmm12, %xmm1
paddd 0x6627f(%rip), %xmm9    # 0x125710
punpckldq %xmm3, %xmm9    # xmm9 = xmm9[0],xmm3[0],xmm9[1],xmm3[1]
por %xmm4, %xmm9
subpd %xmm4, %xmm9
mulpd %xmm9, %xmm1
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
divsd %xmm1, %xmm0
addsd 0x32332(%rip), %xmm8    # 0xf17e8
ucomisd %xmm5, %xmm0
movsd %xmm6, 0x10(%rsp)
movapd %xmm7, 0x80(%rsp)
jb 0xbf4d1
sqrtsd %xmm0, %xmm0
jmp 0xbf54d
movapd %xmm8, 0xa0(%rsp)
movapd %xmm9, 0xf0(%rsp)
movapd %xmm10, 0xe0(%rsp)
movapd %xmm11, 0xd0(%rsp)
movapd %xmm12, 0xc0(%rsp)
callq 0x82b0
movapd 0xc0(%rsp), %xmm12
movapd 0xd0(%rsp), %xmm11
movapd 0xe0(%rsp), %xmm10
movapd 0xf0(%rsp), %xmm9
movapd 0xa0(%rsp), %xmm8
movapd 0x80(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
movl %ebp, %eax
xorps %xmm3, %xmm3
cvtsi2sd %rax, %xmm3
movapd %xmm6, %xmm1
mulsd %xmm3, %xmm1
movsd 0x34ef9(%rip), %xmm2    # 0xf4460
divsd %xmm1, %xmm2
mulsd %xmm3, %xmm0
movq 0x48(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
movq 0x40(%rsp), %rax
movsd %xmm2, (%rax,%r14,8)
movapd %xmm7, %xmm0
unpcklpd %xmm8, %xmm0            # xmm0 = xmm0[0],xmm8[0]
mulpd %xmm11, %xmm0
mulpd %xmm10, %xmm0
mulpd %xmm12, %xmm0
mulpd %xmm9, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
divsd %xmm1, %xmm0
ucomisd %xmm5, %xmm0
jb 0xbf5ba
sqrtsd %xmm0, %xmm0
jmp 0xbf5e4
movsd %xmm3, 0xa0(%rsp)
callq 0x82b0
movsd 0xa0(%rsp), %xmm3
movapd 0x80(%rsp), %xmm7
movsd 0x10(%rsp), %xmm6
xorpd %xmm5, %xmm5
mulsd %xmm3, %xmm0
divsd %xmm6, %xmm0
movq 0x38(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
movsd 0x32701(%rip), %xmm0    # 0xf1d00
divsd %xmm7, %xmm0
ucomisd %xmm5, %xmm0
jb 0xbf60f
sqrtsd %xmm0, %xmm0
jmp 0xbf618
callq 0x82b0
xorpd %xmm5, %xmm5
movq 0x30(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
incl %ebp
cmpq %r14, %rbx
jne 0xbf3f1
callq 0x1c5f0
leaq 0x100(%rsp), %rdi
movl %eax, %esi
callq 0x1c6a0
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
cmpl $0x0, 0x2c(%rsp)
jle 0xbf8d5
xorl %ebp, %ebp
movabsq $0x100000001, %rbx      # imm = 0x100000001
leaq 0x8ab7a(%rip), %rax     # 0x14a1f0
addq $0x10, %rax
movq %rax, 0x80(%rsp)
movl $0x20, %edi
callq 0x83b0
movq %rax, %r13
movq %rbx, 0x8(%rax)
movq 0x80(%rsp), %rax
movq %rax, (%r13)
movl $0x78, %edi
callq 0x83b0
movq %rax, %r15
movq %rbx, 0x8(%rax)
leaq 0x8c3d9(%rip), %rax     # 0x14ba90
movq %rax, (%r15)
movq %r15, %rbx
addq $0x10, %rbx
movq %rbx, %rdi
leaq 0x18(%rsp), %rsi
callq 0x1d42e
movq %r13, %r14
addq $0x10, %r14
leaq 0x8c404(%rip), %rax     # 0x14bae0
movq %rax, 0x10(%r15)
movq 0xb8(%rsp), %rax
movq %rax, 0x38(%r15)
movl %ebp, 0x40(%r15)
movq 0xb0(%rsp), %rax
movq %rax, 0x48(%r15)
movl 0xc(%rsp), %eax
movl %eax, 0x50(%r15)
movq 0x48(%rsp), %rax
movq %rax, 0x58(%r15)
movq 0x40(%rsp), %rax
movq %rax, 0x60(%r15)
movq 0x38(%rsp), %rax
movq %rax, 0x68(%r15)
movq 0x30(%rsp), %rax
movq %rax, 0x70(%r15)
movq %rbx, 0x10(%r13)
movq %r15, 0x18(%r13)
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x1d35e
movq %r14, 0x50(%rsp)
movq %r13, 0x58(%rsp)
movq 0x8c85f(%rip), %rax     # 0x14bfb0
cmpb $0x0, (%rax)
movl %ebp, 0x10(%rsp)
je 0xbf760
incl 0x8(%r13)
jmp 0xbf765
lock
incl 0x8(%r13)
movl $0x1, %r15d
lock
xaddl %r15d, 0x120(%rsp)
movl 0x100(%rsp), %ecx
testl %ecx, %ecx
je 0xbf7ff
xorl %ebp, %ebp
leal (%r15,%rbp), %eax
xorl %edx, %edx
divl %ecx
movq 0x128(%rsp), %rbx
imulq $0xb0, %rdx, %r12
leaq (%rbx,%r12), %rdi
addq $0x58, %rdi
movq %rdi, 0x18(%rsp)
callq 0x8080
movl %eax, %r14d
testl %eax, %eax
sete 0x20(%rsp)
je 0xbf7c3
leaq 0x18(%rsp), %rdi
callq 0x1d17a
jmp 0xbf7e9
addq %r12, %rbx
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
callq 0xca1de
leaq 0x18(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %rbx
movq %rbx, %rdi
callq 0x81c0
testl %r14d, %r14d
je 0xbf880
incl %ebp
movl 0x100(%rsp), %ecx
cmpl %ecx, %ebp
jb 0xbf782
movl %r15d, %eax
xorl %edx, %edx
divl 0x100(%rsp)
movq 0x128(%rsp), %r14
imulq $0xb0, %rdx, %rbx
leaq (%r14,%rbx), %rax
addq $0x58, %rax
movq %rax, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x1d20a
addq %rbx, %r14
movb $0x1, 0x20(%rsp)
movq %r14, %rdi
leaq 0x50(%rsp), %rsi
callq 0xca1de
leaq 0x18(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %r14
movq %r14, %rdi
callq 0x81c0
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
movl 0x10(%rsp), %ebp
je 0xbf874
callq 0x1d2a6
movabsq $0x100000001, %rbx      # imm = 0x100000001
jmp 0xbf89d
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
movl 0x10(%rsp), %ebp
movabsq $0x100000001, %rbx      # imm = 0x100000001
je 0xbf89d
callq 0x1d2a6
movq %r13, %rdi
callq 0x1d2a6
leaq 0x60(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x1dcb8
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xbf8c9
callq 0x1d2a6
incl %ebp
cmpl 0x2c(%rsp), %ebp
jne 0xbf682
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %r14
cmpq %r14, %rbx
je 0xbf9c7
movq %rbx, %rdi
callq 0x1c724
testl %eax, %eax
jne 0xbfa82
addq $0x10, %rbx
jmp 0xbf8df
leaq 0x316ff(%rip), %rsi     # 0xf1004
leaq 0x69148(%rip), %rdx     # 0x128a54
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x3170c(%rip), %rsi     # 0xf1034
leaq 0x691b5(%rip), %rdx     # 0x128ae4
leaq 0x900(%rsp), %rdi
movl $0x74c, %ecx            # imm = 0x74C
jmp 0xbfa5f
leaq 0x316bc(%rip), %rsi     # 0xf1004
leaq 0x69116(%rip), %rdx     # 0x128a65
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x316c9(%rip), %rsi     # 0xf1034
leaq 0x69172(%rip), %rdx     # 0x128ae4
leaq 0x900(%rsp), %rdi
movl $0x74d, %ecx            # imm = 0x74D
jmp 0xbfa5f
leaq 0x31679(%rip), %rsi     # 0xf1004
leaq 0x690d8(%rip), %rdx     # 0x128a6a
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x31686(%rip), %rsi     # 0xf1034
leaq 0x6912f(%rip), %rdx     # 0x128ae4
leaq 0x900(%rsp), %rdi
movl $0x74e, %ecx            # imm = 0x74E
jmp 0xbfa5f
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %r14
cmpq %rbx, %r14
je 0xbf9f5
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0xbf9e7
callq 0x1d2a6
addq $0x10, %r15
cmpq %r14, %r15
jne 0xbf9d9
movq %rbx, 0x68(%rsp)
movq 0x48(%rsp), %rdi
callq 0x8410
movq 0x40(%rsp), %rdi
callq 0x8410
movq 0x38(%rsp), %rdi
callq 0x8410
movq 0x30(%rsp), %rdi
callq 0x8410
xorl %ebx, %ebx
jmp 0xbfa87
leaq 0x315dc(%rip), %rsi     # 0xf1004
leaq 0x6904c(%rip), %rdx     # 0x128a7b
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c2c
leaq 0x315e9(%rip), %rsi     # 0xf1034
leaq 0x69092(%rip), %rdx     # 0x128ae4
leaq 0x900(%rsp), %rdi
movl $0x74f, %ecx            # imm = 0x74F
movq %rbx, %r8
xorl %eax, %eax
callq 0x30c2c
movl $0x1, %ebx
movl %ebx, %eax
addq $0x1108, %rsp           # imm = 0x1108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %ebx
leaq 0x60(%rsp), %rdi
callq 0x1c770
leaq 0x100(%rsp), %rdi
callq 0x1c7b0
jmp 0xbfa6e
jmp 0xbfaa9
movq %rax, %rbx
jmp 0xbfaec
jmp 0xbfadf
movq %rax, %rbx
jmp 0xbfb15
movq %rax, %rbx
jmp 0xbfabe
movq %rax, %rbx
movq %r15, %rdi
callq 0x8380
movq %r13, %rdi
callq 0x8380
jmp 0xbfb15
movq %rax, %rbx
jmp 0xbfb0d
movq %rax, %rbx
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
jne 0xbfb10
jmp 0xbfb15
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1d17a
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0xbfafb
callq 0x1d2a6
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xbfb0d
callq 0x1d2a6
movq %r13, %rdi
callq 0x1d2a6
leaq 0x60(%rsp), %rdi
callq 0x1c770
leaq 0x100(%rsp), %rdi
callq 0x1c7b0
movq %rbx, %rdi
callq 0x8650