Here's my first stab at decompiling the backup library. There are a couple of places where Ghidra's decompiler couldn't resolve functions but it's disassembler could. I put in a ticket for it. This was mostly an excuse to learn Ghidra, dunno what more I'll do with it. I understand enough to make a compatible lib at some point. Potentially we can get smaller than the 16k required by the library. I plan to hit the backup serial code next, I skipped over it in my first pass. |