(rsp-hle) Rewrite C99 for loops into C89-compatible ones