A judge sentenced a Long Beach man who pleaded no contest to killing and sexually abusing his 9-year-old stepdaughter to a 41 years-to-life term in state prison.

Jacinto Trujillo Zuniga, 36, of Long Beach entered his pleas to counts of first-degree murder and oral copulation with a child 10 years old or younger during a Monday court appearance, according to the Los Angeles County District Attorney’s office. He also confessed to using a razor blade to kill his stepdaughter, Xiomara Jonsales-Fernandez, after repeatedly sexually abusing her.

Los Angeles County Superior Court Judge Gary J. Ferrari handed down the sentence Monday. Trujillo will be required to register as a sex offender for the rest of his life — if he is ever released from prison.

The crimes came to light after a female motorist called 911 on a Saturday morning in late April 2012 to report her sighting of the girl’s body — and a bleeding Trujillo — in the parking lot of a church in the 5900 block of Willow Street.

Long Beach police said at the time that Trujillo apparently attempted to kill himself after attacking the child. Authorities booked Trujillo on suspicion of murder after he received hospital care for his wounds.

Trujillo had been responsible for caring for Xiomara since she was a baby, the District Attorney’s office reported. He admitted to multiple instances of sexual abuse to investigators.

Long Beach Police Department personnel investigated the case against Trujillo. Deputy District Attorney Kelly Kelley of the Victim Impact Program handled the prosecution.