decomp(bs2): match CheckBS2CommandStatus, BS2Tick 57 -> 4 (local statics, u64 globals, proven volatile flags) #1308

Merged
coah80 merged 1 commits from agent/w0929/o2-bs2mach-land into main 2026-10-09 05:09:21 +00:00
coah80 commented 2026-10-09 05:09:18 +00:00 (Migrated from github.com)

worker dc077f2a. instruction-exact functions: 28/29 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d

worker dc077f2a. instruction-exact functions: 28/29 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d
graphify-labs[bot] (Migrated from github.com) reviewed 2026-10-09 05:12:53 +00:00
graphify-labs[bot] (Migrated from github.com) left a comment

Graphify reviewed this change.

Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).


Graphify review — findings

Moves CacheCommandComplete into CheckBS2CommandStatus and AudioBufferUnconfigured into BS2Tick as function-local statics, and re-declares the remaining .sbss globals as tentative definitions in reverse order so the compiler emits the target layout. Also merges the split high/low words into 64-bit RequiredIos and CoverOpenTime, and makes RestartRequested, PartitionOpen, LoadingTitle, FatalErrorFlag and AbortFlag volatile. Records the matching attempts for both functions in a new decomp-assist notes file.

No blocking issues surfaced. 3 lower-confidence candidates did not survive cross-model review.

Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 42 functions depend on the 35 functions this change touches.

Health — grade C; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here):

  • BS2Tick() — 1 callers, 36 callees (high)
  • BS2StartGame() — 1 callers, 30 callees (high)
  • BS2StartGCGame() — 1 callers, 29 callees (high)
  • BS2SelectUpdateEntries() — 1 callers, 19 callees (high)
  • BS2BootIRD() — 1 callers, 13 callees (high)
  • BS2TickIRD() — 1 callers, 13 callees (high)
  • UpdateStateFlagsAndBootCache() — 1 callers, 12 callees (high)
  • BS2Reboot() — 1 callers, 7 callees (medium)
  • …and 2 more

Verification — 42 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 42 function(s) in the blast radius were not formally verified this run
<!-- graphify-inline:0d83c8b3fb0a92fd6cd1f499b2949f42eef56d83 --> **Graphify reviewed this change.** **Looks safe to merge** — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment). --- ## Graphify review — findings Moves `CacheCommandComplete` into `CheckBS2CommandStatus` and `AudioBufferUnconfigured` into `BS2Tick` as function-local statics, and re-declares the remaining `.sbss` globals as tentative definitions in reverse order so the compiler emits the target layout. Also merges the split high/low words into 64-bit `RequiredIos` and `CoverOpenTime`, and makes `RestartRequested`, `PartitionOpen`, `LoadingTitle`, `FatalErrorFlag` and `AbortFlag` volatile. Records the matching attempts for both functions in a new decomp-assist notes file. _No blocking issues surfaced. 3 lower-confidence candidates did not survive cross-model review._ <details> <summary>Analysis details — impact, health, verification</summary> ### Impact & health ## Graphify review **Impact** — 42 functions depend on the 35 functions this change touches. **Health** — grade C; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here): - `BS2Tick()` — 1 callers, 36 callees (high) - `BS2StartGame()` — 1 callers, 30 callees (high) - `BS2StartGCGame()` — 1 callers, 29 callees (high) - `BS2SelectUpdateEntries()` — 1 callers, 19 callees (high) - `BS2BootIRD()` — 1 callers, 13 callees (high) - `BS2TickIRD()` — 1 callers, 13 callees (high) - `UpdateStateFlagsAndBootCache()` — 1 callers, 12 callees (high) - `BS2Reboot()` — 1 callers, 7 callees (medium) - …and 2 more **Verification** — 42 functions in the blast radius were not formally verified this run (proofs are advisory here). ### Gate & verification ## graphify gate **PASS** — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed. Advisory (not blocking): - verification_scope: 42 function(s) in the blast radius were not formally verified this run </details>
Sign in to join this conversation.