[BUGFIX] Restore registers before early returns