// File: /workspace/github_cpp_makefile_star2_O3/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 $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, %rbp
movq %rdx, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %r13
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
testq %r13, %r13
je 0x6f86
movq %r14, %r12
cmpq %rbp, %r13
je 0x6f76
xorps %xmm0, %xmm0
movq %r14, %r12
movq %r13, %rax
movq $0x0, (%r12)
movl $0x0, 0x28(%r12)
movups (%rax), %xmm1
movups 0x10(%rax), %xmm2
movups %xmm1, (%r12)
movups %xmm2, 0x10(%r12)
movq 0x20(%rax), %rcx
movq %rcx, 0x20(%r12)
movl 0x28(%rax), %ecx
movl %ecx, 0x28(%r12)
movups %xmm0, 0x1c(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
addq $0x30, %rax
addq $0x30, %r12
cmpq %rbp, %rax
jne 0x6f2a
movq %r12, %r15
subq %r14, %r15
sarq $0x4, %r15
imulq %rdx, %r15
jmp 0x6f8c
xorl %r15d, %r15d
movq %r14, %r12
movq (%r9), %rax
movq %r9, %rdi
movq %r12, %rsi
callq *0x8(%rax)
movq 0x8(%rsp), %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %r12
testq %r13, %r13
je 0x703b
movq 0x8(%rbx), %r15
leaq (%r15,%r15,2), %rax
shlq $0x4, %rax
addq %r13, %rax
cmpq %rbp, %rax
je 0x701a
xorps %xmm0, %xmm0
movq $0x0, (%r12)
movl $0x0, 0x28(%r12)
movups (%rbp), %xmm1
movups 0x10(%rbp), %xmm2
movups %xmm1, (%r12)
movups %xmm2, 0x10(%r12)
movq 0x20(%rbp), %rcx
movq %rcx, 0x20(%r12)
movl 0x28(%rbp), %ecx
movl %ecx, 0x28(%r12)
movups %xmm0, 0x1c(%rbp)
movups %xmm0, 0x10(%rbp)
movups %xmm0, (%rbp)
addq $0x30, %rbp
addq $0x30, %r12
cmpq %rax, %rbp
jne 0x6fc8
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0x7033
movq %rbx, %rdi
movq %r13, %rsi
callq 0x718c
addq $0x30, %r13
decq %r15
jne 0x701f
movq (%rbx), %rdi
callq 0x2170
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
movq %r14, (%rbx)
subq %r14, %r12
sarq $0x4, %r12
imulq %rax, %r12
movq %r12, 0x8(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
testq %r14, %r14
je 0x709b
testq %r15, %r15
je 0x7093
movq %r14, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x718c
addq $0x30, %r12
decq %r15
jne 0x707f
movq %r14, %rdi
callq 0x2170
movq %r13, %rdi
callq 0x2240
nop