section .text

.globl basic_add
basic_add:
entry:
    push rbp
    mov rbp, rsp
    push rbx
    push rsi
    sub rsp, 32
    mov r10, 0
    mov rbx, 0
    mov [rbp+1], rbx
    mov r10, 0
    mov rbx, 0
    mov [rbp+2], rbx
    mov [rbp+2], rcx
    mov r10, 0
    mov rbx, 0
    mov [rbp+3], rbx
    mov [rbp+3], rdx
    mov r10, [rbp+2]
    mov rbx, [rbp+2]
    mov r10, [rbp+3]
    mov rsi, [rbp+3]
    add rbx, rsi
    mov rsi, rbx
    mov [rbp+1], rsi
    mov r10, [rbp+1]
    mov rbx, [rbp+1]
    mov rax, [rbp+1]
    add rsp, 32
    pop rsi
    pop rbx
    pop rbp
    ret _

