Earlier quoted context omitted.
At that point, why not just put a new (junkyard from a wrecked one) engine in?
$7,000 to put a new engine in a 2011 GMC Terrain that was worth maybe $8000. The engine was recalled by GM for excess oil consumption, my engine had the fixed installed and still died 30k miles later. I went with a new one because that particular vehicle ended up costing me more monthly than a car payment.
The 2 Toyota and 1 Lexus we own are between 14-11 years old and look and run like they came off the assembly line yesterday (all 3 were bought used). I figure I am still good for another 5 years minimum on all of them.