beardypig / ghidra-emotionengine

Ghidra Processor for the Play Station 2's Emotion Engine MIPS based CPU
Apache License 2.0
198 stars 35 forks source link

Failed decompilation: "Low-level Error: Overlapping input varnodes" #75

Closed VelocityRa closed 2 years ago

VelocityRa commented 2 years ago

image

Asm: https://pastebin.com/raw/tC66QdCM Version: 9.2.2, also tested 10.0.3 with the unmerged PR.

All other functions that I've seen in that game decompile fine, but this one gives me this error.

I also tried IDA (7.5) but decomp there looks unusable in general due to not supporting many EE features.

Not sure how to debug/fix this, even partially. Any help would be appreciated. If you want a gzf let me know on Discord.

VelocityRa commented 2 years ago

Fixed, just had to right click the function, Edit Function, set the calling convention to stdcall (it was not set at all for some reason) and add 4 args that it should have had.