// File: /workspace/github_cpp_makefile_star2_O3/j-faria[P]kima/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h
// Function: Eigen::internal::gemm_pack_rhs<double, long, Eigen::internal::const_blas_data_mapper<double, long, 1>, 4, 1, false, true>::operator()(double*, Eigen::internal::const_blas_data_mapper<double, long, 1> const&, long, long, long, long)
EIGEN_DONT_INLINE void gemm_pack_rhs<Scalar, Index, DataMapper, nr, RowMajor, Conjugate, PanelMode>
  ::operator()(Scalar* blockB, const DataMapper& rhs, Index depth, Index cols, Index stride, Index offset)
{
  EIGEN_ASM_COMMENT("EIGEN PRODUCT PACK RHS ROWMAJOR");
  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 packet_cols8 = nr>=8 ? (cols/8) * 8 : 0;
  Index packet_cols4 = nr>=4 ? (cols/4) * 4 : 0;
  Index count = 0;

//   if(nr>=8)
//   {
//     for(Index j2=0; j2<packet_cols8; j2+=8)
//     {
//       // skip what we have before
//       if(PanelMode) count += 8 * offset;
//       for(Index k=0; k<depth; k++)
//       {
//         if (PacketSize==8) {
//           Packet A = ploadu<Packet>(&rhs[k*rhsStride + j2]);
//           pstoreu(blockB+count, cj.pconj(A));
//         } else if (PacketSize==4) {
//           Packet A = ploadu<Packet>(&rhs[k*rhsStride + j2]);
//           Packet B = ploadu<Packet>(&rhs[k*rhsStride + j2 + PacketSize]);
//           pstoreu(blockB+count, cj.pconj(A));
//           pstoreu(blockB+count+PacketSize, cj.pconj(B));
//         } else {
//           const Scalar* b0 = &rhs[k*rhsStride + j2];
//           blockB[count+0] = cj(b0[0]);
//           blockB[count+1] = cj(b0[1]);
//           blockB[count+2] = cj(b0[2]);
//           blockB[count+3] = cj(b0[3]);
//           blockB[count+4] = cj(b0[4]);
//           blockB[count+5] = cj(b0[5]);
//           blockB[count+6] = cj(b0[6]);
//           blockB[count+7] = cj(b0[7]);
//         }
//         count += 8;
//       }
//       // skip what we have after
//       if(PanelMode) count += 8 * (stride-offset-depth);
//     }
//   }
  if(nr>=4)
  {
    for(Index j2=packet_cols8; j2<packet_cols4; j2+=4)
    {
      // skip what we have before
      if(PanelMode) count += 4 * offset;
      for(Index k=0; k<depth; k++)
      {
        if (PacketSize==4) {
          Packet A = rhs.template loadPacket<Packet>(k, j2);
          pstoreu(blockB+count, cj.pconj(A));
          count += PacketSize;
        } else {
          const LinearMapper dm0 = rhs.getLinearMapper(k, j2);
          blockB[count+0] = cj(dm0(0));
          blockB[count+1] = cj(dm0(1));
          blockB[count+2] = cj(dm0(2));
          blockB[count+3] = cj(dm0(3));
          count += 4;
        }
      }
      // skip what we have after
      if(PanelMode) count += 4 * (stride-offset-depth);
    }
  }
  // copy the remaining columns one at a time (nr==1)
  for(Index j2=packet_cols4; j2<cols; ++j2)
  {
    if(PanelMode) count += offset;
    for(Index k=0; k<depth; k++)
    {
      blockB[count] = cj(rhs(k, j2));
      count += 1;
    }
    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 0x1bd17
movq %rcx, %rax
movq 0x40(%rsp), %rcx
cmpq %r9, %rcx
jg 0x1bd17
leaq 0x3(%r8), %rdi
testq %r8, %r8
cmovnsq %r8, %rdi
movq %rdi, %r10
andq $-0x4, %r10
cmpq $0x4, %r8
movq %rdx, (%rsp)
jl 0x1bcac
leaq (,%rcx,4), %rbx
movq (%rdx), %r14
movq 0x8(%rdx), %r15
addq %rax, %rcx
movq %r9, %r12
subq %rcx, %r12
shlq $0x2, %r12
addq $0x18, %r14
shlq $0x3, %r15
xorl %r13d, %r13d
xorl %r11d, %r11d
addq %rbx, %r11
movq %r14, %rbp
movq %rax, %rcx
testq %rax, %rax
jle 0x1bc9a
movsd -0x18(%rbp), %xmm0
movsd %xmm0, (%rsi,%r11,8)
movsd -0x10(%rbp), %xmm0
movsd %xmm0, 0x8(%rsi,%r11,8)
movsd -0x8(%rbp), %xmm0
movsd %xmm0, 0x10(%rsi,%r11,8)
movsd (%rbp), %xmm0
movsd %xmm0, 0x18(%rsi,%r11,8)
addq $0x4, %r11
addq %r15, %rbp
decq %rcx
jne 0x1bc5f
addq %r12, %r11
addq $0x4, %r13
addq $0x20, %r14
cmpq %r10, %r13
jl 0x1bc51
jmp 0x1bcaf
xorl %r11d, %r11d
cmpq %r8, %r10
movq 0x40(%rsp), %r15
jge 0x1bd08
sarq $0x2, %rdi
movq (%rsp), %rdx
movq 0x8(%rdx), %rbx
subq %rax, %r9
subq %r15, %r9
shlq $0x5, %rdi
addq (%rdx), %rdi
shlq $0x3, %rbx
addq %r15, %r11
movq %rdi, %rcx
movq %rax, %r14
testq %rax, %rax
jle 0x1bcf9
movsd (%rcx), %xmm0
movsd %xmm0, (%rsi,%r11,8)
incq %r11
addq %rbx, %rcx
decq %r14
jne 0x1bce4
addq %r9, %r11
incq %r10
addq $0x8, %rdi
cmpq %r8, %r10
jne 0x1bcd6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x243d4(%rip), %rdi     # 0x400f2
leaq 0x24428(%rip), %rsi     # 0x4014d
leaq 0x245b8(%rip), %rcx     # 0x402e4
movl $0xa68, %edx            # imm = 0xA68
callq 0x62b0