The process of thinking seems to be electro-chemical. If your physical system is 'outta kilt', how would you then expect to think well?
I know if I don't eat for four or five days at a stretch, my thinking gets fuzzy, memory gets lost and sense of time doesn't work all that well.