Practical examples
: Rename sub_401200 and define its correct prototype. The pseudocode will become calculate_checksum(); .
__int64 __fastcall sub_180001234(int a1, __int64 a2)
Conclusion
: The decompiler lost track of stack pointer adjustments (common in obfuscated code or custom calling conventions).