Updated 04/29/14 – 2:33 p.m.

CHICAGO (STMW) — A woman drove her daughter to Rosehill Cemetery, tried to suffocate the 4-year-old with a plastic bag, then trieed to kill herself before changing her mind, Cook County prosecutors said Tuesday.

READ MORE: 'When I Finally Got To Be Elvira, That's When My Life Calmed Down': Mistress Of The Dark Peels Back The Curtain

After the little girl’s lips turned blue and she stopped struggling, Mary Ryan, 24, covered the child’s body with a blanket in the back seat of her car Monday morning, Assistant State’s Attorney Erin Antonietti said.

Antonietti claimed Ryan put the same Aldi bag over her own head, but then decided she didn’t want to take her own life and proceeded to perform CPR on her daughter, the Sun-Times is reporting.

Ryan, who wore black sweatpants and a pink sweatshirt in court Tuesday, sobbed when prosecutors described how the little girl shook her head, tried poking holes in the bag and kicked her legs in the air when she was being suffocated.

“Take a deep breath,” Judge Peggy Chiampas told Ryan.

Ryan took her daughter to Rosehill Cemetery after picking her up from school Monday, Antonietti said. That was shortly after 11 a.m., authorities said.

She drove around for a bit looking for an isolated spot where there were no people before she parked the car and approached her daughter, who was sitting in the back seat, Antonietti said.

Ryan allegedly placed her hand on the child’s mouth as she held the bag on the girl’s head.

READ MORE: Teen Stabbed With Scissors After Argument On CTA Red Line Platform At Jackson Station

When Ryan decided she didn’t want to follow through with killing herself, she performed CPR on her daughter, drove out of the cemetery and flagged down a police officer, who escorted her to the nearest hospital, Antonietti said.

The child, who the Illinois Department of Children and Family Services has since placed with her maternal grandmother, suffered an abrasion to her eye and complained about pain on the side of her neck, Antonietti said.

A few days before Monday’s incident, DCFS placed Ryan’s other child with that child’s biological father.

Ryan’s two children have different fathers, prosecutors said.

DCFS officials weren’t immediately available for comment.

Ryan is married and is a 2008 graduate of Taft High School, an assistant public defender said.

Chiampas ordered her held on a $1 million bond.

Ryan, of the 6100 block of North Hoyne Avenue, must also undergo a health evaluation and have no contact with her children should she post bond, the judge said.

MORE NEWS: Record 53,000 Rat Complaints Help Chicago Retain Crown As Rattiest City In America For 7th Year In A Row

(Source: Sun-Times Media Wire © Chicago Sun-Times 2014. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)