First rinse the dirt with a liter of acetone, better 2 liters, then filter and dissolve the filtrate in warm water.
Measure the pH, the value should be slightly acidic, if not add a drop of hydrochloric acid. Everything that has not dissolved in the water can be filtered off and thrown away.
Then we wash the whole thing 3 times with petroleum ether and discard it.
Then we add NaOH until the pH>13. The upper oily phase is amphe freebas. We separate it and wash the lower phase 3 times with petroleum ether, dump the extracts and the freebase together, add MgSO4 until it stops clumping and put it in the freezer for 4 hours.
Then we filter off the MgSo4 and let the petroleum ether evaporate in the air, we rinse the remaining freebase with acetone into a beaker, prepare a 1:5 H2SO4:IPA solution and add it dropwise to the beaker until the pH is between 6-7.
We filter off the precipitated Amphe sulfate and allow the acetone to evaporate. You may weigh this and be annoyed at how you've been screwed again, but there's no other way to consume the paste shit.