Adrenaline, endorphins. etc. can mask pain. Rewiring pain as in sadomasochism can work, but the physical and psychic damage perseveres.
I have experimented in power dynamics, physical pain, etc. in my life. Like much of other aspects in life it can be illusory. Ultimately, I have come to embrace a quasi Buddhist philosophy of being present in the now.
I attended an ill neighor's cat's euthanasia. He rallied for an hour in the drive to vet and waiting for the vet's administrations. He soaked in experiences before curling up to sleep uder a blanket before the vet arrived. Did he have a clue what was going to happen? I don't know. But he was fully present when he rallied before he went back to the terminal illness and empty stomach.
His life force was there in full in both aspects of his life expression. I was left amazed and touched. I was honored to be there as his life ended.