Interesting that you phrase that control in the past tense. A two-bit IED kills you just as dead as a million dollar smart weapon. And you don't measure the victor by who suffers the least casualtes. The victor is the one left standing on scene after the fury ends. The one who, in the end, cares more about the outcome and is willing to endure. As such, the best it can possibly end for the US at this point is a draw. The worst is an outright loss.
So I'll tell you what happens when you pit guys with rifles and IEDs against a standing army and air force. A lot of people on both sides are killed and maimed, but eventually the standing army finds something else to do, or in the domestic case gets fed up and goes home, the indigenous people endure, and their aspirations have not been killed. Remember Vietnam?
If the purpose of the Afghanistan conflict was to punish and run off an evil regime supporting the civilized world's enemies, that was accomplished with stunning effectiveness and economy within a year. That was the time we should have declared victory, left a threat that the same devastatioin would be visited again if such an evil regime ever returned, and left the hellhole alone. The remaining 12 years were just dick-yanking - not the guys on the scene; the morons directing US policy. Leave the hubris of nation building entirely to those whose business it is - those who live there.