Feedback and recycled wind accretion: assembling the z= 0 galaxy mass function