Apple has raised some interesting, and potentially winning, legal arguments in its motion to overturn a judge\u2019s order requiring the company to help the FBI unlock the iPhone of a mass shooter.The FBI's request for Apple to write new software to defeat password protections on the phone violates the company\u2019s free speech and due process rights, Apple argued Thursday in its motion to vacate Magistrate Judge Sheri Pym\u2019s Feb.16 order.Apple has a chance to prevail in court, especially with its First Amendment free speech argument, said Jennifer Dukarski, a technology lawyer with the Butzel Long law firm in Ann Arbor, Michigan.Several past court cases have looked on software code as a form of speech, although the legal record is mixed, she said. Apple argues the court cannot force speech from the company, particularly when the speech would be against Apple's own interests.\u201cClarity on this issue would help all who write and defend those who write code,\u201d Dukarski said. \u201cIf the code is treated as speech, I think Apple has a strong position against compelled speech.\u201dStill, the company has an \u201cuphill battle\u201d with Pym after her initial order requiring Apple to help unlock the phone, said Braden Perry, a lawyer specializing in federal enforcement cases with Kennyhertz Perry in Kansas City.The First Amendment argument could carry weight because the government needs a \u201ccompelling\u201d interest to force Apple to write new code, he said. Apple argues that the FBI has produced \u201cnothing other than speculation that the compelled speech could produce fruitful information.\u201dIt\u2019s important to consider the bigger picture than this one case, Perry added. \u201cThe majority of the argument is about balancing the needs of law enforcement with the privacy and personal safety interests of the public,\u201d he said.Following are some of the main legal issues.What\u2019s the FBI\u2019s argument? The FBI\u2019s request relies heavily on the All Writs Act, a U.S. law dating, back to the late 1700s, allowing courts to "issue all writs necessary or appropriate in aid of their respective jurisdictions and agreeable to the usages and principles of law."The All Writs Act gives judges wide latitude to compel parties to cooperate in cases before them, but there are limits. The judge must have no other legal options available, the target of the writ (Apple) must be closely connected to the case, and the court order cannot impose an undue burden.Apple\u2019s participation is necessary to access the phone, Department of Justice lawyers representing the FBI argue. \u201cHere, the government has obtained a warrant to search the phone of a mass murderer, but unless this Court enforces the Order requiring Apple\u2019s assistance, the warrant will be meaningless,\u201d DOJ lawyers wrote in a stinging rebuke of Apple filed Feb, 19.The bigger issue: More broadly, FBI Director James Comey and other officials have called for a policy debate about criminals\u2019 use of encrypted communications to shield law enforcement from their activities.Beyond this case, the larger issue is \u201creally about who we want to be as a country, and how do we want to govern ourselves?\u201d Comey said during a congressional hearing Thursday. Investigators increasingly can\u2019t read the communications of \u201cterrorists, gangbangers, pedophiles, all different kinds of bad people,\u201d he said.The FBI wants a public debate about the issues of encryption and security, Comey added. \u201cWe\u2019re not here to tell the American people what to do about it, we\u2019re just here to tell you there is a big problem, and that darkness is going to grow and grow and grow and change our world,\u201d he said.Apple argues that the FBI request, if successful, will open the door to hundreds of similar requests from investigators across the country and the world.\u201cThis is not a case about one isolated iPhone,\u201d the company\u2019s lawyers wrote Thursday. Instead, the FBI is seeking \u201ca dangerous new power\u201d to force Apple and other tech companies to undermine basic security and privacy protections.The order, if upheld, would create a workaround to encryption protections on iPhones, \u201cmaking its users\u2019 more confidential and personal information vulnerable to hackers, identity thieves, hostile foreign agents, and unwarranted government surveillance,\u201d Apple\u2019s lawyers wrote.Apple vs. the All Writs Act: The company argues Pym\u2019s order ignores several limits on the All Writs Act. The act does not give courts new authority to compel assistance beyond that already authorized by Congress, Apple says.In addition, the judge\u2019s order is \u201cunreasonably burdensome,\u201d and would require Apple to create a new operating system, tying up six to 10 of its employees for up to a month.Apple is also \u201cfar removed\u201d from the terrorism and mass shooting case being investigated, its lawyers argue. \u201cThe All Writs Act does not allow the government to compel a manufacturer\u2019s assistance merely because it has placed a good into the stream of commerce,\u201d they wrote in their appeal. \u201cApple is no more connected to this phone than General Motors is to a company car used by a fraudster on his daily commute.\u201dApple\u2019s First Amendment argument: The company points to several court cases where judges have considered code as a form of speech. It\u2019s a violation of the First Amendment to force speech, the company\u2019s lawyers argue.Apple\u2019s Fifth Amendment argument: The due-process claims are a bit tougher to follow, but they go like this: The Fifth Amendment protects U.S. residents against the government taking away their liberty. The requested order would require Apple to \u201cdo the government\u2019s bidding\u201d in a way that\u2019s burdensome and violates Apple\u2019s \u201ccore principles,\u201d its lawyers argue.What happens now? Judge Pym has scheduled a hearing on Apple\u2019s appeal for March 22 in Riverside, California. It\u2019s almost certain that her ultimate decision will be appealed by the losing side. The case could go then to a district court judge, and if challenged there, to the U.S. Court of Appeals for the Ninth Circuit. Ultimately, the case could end up in the Supreme Court, many legal experts have predicted.