proc: deca r5
st r6, (r5)
ld 8(r5), r1
beq r1, L0
dec r1
ld 4(r5), r2
deca r5
deca r5
st r2, (r5)
st r1, 4(r5)
gpc $6, r6
j proc
inca r5
inca r5
ld 4(r5), r2
ld 8(r5), r1
dec r1
ld (r2,r1,4), r1
add r1, r0
br L1
L0: ld $0, r0
L1: ld (r5), r6
inca r5
j (r6)