bG9vcDogCiAgICAgIGx3ICAgJHQxLCAwKCRhMSkKICAgICAgbm9wICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICBsdyAgICR0MiwgNCgkdDEpCiAgICAgIGFkZCAgJHQzLCAkdDAsICRhMgogICAgICBibmUgICR0MiwgJHQzLCBza2lwCiAgICAgIG5vcAogICAgICBhZGQgICR0NCwgJHQyLCAkdDQKc2tpcDogCiAgICAgIGFkZGkgJHQwLCAkdDAsIC0xCiAgICAgIGFkZGkgJGExLCAkYTEsIDQKICAgICAgYm5lICAkMCwgJHQwLCBsb29wCiAgICAgIG5vcAogICAgICBhbmQgICR2MCwgJHQ0LCAkdDQ=
loop:
lw $t1, 0($a1)
nop
lw $t2, 4($t1)
add $t3, $t0, $a2
bne $t2, $t3, skip
nop
add $t4, $t2, $t4
skip:
addi $t0, $t0, -1
addi $a1, $a1, 4
bne $0, $t0, loop
nop
and $v0, $t4, $t4