.section .text
.global _start
.type _start, %function
// Arguments:
// %rdi - argc (well, not quite yet)
// %rsi - argv
_start:
    movq $0, %rbp
    // For callee linkage
    pushq %rbp
    pushq %rbp
    movq %rsp, %rbp

    call __libc_init

    call _init

    // Ignore %rdi/%rsi for now
    xorq %rdi, %rdi

    // exit(main(argc, argv))
    call main
    movq %rax, %rdi
    call exit
.size _start, . - _start
