// File: /workspace/github_c_makefile_star2_O2/PoulinV[P]AxiCLASS/build/../source/lensing.c
// Function: lensing_lensed_cl_tt
int lensing_lensed_cl_tt(
                         double *ksi,
                         double **d00,
                         double *w8,
                         int nmu,
                         struct lensing * ple
                         ) {

  int index_l;

  /** Integration by Gauss-Legendre quadrature. **/
  class_setup_parallel();

  for (index_l=0; index_l<ple->l_size; index_l++){
    class_run_parallel(=,
      double cle;
      int imu;
      cle=0;
      for (imu=0;imu<nmu;imu++) {
        cle += ksi[imu]*d00[imu][(int)ple->l[index_l]]*w8[imu]; /* loop could be optimized */
      }
      ple->cl_lens[index_l*ple->lt_size+ple->index_lt_tt]=cle*2.0*_PI_;
      return _SUCCESS_;
    );
  }

  class_finish_parallel();

  return _SUCCESS_;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r8, 0x38(%rsp)
movl %ecx, 0x34(%rsp)
movq %rdx, 0x98(%rsp)
movq %rsi, 0x90(%rsp)
movq %rdi, 0x88(%rsp)
callq 0x1a2a0
leaq 0xa8(%rsp), %rdi
movl %eax, %esi
callq 0x1a33e
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
xorl %r12d, %r12d
leaq 0xd(%rsp), %r14
leaq 0x884e7(%rip), %rax     # 0x141220
addq $0x10, %rax
movq %rax, 0xa0(%rsp)
leaq 0x20(%rsp), %rbx
movq 0x38(%rsp), %rax
cmpl 0x60(%rax), %r12d
jge 0xb8f7a
andq $0x0, 0x40(%rsp)
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0x1b0f6
movq %rax, %rbp
movq %r14, 0x60(%rsp)
movq %rax, 0x68(%rsp)
movabsq $0x100000001, %r14      # imm = 0x100000001
movq %r14, 0x8(%rax)
movq 0xa0(%rsp), %rax
movq %rax, (%rbp)
pushq $0x68
popq %rdi
callq 0x83d0
movq %rax, %r13
leaq 0xf(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %r13, 0x28(%rsp)
movq %r14, 0x8(%r13)
leaq 0x8918a(%rip), %rax     # 0x141f40
movq %rax, (%r13)
movq %r13, %r15
addq $0x10, %r15
movq %r15, %rdi
leaq 0xe(%rsp), %rsi
callq 0x1b18a
movq %rbp, %r14
addq $0x10, %r14
leaq 0x891b4(%rip), %rax     # 0x141f90
movq %rax, 0x10(%r13)
movl 0x34(%rsp), %eax
movl %eax, 0x38(%r13)
movq 0x88(%rsp), %rax
movq %rax, 0x40(%r13)
movq 0x90(%rsp), %rax
movq %rax, 0x48(%r13)
movq 0x38(%rsp), %rax
movq %rax, 0x50(%r13)
movl %r12d, 0x58(%r13)
movq 0x98(%rsp), %rax
movq %rax, 0x60(%r13)
andq $0x0, 0x28(%rsp)
movq %rbx, %rdi
callq 0xba902
movq %r15, 0x10(%rbp)
andq $0x0, 0x18(%rsp)
movq %r13, 0x18(%rbp)
andq $0x0, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x1afb0
andq $0x0, 0x68(%rsp)
movq %rbp, 0x48(%rsp)
movq %r14, 0x40(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x1b0e8
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x1b09c
leaq 0x10(%rsp), %rdi
leaq 0x40(%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 0xb8ed6
leal (%r14,%rbp), %eax
xorl %edx, %edx
divl %ecx
movq 0xd0(%rsp), %r13
imulq $0xb0, %rdx, %r15
leaq (%r15,%r13), %rdi
addq $0x58, %rdi
movq %rdi, 0x20(%rsp)
callq 0x1add8
movb %al, 0x28(%rsp)
testb %al, %al
jne 0xb8f1c
movq %rbx, %rdi
callq 0x1adc2
incl %r14d
jmp 0xb8e8c
movl %ebp, %eax
xorl %edx, %edx
divl %ecx
movq 0xd0(%rsp), %r14
imulq $0xb0, %rdx, %r15
leaq (%r14,%r15), %rsi
addq $0x58, %rsi
movq %rbx, %rdi
callq 0x1ae48
addq %r15, %r14
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0xbacc4
movq %rbx, %rdi
callq 0x1adc2
subq $-0x80, %r14
movq %r14, %rdi
jmp 0xb8f3b
addq %r15, %r13
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
callq 0xbacc4
movq %rbx, %rdi
callq 0x1adc2
subq $-0x80, %r13
movq %r13, %rdi
callq 0x81e0
leaq 0x18(%rsp), %rdi
callq 0x1afb0
leaq 0xd(%rsp), %r14
leaq 0x48(%rsp), %rdi
callq 0x1afb0
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1bb4a
leaq 0x58(%rsp), %rdi
callq 0x1afb0
incl %r12d
jmp 0xb8d4a
movq 0x70(%rsp), %rbx
movq 0x78(%rsp), %r14
cmpq %r14, %rbx
je 0xb8f9e
movq %rbx, %rdi
callq 0x1a3be
addq $0x10, %rbx
testl %eax, %eax
je 0xb8f84
pushq $0x1
popq %rbx
jmp 0xb8faa
leaq 0x70(%rsp), %rdi
callq 0x1a3f0
xorl %ebx, %ebx
leaq 0x70(%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 0xb8fd9
jmp 0xb9010
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1adc2
jmp 0xb8feb
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1afb0
leaq 0x58(%rsp), %rdi
callq 0x1afb0
jmp 0xb9009
movq %rax, %rbx
jmp 0xb9031
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0xb901d
movq %rax, %rbx
jmp 0xb903b
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x1afb0
jmp 0xb903b
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xba902
leaq 0x60(%rsp), %rdi
callq 0x1b0e8
leaq 0x70(%rsp), %rdi
callq 0x1a3f8
leaq 0xa8(%rsp), %rdi
callq 0x1a41a
movq %rbx, %rdi
callq 0x8680