    .file "print.s"
    .text
    .data
str:
    .ascii "test\n"
    .text
    .global main
main:
    endbr64
    movq %rsp, %rbp

    movq $0, %rax
    leaq str(%rip), %rdi
    movq $5, %rsi 
    callq print
    
    movq %rbp, %rsp
    movl $0, %eax
    ret

print:
    movq %rsi, %rdx
    movq %rdi, %rsi
    movq $1, %rdi
    movq $1, %rax
    syscall
    retq
