Chances?

I have a gap of around 88 and an SAT of 1370
I took very rigorous courses all honors AP Euro AP US history AP chemistry I got a 5, 5, and 3 on the exams

I feel like I’d be a lock except my grades are erratic I’ve come close to failing a class each year for the last 3 around 70’s I have good extracurricular and recommendations so I wanna know if I have a chance to get into SUNY Buffalo