
    .bss
    .align 32

    .global head
head:
    .zero 8

    .global buf
buf:
    .zero 2048

    .text
    .global func
func:

    /* put addr of buf in RSI */
    lea buf,%rsi

    /* rdi holds addr of head var */
    lea head,%rdi

/* Write addr of 1st list elem to head */
    mov %rsi,(%rdi)

    ret
