Soul in the Brain

If our soul indeed resides in some part of our brain, what happens when we are under anesthesia? I underwent extensive surgery to remove a cancerous growth and I can’t help thinking that, there was nothing happening so to speak during my surgery. Is it like that when we die ? No pain, but no awareness?