Pull the trans and find the piece which pooped off. I bet the internals are fine you just need the piece welded back on. It might work and it might not, one thing is for sure the weld repair will be a fraction of the cost of replacing the trans. There are some very talented welders out there, cast metal should be easy for one of these guys.