// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/../../include/Eigen/src/SparseCore/SparseMatrix.h
// Function: Eigen::SparseMatrix<double, 0, int>& Eigen::SparseMatrix<double, 0, int>::operator=<Eigen::Transpose<Eigen::SparseMatrix<double, 0, int>>>(Eigen::SparseMatrixBase<Eigen::Transpose<Eigen::SparseMatrix<double, 0, int>>> const&)
EIGEN_DONT_INLINE SparseMatrix<Scalar,_Options,_StorageIndex>& SparseMatrix<Scalar,_Options,_StorageIndex>::operator=(const SparseMatrixBase<OtherDerived>& other)
{
  EIGEN_STATIC_ASSERT((internal::is_same<Scalar, typename OtherDerived::Scalar>::value),
        YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY)

  #ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
    EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
  #endif
      
  const bool needToTranspose = (Flags & RowMajorBit) != (internal::evaluator<OtherDerived>::Flags & RowMajorBit);
  if (needToTranspose)
  {
    #ifdef EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
      EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
    #endif
    // two passes algorithm:
    //  1 - compute the number of coeffs per dest inner vector
    //  2 - do the actual copy/eval
    // Since each coeff of the rhs has to be evaluated twice, let's evaluate it if needed
    typedef typename internal::nested_eval<OtherDerived,2,typename internal::plain_matrix_type<OtherDerived>::type >::type OtherCopy;
    typedef typename internal::remove_all<OtherCopy>::type _OtherCopy;
    typedef internal::evaluator<_OtherCopy> OtherCopyEval;
    OtherCopy otherCopy(other.derived());
    OtherCopyEval otherCopyEval(otherCopy);

    SparseMatrix dest(other.rows(),other.cols());
    Eigen::Map<IndexVector> (dest.m_outerIndex,dest.outerSize()).setZero();

    // pass 1
    // FIXME the above copy could be merged with that pass
    for (Index j=0; j<otherCopy.outerSize(); ++j)
      for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it)
        ++dest.m_outerIndex[it.index()];

    // prefix sum
    StorageIndex count = 0;
    IndexVector positions(dest.outerSize());
    for (Index j=0; j<dest.outerSize(); ++j)
    {
      StorageIndex tmp = dest.m_outerIndex[j];
      dest.m_outerIndex[j] = count;
      positions[j] = count;
      count += tmp;
    }
    dest.m_outerIndex[dest.outerSize()] = count;
    // alloc
    dest.m_data.resize(count);
    // pass 2
    for (StorageIndex j=0; j<otherCopy.outerSize(); ++j)
    {
      for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it)
      {
        Index pos = positions[it.index()]++;
        dest.m_data.index(pos) = j;
        dest.m_data.value(pos) = it.value();
      }
    }
    this->swap(dest);
    return *this;
  }
  else
  {
    if(other.isRValue())
    {
      initAssignment(other.derived());
    }
    // there is no special optimization
    return Base::operator=(other.derived());
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq 0x8(%rsi), %r14
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
leaq 0x10(%rsp), %rdi
movb $0x0, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
callq 0x165c6
movq 0x18(%rsp), %r13
testq %r13, %r13
js 0x16509
movq %r14, 0x60(%rsp)
movq 0x28(%rsp), %rax
movq %r13, %rbp
testb $0x3, %al
jne 0x16229
movl %eax, %ebp
shrl $0x2, %ebp
negl %ebp
andl $0x3, %ebp
cmpq %r13, %rbp
cmovaeq %r13, %rbp
movq %rbx, 0x58(%rsp)
movq %r13, %r15
subq %rbp, %r15
leaq 0x3(%r15), %rbx
testq %r15, %r15
cmovnsq %r15, %rbx
movq %rbx, %r12
andq $-0x4, %r12
testq %rbp, %rbp
je 0x16263
leaq (,%rbp,4), %rdx
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
callq 0x71e0
movq %r14, %rax
leaq (%r12,%rbp), %r14
cmpq $0x4, %r15
jl 0x162a7
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
leaq (%rax,%rbp,4), %rdi
leaq 0x4(%rbp), %rax
cmpq %rax, %r14
cmovgq %r14, %rax
movq %rbp, %rcx
notq %rcx
addq %rax, %rcx
andq $-0x4, %rcx
leaq 0x10(,%rcx,4), %rdx
xorl %esi, %esi
callq 0x71e0
movq 0x8(%rsp), %rax
cmpq %r13, %r14
jge 0x162cc
sarq $0x2, %rbx
shlq $0x4, %rbx
addq %rbx, %rax
leaq (%rax,%rbp,4), %rdi
subq %r12, %r15
shlq $0x2, %r15
xorl %esi, %esi
movq %r15, %rdx
callq 0x71e0
movq 0x60(%rsp), %rbx
movq 0x8(%rbx), %rax
testq %rax, %rax
jle 0x16322
movq 0x30(%rbx), %rcx
movq 0x18(%rbx), %rdx
movq 0x20(%rbx), %rsi
movq 0x28(%rsp), %rdi
xorl %r8d, %r8d
movslq (%rdx,%r8,4), %r9
testq %rsi, %rsi
je 0x16300
movslq (%rsi,%r8,4), %r10
addq %r9, %r10
jmp 0x16305
movslq 0x4(%rdx,%r8,4), %r10
cmpq %r9, %r10
jle 0x1631a
movslq (%rcx,%r9,4), %r11
incl (%rdi,%r11,4)
incq %r9
cmpq %r9, %r10
jne 0x1630a
incq %r8
cmpq %rax, %r8
jne 0x162ee
movq 0x18(%rsp), %r13
testq %r13, %r13
js 0x16528
je 0x1638f
movq %r13, %rax
shrq $0x3e, %rax
jne 0x164db
leaq (,%r13,4), %rdi
callq 0x74c0
movq %rax, %r14
cmpq $0x4, %r13
setae %al
testb $0xf, %r14b
setne %cl
testb %cl, %al
jne 0x16547
testq %r14, %r14
je 0x164db
xorl %ecx, %ecx
movq 0x28(%rsp), %rdx
xorl %eax, %eax
movl %eax, %esi
movl (%rdx,%rcx,4), %eax
addl %esi, %eax
movl %esi, (%rdx,%rcx,4)
movl %esi, (%r14,%rcx,4)
incq %rcx
cmpq %rcx, %r13
jne 0x16377
jmp 0x16394
xorl %r14d, %r14d
xorl %eax, %eax
leaq 0x38(%rsp), %rdi
movq -0x10(%rdi), %rcx
movl %eax, (%rcx,%r13,4)
movslq %eax, %rsi
xorps %xmm0, %xmm0
callq 0x15338
movq 0x8(%rbx), %rax
testq %rax, %rax
jle 0x16430
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdi
xorl %r8d, %r8d
movslq (%rsi,%r8,4), %r9
testq %rdi, %rdi
je 0x163da
movslq (%rdi,%r8,4), %r10
addq %r9, %r10
jmp 0x163df
movslq 0x4(%rsi,%r8,4), %r10
cmpq %r9, %r10
jle 0x16428
movq 0x38(%rsp), %r11
movq 0x40(%rsp), %rbx
movslq (%rdx,%r9,4), %r12
testq %r12, %r12
js 0x164bc
cmpq %r12, %r13
jle 0x164bc
movslq (%r14,%r12,4), %rbp
leal 0x1(%rbp), %r15d
movl %r15d, (%r14,%r12,4)
movl %r8d, (%rbx,%rbp,4)
movsd (%rcx,%r9,8), %xmm0
movsd %xmm0, (%r11,%rbp,8)
incq %r9
cmpq %r9, %r10
jne 0x163ee
incq %r8
cmpq %rax, %r8
jne 0x163c8
movq 0x58(%rsp), %rbx
movq 0x18(%rbx), %r12
movups 0x18(%rsp), %xmm0
movups 0x8(%rbx), %xmm1
movups %xmm0, 0x8(%rbx)
movups %xmm1, 0x18(%rsp)
movups 0x28(%rsp), %xmm0
movups 0x38(%rsp), %xmm1
movq %r12, 0x28(%rsp)
movq 0x30(%rbx), %rax
movups 0x20(%rbx), %xmm2
movups %xmm0, 0x18(%rbx)
movups %xmm2, 0x30(%rsp)
movups %xmm1, 0x28(%rbx)
movq %rax, 0x40(%rsp)
movups 0x48(%rsp), %xmm0
movups 0x38(%rbx), %xmm1
movups %xmm0, 0x38(%rbx)
movups %xmm1, 0x48(%rsp)
movq %r14, %rdi
callq 0x7430
movq %r12, %rdi
callq 0x7430
movq 0x30(%rsp), %rdi
callq 0x7430
leaq 0x38(%rsp), %rdi
callq 0x14eb6
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x350b1(%rip), %rdi     # 0x4b574
leaq 0x350c7(%rip), %rsi     # 0x4b591
leaq 0x3544a(%rip), %rcx     # 0x4b91b
movl $0x198, %edx            # imm = 0x198
callq 0x7240
movl $0x8, %edi
callq 0x71b0
movq 0x4aa94(%rip), %rcx     # 0x60f80
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x4aaa6(%rip), %rsi     # 0x60fa0
movq 0x4aa57(%rip), %rdx     # 0x60f58
movq %rax, %rdi
callq 0x7690
leaq 0x35344(%rip), %rdi     # 0x4b854
leaq 0x3534a(%rip), %rsi     # 0x4b861
leaq 0x3536a(%rip), %rcx     # 0x4b888
movl $0xa3, %edx
callq 0x7240
leaq 0x34ac0(%rip), %rdi     # 0x4afef
leaq 0x34b43(%rip), %rsi     # 0x4b079
leaq 0x34b6b(%rip), %rcx     # 0x4b0a8
movl $0x138, %edx            # imm = 0x138
callq 0x7240
leaq 0x34bc6(%rip), %rdi     # 0x4b114
leaq 0x34c79(%rip), %rsi     # 0x4b1ce
leaq 0x34c9d(%rip), %rcx     # 0x4b1f9
movl $0xa1, %edx
callq 0x7240
movq %rax, %rbx
movq %r14, %rdi
callq 0x7430
jmp 0x16585
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x14eb6
jmp 0x1658f
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x13afc
movq %rbx, %rdi
callq 0x76d0
nop