Basketball bad boy Matt Barnes surrendered to NYPD cops on Wednesday and was booked in connection to a barroom brawl back in December, law enforcement sources said.

The hoops hothead turned himself in at the 10th Precinct station house and was issued a desk appearance ticket for misdemeanor assault — stemming from a brouhaha at Avenue nightclub in Chelsea in the early morning hours of Dec. 5.

Barnes was released without bail, and will have to show up in a Manhattan courtroom at a later date.

He wore gray sweats, a blue hoodie and flannel shirt with his hands in his pockets as he left the police station Wednesday.

The player refused to answer any questions before he jumped into a black SUV and was driven off.

The 6-foot-7 Barnes is accused of choking a woman at Avenue and then punching out the woman’s boyfriend when he came to her aid, law enforcement sources said.

Barnes, 36, was at Avenue that night and early morning with teammate DeMarcus Cousins hours after their Sacramento Kings lost to the Knicks at Madison Square Garden.

The Kings lost in Houston on Tuesday night and he boarded a plane for New York on Wednesday morning, law enforcement sources said.

The woeful Kings, now tied for 11th in the NBA’s Western Conference, don’t play again until Friday night, when the Phoenix Suns visit Sactown.

“We deny the allegations and will answer in court,” said Barnes’ defense lawyer Alex Spiro.

Additional reporting by Daniel Prendergast and David McGlynn