I see. I assume that I got the neutral ending, as I had collected roughly 42 Lore before facing Smith a second time.
Having said that, is it possible for Mario to learn how to wall-run? I ask because there's a certain (optional, if I'm not mistaken) segment where there's no other way to go up the narrow space between 2 walls (and a Whirr floats up and down above me).