A Corrections officer, bleeding heavily from stab wounds inflicted by an inmate, "lost control" and "reacted to violence with violence" as he lashed out in retaliation, a court has heard.
Guards Desmond Faafoi, Wiremu Paikea and Viju Devassy were all working at Auckland Prison, Paremoremo, on May 20 last year when a group of prisoners attacked them.
Faafoi was stabbed several times in the head with a shank (a makeshift knife).
While police charged the three prisoners who instigated the attack, Samuel Hutchins, Trent Wellington and Mitai Angell, the three guards were also charged.
Faafoi is accused of assault with intent to injure for kicking Angell in the head three times.
"Devassy saw this, it happened in front of him," Murdoch said of the incident.
"He clearly saw Mr Faafoi kicking Angell's head as Angell lay curled up in the fetal position. He clearly saw it 'cause it was recorded on his body camera," she continued.
Devassy is charged with wilfully attempting to pervert the course of justice for allegedly turning a CCTV camera away from the incident.
Devassy denies redirecting the camera to prevent the brawl being filmed and his lawyer, Paul Borich QC, said the Corrections officer was trying to preserve justice and "locate other rogue inmates".
As Angell was lying on the ground Paikea enters the scene, Murdoch told the jury.
Voices from an unknown Corrections officer during the recording can be heard saying: "Des[mond], Des, enough, enough, enough, enough" and "camera, camera".
However, Faafoi's defence counsel Todd Simmonds said his client had no malicious intent to injure Angell.
"Multiple blows to his head, stab wounds, cuts, abrasions, bleeding and the effect that had on him," Simmonds said of Faafoi.
"His ability to think straight, to appreciate what he was doing at the time - that's the defence.
"He may have lashed out, you'll see that on the footage, but did he have the intent?"
The CCTV footage later shows Paikea kneeling down over the back of Angell's legs.
The Crown alleges Paikea deliberately bent Angell's ankle at a 90-degree angle causing the compound dislocation.
Paikea's lawyer Aaron Perkins QC said his client accepts the injury occurred while wrestling with the inmate but rejects any criminal intent or reckless disregard.
"[Paikea] was simply doing his job in very difficult circumstances to the best of his ability," Perkins said.
The trio of officers were suspended after the charges were laid.
The prisoners have all pleaded guilty to wounding with intent to cause grievous bodily harm and aggravated assault and will be sentenced later this year.
The guards' trial is expected to conclude in the next few days.