// File: /workspace/github_cpp_makefile_star2_O1/DimitriDaSilva[P]42_ft_containers/tester/containers/map/test_map_element_access.cpp
// Function: test_map_element_access_operator_brackets()
void
test_map_element_access_operator_brackets()
{
	ft::map<char, std::string> mymap;

	mymap['a'] = "an element";
	mymap['b'] = "another element";
	mymap['c'] = mymap['b'];

	std::cout << "mymap['a'] is " << mymap['a'] << std::endl;
	std::cout << "mymap['b'] is " << mymap['b'] << std::endl;
	std::cout << "mymap['c'] is " << mymap['c'] << std::endl;
	std::cout << "mymap['d'] is " << mymap['d'] << std::endl;

	std::cout << "mymap now contains " << mymap.size() << " elements." << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x38, %rsp
leaq -0x38(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0x9(%rbp), %rsi
movb $0x61, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq 0x8(%rax), %rdx
leaq 0x17254(%rip), %rcx     # 0x266a0
movl $0xa, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x22c0
leaq -0x9(%rbp), %rsi
movb $0x62, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq 0x8(%rax), %rdx
leaq 0x17234(%rip), %rcx     # 0x266ab
movl $0xf, %r8d
movq %rax, %rdi
xorl %esi, %esi
callq 0x22c0
leaq -0x9(%rbp), %rsi
movb $0x62, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq %rax, %rbx
leaq -0xa(%rbp), %rsi
movb $0x63, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2100
movq 0x24b14(%rip), %rdi     # 0x33fd0
leaq 0x171f8(%rip), %rsi     # 0x266bb
movl $0xe, %edx
callq 0x2230
leaq -0x9(%rbp), %rsi
movb $0x61, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x24ae5(%rip), %rdi     # 0x33fd0
callq 0x2230
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
movq 0x24aaf(%rip), %rdi     # 0x33fd0
leaq 0x171a2(%rip), %rsi     # 0x266ca
movl $0xe, %edx
callq 0x2230
leaq -0x9(%rbp), %rsi
movb $0x62, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x24a80(%rip), %rdi     # 0x33fd0
callq 0x2230
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
movq 0x24a4a(%rip), %rdi     # 0x33fd0
leaq 0x1714c(%rip), %rsi     # 0x266d9
movl $0xe, %edx
callq 0x2230
leaq -0x9(%rbp), %rsi
movb $0x63, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x24a1b(%rip), %rdi     # 0x33fd0
callq 0x2230
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
movq 0x249e5(%rip), %rdi     # 0x33fd0
leaq 0x170f6(%rip), %rsi     # 0x266e8
movl $0xe, %edx
callq 0x2230
leaq -0x9(%rbp), %rsi
movb $0x64, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0xf958
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x249b6(%rip), %rdi     # 0x33fd0
callq 0x2230
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
movq 0x24980(%rip), %rdi     # 0x33fd0
leaq 0x170a0(%rip), %rsi     # 0x266f7
movl $0x13, %edx
callq 0x2230
movq -0x18(%rbp), %rsi
movq 0x24964(%rip), %rdi     # 0x33fd0
callq 0x2140
movq %rax, %rbx
leaq 0x17090(%rip), %rsi     # 0x2670b
movl $0xa, %edx
movq %rax, %rdi
callq 0x2230
movq (%rbx), %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 -0x40(%rbp), %rdi
callq 0xfb68
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
jmp 0xf6cf
jmp 0xf6cf
jmp 0xf6cf
jmp 0xf6cf
jmp 0xf6cf
jmp 0xf6cf
jmp 0xf6cf
jmp 0xf6cf
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0xfb68
movq %rbx, %rdi
callq 0x2340