...Why is the compiler reordering so much?
Look. I get it, clever compilers (I guess) make everyone happy, but are absolute garbage for facilitating program understanding.
I wonder if we are shooting ourselves in the foot with all this invisible optimization.