global ft_list_size section .text ft_list_size: xor rax, rax count_start: test rdi, rdi jz end mov rdi, [rdi + 8] lea rax, [rax + 1] jmp count_start end: ret