// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/./Eigen/src/Core/products/GeneralBlockPanelKernel.h
// Function: Eigen::internal::gemm_pack_lhs<double, long, Eigen::internal::blas_data_mapper<double, long, 0, 0>, 4, 2, 0, false, true>::operator()(double*, Eigen::internal::blas_data_mapper<double, long, 0, 0> const&, long, long, long, long)
EIGEN_DONT_INLINE void gemm_pack_lhs<Scalar, Index, DataMapper, Pack1, Pack2, ColMajor, 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));
  eigen_assert( ((Pack1%PacketSize)==0 && Pack1<=4*PacketSize) || (Pack1<=4) );
  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;
  const Index peeled_mc0 = Pack2>=1*PacketSize ? peeled_mc1
                         : Pack2>1             ? (rows/Pack2)*Pack2 : 0;

  Index i=0;

  // Pack 3 packets
  if(Pack1>=3*PacketSize)
  {
    for(; i<peeled_mc3; i+=3*PacketSize)
    {
      if(PanelMode) count += (3*PacketSize) * offset;

      for(Index k=0; k<depth; k++)
      {
        Packet A, B, C;
        A = lhs.loadPacket(i+0*PacketSize, k);
        B = lhs.loadPacket(i+1*PacketSize, k);
        C = lhs.loadPacket(i+2*PacketSize, k);
        pstore(blockA+count, cj.pconj(A)); count+=PacketSize;
        pstore(blockA+count, cj.pconj(B)); count+=PacketSize;
        pstore(blockA+count, cj.pconj(C)); count+=PacketSize;
      }
      if(PanelMode) count += (3*PacketSize) * (stride-offset-depth);
    }
  }
  // Pack 2 packets
  if(Pack1>=2*PacketSize)
  {
    for(; i<peeled_mc2; i+=2*PacketSize)
    {
      if(PanelMode) count += (2*PacketSize) * offset;

      for(Index k=0; k<depth; k++)
      {
        Packet A, B;
        A = lhs.loadPacket(i+0*PacketSize, k);
        B = lhs.loadPacket(i+1*PacketSize, k);
        pstore(blockA+count, cj.pconj(A)); count+=PacketSize;
        pstore(blockA+count, cj.pconj(B)); count+=PacketSize;
      }
      if(PanelMode) count += (2*PacketSize) * (stride-offset-depth);
    }
  }
  // Pack 1 packets
  if(Pack1>=1*PacketSize)
  {
    for(; i<peeled_mc1; i+=1*PacketSize)
    {
      if(PanelMode) count += (1*PacketSize) * offset;

      for(Index k=0; k<depth; k++)
      {
        Packet A;
        A = lhs.loadPacket(i+0*PacketSize, k);
        pstore(blockA+count, cj.pconj(A));
        count+=PacketSize;
      }
      if(PanelMode) count += (1*PacketSize) * (stride-offset-depth);
    }
  }
  // Pack scalars
  if(Pack2<PacketSize && Pack2>1)
  {
    for(; i<peeled_mc0; i+=Pack2)
    {
      if(PanelMode) count += Pack2 * offset;

      for(Index k=0; k<depth; k++)
        for(Index w=0; w<Pack2; w++)
          blockA[count++] = cj(lhs(i+w, k));

      if(PanelMode) count += Pack2 * (stride-offset-depth);
    }
  }
  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
pushq %rax
cmpq %rcx, %r9
jl 0x27983
movq 0x40(%rsp), %rax
cmpq %r9, %rax
jg 0x27983
leaq 0x3(%r8), %rbx
testq %r8, %r8
cmovnsq %r8, %rbx
movq %r8, %r11
shrq $0x3f, %r11
addq %r8, %r11
andq $-0x2, %r11
cmpq $0x4, %r8
jl 0x278ce
andq $-0x4, %rbx
leaq (,%rax,4), %r14
movq %r9, %r15
subq %rcx, %r15
subq %rax, %r15
shlq $0x2, %r15
xorl %edi, %edi
xorl %r10d, %r10d
addq %r14, %r10
testq %rcx, %rcx
jle 0x278c0
movq %rdi, %r12
orq $0x2, %r12
xorl %r13d, %r13d
movq 0x8(%rdx), %rbp
imulq %r13, %rbp
shlq $0x3, %rbp
addq (%rdx), %rbp
movups (%rbp,%rdi,8), %xmm0
movups (%rbp,%r12,8), %xmm1
movaps %xmm0, (%rsi,%r10,8)
movaps %xmm1, 0x10(%rsi,%r10,8)
addq $0x4, %r10
incq %r13
cmpq %r13, %rcx
jne 0x2788f
addq %r15, %r10
addq $0x4, %rdi
cmpq %rbx, %rdi
jl 0x2787d
jmp 0x278d3
xorl %r10d, %r10d
xorl %edi, %edi
cmpq %r11, %rdi
jge 0x27924
leaq (%rax,%rax), %rbx
movq %r9, %r14
subq %rcx, %r14
subq %rax, %r14
addq %r14, %r14
addq %rbx, %r10
testq %rcx, %rcx
jle 0x27918
xorl %r15d, %r15d
movq 0x8(%rdx), %r12
imulq %r15, %r12
shlq $0x3, %r12
addq (%rdx), %r12
movups (%r12,%rdi,8), %xmm0
movaps %xmm0, (%rsi,%r10,8)
addq $0x2, %r10
incq %r15
cmpq %r15, %rcx
jne 0x278f3
addq %r14, %r10
addq $0x2, %rdi
cmpq %r11, %rdi
jl 0x278e8
cmpq %r8, %rdi
jge 0x27974
movq 0x8(%rdx), %r11
subq %rcx, %r9
subq %rax, %r9
leaq (,%rdi,8), %rbx
addq (%rdx), %rbx
shlq $0x3, %r11
addq %rax, %r10
movq %rbx, %rdx
movq %rcx, %r14
testq %rcx, %rcx
jle 0x27965
movsd (%rdx), %xmm0
movsd %xmm0, (%rsi,%r10,8)
incq %r10
addq %r11, %rdx
decq %r14
jne 0x27950
addq %r9, %r10
incq %rdi
addq $0x8, %rbx
cmpq %r8, %rdi
jne 0x27942
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x38395(%rip), %rdi     # 0x5fd1f
leaq 0x383e9(%rip), %rsi     # 0x5fd7a
leaq 0x3e8fc(%rip), %rcx     # 0x66294
movl $0x6a9, %edx            # imm = 0x6A9
callq 0x9200