Shaping the galaxy stellar mass function with supernova- and AGN-driven winds | Synapse