We basically turn off consciousness using chemicals before surgery. All sorts of chemicals change thinking and levels of consciousness, which makes your guess the most reasonable I've seen.