I passed CA smog easily with my magnaflow catted x pipe. Everyone told me that they would fail me for using an aftermarket pipe but I had no issues.
I know its illegal in CA for a junkyard to sell used cats. Your best bet is craigslist or on the classifieds here/corral if you want a stock one.