The Supreme Court on Wednesday will hear arguments in a case that challenges bans on certain semiautomatic rifles, like AR-15s.

The case comes to the high court after two separate challenges to bans were filed by Chicago-area (Cook County) and Connecticut residents.

In both cases, the plaintiffs wanted to buy certain semiautomatic firearms but were blocked by state and local bans."The reason that we have banned the assault weapon is because in a densely populated urban environment, the danger that these weapons present is a significant risk," Cook County State's Attorney Eileen O'Neill Burke said.