We construct the wave functions in the q-deformed 2d Yang-Mills theory that compute torus correlation functions of affine currents in the VOA associated to a class of 4d N = 2 SCFTs. These wave functions are then shown to reduce to the topological correlators of a set of Coulomb branch operators in the T [SU (N )] theory, from which those correlators in the 3d mirror dual of the 4d TN theories can be computed.