For a single component closed system, my textbook says $$dU=\left(\frac{\partial U}{\partial S}\right)_VdS+\left(\frac{\partial U}{\partial V}\right)_SdV=TdS-PdV$$ is valid for both reversible and irreversible process. But if the process is irreversible and non-quasi-static, (for example, if it is just a set of points in the coordinate system far apart from each other), how can I talk about the total differential of the state function?
Furthermore, the Maxwell's relation $\left(\frac{\partial T}{\partial V}\right)_S = -\left(\frac{\partial P}{\partial S}\right)_V=\frac{\partial^2 U}{\partial S \partial V}$ seems to suggest the smoothness of the state function.
What is it that I am getting wrong here?