// File: Pyboon[P]sage/./Eigen/src/Core/products/GeneralBlockPanelKernel.h
// Function: Eigen::internal::gemm_pack_lhs<std::complex<double>, long, Eigen::internal::const_blas_data_mapper<std::complex<double>, long, 1>, 1, 1, 1, false, false>::operator()(std::complex<double>*, Eigen::internal::const_blas_data_mapper<std::complex<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
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq 0x10(%rbp), %rax
movq %rdi, -0x100(%rbp)
movq %rsi, -0x108(%rbp)
movq %rdx, -0x110(%rbp)
movq %rcx, -0x118(%rbp)
movq %r8, -0x120(%rbp)
movq %r9, -0x128(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x3df20
leaq 0x10(%rbp), %rdi
callq 0x3df20
cmpq $0x0, -0x128(%rbp)
jne 0x3f837
movb $0x1, %al
cmpq $0x0, 0x10(%rbp)
movb %al, -0x1f9(%rbp)
je 0x3f841
xorl %eax, %eax
movb %al, -0x1f9(%rbp)
jmp 0x3f841
movb -0x1f9(%rbp), %al
testb $0x1, %al
jne 0x3f84d
jmp 0x3f84f
jmp 0x3f86e
leaq 0x38273(%rip), %rdi     # 0x77ac9
leaq 0x382c7(%rip), %rsi     # 0x77b24
movl $0x715, %edx            # imm = 0x715
leaq 0x382ef(%rip), %rcx     # 0x77b58
callq 0x94c0
movq $0x0, -0x138(%rbp)
movl $0x1, -0x13c(%rbp)
movq $0x0, -0x148(%rbp)
cmpl $0x0, -0x13c(%rbp)
jle 0x3ffb6
movq -0x120(%rbp), %rax
subq -0x148(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x150(%rbp), %rax
movslq -0x13c(%rbp), %rcx
cqto
idivq %rcx
movq %rax, %rcx
movq -0x208(%rbp), %rax
movslq -0x13c(%rbp), %rdx
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x158(%rbp)
movq -0x148(%rbp), %rax
cmpq -0x158(%rbp), %rax
jge 0x3ff81
movq -0x118(%rbp), %rax
movl $0x1, %ecx
cqto
idivq %rcx
shlq $0x0, %rax
movq %rax, -0x160(%rbp)
movq $0x0, -0x168(%rbp)
cmpl $0x1, -0x13c(%rbp)
jl 0x3fb55
jmp 0x3f93a
movq -0x168(%rbp), %rax
cmpq -0x160(%rbp), %rax
jge 0x3fb53
movq $0x0, -0x170(%rbp)
movq -0x170(%rbp), %rax
movslq -0x13c(%rbp), %rcx
cmpq %rcx, %rax
jge 0x3fb23
leaq -0x180(%rbp), %rdi
callq 0x42880
movl $0x0, -0x184(%rbp)
cmpl $0x1, -0x184(%rbp)
jge 0x3fa62
movq -0x110(%rbp), %rdx
movq -0x148(%rbp), %rcx
movslq -0x184(%rbp), %rax
addq %rax, %rcx
addq -0x170(%rbp), %rcx
movq -0x168(%rbp), %rax
movq %rdx, -0x58(%rbp)
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rdx, -0x8(%rbp)
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rsi
movq (%rsi), %rax
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rdx
imulq 0x8(%rsi), %rdx
addq %rdx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x15310
movapd %xmm0, -0x30(%rbp)
movapd -0x30(%rbp), %xmm0
movapd %xmm0, -0x50(%rbp)
movapd -0x50(%rbp), %xmm0
movapd %xmm0, -0x1a0(%rbp)
leaq -0x180(%rbp), %rax
movslq -0x184(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1a0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x198(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x184(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x184(%rbp)
jmp 0x3f986
leaq -0x180(%rbp), %rdi
callq 0x428d0
movl $0x0, -0x1a4(%rbp)
cmpl $0x1, -0x1a4(%rbp)
jge 0x3fb0a
movq -0x108(%rbp), %rax
movq -0x138(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x170(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl -0x13c(%rbp), %ecx
imull -0x1a4(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x210(%rbp)
leaq -0x180(%rbp), %rsi
movslq -0x1a4(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x129(%rbp), %rdi
callq 0x428e0
movq -0x210(%rbp), %rdi
movq %rax, %rsi
callq 0x15210
movl -0x1a4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1a4(%rbp)
jmp 0x3fa78
jmp 0x3fb0c
movq -0x170(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x170(%rbp)
jmp 0x3f959
movl -0x13c(%rbp), %eax
shll $0x0, %eax
cltq
addq -0x138(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x168(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x168(%rbp)
jmp 0x3f93a
jmp 0x3fb55
jmp 0x3fb57
movq -0x168(%rbp), %rax
cmpq -0x118(%rbp), %rax
jge 0x3ff65
movq $0x0, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
movl -0x13c(%rbp), %ecx
subl $0x3, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jge 0x3fe6b
movq -0x110(%rbp), %rdx
movq -0x148(%rbp), %rcx
addq -0x1b0(%rbp), %rcx
addq $0x0, %rcx
movq -0x168(%rbp), %rax
movq %rdx, -0x70(%rbp)
movq %rcx, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movq -0x70(%rbp), %rdx
movq (%rdx), %rsi
movq -0x80(%rbp), %rax
movq -0x78(%rbp), %rcx
imulq 0x8(%rdx), %rcx
addq %rcx, %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x129(%rbp), %rdi
callq 0x42900
movq (%rax), %rcx
movq %rcx, -0x1c0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1b8(%rbp)
movq -0x110(%rbp), %rdx
movq -0x148(%rbp), %rcx
addq -0x1b0(%rbp), %rcx
addq $0x1, %rcx
movq -0x168(%rbp), %rax
movq %rdx, -0x88(%rbp)
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rdx
movq (%rdx), %rsi
movq -0x98(%rbp), %rax
movq -0x90(%rbp), %rcx
imulq 0x8(%rdx), %rcx
addq %rcx, %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x129(%rbp), %rdi
callq 0x42900
movq (%rax), %rcx
movq %rcx, -0x1d0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1c8(%rbp)
movq -0x110(%rbp), %rdx
movq -0x148(%rbp), %rcx
addq -0x1b0(%rbp), %rcx
addq $0x2, %rcx
movq -0x168(%rbp), %rax
movq %rdx, -0xa0(%rbp)
movq %rcx, -0xa8(%rbp)
movq %rax, -0xb0(%rbp)
movq -0xa0(%rbp), %rdx
movq (%rdx), %rsi
movq -0xb0(%rbp), %rax
movq -0xa8(%rbp), %rcx
imulq 0x8(%rdx), %rcx
addq %rcx, %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x129(%rbp), %rdi
callq 0x42900
movq (%rax), %rcx
movq %rcx, -0x1e0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1d8(%rbp)
movq -0x110(%rbp), %rdx
movq -0x148(%rbp), %rcx
addq -0x1b0(%rbp), %rcx
addq $0x3, %rcx
movq -0x168(%rbp), %rax
movq %rdx, -0xb8(%rbp)
movq %rcx, -0xc0(%rbp)
movq %rax, -0xc8(%rbp)
movq -0xb8(%rbp), %rdx
movq (%rdx), %rsi
movq -0xc8(%rbp), %rax
movq -0xc0(%rbp), %rcx
imulq 0x8(%rdx), %rcx
addq %rcx, %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x129(%rbp), %rdi
callq 0x42900
movq (%rax), %rcx
movq %rcx, -0x1f0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1e8(%rbp)
movq -0x108(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x138(%rbp)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1c0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1b8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x108(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x138(%rbp)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1d0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1c8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x108(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x138(%rbp)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1e0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1d8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x108(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x138(%rbp)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1f0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1e8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x1b0(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x1b0(%rbp)
jmp 0x3fb76
movl -0x13c(%rbp), %eax
movl $0x4, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
je 0x3ff4c
jmp 0x3fe84
movq -0x1b0(%rbp), %rax
movslq -0x13c(%rbp), %rcx
cmpq %rcx, %rax
jge 0x3ff4a
movq -0x110(%rbp), %rdx
movq -0x148(%rbp), %rcx
addq -0x1b0(%rbp), %rcx
movq -0x168(%rbp), %rax
movq %rdx, -0xd0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %rax, -0xe0(%rbp)
movq -0xd0(%rbp), %rdx
movq (%rdx), %rsi
movq -0xe0(%rbp), %rax
movq -0xd8(%rbp), %rcx
imulq 0x8(%rdx), %rcx
addq %rcx, %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x129(%rbp), %rdi
callq 0x42900
movq %rax, %rcx
movq -0x108(%rbp), %rax
movq -0x138(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x138(%rbp)
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x1b0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1b0(%rbp)
jmp 0x3fe84
jmp 0x3ff4c
jmp 0x3ff4e
movq -0x168(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x168(%rbp)
jmp 0x3fb57
jmp 0x3ff67
movslq -0x13c(%rbp), %rax
addq -0x148(%rbp), %rax
movq %rax, -0x148(%rbp)
jmp 0x3f8f0
movl -0x13c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x13c(%rbp)
cmpl $0x1, -0x13c(%rbp)
jge 0x3ffb1
movl -0x13c(%rbp), %eax
addl $0x1, %eax
cmpl $0x1, %eax
je 0x3ffb1
movl $0x1, -0x13c(%rbp)
jmp 0x3f88e
jmp 0x3ffb8
movq -0x148(%rbp), %rax
cmpq -0x120(%rbp), %rax
jge 0x400ac
movq $0x0, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rax
cmpq -0x118(%rbp), %rax
jge 0x40093
movq -0x110(%rbp), %rdx
movq -0x148(%rbp), %rcx
movq -0x1f8(%rbp), %rax
movq %rdx, -0xe8(%rbp)
movq %rcx, -0xf0(%rbp)
movq %rax, -0xf8(%rbp)
movq -0xe8(%rbp), %rdx
movq (%rdx), %rsi
movq -0xf8(%rbp), %rax
movq -0xf0(%rbp), %rcx
imulq 0x8(%rdx), %rcx
addq %rcx, %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x129(%rbp), %rdi
callq 0x42900
movq %rax, %rcx
movq -0x108(%rbp), %rax
movq -0x138(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x138(%rbp)
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x1f8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1f8(%rbp)
jmp 0x3ffd7
jmp 0x40095
movq -0x148(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x148(%rbp)
jmp 0x3ffb8
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop