// File: icemiliang[P]vot/src/vot/../../include/Eigen/src/SparseCore/SparseMatrix.h
// Function: void Eigen::SparseMatrix<double, 1, int>::reserveInnerVectors<Eigen::Matrix<int, -1, 1, 0, -1, 1>>(Eigen::Matrix<int, -1, 1, 0, -1, 1> const&)
inline void reserveInnerVectors(const SizesType& reserveSizes)
    {
      if(isCompressed())
      {
        Index totalReserveSize = 0;
        // turn the matrix into non-compressed mode
        m_innerNonZeros = static_cast<StorageIndex*>(std::malloc(m_outerSize * sizeof(StorageIndex)));
        if (!m_innerNonZeros) internal::throw_std_bad_alloc();
        
        // temporarily use m_innerSizes to hold the new starting points.
        StorageIndex* newOuterIndex = m_innerNonZeros;
        
        StorageIndex count = 0;
        for(Index j=0; j<m_outerSize; ++j)
        {
          newOuterIndex[j] = count;
          count += reserveSizes[j] + (m_outerIndex[j+1]-m_outerIndex[j]);
          totalReserveSize += reserveSizes[j];
        }
        m_data.reserve(totalReserveSize);
        StorageIndex previousOuterIndex = m_outerIndex[m_outerSize];
        for(Index j=m_outerSize-1; j>=0; --j)
        {
          StorageIndex innerNNZ = previousOuterIndex - m_outerIndex[j];
          for(Index i=innerNNZ-1; i>=0; --i)
          {
            m_data.index(newOuterIndex[j]+i) = m_data.index(m_outerIndex[j]+i);
            m_data.value(newOuterIndex[j]+i) = m_data.value(m_outerIndex[j]+i);
          }
          previousOuterIndex = m_outerIndex[j];
          m_outerIndex[j] = newOuterIndex[j];
          m_innerNonZeros[j] = innerNNZ;
        }
        m_outerIndex[m_outerSize] = m_outerIndex[m_outerSize-1] + m_innerNonZeros[m_outerSize-1] + reserveSizes[m_outerSize-1];
        
        m_data.resize(m_outerIndex[m_outerSize]);
      }
      else
      {
        StorageIndex* newOuterIndex = static_cast<StorageIndex*>(std::malloc((m_outerSize+1)*sizeof(StorageIndex)));
        if (!newOuterIndex) internal::throw_std_bad_alloc();
        
        StorageIndex count = 0;
        for(Index j=0; j<m_outerSize; ++j)
        {
          newOuterIndex[j] = count;
          StorageIndex alreadyReserved = (m_outerIndex[j+1]-m_outerIndex[j]) - m_innerNonZeros[j];
          StorageIndex toReserve = std::max<StorageIndex>(reserveSizes[j], alreadyReserved);
          count += toReserve + m_innerNonZeros[j];
        }
        newOuterIndex[m_outerSize] = count;
        
        m_data.resize(count);
        for(Index j=m_outerSize-1; j>=0; --j)
        {
          Index offset = newOuterIndex[j] - m_outerIndex[j];
          if(offset>0)
          {
            StorageIndex innerNNZ = m_innerNonZeros[j];
            for(Index i=innerNNZ-1; i>=0; --i)
            {
              m_data.index(newOuterIndex[j]+i) = m_data.index(m_outerIndex[j]+i);
              m_data.value(newOuterIndex[j]+i) = m_data.value(m_outerIndex[j]+i);
            }
          }
        }
        
        std::swap(m_outerIndex, newOuterIndex);
        std::free(newOuterIndex);
      }
      
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0x27d80
testb $0x1, %al
jne 0x2782c
jmp 0x27aeb
movq -0x98(%rbp), %rax
movq $0x0, -0x18(%rbp)
movq 0x8(%rax), %rdi
shlq $0x2, %rdi
callq 0xa6b0
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, 0x20(%rax)
jne 0x27862
callq 0x26450
movq -0x98(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x98(%rbp), %rcx
movq -0x30(%rbp), %rax
cmpq 0x8(%rcx), %rax
jge 0x278fa
movl -0x24(%rbp), %edx
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x27db0
movq -0x98(%rbp), %rdx
movl (%rax), %eax
movq 0x18(%rdx), %rcx
movq -0x30(%rbp), %rsi
movl 0x4(%rcx,%rsi,4), %ecx
movq 0x18(%rdx), %rdx
movq -0x30(%rbp), %rsi
subl (%rdx,%rsi,4), %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x27db0
movslq (%rax), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x27880
movq -0x98(%rbp), %rdi
addq $0x28, %rdi
movq -0x18(%rbp), %rsi
callq 0x27e40
movq -0x98(%rbp), %rax
movq 0x18(%rax), %rcx
movq 0x8(%rax), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x34(%rbp)
movq 0x8(%rax), %rax
subq $0x1, %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jl 0x27a75
movq -0x98(%rbp), %rcx
movl -0x34(%rbp), %eax
movq 0x18(%rcx), %rcx
movq -0x40(%rbp), %rdx
subl (%rcx,%rdx,4), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
subl $0x1, %eax
cltq
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jl 0x27a2b
movq -0x98(%rbp), %rax
movq %rax, %rdi
addq $0x28, %rdi
movq 0x18(%rax), %rax
movq -0x40(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x50(%rbp), %rsi
callq 0x27e90
movq -0x98(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0xa4(%rbp)
addq $0x28, %rdi
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x50(%rbp), %rsi
callq 0x27e90
movl -0xa4(%rbp), %edx
movq %rax, %rcx
movq -0x98(%rbp), %rax
movl %edx, (%rcx)
movq %rax, %rdi
addq $0x28, %rdi
movq 0x18(%rax), %rax
movq -0x40(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x50(%rbp), %rsi
callq 0x27ec0
movq -0x98(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0xa0(%rbp)
addq $0x28, %rdi
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x50(%rbp), %rsi
callq 0x27ec0
movsd -0xa0(%rbp), %xmm0
movsd %xmm0, (%rax)
movq -0x50(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x2795e
movq -0x98(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x40(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movl %ecx, -0x34(%rbp)
movq -0x20(%rbp), %rcx
movq -0x40(%rbp), %rdx
movl (%rcx,%rdx,4), %esi
movq 0x18(%rax), %rcx
movq -0x40(%rbp), %rdx
movl %esi, (%rcx,%rdx,4)
movl -0x44(%rbp), %edx
movq 0x20(%rax), %rax
movq -0x40(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x40(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x2792f
movq -0x98(%rbp), %rax
movq 0x18(%rax), %rcx
movq 0x8(%rax), %rdx
subq $0x1, %rdx
movl (%rcx,%rdx,4), %ecx
movq 0x20(%rax), %rdx
movq 0x8(%rax), %rsi
subq $0x1, %rsi
addl (%rdx,%rsi,4), %ecx
movl %ecx, -0xa8(%rbp)
movq -0x10(%rbp), %rdi
movq 0x8(%rax), %rsi
subq $0x1, %rsi
callq 0x27db0
movl -0xa8(%rbp), %esi
movq -0x98(%rbp), %rcx
addl (%rax), %esi
movq 0x18(%rcx), %rax
movq 0x8(%rcx), %rdx
movl %esi, (%rax,%rdx,4)
movq %rcx, %rdi
addq $0x28, %rdi
movq 0x18(%rcx), %rax
movq 0x8(%rcx), %rcx
movslq (%rax,%rcx,4), %rsi
xorps %xmm0, %xmm0
callq 0x27ee0
jmp 0x27d6a
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rdi
addq $0x1, %rdi
shlq $0x2, %rdi
callq 0xa6b0
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x27b13
callq 0x26450
movl $0x0, -0x5c(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x98(%rbp), %rcx
movq -0x68(%rbp), %rax
cmpq 0x8(%rcx), %rax
jge 0x27bbb
movq -0x98(%rbp), %rcx
movl -0x5c(%rbp), %esi
movq -0x58(%rbp), %rax
movq -0x68(%rbp), %rdx
movl %esi, (%rax,%rdx,4)
movq 0x18(%rcx), %rax
movq -0x68(%rbp), %rdx
movl 0x4(%rax,%rdx,4), %eax
movq 0x18(%rcx), %rdx
movq -0x68(%rbp), %rsi
subl (%rdx,%rsi,4), %eax
movq 0x20(%rcx), %rcx
movq -0x68(%rbp), %rdx
subl (%rcx,%rdx,4), %eax
movl %eax, -0x6c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x27db0
movq %rax, %rdi
leaq -0x6c(%rbp), %rsi
callq 0x27f80
movq -0x98(%rbp), %rcx
movl (%rax), %eax
movl %eax, -0x70(%rbp)
movl -0x70(%rbp), %eax
movq 0x20(%rcx), %rcx
movq -0x68(%rbp), %rdx
addl (%rcx,%rdx,4), %eax
addl -0x5c(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x27b22
movq -0x98(%rbp), %rdi
movl -0x5c(%rbp), %edx
movq -0x58(%rbp), %rax
movq 0x8(%rdi), %rcx
movl %edx, (%rax,%rcx,4)
addq $0x28, %rdi
movslq -0x5c(%rbp), %rsi
xorps %xmm0, %xmm0
callq 0x27ee0
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rax
subq $0x1, %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x78(%rbp)
jl 0x27d4d
movq -0x98(%rbp), %rcx
movq -0x58(%rbp), %rax
movq -0x78(%rbp), %rdx
movl (%rax,%rdx,4), %eax
movq 0x18(%rcx), %rcx
movq -0x78(%rbp), %rdx
subl (%rcx,%rdx,4), %eax
cltq
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
jle 0x27d3a
movq -0x98(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x78(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
subl $0x1, %eax
cltq
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
jl 0x27d38
movq -0x98(%rbp), %rax
movq %rax, %rdi
addq $0x28, %rdi
movq 0x18(%rax), %rax
movq -0x78(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x90(%rbp), %rsi
callq 0x27e90
movq -0x98(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0xb4(%rbp)
addq $0x28, %rdi
movq -0x58(%rbp), %rax
movq -0x78(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x90(%rbp), %rsi
callq 0x27e90
movl -0xb4(%rbp), %edx
movq %rax, %rcx
movq -0x98(%rbp), %rax
movl %edx, (%rcx)
movq %rax, %rdi
addq $0x28, %rdi
movq 0x18(%rax), %rax
movq -0x78(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x90(%rbp), %rsi
callq 0x27ec0
movq -0x98(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0xb0(%rbp)
addq $0x28, %rdi
movq -0x58(%rbp), %rax
movq -0x78(%rbp), %rcx
movslq (%rax,%rcx,4), %rsi
addq -0x90(%rbp), %rsi
callq 0x27ec0
movsd -0xb0(%rbp), %xmm0
movsd %xmm0, (%rax)
movq -0x90(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x90(%rbp)
jmp 0x27c56
jmp 0x27d3a
jmp 0x27d3c
movq -0x78(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x27bf3
movq -0x98(%rbp), %rdi
addq $0x18, %rdi
leaq -0x58(%rbp), %rsi
callq 0x27fc0
movq -0x58(%rbp), %rdi
callq 0xa5c0
addq $0xc0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)