The company also said it took a writedown totaling $ 5.28 billion on collateralized debt obligation-related assets to reflect weakened demand for the mortgage-related securities and recent credit agency downgrades .