President-Elect Donald Trump vows to “cancel all federal funding to sanctuary cities” during his first 100 days in office while Mayor Bill de Blasio said he plans to keep the city’s immigrants safe despite threatened funding cuts.

How will this affect New York?

It would be a budgetary nightmare, according to New York City Comptroller Scott M. Stringer, who released an initial analysis of federal funding for city programs to help identify what’s at stake.

“What we know with absolute certainty is that any cuts in federal aid to New York will have a devastating impact. We have a record homelessness crisis that will be made much more challenging with any decrease in funding,” Stringer said.

RELATED: Federal Immigration's Philly field office blasts mayor over 'sanctuary city' policy

Federal aid to New York City accounts for one out of every 10 operational dollars, according to Stringer’s report.

Eleven out of more than 40 mayoral agencies account for 59 percent of all city spending but receive 92 percent of all federal grant aid, including the Department of Homeless Services and the Administration for Children’s Services.

The cuts would even put the NYPD budget for intelligence and counter-terrorism at risk, Stringer warned.

RELATED: Food shortages in NYC causing families to fall off 'hunger cliff'

If federal aid for Section 8 Housing Choice vouchers is cut, New York will either have to cover the $482 million line item “or tens of thousands of New Yorkers might be without a home at a time when the City is already facing a record homelessness crisis,” according to the report.

The New York City Police Department receives 61 percent of its $380 million Intelligence and Counter-terrorism budget from the federal government.

Child Protective Services, delivered by the Administration for Children’s Services, could see almost half of its $247 million budget slashed, the report said.

“I urge President-elect Trump to remember that behind every federal line item is a human face – a family in need, a victim of domestic violence, an AIDS patient, a hungry school child,” Stringer said.

“We are a city that welcomes immigrants — we don’t turn people away based on where they’re from or what language they speak and that must not change.”

To view the full report, click here.