// File: /workspace/github_cpp_makefile_star2_O3/DimitriDaSilva[P]42_ft_containers/tester/containers/set/test_set_modifiers.cpp
// Function: test_set_modifiers_swap_iterator_validity()
void
test_set_modifiers_swap_iterator_validity()
{
	int myints[] = {12, 75, 10, 32, 20, 25};
	ft::set<int> first(myints, myints + 3);
	ft::set<int> second(myints + 3, myints+ 6);
	ft::set<int>::iterator it_first = first.begin();
	ft::set<int>::iterator it_second = second.begin();

	print_set_info(first);
	print_set_info(second);

	std::cout << *it_first << std::endl;
	std::cout << *it_second << std::endl;

	first.swap(second);

	print_set_info(first);
	print_set_info(second);

	std::cout << *it_first << std::endl;
	std::cout << *it_second << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movaps 0x1fa9f(%rip), %xmm0    # 0x26270
leaq -0x84(%rbp), %rbx
movaps %xmm0, -0xc(%rbx)
movabsq $0x1900000014, %rax     # imm = 0x1900000014
movq %rax, 0x4(%rbx)
leaq -0x78(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movq %rbx, %rdx
callq 0x718a
leaq -0x78(%rbp), %rdx
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq 0x718a
leaq -0x78(%rbp), %rdi
movq 0x18(%rdi), %r15
movq -0x30(%rbp), %r14
callq 0x419b
leaq -0x48(%rbp), %rdi
callq 0x419b
movl 0x20(%r15), %esi
movq 0x2d79e(%rip), %rdi     # 0x33fd0
callq 0x2330
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
movl 0x20(%r14), %esi
movq 0x2d764(%rip), %rdi     # 0x33fd0
callq 0x2330
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 -0x68(%rbp), %rcx
movq -0x38(%rbp), %rax
testq %rcx, %rcx
je 0x68eb
testq %rax, %rax
je 0x6916
leaq -0x70(%rbp), %rdx
movq %rax, 0x8(%rdx)
leaq -0x40(%rbp), %rsi
movq %rcx, 0x8(%rsi)
movups 0x10(%rdx), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdx)
movups %xmm0, 0x10(%rsi)
movq %rdx, 0x8(%rax)
movq 0x8(%rsi), %rax
movq %rsi, 0x8(%rax)
movq 0x20(%rdx), %rax
movq 0x20(%rsi), %rcx
movq %rcx, 0x20(%rdx)
movq %rax, 0x20(%rsi)
jmp 0x694c
testq %rax, %rax
je 0x694c
leaq -0x70(%rbp), %rcx
leaq -0x40(%rbp), %rdx
movl (%rdx), %esi
movl %esi, (%rcx)
movq %rax, 0x8(%rcx)
movups 0x10(%rdx), %xmm0
movups %xmm0, 0x10(%rcx)
movq %rcx, 0x8(%rax)
movq 0x20(%rdx), %rax
movq %rax, 0x20(%rcx)
jmp 0x693a
leaq -0x40(%rbp), %rax
leaq -0x70(%rbp), %rdx
movl (%rdx), %esi
movl %esi, (%rax)
movq %rcx, 0x8(%rax)
movups 0x10(%rdx), %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, 0x8(%rcx)
movq 0x20(%rdx), %rcx
movq %rcx, 0x20(%rax)
xorl %eax, %eax
movq %rax, 0x8(%rdx)
movq %rdx, 0x10(%rdx)
movq %rdx, 0x18(%rdx)
movq %rax, 0x20(%rdx)
leaq -0x78(%rbp), %rdi
callq 0x419b
leaq -0x48(%rbp), %rdi
callq 0x419b
movl 0x20(%r15), %esi
movq 0x2d667(%rip), %rdi     # 0x33fd0
callq 0x2330
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
movl 0x20(%r14), %esi
movq 0x2d62d(%rip), %rdi     # 0x33fd0
callq 0x2330
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 -0x48(%rbp), %rdi
callq 0x3602
leaq -0x78(%rbp), %rdi
callq 0x3602
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x6a00
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x3602
leaq -0x78(%rbp), %rdi
callq 0x3602
movq %rbx, %rdi
callq 0x2340