         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.option nopic
		.Ltext0:
				.align	1
		DOSOMETHING.6003:
		.LFB186:
		.LVL2:
				add	sp,sp,-32
				sd	ra,24(sp)
				lui	a5,%hi(__stack_chk_guard)
				ld	a5,%lo(__stack_chk_guard)(a5)
				sd	a5,8(sp)
    2   %integer i
				call	_imp_initialise
		.LVL3:
    3
    4   %routine dosomething(%integername p)
		.LVL0:
				add	sp,sp,-16
				sd	ra,8(sp)
    5     p = p - 1
				lw	a5,0(a0)
				addw	a5,a5,-1
				sext.w	a4,a5
				sw	a5,0(a0)
    6     dosomething(p) %if p>0
				bgtz	a4,.L7
				ret
		.L7:
    7   %end
				call	DOSOMETHING.6003
		.LVL1:
		.L2:
    8
				ld	ra,8(sp)
				add	sp,sp,16
				jr	ra
		.LFE186:
				.align	1
				.globl	main
		main:
		.LFB185:
    9   i = 10
				li	a5,10
				sw	a5,4(sp)
   10   dosomething(i)
				add	a0,sp,4
				call	DOSOMETHING.6003
		.LVL4:
		.LBB4:
		.LBB5:
				li	a0,0
				call	exit
		.LVL5:
		.LBE5:
		.LBE4:
		.LFE185:
		.Letext0:
   11
   12 %endofprogram
    9 Statements compiled
