beardypig/ghidra-emotionengine

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

Closed this issue · 1 comments

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.

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.