Need advice - it's complicated

My wife and I are about to separate but I also just lost my job - our only source of income. I need to move to my own apartment and have the funds right now to do so but we can only live for a few weeks until all money is gone (we have no other liquid assets)… to this end, I am serioulsy considering bankruptcy help, however, I am just not sure if I should move out BEFORE we pursue bankruptcy or AFTER the process is done. Of course my fear is that it will be more difficult to get approved for an apartment and utilities.

Anyone have any good advice with this complicated situation? Not sure what to do next…