Symplectic topology and critical points of complex-valued functions