Code I found in the wild. It gives me something I've been looking for help with, but please, please don't do this.
It's utterly unreadable even after code formatting.
I've also just realised the entire body of code is in a for loop statement. As in: and empty for loop where all values are set in the update expression of the for loop… wa…I give up.