Find the maximum and minimal values of the function
$$f(x)=(x^2-4)^8 -128\sqrt{4-x^2}$$
over its domain.