	ORG	64

	addi	a0, x0, 5
	addi	a1, x0, 6
	jal	ra, FUN1
	ecall	x0, a0, 0
	ebreak	x0, x0, 0

FUN1:
	addi	sp, sp, -16
	sd	ra, 0(sp)
	sd	s0, 8(sp)

	add	s0, a0, a1
	addi	t0, a0, 0
	addi	a0, a1, 0
	addi	a1, t0, 0
	jal	ra, FUN2
	add	a0, s0, a0
	ld	s0, 8(sp)
	ld	ra, 0(sp)
	addi	sp, sp, 16

	jalr	x0, 0(ra)

FUN2:
	sub	a0, a0, a1
	addi	a0, a0, 1
	jalr	x0, 0(ra)
