[codex] Replace CDB search callback assembly with exact C using REA #1164
Reference in New Issue
Block a user
Delete Branch "agent/rea/cdb-callback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace
CDBDatabaseSearchCallCallback's inline assembly with readable C using the existing database, search-condition, and record types. Correct the localCDBRecordOpenReadOnlydeclaration to returnCDBErr.REA's Wii PowerPC backend imported the original object and exported its assembly and pseudocode. Keeping the success path nested under
result == CDB_ERROR_OKreproduces the branch missed by prior early-return attempts. This is an assembly-to-C conversion; the previous assembly was already counted as matching, so reported progress percentages do not increase.Validation on baseline
9d40859ee8f4ee37dc692e444727d17367bfcbeb:.text12152/12152 bytes and.data312/312 bytes both raw-byte-identical to target.26116613f624061ba99c8d1a299aaa6efa85670d;build/43U/okpasses.Reviewer coordination: after reaching this exact candidate, I found the separate local
data-d2worker had independently converted the same callback as part of broader CDB work. Please choose one implementation; this draft is intentionally left unmerged for model review. No changes were made to that worker's checkout.REA provenance and rejected filename-validator trials are recorded in
tools/decomp-assist/rea-cdb.attempts.md. REA fork commit:d19af8526975e8380da733c4f7313f73ee6a1c74; Ghidra 12.1.4 withPowerPC:BE:32:Gekko_Broadway.Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.