// File: /workspace/github_c_makefile_star2_O2/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 $0xe8, %rsp
movl %r9d, 0x2c(%rsp)
movq %r8, 0x98(%rsp)
movq %rcx, 0x90(%rsp)
movq %rdx, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq %rdi, 0x78(%rsp)
callq 0x1a2a0
leaq 0xa8(%rsp), %rdi
movl %eax, %esi
callq 0x1a33e
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
xorl %r15d, %r15d
leaq 0x5(%rsp), %r14
movabsq $0x100000001, %r12      # imm = 0x100000001
leaq 0x87d3c(%rip), %rax     # 0x141220
addq $0x10, %rax
movq %rax, 0xa0(%rsp)
leaq 0x18(%rsp), %rbx
movq 0x120(%rsp), %rax
cmpl 0x60(%rax), %r15d
jge 0xb9731
andq $0x0, 0x30(%rsp)
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x1b0f6
movq %rax, %rbp
movq %r14, 0x50(%rsp)
movq %rax, 0x58(%rsp)
movq %r12, 0x8(%rax)
movq 0xa0(%rsp), %rax
movq %rax, (%rbp)
pushq $0x78
popq %rdi
callq 0x83d0
movq %rax, %r13
leaq 0x7(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %r13, 0x20(%rsp)
movq %r12, 0x8(%r13)
leaq 0x88ba6(%rip), %rax     # 0x142100
movq %rax, (%r13)
movq %r13, %r14
addq $0x10, %r14
movq %r14, %rdi
leaq 0x6(%rsp), %rsi
callq 0x1b18a
movq %rbp, %r12
addq $0x10, %r12
leaq 0x88bd0(%rip), %rax     # 0x142150
movq %rax, 0x10(%r13)
movl 0x2c(%rsp), %eax
movl %eax, 0x38(%r13)
movq 0x78(%rsp), %rax
movq %rax, 0x40(%r13)
movq 0x88(%rsp), %rax
movq %rax, 0x48(%r13)
movq 0x120(%rsp), %rax
movq %rax, 0x50(%r13)
movl %r15d, 0x58(%r13)
movq 0x98(%rsp), %rax
movq %rax, 0x60(%r13)
movq 0x80(%rsp), %rax
movq %rax, 0x68(%r13)
movq 0x90(%rsp), %rax
movq %rax, 0x70(%r13)
andq $0x0, 0x20(%rsp)
movq %rbx, %rdi
callq 0xbb3e2
movq %r14, 0x10(%rbp)
andq $0x0, 0x10(%rsp)
movq %r13, 0x18(%rbp)
andq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x1afb0
andq $0x0, 0x58(%rsp)
movq %rbp, 0x38(%rsp)
movq %r12, 0x30(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x1b0e8
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x1b09c
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1b986
pushq $0x1
popq %rax
movl %eax, %ebp
lock
xaddl %ebp, 0xc8(%rsp)
xorl %r14d, %r14d
movl 0xa8(%rsp), %ecx
cmpl %ecx, %r14d
jae 0xb9692
leal (%r14,%rbp), %eax
xorl %edx, %edx
divl %ecx
movq 0xd0(%rsp), %r12
imulq $0xb0, %rdx, %r13
leaq (%r12,%r13), %rdi
addq $0x58, %rdi
movq %rdi, 0x18(%rsp)
callq 0x1add8
movb %al, 0x20(%rsp)
testb %al, %al
jne 0xb96c9
movq %rbx, %rdi
callq 0x1adc2
incl %r14d
jmp 0xb9648
movl %ebp, %eax
xorl %edx, %edx
divl %ecx
movq 0xd0(%rsp), %r12
imulq $0xb0, %rdx, %r14
leaq (%r12,%r14), %rsi
addq $0x58, %rsi
movq %rbx, %rdi
callq 0x1ae48
addq %r14, %r12
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0xbb802
jmp 0xb96d9
addq %r13, %r12
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0xbb802
movq %rbx, %rdi
callq 0x1adc2
subq $-0x80, %r12
movq %r12, %rdi
callq 0x81e0
leaq 0x10(%rsp), %rdi
callq 0x1afb0
leaq 0x38(%rsp), %rdi
callq 0x1afb0
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x1bb4a
leaq 0x5(%rsp), %r14
movabsq $0x100000001, %r12      # imm = 0x100000001
leaq 0x48(%rsp), %rdi
callq 0x1afb0
incl %r15d
jmp 0xb94f5
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %r14
cmpq %r14, %rbx
je 0xb9755
movq %rbx, %rdi
callq 0x1a3be
addq $0x10, %rbx
testl %eax, %eax
je 0xb973b
pushq $0x1
popq %rbx
jmp 0xb9761
leaq 0x60(%rsp), %rdi
callq 0x1a3f0
xorl %ebx, %ebx
leaq 0x60(%rsp), %rdi
callq 0x1a3f8
leaq 0xa8(%rsp), %rdi
callq 0x1a41a
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb9790
jmp 0xb97c7
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1adc2
jmp 0xb97a2
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1afb0
leaq 0x48(%rsp), %rdi
callq 0x1afb0
jmp 0xb97c0
movq %rax, %rbx
jmp 0xb97e8
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0xb97d4
movq %rax, %rbx
jmp 0xb97f2
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1afb0
jmp 0xb97f2
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xbb3e2
leaq 0x50(%rsp), %rdi
callq 0x1b0e8
leaq 0x60(%rsp), %rdi
callq 0x1a3f8
leaq 0xa8(%rsp), %rdi
callq 0x1a41a
movq %rbx, %rdi
callq 0x8680