// File: /workspace/github_cpp_makefile_star2_O2/t0mm4rx[P]piscine_cpp/day08/ex00/main.cpp
// Function: main
int main()
{
	std::vector<int> list;
	for (int i = 0; i < 20; i++)
		list.push_back(i * 2);
	try
	{
		std::cout << easyfind(list, 4) << std::endl;
	}
	catch (std::exception &e)
	{
		std::cout << "Cannot find 4" << std::endl;
	}
	try
	{
		std::cout << easyfind(list, 1) << std::endl;
	}
	catch (std::exception &e)
	{
		std::cout << "Cannot find 1" << std::endl;
	}
	try
	{
		std::cout << easyfind(list, 38) << std::endl;
	}
	catch (std::exception &e)
	{
		std::cout << "Cannot find 38" << std::endl;
	}
	std::list<int> list2;
	for (int i = -5; i <= 5; i++)
		list2.push_back(i);
	try
	{
		std::cout << easyfind(list2, 0) << std::endl;
	}
	catch (std::exception &e)
	{
		std::cout << "Cannot find 0" << std::endl;
	}
	try
	{
		std::cout << easyfind(list2, -7) << std::endl;
	}
	catch (std::exception &e)
	{
		std::cout << "Cannot find -7" << std::endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
leaq -0x50(%rbp), %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
xorl %r15d, %r15d
leaq -0x38(%rbp), %rbx
cmpl $0x28, %r15d
je 0x12cb
movl %r15d, -0x38(%rbp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x168c
addl $0x2, %r15d
jmp 0x12b0
leaq -0x50(%rbp), %rdi
pushq $0x4
popq %rsi
callq 0x154f
movq 0x2cea(%rip), %rdi      # 0x3fc8
movl %eax, %esi
callq 0x1130
movq %rax, %rdi
callq 0x1070
leaq -0x50(%rbp), %rdi
pushq $0x1
popq %rsi
callq 0x154f
movq 0x2cc8(%rip), %rdi      # 0x3fc8
movl %eax, %esi
callq 0x1130
movq %rax, %rdi
callq 0x1070
leaq -0x50(%rbp), %rdi
pushq $0x26
popq %rsi
callq 0x154f
movq 0x2ca6(%rip), %rdi      # 0x3fc8
movl %eax, %esi
callq 0x1130
movq %rax, %rdi
callq 0x1070
movq %rbx, -0x30(%rbp)
movq %rbx, -0x38(%rbp)
andq $0x0, -0x28(%rbp)
pushq $-0x5
popq %rax
leaq -0x1c(%rbp), %r14
movl %eax, -0x1c(%rbp)
cmpl $0x6, %eax
jge 0x135f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x15b4
movl -0x1c(%rbp), %eax
incl %eax
jmp 0x1345
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x15c4
movq 0x2c57(%rip), %rdi      # 0x3fc8
movl %eax, %esi
callq 0x1130
movq %rax, %rdi
callq 0x1070
leaq -0x38(%rbp), %rdi
pushq $-0x7
popq %rsi
callq 0x15c4
movq 0x2c35(%rip), %rdi      # 0x3fc8
movl %eax, %esi
callq 0x1130
movq %rax, %rdi
callq 0x1070
leaq -0x38(%rbp), %rdi
callq 0x161a
leaq -0x50(%rbp), %rdi
callq 0x164e
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x1530
movq %r14, %rdi
callq 0x1060
movq 0x2bec(%rip), %rdi      # 0x3fc8
leaq 0xc5a(%rip), %rsi       # 0x203d
callq 0x10c0
movq %rax, %rdi
callq 0x1070
callq 0x1110
jmp 0x13a2
jmp 0x152d
movq %rax, %r14
callq 0x1110
jmp 0x1530
movq %rax, %r14
cmpl $0x1, %edx
jne 0x1530
movq %r14, %rdi
callq 0x1060
movq 0x2ba4(%rip), %rdi      # 0x3fc8
leaq 0xc04(%rip), %rsi       # 0x202f
callq 0x10c0
movq %rax, %rdi
callq 0x1070
callq 0x1110
jmp 0x1380
jmp 0x152d
movq %rax, %r14
callq 0x1110
jmp 0x1530
movq %rax, %r14
cmpl $0x1, %edx
jne 0x153e
movq %r14, %rdi
callq 0x1060
movq 0x2b59(%rip), %rdi      # 0x3fc8
leaq 0xbaa(%rip), %rsi       # 0x2020
callq 0x10c0
movq %rax, %rdi
callq 0x1070
callq 0x1110
jmp 0x1331
jmp 0x153b
movq %rax, %r14
callq 0x1110
jmp 0x153e
movq %rax, %r14
cmpl $0x1, %edx
jne 0x153e
movq %r14, %rdi
callq 0x1060
movq 0x2b0e(%rip), %rdi      # 0x3fc8
leaq 0xb51(%rip), %rsi       # 0x2012
callq 0x10c0
movq %rax, %rdi
callq 0x1070
callq 0x1110
jmp 0x130f
jmp 0x153b
movq %rax, %r14
callq 0x1110
jmp 0x153e
movq %rax, %r14
cmpl $0x1, %edx
jne 0x153e
movq %r14, %rdi
callq 0x1060
movq 0x2acd(%rip), %rdi      # 0x3fc8
leaq 0xb02(%rip), %rsi       # 0x2004
callq 0x10c0
movq %rax, %rdi
callq 0x1070
callq 0x1110
jmp 0x12ed
jmp 0x153b
movq %rax, %r14
callq 0x1110
jmp 0x153e
movq %rax, %rdi
callq 0x15a5
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x161a
jmp 0x153e
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x164e
movq %r14, %rdi
callq 0x1140