The memory issues were probably some combo of poor sleep / stress / aging. But the testing did reveal massive ADHD as well as (probable) mild Asperger syndrome.
Interestingly, this was after I'd already earned my PhD. It's a little sad to think how much better my career might have gone, and how much faster I could have finished grad school, if I'd known about the ADHD.
I really used to beat myself up over the whole "wasted potential" feeling I'd get. Especially so after my teachers were fifty-fifty "you have great potential, apply yourself" and "you're a jackass, you won't amount to anything".
I always wonder how things could have been different. If I might've got into some irl engineering instead of software, or just advanced in my career faster, etc.
My biggest hope is that my sporadic deep dives into different subjects will eventually lead to a good idea to invest in, or some oss i can get sponsored to save me from the despair of competing/comparing against my neurotypical peers with degrees.