I've actually read the American Veterinary Association manual on humane euthanization methods. Over lunch. Yes, I'm weird.
Some of the methods (like maceration) are extremely uncomfortable to contemplate, but the goal is to render death with as little distress and pain as possible.
And to tell you the truth, I don't believe a chicken really has any sort of awareness of itself, or consciousness of pain.