// File: /workspace/github_c_makefile_star2_O2/PoulinV[P]AxiCLASS/build/../source/lensing.c
// Function: lensing_lensed_cl_te
int lensing_lensed_cl_te(
                         double *ksiX,
                         double **d20,
                         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 clte;
      int imu;
      clte=0;
      for (imu=0;imu<nmu;imu++) {
        clte += ksiX[imu]*d20[imu][(int)ple->l[index_l]]*w8[imu]; /* loop could be optimized */
      }
      ple->cl_lens[index_l*ple->lt_size+ple->index_lt_te]=clte*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 0x8811b(%rip), %rax     # 0x141220
addq $0x10, %rax
movq %rax, 0xa0(%rsp)
leaq 0x20(%rsp), %rbx
movq 0x38(%rsp), %rax
cmpl 0x60(%rax), %r12d
jge 0xb9346
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 0x88e9e(%rip), %rax     # 0x142020
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 0x88ec8(%rip), %rax     # 0x142070
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 0xbae72
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 0xb92a2
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 0xb92e8
movq %rbx, %rdi
callq 0x1adc2
incl %r14d
jmp 0xb9258
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 0xbb234
movq %rbx, %rdi
callq 0x1adc2
subq $-0x80, %r14
movq %r14, %rdi
jmp 0xb9307
addq %r15, %r13
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
callq 0xbb234
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 0xb9116
movq 0x70(%rsp), %rbx
movq 0x78(%rsp), %r14
cmpq %r14, %rbx
je 0xb936a
movq %rbx, %rdi
callq 0x1a3be
addq $0x10, %rbx
testl %eax, %eax
je 0xb9350
pushq $0x1
popq %rbx
jmp 0xb9376
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 0xb93a5
jmp 0xb93dc
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1adc2
jmp 0xb93b7
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1afb0
leaq 0x58(%rsp), %rdi
callq 0x1afb0
jmp 0xb93d5
movq %rax, %rbx
jmp 0xb93fd
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0xb93e9
movq %rax, %rbx
jmp 0xb9407
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x1afb0
jmp 0xb9407
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xbae72
leaq 0x60(%rsp), %rdi
callq 0x1b0e8
leaq 0x70(%rsp), %rdi
callq 0x1a3f8
leaq 0xa8(%rsp), %rdi
callq 0x1a41a
movq %rbx, %rdi
callq 0x8680