// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/containers/map/test_map_capacity.cpp
// Function: test_map_capacity()
void
test_map_capacity()
{
	ft::map<int, int> map;

	std::cout << "Empty: " << map.empty() << std::endl;
	std::cout << "Size: " << map.size() << std::endl;
	std::cout << "Max size: " << map.max_size() << std::endl;

	srand(g_seed);

	for (int i = 0; i < 42; i++)
		map.insert(ft::make_pair(rand() % 100 - 50, rand() % 100 - 50));

	std::cout << "Empty: " << map.empty() << std::endl;
	std::cout << "Size: " << map.size() << std::endl;
	std::cout << "Max size: " << map.max_size() << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
leaq -0x50(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0x204e6(%rip), %rdi     # 0x33fd0
leaq 0x1289a(%rip), %rsi     # 0x2638b
movl $0x7, %edx
callq 0x2230
xorl %esi, %esi
cmpq $0x0, -0x30(%rbp)
sete %sil
movq 0x204c3(%rip), %rdi     # 0x33fd0
callq 0x2320
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 0x2048d(%rip), %rdi     # 0x33fd0
leaq 0x12561(%rip), %rsi     # 0x260ab
movl $0x6, %edx
callq 0x2230
movq -0x30(%rbp), %rsi
movq 0x20471(%rip), %rdi     # 0x33fd0
callq 0x2140
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 0x2043b(%rip), %rdi     # 0x33fd0
leaq 0x127f7(%rip), %rsi     # 0x26393
movl $0xa, %edx
callq 0x2230
movq 0x20423(%rip), %rdi     # 0x33fd0
movabsq $0x333333333333333, %rsi # imm = 0x333333333333333
callq 0x2140
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 0x205f3(%rip), %rax     # 0x341e0
movl (%rax), %edi
callq 0x21d0
movl $0x2a, %r15d
leaq -0x58(%rbp), %rbx
leaq -0x28(%rbp), %r14
callq 0x2070
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
sarl $0x5, %ecx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
negl %ecx
leal (%rax,%rcx), %r12d
addl $-0x32, %r12d
callq 0x2070
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
sarl $0x5, %ecx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
negl %ecx
addl %ecx, %eax
addl $-0x32, %eax
shlq $0x20, %rax
orq %rax, %r12
movq %r12, -0x28(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb43c
decl %r15d
jne 0x13c02
movq 0x20359(%rip), %rdi     # 0x33fd0
leaq 0x1270d(%rip), %rsi     # 0x2638b
movl $0x7, %edx
callq 0x2230
xorl %esi, %esi
cmpq $0x0, -0x30(%rbp)
sete %sil
movq 0x20336(%rip), %rdi     # 0x33fd0
callq 0x2320
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 0x20300(%rip), %rdi     # 0x33fd0
leaq 0x123d4(%rip), %rsi     # 0x260ab
movl $0x6, %edx
callq 0x2230
movq -0x30(%rbp), %rsi
movq 0x202e4(%rip), %rdi     # 0x33fd0
callq 0x2140
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 0x202ae(%rip), %rdi     # 0x33fd0
leaq 0x1266a(%rip), %rsi     # 0x26393
movl $0xa, %edx
callq 0x2230
movq 0x20296(%rip), %rdi     # 0x33fd0
movabsq $0x333333333333333, %rsi # imm = 0x333333333333333
callq 0x2140
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 -0x58(%rbp), %rdi
callq 0xaf10
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13d8b
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xaf10
movq %rbx, %rdi
callq 0x2340
nop