// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/containers/map/test_map_modifiers.cpp
// Function: test_map_modifiers_insert_with_hint()
void
test_map_modifiers_insert_with_hint()
{
	ft::map<int, int> map;
	ft::map<int, int>::iterator hint;
	ft::map<int, int>::iterator ret;

	map.insert(ft::make_pair(10, 42));
	map.insert(ft::make_pair(100, 42));
	map.insert(ft::make_pair(60, 42));

	hint = map.find(10);
	ret = map.insert(hint, ft::make_pair(42, -42));
	std::cout << "Return: " << "[" << ret->first << "] = " << ret->second << std::endl;
	print_map_info(map);

	ret = map.insert(map.begin(), ft::make_pair(0, 42));
	std::cout << "Return: " << "[" << ret->first << "] = " << ret->second << std::endl;
	print_map_info(map);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movabsq $0x2a00000000, %r15     # imm = 0x2A00000000
leaq -0x48(%rbp), %rbx
movl $0x0, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq %rbx, 0x10(%rbx)
movq %rbx, 0x18(%rbx)
movq %rax, 0x20(%rbx)
leaq 0xa(%r15), %rax
leaq -0x20(%rbp), %rsi
movq %rax, (%rsi)
leaq -0x50(%rbp), %rdi
callq 0xb43c
leaq 0x64(%r15), %rax
leaq -0x20(%rbp), %rsi
movq %rax, (%rsi)
leaq -0x50(%rbp), %rdi
callq 0xb43c
leaq 0x3c(%r15), %rax
leaq -0x20(%rbp), %rsi
movq %rax, (%rsi)
leaq -0x50(%rbp), %rdi
callq 0xb43c
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x10d39
movq %rbx, %rdx
movq %rdx, %rax
movq %rdi, %rcx
movl 0x20(%rdi), %esi
xorl %edi, %edi
cmpl $0xa, %esi
setl %dil
movq %rcx, %rdx
cmovlq %rax, %rdx
movq 0x10(%rcx,%rdi,8), %rdi
testq %rdi, %rdi
jne 0x10d02
cmpq %rbx, %rdx
je 0x10d39
cmpl $0xa, %esi
cmovlq %rax, %rcx
cmpl $0xb, 0x20(%rcx)
cmovlq %rdx, %rbx
movabsq $-0x29ffffffd6, %rax    # imm = 0xFFFFFFD60000002A
leaq -0x20(%rbp), %rdx
movq %rax, (%rdx)
leaq -0x50(%rbp), %rdi
movq %rbx, %rsi
callq 0x12f74
movq %rax, %rbx
movq 0x23270(%rip), %rdi     # 0x33fd0
leaq 0x153b7(%rip), %rsi     # 0x2611e
movl $0x8, %edx
callq 0x2230
movq 0x23258(%rip), %rdi     # 0x33fd0
leaq 0x158b9(%rip), %rsi     # 0x26638
movl $0x1, %edx
callq 0x2230
movl 0x20(%rbx), %esi
movq 0x2323d(%rip), %rdi     # 0x33fd0
callq 0x2330
movq %rax, %r14
leaq 0x15898(%rip), %rsi     # 0x2663a
movl $0x4, %edx
movq %rax, %rdi
callq 0x2230
movl 0x24(%rbx), %esi
movq %r14, %rdi
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq -0x50(%rbp), %rdi
callq 0x129cf
leaq -0x50(%rbp), %rdi
movq 0x18(%rdi), %rsi
leaq -0x20(%rbp), %rdx
movq %r15, (%rdx)
callq 0x12f74
movq %rax, %rbx
movq 0x231c5(%rip), %rdi     # 0x33fd0
leaq 0x1530c(%rip), %rsi     # 0x2611e
movl $0x8, %edx
callq 0x2230
movq 0x231ad(%rip), %rdi     # 0x33fd0
leaq 0x1580e(%rip), %rsi     # 0x26638
movl $0x1, %edx
callq 0x2230
movl 0x20(%rbx), %esi
movq 0x23192(%rip), %rdi     # 0x33fd0
callq 0x2330
movq %rax, %r14
leaq 0x157ed(%rip), %rsi     # 0x2663a
movl $0x4, %edx
movq %rax, %rdi
callq 0x2230
movl 0x24(%rbx), %esi
movq %r14, %rdi
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq -0x50(%rbp), %rdi
callq 0x129cf
leaq -0x50(%rbp), %rdi
callq 0xaf10
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10eb6
jmp 0x10eb6
jmp 0x10eb6
jmp 0x10eb6
jmp 0x10eb6
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xaf10
movq %rbx, %rdi
callq 0x2340