SANTA CRUZ >> A late-night downtown shooting led police to uncover a drug dealing operation where officers found firearms, cash and large quantities of cocaine, crack, methamphetamine and marijuana.

The investigation began after a 33-year-old man was shot in the neck on the 700 block of Pacific Avenue around 2 a.m. July 16, and two men were seen fleeing the scene. The victim, who was flown to an out-of-county trauma center for treatment, has since recovered, Santa Cruz Police Department spokeswoman Joyce Blaschke said in a release.

Detectives worked through the night and over the next week to follow the evidence, identifying two people of interest in the case: Deshawn Hatfield, 27, and Terrence Tolliver, 30, both of Santa Cruz.

But it wasn’t until 1 a.m. on July 31 that police were able to track the men down on the 200 block of Front Street, where Hatfield was arrested for suspicion of possession with intent to sell of methamphetamine and crack cocaine, and Tolliver was arrested under suspicion of possession of a loaded stolen firearm and probation violation.

After interviewing both men, police arrested Hatfield for suspicion of attempted homicide in the Pacific Avenue shooting.

On Wednesday, police searched a home associated with Hatfield and Tolliver on the 100 block of Kennan Street. There they found a loaded sawed-off .22 rifle, a loaded .22 handgun, a homemade shotgun, $36,500 in cash, a pound of cocaine, 20 grams of methamphetamine, 14 ounces of crack cocaine, 5 pounds of marijuana and a money counter.

Hatfield is charged with attempted murder with a firearm and is being held in Santa Cruz County Jail.

Tolliver’s status was not immediately known.

Anyone with information related to the investigation is encouraged to contact police at 831-420-5820.