Anything can be repaired. What was the cost for repair?
A completely rebuilt engine and heads can be had for three or four thousand bucks. It would be foolish to reuse any of the old moving parts, so figure another grand in sensors, pumps and what not. Then there is the issue of having a new engine mounted to a transmission with 266k on it. It just just doesn't make sense, a rebuilt transmission is probably in the $2500 range. Then there is the labor to put it all together.
While that was going on it would make sense to have the big dent in the left rear of the bed repaired. The other issue it that I need a truck Monday morning, and not just any truck. It needs to be set up to tow a trailer and have heavy duty lumber racks on it.
I bought a new truck instead. Mine blew up at 9:30 in the morning, I was driving my new one at 1:30 that afternoon.