// File: /workspace/github_cpp_makefile_star2_O1/DimitriDaSilva[P]42_ft_containers/tester/containers/vector/test_vector_modifiers.cpp
// Function: test_vector_modifiers_insert_single_begin_w_realloc()
void
test_vector_modifiers_insert_single_begin_w_realloc()
{
	ft::vector<std::string> vec(100, "test");
	ft::vector<std::string>::iterator tmp;

	print_vec_info(vec);
	tmp = vec.insert(vec.begin(), "42");
	print_vec_info(vec);

	if (vec.begin() == tmp)
		std::cout << "valid" << std::endl;

	ft::vector<std::string> empty;

	print_vec_info(empty);
	tmp = empty.insert(empty.begin(), "42");
	print_vec_info(empty);

	if (tmp == empty.begin())
		std::cout << "valid" << std::endl;

	{
		ft::vector<std::string> cpy1 = vec;
		ft::vector<std::string> cpy2 = empty;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x931f(%rip), %rsi      # 0x26151
leaq 0x931c(%rip), %rdx      # 0x26155
leaq -0x30(%rbp), %rdi
callq 0x2f88
leaq -0x68(%rbp), %rdi
leaq -0x30(%rbp), %rdx
leaq -0x50(%rbp), %rcx
movl $0x64, %esi
callq 0x193f2
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1ce66
callq 0x21b0
leaq -0x68(%rbp), %rdi
callq 0x19488
movq -0x68(%rbp), %rbx
leaq -0x30(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x9c05(%rip), %rsi      # 0x26a86
leaq 0x9c00(%rip), %rdx      # 0x26a88
callq 0x2f88
leaq -0x68(%rbp), %rdi
leaq -0x30(%rbp), %rdx
movq %rbx, %rsi
callq 0x219dc
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1ceae
callq 0x21b0
leaq -0x68(%rbp), %rdi
callq 0x19488
cmpq %rbx, -0x68(%rbp)
jne 0x1cf03
movq 0x1710c(%rip), %rbx     # 0x33fd0
leaq 0xa5cb(%rip), %rsi      # 0x27496
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x170da(%rip), %rdi     # 0x33fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x19488
movq -0x50(%rbp), %rbx
leaq -0x30(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x9b5a(%rip), %rsi      # 0x26a86
leaq 0x9b55(%rip), %rdx      # 0x26a88
callq 0x2f88
leaq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rdx
movq %rbx, %rsi
callq 0x219dc
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1cf59
callq 0x21b0
leaq -0x50(%rbp), %rdi
callq 0x19488
cmpq -0x50(%rbp), %rbx
jne 0x1cfae
movq 0x17061(%rip), %rbx     # 0x33fd0
leaq 0xa520(%rip), %rsi      # 0x27496
movl $0x5, %edx
movq %rbx, %rdi
callq 0x2230
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x1702f(%rip), %rdi     # 0x33fd0
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq -0x30(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x1a41e
leaq -0x80(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1a41e
leaq -0x80(%rbp), %rdi
callq 0xac7c
leaq -0x30(%rbp), %rdi
callq 0xac7c
leaq -0x50(%rbp), %rdi
callq 0xac7c
leaq -0x68(%rbp), %rdi
callq 0xac7c
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0xac7c
jmp 0x1d04a
jmp 0x1d047
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d04a
callq 0x21b0
jmp 0x1d04a
jmp 0x1d047
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d058
callq 0x21b0
jmp 0x1d058
jmp 0x1d055
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x1d061
callq 0x21b0
jmp 0x1d061
movq %rax, %rbx
jmp 0x1d061
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xac7c
jmp 0x1d058
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0xac7c
movq %rbx, %rdi
callq 0x2340