// File: /workspace/github_c_makefile_star2_O3/PoulinV[P]AxiCLASS/build/../source/lensing.c
// Function: lensing_lensed_cl_ee_bb
int lensing_lensed_cl_ee_bb(
                            double *ksip,
                            double *ksim,
                            double **d22,
                            double **d2m2,
                            double *w8,
                            int nmu,
                            struct lensing * ple
                            ) {

  int index_l;

  class_setup_parallel();
  /** Integration by Gauss-Legendre quadrature. **/
  for (index_l=0; index_l < ple->l_size; index_l++){
    class_run_parallel(=,
      double clp;
      double clm;
      int imu;
      clp=0; clm=0;
      for (imu=0;imu<nmu;imu++) {
        clp += ksip[imu]*d22[imu][(int)ple->l[index_l]]*w8[imu]; /* loop could be optimized */
        clm += ksim[imu]*d2m2[imu][(int)ple->l[index_l]]*w8[imu]; /* loop could be optimized */
      }
      ple->cl_lens[index_l*ple->lt_size+ple->index_lt_ee]=(clp+clm)*_PI_;
      ple->cl_lens[index_l*ple->lt_size+ple->index_lt_bb]=(clp-clm)*_PI_;
      return _SUCCESS_;
    );
  }
  class_finish_parallel();

  return _SUCCESS_;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %r9d, 0x1c(%rsp)
movq %r8, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdi, 0x60(%rsp)
movq 0x100(%rsp), %rbx
callq 0x1c686
leaq 0x88(%rsp), %rdi
movl %eax, %esi
callq 0x1c736
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
cmpl $0x0, 0x60(%rbx)
jle 0xbf77d
xorl %r15d, %r15d
movabsq $0x100000001, %rbx      # imm = 0x100000001
leaq 0x87d41(%rip), %rax     # 0x147240
addq $0x10, %rax
movq %rax, 0x58(%rsp)
movl $0x20, %edi
callq 0x83b0
movq %rax, %rbp
movq %rbx, 0x8(%rax)
movq 0x58(%rsp), %rax
movq %rax, (%rbp)
movl $0x78, %edi
callq 0x83b0
movq %rax, %r12
movq %rbx, 0x8(%rax)
leaq 0x88bd6(%rip), %rax     # 0x148110
movq %rax, (%r12)
movq %r12, %r13
addq $0x10, %r13
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x1d4aa
movq %rbp, %rbx
addq $0x10, %rbx
leaq 0x88c00(%rip), %rax     # 0x148160
movq %rax, 0x10(%r12)
movl 0x1c(%rsp), %eax
movl %eax, 0x38(%r12)
movq 0x60(%rsp), %rax
movq %rax, 0x40(%r12)
movq 0x70(%rsp), %rax
movq %rax, 0x48(%r12)
movq 0x100(%rsp), %rax
movq %rax, 0x50(%r12)
movl %r15d, 0x58(%r12)
movq 0x80(%rsp), %rax
movq %rax, 0x60(%r12)
movq 0x68(%rsp), %rax
movq %rax, 0x68(%r12)
movq 0x78(%rsp), %rax
movq %rax, 0x70(%r12)
movq %r13, 0x10(%rbp)
movq %r12, 0x18(%rbp)
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
callq 0x1d3e8
movq %rbx, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
movq 0x899d5(%rip), %rax     # 0x148fb0
cmpb $0x0, (%rax)
je 0xbf5e5
incl 0x8(%rbp)
jmp 0xbf5e9
lock
incl 0x8(%rbp)
movl $0x1, %r12d
lock
xaddl %r12d, 0xa8(%rsp)
movl 0x88(%rsp), %ecx
testl %ecx, %ecx
je 0xbf651
xorl %ebx, %ebx
leal (%r12,%rbx), %eax
xorl %edx, %edx
divl %ecx
movq 0xb0(%rsp), %r13
imulq $0xb0, %rdx, %r14
leaq (%r14,%r13), %rdi
addq $0x58, %rdi
movq %rdi, 0x8(%rsp)
callq 0x8080
testl %eax, %eax
sete 0x10(%rsp)
je 0xbf6ad
leaq 0x8(%rsp), %rdi
callq 0x1d204
incl %ebx
movl 0x88(%rsp), %ecx
cmpl %ecx, %ebx
jb 0xbf606
jmp 0xbf653
xorl %ecx, %ecx
movl %r12d, %eax
xorl %edx, %edx
divl %ecx
movq 0xb0(%rsp), %r12
imulq $0xb0, %rdx, %rbx
leaq (%r12,%rbx), %rax
addq $0x58, %rax
movq %rax, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x1d294
addq %rbx, %r12
movb $0x1, 0x10(%rsp)
movq %r12, %rdi
leaq 0x20(%rsp), %rsi
callq 0xc1d96
leaq 0x8(%rsp), %rdi
callq 0x1d204
subq $-0x80, %r12
movq %r12, %rdi
jmp 0xbf6ce
addq %r14, %r13
movq %r13, %rdi
leaq 0x20(%rsp), %rsi
callq 0xc1d96
leaq 0x8(%rsp), %rdi
callq 0x1d204
subq $-0x80, %r13
movq %r13, %rdi
callq 0x81c0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
movabsq $0x100000001, %rbx      # imm = 0x100000001
je 0xbf6ec
callq 0x1d330
movq %rbp, %rdi
callq 0x1d330
leaq 0x30(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x1dd2e
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xbf712
callq 0x1d330
incl %r15d
movq 0x100(%rsp), %rax
cmpl 0x60(%rax), %r15d
jl 0xbf508
movq 0x30(%rsp), %rbx
movq 0x38(%rsp), %r14
cmpq %r14, %rbx
je 0xbf755
movq %rbx, %rdi
callq 0x1c7ba
testl %eax, %eax
jne 0xbf781
addq $0x10, %rbx
cmpq %r14, %rbx
jne 0xbf736
movq 0x30(%rsp), %rbx
movq 0x38(%rsp), %r14
xorl %ebp, %ebp
cmpq %rbx, %r14
je 0xbf786
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0xbf76d
callq 0x1d330
addq $0x10, %r15
cmpq %r14, %r15
jne 0xbf75f
movq %rbx, 0x38(%rsp)
jmp 0xbf786
xorl %ebp, %ebp
jmp 0xbf786
movl $0x1, %ebp
leaq 0x30(%rsp), %rdi
callq 0x1c806
leaq 0x88(%rsp), %rdi
callq 0x1c84c
movl %ebp, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xbf7ba
jmp 0xbf7f6
movq %rax, %r14
jmp 0xbf7c7
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x1d204
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xbf7d6
callq 0x1d330
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xbf818
callq 0x1d330
jmp 0xbf818
movq %rax, %r14
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
jne 0xbf81b
jmp 0xbf820
movq %rax, %r14
jmp 0xbf820
movq %rax, %r14
jmp 0xbf80b
movq %rax, %r14
movq %r12, %rdi
callq 0x8380
movq %rbp, %rdi
callq 0x8380
jmp 0xbf820
movq %rax, %r14
movq %rbp, %rdi
callq 0x1d330
leaq 0x30(%rsp), %rdi
callq 0x1c806
leaq 0x88(%rsp), %rdi
callq 0x1c84c
movq %r14, %rdi
callq 0x8650