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