// File: /workspace/github_cpp_makefile_star2_O1/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 0x20666(%rip), %rdi     # 0x33fd0
leaq 0x12a1a(%rip), %rsi     # 0x2638b
movl $0x7, %edx
callq 0x2230
xorl %esi, %esi
cmpq $0x0, -0x30(%rbp)
sete %sil
movq 0x20643(%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 0x2060d(%rip), %rdi     # 0x33fd0
leaq 0x126e1(%rip), %rsi     # 0x260ab
movl $0x6, %edx
callq 0x2230
movq -0x30(%rbp), %rsi
movq 0x205f1(%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 0x205bb(%rip), %rdi     # 0x33fd0
leaq 0x12977(%rip), %rsi     # 0x26393
movl $0xa, %edx
callq 0x2230
movq 0x205a3(%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 0x20773(%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 0xb3c2
decl %r15d
jne 0x13a82
movq 0x204d9(%rip), %rdi     # 0x33fd0
leaq 0x1288d(%rip), %rsi     # 0x2638b
movl $0x7, %edx
callq 0x2230
xorl %esi, %esi
cmpq $0x0, -0x30(%rbp)
sete %sil
movq 0x204b6(%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 0x20480(%rip), %rdi     # 0x33fd0
leaq 0x12554(%rip), %rsi     # 0x260ab
movl $0x6, %edx
callq 0x2230
movq -0x30(%rbp), %rsi
movq 0x20464(%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 0x2042e(%rip), %rdi     # 0x33fd0
leaq 0x127ea(%rip), %rsi     # 0x26393
movl $0xa, %edx
callq 0x2230
movq 0x20416(%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 0xaeae
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13c0b
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0xaeae
movq %rbx, %rdi
callq 0x2340
nop