ASX snaps two-day losing streak