You made a mess. The reaction with the HCl tells me that the base metal was most likely zinc or pewter. You could have used just HCl and recovered the gold flakes (if it was gold) after the zinc dissolved. When you added the nitric acid, The gold tried to dissolve but was continuously being cemented back out of solution by the zinc. It continued this way, dissolving gold and cementing it back out, until the nitric was depleted and then the HCl dissolved the zinc until it was depleted. The mud is most likely a mixture of zinc chloride and undissolved zinc metal and if there was gold there, cemented gold powder. I'm not great with zinc chloride, someone else will have to help you straighten that one out.
Before you start back dissolving stuff, why not download a free copy of C.M. Hoke's book "refining precious metal waste". the link can be found in many of our members signature line. You may want to check out the forums guided tour here http://goldrefiningforum.com/phpBB3/viewtopic.php?p=6873#6873
Good luck.