Remove inline volatile asm and rustify.