Oof, I'm really glad to hear you kicked the opiate addiction. It's something that endocrinologists are seeing more and more. For the longest time, the best information said that opioid induced hypogonadism is temporary; after a few days of cessation, the hypothalamus starts secreting gonadotropin-releasing hormone, and everything turns back on. Turns out, that's only partially accurate and we're learning more about it as a larger pool of patients have to deal with opioid addiction and the consequences. TLDR, you may actually be suffering from hypogonadism, and you'll know after about six weeks.
The general rule for protein is 1g per pound bodyweight, assuming you're not massively overweight. Eating more doesn't hurt, but it won't really help all that much. It's enough to build muscle while in a surplus and preserve it in a deficit. That's sort of a baseline you can just build in to your diet... 200 grams of protein is 800 calories, and you just don't touch that portion of the diet anymore.
That means you would manipulate carbs and fats to get to your calorie goals, and there's no particularly great evidence that one is any better than the other for all people... you can go by feel and how your body and cravings respond. Eating generally healthy foods is good, but testosterone will improve your insulin response, so you get a little more freedom to eat sugary stuff. I've got a weakness for regular-ass, real sugar Coke. After lifting, your body is pretty good at utilizing simple sugars, and they actually tend to be protein-sparing. A can of coke, a modest amount of candy... all that shit can actually work for you as long as you limit it.
If you can fit it into your schedule, some fasted cardio really does help. It can even be taking the dog for a walk. Knock out 200 extra calories that way, cut out 500 from food, and you'll lose ten pounds almost without effort in about six or seven weeks.
Good luck amigo.