With the price of dealer replacement parts, a bike can be "legally" totaled very easily... just a dink in the tank, and the replacement can be $400 to $600 ... scuffed fender, $200, plastic doo-daa cover, $200... etc... + labor... and it's cheaper for the insurance to total it out...
You need to be sure the frame is straight, and no stress fractures. Ride it, see that it tracks straight, and look at the welds at the steering head, swingarm, and triangle joints... inspect engine cases...
Should cost 60% or less of blue book,.. because resale will be low...
I'd rather buy one that's not been fixed up,.. because you can mentally total up the visual damage, and see that it adds up to totaled...
My Yamaha xt225 was a salvage title... I bought it for $1400, rode it 16k miles, and sold it for $1600... no problems...
I totaled my Ninja myself,... brought it home before it was reported as crashed... fixed it up myself and sold it. No salvage title...
(I know,.. I'm bad)... but I know if it's sound or not. (I told the buyer how it went down, what was repaired, and how)...
That bike was still on the road 4 years later, 'cause I saw it..
Point is,.. buying used, is a pig in a poke... Treat every used bike you look at as if it's been crashed...
...