Samsung is feeling the chill from cooling global demand for smartphones.