Headgasket or engine replacement on 2001 Chevrolet Malibu

I believe i need a new engine or motor or something. I had the headgaskets replaced and was told that there was something cracked that would require me to replace the engine in the car and was wondering if anyone knew how much that would cost

Asked by for the 2001 Chevrolet Malibu