NEW YORK - Goldman Sachs Group Inc could have suffered dramatic losses if the federal government had not intervened to prop up American International Group Inc, according to a government report.

The report by the special inspector general for the government bailout program raises doubts about Goldman's previous claims that it was hedged against potential AIG losses.

Last fall, as the financial services industry stood on the brink of collapse, the government stepped in with an unprecedented effort to rescue the system. AIG was among the companies that received billions of dollars from the U.S. Treasury's Troubled Asset Relief Program.

If AIG had collapsed, it would have made it difficult for Goldman to liquidate its trading positions with AIG, even at discounts, the report said. It also would have put pressure on other counterparties that might have made it difficult for Goldman Sachs to collect on the credit protection it had purchased against an AIG default.

Finally, the report said, an AIG default would have forced Goldman Sachs to bear the risk of declines in the value of billions of dollars in collateralized debt obligations.

A Goldman Sachs spokesman did not return a message seeking comment.

AIG has received $180 billion in taxpayer aid since last fall to help save it from collapse. It was revealed in March that Goldman received $12.9 billion in payments and collateral from AIG.

David Viniar, Goldman's chief financial officer, in March told reporters that the Wall Street bank did nothing wrong when it accepted payments to close out trades with AIG.

The full report can be viewed at: ( (Reporting by Steve Eder; editing by John Wallace)