Anthony Sampieri raped a seven-year-old girl at a Sydney dance studio last year

He has pleaded guilty to three counts of raping a child and seven other charges

Nick Gilio confronted the rapist and was slashed by Sampieri as they fought

A rapist who attacked a primary schoolgirl in a Sydney dance studio bathroom claimed he was suffering 'sexual mania' while high on meth.

Anthony Sampieri raped the seven-year-old girl at a Kogarah dance studio, in the city's south, on November 15, 2018, in a crime that shocked Australia.

ADVERTISEMENT

The 55-year-old - who was on parole at the time for raping a woman in 2012 - had grabbed the girl as she entered the bathroom, and later dragged her into the men's toilet.

He subjected her to depraved acts for more than 40 minutes, before good Samaritan Nick Gilio intervened.

Scroll down for video

Anthony Peter Sampieri (pictured) raped a seven-year-old girl at a Kogarah dance studio, in the city's south, on November 15, 2018

Sampieri pleaded guilty to three counts of raping a child and seven other offences related to the attack.

He's also due to be sentenced over admissions he made about 94 offensive phone calls to 91 women between August and the day of the attack.

A psychological report ­released in court on Thursday revealed Sampieri was frequenting public toilets to masturbate, The Daily Telegraph reported.

'In the months prior to the current offences Mr Sampieri had also taken to masturbating in public toilets, finding a sexual thrill in masturbating in cubicles adjacent to women,' the report said.

Click here to resize this module

Forensic psychologist­ Patrick Sheehan also wrote that Sampieri claimed to experience 'sexual mania' when high.

'He describes some form of sexual mania when affected by methylamphetamine, staying awake for days 'fixated' on sexual fantasy,' the report said.

In the wake of the attack, a sample of Sampieri's blood found methamphetamine, amphetamine, Diazepam and Nordiazepam, news.com.au reported.

He hadn't slept for days before the attack.

The seven-year-old girl, who was wearing a black, navy and silver jazz ballet outfit, was waiting for her sister's dance class to finish with her mother after the end of her own class, according to court documents seen by news.com.au.

The girl needed to use the bathroom and left her mother in the carpark to use the facility in the dance hall above at about 6.48pm.

Sampieri had arrived at the dance hall bathrooms more than an hour earlier where he used his mobile phone to watch pornography.

It was when the seven-year-old entered the bathroom that Sampieri snatched his victim, who tried to resist.

He punched her on the left cheek and threatened her with a four-centimetre blade.

'This is my knife and I don't want to use it,' Sampieri told her.

Sampieri tied a black cord around her neck and moved her from the female bathroom and into a male cubicle where he turned the light off and began assaulting her.

ADVERTISEMENT

He told the victim he would 'cut her neck off' if she made a sound.

Sampieri physically and sexually assaulted the girl in the bathroom (pictured) of a Kogarah dance studio

The victim's mother began to wonder where her daughter was when the other daughter finished her class at about 7.30pm.

She started looking for the girl with the help of dance teacher and dentist Jeffrey Stack, who attempted to knock on the door of the closed cubicle in the men's bathroom.

Sampieri then left the bathroom and walked past Mr Gilio, who asked the 55-year-old if he'd seen the girl - to which Sampieri said no.

But the pair then entered the bathroom with Sampieri trailing behind and found the seven-year-old victim.

Upon realising what Sampieri had done to the girl, Mr Gilio screamed 'Is this what you do?' and rammed Sampieri's head into a brick wall.

The rapist soon reached for his knife - used to detain the girl - and began swinging at the good Samaritan and the girl's mother.

The men fought for several minutes and Mr Gilio's stomach and the back of his neck - from ear to ear - were sliced by knife-wielding Sampieri.

Upon realising what Sampieri had done to the girl, Nick Gilio (pictured) screamed 'Is this what you do?' and rammed Sampieri's head into a brick wall

'He had no regard for me or my family ... his only regard was a thirst for abuse,' the mechanic told the NSW District Court on Thursday.

'This is the reason I can't sleep at night. The flashbacks are still there.'

Sampieri was only overcome after the bleeding mechanic grabbed him in a headlock as Mr Stack burst through the door and punched the paedophile twice in the face.

Mr Gilio told the court he could still remember the feeling of the scalpel being dragged across the back of his neck and the sight of the girl on top of the toilet with her hands, legs and neck bound.

The previously 'happy-go-lucky' man is now pessimistic about the world and sees all children as vulnerable to attack from people like Sampieri.

Mr Gilio said there was no sentence harsh enough for Sampieri and wished the rapist a life of 'pain, darkness and misery'.

'The pain is a life sentence to all of us involved ... we live with this pain every day of our lives,' he said.

'There is no forgiveness or rehabilitation for what you have done. For the consequences of your actions, you must suffer.'

ADVERTISEMENT

Sampieri is expected to return to court in December for sentencing.