// File: /workspace/github_cpp_makefile_star2_O1/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 0xb3c2
leaq 0x64(%r15), %rax
leaq -0x20(%rbp), %rsi
movq %rax, (%rsi)
leaq -0x50(%rbp), %rdi
callq 0xb3c2
leaq 0x3c(%r15), %rax
leaq -0x20(%rbp), %rsi
movq %rax, (%rsi)
leaq -0x50(%rbp), %rdi
callq 0xb3c2
movq -0x40(%rbp), %rcx
movq %rbx, %rax
testq %rcx, %rcx
je 0x10c64
movq %rbx, %rax
xorl %edx, %edx
cmpl $0xa, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x10c4d
cmpq %rbx, %rax
je 0x10c71
cmpl $0xb, 0x20(%rax)
cmovlq %rax, %rbx
movabsq $-0x29ffffffd6, %rax    # imm = 0xFFFFFFD60000002A
leaq -0x20(%rbp), %rdx
movq %rax, (%rdx)
leaq -0x50(%rbp), %rdi
movq %rbx, %rsi
callq 0x12dfa
movq %rax, %rbx
movq 0x23338(%rip), %rdi     # 0x33fd0
leaq 0x1547f(%rip), %rsi     # 0x2611e
movl $0x8, %edx
callq 0x2230
movq 0x23320(%rip), %rdi     # 0x33fd0
leaq 0x15981(%rip), %rsi     # 0x26638
movl $0x1, %edx
callq 0x2230
movl 0x20(%rbx), %esi
movq 0x23305(%rip), %rdi     # 0x33fd0
callq 0x2330
movq %rax, %r14
leaq 0x15960(%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 0x12849
leaq -0x50(%rbp), %rdi
movq 0x18(%rdi), %rsi
leaq -0x20(%rbp), %rdx
movq %r15, (%rdx)
callq 0x12dfa
movq %rax, %rbx
movq 0x2328d(%rip), %rdi     # 0x33fd0
leaq 0x153d4(%rip), %rsi     # 0x2611e
movl $0x8, %edx
callq 0x2230
movq 0x23275(%rip), %rdi     # 0x33fd0
leaq 0x158d6(%rip), %rsi     # 0x26638
movl $0x1, %edx
callq 0x2230
movl 0x20(%rbx), %esi
movq 0x2325a(%rip), %rdi     # 0x33fd0
callq 0x2330
movq %rax, %r14
leaq 0x158b5(%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 0x12849
leaq -0x50(%rbp), %rdi
callq 0xaeae
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10dee
jmp 0x10dee
jmp 0x10dee
jmp 0x10dee
jmp 0x10dee
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xaeae
movq %rbx, %rdi
callq 0x2340