		.text
		.align  2
		.globl  _start

_start:
		addi a0, x0, 1123
		addi a1, x0, 5
		nop
		nop
		nop
		jal ra, max
		nop
		nop
		nop
		addi a0, x0, 10
		addi a1, x0, 20
		nop
		nop
		nop
		jal ra, max

		
loop:
		jal x0, loop
		nop
		nop
		nop

max:
   blt a0, a1, second   # if a0 < a1 then a1 is larger
   nop
   nop
   nop
   jal zero, done
   nop
   nop
   nop
second:
   add a0, zero, a1     # make a1 the return value
done:
  	jalr x0, ra, 0
	nop
	nop
	nop

		.end _start
		.size _start, .-_start
