A hysteretic dc SQUID reading the flux states of an rf SQUID