// File: /workspace/github_c_makefile_star2_O1/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), %r14
callq 0x1c5f0
leaq 0x88(%rsp), %rdi
movl %eax, %esi
callq 0x1c6a0
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
cmpl $0x0, 0x60(%r14)
jle 0xc2e99
movl $0x0, 0x4(%rsp)
movabsq $0x100000001, %r15      # imm = 0x100000001
leaq 0x875af(%rip), %rax     # 0x14a1f0
addq $0x10, %rax
movq %rax, 0x58(%rsp)
movl $0x20, %edi
callq 0x83b0
movq %rax, %rbx
movq %r15, 0x8(%rax)
movq 0x58(%rsp), %rax
movq %rax, (%rbx)
movl $0x78, %edi
callq 0x83b0
movq %rax, %r13
movq %r15, 0x8(%rax)
leaq 0x88475(%rip), %rax     # 0x14b0f0
movq %rax, (%r13)
movq %r13, %r15
addq $0x10, %r15
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x1d42e
movq %rbx, %rbp
addq $0x10, %rbp
leaq 0x8849f(%rip), %rax     # 0x14b140
movq %rax, 0x10(%r13)
movl 0x1c(%rsp), %eax
movl %eax, 0x38(%r13)
movq 0x60(%rsp), %rax
movq %rax, 0x40(%r13)
movq 0x70(%rsp), %rax
movq %rax, 0x48(%r13)
movq %r14, 0x50(%r13)
movl 0x4(%rsp), %eax
movl %eax, 0x58(%r13)
movq 0x80(%rsp), %rax
movq %rax, 0x60(%r13)
movq 0x68(%rsp), %rax
movq %rax, 0x68(%r13)
movq 0x78(%rsp), %rax
movq %rax, 0x70(%r13)
movq %r15, 0x10(%rbx)
movq %r13, 0x18(%rbx)
leaq 0x48(%rsp), %rdi
movq %rbp, %rsi
callq 0x1d35e
movq %rbp, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq 0x892a1(%rip), %rax     # 0x14bfb0
cmpb $0x0, (%rax)
je 0xc2d19
incl 0x8(%rbx)
jmp 0xc2d1d
lock
incl 0x8(%rbx)
movl $0x1, %r13d
lock
xaddl %r13d, 0xa8(%rsp)
movl 0x88(%rsp), %ecx
testl %ecx, %ecx
je 0xc2dbc
xorl %r14d, %r14d
leal (%r14,%r13), %eax
xorl %edx, %edx
divl %ecx
movq 0xb0(%rsp), %r15
imulq $0xb0, %rdx, %r12
leaq (%r15,%r12), %rdi
addq $0x58, %rdi
movq %rdi, 0x8(%rsp)
callq 0x8080
movl %eax, %ebp
testl %eax, %eax
sete 0x10(%rsp)
je 0xc2d7f
leaq 0x8(%rsp), %rdi
callq 0x1d17a
jmp 0xc2da5
addq %r12, %r15
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
callq 0xc552c
leaq 0x8(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %r15
movq %r15, %rdi
callq 0x81c0
testl %ebp, %ebp
je 0xc2e7b
incl %r14d
movl 0x88(%rsp), %ecx
cmpl %ecx, %r14d
jb 0xc2d3f
movl %r13d, %eax
xorl %edx, %edx
divl 0x88(%rsp)
movq 0xb0(%rsp), %r13
imulq $0xb0, %rdx, %r14
leaq (%r14,%r13), %rax
addq $0x58, %rax
movq %rax, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x1d20a
movabsq $0x100000001, %r15      # imm = 0x100000001
addq %r14, %r13
movb $0x1, 0x10(%rsp)
movq %r13, %rdi
leaq 0x20(%rsp), %rsi
callq 0xc552c
leaq 0x8(%rsp), %rdi
callq 0x1d17a
subq $-0x80, %r13
movq %r13, %rdi
callq 0x81c0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
movq 0x100(%rsp), %r14
je 0xc2e3f
callq 0x1d2a6
movq %rbx, %rdi
callq 0x1d2a6
leaq 0x30(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x1dcb8
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xc2e65
callq 0x1d2a6
movl 0x4(%rsp), %eax
incl %eax
movl %eax, 0x4(%rsp)
cmpl 0x60(%r14), %eax
jl 0xc2c4a
jmp 0xc2e99
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
movq 0x100(%rsp), %r14
movabsq $0x100000001, %r15      # imm = 0x100000001
jne 0xc2e3a
jmp 0xc2e3f
movq 0x30(%rsp), %rbx
movq 0x38(%rsp), %r14
cmpq %r14, %rbx
je 0xc2eba
movq %rbx, %rdi
callq 0x1c724
testl %eax, %eax
jne 0xc2eed
addq $0x10, %rbx
jmp 0xc2ea3
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %r15
xorl %ebx, %ebx
cmpq %r14, %r15
je 0xc2ef2
movq %r14, %r12
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0xc2edd
callq 0x1d2a6
addq $0x10, %r12
cmpq %r15, %r12
jne 0xc2ece
movq %r14, 0x38(%rsp)
jmp 0xc2ef2
movl $0x1, %ebx
leaq 0x30(%rsp), %rdi
callq 0x1c770
leaq 0x88(%rsp), %rdi
callq 0x1c7b0
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc2f26
movq %rax, %r14
jmp 0xc2f66
jmp 0xc2f59
movq %rax, %r14
jmp 0xc2f8c
movq %rax, %r14
jmp 0xc2f3b
movq %rax, %r14
movq %r13, %rdi
callq 0x8380
movq %rbx, %rdi
callq 0x8380
jmp 0xc2f8c
movq %rax, %r14
jmp 0xc2f84
movq %rax, %r14
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
jne 0xc2f87
jmp 0xc2f8c
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x1d17a
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xc2f75
callq 0x1d2a6
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xc2f84
callq 0x1d2a6
movq %rbx, %rdi
callq 0x1d2a6
leaq 0x30(%rsp), %rdi
callq 0x1c770
leaq 0x88(%rsp), %rdi
callq 0x1c7b0
movq %r14, %rdi
callq 0x8650