// File: /workspace/github_cpp_makefile_star2_O1/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 $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %r12
movq 0x20(%rdi), %r13
leaq (,%r12,4), %rdi
testq %r13, %r13
je 0x1503f
addq $0x4, %rdi
callq 0x74b0
testq %rax, %rax
je 0x1529e
movq %rax, %r15
testq %r12, %r12
jle 0x150a7
movq (%r14), %rax
movq 0x8(%r14), %rcx
movq 0x18(%rbx), %rdx
xorl %edi, %edi
testq %rcx, %rcx
cmovleq %rdi, %rcx
xorl %esi, %esi
movl %esi, (%r15,%rdi,4)
cmpq %rdi, %rcx
je 0x1527f
movl 0x4(%rdx,%rdi,4), %r8d
movl (%r13,%rdi,4), %r9d
movl (%rdx,%rdi,4), %r10d
movl (%rax,%rdi,4), %r11d
leaq 0x1(%rdi), %r14
addl %r9d, %r10d
subl %r10d, %r8d
cmpl %r8d, %r11d
cmovgl %r11d, %r8d
addl %r9d, %esi
addl %r8d, %esi
movq %r14, %rdi
cmpq %r14, %r12
jne 0x14fff
jmp 0x150a9
callq 0x74b0
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x1529e
movq %rax, %r15
xorl %eax, %eax
testq %r12, %r12
jle 0x1516a
movq (%r14), %rcx
movq 0x8(%r14), %rdx
movq 0x18(%rbx), %rdi
testq %rdx, %rdx
cmovleq %rax, %rdx
xorl %esi, %esi
xorl %r8d, %r8d
movl %eax, (%r15,%r8,4)
cmpq %r8, %rdx
je 0x1527f
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 0x15076
jmp 0x1516c
xorl %esi, %esi
movl %esi, (%r15,%r12,4)
leaq 0x28(%rbx), %rdi
movslq %esi, %rsi
xorps %xmm0, %xmm0
callq 0x153b8
movq 0x8(%rbx), %rax
testq %rax, %rax
jle 0x1514f
movq 0x18(%rbx), %rcx
movq 0x20(%rbx), %rdx
movq 0x30(%rbx), %rsi
movq 0x28(%rbx), %rdi
movq %rax, %r8
decq %rax
movl -0x4(%r15,%r8,4), %r9d
cmpl -0x4(%rcx,%r8,4), %r9d
jle 0x15149
movslq (%rdx,%rax,4), %r11
testq %r11, %r11
jle 0x15149
leaq -0x1(%r11), %r9
leaq (%rsi,%r11,4), %r10
addq $-0x4, %r10
leaq (%rdi,%r11,8), %r11
addq $-0x8, %r11
movl $0x1, %r14d
movslq (%rcx,%rax,4), %r12
movl (%r10,%r12,4), %ebp
movslq (%r15,%rax,4), %r12
movl %ebp, (%r10,%r12,4)
movslq (%rcx,%rax,4), %r12
movsd (%r11,%r12,8), %xmm0
movslq (%r15,%rax,4), %r12
movsd %xmm0, (%r11,%r12,8)
leaq (%r9,%r14), %r12
decq %r12
decq %r14
addq $-0x4, %r10
addq $-0x8, %r11
testq %r12, %r12
jg 0x1510e
cmpq $0x1, %r8
jg 0x150d9
movq 0x18(%rbx), %rdi
movq %r15, 0x18(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7420
xorl %esi, %esi
movq %r14, 0x10(%rsp)
leaq 0x28(%rbx), %rdi
movq %rdi, 0x8(%rsp)
callq 0x152cc
movq 0x8(%rbx), %rax
movq 0x18(%rbx), %rcx
movq %rax, (%rsp)
testq %rax, %rax
jle 0x15230
movq (%rsp), %r8
movl (%rcx,%r8,4), %r11d
movq 0x30(%rbx), %rdx
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdi
leaq -0x1(%r8), %r9
movslq -0x4(%rcx,%r8,4), %r12
movslq %r11d, %r10
subq %r12, %r10
testl %r10d, %r10d
jle 0x15213
leaq -0x1(%r10), %r11
leaq (%rdx,%r10,4), %r13
addq $-0x4, %r13
leaq (%rdi,%r10,8), %rbp
addq $-0x8, %rbp
movl $0x1, %r12d
movslq (%rcx,%r9,4), %r14
movl (%r13,%r14,4), %r14d
movslq (%r15,%r9,4), %rax
movl %r14d, (%r13,%rax,4)
movslq (%rcx,%r9,4), %rax
movsd (%rbp,%rax,8), %xmm0
movslq (%r15,%r9,4), %rax
movsd %xmm0, (%rbp,%rax,8)
leaq (%r11,%r12), %rax
decq %rax
decq %r12
addq $-0x4, %r13
addq $-0x8, %rbp
testq %rax, %rax
jg 0x151d6
movl (%rcx,%r9,4), %r11d
movl (%r15,%r9,4), %ebp
movl %ebp, (%rcx,%r9,4)
movl %r10d, (%rsi,%r9,4)
cmpq $0x1, %r8
movq %r9, %r8
jg 0x151a8
movq (%rsp), %r8
testq %r8, %r8
movq 0x10(%rsp), %rax
jle 0x1527f
cmpq %r8, 0x8(%rax)
jl 0x1527f
movslq -0x4(%rcx,%r8,4), %rdx
movq 0x20(%rbx), %rsi
movslq -0x4(%rsi,%r8,4), %rdi
addq %rdx, %rdi
movq (%rax), %rdx
movslq -0x4(%rdx,%r8,4), %rsi
addq %rdi, %rsi
movl %esi, (%rcx,%r8,4)
xorps %xmm0, %xmm0
movq 0x8(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x153b8
leaq 0x3629e(%rip), %rdi     # 0x4b524
leaq 0x362b4(%rip), %rsi     # 0x4b541
leaq 0x3635d(%rip), %rcx     # 0x4b5f1
movl $0xa2, %edx
callq 0x7240
movl $0x8, %edi
callq 0x71b0
movq 0x4ccd1(%rip), %rcx     # 0x61f80
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x4cce3(%rip), %rsi     # 0x61fa0
movq 0x4cc94(%rip), %rdx     # 0x61f58
movq %rax, %rdi
callq 0x7680