*Somebody just got a thorough arse whuppin’ courtesy of openly gay boxer Yusaf Mack who dispensed the beatdown at a barbershop in Philly.

The beating was in response to the man harassing Mack because of his sexual orientation.

Paramedics were dispatched to the L A Clippers shop in Philadelphia Saturday evening … after Mack wailed on the man in front of customers and employees.

Witnesses say Mack attacked the man while his head was in a sink in the middle of a wash.

Mack tells us he got sick and tired of the online harassment and decided to confront the guy face-to-face. Mack is unapologetic and says the guy got what he deserved.

READ RELATED STORY: BOXER YUSAF MACK BLAMES GAY SEX TAPE APPEARANCE ON BEING DRUGGED

yusaf mack

TMZ Sports reached out to the victim, but needless to say he didn’t want to talk. However, he has since issued several homophobic statements on his Facebook page, including:

“I rather have a video of some beating me up then a video of someone seeing me take a d*** up my a** any day.”

The man says he will retaliate against Mack … “Me and him gonna fight again.”

Hmm, maybe dude’s issue is that he’s a masochist and …

Anyway, Mack says he’s not scared. Yeah, we think he’s kinda looking forward to his next encounter with this fool.