Background: This question is motivated by an accident that happened to my sister in a very rural area. She was on a fence and fell onto a t-post which basically impaled her, but which fell out by the time she hit the ground. (Details are gruesome.) We padded the injury with some shirts and then basically panicked until we saw a helicopter. We signaled the helicopter, which landed; we put her on a tarp and transferred her to the copter, which flew her to a hospital 15 miles away.
The Question: We were lucky. I've thought about this incident and wondered how a similar (not identical) incident could be handled far from help.
Assume you are in the wilderness. Phones are dead, you don't have a PLB, and if you walked out, help could not arrive in less than three days. You have a first aid kit and some other equipment that might be helpful, including but not necessarily limited to, gauze, hydrogen peroxide, pliers, scissors, fishing line, iodine, tape, and rope You have a well set-up campsite and plenty of easily accessible food and water.
Your hiking partner gets stabbed through the stomach with a tree branch. The branch is still all the way in and is small enough so your partner can be moved. Your only options are to attempt to treat them or watch them die. What can you do? What should you not do? What aid can you give before hiking out for help?
One commenter asked if the branch had splinters. Branches often do, but an answer that does not account for splinters could still be useful. I chose branch instead of generic object, which seemed vague, and because my own experience, which was a t-post, would make the question too narrow.