// File: /workspace/github_cpp_makefile_star2_O1/DimitriDaSilva[P]42_ft_containers/tester/containers/map/test_map_operations.cpp
// Function: test_map_operations_upper_bound()
void
test_map_operations_upper_bound()
{
	ft::map<char, int> map;
	ft::map<char, int>::iterator it;
	ft::map<char, int>::const_iterator const_it;

	for (char i = '0'; i <= '9'; i++)
		map.insert(ft::make_pair(i, i));

	it = map.upper_bound('0');
	if (it != map.end())
		std::cout << " [" << it->first << "] = " << it->second << std::endl;
	else
		std::cout << "end()" << std::endl;

	it = map.upper_bound('!');
	if (it != map.end())
		std::cout << " [" << it->first << "] = " << it->second << std::endl;
	else
		std::cout << "end()" << std::endl;

	const_it = map.upper_bound('?');
	if (const_it != map.end())
		std::cout << " [" << const_it->first << "] = " << const_it->second << std::endl;
	else
		std::cout << "end()" << std::endl;

	const_it = map.upper_bound('-');
	if (const_it != map.end())
		std::cout << " [" << const_it->first << "] = " << const_it->second << std::endl;
	else
		std::cout << "end()" << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
leaq -0x50(%rbp), %r15
movl $0x0, (%r15)
xorl %eax, %eax
movq %rax, 0x8(%r15)
movq %r15, 0x10(%r15)
movq %r15, 0x18(%r15)
movq %rax, 0x20(%r15)
movw $0x3030, %r12w          # imm = 0x3030
leaq -0x58(%rbp), %rbx
leaq -0x22(%rbp), %r14
movw %r12w, -0x22(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xcf58
addl $0x101, %r12d           # imm = 0x101
movzwl %r12w, %eax
cmpl $0x3a3a, %eax           # imm = 0x3A3A
jne 0xc102
movq -0x48(%rbp), %rax
movq %r15, %r14
testq %rax, %rax
je 0xc14a
movq %r15, %r14
xorl %ecx, %ecx
cmpb $0x31, 0x20(%rax)
setl %cl
cmovgeq %rax, %r14
movq 0x10(%rax,%rcx,8), %rax
testq %rax, %rax
jne 0xc133
cmpq %r15, %r14
je 0xc1be
movq 0x27e7a(%rip), %rdi     # 0x33fd0
leaq 0x1a4da(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27e58(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a4ae(%rip), %rsi     # 0x2663a
movl $0x4, %edx
movq %rax, %rdi
callq 0x2230
movl 0x24(%r14), %esi
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
jmp 0xc1ed
movq 0x27e0b(%rip), %rbx     # 0x33fd0
leaq 0x1a1e0(%rip), %rsi     # 0x263ac
movl $0x5, %edx
movq %rbx, %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
movq -0x48(%rbp), %rax
movq %r15, %r14
testq %rax, %rax
je 0xc226
movq %r15, %r14
xorl %ecx, %ecx
cmpb $0x22, 0x20(%rax)
setl %cl
cmovgeq %rax, %r14
movq 0x10(%rax,%rcx,8), %rax
testq %rax, %rax
jne 0xc20f
cmpq %r15, %r14
je 0xc29a
movq 0x27d9e(%rip), %rdi     # 0x33fd0
leaq 0x1a3fe(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27d7c(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a3d2(%rip), %rsi     # 0x2663a
movl $0x4, %edx
movq %rax, %rdi
callq 0x2230
movl 0x24(%r14), %esi
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
jmp 0xc2c9
movq 0x27d2f(%rip), %rbx     # 0x33fd0
leaq 0x1a104(%rip), %rsi     # 0x263ac
movl $0x5, %edx
movq %rbx, %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
movq -0x48(%rbp), %rax
movq %r15, %r14
testq %rax, %rax
je 0xc302
movq %r15, %r14
xorl %ecx, %ecx
cmpb $0x40, 0x20(%rax)
setl %cl
cmovgeq %rax, %r14
movq 0x10(%rax,%rcx,8), %rax
testq %rax, %rax
jne 0xc2eb
cmpq %r15, %r14
je 0xc376
movq 0x27cc2(%rip), %rdi     # 0x33fd0
leaq 0x1a322(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27ca0(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a2f6(%rip), %rsi     # 0x2663a
movl $0x4, %edx
movq %rax, %rdi
callq 0x2230
movl 0x24(%r14), %esi
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
jmp 0xc3a5
movq 0x27c53(%rip), %rbx     # 0x33fd0
leaq 0x1a028(%rip), %rsi     # 0x263ac
movl $0x5, %edx
movq %rbx, %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
movq -0x48(%rbp), %rax
movq %r15, %r14
testq %rax, %rax
je 0xc3de
movq %r15, %r14
xorl %ecx, %ecx
cmpb $0x2e, 0x20(%rax)
setl %cl
cmovgeq %rax, %r14
movq 0x10(%rax,%rcx,8), %rax
testq %rax, %rax
jne 0xc3c7
cmpq %r15, %r14
je 0xc452
movq 0x27be6(%rip), %rdi     # 0x33fd0
leaq 0x1a246(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27bc4(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a21a(%rip), %rsi     # 0x2663a
movl $0x4, %edx
movq %rax, %rdi
callq 0x2230
movl 0x24(%r14), %esi
movq %rbx, %rdi
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
jmp 0xc481
movq 0x27b77(%rip), %rbx     # 0x33fd0
leaq 0x19f4c(%rip), %rsi     # 0x263ac
movl $0x5, %edx
movq %rbx, %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 -0x58(%rbp), %rdi
callq 0xcf00
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc4ac
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xcf00
movq %rbx, %rdi
callq 0x2340