rc/msf_decode: Add next-state logic