// File: /workspace/github_cpp_makefile_star2_O2/benjibc[P]json-universal-container/./boost_file/boost/container/vector.hpp
// Function: boost::container::vector<JSON, std::allocator<JSON>>::priv_range_insert_new_allocation(JSON*, unsigned long, JSON*, unsigned long, boost::container::container_detail::advanced_insert_aux_int<JSON*>&)
void priv_range_insert_new_allocation
      (T* new_start, size_type new_cap, T* pos, size_type n, advanced_insert_aux_int_t &interf)
   {
      //n can be zero, if we want to reallocate!
      T *new_finish = new_start;
      T *old_finish;
      //Anti-exception rollbacks
      typename value_traits::ArrayDeallocator scoped_alloc(new_start, this->alloc(), new_cap);
      typename value_traits::ArrayDestructor constructed_values_destroyer(new_start, this->alloc(), 0u);

      //Initialize with [begin(), pos) old buffer
      //the start of the new buffer
      T *old_buffer = container_detail::to_raw_pointer(this->members_.m_start);
      if(old_buffer){
         new_finish = ::boost::container::uninitialized_move_alloc
            (this->alloc(), container_detail::to_raw_pointer(this->members_.m_start), pos, old_finish = new_finish);
         constructed_values_destroyer.increment_size(new_finish - old_finish);
      }
      //Initialize new objects, starting from previous point
      interf.uninitialized_copy_remaining_to(old_finish = new_finish);
      new_finish += n;
      constructed_values_destroyer.increment_size(new_finish - old_finish);
      //Initialize from the rest of the old buffer,
      //starting from previous point
      if(old_buffer){
         new_finish = ::boost::container::uninitialized_move_alloc
            (this->alloc(), pos, old_buffer + this->members_.m_size, new_finish);
         //Destroy and deallocate old elements
         //If there is allocated memory, destroy and deallocate
         if(!value_traits::trivial_dctr_after_move)
            this->destroy_n(old_buffer, this->members_.m_size);
         this->alloc().deallocate(this->members_.m_start, this->members_.m_capacity);
      }
      this->members_.m_start     = new_start;
      this->members_.m_size      = new_finish - new_start;
      this->members_.m_capacity  = new_cap;
      //All construction successful, disable rollbacks
      constructed_values_destroyer.release();
      scoped_alloc.release();
   }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbp
movq %r8, %rbx
movq %rcx, 0x8(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, 0x30(%rsp)
movq %rdi, 0x38(%rsp)
movq %rdx, 0x28(%rsp)
movq %rdx, 0x40(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
andq $0x0, 0x20(%rsp)
movq (%rdi), %r13
movq %rsi, %r12
testq %r13, %r13
je 0x4d88
movq %r14, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rcx
callq 0x4ec7
movq %rax, %r12
subq %r15, %rax
cqto
pushq $0x30
popq %rcx
idivq %rcx
addq %rax, 0x20(%rsp)
movq (%rbp), %rax
movq %rbp, %rdi
movq %r12, %rsi
callq *0x8(%rax)
imulq $0x30, %rbx, %rax
addq %rax, %r12
addq %rbx, 0x20(%rsp)
testq %r13, %r13
je 0x4dd8
imulq $0x30, 0x8(%r14), %rdx
addq %r13, %rdx
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rcx
callq 0x4ec7
movq %rax, %r12
movq 0x8(%r14), %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x4f3e
movq (%r14), %rdi
callq 0x2180
movq %r15, (%r14)
subq %r15, %r12
movq %r12, %rax
cqto
pushq $0x30
popq %rcx
idivq %rcx
movq %rax, 0x8(%r14)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%r14)
leaq 0x10(%rsp), %rdi
andq $0x0, (%rdi)
leaq 0x30(%rsp), %rbx
andq $0x0, (%rbx)
callq 0x4f64
movq %rbx, %rdi
callq 0x4f94
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4f64
leaq 0x30(%rsp), %rdi
callq 0x4f94
movq %rbx, %rdi
callq 0x2250