SAN FRANCISCO — In a scathing decision, an appellate panel on Tuesday ordered a San Jose technology company to pay its adversary’s legal fees in a trade secrets case the court deemed to be “based upon theories that were not merely specious, but nonsensical.”

Cypress Semiconductor Corp. sued Maxim Integrated Products Inc. in 2011 as an intimidation tactic and voluntarily dismissed the suit five months later because it had no evidence of wrongdoing, the Sixth District Court of Appeal concluded in a 35-page order affirming Santa Clara County Judge Peter Kirwan.