The Supreme Court heard arguments on Wednesday on whether states and cities can ban AR-15s and similar rifles. It is the biggest gun rights case before the justices in years. The outcome could turn on Chief Justice John Roberts and Justice Amy Coney Barrett.

The case involves bans in Connecticut and Cook County, Illinois, CBS News reports. Fox News reports that the case could affect gun laws across the country.

The court appeared closely divided, CBS News reports. Fox News also reports that the court appeared split. NPR reports that the conservative majority seemed inclined to bar the bans, but that the arguments were no slam dunk for either side.

Justices Clarence Thomas and Samuel Alito appeared likely to strike down the bans, while Justices Sonia Sotomayor and Ketanji Brown Jackson seemed ready to uphold them, CBS News reports.

Peter Patterson argued for gun owners who challenged the bans, NPR reports. He said these guns are protected because millions of them are in common use today.

Roberts said at one point that common use "doesn't seem to make much sense," according to NPR.

Barrett asked how much room state lawmakers should have to respond to mass shootings, NPR reports. But she also pressed the lawyer defending the bans on whether the same reasons would apply to handguns, which the court has said can't be banned, CBS News reports.

"An AR-15 is capable of killing a lot of people," Sotomayor said during the arguments, CBS News and Fox News report.

Justice Elena Kagan raised the idea that states could regulate AR-15s heavily without banning them outright, according to CBS News.

Supporters of the bans say the guns are unusually dangerous, Fox News reports. Opponents say about 26 million people own them and that they account for a small share of gun violence, according to Fox News.

Connecticut's laws date to the 2012 school shooting in which 20 children and six staff members were killed with an AR-15-style rifle, NPR reports.

What we know: The justices heard the case on Wednesday and appeared divided. What we don't know: How the court will rule, and when.