[EDIT for more depth] If thinking is emergent, we'll eventually make a machine that thinks. Unless you think we have imbued it with a soul, there you will have an example of a materialistic basis for thinking. As a side effect of showing a materialistic basis for thinking it will probably also overturn a lot of psychology, and demonstrate that how we think we think, and even what we think we think is wrong.