// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/./Eigen/src/Core/products/GeneralBlockPanelKernel.h
// Function: Eigen::internal::gemm_pack_lhs<double, long, Eigen::internal::const_blas_data_mapper<double, long, 1>, 4, 2, 1, false, false>::operator()(double*, Eigen::internal::const_blas_data_mapper<double, long, 1> const&, long, long, long, long)
EIGEN_DONT_INLINE void gemm_pack_lhs<Scalar, Index, DataMapper, Pack1, Pack2, RowMajor, Conjugate, PanelMode>
  ::operator()(Scalar* blockA, const DataMapper& lhs, Index depth, Index rows, Index stride, Index offset)
{
  typedef typename packet_traits<Scalar>::type Packet;
  enum { PacketSize = packet_traits<Scalar>::size };

  EIGEN_ASM_COMMENT("EIGEN PRODUCT PACK LHS");
  EIGEN_UNUSED_VARIABLE(stride);
  EIGEN_UNUSED_VARIABLE(offset);
  eigen_assert(((!PanelMode) && stride==0 && offset==0) || (PanelMode && stride>=depth && offset<=stride));
  conj_if<NumTraits<Scalar>::IsComplex && Conjugate> cj;
  Index count = 0;

//   const Index peeled_mc3 = Pack1>=3*PacketSize ? (rows/(3*PacketSize))*(3*PacketSize) : 0;
//   const Index peeled_mc2 = Pack1>=2*PacketSize ? peeled_mc3+((rows-peeled_mc3)/(2*PacketSize))*(2*PacketSize) : 0;
//   const Index peeled_mc1 = Pack1>=1*PacketSize ? (rows/(1*PacketSize))*(1*PacketSize) : 0;

  int pack = Pack1;
  Index i = 0;
  while(pack>0)
  {
    Index remaining_rows = rows-i;
    Index peeled_mc = i+(remaining_rows/pack)*pack;
    for(; i<peeled_mc; i+=pack)
    {
      if(PanelMode) count += pack * offset;

      const Index peeled_k = (depth/PacketSize)*PacketSize;
      Index k=0;
      if(pack>=PacketSize)
      {
        for(; k<peeled_k; k+=PacketSize)
        {
          for (Index m = 0; m < pack; m += PacketSize)
          {
            PacketBlock<Packet> kernel;
            for (int p = 0; p < PacketSize; ++p) kernel.packet[p] = lhs.loadPacket(i+p+m, k);
            ptranspose(kernel);
            for (int p = 0; p < PacketSize; ++p) pstore(blockA+count+m+(pack)*p, cj.pconj(kernel.packet[p]));
          }
          count += PacketSize*pack;
        }
      }
      for(; k<depth; k++)
      {
        Index w=0;
        for(; w<pack-3; w+=4)
        {
          Scalar a(cj(lhs(i+w+0, k))),
                 b(cj(lhs(i+w+1, k))),
                 c(cj(lhs(i+w+2, k))),
                 d(cj(lhs(i+w+3, k)));
          blockA[count++] = a;
          blockA[count++] = b;
          blockA[count++] = c;
          blockA[count++] = d;
        }
        if(pack%4)
          for(;w<pack;++w)
            blockA[count++] = cj(lhs(i+w, k));
      }

      if(PanelMode) count += pack * (stride-offset-depth);
    }

    pack -= PacketSize;
    if(pack<Pack2 && (pack+PacketSize)!=Pack2)
      pack = Pack2;
  }

  for(; i<rows; i++)
  {
    if(PanelMode) count += offset;
    for(Index k=0; k<depth; k++)
      blockA[count++] = cj(lhs(i, k));
    if(PanelMode) count += (stride-offset-depth);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
orq 0xd0(%rsp), %r9
jne 0x205d0
movq %rdx, %rdi
pushq $0x2
popq %r9
movq %rcx, %rax
cqto
idivq %r9
addq %rax, %rax
movq %rax, 0x60(%rsp)
leaq 0x18(%rsi), %rax
movq %rax, 0x68(%rsp)
pushq $0x4
popq %r10
xorl %r9d, %r9d
xorl %ebx, %ebx
movq %r8, 0x38(%rsp)
movq %rcx, 0x8(%rsp)
testl %r10d, %r10d
jle 0x2056e
movq %r8, %rax
subq %r9, %rax
movl %r10d, %r15d
cqto
idivq %r15
subq %rdx, %r8
movq %r8, 0x50(%rsp)
leal (%r10,%r10), %ebp
leal -0x3(%r10), %eax
movslq %eax, %r12
leaq (,%r9,8), %rax
movq %rax, (%rsp)
leaq (,%r15,8), %rax
movq %rax, 0x40(%rsp)
leaq 0x18(,%r9,8), %rax
movq %rax, 0x20(%rsp)
leaq 0x10(,%r9,8), %rax
movq %rax, 0x18(%rsp)
leaq 0x8(,%r9,8), %rax
movq %rax, 0x10(%rsp)
movq %rbp, 0x48(%rsp)
movq %r10, 0x28(%rsp)
cmpq 0x50(%rsp), %r9
jge 0x2054b
cmpl $0x1, %r10d
movq %r9, 0x58(%rsp)
jne 0x204b9
xorl %r14d, %r14d
leaq (,%r14,8), %r9
cmpq %rcx, %r14
jge 0x2048a
movq %r14, 0x30(%rsp)
movq %rsi, %rbp
movq 0x8(%rdi), %rcx
movq %rbx, %rdx
movq (%rsp), %r13
movq %r13, %rbx
imulq %rcx, %rbx
movq (%rdi), %r14
addq %r9, %r14
movq %rcx, %r10
shlq $0x5, %r10
movq 0x20(%rsp), %rax
imulq %rcx, %rax
movq 0x18(%rsp), %r8
imulq %rcx, %r8
imulq 0x10(%rsp), %rcx
movq %rdx, %r11
movq 0x68(%rsp), %rsi
leaq (%rsi,%rdx,8), %rsi
xorl %edx, %edx
cmpq %r12, %rdx
jge 0x20416
movsd (%r14,%rbx), %xmm0
movsd (%r14,%rcx), %xmm1
movsd (%r14,%r8), %xmm2
movsd (%r14,%rax), %xmm3
movsd %xmm0, -0x18(%rsi,%rdx,8)
movsd %xmm1, -0x10(%rsi,%rdx,8)
movsd %xmm2, -0x8(%rsi,%rdx,8)
movsd %xmm3, (%rsi,%rdx,8)
addq $0x4, %rdx
addq %r10, %r14
addq $0x20, %r13
jmp 0x203d5
testb $0x3, 0x28(%rsp)
je 0x2046b
movq 0x8(%rdi), %rax
movq (%rdi), %rcx
addq %r9, %rcx
imulq %rax, %r13
addq %rcx, %r13
shlq $0x3, %rax
movq %rbp, %rsi
movq %r11, %rbx
leaq (,%r11,8), %r8
addq %rbp, %r8
movq 0x8(%rsp), %rcx
movq 0x30(%rsp), %r14
cmpq %r15, %rdx
jae 0x20466
movsd (%r13), %xmm0
movsd %xmm0, (%r8,%rdx,8)
incq %rdx
addq %rax, %r13
jmp 0x2044d
addq %rdx, %rbx
jmp 0x2047e
movq %r11, %rbx
addq %rdx, %rbx
movq 0x8(%rsp), %rcx
movq %rbp, %rsi
movq 0x30(%rsp), %r14
incq %r14
addq $0x8, %r9
jmp 0x2037f
movq 0x58(%rsp), %r9
addq %r15, %r9
movq 0x40(%rsp), %rax
addq %rax, (%rsp)
addq %rax, 0x20(%rsp)
addq %rax, 0x18(%rsp)
addq %rax, 0x10(%rsp)
movq 0x28(%rsp), %r10
movq 0x48(%rsp), %rbp
jmp 0x2035a
xorl %r9d, %r9d
xorl %r14d, %r14d
cmpq 0x60(%rsp), %r14
jge 0x20377
leaq (%rsi,%rbx,8), %rdx
movq (%rsp), %r13
xorl %r10d, %r10d
cmpq %r15, %r10
jae 0x2053b
movq 0x8(%rdi), %rax
movq (%rdi), %r8
addq %r9, %r8
movq %rax, %r11
imulq %r13, %r11
addq %r8, %r11
shlq $0x3, %rax
xorl %r8d, %r8d
cmpq $0x20, %r8
je 0x2050e
movups (%r11), %xmm0
movaps %xmm0, 0x70(%rsp,%r8)
addq $0x10, %r8
addq %rax, %r11
jmp 0x204f5
movaps 0x70(%rsp), %xmm0
movaps 0x80(%rsp), %xmm1
movaps %xmm0, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
leaq (%rdx,%r10,8), %rax
movaps %xmm0, (%rax)
movaps %xmm2, (%rax,%r15,8)
addq $0x2, %r10
addq $0x10, %r13
jmp 0x204d5
addq %rbp, %rbx
addq $0x2, %r14
addq $0x10, %r9
jmp 0x204bf
leal -0x2(%r10), %eax
xorl %edx, %edx
cmpl $0x2, %r10d
setne %dl
addl %edx, %edx
cmpl $0x4, %r10d
cmovgel %eax, %edx
movl %edx, %r10d
movq 0x38(%rsp), %r8
jmp 0x202e6
xorl %eax, %eax
testq %rcx, %rcx
cmovleq %rax, %rcx
leaq (,%r9,8), %rax
cmpq %r8, %r9
jge 0x205be
movq %r9, %r11
leaq (%rsi,%rbx,8), %r9
movq 0x8(%rdi), %rdx
imulq %rax, %rdx
addq (%rdi), %rdx
xorl %r10d, %r10d
cmpq %r10, %rcx
je 0x205af
movsd (%rdx,%r10,8), %xmm0
movsd %xmm0, (%r9,%r10,8)
incq %r10
jmp 0x20599
movq %r11, %r9
incq %r9
addq %r10, %rbx
addq $0x8, %rax
jmp 0x2057f
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x35fdc(%rip), %rdi     # 0x565b3
leaq 0x36030(%rip), %rsi     # 0x5660e
leaq 0x3ce8d(%rip), %rcx     # 0x5d472
movl $0x715, %edx            # imm = 0x715
callq 0x9210
nop