Fix for r202778 - Implement __readeflags and __writeeflags intrinsics (renamed res to __res)