// File: /workspace/github_cpp_makefile_star2_O3/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 0xd03a
addl $0x101, %r12d           # imm = 0x101
movzwl %r12w, %eax
cmpl $0x3a3a, %eax           # imm = 0x3A3A
jne 0xc1b6
movq -0x48(%rbp), %rax
testq %rax, %rax
je 0xc273
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 0xc1e8
cmpq %r15, %r14
je 0xc273
movq 0x27dc5(%rip), %rdi     # 0x33fd0
leaq 0x1a425(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27da3(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a3f9(%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 0xc2a2
movq 0x27d56(%rip), %rbx     # 0x33fd0
leaq 0x1a12b(%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
testq %rax, %rax
je 0xc350
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 0xc2c5
cmpq %r15, %r14
je 0xc350
movq 0x27ce8(%rip), %rdi     # 0x33fd0
leaq 0x1a348(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27cc6(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a31c(%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 0xc37f
movq 0x27c79(%rip), %rbx     # 0x33fd0
leaq 0x1a04e(%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
testq %rax, %rax
je 0xc42d
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 0xc3a2
cmpq %r15, %r14
je 0xc42d
movq 0x27c0b(%rip), %rdi     # 0x33fd0
leaq 0x1a26b(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27be9(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a23f(%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 0xc45c
movq 0x27b9c(%rip), %rbx     # 0x33fd0
leaq 0x19f71(%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
testq %rax, %rax
je 0xc50a
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 0xc47f
cmpq %r15, %r14
je 0xc50a
movq 0x27b2e(%rip), %rdi     # 0x33fd0
leaq 0x1a18e(%rip), %rsi     # 0x26637
movl $0x2, %edx
callq 0x2230
movb 0x20(%r14), %al
leaq -0x22(%rbp), %rsi
movb %al, (%rsi)
movq 0x27b0c(%rip), %rdi     # 0x33fd0
movl $0x1, %edx
callq 0x2230
movq %rax, %rbx
leaq 0x1a162(%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 0xc539
movq 0x27abf(%rip), %rbx     # 0x33fd0
leaq 0x19e94(%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 0xcfe2
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc564
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xcfe2
movq %rbx, %rdi
callq 0x2340