// 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::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
subq $0x18, %rsp
movq %r9, %rax
subq %rcx, %rax
movq %rax, 0x10(%rsp)
jl 0x238be
movq 0x50(%rsp), %rbx
cmpq %r9, %rbx
jg 0x238be
movq %rdx, %rdi
pushq $0x4
popq %r10
movq %r8, %rax
cqto
idivq %r10
movq %rax, %r10
shlq $0x2, %r10
pushq $0x2
popq %r11
movq %r8, 0x8(%rsp)
movq %r8, %rax
cqto
idivq %r11
xorl %edx, %edx
testq %rcx, %rcx
movl $0x0, %r14d
cmovgq %rcx, %r14
leaq (,%r9,4), %r13
leaq (,%rcx,4), %r8
subq %r8, %r13
movq %rbx, %r8
shlq $0x5, %r8
movq %rsi, (%rsp)
leaq (%r8,%rsi), %rbp
addq $0x10, %rbp
xorl %r12d, %r12d
xorl %ebx, %ebx
cmpq %r10, %rbx
jge 0x23800
movq %rbx, %r15
orq $0x2, %r15
leaq (,%r12,8), %r11
addq %rbp, %r11
addq %r13, %r12
xorl %esi, %esi
cmpq %rsi, %r14
je 0x237f6
movq 0x8(%rdi), %r8
imulq %rsi, %r8
shlq $0x3, %r8
addq (%rdi), %r8
movups (%r8,%rbx,8), %xmm0
movups (%r8,%r15,8), %xmm1
movaps %xmm0, -0x10(%r11)
movaps %xmm1, (%r11)
incq %rsi
addq $0x4, %r12
addq $0x20, %r11
jmp 0x237c2
addq $0x4, %rbx
addq $0x20, %rdx
jmp 0x237a6
addq %rax, %rax
addq %r9, %r9
addq %rcx, %rcx
subq %rcx, %r9
movq 0x50(%rsp), %r13
movq %r13, %rcx
shlq $0x4, %rcx
movq (%rsp), %r15
addq %r15, %rcx
movq 0x8(%rsp), %r11
cmpq %rax, %rbx
jge 0x23866
leaq (%rcx,%r12,8), %r10
addq %r9, %r12
xorl %esi, %esi
cmpq %rsi, %r14
je 0x2385c
movq 0x8(%rdi), %r8
imulq %rsi, %r8
shlq $0x3, %r8
addq (%rdi), %r8
movups (%r8,%rbx,8), %xmm0
movaps %xmm0, (%r10)
incq %rsi
addq $0x2, %r12
addq $0x10, %r10
jmp 0x23832
addq $0x2, %rbx
addq $0x10, %rdx
jmp 0x23824
movq 0x10(%rsp), %r8
cmpq %r11, %rbx
jge 0x238af
leaq (%r12,%r13), %rcx
movq 0x8(%rdi), %rax
leaq (%r15,%rcx,8), %rcx
movq (%rdi), %rsi
addq %rdx, %rsi
shlq $0x3, %rax
xorl %r9d, %r9d
cmpq %r9, %r14
je 0x238a0
movsd (%rsi), %xmm0
movsd %xmm0, (%rcx,%r9,8)
incq %r9
addq %rax, %rsi
jmp 0x23889
addq %r8, %r12
addq %r9, %r12
incq %rbx
addq $0x8, %rdx
jmp 0x2386b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x32cee(%rip), %rdi     # 0x565b3
leaq 0x32d42(%rip), %rsi     # 0x5660e
leaq 0x3c93f(%rip), %rcx     # 0x60212
movl $0x6a9, %edx            # imm = 0x6A9
callq 0x9210
nop