.LC0:
       .string "Output: %d\n"
       .text
       .align 1
       .globl main
       .type  main, @function

main:
       addi   sp,sp,-32
       sd     ra,24(sp)
       sd     s0,16(sp)
       addi   s0,sp,32
       li     a5,1
       sw     a5,-20(s0)
       lw     a5,-20(s0)
       mv     a0,a5
       call   myFunction
       mv     a5,a0
       sw     a5,-24(s0)
       lw     a5,-24(s0)
       mv     a1,a5
       lla    a0,.LC0
       call   printf@plt
       li     a5,0
       mv     a0,a5
       ld     ra,24(sp)
       ld     s0,16(sp)
       addi   sp,sp,32
       jr     ra

myFunction:
       addi   sp,sp,-32
       sd     s0,24(sp)
       addi   s0,sp,32
       mv     a5,a0
       sw     a5,-20(s0)
       lw     a5,-20(s0)
       [** Do something with register a5 **]
       sext.w a5,a5
       mv     a0,a5
       ld     s0,24(sp)
       addi   sp,sp,32
       jr     ra
