// File: 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
subq $0xe0, %rsp
leaq -0x30(%rbp), %rdi
callq 0x14da0
movq 0x4c45d(%rip), %rdi     # 0x7afb8
leaq 0x28809(%rip), %rsi     # 0x5736b
callq 0x31e0
movq %rax, -0x68(%rbp)
jmp 0x2eb6d
leaq -0x30(%rbp), %rdi
callq 0x2b2f0
movq -0x68(%rbp), %rdi
movzbl %al, %esi
callq 0x3380
movq %rax, -0x70(%rbp)
jmp 0x2eb88
movq -0x70(%rbp), %rdi
movq 0x4c405(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2eb9a
movq 0x4c417(%rip), %rdi     # 0x7afb8
leaq 0x284d9(%rip), %rsi     # 0x57081
callq 0x31e0
movq %rax, -0x78(%rbp)
jmp 0x2ebb3
leaq -0x30(%rbp), %rdi
callq 0x2ba10
movq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0x3080
movq %rax, -0x80(%rbp)
jmp 0x2ebce
movq -0x80(%rbp), %rdi
movq 0x4c3bf(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2ebe0
movq 0x4c3d1(%rip), %rdi     # 0x7afb8
leaq 0x28785(%rip), %rsi     # 0x57373
callq 0x31e0
movq %rax, -0x88(%rbp)
jmp 0x2ebfc
leaq -0x30(%rbp), %rdi
callq 0x2ee40
movq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0x3080
movq %rax, -0x90(%rbp)
jmp 0x2ec1d
movq -0x90(%rbp), %rdi
movq 0x4c36d(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2ec32
leaq 0x4c5cf(%rip), %rax     # 0x7b208
movl (%rax), %edi
callq 0x31d0
movl $0x0, -0x40(%rbp)
cmpl $0x2a, -0x40(%rbp)
jge 0x2ed26
callq 0x30a0
movl %eax, %ecx
movslq %ecx, %rax
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rax
addl %edx, %eax
imull $0x64, %eax, %edx
movl %ecx, %eax
negl %edx
movl %edx, %ecx
leal -0x32(%rax,%rcx), %eax
movl %eax, -0x4c(%rbp)
callq 0x30a0
movl %eax, %ecx
movslq %ecx, %rax
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
movq %rax, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rax
addl %edx, %eax
imull $0x64, %eax, %edx
movl %ecx, %eax
negl %edx
movl %edx, %ecx
leal -0x32(%rax,%rcx), %eax
movl %eax, -0x50(%rbp)
leaq -0x4c(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x14f50
movq %rax, -0x98(%rbp)
jmp 0x2ecc3
movq -0x98(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x14f10
movb %dl, -0xa1(%rbp)
movq %rax, -0xa0(%rbp)
jmp 0x2ecea
movb -0xa1(%rbp), %al
movq -0xa0(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movb %al, -0x58(%rbp)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x2ec47
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x15090
jmp 0x2ee2e
movq 0x4c28b(%rip), %rdi     # 0x7afb8
leaq 0x28637(%rip), %rsi     # 0x5736b
callq 0x31e0
movq %rax, -0xb0(%rbp)
jmp 0x2ed42
leaq -0x30(%rbp), %rdi
callq 0x2b2f0
movq -0xb0(%rbp), %rdi
movzbl %al, %esi
callq 0x3380
movq %rax, -0xb8(%rbp)
jmp 0x2ed63
movq -0xb8(%rbp), %rdi
movq 0x4c227(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2ed78
movq 0x4c239(%rip), %rdi     # 0x7afb8
leaq 0x282fb(%rip), %rsi     # 0x57081
callq 0x31e0
movq %rax, -0xc0(%rbp)
jmp 0x2ed94
leaq -0x30(%rbp), %rdi
callq 0x2ba10
movq -0xc0(%rbp), %rdi
movq %rax, %rsi
callq 0x3080
movq %rax, -0xc8(%rbp)
jmp 0x2edb5
movq -0xc8(%rbp), %rdi
movq 0x4c1d5(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2edca
movq 0x4c1e7(%rip), %rdi     # 0x7afb8
leaq 0x2859b(%rip), %rsi     # 0x57373
callq 0x31e0
movq %rax, -0xd0(%rbp)
jmp 0x2ede6
leaq -0x30(%rbp), %rdi
callq 0x2ee40
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0x3080
movq %rax, -0xd8(%rbp)
jmp 0x2ee07
movq -0xd8(%rbp), %rdi
movq 0x4c183(%rip), %rsi     # 0x7af98
callq 0x3220
jmp 0x2ee1c
leaq -0x30(%rbp), %rdi
callq 0x15090
addq $0xe0, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x3360
nopw (%rax,%rax)