         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section .mdebug.abi32
				.previous
				.nan	legacy
				.module	fp=xx
				.module	nooddspreg
				.abicalls
		$Ltext0:
				.align	2
				LFB186 = .
				.set	nomips16
				.set	nomicromips
				.ent	main
		main:
				.frame	$sp,40,$31		# vars= 8, regs= 1/0, args= 16, gp= 8
				.mask	0x80000000,-4
				.fmask	0x00000000,0
				.set	noreorder
				.set	nomacro
				LVL2 = .
				addiu	$sp,$sp,-40
				sw	$31,36($sp)
				lui	$28,%hi(__gnu_local_gp)
				addiu	$28,$28,%lo(__gnu_local_gp)
				.cprestore	16
				lw	$2,%got(__stack_chk_guard)($28)
				lw	$2,0($2)
				sw	$2,28($sp)
    2   %integer i
				lw	$25,%call16(_imp_initialise)($28)
				.reloc	1f,R_MIPS_JALR,_imp_initialise
			1:	jalr	$25
				nop
				LVL3 = .
				lw	$28,16($sp)
				LVL4 = .
    3
    4   %routine dosomething(%integername p)
				.set	nomips16
				.set	nomicromips
				.ent	DOSOMETHING.5999
		DOSOMETHING.5999:
				.frame	$sp,32,$31		# vars= 0, regs= 1/0, args= 16, gp= 8
				.mask	0x80000000,-4
				.fmask	0x00000000,0
				.set	noreorder
				.set	nomacro
				LVL0 = .
				addiu	$sp,$sp,-32
				sw	$31,28($sp)
    5     p = p - 1
				lw	$2,0($4)
				addiu	$2,$2,-1
    6     dosomething(p) %if p>0
				bgtz	$2,$L7
				sw	$2,0($4)
				jr	$31
				nop
		$L7:
    7   %end
				.option	pic0
				jal	DOSOMETHING.5999
				nop
				.option	pic2
				LVL1 = .
				L2 = .
    8
				lw	$31,28($sp)
				jr	$31
				addiu	$sp,$sp,32
				.set	macro
				.set	reorder
				.end	DOSOMETHING.5999
		$LFE186:
				.align	2
				.globl	main
				LFB185 = .
    9   i = 10
				li	$2,10			# 0xa
				sw	$2,24($sp)
   10   dosomething(i)
				addiu	$4,$sp,24
				.option	pic0
				jal	DOSOMETHING.5999
				nop
				.option	pic2
				LVL5 = .
				lw	$28,16($sp)
				LVL6 = .
				LBB4 = .
				LBB5 = .
				move	$4,$0
				lw	$25,%call16(exit)($28)
				.reloc	1f,R_MIPS_JALR,exit
			1:	jalr	$25
				nop
				LVL7 = .
				LBE5 = .
				LBE4 = .
				.set	macro
				.set	reorder
				.end	main
		$LFE185:
		$Letext0:
   11
   12 %endofprogram
    9 Statements compiled
