ApplyProtos: REPENTOGON register notation (float r<xmm3>, int x<edx>, float<xmm0> returns, static cleanup) via custom storage

Whole-program optimisation passes many floats in XMM registers and some arguments in ECX/EDX with the caller popping the
stack; those declarations were skipped. Every prototype is now applied with explicit storage (this in ECX for __thiscall).
Tested on a project copy: 1103 -> 1158 applied from the existing files (REPENTOGON's register declarations now fit),
e.g. void __thiscall Game::SetBloom(Game *this,int Time,float Strength).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-25 20:25:00 -04:00
1 parent df5db46f62
commit 36ae4cbfb8
3 files changed
+58 -28

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
// Function signatures you have worked out, REPENTOGON syntax, one per line. Applied only where the callee's RET n agrees
// with the declared stack parameters (scripts/ApplyProtos.java). Tried before REPENTOGON's declaration of the same name.
// Other registers, REPENTOGON notation: `__thiscall void Game::SetBloom(int time, float strength<xmm2>);`, a `float<xmm0>`
// return, `static cleanup bool Entity::ForceCollide(Entity* a<ecx>, Entity* b<edx>, bool isLow);` (caller pops the stack).
__fastcall void seed_fart_sound_override(int* soundId); // plain RET, only ECX read (no EDX/stack); callers lea ecx,[local] holding sound id 0x50/0x4d/0x109, write 0x25 back
__thiscall void KAGE::Network::Multiplayer::ConstLobby::~ConstLobby(); // plain RET; ECX this: vftable store at [ecx], releases control block at this+8
__thiscall Vector* Vector::Normalized(Vector* outResult); // RET 0x4; ECX = source vector, [ebp+8] out, returns it