// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r12
movq 0x20(%rdi), %r13
leaq (,%r12,4), %rdi
testq %r13, %r13
movq %r14, 0x8(%rsp)
je 0x14f7a
addq $0x4, %rdi
callq 0x74c0
testq %rax, %rax
je 0x151f4
movq %rax, %r15
testq %r12, %r12
jle 0x14fe2
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq 0x18(%r14), %rdx
xorl %edi, %edi
testq %rcx, %rcx
cmovleq %rdi, %rcx
xorl %esi, %esi
movl %esi, (%r15,%rdi,4)
cmpq %rdi, %rcx
je 0x151d5
movl 0x4(%rdx,%rdi,4), %r8d
movl (%r13,%rdi,4), %r9d
movl (%rdx,%rdi,4), %r10d
movl (%rax,%rdi,4), %r11d
leaq 0x1(%rdi), %rbx
addl %r9d, %r10d
subl %r10d, %r8d
cmpl %r8d, %r11d
cmovgl %r11d, %r8d
addl %r9d, %esi
addl %r8d, %esi
movq %rbx, %rdi
cmpq %rbx, %r12
jne 0x14f3a
jmp 0x14fe4
callq 0x74c0
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x151f4
movq %rax, %r15
xorl %eax, %eax
testq %r12, %r12
jle 0x150c6
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
movq 0x18(%r14), %rdi
testq %rdx, %rdx
cmovleq %rax, %rdx
xorl %esi, %esi
xorl %r8d, %r8d
movl %eax, (%r15,%r8,4)
cmpq %r8, %rdx
je 0x151d5
movslq (%rcx,%r8,4), %r9
addl %r9d, %eax
addl 0x4(%rdi,%r8,4), %eax
subl (%rdi,%r8,4), %eax
leaq 0x1(%r8), %r10
addq %r9, %rsi
movq %r10, %r8
cmpq %r10, %r12
jne 0x14fb1
jmp 0x150c8
xorl %esi, %esi
movl %esi, (%r15,%r12,4)
leaq 0x28(%r14), %rdi
movslq %esi, %rsi
xorps %xmm0, %xmm0
callq 0x15338
movq 0x8(%r14), %rax
movq 0x18(%r14), %rdi
testq %rax, %rax
jle 0x150aa
movq 0x8(%rsp), %rsi
movq 0x20(%rsi), %rcx
movq 0x28(%rsi), %rdx
movq 0x30(%rsi), %rsi
movq %rax, %r8
decq %rax
movslq -0x4(%r15,%r8,4), %r12
movl -0x4(%rdi,%r8,4), %r9d
cmpl %r9d, %r12d
jle 0x150a0
movl (%rcx,%rax,4), %r13d
testl %r13d, %r13d
jle 0x150a0
decl %r13d
leaq (,%r13,4), %r11
leaq 0x4(,%r13,4), %r10
leaq (%r11,%r12,4), %r11
addq %rsi, %r11
leaq (%rsi,%r13,4), %r14
leaq (,%r13,8), %rbx
leaq (%rbx,%r12,8), %r12
addq %rdx, %r12
leaq (%rdx,%r13,8), %r13
xorl %ebp, %ebp
movslq %r9d, %r9
leaq (%r14,%r9,4), %r9
movl (%rbp,%r9), %r9d
movl %r9d, (%r11,%rbp)
movslq (%rdi,%rax,4), %r9
leaq (,%r9,8), %rbx
addq %r13, %rbx
movsd (%rbx,%rbp,2), %xmm0
movsd %xmm0, (%r12,%rbp,2)
addq $-0x4, %rbp
movq %r10, %rbx
addq %rbp, %rbx
jne 0x1506a
cmpq $0x1, %r8
jg 0x15019
movq 0x8(%rsp), %rax
movq %r15, 0x18(%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7430
xorl %esi, %esi
leaq 0x28(%r14), %rdi
movq %rdi, 0x18(%rsp)
callq 0x15222
movq 0x8(%r14), %r9
testq %r9, %r9
jle 0x151d5
movq %rbx, 0x20(%rsp)
movq 0x18(%r14), %rcx
movl (%rcx,%r9,4), %r8d
movq 0x30(%r14), %rdx
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdi
movq %r9, 0x10(%rsp)
leaq -0x1(%r9), %r10
movl -0x4(%rcx,%r9,4), %r11d
subl %r11d, %r8d
jle 0x15169
leal -0x1(%r8), %eax
movl (%r15,%r10,4), %r13d
leaq 0x4(,%rax,4), %rbp
leaq (%rdx,%rax,4), %r12
leaq (%rdi,%rax,8), %r14
xorl %eax, %eax
movslq %r11d, %r11
leaq (%r12,%r11,4), %r11
movl (%rax,%r11), %r11d
movslq %r13d, %r13
leaq (%r12,%r13,4), %r13
movl %r11d, (%rax,%r13)
movslq (%rcx,%r10,4), %r11
leaq (%r14,%r11,8), %r13
movsd (%r13,%rax,2), %xmm0
movslq (%r15,%r10,4), %r13
leaq (%r14,%r13,8), %rbx
movsd %xmm0, (%rbx,%rax,2)
addq $-0x4, %rax
movq %rbp, %rbx
addq %rax, %rbx
jne 0x15129
jmp 0x1516d
movl (%r15,%r10,4), %r13d
movl %r13d, (%rcx,%r10,4)
movl %r8d, (%rsi,%r10,4)
movl %r11d, %r8d
cmpq $0x1, %r9
movq %r10, %r9
jg 0x15101
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rsi
jle 0x151d5
cmpq %rdi, 0x8(%rsi)
jl 0x151d5
movslq -0x4(%rcx,%rdi,4), %rax
movq 0x20(%rdx), %rdx
movslq -0x4(%rdx,%rdi,4), %rdx
addq %rax, %rdx
movq (%rsi), %rax
movslq -0x4(%rax,%rdi,4), %rsi
addq %rdx, %rsi
movl %esi, (%rcx,%rdi,4)
xorps %xmm0, %xmm0
movq 0x18(%rsp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x15338
leaq 0x36398(%rip), %rdi     # 0x4b574
leaq 0x363ae(%rip), %rsi     # 0x4b591
leaq 0x36457(%rip), %rcx     # 0x4b641
movl $0xa2, %edx
callq 0x7240
movl $0x8, %edi
callq 0x71b0
movq 0x4bd7b(%rip), %rcx     # 0x60f80
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x4bd8d(%rip), %rsi     # 0x60fa0
movq 0x4bd3e(%rip), %rdx     # 0x60f58
movq %rax, %rdi
callq 0x7690