// File: 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
subq $0x1d0, %rsp            # imm = 0x1D0
leaq -0x30(%rbp), %rdi
callq 0x14da0
leaq -0x38(%rbp), %rdi
callq 0x2b030
leaq -0x40(%rbp), %rdi
callq 0x2b030
movl $0xa, -0x4c(%rbp)
movl $0x2a, -0x50(%rbp)
leaq -0x4c(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x14f50
movq %rax, -0x110(%rbp)
jmp 0x284ba
movq -0x110(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x14f10
movb %dl, -0x119(%rbp)
movq %rax, -0x118(%rbp)
jmp 0x284e1
movb -0x119(%rbp), %al
movq -0x118(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movb %al, -0x68(%rbp)
movl $0x64, -0x7c(%rbp)
movl $0x2a, -0x80(%rbp)
leaq -0x7c(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x14f50
movq %rax, -0x128(%rbp)
jmp 0x28519
movq -0x128(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x14f10
movb %dl, -0x131(%rbp)
movq %rax, -0x130(%rbp)
jmp 0x28540
movb -0x131(%rbp), %al
movq -0x130(%rbp), %rcx
movq %rcx, -0x90(%rbp)
movb %al, -0x88(%rbp)
movl $0x3c, -0x9c(%rbp)
movl $0x2a, -0xa0(%rbp)
leaq -0x9c(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x14f50
movq %rax, -0x140(%rbp)
jmp 0x2858a
movq -0x140(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x14f10
movb %dl, -0x149(%rbp)
movq %rax, -0x148(%rbp)
jmp 0x285b7
movb -0x149(%rbp), %al
movq -0x148(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
movb %al, -0xa8(%rbp)
movl $0xa, -0xbc(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0xbc(%rbp), %rsi
callq 0x2b050
movq %rax, -0x158(%rbp)
jmp 0x285f4
movq -0x158(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x189d0
movl $0x2a, -0xdc(%rbp)
movl $0xffffffd6, -0xe0(%rbp) # imm = 0xFFFFFFD6
leaq -0xdc(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x14f50
movq %rax, -0x160(%rbp)
jmp 0x2864d
movq -0x160(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rsi
leaq -0x30(%rbp), %rdi
leaq -0xd8(%rbp), %rdx
callq 0x2b080
movq %rax, -0x168(%rbp)
jmp 0x2867b
movq -0x168(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq 0x5291d(%rip), %rdi     # 0x7afb8
leaq 0x2ea3a(%rip), %rsi     # 0x570dc
callq 0x31e0
movq %rax, -0x170(%rbp)
jmp 0x286b0
movq -0x170(%rbp), %rdi
leaq 0x2ef5a(%rip), %rsi     # 0x57618
callq 0x31e0
movq %rax, -0x178(%rbp)
jmp 0x286cc
leaq -0x40(%rbp), %rdi
callq 0x20da0
movq -0x178(%rbp), %rdi
movl (%rax), %esi
callq 0x3350
movq %rax, -0x180(%rbp)
jmp 0x286ec
movq -0x180(%rbp), %rdi
leaq 0x2ef20(%rip), %rsi     # 0x5761a
callq 0x31e0
movq %rax, -0x188(%rbp)
jmp 0x28708
leaq -0x40(%rbp), %rdi
callq 0x20da0
movq -0x188(%rbp), %rdi
movl 0x4(%rax), %esi
callq 0x3350
movq %rax, -0x190(%rbp)
jmp 0x28729
movq -0x190(%rbp), %rdi
movq 0x52861(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2873e
leaq -0x30(%rbp), %rdi
callq 0x2abf0
jmp 0x28749
leaq -0x30(%rbp), %rdi
callq 0x2b0c0
movq %rax, -0xf8(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x189d0
movl $0x0, -0x104(%rbp)
movl $0x2a, -0x108(%rbp)
leaq -0x104(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x14f50
movq %rax, -0x198(%rbp)
jmp 0x2879c
movq -0x198(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0xf0(%rbp), %rsi
leaq -0x30(%rbp), %rdi
leaq -0x100(%rbp), %rdx
callq 0x2b080
movq %rax, -0x1a0(%rbp)
jmp 0x287ca
movq -0x1a0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq 0x527ce(%rip), %rdi     # 0x7afb8
leaq 0x2e8eb(%rip), %rsi     # 0x570dc
callq 0x31e0
movq %rax, -0x1a8(%rbp)
jmp 0x287ff
movq -0x1a8(%rbp), %rdi
leaq 0x2ee0b(%rip), %rsi     # 0x57618
callq 0x31e0
movq %rax, -0x1b0(%rbp)
jmp 0x2881b
leaq -0x40(%rbp), %rdi
callq 0x20da0
movq -0x1b0(%rbp), %rdi
movl (%rax), %esi
callq 0x3350
movq %rax, -0x1b8(%rbp)
jmp 0x2883b
movq -0x1b8(%rbp), %rdi
leaq 0x2edd1(%rip), %rsi     # 0x5761a
callq 0x31e0
movq %rax, -0x1c0(%rbp)
jmp 0x28857
leaq -0x40(%rbp), %rdi
callq 0x20da0
movq -0x1c0(%rbp), %rdi
movl 0x4(%rax), %esi
callq 0x3350
movq %rax, -0x1c8(%rbp)
jmp 0x28878
movq -0x1c8(%rbp), %rdi
movq 0x52712(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2888d
leaq -0x30(%rbp), %rdi
callq 0x2abf0
jmp 0x28898
leaq -0x30(%rbp), %rdi
callq 0x15090
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x15090
movq -0x58(%rbp), %rdi
callq 0x3360
nopl (%rax,%rax)