Rewrite i686 entry point in Rust