> this code was written by people far smarter than me If you're the one calling out UB and they tell you "prove it" then you should definitely reconsider who is a better C programmer here
well, I call tell you that, at least, when I told them about that UB, they opened the docs of function calling convention in assembler to see how exactly are registers used to save up on stack frame usage with push and pop when the function parameters are tiny in terms of sizeof, to try and deduce, what exactly could the damage to the stack frame possibly be, can you decrypt the assembly?