1) Do not take assets from your 401k, corporate retirement plans are typically exempt from bankruptcy proceedings, and personal IRAs are protected to over $1million (http://seekingalpha.com/article/502201-ira-bankruptcy-protections).
2) Unless you have a pension, then you do not have enough money to retire early at age 58, 4 years before social security starts. If you are able, you should consider working until at least 62.
3) If the reason for filing bankruptcy is a spending problem, then you'd be wise to correct that issue first before worrying about your retirement. Draft a budget and stick to it because if you don't correct a spending problem then you'll be right back in this same mess a few years down the road, except you will be retired and going back to work may not be an option to get you back on your feet.