    .file "test2.s"
    .data
str:
    .ascii "test2\n"
    .text
    .global test2

test2:
    movq %rsp, %rbp

    movq $1, %rax
    movq $1, %rdi
    leaq str(%rip), %rsi
    movq $6, %rdx
    syscall

    movq %rbp, %rsp

    // exit
    movq $60, %rax
    movq $0, %rdi
    syscall
