// File: /workspace/github_cpp_makefile_star2_O2/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
subq $0x18, %rsp
movq %r8, %rax
movq %r9, %r8
subq %rcx, %r8
jl 0x1961e
movq 0x50(%rsp), %r11
cmpq %r9, %r11
jg 0x1961e
movq %rdx, %rdi
pushq $0x4
popq %r10
movq %rax, 0x8(%rsp)
cqto
idivq %r10
leaq (,%rax,4), %rdx
xorl %r14d, %r14d
testq %rcx, %rcx
movl $0x0, %r10d
cmovgq %rcx, %r10
shlq $0x2, %r9
shlq $0x2, %rcx
subq %rcx, %r9
movq %r11, %rcx
shlq $0x5, %rcx
movq %rsi, 0x10(%rsp)
addq %rsi, %rcx
addq $0x18, %rcx
pushq $0x18
popq %r15
xorl %r12d, %r12d
cmpq %rdx, %r12
jge 0x195b8
movq 0x8(%rdi), %r13
leaq (%rcx,%r14,8), %rbp
addq %r9, %r14
movq (%rdi), %r11
addq %r15, %r11
shlq $0x3, %r13
movq %r10, %rbx
subq $0x1, %rbx
jb 0x195ae
movsd -0x18(%r11), %xmm0
movsd %xmm0, -0x18(%rbp)
movsd -0x10(%r11), %xmm0
movsd %xmm0, -0x10(%rbp)
movsd -0x8(%r11), %xmm0
movsd %xmm0, -0x8(%rbp)
movsd (%r11), %xmm0
movsd %xmm0, (%rbp)
addq $0x4, %r14
addq $0x20, %rbp
addq %r13, %r11
jmp 0x19570
addq $0x4, %r12
addq $0x20, %r15
jmp 0x19553
shlq $0x5, %rax
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %r15
movq 0x50(%rsp), %r12
cmpq %r15, %rdx
jge 0x1960f
leaq (%r14,%r12), %r9
movq 0x8(%rdi), %rcx
leaq (%rsi,%r9,8), %r9
movq (%rdi), %r11
addq %rax, %r11
shlq $0x3, %rcx
xorl %ebx, %ebx
cmpq %rbx, %r10
je 0x19600
movsd (%r11), %xmm0
movsd %xmm0, (%r9,%rbx,8)
incq %rbx
addq %rcx, %r11
jmp 0x195e8
addq %r8, %r14
addq %rbx, %r14
incq %rdx
addq $0x8, %rax
jmp 0x195cb
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27742(%rip), %rdi     # 0x40d67
leaq 0x27796(%rip), %rsi     # 0x40dc2
leaq 0x27926(%rip), %rcx     # 0x40f59
movl $0xa68, %edx            # imm = 0xA68
callq 0x62b0
nop