Split iplController into its two real units and decompile its asm #241

Merged
coah80 merged 5 commits from agent/w0929/controller into main 2026-09-28 23:24:10 +00:00
coah80 commented 2026-09-28 23:24:01 +00:00 (Migrated from github.com)

the honest redo of what #225 faked for iplController, gpt-6-luna xhigh worker, verified by me from a clean build

  • the old iplController split was really two original translation units (duplicate .sdata2 constants, two weak-inline tails, separate vtable blocks). split into iplController.cpp + iplControllerManager.cpp at the boundaries the original section sizes back up
  • real class hierarchy (Interface root with inline virtuals, Base/Revolution/Classic/Core/FreeStyle/Master)
  • inline asm 26 -> 0, hand-placed lbl_ refs 69 -> 0, no more hand-built vtables / ptmf tables / float labels
  • 93/94 functions instruction exact, only Manager::read left at 99.34% (189/190 instructions, attempts logged)

heads up on numbers: objdiff drops a bit on purpose. matched code 7340 -> 6580 because read() is no longer asm, and matched data 1016 -> 400 because the old 100% came from hand-built data, now it's compiler-emitted weak vtables that the linker deduped in the original (zero-filled in the extracted objects). global matched code 64.89% -> 64.87%, matched data 72.54% -> 72.51%. real decompilation, fake numbers gone
the gate's 13 "regressions" are just the moved functions changing unit name

still NonMatching: a trial link of both units differs widely (internal .text placement), follow-up

gates: pool identical, 0 forbidden patterns, 0 readability problems, clean ninja build/43U/ok passes with sha1 26116613f624061ba99c8d1a299aaa6efa85670d

the honest redo of what #225 faked for iplController, gpt-6-luna xhigh worker, verified by me from a clean build - the old iplController split was really two original translation units (duplicate .sdata2 constants, two weak-inline tails, separate vtable blocks). split into `iplController.cpp` + `iplControllerManager.cpp` at the boundaries the original section sizes back up - real class hierarchy (Interface root with inline virtuals, Base/Revolution/Classic/Core/FreeStyle/Master) - inline asm 26 -> 0, hand-placed `lbl_` refs 69 -> 0, no more hand-built vtables / ptmf tables / float labels - 93/94 functions instruction exact, only `Manager::read` left at 99.34% (189/190 instructions, attempts logged) heads up on numbers: objdiff drops a bit on purpose. matched code 7340 -> 6580 because read() is no longer asm, and matched data 1016 -> 400 because the old 100% came from hand-built data, now it's compiler-emitted weak vtables that the linker deduped in the original (zero-filled in the extracted objects). global matched code 64.89% -> 64.87%, matched data 72.54% -> 72.51%. real decompilation, fake numbers gone the gate's 13 "regressions" are just the moved functions changing unit name still NonMatching: a trial link of both units differs widely (internal .text placement), follow-up gates: pool identical, 0 forbidden patterns, 0 readability problems, clean `ninja build/43U/ok` passes with sha1 `26116613f624061ba99c8d1a299aaa6efa85670d`
Sign in to join this conversation.