// File: /workspace/github_cpp_makefile_star2_O1/t0mm4rx[P]piscine_cpp/day07/ex01/iter.cpp
// Function: main
int main(void)
{
  int list[] = {0, 2, 3, -5, 6, 42, 8};
  std::string list2[] = {"Hey!", "Hello world,", "what's up?"};
  printList(list, 7);
  iter(list, 7, &fn);
  printList(list, 7);
  iter(list2, 3, &fn2);
  std::cout << std::endl;
  A list3[3];
  list3[0] = A(21);
  list3[1] = A(42);
  list3[2] = A(-42);
  iter(list3, 3, &fn3);
  std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movups 0xd33(%rip), %xmm0      # 0x205c
movups %xmm0, -0x44(%rbp)
movaps 0xd1c(%rip), %xmm0      # 0x2050
movaps %xmm0, -0x50(%rbp)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xcbc(%rip), %rsi       # 0x2006
leaq 0xcb9(%rip), %rdx       # 0x200a
leaq -0xb0(%rbp), %r15
movq %r15, %rdi
callq 0x156e
leaq -0x90(%rbp), %r14
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc95(%rip), %rsi       # 0x200b
leaq 0xc9a(%rip), %rdx       # 0x2017
movq %r14, %rdi
callq 0x156e
leaq -0x70(%rbp), %r14
leaq -0x60(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xc7f(%rip), %rsi       # 0x2018
leaq 0xc82(%rip), %rdx       # 0x2022
movq %r14, %rdi
callq 0x156e
leaq -0x50(%rbp), %rdi
movl $0x7, %esi
callq 0x1287
xorl %eax, %eax
shll -0x50(%rbp,%rax,4)
incq %rax
cmpq $0x7, %rax
jne 0x13b8
leaq -0x50(%rbp), %rdi
movl $0x7, %esi
callq 0x1287
movl $0x8, %r15d
movq 0x2bf8(%rip), %rbx      # 0x3fd8
leaq 0xc1d(%rip), %r14       # 0x2004
movq -0xb8(%rbp,%r15), %rsi
movq -0xb0(%rbp,%r15), %rdx
movq %rbx, %rdi
callq 0x10a0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x10a0
addq $0x20, %r15
cmpq $0x68, %r15
jne 0x13e7
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq 0x2ba1(%rip), %rdi      # 0x3fd8
callq 0x1030
movq %rax, %rdi
callq 0x1040
movabsq $0x2a00000015, %rax     # imm = 0x2A00000015
movq %rax, -0x30(%rbp)
movl $0xffffffd6, -0x28(%rbp) # imm = 0xFFFFFFD6
xorl %r15d, %r15d
movq 0x2b75(%rip), %rbx      # 0x3fd8
leaq 0xb9a(%rip), %r14       # 0x2004
movl -0x30(%rbp,%r15,4), %esi
movq %rbx, %rdi
callq 0x10c0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x10a0
incq %r15
cmpq $0x3, %r15
jne 0x146a
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq 0x2b2a(%rip), %rdi      # 0x3fd8
callq 0x1030
movq %rax, %rdi
callq 0x1040
movq $-0x60, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x14d8
movq (%r12), %rsi
incq %rsi
callq 0x1090
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x14c2
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x14f6
movq %rax, %rbx
jmp 0x1501
movq %rax, %rbx
movq %r15, %r14
cmpq %r14, %r15
je 0x1566
addq $-0x10, %r14
leaq -0xb0(%rbp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x1525
movq (%r14), %rsi
incq %rsi
callq 0x1090
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x1511
jmp 0x1566
jmp 0x153d
jmp 0x153d
jmp 0x153d
movq %rax, %rbx
xorl %r14d, %r14d
movq -0x70(%rbp,%r14), %rdi
leaq (%r12,%r14), %rax
cmpq %rdi, %rax
je 0x155c
movq (%rax), %rsi
incq %rsi
callq 0x1090
addq $-0x20, %r14
cmpq $-0x60, %r14
jne 0x1543
movq %rbx, %rdi
callq 0x10d0