As far as the question goes before collision the sphere is in pure rolling condition. Now the wall is smooth. There fore just after collision the angular velocity remains same in magnitude and direction but the linear velocity changes direction after collision. If the collision is elastic the magnitude will not change. There fore the sphere after collision has clockwise rotation and leftward linear motion and the friction direction now is towards right because the bottom most point has a resultant velocity towards right. Now the angular velocity and linear velocity both will reduce until the angular velocity will change its direction and becomes equal in magnitude to the ration of linear velocity to radius when, pure rolling starts. Now the friction dissappears.