What is the ruling on consuming foods, given as gifts from Non Muslims, which may have been bought with Gambling winnings?

Wa alaykum salaam
The source of income of the one who gives you a gift is not important or relevant to you.

As long as the food is halal and tahir, you can consume it.