micro-optimizations to register decode