decomp(sd-memory): reconstruct transfer-title scalar lifetimes #1055

Merged
coah80 merged 1 commits from agent/bittle/sd-transfer-review into main 2026-10-03 05:26:58 +00:00
coah80 commented 2026-10-03 05:25:39 +00:00 (Migrated from github.com)

Partial reconstruction

In drawTransferTitles, capture bodyY immediately from the existing private memoPosition snapshot, and scope lineCount to the actual NAND-message counting block after message retrieval. Both changes reflect the original scalar lifetimes; no extra locals, color copies, duplicate guards or register hints.

The earlier source already snapshots the pane position before callbacks. This is lifetime reconstruction, not a changed pane-observation-time claim.

  • drawTransferTitles: 92.7694% → 93.456764%
  • Unit: 99.20353% → 99.26294%
  • Exact functions 64/66, matched code 14,812 and matched data 3,344/3,344 preserved
  • The separately measured memo/count forms improve to 93.02439% and 93.21286%; combined source has 438 instructions versus original 451

This is an honest partial fuzzy gain. The remaining color-copy/loop-entry differences are untouched; no linking change.

Independent verification

Rebased on 404a8675f1285007154a5aef7bbd755a691e8739; tested tree 8936082c14.

  • Full 43U build/progress/report/DOL passed; complete 1,027-unit comparison changes only this function's fuzzy score, zero regressions
  • All 64 exact function bodies preserve baseline instructions. 57 have literal zero ctx differences; seven retain documented pre-existing call-name differences whose original DOL destinations were checked
  • Allocated nontext payloads and alignments unchanged; ordered direct/indirect calls and floating arithmetic/comparisons preserved
  • Raw DOL audit: 387 nonrelocated words and 38 direct calls, including actual scalar acquisition and metadata loads
  • Pool 90/90 identical; literal audit 157 arguments across 65 functions, no candidates/errors; changed unequal-extent function explicitly skipped by that advisory audit
  • DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; worktree and diff checks pass

Details: tools/decomp-assist/sd-transfer-lifetimes-20261003.md. No header, compiler setting, linking flag or other region changed.

Note

Reconstruct scalar lifetimes in SDMemory.drawTransferTitles

Moves bodyY initialization earlier, before the header/body pane lookups, and narrows lineCount to the nonempty-title branch in iplSDMemory.cpp. No operations or calculations change. Adds a decomp-assist report at sd-transfer-lifetimes-20261003.md covering the relocations and build verification.

Macroscope summarized dcbe60e.

## Partial reconstruction In drawTransferTitles, capture bodyY immediately from the existing private memoPosition snapshot, and scope lineCount to the actual NAND-message counting block after message retrieval. Both changes reflect the original scalar lifetimes; no extra locals, color copies, duplicate guards or register hints. The earlier source already snapshots the pane position before callbacks. This is lifetime reconstruction, not a changed pane-observation-time claim. - drawTransferTitles: 92.7694% → 93.456764% - Unit: 99.20353% → 99.26294% - Exact functions 64/66, matched code 14,812 and matched data 3,344/3,344 preserved - The separately measured memo/count forms improve to 93.02439% and 93.21286%; combined source has 438 instructions versus original 451 This is an honest partial fuzzy gain. The remaining color-copy/loop-entry differences are untouched; no linking change. ## Independent verification Rebased on 404a8675f1285007154a5aef7bbd755a691e8739; tested tree 8936082c14f183469a1994cb48b5be392927c2af. - Full 43U build/progress/report/DOL passed; complete 1,027-unit comparison changes only this function's fuzzy score, zero regressions - All 64 exact function bodies preserve baseline instructions. 57 have literal zero ctx differences; seven retain documented pre-existing call-name differences whose original DOL destinations were checked - Allocated nontext payloads and alignments unchanged; ordered direct/indirect calls and floating arithmetic/comparisons preserved - Raw DOL audit: 387 nonrelocated words and 38 direct calls, including actual scalar acquisition and metadata loads - Pool 90/90 identical; literal audit 157 arguments across 65 functions, no candidates/errors; changed unequal-extent function explicitly skipped by that advisory audit - DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; worktree and diff checks pass Details: tools/decomp-assist/sd-transfer-lifetimes-20261003.md. No header, compiler setting, linking flag or other region changed. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Reconstruct scalar lifetimes in `SDMemory.drawTransferTitles` > Moves `bodyY` initialization earlier, before the header/body pane lookups, and narrows `lineCount` to the nonempty-title branch in [iplSDMemory.cpp](https://github.com/coah80/wii-ipl/pull/1055/files#diff-b691a7e12d395598c85b32332e8aafb8c480896ce64f6bf0105e794571b68b9c). No operations or calculations change. Adds a decomp-assist report at [sd-transfer-lifetimes-20261003.md](https://github.com/coah80/wii-ipl/pull/1055/files#diff-c6f853b616af4c33ff7a1b9050db6506986a8a44460fafbf2f2a17da2c45765d) covering the relocations and build verification. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized dcbe60e.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 05:26:56 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.