section .text
global _main

_main:
    ; Print "Hello World!\n"
    mov rax, 0x2000004     ; sys_write (macOS/x86-64)
    mov rbx, 1             ; stdout file descriptor
    lea rcx, [rel message]  ; pointer to the message
    mov rdx, 13            ; length of "Hello World!\n"
    syscall

    ; Exit cleanly
    xor eax, eax           ; sys_exit with status 0
    syscall

section .data
message db "Hello World!", 0xA