RICHMOND, Va. - The first federal appeals court to hear a challenge to U.S. President Donald Trump's revised travel ban appeared unconvinced that it should ignore the Republican's repeated promises on the campaign trail to bar Muslims from entering the country.

An attorney for the president urged the 4th U.S. Circuit Court of Appeals on Monday to focus on the text of the religiously neutral executive order rather than use campaign statements to infer that the policy was driven by anti-Muslim sentiment.

But that idea was challenged by several members of the 13-judge panel, which is examining a ruling that blocks the administration from temporarily barring new visas for citizens of Iran, Libya, Somalia, Sudan, Syria and Yemen.

"Is there anything other than wilful blindness that would prevent us from getting behind those statements?" asked Judge Henry Floyd, who was appointed to the court by President Barack Obama.

The 4th Circuit ruling is crucial for Trump, whose travel ban is expected to end up in the U.S. Supreme Court. The 4th Circuit is the first appeals court to examine the revised travel ban, which Trump's administration rewrote in an attempt to thwart legal challenges. It's unclear when the judges will issue their written decision.

Trump's attorneys likely see the moderate court as friendlier territory than the 9th U.S. Circuit Court of Appeals, which conservatives have long attacked for being too liberal. The 9th Circuit is scheduled to hear another challenge to the revised travel ban next week.

The 4th Circuit "is historically quite conservative and quite pro-government, so for the Trump administration to lose before the full 4th Circuit I think would be quite a body blow for the second version of the executive order," said Stephen Vladeck, a professor at the University of Texas law school.

A federal judge in Maryland who blocked the revised travel ban in March cited Trump's comments as evidence that the executive order is a realization of Trump's promised Muslim ban.

The administration argues that the court shouldn't question the president's national security decisions based on campaign statements. The countries were chosen because they present terrorism risks and the ban applies to everyone in those countries regardless of religion, it says.

"This is not a Muslim ban. Its text doesn't have to anything to do with religion. Its operation doesn't have anything to do with religion," Acting Solicitor General Jeffrey Wall told the court.

Omar Jadwat, an attorney for the American Civil Liberties Union, noted that Trump's call for a "total and complete shutdown" of Muslims entering the U.S. remained on his campaign website even after he took office. That call, which was still online earlier Monday, appeared to have been taken down by the afternoon hearing.

Jadwat said the administration has failed to provide a legitimate national security reason for the policy.

"The order is completely unprecedented in our nation's history," Jadwat said.

Judge Paul Niemeyer repeatedly challenged Jadwat's arguments, questioning the wisdom in opening the door to using a president's past to evaluate the constitutionality of a policy.

"Can we look at his college speeches? How about his speeches to business men 20 years ago?" asked Niemeyer, who was tapped by President George H. W. Bush.

The first travel ban in January triggered chaos and protests across the country as travellers were stopped from boarding international flights and detained at airports for hours.

After a three-judge panel of the 9th Circuit refused in February to let the travel ban take effect, the administration tweaked the order and issued a new one.

The new version made it clear the 90-day ban covering those six countries doesn't apply to those who already have valid visas. It removed language that would give priority to religious minorities and erased Iraq from the list of banned countries.

But critics said that although the new executive order affects fewer people, it remains a realization of Trump's promised Muslim ban and cannot stand.

Even if the Trump administration wins in the 4th Circuit, the travel ban will remain on hold unless it also overturns a federal judge's decision in Hawaii.

Vladeck said the Supreme Court may be more willing to hear the case if there's a split among the appeals courts.

But Richard Primus, a professor of constitutional law at the University of Michigan law school, said he thinks the Supreme Court will ultimately hear the case no matter what the appeals courts decide.

"A case this big, a case this salient, is one that some of the justices are not going to want to pass up," he said.

-----

Associated Press writer Sarah Rankin contributed to this report.