Thanks for asking your question! I'm sorry to hear about your tax issue and I'm going to try my best to help you understand or resolve it.
The goodwill transaction is a section 1231 where if there is a gain amortization is recaptured and if there is a loss the loss is ordinary
As such, you would report ordinary loss on part 1 of form 4797
thank you !