A Glen Ellyn man allegedly shoved a hospital security guard and repeatedly reached for a loaded handgun during a struggle with three guards in the emergency room at Northwestern Medicine Central DuPage Hospital, prosecutors said.

Michael Vangarsse, 38, was disarmed and restrained before Winfield police arrived at the hospital around 1 a.m. Sept. 27, according to Patch, which cited authorities’ account of the incident.

Prosecutors said a nurse directed Vangarsse to a back area and told him to change into a hospital gown. He refused, then allegedly shoved a security guard who repeated the instruction and began walking toward the hospital’s interior.

Two additional guards intervened. During the struggle, one guard saw Vangarsse reaching toward his waist. Prosecutors allege he repeatedly tried to retrieve the firearm but was unable to do so.

Security guards recovered a Beretta 92 9 mm handgun from his waistband with one round in the chamber and 15 rounds in the magazine, authorities said. They also found three additional loaded magazines containing a combined 60 rounds.

Vangarsse faces three counts of aggravated unlawful possession of a weapon, each a Class 4 felony. Judge Robert Walsh granted prosecutors’ request to hold him pending trial following his initial court appearance, as the Lombard Community News reported. The detention order and charges were also confirmed in the county’s announcement.

Vangarsse had previously been ordered not to possess firearms while awaiting trial in an unrelated domestic violence case, the Daily Herald reported, citing court records.

“Hospitals are no setting for a loaded weapon,” DuPage County State’s Attorney Robert Berlin said in a statement. He credited hospital security with bringing the situation under control before police arrived.

Vangarsse’s next court appearance is scheduled for Oct. 26 before Judge Ann Celine O’Hallaren Walsh. He is presumed innocent unless proven guilty.