From 775167f4a5dcb9a209d46edab83e16f41085f3e0 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:45:17 -0500 Subject: [PATCH 01/63] Link the verified native NUP HTTP unit (#740) --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 6396c6ee..b4a287e8 100644 --- a/configure.py +++ b/configure.py @@ -1869,7 +1869,7 @@ config.libs = [ ), RVLSDKLib("nup", [ Object(NonMatching, "nup/nup.cpp"), - Object(NonMatching, "nup/nup_nhttp.cpp"), + Object(Matching, "nup/nup_nhttp.cpp"), Object(Matching, "nup/nup_mem.cpp"), ] ), -- 2.49.1 From 12960310751a6028f87f56d1cd50a79e73b524bd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 05:46:15 +0000 Subject: [PATCH 02/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5003a73..cc0193c4 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 62.98% | 97.20% | +| 99.46% | 88.57% | 63.07% | 97.20% | -units 925/1027 complete, functions 12264/12563 matched. +units 926/1027 complete, functions 12264/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From d2ef39c4414b8ae4b95f57ef88d24d64a399b4be Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:52:57 -0500 Subject: [PATCH 03/63] data(sd_drv, www_surface, iplFocusObject data 100%) (data-d6b) (worker 85303ada) (#741) --- config/43U/symbols.txt | 26 +++++- libs/RevoEX/src/cdb/CDBRecord.c | 22 +++-- tools/decomp-assist/data-d6.attempts.md | 104 ++++++++++++++++++++++++ 3 files changed, 142 insertions(+), 10 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 65e5daed..33d25f70 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -14994,6 +14994,7 @@ lbl_81643A59 = .data:0x81643A59; // type:object size:0xB data:string lbl_81643A64 = .data:0x81643A64; // type:object size:0x12 data:string lbl_81643A76 = .data:0x81643A76; // type:object size:0x27 data:string __vt__Q37ext_ead3www14SurfaceManager = .data:0x81643AA0; // type:object size:0xC data:string +@STRING@report__Q47ext_ead3www5print9TickTimerFPCce = .data:0x81643AAC; // type:object size:0xB scope:weak data:string @1183 = .data:0x81643AB8; // type:object size:0x21 scope:local data:string __vt__Q37ext_ead3www9ut_thread = .data:0x81643ADC; // type:object size:0x28 lbl_81643B08 = .data:0x81643B08; // type:object size:0x38 @@ -15614,7 +15615,10 @@ __vt__Q33ipl4math28LinearIntp = .data:0x8164BE40; // type:obje __vt__Q33ipl4math31Interporation = .data:0x8164BE50; // type:object size:0x10 __vt__Q33ipl5scene19optout_button_event = .data:0x8164BE60; // type:object size:0x1C __vt__Q33ipl5scene12button_event = .data:0x8164BE7C; // type:object size:0x1C -__vt__Q33ipl5scene5event = .data:0x8164BE98; // type:object size:0xB0 +__vt__Q33ipl5scene5event = .data:0x8164BE98; // type:object size:0x18 +__vt__Q33ipl3gui11PaneManager = .data:0x8164BEB0; // type:object size:0x5C scope:weak +__vt__Q23gui12EventHandler = .data:0x8164BF0C; // type:object size:0x18 scope:weak +__vt__Q23gui9Interface = .data:0x8164BF24; // type:object size:0x20 scope:weak lbl_8164BF48 = .data:0x8164BF48; // type:object size:0xA data:string lbl_8164BF52 = .data:0x8164BF52; // type:object size:0xA data:string smButtonName__Q33ipl5scene6Button = .data:0x8164BF5C; // type:object size:0x2C data:4byte @@ -20017,7 +20021,25 @@ lbl_81690FC8 = .data:0x81690FC8; // type:object size:0x34 data:string lbl_81690FFC = .data:0x81690FFC; // type:object size:0x41 data:string lbl_81691040 = .data:0x81691040; // type:object size:0x2D0 lbl_81691310 = .data:0x81691310; // type:object size:0x3B data:string -lbl_8169134C = .data:0x8169134C; // type:object size:0x3DC +lbl_8169134C = .data:0x8169134C; // type:object size:0x57 scope:local data:string +sdBlankOemName = .data:0x816913A4; // type:object size:0x9 scope:local data:string +sdDefaultVolumeLabel = .data:0x816913B0; // type:object size:0xC scope:local data:string +sdFat12Type = .data:0x816913BC; // type:object size:0x9 scope:local data:string +sdFat16Type = .data:0x816913C8; // type:object size:0x9 scope:local data:string +sdCalculateBootGeometryError = .data:0x816913D4; // type:object size:0x46 scope:local data:string +sdStoreBootGeometryError = .data:0x8169141C; // type:object size:0x42 scope:local data:string +sdWriteBootFieldsError = .data:0x81691460; // type:object size:0x32 scope:local data:string +sdStoreMbrError = .data:0x81691494; // type:object size:0x42 scope:local data:string +sdWriteMbrFieldsError = .data:0x816914D8; // type:object size:0x32 scope:local data:string +sdFat32Type = .data:0x8169150C; // type:object size:0x9 scope:local data:string +sdCalculateFat32BootGeometryError = .data:0x81691518; // type:object size:0x4C scope:local data:string +sdStoreFat32BootGeometryError = .data:0x81691568; // type:object size:0x48 scope:local data:string +sdStoreFsInfoError = .data:0x816915B0; // type:object size:0x4B scope:local data:string +sdStoreReservedBootError = .data:0x816915FC; // type:object size:0x3D scope:local data:string +sdReservedBootHelperName = .data:0x8169163C; // type:object size:0x26 scope:local data:string +sdResetCardError = .data:0x81691664; // type:object size:0x45 scope:local data:string +sdGetTotalSectorsError = .data:0x816916B0; // type:object size:0x40 scope:local data:string +sdBuildBootGeometryError = .data:0x816916F0; // type:object size:0x36 scope:local data:string st_uhs_msc_blk_func = .data:0x81691728; // type:object size:0x20 __sdPathData = .data:0x81691748; // type:object size:0x50 lbl_81691798 = .data:0x81691798; // type:object size:0x16 data:string diff --git a/libs/RevoEX/src/cdb/CDBRecord.c b/libs/RevoEX/src/cdb/CDBRecord.c index 85e1cf9b..c69fc6b0 100644 --- a/libs/RevoEX/src/cdb/CDBRecord.c +++ b/libs/RevoEX/src/cdb/CDBRecord.c @@ -367,6 +367,19 @@ CDBErr CDBRecordSeek(CDBRecord* record, s32 offset, CDBSeek seek) { return err; } +CDBErr CDBRecordGetFileSize(CDBRecord* record, u32* size) { + CDBErr err; + CDBLock(); + if ((s32)record->file == 0) { + CDBReportError("can't get file size of the record ; the record is closed\n"); + err = CDB_ERROR_27; + } else { + err = CDBRecordFileGetFileSize(record, size); + } + CDBUnlock(); + return err; +} + CDBErr CDBRecordGetDataSize(CDBRecord* record, u32* size) { CDBErr err; CDBLock(); @@ -723,14 +736,7 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32 return CDB_ERROR_OK; } } - CDBLock(); - if ((s32)record->file == 0) { - CDBReportError("can't get file size of the record ; the record is closed\n"); - err = CDB_ERROR_27; - } else { - err = CDBRecordFileGetFileSize(record, &fileSize); - } - CDBUnlock(); + err = CDBRecordGetFileSize(record, &fileSize); CDBAttrSetFileSize(&recordFile->attr, fileSize); if (err != CDB_ERROR_OK) { return CDB_ERROR_OK; diff --git a/tools/decomp-assist/data-d6.attempts.md b/tools/decomp-assist/data-d6.attempts.md index 9f5e0b07..d3ab56d7 100644 --- a/tools/decomp-assist/data-d6.attempts.md +++ b/tools/decomp-assist/data-d6.attempts.md @@ -160,3 +160,107 @@ GATE PASS ``` Only retained source edit is the information type alignment, committed as 1fe346a7. Exact counts and code bytes unchanged across every owned unit. Final DOL hash matches, no regression, no forbidden patterns, no readability warnings. All eight open functions have three fresh attempts. Four data sections remain below 100%; full data matching is not claimed. + +## Round 2 baseline + +HEAD 3f330a39 includes accepted #735. Origin was fetched before each unit inspection; ongoing unrelated main commits do not change assigned sources. Fresh baseline quick gate passes with data 144/1016/40/408 and exact functions 27/21/21/88. No code tuning is needed for a data-only lane. Revisit merged data ownership rather than adding source padding. + +### sd_drv last merged diagnostic owner + +Original lbl_8169134C owns 988 bytes starting at pool offset 0x634, but nm and source literals show 19 separate null-terminated diagnostic/format strings within that inferred aggregate. Every source byte through offset 0xa0d equals the target. Two final bytes at 0xa0e/0xa0f are linker alignment, not part of the final 54-byte error string. Target pfd_sddrv_full_format at object 0x2dbc uses relocated pool anchor r30 plus 0x9d8 immediately before OSReport. The final original string begins exactly at 0x816916f0 and ends at 0x81691726; next relocated real table st_uhs_msc_blk_func starts at 0x81691728 in the neighbouring unit. Preserve both split extents and every payload byte. Split the aggregate into its actual strings, proven by source literals, terminators and target pool-reference instructions, instead of changing the section end or fabricating padding. + +Splitting all 19 real literals within the last inferred aggregate produces .data 100% and matched_data 1016 -> 3592/3592. Payload bytes and total_data are unchanged, two final zero alignment bytes remain in the same .data split. Every exact function remains exact. Quick gate PASS, zero regressions, forbidden/style 0, retail DOL hash. This is a corrected object ownership boundary supported by relocated pool-base plus 0x9d8, not a section-size reduction. + +### Focus event vtable ownership + +Original event vtable inferred size 0xb0 incorrectly absorbs three different compiler-emitted weak vtables and four final alignment bytes. The real event class declares four virtual methods and its compiler-generated table is 0x18. Constructor target .text relocations 0x16/0x2a point to the event table, with retained method relocations at 0x7d0/7d4/7d8/7dc. Source emits the real 0x5c PaneManager table at .data+0x7e0, 0x18 EventHandler table at +0x83c and 0x20 Interface table at +0x854. Their original retained definitions already exist at 0x816359c4, 0x81635a38 and 0x81635a50 with precisely those same sizes and weak scope. Focus make_gui_mgr target relocations at 0x2866/286e refer to the retained PaneManager table; source emits its deduplicated local weak definition. This proves separate real compiler objects, not additional event virtual slots. Split the incorrect aggregate into the real class table owners with their names, sizes and weak scope. Keep all 2168 data bytes in the same split, including discarded zero bytes and four final alignment bytes. + +Focus ownership correction produces all non-text sections 100%, data 408 -> 2576/2576, exact 88 unchanged. Quick full gate PASS with zero regressions, forbidden/style 0 and correct DOL hash. No source/class/inline changes required; the existing real classes already emit the tables in exactly the original order. Original section byte counts and split extents are unchanged. + +### Surface TickTimer format ownership + +Correct previous-round note: the weak TickTimer report format at pool+0xd9c is real text ` : %d[ms]\n`, not zero-filled. Both raw objects contain identical 11 payload bytes, target includes one final zero alignment byte. The real inline TickTimer::report already emits its weak 11-byte string. Target RSO resolver call relocation at 0x434 references the retained TickTimer::report method. Its emitted source inline body references @STRING@ via address-half relocations at 0x4e6/0x4f6; the original has no duplicate method body. Source symbol size, literal contents and original literal terminator establish the discarded inline data owner's 11-byte extent. Add the missing weak literal owner at 0x81643aac with its real 11-byte null-terminated extent; preserve the original 3496-byte split and final alignment byte. + +Surface missing weak format symbol correction produces every section 100% and matched_data 40 -> 3536/3536. Quick gate PASS, zero regressions, forbidden/style 0, correct DOL hash. Source already has its real inline TickTimer and 12-byte SurfaceManager vtable. Existing shared-header weak-zero workaround is untouched because it is unrelated to this missing ownership label and all sections now match without new source tricks. + +### CDB first divergence, real file-size getter + +Restore the file-size wrapper immediately before its data-size counterpart. This is supported by the existing actual inlined sequence in CDBRecordEncrypt and CDBRecordDecrypt: CDBLock, file-open diagnostic/error, CDBRecordFileGetFileSize, CDBUnlock. The backing typed function exists in the repository and original object. No invented external calls or dummy literals are added. Measure this first restoration before proceeding into the missing reduction diagnostics. + +File-size restoration fixes the first divergence exactly: strings 8 and 9 now both match bytes and offsets 0x1b0/0x1ec. First divergence advances to 10 at 0x228, now the missing ReduceFileSize diagnostics. CDB original .text contains no reduction functions or bodies, original bridge/file/VF units likewise have no truncation API in source, headers, retained symbols or Ghidra export. No invented external truncation routine or placeholder error-only function will be used to emit these strings. Current source has 19 distinct diagnostics versus 47 original; missing payload remains visible and data stays 144/2640. Read-only field/keyword setters do not repair the first reduction block, so no speculative API additions are made. + +File-size wrapper quick gate PASS with zero regressions and all 27 original exact functions preserved. Its first two previously misplaced diagnostics now match the original pool offsets. Restoration is supported by surviving inlined instructions and existing backing API; remaining APIs without surviving bodies are left unresolved. + +### Round 2 scope and evidence audit + +Repeated nm -n, objdump -t, objdump -r -j for every owned non-text section on both objects. Full output at /tmp/data-d6-r2.final-data-evidence.txt. Verified raw bytes for sd_drv, www_surface and Focus agree through the complete emitted source payload in every section. Only zero linker alignment is absent at source section ends. Their original split ranges and total_data never changed. Source's real weak class/vtable/format definitions are preserved, not replaced with zero arrays or assembly. + +Remaining CDBRecord code functions CDBCryptBuffer and CDBRecordEncrypt each already have three distinct experiments in this persistent attempts log. CDBCryptBuffer retains the exact 119-instruction stream except three missing-pool offsets; repeated register/loop variants cannot create the reduction diagnostics. Encrypt has 283/284 instructions, pool offsets and stack allocation differences. Round 2 fixes the first two token-order diagnostics by a real recovered getter, but cannot recover the reduction/mutation/duplication bodies from retained instructions. No bogus truncation API, stub, unused string object, padding or ownership reduction is added for these missing bytes. Existing data total 2640 remains authoritative. + +CDBRecordEncrypt | use recovered file-size wrapper in encryption | objdiff 96.616196%, instructions 284/284, diffs 185; unit code 5464, data 144, functions 27 + +CDBRecordEncrypt | wrapper with signed file null comparison | objdiff 97.19718%, instructions 283/284, diffs different instruction counts; unit code 5464, data 144, functions 27 + +CDBRecordEncrypt | wrapper with named file lifetime | objdiff 96.616196%, instructions 284/284, diffs 185; unit code 5464, data 144, functions 27 + +Three fresh Encrypt experiments replace the manually expanded file-size sequence with the recovered real getter. Pointer-null and named-file-lifetime variants score 96.616196%, 284/284 instructions. The signed null test proven by the original inline cmpwi retains 97.19718%, 283/284 instructions. Retain this typed getter call: a direct disassembly comparison against the previously full-gated object confirms every one of the 29 original function instruction streams is unchanged, not only the 27 exact functions. Thus the restored getter is used by live encryption code and replaces its duplicate expanded sequence. No newly invented operation or unused diagnostic object is introduced. Pool first divergence remains 10 with the first ten strings at identical offsets. + +## Round 2 final clean gate + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RevoEX/src/cdb/CDBRecord] pool: DIVERGES at string 10 (mine=19 orig=47) +[libs/RevoEX/src/cdb/CDBRecord] objdiff: code 5464/7076 data 144/2640 functions 27/29 fuzzy 99.5483 linked code 0 +[libs/RevoEX/src/cdb/CDBRecord] instruction-exact functions: 27/29 +[libs/RevoEX/src/cdb/CDBRecord] section .bss size 128 match 100.0 +[libs/RevoEX/src/cdb/CDBRecord] section .data size 2496 match 52.795387 +[libs/RevoEX/src/cdb/CDBRecord] section .rodata size 16 match 100.0 +[libs/RevoEX/src/cdb/CDBRecord] section .text size 7076 match 99.54833 +[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBCryptBuffer 99.97479 +[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBRecordEncrypt 97.19718 +[libs/RevoEX/src/cdb/CDBRecord] baseline: code 5464/7076 data 144 functions 27 fuzzy 99.5472 +[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL +[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 8940/11760 data 3592/3592 functions 21/26 fuzzy 99.0544 linked code 0 +[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 21/26 +[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 100.0 +[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 100.0 +[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0 +[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0 +[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 99.05442 +[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 92.326385 +[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.63158 +[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 99.5 +[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 99.75247 +[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225 +[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 8940/11760 data 1016 functions 21 fuzzy 99.0544 +[src/iplwww/www_surface] pool: IDENTICAL +[src/iplwww/www_surface] objdiff: code 1916/1916 data 3536/3536 functions 21/21 fuzzy 100.0000 linked code 1916 +[src/iplwww/www_surface] instruction-exact functions: 21/21 +[src/iplwww/www_surface] section .data size 3496 match 100.0 +[src/iplwww/www_surface] section .sbss size 32 match 100.0 +[src/iplwww/www_surface] section .sdata size 8 match 100.0 +[src/iplwww/www_surface] section .text size 1916 match 100.0 +[src/iplwww/www_surface] baseline: code 1916/1916 data 40 functions 21 fuzzy 100.0000 +[src/scene/board/iplFocusObject] pool: IDENTICAL +[src/scene/board/iplFocusObject] objdiff: code 19772/20332 data 2576/2576 functions 88/89 fuzzy 99.6471 linked code 0 +[src/scene/board/iplFocusObject] instruction-exact functions: 88/89 +[src/scene/board/iplFocusObject] section .data size 2168 match 100.0 +[src/scene/board/iplFocusObject] section .rodata size 176 match 100.0 +[src/scene/board/iplFocusObject] section .sdata size 176 match 100.0 +[src/scene/board/iplFocusObject] section .sdata2 size 56 match 100.0 +[src/scene/board/iplFocusObject] section .text size 20332 match 99.64706 +[src/scene/board/iplFocusObject] below 100: cmn_calc__Q33ipl5scene12focus_objectFv 87.185715 +[src/scene/board/iplFocusObject] baseline: code 19772/20332 data 408 functions 88 fuzzy 99.6471 +regressions vs baseline: 0 +global matched_code_percent: 88.55724 -> 88.55724 +global fuzzy_match_percent: 99.45033 -> 99.45033 +global complete_code_percent: 62.78043 -> 62.78043 +global matched_data_percent: 96.55914 -> 97.00876 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` + +Data before -> after: CDBRecord 144 -> 144/2640, sd_drv 1016 -> 3592/3592, www_surface 40 -> 3536/3536, Focus 408 -> 2576/2576. Instruction-exact counts 27 -> 27, 21 -> 21, 21 -> 21, 88 -> 88. Matched code bytes unchanged 5464, 8940, 1916, 19772. Full clean gate passes, DOL SHA1 correct, regression/forbidden/style counts zero. No splits or total_data were changed. All three completed data units have every non-text section at 100%; CDB remains incomplete. Every original open code function has three logged attempts; Encrypt has six. -- 2.49.1 From 41adc87d89dea485aba2bc75ed091930ea9d4d31 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 05:54:16 +0000 Subject: [PATCH 04/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc0193c4..278f793a 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.07% | 97.20% | +| 99.46% | 88.57% | 63.07% | 97.65% | units 926/1027 complete, functions 12264/12563 matched. -- 2.49.1 From 09d3f9beefcfd5031c670f6ded6c746100932ca8 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:55:55 -0500 Subject: [PATCH 05/63] data(iplController, d_nhttp, iplKeyboard data 100%) (data-d1c) (worker 154fb6cd) (#743) --- config/43U/symbols.txt | 14 +++++++------- tools/decomp-assist/data-d1.attempts.md | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 33d25f70..51bb5fd0 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -14268,14 +14268,14 @@ jumptable_8163463C = .data:0x8163463C; // type:object size:0x30 scope:local __vt__Q29textinput13EventObserver = .data:0x8163466C; // type:object size:0x24 @STRING@onCancel__Q29textinput13EventObserverFv = .data:0x81634690; // type:object size:0x9 data:string @STRING@onOutOfLength__Q29textinput13EventObserverFv = .data:0x81634699; // type:object size:0xD data:string -lbl_816346A8 = .data:0x816346A8; // type:object size:0xC data:4byte -lbl_816346B4 = .data:0x816346B4; // type:object size:0xC data:4byte -lbl_816346C0 = .data:0x816346C0; // type:object size:0xC data:4byte -lbl_816346CC = .data:0x816346CC; // type:object size:0xC data:4byte +kDownMember__Q23ipl10controller = .data:0x816346A8; // type:object size:0xC data:4byte +kDownTrgMember__Q23ipl10controller = .data:0x816346B4; // type:object size:0xC data:4byte +kUpTrgMember__Q23ipl10controller = .data:0x816346C0; // type:object size:0xC data:4byte +kRepeatMember__Q23ipl10controller = .data:0x816346CC; // type:object size:0xC data:4byte __vt__Q33ipl10controller6Master = .data:0x816346D8; // type:object size:0x8C __vt__Q33ipl10controller7Classic = .data:0x81634764; // type:object size:0x90 __vt__Q33ipl10controller10Revolution = .data:0x816347F4; // type:object size:0x8C -__vt__Q33ipl10controller4Base = .data:0x81634880; // type:object size:0x90 +__vt__Q33ipl10controller4Base = .data:0x81634880; // type:object size:0x8C __vt__Q33ipl10controller9FreeStyle = .data:0x81634910; // type:object size:0x8C __vt__Q33ipl10controller4Core = .data:0x8163499C; // type:object size:0x8C lbl_81634A28 = .data:0x81634A28; // type:object size:0xF data:string @@ -18357,7 +18357,7 @@ lbl_8166D1A8 = .data:0x8166D1A8; // type:object size:0x5C lbl_8166D204 = .data:0x8166D204; // type:object size:0x6C lbl_8166D270 = .data:0x8166D270; // type:object size:0xA4 lbl_8166D314 = .data:0x8166D314; // type:object size:0x14 data:string -lbl_8166D328 = .data:0x8166D328; // type:object size:0x208 +lbl_8166D328 = .data:0x8166D328; // type:object size:0x205 lbl_8166D530 = .data:0x8166D530; // type:object size:0x3A data:string jumptable_8166D570 = .data:0x8166D570; // type:object size:0x84 scope:local @2340 = .data:0x8166D5F8; // type:object size:0x2C scope:local @@ -21562,7 +21562,7 @@ c_wii_menu_save_path__Q23ipl12NandSDWorker = .sdata:0x816961E4; // type:object s @23190 = .sdata:0x816961EF; // type:object size:0x5 scope:local data:string @23574 = .sdata:0x816961F4; // type:object size:0x4 scope:local data:string lbl_816961F8 = .sdata:0x816961F8; // type:object size:0x4 data:string -lbl_816961FC = .sdata:0x816961FC; // type:object size:0x4 +lbl_816961FC = .sdata:0x816961FC; // type:object size:0x2 @10074 = .sdata:0x81696200; // type:object size:0x4 scope:local data:string @10750 = .sdata:0x81696208; // type:object size:0x6 scope:local data:string lbl_81696210 = .sdata:0x81696210; // type:object size:0x4 data:4byte diff --git a/tools/decomp-assist/data-d1.attempts.md b/tools/decomp-assist/data-d1.attempts.md index c4169563..14e0b42f 100644 --- a/tools/decomp-assist/data-d1.attempts.md +++ b/tools/decomp-assist/data-d1.attempts.md @@ -96,3 +96,27 @@ Final fetch during verification reached f6fd2780; owned three sources do not dif Final non-quick gate over all three units PASS. Full 43U build succeeds and DOL SHA1 is 26116613f624061ba99c8d1a299aaa6efa85670d. Regressions 0; forbidden additions 0; readability warnings 0; all pools identical. Keyboard exact functions 31 -> 31, matched code 4752 -> 4752, matched data 8 -> 1176 of 1184; .data 100%. Controller exact 84 -> 84, code 5708 -> 5708, data 80 -> 80 of 696. NHTTP exact 22 -> 22, code 3180 -> 3180, data 16 -> 16 of 720. No instruction-exact function count dropped. Fresh relocation comparison confirms every original keyboard .data relocation matches. Final gate output /tmp/data-d1-r2.final-gate.txt. Incomplete data sections: keyboard .sdata 85.71429% from extracted empty-string extent; controller .data 92.03601% from linker-discarded weak Interface vtable and unit-boundary alignment; NHTTP .data 99.786476% from last extraction blob covering three tail alignment zeros. No symbol size or section boundary has been changed to improve the score. The all-data-100% goal remains incomplete. Remaining function create is 94.00944%, 318/318 instructions with 210 instruction differences; register allocation, dictionary-loop instruction scheduling, and MemoSetting temporary stack placement still differ. Every remaining function has at least three distinct logged attempts; all thirteen are retained as evidence, with only the data-exact candidate in the source diff. + +# Round 3, after #739 + +Base 775167f4 fetched origin/main before starting. Initial quick gate PASS, DOL SHA1 correct, instruction-exact functions controller 84/84, NHTTP 22/22, keyboard 31/32. Matched data respectively 80/696, 16/720, 1176/1184; matched code respectively 5708/5708, 3180/3180, 4752/6024. All string pools identical. The human explicitly authorizes proven symbol extent corrections that exclude alignment or neighbour bytes while keeping addresses and section totals unchanged. This supersedes earlier rounds' interpretation that every extent correction was forbidden. + +Controller proof: lbl_816346A8 -> kDownMember__Q23ipl10controller, same address 0x816346A8 and size 12; Master::down relocations at .text+0xcb6/+0xcc2 load it, and member-pointer words {0,0x14,0} encode Interface::down's vtable offset, byte-identical to the typed source member pointer. +Controller proof: lbl_816346B4 -> kDownTrgMember__Q23ipl10controller, same address 0x816346B4 and size 12; Master::downTrg relocations at .text+0xcf6/+0xd02 load it, and words {0,0x18,0} encode Interface::downTrg, matching the source member pointer. +Controller proof: lbl_816346C0 -> kUpTrgMember__Q23ipl10controller, same address 0x816346C0 and size 12; Master::upTrg relocations at .text+0xd36/+0xd42 load it, and words {0,0x1c,0} encode Interface::upTrg, matching the source member pointer. +Controller proof: lbl_816346CC -> kRepeatMember__Q23ipl10controller, same address 0x816346CC and size 12; Master::repeat relocations at .text+0xd7e/+0xd8a load it, and words {0,0x30,0} encode Interface::repeat, matching the source member pointer. +Controller extent proof: __vt__Q33ipl10controller4Base at unchanged 0x81634880 is 0x8c, not 0x90: the real class has two header words plus 33 virtual entries, with 33 target relocations from +0x08 through final Base::read at +0x88; the compiler emits exactly 140 bytes, and the final unrelocated zero word at +0x8c is alignment before neighbour FreeStyle at 0x81634910. Leave that word unowned, keep .data section size 616 and all addresses unchanged. Extra emitted weak Interface table is ignored, not suppressed. + +Controller measurement after proven four renames and Base extent correction: every non-text section 100%, matched_data 696/696. No source or section boundary change. + +NHTTP extent proof: lbl_8166D328 stays at 0x8166D328 and spans the real emitted diagnostic string pool from compiler literal @1000 at unit .data+0xb8 through @1126 at +0x29c, a char[33] holding NHTTPDisableVerifyOptionForDebug and its final NUL at +0x2bc; its real pool extent is 0x205, not 0x208. Both objects agree on all 517 bytes in that span and every literal's internal offset; the three bytes +0x2bd..+0x2bf are unreferenced trailing alignment. NHTTPAddHeaderField's .text+0x452/+0x45a relocations reference the pool start; the source's last function references the final ordinary literal. Leave those three alignment bytes unowned, with .data size still 704 and all addresses unchanged. No symbol rename is needed because .data has no relocations and its byte comparison then spans the same emitted pool extent. + +NHTTP measurement after proven string-pool extent correction: .data, .sdata, .sbss all 100%, matched_data 720/720; all 22 original functions remain exact in objdiff. + +Keyboard extent proof: lbl_816961FC stays at 0x816961FC, with size 2 instead of 4: start's .text+0xf84 and +0xfe4 SDA relocations load the same ordinary empty wchar_t literal for setWCString and setTitleText; wchar_t[1] is 2 bytes in the target ABI, the compiled symbol @17447 is size 2 at identical .sdata+4 with bytes 0000, and the following two zero bytes are section alignment. Leave them unowned; .sdata stays 8 bytes and the entire unit stays 1184 data bytes. The other .sdata object, "arc", already has matching address and four-byte extent; do not rename it or any unrelated compiler literal. + +Keyboard measurement after the proven empty-wide-string extent correction: .data, .sdata and .sdata2 all 100%, matched_data 1184/1184; exact-name functions remain 31/32. Controller and NHTTP also retain every non-text section at 100%. All seven metadata edits are backed by the one-line proofs above. No source files, build configuration, split boundaries, addresses, section totals, bytes, or weak-table emission are changed. Remaining keyboard create is code work and is outside this completed data-only lane; prior rounds logged thirteen distinct attempts without reducing its exact function count. + +## Round 3 final verification + +Clean non-quick gate over controller, NHTTP and keyboard PASS. Full 43U build passes; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Regressions 0, forbidden patterns 0, readability warnings 0, all pools identical. Controller data 80 -> 696/696, instruction-exact 84 -> 84, matched code 5708 -> 5708. NHTTP data 16 -> 720/720, instruction-exact 22 -> 22, matched code 3180 -> 3180. Keyboard data 1176 -> 1184/1184, instruction-exact 31 -> 31, matched code 4752 -> 4752. Fresh report asserts every owned non-text section is 100%, matched_data equals unchanged total_data, and original section sizes are unchanged. Data-lane goal achieved. Remaining keyboard create stays 94.00944%; its instruction differences are outside data scope and its prior thirteen attempts are logged. No new source experiment is needed for this metadata-only lane. Final full gate output /tmp/data-d1-r3.final-gate.txt, final report /tmp/data-d1-r3.final-report.json. -- 2.49.1 From 18e8dd2d073c729edaee8affad653f526da4bb03 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 05:56:49 +0000 Subject: [PATCH 06/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 278f793a..4e5ee4e9 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.07% | 97.65% | +| 99.46% | 88.57% | 63.07% | 97.72% | units 926/1027 complete, functions 12264/12563 matched. -- 2.49.1 From a1d6b7d93091be2ea582ba2b259f90c291beb200 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:57:56 -0500 Subject: [PATCH 07/63] Correct fixed-width candidate pane-name record boundaries (#742) --- src/keyboard/tiCandidateBox.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/keyboard/tiCandidateBox.cpp b/src/keyboard/tiCandidateBox.cpp index fd69bb0e..63278bd1 100644 --- a/src/keyboard/tiCandidateBox.cpp +++ b/src/keyboard/tiCandidateBox.cpp @@ -206,14 +206,14 @@ namespace textinput { #pragma push #pragma section const_type ".data" extern "C" const char scPaneNameTable[132] = - "B_OffBtn\0\0\0" - "P_JPOffBtn\0" - "P_CNOffBtn\0" - "P_CNOnBtn\0\0" - "B_prdc_scrl_Left\0\0\0" - "P_prdc_scrl_Left\0\0\0" - "B_prdc_scrl_Rght\0\0\0" - "P_prdc_scrl_Rght\0\0\0" + "B_OffBtn\0\0\0\0" + "P_JPOffBtn\0\0" + "P_CNOffBtn\0\0" + "P_CNOnBtn\0\0\0" + "B_prdc_scrl_Left\0\0\0\0" + "P_prdc_scrl_Left\0\0\0\0" + "B_prdc_scrl_Rght\0\0\0\0" + "P_prdc_scrl_Rght\0\0\0\0" "\0\0\0"; extern "C" char scW_predictWindow[16] = "W_predictWindow"; extern "C" const char scN_predictInput[15] = "N_predictInput"; -- 2.49.1 From 0cc4c57ecdeeee25872bf7c93c654f6fceb5e1ab Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:00:51 -0500 Subject: [PATCH 08/63] data(NHTTP_os_RVL, iplDate data 100%, ATERM +80) (data-d3b) (worker 385ef001) (#744) --- config/43U/symbols.txt | 174 +++++++++---------- tools/decomp-assist/data-d3.attempts.md | 211 ++++++++++++++++++++++++ 2 files changed, 299 insertions(+), 86 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 51bb5fd0..7a667a2f 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -54,7 +54,7 @@ sFriendInfo__Q23ipl5scene = .bss:0x810B71C0; // type:object size:0x140 data:4byt mscMinDate__Q33ipl5scene8Calendar = .bss:0x810B7300; // type:object size:0xC data:4byte mscMaxDate__Q33ipl5scene8Calendar = .bss:0x810B730C; // type:object size:0xC data:4byte mscMinDate__Q33ipl5scene4Date = .bss:0x810B7318; // type:object size:0xC data:4byte -mscMaxDate__Q33ipl5scene4Date = .bss:0x810B7324; // type:object size:0x1C data:4byte +mscMaxDate__Q33ipl5scene4Date = .bss:0x810B7324; // type:object size:0xC data:4byte msTicketView__Q33ipl5scene12ChannelTitle = .bss:0x810B7340; // type:object size:0xE0 msUnlockTicket__Q33ipl5scene12ChannelTitle = .bss:0x810B7420; // type:object size:0xD8 sAllocator___Q23ipl10memorycard = .bss:0x810B74F8; // type:object size:0x10 @@ -16968,87 +16968,89 @@ lbl_8165683C = .data:0x8165683C; // type:object size:0xAC sSettingAPButtonNames__Q23ipl5scene = .data:0x816568E8; // type:object size:0x10 sSettingAPTextNames__Q23ipl5scene = .data:0x816568F8; // type:object size:0x18 sSettingAPNumberNames__Q23ipl5scene = .data:0x81656910; // type:object size:0x18 data:4byte -lbl_81656928 = .data:0x81656928; // type:object size:0xD data:string -lbl_81656935 = .data:0x81656935; // type:object size:0xC data:string -lbl_81656941 = .data:0x81656941; // type:object size:0x9 data:string -lbl_8165694A = .data:0x8165694A; // type:object size:0x9 data:string -lbl_81656953 = .data:0x81656953; // type:object size:0x9 data:string -lbl_8165695C = .data:0x8165695C; // type:object size:0x9 data:string -lbl_81656965 = .data:0x81656965; // type:object size:0x9 data:string -lbl_8165696E = .data:0x8165696E; // type:object size:0x72 -lbl_816569E0 = .data:0x816569E0; // type:object size:0x18 data:string -lbl_816569F8 = .data:0x816569F8; // type:object size:0x16 data:string -lbl_81656A0E = .data:0x81656A0E; // type:object size:0x19 data:string -lbl_81656A27 = .data:0x81656A27; // type:object size:0x1A data:string -lbl_81656A41 = .data:0x81656A41; // type:object size:0x18 data:string -lbl_81656A59 = .data:0x81656A59; // type:object size:0x17 data:string -lbl_81656A70 = .data:0x81656A70; // type:object size:0x19 data:string -lbl_81656A89 = .data:0x81656A89; // type:object size:0x19 data:string -lbl_81656AA2 = .data:0x81656AA2; // type:object size:0x1A data:string -lbl_81656ABC = .data:0x81656ABC; // type:object size:0x19 data:string -lbl_81656AD5 = .data:0x81656AD5; // type:object size:0x17 data:string -lbl_81656AEC = .data:0x81656AEC; // type:object size:0x15 data:string -lbl_81656B01 = .data:0x81656B01; // type:object size:0x15 data:string -lbl_81656B16 = .data:0x81656B16; // type:object size:0x15 data:string -lbl_81656B2B = .data:0x81656B2B; // type:object size:0x15 data:string -lbl_81656B40 = .data:0x81656B40; // type:object size:0x16 data:string -lbl_81656B56 = .data:0x81656B56; // type:object size:0x62 -lbl_81656BB8 = .data:0x81656BB8; // type:object size:0xF data:string -lbl_81656BC7 = .data:0x81656BC7; // type:object size:0xB8 -lbl_81656C7F = .data:0x81656C7F; // type:object size:0xA8 -lbl_81656D27 = .data:0x81656D27; // type:object size:0xC data:string -lbl_81656D33 = .data:0x81656D33; // type:object size:0x20 data:string -lbl_81656D53 = .data:0x81656D53; // type:object size:0xD data:string -lbl_81656D60 = .data:0x81656D60; // type:object size:0x1D data:string -lbl_81656D7D = .data:0x81656D7D; // type:object size:0x1A data:string -lbl_81656D97 = .data:0x81656D97; // type:object size:0x19 data:string -lbl_81656DB0 = .data:0x81656DB0; // type:object size:0xD data:string -lbl_81656DBD = .data:0x81656DBD; // type:object size:0x16 data:string -lbl_81656DD3 = .data:0x81656DD3; // type:object size:0x1E data:string -lbl_81656DF1 = .data:0x81656DF1; // type:object size:0x9 data:string -lbl_81656DFA = .data:0x81656DFA; // type:object size:0x11 data:string -lbl_81656E0B = .data:0x81656E0B; // type:object size:0x9 data:string -lbl_81656E14 = .data:0x81656E14; // type:object size:0x91 -lbl_81656EA5 = .data:0x81656EA5; // type:object size:0x66 -lbl_81656F0B = .data:0x81656F0B; // type:object size:0x55 -jumptable_81656F60 = .data:0x81656F60; // type:object size:0x1A0 scope:local -jumptable_81657100 = .data:0x81657100; // type:object size:0x48 scope:local -lbl_816571DD = .data:0x816571DD; // type:object size:0xF data:string -lbl_816571EC = .data:0x816571EC; // type:object size:0x18 data:string -jumptable_81657204 = .data:0x81657204; // type:object size:0x44 scope:local -lbl_81657248 = .data:0x81657248; // type:object size:0x17 data:string -lbl_8165725F = .data:0x8165725F; // type:object size:0x18 data:string -lbl_81657277 = .data:0x81657277; // type:object size:0x19 -jumptable_81657290 = .data:0x81657290; // type:object size:0x5C scope:local -lbl_816572EC = .data:0x816572EC; // type:object size:0xE data:string -jumptable_816572FC = .data:0x816572FC; // type:object size:0x5C scope:local -jumptable_81657358 = .data:0x81657358; // type:object size:0x5C scope:local -lbl_816573B4 = .data:0x816573B4; // type:object size:0xE data:string -jumptable_816573C4 = .data:0x816573C4; // type:object size:0x40 scope:local -lbl_81657404 = .data:0x81657404; // type:object size:0x15 data:string -jumptable_8165741C = .data:0x8165741C; // type:object size:0x54 scope:local -lbl_81657470 = .data:0x81657470; // type:object size:0x17 data:string -lbl_81657487 = .data:0x81657487; // type:object size:0xE data:string -lbl_81657495 = .data:0x81657495; // type:object size:0x26 data:string -lbl_816574BB = .data:0x816574BB; // type:object size:0xD data:string -lbl_816574C8 = .data:0x816574C8; // type:object size:0x16 data:string -lbl_816574DE = .data:0x816574DE; // type:object size:0x13 data:string -lbl_816574F1 = .data:0x816574F1; // type:object size:0x14 data:string -jumptable_81657508 = .data:0x81657508; // type:object size:0x5C scope:local -jumptable_81657564 = .data:0x81657564; // type:object size:0x28 scope:local -lbl_8165758C = .data:0x8165758C; // type:object size:0x15 data:string -lbl_816575A1 = .data:0x816575A1; // type:object size:0x10 data:string -jumptable_816575B4 = .data:0x816575B4; // type:object size:0x2C scope:local -jumptable_816575E0 = .data:0x816575E0; // type:object size:0x30 scope:local -lbl_81657610 = .data:0x81657610; // type:object size:0xA data:string -lbl_8165761A = .data:0x8165761A; // type:object size:0xD data:string -lbl_81657627 = .data:0x81657627; // type:object size:0x1B data:string -lbl_81657642 = .data:0x81657642; // type:object size:0x2A data:string -lbl_8165766C = .data:0x8165766C; // type:object size:0x10 data:string -lbl_8165767C = .data:0x8165767C; // type:object size:0x84 -jumptable_81657700 = .data:0x81657700; // type:object size:0x84 scope:local +@16807 = .data:0x81656928; // type:object size:0xD scope:local data:string +@16808 = .data:0x81656935; // type:object size:0xC scope:local data:string +@16821 = .data:0x81656941; // type:object size:0x9 scope:local data:string +@16822 = .data:0x8165694A; // type:object size:0x9 scope:local data:string +@16823 = .data:0x81656953; // type:object size:0x9 scope:local data:string +@16824 = .data:0x8165695C; // type:object size:0x9 scope:local data:string +@16825 = .data:0x81656965; // type:object size:0x9 scope:local data:string +@16826 = .data:0x8165696E; // type:object size:0x9 scope:local data:string +sSettingAPPaneNames__Q23ipl5scene = .data:0x81656978; // type:object size:0x68 data:4byte +@16833 = .data:0x816569E0; // type:object size:0x18 scope:local data:string +@16834 = .data:0x816569F8; // type:object size:0x16 scope:local data:string +@16835 = .data:0x81656A0E; // type:object size:0x19 scope:local data:string +@16836 = .data:0x81656A27; // type:object size:0x1A scope:local data:string +@16837 = .data:0x81656A41; // type:object size:0x18 scope:local data:string +@16838 = .data:0x81656A59; // type:object size:0x17 scope:local data:string +@16839 = .data:0x81656A70; // type:object size:0x19 scope:local data:string +@16840 = .data:0x81656A89; // type:object size:0x19 scope:local data:string +@16841 = .data:0x81656AA2; // type:object size:0x1A scope:local data:string +@16842 = .data:0x81656ABC; // type:object size:0x19 scope:local data:string +@16843 = .data:0x81656AD5; // type:object size:0x17 scope:local data:string +@16844 = .data:0x81656AEC; // type:object size:0x15 scope:local data:string +@16845 = .data:0x81656B01; // type:object size:0x15 scope:local data:string +@16846 = .data:0x81656B16; // type:object size:0x15 scope:local data:string +@16847 = .data:0x81656B2B; // type:object size:0x15 scope:local data:string +@16848 = .data:0x81656B40; // type:object size:0x16 scope:local data:string +@16849 = .data:0x81656B56; // type:object size:0x15 scope:local data:string +sSettingAPAnimations__Q23ipl5scene = .data:0x81656B6C; // type:object size:0x4C data:4byte +@25442 = .data:0x81656BB8; // type:object size:0xF scope:local data:string +@25443 = .data:0x81656BC7; // type:object size:0x1C scope:local data:string +@25618 = .data:0x81656C7F; // type:object size:0xF scope:local data:string +@17193 = .data:0x81656D27; // type:object size:0xC scope:local data:string +@17194 = .data:0x81656D33; // type:object size:0x20 scope:local data:string +@17197 = .data:0x81656D53; // type:object size:0xD scope:local data:string +@17198 = .data:0x81656D60; // type:object size:0x1D scope:local data:string +@17199 = .data:0x81656D7D; // type:object size:0x1A scope:local data:string +@17200 = .data:0x81656D97; // type:object size:0x19 scope:local data:string +@17201 = .data:0x81656DB0; // type:object size:0xD scope:local data:string +@17225 = .data:0x81656DBD; // type:object size:0x16 scope:local data:string +@17226 = .data:0x81656DD3; // type:object size:0x1E scope:local data:string +@17247 = .data:0x81656DF1; // type:object size:0x9 scope:local data:string +@17250 = .data:0x81656DFA; // type:object size:0x11 scope:local data:string +@17251 = .data:0x81656E0B; // type:object size:0x9 scope:local data:string +@17252 = .data:0x81656E14; // type:object size:0xD scope:local data:string +@25747 = .data:0x81656EA5; // type:object size:0x1B scope:local data:string +@26292 = .data:0x81656F0B; // type:object size:0xF scope:local data:string +@26300 = .data:0x81656F60; // type:object size:0x1A0 scope:local +@26299 = .data:0x81657100; // type:object size:0x48 scope:local +@26502 = .data:0x816571DD; // type:object size:0xF scope:local data:string +@26534 = .data:0x816571EC; // type:object size:0x18 scope:local data:string +@26536 = .data:0x81657204; // type:object size:0x44 scope:local +@26538 = .data:0x81657248; // type:object size:0x17 scope:local data:string +@26623 = .data:0x8165725F; // type:object size:0x18 scope:local data:string +@26624 = .data:0x81657277; // type:object size:0x19 scope:local +@26628 = .data:0x81657290; // type:object size:0x5C scope:local +@26776 = .data:0x816572EC; // type:object size:0xE scope:local data:string +@26779 = .data:0x816572FC; // type:object size:0x5C scope:local +@26778 = .data:0x81657358; // type:object size:0x5C scope:local +@26797 = .data:0x816573B4; // type:object size:0xE scope:local data:string +@26799 = .data:0x816573C4; // type:object size:0x40 scope:local +@26824 = .data:0x81657404; // type:object size:0x15 scope:local data:string +@26826 = .data:0x8165741C; // type:object size:0x54 scope:local +@26829 = .data:0x81657470; // type:object size:0x17 scope:local data:string +@26841 = .data:0x81657487; // type:object size:0xE scope:local data:string +@26844 = .data:0x81657495; // type:object size:0x26 scope:local data:string +@26860 = .data:0x816574BB; // type:object size:0xD scope:local data:string +@26868 = .data:0x816574C8; // type:object size:0x16 scope:local data:string +@26875 = .data:0x816574DE; // type:object size:0x13 scope:local data:string +@26964 = .data:0x816574F1; // type:object size:0x14 scope:local data:string +@27234 = .data:0x81657508; // type:object size:0x5C scope:local +@27409 = .data:0x81657564; // type:object size:0x28 scope:local +@27784 = .data:0x8165758C; // type:object size:0x15 scope:local data:string +@27785 = .data:0x816575A1; // type:object size:0x10 scope:local data:string +@27880 = .data:0x816575B4; // type:object size:0x2C scope:local +@28125 = .data:0x816575E0; // type:object size:0x30 scope:local +@28151 = .data:0x81657610; // type:object size:0xA scope:local data:string +@28277 = .data:0x8165761A; // type:object size:0xD scope:local data:string +@28287 = .data:0x81657627; // type:object size:0x1B scope:local data:string +@28326 = .data:0x81657642; // type:object size:0x2A scope:local data:string +@28370 = .data:0x8165766C; // type:object size:0x10 scope:local data:string +@28383 = .data:0x8165767C; // type:object size:0x14 scope:local data:string +@28442 = .data:0x81657700; // type:object size:0x84 scope:local __vt__Q33ipl5scene7APEvent = .data:0x81657784; // type:object size:0x18 -__vt__Q33ipl5scene7Setting = .data:0x8165779C; // type:object size:0xFC +__vt__Q33ipl5scene7Setting = .data:0x8165779C; // type:object size:0x68 @1459 = .data:0x81657898; // type:object size:0x13 scope:local data:string ...data.0 = .data:0x81657898; // type:label scope:local @1732 = .data:0x816578AC; // type:object size:0x24 scope:local @@ -17094,9 +17096,9 @@ jumptable_81657C54 = .data:0x81657C54; // type:object size:0x58 scope:local jumptable_81657CAC = .data:0x81657CAC; // type:object size:0x58 scope:local jumptable_81657D04 = .data:0x81657D04; // type:object size:0x58 scope:local jumptable_81657D5C = .data:0x81657D5C; // type:object size:0x58 scope:local -jumptable_81657DB8 = .data:0x81657DB8; // type:object size:0x28 scope:local -jumptable_81657DE0 = .data:0x81657DE0; // type:object size:0x84 scope:local -jumptable_81657E64 = .data:0x81657E64; // type:object size:0x2C scope:local +@2462 = .data:0x81657DB8; // type:object size:0x28 scope:local +@2514 = .data:0x81657DE0; // type:object size:0x84 scope:local +@2631 = .data:0x81657E64; // type:object size:0x2C scope:local gAtermDigestFill = .data:0x81657E90; // type:object size:0x40 @10010 = .data:0x81657ED0; // type:object size:0xC scope:local data:string @10021 = .data:0x81657EDC; // type:object size:0x13 scope:local data:string @@ -18349,7 +18351,7 @@ lbl_8166D030 = .data:0x8166D030; // type:object size:0x25 data:string lbl_8166D058 = .data:0x8166D058; // type:object size:0x48 lbl_8166D0A0 = .data:0x8166D0A0; // type:object size:0x3A data:string lbl_8166D0E0 = .data:0x8166D0E0; // type:object size:0x1B data:string -lbl_8166D100 = .data:0x8166D100; // type:object size:0x40 +__FUNCTION__$378 = .data:0x8166D100; // type:object size:0x1A data:string lbl_8166D140 = .data:0x8166D140; // type:object size:0x9 data:string lbl_8166D150 = .data:0x8166D150; // type:object size:0xF data:string lbl_8166D160 = .data:0x8166D160; // type:object size:0x41 data:string @@ -23532,7 +23534,7 @@ gAtermMode = .sbss:0x81698CC0; // type:object size:0x1 data:byte gAtermResponseMode = .sbss:0x81698CC4; // type:object size:0x4 data:4byte gAtermAddressBuffer = .sbss:0x81698CC8; // type:object size:0x8 gAtermProtocolState = .sbss:0x81698CD0; // type:object size:0x4 data:4byte -gAtermSelectedBssid = .sbss:0x81698CD4; // type:object size:0x8 data:byte +gAtermSelectedBssid = .sbss:0x81698CD4; // type:object size:0x6 data:byte gAtermCancelRequested = .sbss:0x81698CDC; // type:object size:0x4 data:4byte zeroBuffer = .sbss:0x81698CE0; // type:object size:0x4 data:4byte sSysInit__19AxAdpcmSimplePlayer = .sbss:0x81698CE4; // type:object size:0x1 data:byte diff --git a/tools/decomp-assist/data-d3.attempts.md b/tools/decomp-assist/data-d3.attempts.md index 814a9c01..2df05259 100644 --- a/tools/decomp-assist/data-d3.attempts.md +++ b/tools/decomp-assist/data-d3.attempts.md @@ -297,3 +297,214 @@ GATE PASS Before -> after: iplSetting data 1040 -> 1680, instruction-exact 105 -> 105, code 30760 -> 30760; iplUSBAP data 40 -> 4984, instruction-exact 4 -> 4, code 988 -> 988; ATERM data 18504 -> 18504, instruction-exact 14 -> 14, code 9296 -> 9296; AOSS data 3896 -> 3928, instruction-exact 15 -> 15, code 6436 -> 6436. Net data gain 5616 bytes. All 22 remaining nonexact functions have three distinct compiled source trials. USBAP and AOSS data goals are complete. iplSetting .data and ATERM .data/.sbss remain open. + +# Data lane round 2 + +Base 775167f4. Fetched origin/main 12960310; the intervening progress commit changes none of the four assigned units or symbols. Applied unslop to the log and final report. All four initial pools are identical. This round permits proven symbol extent corrections while retaining every address and section total, as explicitly requested. + +Initial matched_data: iplSetting 1680/5696; ATERM 18504/18864; NHTTP_os_RVL 8/72; iplDate 316/356. Code bytes are 30760, 9296, 548, 2868 respectively. + +## Proven extent corrections + +- iplDate mscMaxDate at .bss:0x810B7324, extent 28 -> 12: utility::Date contains exactly three int fields at 0, 4, 8; its static initializer calls the Date constructor at that address, and the compiler object's mscMaxDate is 12 bytes. The following 16 bytes remain in the same 40-byte section, unowned by mscMaxDate. +- ATERM gAtermSelectedBssid at .sbss:0x81698CD4, extent 8 -> 6: ATERMDiscoverAccessPoints and ATERMBuildAssociationRequest copy exactly six MAC-address bytes; the source object is u8[6] at the identical +0x44 offset. Cancellation remains +0x4c and the two intervening alignment bytes remain in the unchanged 80-byte section. + +- NHTTP_os_RVL .data:0x8166D100, lbl_8166D100 -> __FUNCTION__$378 and extent 64 -> 26: exact NHTTPi_CheckCurrentThread loads this section base at .text+0x17a/+0x17e, passes its zero-offset "NHTTPi_CheckCurrentThread" literal as OSReport's second argument, and the source compiler emits that 26-byte char literal under __FUNCTION__$378; following format/file literals and alignment remain in the unchanged 64-byte section. +- iplSetting __vt__Q33ipl5scene7Setting at .data:0x8165779C, extent 252 -> 104: the source class has 26 vtable words including both base-table ABI headers, matching the retail vtable's 22 function relocations and four header words; the following 148 bytes are linker-deduplicated weak vtables, not Setting slots. Addresses and the 4016-byte section are unchanged. + +## iplSetting data identity proofs + +- .data:0x81656928, lbl_81656928 -> @16807, extent 13 -> 13: char[13] literal 'G_ListUpDown'; retail incoming relocation .data+0x90, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656935, lbl_81656935 -> @16808, extent 12 -> 12: char[12] literal 'G_ListInOut'; retail incoming relocation .data+0x94, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656941, lbl_81656941 -> @16821, extent 9 -> 9: char[9] literal 'G_Denpa1'; retail incoming relocation .data+0xc8, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165694A, lbl_8165694A -> @16822, extent 9 -> 9: char[9] literal 'G_Denpa2'; retail incoming relocation .data+0xcc, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656953, lbl_81656953 -> @16823, extent 9 -> 9: char[9] literal 'G_Denpa3'; retail incoming relocation .data+0xd0, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165695C, lbl_8165695C -> @16824, extent 9 -> 9: char[9] literal 'G_Denpa4'; retail incoming relocation .data+0xd4, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656965, lbl_81656965 -> @16825, extent 9 -> 9: char[9] literal 'G_Denpa5'; retail incoming relocation .data+0xd8, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165696E, lbl_8165696E -> @16826, extent 114 -> 9: char[9] literal 'G_Denpa6'; retail incoming relocation .data+0xdc, same resolved source data offset; addresses and section total unchanged. +- .data:0x816569E0, lbl_816569E0 -> @16833, extent 24 -> 24: char[24] literal 'my_AP_a_ArwAppear.brlan'; retail incoming relocation .data+0x284, same resolved source data offset; addresses and section total unchanged. +- .data:0x816569F8, lbl_816569F8 -> @16834, extent 22 -> 22: char[22] literal 'my_AP_a_ArwLost.brlan'; retail incoming relocation .data+0x288, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656A0E, lbl_81656A0E -> @16835, extent 25 -> 25: char[25] literal 'my_AP_a_ArwFocusOn.brlan'; retail incoming relocation .data+0x28c, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656A27, lbl_81656A27 -> @16836, extent 26 -> 26: char[26] literal 'my_AP_a_ArwFocusOff.brlan'; retail incoming relocation .data+0x290, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656A41, lbl_81656A41 -> @16837, extent 24 -> 24: char[24] literal 'my_AP_a_ArwSelect.brlan'; retail incoming relocation .data+0x294, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656A59, lbl_81656A59 -> @16838, extent 23 -> 23: char[23] literal 'my_AP_a_ScrollUp.brlan'; retail incoming relocation .data+0x298, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656A70, lbl_81656A70 -> @16839, extent 25 -> 25: char[25] literal 'my_AP_a_ScrollDown.brlan'; retail incoming relocation .data+0x29c, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656A89, lbl_81656A89 -> @16840, extent 25 -> 25: char[25] literal 'my_AP_a_BtnFocusOn.brlan'; retail incoming relocation .data+0x2a0, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656AA2, lbl_81656AA2 -> @16841, extent 26 -> 26: char[26] literal 'my_AP_a_BtnFocusOff.brlan'; retail incoming relocation .data+0x2a4, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656ABC, lbl_81656ABC -> @16842, extent 25 -> 25: char[25] literal 'my_AP_a_ListAppear.brlan'; retail incoming relocation .data+0x2a8, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656AD5, lbl_81656AD5 -> @16843, extent 23 -> 23: char[23] literal 'my_AP_a_ListLost.brlan'; retail incoming relocation .data+0x2ac, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656AEC, lbl_81656AEC -> @16844, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa0.brlan'; retail incoming relocation .data+0x2b0, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656B01, lbl_81656B01 -> @16845, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa1.brlan'; retail incoming relocation .data+0x2b4, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656B16, lbl_81656B16 -> @16846, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa2.brlan'; retail incoming relocation .data+0x2b8, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656B2B, lbl_81656B2B -> @16847, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa3.brlan'; retail incoming relocation .data+0x2bc, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656B40, lbl_81656B40 -> @16848, extent 22 -> 22: char[22] literal 'my_AP_a_LockOff.brlan'; retail incoming relocation .data+0x2c0, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656B56, lbl_81656B56 -> @16849, extent 98 -> 21: char[21] literal 'my_AP_a_LockOn.brlan'; retail incoming relocation .data+0x2c4, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656BB8, lbl_81656BB8 -> @25442, extent 15 -> 15: char[15] literal '***Destruct!!\n'; retail incoming relocation .text+0x1da, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656BC7, lbl_81656BC7 -> @25443, extent 184 -> 28: char[28] literal ' ... bs2 manager restarted\n'; retail incoming relocation .text+0x31e, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656C7F, lbl_81656C7F -> @25618, extent 168 -> 15: char[15] literal 'iplSetting.cpp'; retail incoming relocation .text+0x7726, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656D27, lbl_81656D27 -> @17193, extent 12 -> 12: char[12] literal 'marc:%s/%s/'; retail incoming relocation .sdata2+0x0, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656D33, lbl_81656D33 -> @17194, extent 32 -> 32: char[32] literal 'file:dvd/html/IPLSetting/%s/%s/'; retail incoming relocation .sdata2+0x4, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656D53, lbl_81656D53 -> @17197, extent 13 -> 13: char[13] literal 'index01.html'; retail incoming relocation .rodata+0xe8, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656D60, lbl_81656D60 -> @17198, extent 29 -> 29: char[29] literal 'Internet/Internet_index.html'; retail incoming relocation .rodata+0xec, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656D7D, lbl_81656D7D -> @17199, extent 26 -> 26: char[26] literal 'Setup/startup_index1.html'; retail incoming relocation .rodata+0xf0, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656D97, lbl_81656D97 -> @17200, extent 25 -> 25: char[25] literal 'Update/Update_index.html'; retail incoming relocation .rodata+0xf4, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656DB0, lbl_81656DB0 -> @17201, extent 13 -> 13: char[13] literal 'index02.html'; retail incoming relocation .rodata+0xf8, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656DBD, lbl_81656DBD -> @17225, extent 22 -> 22: char[22] literal 'Setup/ScreenSave.html'; retail incoming relocation .rodata+0x15c, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656DD3, lbl_81656DD3 -> @17226, extent 30 -> 30: char[30] literal 'Country/US_Country_flame.html'; retail incoming relocation .rodata+0x160, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656DF1, lbl_81656DF1 -> @17247, extent 9 -> 9: char[9] literal 'Calendar'; retail incoming relocation .rodata+0x18c, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656DFA, lbl_81656DFA -> @17250, extent 17 -> 17: char[17] literal 'Parental_Control'; retail incoming relocation .rodata+0x198, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656E0B, lbl_81656E0B -> @17251, extent 9 -> 9: char[9] literal 'Internet'; retail incoming relocation .rodata+0x19c, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656E14, lbl_81656E14 -> @17252, extent 145 -> 13: char[13] literal 'Wiiconnect24'; retail incoming relocation .rodata+0x1a0, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656EA5, lbl_81656EA5 -> @25747, extent 102 -> 27: char[27] literal 'HTML String Alloc Size:%d\n'; retail incoming relocation .text+0x10ee, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656F0B, lbl_81656F0B -> @26292, extent 85 -> 15: char[15] literal 'WIPL_SE_DECIDE'; retail incoming relocation .text+0x7466, same resolved source data offset; addresses and section total unchanged. +- .data:0x81656F60, jumptable_81656F60 -> @26300, extent 416 -> 416: 104 ordered switch-table relocations target calcNormal__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x81657100, jumptable_81657100 -> @26299, extent 72 -> 72: 18 ordered switch-table relocations target calcNormal__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x816571DD, lbl_816571DD -> @26502, extent 15 -> 15: char[15] literal 'changed %p %p\n'; retail incoming relocation .text+0x2f52, same resolved source data offset; addresses and section total unchanged. +- .data:0x816571EC, lbl_816571EC -> @26534, extent 24 -> 24: char[24] literal 'initHTMLText pageId:%d\n'; retail incoming relocation .text+0x387a, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657204, jumptable_81657204 -> @26536, extent 68 -> 68: 17 ordered switch-table relocations target initHTMLText__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x81657248, lbl_81657248 -> @26538, extent 23 -> 23: char[23] literal 'initMessage pageId:%d\n'; retail incoming relocation .text+0x39ea, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165725F, lbl_8165725F -> @26623, extent 24 -> 24: char[24] literal 'initKeyboard formId:%d\n'; retail incoming relocation .text+0x3a3a, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657277, lbl_81657277 -> @26624, extent 25 -> 25: char[25] literal '\x83L\x81[\x83{\x81[\x83h: %d %d %d %d\n'; retail incoming relocation .text+0x3bb6, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657290, jumptable_81657290 -> @26628, extent 92 -> 92: 23 ordered switch-table relocations target initKeyboard__Q33ipl5scene7SettingFPCc in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x816572EC, lbl_816572EC -> @26776, extent 14 -> 14: char[14] literal 'formID:%d %s\n'; retail incoming relocation .text+0x3ed2, same resolved source data offset; addresses and section total unchanged. +- .data:0x816572FC, jumptable_816572FC -> @26779, extent 92 -> 92: 23 ordered switch-table relocations target calcKeyboard__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x81657358, jumptable_81657358 -> @26778, extent 92 -> 92: 23 ordered switch-table relocations target calcKeyboard__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x816573B4, lbl_816573B4 -> @26797, extent 14 -> 14: char[14] literal 'setstring:%d\n'; retail incoming relocation .text+0x4212, same resolved source data offset; addresses and section total unchanged. +- .data:0x816573C4, jumptable_816573C4 -> @26799, extent 64 -> 64: 16 ordered switch-table relocations target calcSetting__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x81657404, lbl_81657404 -> @26824, extent 21 -> 21: char[21] literal 'Keyboard Confirm:%d\n'; retail incoming relocation .text+0x433a, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165741C, jumptable_8165741C -> @26826, extent 84 -> 84: 21 ordered switch-table relocations target onTextInputOK__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x81657470, lbl_81657470 -> @26829, extent 23 -> 23: char[23] literal 'SCGetOwnerNickName:%d\n'; retail incoming relocation .text+0x462a, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657487, lbl_81657487 -> @26841, extent 14 -> 14: char[14] literal 'privacy : %s\n'; retail incoming relocation .text+0x4742, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657495, lbl_81657495 -> @26844, extent 38 -> 38: char[38] literal 'initHTMLText initString:%s length:%d\n'; retail incoming relocation .text+0x47c6, same resolved source data offset; addresses and section total unchanged. +- .data:0x816574BB, lbl_816574BB -> @26860, extent 13 -> 13: char[13] literal 'Ver. %d.%d%s'; retail incoming relocation .text+0x4bba, same resolved source data offset; addresses and section total unchanged. +- .data:0x816574C8, lbl_816574C8 -> @26868, extent 22 -> 22: char[22] literal 'nicknameFlag:1 %d %s\n'; retail incoming relocation .text+0x4c8e, same resolved source data offset; addresses and section total unchanged. +- .data:0x816574DE, lbl_816574DE -> @26875, extent 19 -> 19: char[19] literal 'securityFlag:1 %s\n'; retail incoming relocation .text+0x4d06, same resolved source data offset; addresses and section total unchanged. +- .data:0x816574F1, lbl_816574F1 -> @26964, extent 20 -> 20: char[20] literal '%03d.%03d.%03d.%03d'; retail incoming relocation .text+0x5662, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657508, jumptable_81657508 -> @27234, extent 92 -> 92: 23 ordered switch-table relocations target setDefaultBackString__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x81657564, jumptable_81657564 -> @27409, extent 40 -> 40: 10 ordered switch-table relocations target scanAP__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x8165758C, lbl_8165758C -> @27784, extent 21 -> 21: char[21] literal 'SET DATA : %d %s %d\n'; retail incoming relocation .text+0x7272, same resolved source data offset; addresses and section total unchanged. +- .data:0x816575A1, lbl_816575A1 -> @27785, extent 16 -> 16: char[16] literal 'WIPL_SE_BT_PUSH'; retail incoming relocation .text+0x739a, same resolved source data offset; addresses and section total unchanged. +- .data:0x816575B4, jumptable_816575B4 -> @27880, extent 44 -> 44: 11 ordered switch-table relocations target setUpdate___Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x816575E0, jumptable_816575E0 -> @28125, extent 48 -> 48: 12 ordered switch-table relocations target setNUP__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- .data:0x81657610, lbl_81657610 -> @28151, extent 10 -> 10: char[10] literal 'error:%d\n'; retail incoming relocation .text+0x8252, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165761A, lbl_8165761A -> @28277, extent 13 -> 13: char[13] literal 'NandSDWorker'; retail incoming relocation .text+0x8966, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657627, lbl_81657627 -> @28287, extent 27 -> 27: char[27] literal 'USB SCGetOwnerNickName:%d\n'; retail incoming relocation .text+0x8a12, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657642, lbl_81657642 -> @28326, extent 42 -> 42: char[42] literal 'm_AOSSThread : Terminated with Error(%d)\n'; retail incoming relocation .text+0x8c96, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165766C, lbl_8165766C -> @28370, extent 16 -> 16: char[16] literal 'WIPL_SE_COPYING'; retail incoming relocation .text+0x8fe2, same resolved source data offset; addresses and section total unchanged. +- .data:0x8165767C, lbl_8165767C -> @28383, extent 132 -> 20: char[20] literal 'WIPL_SE_COPY_FINISH'; retail incoming relocation .text+0x9062, same resolved source data offset; addresses and section total unchanged. +- .data:0x81657700, jumptable_81657700 -> @28442, extent 132 -> 132: 33 ordered switch-table relocations target setSE__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged. +- Added sSettingAPPaneNames__Q23ipl5scene at .data:0x81656978, extent 104: create retail +0x813F0F48/+0x813F0F4C loads animation base +0x284 and pane base +0x90, then indexes these 26-element pointer arrays for bindToGroup; every pointed-to literal relocation agrees with source. No address or section-total change. +- Added sSettingAPAnimations__Q23ipl5scene at .data:0x81656B6C, extent 76: create retail +0x813F0F48/+0x813F0F4C loads animation base +0x284 and pane base +0x90, then indexes these 19-element pointer arrays for bindToGroup; every pointed-to literal relocation agrees with source. No address or section-total change. + +## ATERM jump-table identity proofs + +- .data:0x81657DB8, jumptable_81657DB8 -> @2462, extent unchanged 40: both objects reference this switch table from ATERMParseAssociationResponse and have 10 ordered relocations into that same function; the first two tables have identical function-relative destinations, the third retains its 11 code-derived differences. +- .data:0x81657DE0, jumptable_81657DE0 -> @2514, extent unchanged 132: both objects reference this switch table from ATERMApplyScanSecuritySettings and have 33 ordered relocations into that same function; the first two tables have identical function-relative destinations, the third retains its 11 code-derived differences. +- .data:0x81657E64, jumptable_81657E64 -> @2631, extent unchanged 44: both objects reference this switch table from ATERMRunConfigProtocol and have 11 ordered relocations into that same function; the first two tables have identical function-relative destinations, the third retains its 11 code-derived differences. + +## Round 2 accepted data audit + +Quick gate over all four units: GATE PASS; regressions 0, forbidden additions 0, readability warnings 0. Source code is unchanged in this round. Matched code bytes remain Setting 30760/37884, ATERM 9296/19204, NHTTP 548/548, Date 2868/2868. Instruction-exact counts remain 105/112, 14/26, 11/11, 19/19 respectively. + +- Setting .data: 95.14304%, up from 6.807248%; all other non-text sections 100%. Normalized relocation comparison finds 23 changed function-relative destinations in initKeyboard, 46 in the two calcKeyboard switch tables, and four in scanAP. All other retail data relocations agree. The 31 source-only relocations belong to deduplicated weak data after the real Setting vtable; those objects are ignored, not suppressed. Matched_data remains 1680/5696 because the report counts only fully matched sections. +- ATERM .data: 92.14286%, up from 22.857143%; all other non-text sections 100%. Its eleven remaining relocation differences belong exclusively to ATERMRunConfigProtocol. Raw section bytes, object offsets, extents, and all other data relocation targets agree. Matched_data 18504 -> 18584/18864. +- NHTTP: every non-text section 100%, matched_data 8 -> 72/72. +- Date: every non-text section 100%, matched_data 316 -> 356/356. + +The remaining Setting and ATERM data gaps require matching their owning functions. This task explicitly classifies these as code work rather than data work; no switch-table entry, extent, or function label was altered to hide them. All remaining below-100 functions already have three distinct compiled source trials recorded above from the landed round. Their source is unchanged, so those trials still cover this round's open functions. + +## Round 2 final full gate and coverage +src/scene/setting/iplSetting: matched_data 1680 -> 1680/5696; matched_code unchanged 30760/37884; all extracted section sizes unchanged. +- createBrowser__Q33ipl5scene7SettingFv: 98.8505%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +- draw__Q33ipl5scene7SettingFv: 91.525314%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +- initKeyboard__Q33ipl5scene7SettingFPCc: 98.38498%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +- calcKeyboard__Q33ipl5scene7SettingFv: 98.0%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +- convertRevIP__Q33ipl5scene7SettingFPUcPCc: 98.69863%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- scanAP__Q33ipl5scene7SettingFv: 95.39338%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +src/scene/setting/ATERM: matched_data 18504 -> 18584/18864; matched_code unchanged 9296/19204; all extracted section sizes unchanged. +- ATERMStartNetworkStack: 97.91558%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMFindChangedApRecord: 99.56896%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMDiscoverAccessPoints: 95.304184%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMBuildEncryptedMessage: 99.791664%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMBuildAssociationRequest: 93.44361%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMParseAssociationResponse: 99.56204%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMRunConfigProtocol: 87.43323%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMi_AutoConfigThread: 94.75%; code branch/call scheduling mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMAesKeyWrap: 99.0%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMAesExpandEncryptKey: 98.94403%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round. +- ATERMMd5Update: 91.263885%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round. +libs/RevoEX/src/nhttp/NHTTP_os_RVL: matched_data 8 -> 72/72; matched_code unchanged 548/548; all extracted section sizes unchanged. +src/scene/calendar/iplDate: matched_data 316 -> 356/356; matched_code unchanged 2868/2868; all extracted section sizes unchanged. + +Final non-quick gate output (all four units, clean rebuild): +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/setting/iplSetting] pool: IDENTICAL +[src/scene/setting/iplSetting] objdiff: code 30760/37884 data 1680/5696 functions 106/112 fuzzy 99.1581 linked code 0 +[src/scene/setting/iplSetting] instruction-exact functions: 105/112 +[src/scene/setting/iplSetting] section .bss size 456 match 100.0 +[src/scene/setting/iplSetting] section .data size 4016 match 95.14304 +[src/scene/setting/iplSetting] section .rodata size 640 match 100.0 +[src/scene/setting/iplSetting] section .sbss size 16 match 100.0 +[src/scene/setting/iplSetting] section .sdata size 504 match 100.0 +[src/scene/setting/iplSetting] section .sdata2 size 64 match 100.0 +[src/scene/setting/iplSetting] section .text size 37884 match 99.15806 +[src/scene/setting/iplSetting] below 100: createBrowser__Q33ipl5scene7SettingFv 98.8505 +[src/scene/setting/iplSetting] below 100: draw__Q33ipl5scene7SettingFv 91.525314 +[src/scene/setting/iplSetting] below 100: initKeyboard__Q33ipl5scene7SettingFPCc 98.38498 +[src/scene/setting/iplSetting] below 100: calcKeyboard__Q33ipl5scene7SettingFv 98.0 +[src/scene/setting/iplSetting] below 100: convertRevIP__Q33ipl5scene7SettingFPUcPCc 98.69863 +[src/scene/setting/iplSetting] below 100: scanAP__Q33ipl5scene7SettingFv 95.39338 +[src/scene/setting/iplSetting] baseline: code 30760/37884 data 1680 functions 106 fuzzy 99.1581 +[src/scene/setting/ATERM] pool: IDENTICAL +[src/scene/setting/ATERM] objdiff: code 9296/19204 data 18584/18864 functions 15/26 fuzzy 96.5836 linked code 0 +[src/scene/setting/ATERM] instruction-exact functions: 14/26 +[src/scene/setting/ATERM] section .bss size 8160 match 100.0 +[src/scene/setting/ATERM] section .data size 280 match 92.14286 +[src/scene/setting/ATERM] section .rodata size 10280 match 100.0 +[src/scene/setting/ATERM] section .sbss size 80 match 100.0 +[src/scene/setting/ATERM] section .sdata size 56 match 100.0 +[src/scene/setting/ATERM] section .sdata2 size 8 match 100.0 +[src/scene/setting/ATERM] section .text size 19204 match 96.583626 +[src/scene/setting/ATERM] below 100: ATERMStartNetworkStack 97.91558 +[src/scene/setting/ATERM] below 100: ATERMFindChangedApRecord 99.56896 +[src/scene/setting/ATERM] below 100: ATERMDiscoverAccessPoints 95.304184 +[src/scene/setting/ATERM] below 100: ATERMBuildEncryptedMessage 99.791664 +[src/scene/setting/ATERM] below 100: ATERMBuildAssociationRequest 93.44361 +[src/scene/setting/ATERM] below 100: ATERMParseAssociationResponse 99.56204 +[src/scene/setting/ATERM] below 100: ATERMRunConfigProtocol 87.43323 +[src/scene/setting/ATERM] below 100: ATERMi_AutoConfigThread 94.75 +[src/scene/setting/ATERM] below 100: ATERMAesKeyWrap 99.0 +[src/scene/setting/ATERM] below 100: ATERMAesExpandEncryptKey 98.94403 +[src/scene/setting/ATERM] below 100: ATERMMd5Update 91.263885 +[src/scene/setting/ATERM] baseline: code 9296/19204 data 18504 functions 15 fuzzy 96.5836 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] objdiff: code 548/548 data 72/72 functions 11/11 fuzzy 100.0000 linked code 548 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] instruction-exact functions: 11/11 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] section .data size 64 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] section .sdata size 8 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] section .text size 548 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] baseline: code 548/548 data 8 functions 11 fuzzy 100.0000 +[src/scene/calendar/iplDate] pool: IDENTICAL +[src/scene/calendar/iplDate] objdiff: code 2868/2868 data 356/356 functions 19/19 fuzzy 100.0000 linked code 2868 +[src/scene/calendar/iplDate] instruction-exact functions: 19/19 +[src/scene/calendar/iplDate] section .bss size 40 match 100.0 +[src/scene/calendar/iplDate] section .ctors size 4 match 100.0 +[src/scene/calendar/iplDate] section .data size 104 match 100.0 +[src/scene/calendar/iplDate] section .rodata size 168 match 100.0 +[src/scene/calendar/iplDate] section .sdata size 32 match 100.0 +[src/scene/calendar/iplDate] section .sdata2 size 8 match 100.0 +[src/scene/calendar/iplDate] section .text size 2868 match 100.0 +[src/scene/calendar/iplDate] baseline: code 2868/2868 data 316 functions 19 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 62.98463 -> 63.07103 +global matched_data_percent: 97.19820 -> 97.20825 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: no baseline for merge-base 775167f4; compared against nearest snapshotted ancestor 547637bf (1 commits back) +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` -- 2.49.1 From 32f358cd6512d866eaa662917e8ad4f44a9fd84f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:01:45 +0000 Subject: [PATCH 09/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e5ee4e9..6edc64e4 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.07% | 97.72% | +| 99.46% | 88.57% | 63.07% | 97.73% | units 926/1027 complete, functions 12264/12563 matched. -- 2.49.1 From dc40dd44bb36d2b7427a949cc4ea7ba38ea28d10 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:03:37 -0500 Subject: [PATCH 10/63] data(RFL Database/HiddenDatabase/NANDLoader/Model data 100%) (data-d9) (worker ba614360) (#745) --- config/43U/symbols.txt | 154 +++++++++++------------ tools/decomp-assist/data-d9.attempts.md | 155 ++++++++++++++++++++++++ 2 files changed, 232 insertions(+), 77 deletions(-) create mode 100644 tools/decomp-assist/data-d9.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 7a667a2f..b6f7d2ee 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -556,22 +556,22 @@ _bss_init_info = .init:0x813303E8; // type:object size:0x20 scope:global data:4b @2779 = extab:0x81330800; // type:object size:0x8 scope:local hidden @2840 = extab:0x81330808; // type:object size:0x8 scope:local hidden @2913 = extab:0x81330810; // type:object size:0x8 scope:local hidden -@2144 = extab:0x81330818; // type:object size:0x8 scope:local hidden -@2193 = extab:0x81330820; // type:object size:0x8 scope:local hidden -@2205 = extab:0x81330828; // type:object size:0x8 scope:local hidden -@2217 = extab:0x81330830; // type:object size:0x8 scope:local hidden -@2223 = extab:0x81330838; // type:object size:0x8 scope:local hidden -@2229 = extab:0x81330840; // type:object size:0x8 scope:local hidden -@2237 = extab:0x81330848; // type:object size:0x8 scope:local hidden -@2254 = extab:0x81330850; // type:object size:0x8 scope:local hidden -@2272 = extab:0x81330858; // type:object size:0x8 scope:local hidden -@2298 = extab:0x81330860; // type:object size:0x8 scope:local hidden -@2316 = extab:0x81330868; // type:object size:0x8 scope:local hidden -@2342 = extab:0x81330870; // type:object size:0x8 scope:local hidden -@2360 = extab:0x81330878; // type:object size:0x8 scope:local hidden -@2386 = extab:0x81330880; // type:object size:0x8 scope:local hidden -@2400 = extab:0x81330888; // type:object size:0x8 scope:local hidden -@2405 = extab:0x81330890; // type:object size:0x8 scope:local hidden +@2374 = extab:0x81330818; // type:object size:0x8 scope:local hidden +@2423 = extab:0x81330820; // type:object size:0x8 scope:local hidden +@2435 = extab:0x81330828; // type:object size:0x8 scope:local hidden +@2447 = extab:0x81330830; // type:object size:0x8 scope:local hidden +@2453 = extab:0x81330838; // type:object size:0x8 scope:local hidden +@2459 = extab:0x81330840; // type:object size:0x8 scope:local hidden +@2467 = extab:0x81330848; // type:object size:0x8 scope:local hidden +@2484 = extab:0x81330850; // type:object size:0x8 scope:local hidden +@2502 = extab:0x81330858; // type:object size:0x8 scope:local hidden +@2528 = extab:0x81330860; // type:object size:0x8 scope:local hidden +@2546 = extab:0x81330868; // type:object size:0x8 scope:local hidden +@2572 = extab:0x81330870; // type:object size:0x8 scope:local hidden +@2590 = extab:0x81330878; // type:object size:0x8 scope:local hidden +@2616 = extab:0x81330880; // type:object size:0x8 scope:local hidden +@2630 = extab:0x81330888; // type:object size:0x8 scope:local hidden +@2635 = extab:0x81330890; // type:object size:0x8 scope:local hidden @4057 = extab:0x81330898; // type:object size:0x8 scope:local hidden @4062 = extab:0x813308A0; // type:object size:0x8 scope:local hidden @4066 = extab:0x813308A8; // type:object size:0x8 scope:local hidden @@ -599,16 +599,16 @@ _bss_init_info = .init:0x813303E8; // type:object size:0x20 scope:global data:4b @4877 = extab:0x81330958; // type:object size:0x8 scope:local hidden @4932 = extab:0x81330960; // type:object size:0x8 scope:local hidden @4959 = extab:0x81330968; // type:object size:0x8 scope:local hidden -@2787 = extab:0x81330970; // type:object size:0x8 scope:local hidden -@2836 = extab:0x81330978; // type:object size:0x8 scope:local hidden -@2841 = extab:0x81330980; // type:object size:0x8 scope:local hidden -@2871 = extab:0x81330988; // type:object size:0x8 scope:local hidden -@2883 = extab:0x81330990; // type:object size:0x8 scope:local hidden -@2921 = extab:0x81330998; // type:object size:0x8 scope:local hidden -@2936 = extab:0x813309A0; // type:object size:0x8 scope:local hidden -@2956 = extab:0x813309A8; // type:object size:0x8 scope:local hidden -@3092 = extab:0x813309B0; // type:object size:0x8 scope:local hidden -@3105 = extab:0x813309B8; // type:object size:0x8 scope:local hidden +@2794 = extab:0x81330970; // type:object size:0x8 scope:local hidden +@2843 = extab:0x81330978; // type:object size:0x8 scope:local hidden +@2848 = extab:0x81330980; // type:object size:0x8 scope:local hidden +@2878 = extab:0x81330988; // type:object size:0x8 scope:local hidden +@2890 = extab:0x81330990; // type:object size:0x8 scope:local hidden +@2928 = extab:0x81330998; // type:object size:0x8 scope:local hidden +@2943 = extab:0x813309A0; // type:object size:0x8 scope:local hidden +@2959 = extab:0x813309A8; // type:object size:0x8 scope:local hidden +@3095 = extab:0x813309B0; // type:object size:0x8 scope:local hidden +@3108 = extab:0x813309B8; // type:object size:0x8 scope:local hidden @2834 = extab:0x813309C0; // type:object size:0x8 scope:local hidden @3102 = extab:0x813309C8; // type:object size:0x8 scope:local hidden @3139 = extab:0x813309D0; // type:object size:0x8 scope:local hidden @@ -620,57 +620,57 @@ _bss_init_info = .init:0x813303E8; // type:object size:0x20 scope:global data:4b @2307 = extab:0x81330A00; // type:object size:0x8 scope:local hidden @2313 = extab:0x81330A08; // type:object size:0x8 scope:local hidden @2385 = extab:0x81330A10; // type:object size:0x8 scope:local hidden -@2533 = extab:0x81330A18; // type:object size:0x8 scope:local hidden -@2542 = extab:0x81330A20; // type:object size:0x8 scope:local hidden -@2549 = extab:0x81330A28; // type:object size:0x8 scope:local hidden -@2556 = extab:0x81330A30; // type:object size:0x8 scope:local hidden -@2565 = extab:0x81330A38; // type:object size:0x8 scope:local hidden -@2583 = extab:0x81330A40; // type:object size:0x8 scope:local hidden -@2684 = extab:0x81330A48; // type:object size:0x8 scope:local hidden -@2694 = extab:0x81330A50; // type:object size:0x8 scope:local hidden -@2710 = extab:0x81330A58; // type:object size:0x8 scope:local hidden -@2733 = extab:0x81330A60; // type:object size:0x8 scope:local hidden -@2738 = extab:0x81330A68; // type:object size:0x8 scope:local hidden -@2776 = extab:0x81330A70; // type:object size:0x8 scope:local hidden -@2804 = extab:0x81330A78; // type:object size:0x8 scope:local hidden -@2810 = extab:0x81330A80; // type:object size:0x8 scope:local hidden -@2816 = extab:0x81330A88; // type:object size:0x8 scope:local hidden -@2830 = extab:0x81330A90; // type:object size:0x8 scope:local hidden -@2880 = extab:0x81330A98; // type:object size:0x8 scope:local hidden -@3211 = extab:0x81330AA0; // type:object size:0x8 scope:local hidden -@3216 = extab:0x81330AA8; // type:object size:0x8 scope:local hidden -@3230 = extab:0x81330AB0; // type:object size:0x8 scope:local hidden -@3248 = extab:0x81330AB8; // type:object size:0x8 scope:local hidden -@3259 = extab:0x81330AC0; // type:object size:0x8 scope:local hidden -@3262 = extab:0x81330AC8; // type:object size:0x8 scope:local hidden -@3274 = extab:0x81330AD0; // type:object size:0x8 scope:local hidden -@3282 = extab:0x81330AD8; // type:object size:0x8 scope:local hidden -@3291 = extab:0x81330AE0; // type:object size:0x8 scope:local hidden -@3306 = extab:0x81330AE8; // type:object size:0x8 scope:local hidden -@3321 = extab:0x81330AF0; // type:object size:0x8 scope:local hidden -@3360 = extab:0x81330AF8; // type:object size:0x8 scope:local hidden -@3438 = extab:0x81330B00; // type:object size:0x8 scope:local hidden -@3443 = extab:0x81330B08; // type:object size:0x8 scope:local hidden -@3448 = extab:0x81330B10; // type:object size:0x8 scope:local hidden -@3453 = extab:0x81330B18; // type:object size:0x8 scope:local hidden -@3458 = extab:0x81330B20; // type:object size:0x8 scope:local hidden -@3463 = extab:0x81330B28; // type:object size:0x8 scope:local hidden -@3468 = extab:0x81330B30; // type:object size:0x8 scope:local hidden -@3473 = extab:0x81330B38; // type:object size:0x8 scope:local hidden -@3480 = extab:0x81330B40; // type:object size:0x8 scope:local hidden -@3488 = extab:0x81330B48; // type:object size:0x8 scope:local hidden -@3571 = extab:0x81330B50; // type:object size:0x8 scope:local hidden -@3590 = extab:0x81330B58; // type:object size:0x8 scope:local hidden -@3617 = extab:0x81330B60; // type:object size:0x8 scope:local hidden -@3725 = extab:0x81330B68; // type:object size:0x8 scope:local hidden -@3821 = extab:0x81330B70; // type:object size:0x8 scope:local hidden -@3839 = extab:0x81330B78; // type:object size:0x8 scope:local hidden -@3853 = extab:0x81330B80; // type:object size:0x8 scope:local hidden -@3877 = extab:0x81330B88; // type:object size:0x8 scope:local hidden -@3885 = extab:0x81330B90; // type:object size:0x8 scope:local hidden -@3908 = extab:0x81330B98; // type:object size:0x8 scope:local hidden -@3913 = extab:0x81330BA0; // type:object size:0x8 scope:local hidden -@3931 = extab:0x81330BA8; // type:object size:0x8 scope:local hidden +@2543 = extab:0x81330A18; // type:object size:0x8 scope:local hidden +@2552 = extab:0x81330A20; // type:object size:0x8 scope:local hidden +@2559 = extab:0x81330A28; // type:object size:0x8 scope:local hidden +@2566 = extab:0x81330A30; // type:object size:0x8 scope:local hidden +@2575 = extab:0x81330A38; // type:object size:0x8 scope:local hidden +@2593 = extab:0x81330A40; // type:object size:0x8 scope:local hidden +@2694 = extab:0x81330A48; // type:object size:0x8 scope:local hidden +@2704 = extab:0x81330A50; // type:object size:0x8 scope:local hidden +@2720 = extab:0x81330A58; // type:object size:0x8 scope:local hidden +@2743 = extab:0x81330A60; // type:object size:0x8 scope:local hidden +@2748 = extab:0x81330A68; // type:object size:0x8 scope:local hidden +@2786 = extab:0x81330A70; // type:object size:0x8 scope:local hidden +@2814 = extab:0x81330A78; // type:object size:0x8 scope:local hidden +@2820 = extab:0x81330A80; // type:object size:0x8 scope:local hidden +@2826 = extab:0x81330A88; // type:object size:0x8 scope:local hidden +@2840 = extab:0x81330A90; // type:object size:0x8 scope:local hidden +@2890 = extab:0x81330A98; // type:object size:0x8 scope:local hidden +@3220 = extab:0x81330AA0; // type:object size:0x8 scope:local hidden +@3225 = extab:0x81330AA8; // type:object size:0x8 scope:local hidden +@3239 = extab:0x81330AB0; // type:object size:0x8 scope:local hidden +@3257 = extab:0x81330AB8; // type:object size:0x8 scope:local hidden +@3268 = extab:0x81330AC0; // type:object size:0x8 scope:local hidden +@3271 = extab:0x81330AC8; // type:object size:0x8 scope:local hidden +@3283 = extab:0x81330AD0; // type:object size:0x8 scope:local hidden +@3291 = extab:0x81330AD8; // type:object size:0x8 scope:local hidden +@3300 = extab:0x81330AE0; // type:object size:0x8 scope:local hidden +@3315 = extab:0x81330AE8; // type:object size:0x8 scope:local hidden +@3330 = extab:0x81330AF0; // type:object size:0x8 scope:local hidden +@3369 = extab:0x81330AF8; // type:object size:0x8 scope:local hidden +@3447 = extab:0x81330B00; // type:object size:0x8 scope:local hidden +@3452 = extab:0x81330B08; // type:object size:0x8 scope:local hidden +@3457 = extab:0x81330B10; // type:object size:0x8 scope:local hidden +@3462 = extab:0x81330B18; // type:object size:0x8 scope:local hidden +@3467 = extab:0x81330B20; // type:object size:0x8 scope:local hidden +@3472 = extab:0x81330B28; // type:object size:0x8 scope:local hidden +@3477 = extab:0x81330B30; // type:object size:0x8 scope:local hidden +@3482 = extab:0x81330B38; // type:object size:0x8 scope:local hidden +@3489 = extab:0x81330B40; // type:object size:0x8 scope:local hidden +@3497 = extab:0x81330B48; // type:object size:0x8 scope:local hidden +@3580 = extab:0x81330B50; // type:object size:0x8 scope:local hidden +@3599 = extab:0x81330B58; // type:object size:0x8 scope:local hidden +@3626 = extab:0x81330B60; // type:object size:0x8 scope:local hidden +@3734 = extab:0x81330B68; // type:object size:0x8 scope:local hidden +@3830 = extab:0x81330B70; // type:object size:0x8 scope:local hidden +@3848 = extab:0x81330B78; // type:object size:0x8 scope:local hidden +@3862 = extab:0x81330B80; // type:object size:0x8 scope:local hidden +@3886 = extab:0x81330B88; // type:object size:0x8 scope:local hidden +@3894 = extab:0x81330B90; // type:object size:0x8 scope:local hidden +@3917 = extab:0x81330B98; // type:object size:0x8 scope:local hidden +@3922 = extab:0x81330BA0; // type:object size:0x8 scope:local hidden +@3940 = extab:0x81330BA8; // type:object size:0x8 scope:local hidden @2610 = extab:0x81330BB0; // type:object size:0x8 scope:local hidden @2871 = extab:0x81330BB8; // type:object size:0x8 scope:local hidden @2294 = extab:0x81330BC0; // type:object size:0x8 scope:local hidden diff --git a/tools/decomp-assist/data-d9.attempts.md b/tools/decomp-assist/data-d9.attempts.md new file mode 100644 index 00000000..68f4c483 --- /dev/null +++ b/tools/decomp-assist/data-d9.attempts.md @@ -0,0 +1,155 @@ +# data-d9 attempts + +All four pools are identical. Initial report saved to /tmp/data-d9-before.json. Every target function is objdiff 100%; no code work is needed. + +Attempt 1: rename index symbols by their function relocations. No metric gain. Reverted all index renames. objdiff 3.4.5 pairs compiler-generated index objects by bytes and relocations; differing unwind record names prevent relocation equality. + +Attempt 2: rename the referenced unwind records to compiler-emitted names, proven by extabindex function relocations and identical unwind bytes. No addresses, extents or section totals changed. + +## RFL_Database +- 0x81330AA0: @3211 -> @3220. Target and compiler extabindex +0 both relocate to RFLiInitDatabase; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AA8: @3216 -> @3225. Target and compiler extabindex +0 both relocate to bootloadCheckCRCCb_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AB0: @3230 -> @3239. Target and compiler extabindex +0 both relocate to bootloadDBcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AB8: @3248 -> @3257. Target and compiler extabindex +0 both relocate to bootloadDBopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AC0: @3259 -> @3268. Target and compiler extabindex +0 both relocate to RFLiBootLoadDatabaseAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AC8: @3262 -> @3271. Target and compiler extabindex +0 both relocate to saveDBcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AD0: @3274 -> @3283. Target and compiler extabindex +0 both relocate to saveDBopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AD8: @3282 -> @3291. Target and compiler extabindex +0 both relocate to saveDBmultiopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AE0: @3291 -> @3300. Target and compiler extabindex +0 both relocate to createCRCForSaveDBCallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AE8: @3306 -> @3315. Target and compiler extabindex +0 both relocate to RFLiSaveDatabaseAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AF0: @3321 -> @3330. Target and compiler extabindex +0 both relocate to RFLiSaveOpenedDatabaseAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330AF8: @3360 -> @3369. Target and compiler extabindex +0 both relocate to RFLiGetCharData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B00: @3438 -> @3447. Target and compiler extabindex +0 both relocate to convertRaw2InfoCore_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B08: @3443 -> @3452. Target and compiler extabindex +0 both relocate to RFLiConvertRaw2Info; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B10: @3448 -> @3457. Target and compiler extabindex +0 both relocate to RFLiConvertHRaw2Info; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B18: @3453 -> @3462. Target and compiler extabindex +0 both relocate to convertInfo2RawCore_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B20: @3458 -> @3467. Target and compiler extabindex +0 both relocate to RFLiConvertInfo2Raw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B28: @3463 -> @3472. Target and compiler extabindex +0 both relocate to RFLiConvertInfo2HRaw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B30: @3468 -> @3477. Target and compiler extabindex +0 both relocate to RFLiConvertHRaw2Raw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B38: @3473 -> @3482. Target and compiler extabindex +0 both relocate to RFLiConvertRaw2HRaw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B40: @3480 -> @3489. Target and compiler extabindex +0 both relocate to RFLiGetCharRawData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B48: @3488 -> @3497. Target and compiler extabindex +0 both relocate to RFLiGetCharInfo; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B50: @3571 -> @3580. Target and compiler extabindex +0 both relocate to RFLIsAvailableOfficialData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B58: @3590 -> @3599. Target and compiler extabindex +0 both relocate to RFLGetAvailableOfficialDataNum; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B60: @3617 -> @3626. Target and compiler extabindex +0 both relocate to createLowAddr_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B68: @3725 -> @3734. Target and compiler extabindex +0 both relocate to RFLiIsMyHomeID; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B70: @3821 -> @3830. Target and compiler extabindex +0 both relocate to RFLSearchOfficialData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B78: @3839 -> @3848. Target and compiler extabindex +0 both relocate to RFLiIsValidName2; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B80: @3853 -> @3862. Target and compiler extabindex +0 both relocate to RFLiGetIsolation; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B88: @3877 -> @3886. Target and compiler extabindex +0 both relocate to RFLiGetHiddenHeader; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B90: @3885 -> @3894. Target and compiler extabindex +0 both relocate to RFLiDBIsLoaded; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330B98: @3908 -> @3917. Target and compiler extabindex +0 both relocate to alarmCreateCb_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330BA0: @3913 -> @3922. Target and compiler extabindex +0 both relocate to RFLiCreateHeaderCRCAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330BA8: @3931 -> @3940. Target and compiler extabindex +0 both relocate to alarmCheckCb_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. + +## RFL_HiddenDatabase +- 0x81330A18: @2533 -> @2543. Target and compiler extabindex +0 both relocate to RFLiInitHiddenDatabase; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A20: @2542 -> @2552. Target and compiler extabindex +0 both relocate to loadclosecallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A28: @2549 -> @2559. Target and compiler extabindex +0 both relocate to loadcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A30: @2556 -> @2566. Target and compiler extabindex +0 both relocate to loadopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A38: @2565 -> @2575. Target and compiler extabindex +0 both relocate to RFLiLoadHiddenDataAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A40: @2583 -> @2593. Target and compiler extabindex +0 both relocate to RFLiLoadCachedHiddenData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A48: @2684 -> @2694. Target and compiler extabindex +0 both relocate to overwrite_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A50: @2694 -> @2704. Target and compiler extabindex +0 both relocate to create_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A58: @2710 -> @2720. Target and compiler extabindex +0 both relocate to writeCallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A60: @2733 -> @2743. Target and compiler extabindex +0 both relocate to writeData_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A68: @2738 -> @2748. Target and compiler extabindex +0 both relocate to openForWriteCallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A70: @2776 -> @2786. Target and compiler extabindex +0 both relocate to RFLiOneDataToHiddenDB; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A78: @2804 -> @2814. Target and compiler extabindex +0 both relocate to RFLiCountupHiddenDataNum; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A80: @2810 -> @2820. Target and compiler extabindex +0 both relocate to RFLiGetHiddenNext; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A88: @2816 -> @2826. Target and compiler extabindex +0 both relocate to RFLiGetHiddenPrev; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A90: @2830 -> @2840. Target and compiler extabindex +0 both relocate to RFLiIsValidHiddenData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330A98: @2880 -> @2890. Target and compiler extabindex +0 both relocate to RFLiIsCachedHDB; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. + +## RFL_NANDLoader +- 0x81330818: @2144 -> @2374. Target and compiler extabindex +0 both relocate to RFLiInitLoader; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330820: @2193 -> @2423. Target and compiler extabindex +0 both relocate to parseOnmemoryRes_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330828: @2205 -> @2435. Target and compiler extabindex +0 both relocate to loadResRead2ndcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330830: @2217 -> @2447. Target and compiler extabindex +0 both relocate to loadResRead1stcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330838: @2223 -> @2453. Target and compiler extabindex +0 both relocate to loadResGetlengthcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330840: @2229 -> @2459. Target and compiler extabindex +0 both relocate to loadResOpencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330848: @2237 -> @2467. Target and compiler extabindex +0 both relocate to RFLiLoadResourceHeaderAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330850: @2254 -> @2484. Target and compiler extabindex +0 both relocate to getNANDFile_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330858: @2272 -> @2502. Target and compiler extabindex +0 both relocate to RFLiGetTexSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330860: @2298 -> @2528. Target and compiler extabindex +0 both relocate to RFLiLoadTexture; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330868: @2316 -> @2546. Target and compiler extabindex +0 both relocate to RFLiGetShpTexSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330870: @2342 -> @2572. Target and compiler extabindex +0 both relocate to RFLiLoadShpTexture; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330878: @2360 -> @2590. Target and compiler extabindex +0 both relocate to RFLiGetShapeSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330880: @2386 -> @2616. Target and compiler extabindex +0 both relocate to RFLiLoadShape; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330888: @2400 -> @2630. Target and compiler extabindex +0 both relocate to RFLFreeCachedResource; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330890: @2405 -> @2635. Target and compiler extabindex +0 both relocate to RFLIsResourceCached; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. + +## RFL_Model +- 0x81330970: @2787 -> @2794. Target and compiler extabindex +0 both relocate to RFLGetModelBufferSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330978: @2836 -> @2843. Target and compiler extabindex +0 both relocate to RFLiInitCharModel; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330980: @2841 -> @2848. Target and compiler extabindex +0 both relocate to RFLSetMtx; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330988: @2871 -> @2878. Target and compiler extabindex +0 both relocate to RFLLoadDrawSetting; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330990: @2883 -> @2890. Target and compiler extabindex +0 both relocate to RFLLoadMaterialSetting; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x81330998: @2921 -> @2928. Target and compiler extabindex +0 both relocate to RFLDrawOpaCore; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x813309A0: @2936 -> @2943. Target and compiler extabindex +0 both relocate to RFLDrawXluCore; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x813309A8: @2956 -> @2959. Target and compiler extabindex +0 both relocate to RFLiInitCharModelRes; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x813309B0: @3092 -> @3095. Target and compiler extabindex +0 both relocate to RFLiInitShapeRes; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. +- 0x813309B8: @3105 -> @3108. Target and compiler extabindex +0 both relocate to RFLiInitTexRes; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged. + +## Instruction verification + +- RFL_Database: instruction-exact 38/39; no source or text symbols changed, so no instruction count dropped. +- Existing raw instruction difference: RFLiIsSameID; objdiff 100%, not altered by data-symbol changes. +- RFL_HiddenDatabase: instruction-exact 20/20; no source or text symbols changed, so no instruction count dropped. +- RFL_NANDLoader: instruction-exact 17/17; no source or text symbols changed, so no instruction count dropped. +- RFL_Model: instruction-exact 15/15; no source or text symbols changed, so no instruction count dropped. + +## Final full gate + +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLFaceLib/src/RFL_Database] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_Database] objdiff: code 7508/7508 data 688/688 functions 39/39 fuzzy 100.0000 linked code 7508 +[libs/RVLFaceLib/src/RFL_Database] instruction-exact functions: 38/39 +[libs/RVLFaceLib/src/RFL_Database] section .sdata2 size 8 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section .text size 7508 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section extab size 272 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section extabindex size 408 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] baseline: code 7508/7508 data 280 functions 39 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_HiddenDatabase] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_HiddenDatabase] objdiff: code 3356/3356 data 340/340 functions 20/20 fuzzy 100.0000 linked code 3356 +[libs/RVLFaceLib/src/RFL_HiddenDatabase] instruction-exact functions: 20/20 +[libs/RVLFaceLib/src/RFL_HiddenDatabase] section .text size 3356 match 100.0 +[libs/RVLFaceLib/src/RFL_HiddenDatabase] section extab size 136 match 100.0 +[libs/RVLFaceLib/src/RFL_HiddenDatabase] section extabindex size 204 match 100.0 +[libs/RVLFaceLib/src/RFL_HiddenDatabase] baseline: code 3356/3356 data 136 functions 20 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_NANDLoader] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_NANDLoader] objdiff: code 4140/4140 data 504/504 functions 17/17 fuzzy 100.0000 linked code 4140 +[libs/RVLFaceLib/src/RFL_NANDLoader] instruction-exact functions: 17/17 +[libs/RVLFaceLib/src/RFL_NANDLoader] section .data size 32 match 100.0 +[libs/RVLFaceLib/src/RFL_NANDLoader] section .rodata size 144 match 100.0 +[libs/RVLFaceLib/src/RFL_NANDLoader] section .sdata size 8 match 100.0 +[libs/RVLFaceLib/src/RFL_NANDLoader] section .text size 4140 match 100.0 +[libs/RVLFaceLib/src/RFL_NANDLoader] section extab size 128 match 100.0 +[libs/RVLFaceLib/src/RFL_NANDLoader] section extabindex size 192 match 100.0 +[libs/RVLFaceLib/src/RFL_NANDLoader] baseline: code 4140/4140 data 312 functions 17 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_Model] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_Model] objdiff: code 7788/7788 data 552/552 functions 15/15 fuzzy 100.0000 linked code 7788 +[libs/RVLFaceLib/src/RFL_Model] instruction-exact functions: 15/15 +[libs/RVLFaceLib/src/RFL_Model] section .data size 16 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .rodata size 272 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .sdata2 size 64 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .text size 7788 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section extab size 80 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section extabindex size 120 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] baseline: code 7788/7788 data 432 functions 15 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.64782 -> 97.69824 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` + +All non-text sections reach 100%; matched_data equals total_data in all four units. No remaining non-matching functions in objdiff. No code changes, no section total or symbol extent changes. + +Existing RFLiIsSameID raw ctxdiff: 101/101 instructions, diffs 2 at indices 1 and 8. Both are bne displacement differences caused by its different object placement. Objdiff remains 100%. Source and code-symbol configuration are unchanged; data-lane instruction-exact count stays 38/39. -- 2.49.1 From 9702056bdab1fac1d05a18079ebe86e7ed7a611f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:04:52 +0000 Subject: [PATCH 11/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6edc64e4..ac696f3b 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.07% | 97.73% | +| 99.46% | 88.57% | 63.07% | 97.78% | units 926/1027 complete, functions 12264/12563 matched. -- 2.49.1 From 6fa90e5574109420d12f8666f81f1f0196c51769 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:06:03 -0500 Subject: [PATCH 12/63] Link the verified native AXFXChorusExp unit (#746) --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index b4a287e8..6da16397 100644 --- a/configure.py +++ b/configure.py @@ -1453,7 +1453,7 @@ config.libs = [ Object(Matching, "axfx/AXFXReverbStd.c"), Object(Matching, "axfx/AXFXReverbStdExp.c"), Object(Matching, "axfx/AXFXChorus.c"), - Object(NonMatching, "axfx/AXFXChorusExp.c"), + Object(Matching, "axfx/AXFXChorusExp.c"), Object(Matching, "axfx/AXFXLfoTable.c"), Object(Matching, "axfx/AXFXSrcCoef.c"), Object(Matching, "axfx/AXFXHooks.c"), -- 2.49.1 From 5b7fb6f968e09892a0be10ee7ea650ded836a0bc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:07:04 +0000 Subject: [PATCH 13/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac696f3b..bfde1c37 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.07% | 97.78% | +| 99.46% | 88.57% | 63.16% | 97.78% | -units 926/1027 complete, functions 12264/12563 matched. +units 927/1027 complete, functions 12264/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From d5cd4ca777677117f1e02f1124ffb375178c391d Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:10:19 -0500 Subject: [PATCH 14/63] data(RFL MiddleDatabase/MakeTex/DataUtility/NWC24 data 100%) (data-d10b) (worker 65d1c6de) (#747) --- config/43U/symbols.txt | 108 +++++----- tools/decomp-assist/data-d10.attempts.md | 253 +++++++++++++++++++++++ 2 files changed, 307 insertions(+), 54 deletions(-) create mode 100644 tools/decomp-assist/data-d10.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index b6f7d2ee..94775211 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -609,14 +609,14 @@ _bss_init_info = .init:0x813303E8; // type:object size:0x20 scope:global data:4b @2959 = extab:0x813309A8; // type:object size:0x8 scope:local hidden @3095 = extab:0x813309B0; // type:object size:0x8 scope:local hidden @3108 = extab:0x813309B8; // type:object size:0x8 scope:local hidden -@2834 = extab:0x813309C0; // type:object size:0x8 scope:local hidden -@3102 = extab:0x813309C8; // type:object size:0x8 scope:local hidden -@3139 = extab:0x813309D0; // type:object size:0x8 scope:local hidden -@3153 = extab:0x813309D8; // type:object size:0x8 scope:local hidden -@3179 = extab:0x813309E0; // type:object size:0x8 scope:local hidden -@3227 = extab:0x813309E8; // type:object size:0x8 scope:local hidden -@3251 = extab:0x813309F0; // type:object size:0x8 scope:local hidden -@3267 = extab:0x813309F8; // type:object size:0x8 scope:local hidden +@2842 = extab:0x813309C0; // type:object size:0x8 scope:local hidden +@3110 = extab:0x813309C8; // type:object size:0x8 scope:local hidden +@3147 = extab:0x813309D0; // type:object size:0x8 scope:local hidden +@3161 = extab:0x813309D8; // type:object size:0x8 scope:local hidden +@3187 = extab:0x813309E0; // type:object size:0x8 scope:local hidden +@3235 = extab:0x813309E8; // type:object size:0x8 scope:local hidden +@3259 = extab:0x813309F0; // type:object size:0x8 scope:local hidden +@3275 = extab:0x813309F8; // type:object size:0x8 scope:local hidden @2307 = extab:0x81330A00; // type:object size:0x8 scope:local hidden @2313 = extab:0x81330A08; // type:object size:0x8 scope:local hidden @2385 = extab:0x81330A10; // type:object size:0x8 scope:local hidden @@ -673,29 +673,29 @@ _bss_init_info = .init:0x813303E8; // type:object size:0x20 scope:global data:4b @3940 = extab:0x81330BA8; // type:object size:0x8 scope:local hidden @2610 = extab:0x81330BB0; // type:object size:0x8 scope:local hidden @2871 = extab:0x81330BB8; // type:object size:0x8 scope:local hidden -@2294 = extab:0x81330BC0; // type:object size:0x8 scope:local hidden -@2312 = extab:0x81330BC8; // type:object size:0x8 scope:local hidden -@2327 = extab:0x81330BD0; // type:object size:0x8 scope:local hidden -@2347 = extab:0x81330BD8; // type:object size:0x8 scope:local hidden -@2373 = extab:0x81330BE0; // type:object size:0x8 scope:local hidden -@2434 = extab:0x81330BE8; // type:object size:0x8 scope:local hidden -@2447 = extab:0x81330BF0; // type:object size:0x8 scope:local hidden -@2464 = extab:0x81330BF8; // type:object size:0x8 scope:local hidden -@2482 = extab:0x81330C00; // type:object size:0x8 scope:local hidden -@2497 = extab:0x81330C08; // type:object size:0x8 scope:local hidden +@2302 = extab:0x81330BC0; // type:object size:0x8 scope:local hidden +@2320 = extab:0x81330BC8; // type:object size:0x8 scope:local hidden +@2335 = extab:0x81330BD0; // type:object size:0x8 scope:local hidden +@2355 = extab:0x81330BD8; // type:object size:0x8 scope:local hidden +@2381 = extab:0x81330BE0; // type:object size:0x8 scope:local hidden +@2442 = extab:0x81330BE8; // type:object size:0x8 scope:local hidden +@2455 = extab:0x81330BF0; // type:object size:0x8 scope:local hidden +@2472 = extab:0x81330BF8; // type:object size:0x8 scope:local hidden +@2490 = extab:0x81330C00; // type:object size:0x8 scope:local hidden +@2505 = extab:0x81330C08; // type:object size:0x8 scope:local hidden @1897 = extab:0x81330C10; // type:object size:0x8 scope:local hidden @2046 = extab:0x81330C18; // type:object size:0x8 scope:local hidden @2058 = extab:0x81330C20; // type:object size:0x8 scope:local hidden @2114 = extab:0x81330C28; // type:object size:0x8 scope:local hidden -@2175 = extab:0x81330C30; // type:object size:0x8 scope:local hidden -@2237 = extab:0x81330C38; // type:object size:0x8 scope:local hidden -@2281 = extab:0x81330C40; // type:object size:0x8 scope:local hidden -@2298 = extab:0x81330C48; // type:object size:0x8 scope:local hidden -@2304 = extab:0x81330C50; // type:object size:0x8 scope:local hidden -@1981 = extab:0x81330C58; // type:object size:0x8 scope:local hidden -@1990 = extab:0x81330C60; // type:object size:0x8 scope:local hidden -@2044 = extab:0x81330C68; // type:object size:0x8 scope:local hidden -@2129 = extab:0x81330C70; // type:object size:0x8 scope:local hidden +@2183 = extab:0x81330C30; // type:object size:0x8 scope:local hidden +@2245 = extab:0x81330C38; // type:object size:0x8 scope:local hidden +@2289 = extab:0x81330C40; // type:object size:0x8 scope:local hidden +@2306 = extab:0x81330C48; // type:object size:0x8 scope:local hidden +@2312 = extab:0x81330C50; // type:object size:0x8 scope:local hidden +@1986 = extab:0x81330C58; // type:object size:0x8 scope:local hidden +@1995 = extab:0x81330C60; // type:object size:0x8 scope:local hidden +@2049 = extab:0x81330C68; // type:object size:0x8 scope:local hidden +@2134 = extab:0x81330C70; // type:object size:0x8 scope:local hidden @1710 = extab:0x81330C78; // type:object size:0x8 scope:local hidden @1717 = extab:0x81330C80; // type:object size:0x8 scope:local hidden @1721 = extab:0x81330C88; // type:object size:0x8 scope:local hidden @@ -976,14 +976,14 @@ _bss_init_info = .init:0x813303E8; // type:object size:0x20 scope:global data:4b @2957 = extabindex:0x8133180C; // type:object size:0xC scope:local hidden @3093 = extabindex:0x81331818; // type:object size:0xC scope:local hidden @3106 = extabindex:0x81331824; // type:object size:0xC scope:local hidden -@2835 = extabindex:0x81331830; // type:object size:0xC scope:local hidden -@3103 = extabindex:0x8133183C; // type:object size:0xC scope:local hidden -@3140 = extabindex:0x81331848; // type:object size:0xC scope:local hidden -@3154 = extabindex:0x81331854; // type:object size:0xC scope:local hidden -@3180 = extabindex:0x81331860; // type:object size:0xC scope:local hidden -@3228 = extabindex:0x8133186C; // type:object size:0xC scope:local hidden -@3252 = extabindex:0x81331878; // type:object size:0xC scope:local hidden -@3268 = extabindex:0x81331884; // type:object size:0xC scope:local hidden +@2843 = extabindex:0x81331830; // type:object size:0xC scope:local hidden +@3111 = extabindex:0x8133183C; // type:object size:0xC scope:local hidden +@3148 = extabindex:0x81331848; // type:object size:0xC scope:local hidden +@3162 = extabindex:0x81331854; // type:object size:0xC scope:local hidden +@3188 = extabindex:0x81331860; // type:object size:0xC scope:local hidden +@3236 = extabindex:0x8133186C; // type:object size:0xC scope:local hidden +@3260 = extabindex:0x81331878; // type:object size:0xC scope:local hidden +@3276 = extabindex:0x81331884; // type:object size:0xC scope:local hidden @2308 = extabindex:0x81331890; // type:object size:0xC scope:local hidden @2314 = extabindex:0x8133189C; // type:object size:0xC scope:local hidden @2386 = extabindex:0x813318A8; // type:object size:0xC scope:local hidden @@ -1040,29 +1040,29 @@ _bss_init_info = .init:0x813303E8; // type:object size:0x20 scope:global data:4b @3932 = extabindex:0x81331B0C; // type:object size:0xC scope:local hidden @2611 = extabindex:0x81331B18; // type:object size:0xC scope:local hidden @2872 = extabindex:0x81331B24; // type:object size:0xC scope:local hidden -@2295 = extabindex:0x81331B30; // type:object size:0xC scope:local hidden -@2313 = extabindex:0x81331B3C; // type:object size:0xC scope:local hidden -@2328 = extabindex:0x81331B48; // type:object size:0xC scope:local hidden -@2348 = extabindex:0x81331B54; // type:object size:0xC scope:local hidden -@2374 = extabindex:0x81331B60; // type:object size:0xC scope:local hidden -@2435 = extabindex:0x81331B6C; // type:object size:0xC scope:local hidden -@2448 = extabindex:0x81331B78; // type:object size:0xC scope:local hidden -@2465 = extabindex:0x81331B84; // type:object size:0xC scope:local hidden -@2483 = extabindex:0x81331B90; // type:object size:0xC scope:local hidden -@2498 = extabindex:0x81331B9C; // type:object size:0xC scope:local hidden +@2303 = extabindex:0x81331B30; // type:object size:0xC scope:local hidden +@2321 = extabindex:0x81331B3C; // type:object size:0xC scope:local hidden +@2336 = extabindex:0x81331B48; // type:object size:0xC scope:local hidden +@2356 = extabindex:0x81331B54; // type:object size:0xC scope:local hidden +@2382 = extabindex:0x81331B60; // type:object size:0xC scope:local hidden +@2443 = extabindex:0x81331B6C; // type:object size:0xC scope:local hidden +@2456 = extabindex:0x81331B78; // type:object size:0xC scope:local hidden +@2473 = extabindex:0x81331B84; // type:object size:0xC scope:local hidden +@2491 = extabindex:0x81331B90; // type:object size:0xC scope:local hidden +@2506 = extabindex:0x81331B9C; // type:object size:0xC scope:local hidden @1898 = extabindex:0x81331BA8; // type:object size:0xC scope:local hidden @2047 = extabindex:0x81331BB4; // type:object size:0xC scope:local hidden @2059 = extabindex:0x81331BC0; // type:object size:0xC scope:local hidden @2115 = extabindex:0x81331BCC; // type:object size:0xC scope:local hidden -@2176 = extabindex:0x81331BD8; // type:object size:0xC scope:local hidden -@2238 = extabindex:0x81331BE4; // type:object size:0xC scope:local hidden -@2282 = extabindex:0x81331BF0; // type:object size:0xC scope:local hidden -@2299 = extabindex:0x81331BFC; // type:object size:0xC scope:local hidden -@2305 = extabindex:0x81331C08; // type:object size:0xC scope:local hidden -@1982 = extabindex:0x81331C14; // type:object size:0xC scope:local hidden -@1991 = extabindex:0x81331C20; // type:object size:0xC scope:local hidden -@2045 = extabindex:0x81331C2C; // type:object size:0xC scope:local hidden -@2130 = extabindex:0x81331C38; // type:object size:0xC scope:local hidden +@2184 = extabindex:0x81331BD8; // type:object size:0xC scope:local hidden +@2246 = extabindex:0x81331BE4; // type:object size:0xC scope:local hidden +@2290 = extabindex:0x81331BF0; // type:object size:0xC scope:local hidden +@2307 = extabindex:0x81331BFC; // type:object size:0xC scope:local hidden +@2313 = extabindex:0x81331C08; // type:object size:0xC scope:local hidden +@1987 = extabindex:0x81331C14; // type:object size:0xC scope:local hidden +@1996 = extabindex:0x81331C20; // type:object size:0xC scope:local hidden +@2050 = extabindex:0x81331C2C; // type:object size:0xC scope:local hidden +@2135 = extabindex:0x81331C38; // type:object size:0xC scope:local hidden @1711 = extabindex:0x81331C44; // type:object size:0xC scope:local hidden @1718 = extabindex:0x81331C50; // type:object size:0xC scope:local hidden @1722 = extabindex:0x81331C5C; // type:object size:0xC scope:local hidden diff --git a/tools/decomp-assist/data-d10.attempts.md b/tools/decomp-assist/data-d10.attempts.md new file mode 100644 index 00000000..0764b917 --- /dev/null +++ b/tools/decomp-assist/data-d10.attempts.md @@ -0,0 +1,253 @@ +# data-d10 rework + +The prior candidate was rejected for edits outside assigned ownership. This replacement starts from origin/main and resolves symbols by section plus absolute address within splits.txt ranges, never by generated name alone. + +## RFL_MiddleDatabase + +POOL IDENTICAL up to 0 (mine=0 base=0) +Ownership: extab 0x81330bc0-0x81330c10, extabindex 0x81331b30-0x81331ba8 +- extab:0x81330bc0 @2294 -> @2302; 8 bytes unchanged; index relocation identifies updateHDBcallback_, paired length 488, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b30 @2295 -> @2303; 12 bytes unchanged; index relocation identifies updateHDBcallback_, paired length 488, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330bc8 @2312 -> @2320; 8 bytes unchanged; index relocation identifies loadHiddenDataSync_, paired length 372, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b3c @2313 -> @2321; 12 bytes unchanged; index relocation identifies loadHiddenDataSync_, paired length 372, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330bd0 @2327 -> @2335; 8 bytes unchanged; index relocation identifies updateHiddenOld_, paired length 340, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b48 @2328 -> @2336; 12 bytes unchanged; index relocation identifies updateHiddenOld_, paired length 340, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330bd8 @2347 -> @2355; 8 bytes unchanged; index relocation identifies loadHiddenRandomSync_, paired length 316, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b54 @2348 -> @2356; 12 bytes unchanged; index relocation identifies loadHiddenRandomSync_, paired length 316, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330be0 @2373 -> @2381; 8 bytes unchanged; index relocation identifies updateHDBRandcallback_, paired length 404, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b60 @2374 -> @2382; 12 bytes unchanged; index relocation identifies updateHDBRandcallback_, paired length 404, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330be8 @2434 -> @2442; 8 bytes unchanged; index relocation identifies updateHiddenRandom_, paired length 732, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b6c @2435 -> @2443; 12 bytes unchanged; index relocation identifies updateHiddenRandom_, paired length 732, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330bf0 @2447 -> @2455; 8 bytes unchanged; index relocation identifies updateRandom_, paired length 248, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b78 @2448 -> @2456; 12 bytes unchanged; index relocation identifies updateRandom_, paired length 248, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330bf8 @2464 -> @2472; 8 bytes unchanged; index relocation identifies RFLUpdateMiddleDBAsync, paired length 92, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b84 @2465 -> @2473; 12 bytes unchanged; index relocation identifies RFLUpdateMiddleDBAsync, paired length 92, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330c00 @2482 -> @2490; 8 bytes unchanged; index relocation identifies RFLiUpdateMiddleDBAsync, paired length 312, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b90 @2483 -> @2491; 12 bytes unchanged; index relocation identifies RFLiUpdateMiddleDBAsync, paired length 312, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +- extab:0x81330c08 @2497 -> @2505; 8 bytes unchanged; index relocation identifies RFLiGetCharInfoMiddleDB, paired length 156, unwind bytes identical; owned range 0x81330bc0-0x81330c10. +- extabindex:0x81331b9c @2498 -> @2506; 12 bytes unchanged; index relocation identifies RFLiGetCharInfoMiddleDB, paired length 156, unwind bytes identical; owned range 0x81331b30-0x81331ba8. +## RFL_MakeTex + +POOL IDENTICAL up to 0 (mine=0 base=0) +Ownership: extab 0x813309c0-0x81330a00, extabindex 0x81331830-0x81331890, .rodata 0x8161d358-0x8161d418, .sdata2 0x816950b0-0x81695170 +- extab:0x813309c0 @2834 -> @2842; 8 bytes unchanged; index relocation identifies RFLiSetupCopyTex, paired length 304, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x81331830 @2835 -> @2843; 12 bytes unchanged; index relocation identifies RFLiSetupCopyTex, paired length 304, unwind bytes identical; owned range 0x81331830-0x81331890. +- extab:0x813309c8 @3102 -> @3110; 8 bytes unchanged; index relocation identifies RFLiMakeTexture, paired length 4232, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x8133183c @3103 -> @3111; 12 bytes unchanged; index relocation identifies RFLiMakeTexture, paired length 4232, unwind bytes identical; owned range 0x81331830-0x81331890. +- extab:0x813309d0 @3139 -> @3147; 8 bytes unchanged; index relocation identifies RFLiSetup2DCameraAndParam, paired length 472, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x81331848 @3140 -> @3148; 12 bytes unchanged; index relocation identifies RFLiSetup2DCameraAndParam, paired length 472, unwind bytes identical; owned range 0x81331830-0x81331890. +- extab:0x813309d8 @3153 -> @3161; 8 bytes unchanged; index relocation identifies RFLiSetTev4Mouth, paired length 584, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x81331854 @3154 -> @3162; 12 bytes unchanged; index relocation identifies RFLiSetTev4Mouth, paired length 584, unwind bytes identical; owned range 0x81331830-0x81331890. +- extab:0x813309e0 @3179 -> @3187; 8 bytes unchanged; index relocation identifies RFLiSetTev4Eye, paired length 688, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x81331860 @3180 -> @3188; 12 bytes unchanged; index relocation identifies RFLiSetTev4Eye, paired length 688, unwind bytes identical; owned range 0x81331830-0x81331890. +- extab:0x813309e8 @3227 -> @3235; 8 bytes unchanged; index relocation identifies RFLiSetFaceParts, paired length 1288, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x8133186c @3228 -> @3236; 12 bytes unchanged; index relocation identifies RFLiSetFaceParts, paired length 1288, unwind bytes identical; owned range 0x81331830-0x81331890. +- extab:0x813309f0 @3251 -> @3259; 8 bytes unchanged; index relocation identifies RFLiCapture, paired length 2156, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x81331878 @3252 -> @3260; 12 bytes unchanged; index relocation identifies RFLiCapture, paired length 2156, unwind bytes identical; owned range 0x81331830-0x81331890. +- extab:0x813309f8 @3267 -> @3275; 8 bytes unchanged; index relocation identifies RFLiDrawQuad, paired length 504, unwind bytes identical; owned range 0x813309c0-0x81330a00. +- extabindex:0x81331884 @3268 -> @3276; 12 bytes unchanged; index relocation identifies RFLiDrawQuad, paired length 504, unwind bytes identical; owned range 0x81331830-0x81331890. +## RFL_DataUtility + +POOL IDENTICAL up to 0 (mine=0 base=0) +Ownership: extab 0x81330c30-0x81330c58, extabindex 0x81331bd8-0x81331c14, .rodata 0x8161e070-0x8161e080 +- extab:0x81330c30 @2175 -> @2183; 8 bytes unchanged; index relocation identifies RFLiCheckValidInfo, paired length 1124, unwind bytes identical; owned range 0x81330c30-0x81330c58. +- extabindex:0x81331bd8 @2176 -> @2184; 12 bytes unchanged; index relocation identifies RFLiCheckValidInfo, paired length 1124, unwind bytes identical; owned range 0x81331bd8-0x81331c14. +- extab:0x81330c38 @2237 -> @2245; 8 bytes unchanged; index relocation identifies RFLiIsValidOnNAND, paired length 44, unwind bytes identical; owned range 0x81330c30-0x81330c58. +- extabindex:0x81331be4 @2238 -> @2246; 12 bytes unchanged; index relocation identifies RFLiIsValidOnNAND, paired length 44, unwind bytes identical; owned range 0x81331bd8-0x81331c14. +- extab:0x81330c40 @2281 -> @2289; 8 bytes unchanged; index relocation identifies RFLiPickupCharInfo, paired length 320, unwind bytes identical; owned range 0x81330c30-0x81330c58. +- extabindex:0x81331bf0 @2282 -> @2290; 12 bytes unchanged; index relocation identifies RFLiPickupCharInfo, paired length 320, unwind bytes identical; owned range 0x81331bd8-0x81331c14. +- extab:0x81330c48 @2298 -> @2306; 8 bytes unchanged; index relocation identifies copyChar2Additional_, paired length 400, unwind bytes identical; owned range 0x81330c30-0x81330c58. +- extabindex:0x81331bfc @2299 -> @2307; 12 bytes unchanged; index relocation identifies copyChar2Additional_, paired length 400, unwind bytes identical; owned range 0x81331bd8-0x81331c14. +- extab:0x81330c50 @2304 -> @2312; 8 bytes unchanged; index relocation identifies RFLGetAdditionalInfo, paired length 84, unwind bytes identical; owned range 0x81330c30-0x81330c58. +- extabindex:0x81331c08 @2305 -> @2313; 12 bytes unchanged; index relocation identifies RFLGetAdditionalInfo, paired length 84, unwind bytes identical; owned range 0x81331bd8-0x81331c14. +## RFL_NWC24 + +POOL IDENTICAL up to 15 (mine=15 base=15) +Ownership: extab 0x81330c58-0x81330c78, extabindex 0x81331c14-0x81331c44, .data 0x8166f0f0-0x8166f2c8 +- extab:0x81330c58 @1981 -> @1986; 8 bytes unchanged; index relocation identifies RFLiNWC24Msg2CharData, paired length 120, unwind bytes identical; owned range 0x81330c58-0x81330c78. +- extabindex:0x81331c14 @1982 -> @1987; 12 bytes unchanged; index relocation identifies RFLiNWC24Msg2CharData, paired length 120, unwind bytes identical; owned range 0x81331c14-0x81331c44. +- extab:0x81330c60 @1990 -> @1995; 8 bytes unchanged; index relocation identifies RFLiSetOfficial2NWC24Msg, paired length 216, unwind bytes identical; owned range 0x81330c58-0x81330c78. +- extabindex:0x81331c20 @1991 -> @1996; 12 bytes unchanged; index relocation identifies RFLiSetOfficial2NWC24Msg, paired length 216, unwind bytes identical; owned range 0x81331c14-0x81331c44. +- extab:0x81330c68 @2044 -> @2049; 8 bytes unchanged; index relocation identifies RFLiNWC24Msg2HiddenAsync, paired length 392, unwind bytes identical; owned range 0x81330c58-0x81330c78. +- extabindex:0x81331c2c @2045 -> @2050; 12 bytes unchanged; index relocation identifies RFLiNWC24Msg2HiddenAsync, paired length 392, unwind bytes identical; owned range 0x81331c14-0x81331c44. +- extab:0x81330c70 @2129 -> @2134; 8 bytes unchanged; index relocation identifies makeNWC24MsgforExchange_, paired length 2256, unwind bytes identical; owned range 0x81330c58-0x81330c78. +- extabindex:0x81331c38 @2130 -> @2135; 12 bytes unchanged; index relocation identifies makeNWC24MsgforExchange_, paired length 2256, unwind bytes identical; owned range 0x81331c14-0x81331c44. + +Ownership audit: 54 name-only changes; every changed absolute address is inside exactly one assigned unit range. Addresses, extents, attributes and section totals unchanged. RFL_Model, RFL_Database, RFL_HiddenDatabase and RFL_NANDLoader have no configuration edits. + +## Baseline gate + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLFaceLib/src/RFL_MiddleDatabase] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_MiddleDatabase] objdiff: code 3648/3648 data 80/200 functions 13/13 fuzzy 100.0000 linked code 3648 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] instruction-exact functions: 13/13 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] section .text size 3648 match 100.0 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extab size 80 match 100.0 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extabindex size 120 match 95.5 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] baseline: code 3648/3648 data 80 functions 13 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_MakeTex] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_MakeTex] objdiff: code 10396/10396 data 448/544 functions 10/10 fuzzy 100.0000 linked code 10396 +[libs/RVLFaceLib/src/RFL_MakeTex] instruction-exact functions: 10/10 +[libs/RVLFaceLib/src/RFL_MakeTex] section .rodata size 192 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section .sdata2 size 192 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section .text size 10396 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section extab size 64 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section extabindex size 96 match 86.25 +[libs/RVLFaceLib/src/RFL_MakeTex] baseline: code 10396/10396 data 448 functions 10 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_DataUtility] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_DataUtility] objdiff: code 2244/2244 data 56/116 functions 6/6 fuzzy 100.0000 linked code 2244 +[libs/RVLFaceLib/src/RFL_DataUtility] instruction-exact functions: 6/6 +[libs/RVLFaceLib/src/RFL_DataUtility] section .rodata size 16 match 100.0 +[libs/RVLFaceLib/src/RFL_DataUtility] section .text size 2244 match 100.0 +[libs/RVLFaceLib/src/RFL_DataUtility] section extab size 40 match 100.0 +[libs/RVLFaceLib/src/RFL_DataUtility] section extabindex size 60 match 86.0 +[libs/RVLFaceLib/src/RFL_DataUtility] baseline: code 2244/2244 data 56 functions 6 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_NWC24] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_NWC24] objdiff: code 2992/2992 data 504/552 functions 5/5 fuzzy 100.0000 linked code 2992 +[libs/RVLFaceLib/src/RFL_NWC24] instruction-exact functions: 5/5 +[libs/RVLFaceLib/src/RFL_NWC24] section .data size 472 match 100.0 +[libs/RVLFaceLib/src/RFL_NWC24] section .text size 2992 match 100.0 +[libs/RVLFaceLib/src/RFL_NWC24] section extab size 32 match 100.0 +[libs/RVLFaceLib/src/RFL_NWC24] section extabindex size 48 match 92.5 +[libs/RVLFaceLib/src/RFL_NWC24] baseline: code 2992/2992 data 504 functions 5 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_Model] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_Model] objdiff: code 7788/7788 data 552/552 functions 15/15 fuzzy 100.0000 linked code 7788 +[libs/RVLFaceLib/src/RFL_Model] instruction-exact functions: 15/15 +[libs/RVLFaceLib/src/RFL_Model] section .data size 16 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .rodata size 272 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .sdata2 size 64 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .text size 7788 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section extab size 80 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section extabindex size 120 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] baseline: code 7788/7788 data 552 functions 15 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_Database] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_Database] objdiff: code 7508/7508 data 688/688 functions 39/39 fuzzy 100.0000 linked code 7508 +[libs/RVLFaceLib/src/RFL_Database] instruction-exact functions: 38/39 +[libs/RVLFaceLib/src/RFL_Database] section .sdata2 size 8 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section .text size 7508 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section extab size 272 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section extabindex size 408 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] baseline: code 7508/7508 data 688 functions 39 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.78074 -> 97.78074 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Independent address audit passed on the actual git diff. The RFL_Model range beginning 0x81330970 and all neighboring unowned ranges retain origin/main names exactly. MakeTex was checked before edits and still had 448/544 matched data, so its eight unwind entries required pairing. + +## Fresh report and instruction audit + +All 1023 unowned units have identical measures, function results and section results before/after, including Model, Database, HiddenDatabase and NANDLoader. All owned sections are 100%. +- RFL_MiddleDatabase updateHDBcallback_: src 0x1e8 base 0x1e8 insns 122/122; diffs 0: [] +- RFL_MiddleDatabase loadHiddenDataSync_: src 0x174 base 0x174 insns 93/93; diffs 0: [] +- RFL_MiddleDatabase updateHiddenOld_: src 0x154 base 0x154 insns 85/85; diffs 0: [] +- RFL_MiddleDatabase loadHiddenRandomSync_: src 0x13c base 0x13c insns 79/79; diffs 0: [] +- RFL_MiddleDatabase updateHDBRandcallback_: src 0x194 base 0x194 insns 101/101; diffs 0: [] +- RFL_MiddleDatabase updateHiddenRandom_: src 0x2dc base 0x2dc insns 183/183; diffs 0: [] +- RFL_MiddleDatabase updateRandom_: src 0xf8 base 0xf8 insns 62/62; diffs 0: [] +- RFL_MiddleDatabase RFLGetMiddleDBBufferSize: src 0x8 base 0x8 insns 2/2; diffs 0: [] +- RFL_MiddleDatabase RFLInitMiddleDB: src 0xac base 0xac insns 43/43; diffs 0: [] +- RFL_MiddleDatabase RFLUpdateMiddleDBAsync: src 0x5c base 0x5c insns 23/23; diffs 0: [] +- RFL_MiddleDatabase RFLiUpdateMiddleDBAsync: src 0x138 base 0x138 insns 78/78; diffs 0: [] +- RFL_MiddleDatabase RFLGetMiddleDBStoredSize: src 0x8 base 0x8 insns 2/2; diffs 0: [] +- RFL_MiddleDatabase RFLiGetCharInfoMiddleDB: src 0x9c base 0x9c insns 39/39; diffs 0: [] +libs/RVLFaceLib/src/RFL_MiddleDatabase: data 80 -> 200/200; instruction-exact 13 -> 13; code 3648 -> 3648/3648. +- RFL_MakeTex RFLiSetupCopyTex: src 0x130 base 0x130 insns 76/76; diffs 0: [] +- RFL_MakeTex RFLiMakeTexture: src 0x1088 base 0x1088 insns 1058/1058; diffs 0: [] +- RFL_MakeTex RFLiSetup2DCameraAndParam: src 0x1d8 base 0x1d8 insns 118/118; diffs 0: [] +- RFL_MakeTex RFLiSetTev4Mouth: src 0x248 base 0x248 insns 146/146; diffs 0: [] +- RFL_MakeTex RFLiSetTev4Eye: src 0x2b0 base 0x2b0 insns 172/172; diffs 0: [] +- RFL_MakeTex RFLiSetFaceParts: src 0x508 base 0x508 insns 322/322; diffs 0: [] +- RFL_MakeTex RFLiCapture: src 0x86c base 0x86c insns 539/539; diffs 0: [] +- RFL_MakeTex RFLiDrawQuad: src 0x1f8 base 0x1f8 insns 126/126; diffs 0: [] +- RFL_MakeTex RFLiGetMaxMaskRsl: src 0x68 base 0x68 insns 26/26; diffs 0: [] +- RFL_MakeTex RFLiGetMaskBufSize: src 0x40 base 0x40 insns 16/16; diffs 0: [] +libs/RVLFaceLib/src/RFL_MakeTex: data 448 -> 544/544; instruction-exact 10 -> 10; code 10396 -> 10396/10396. +- RFL_DataUtility copyChar2Additional_: src 0x190 base 0x190 insns 100/100; diffs 0: [] +- RFL_DataUtility RFLiCheckValidInfo: src 0x464 base 0x464 insns 281/281; diffs 0: [] +- RFL_DataUtility RFLiIsValidOnNAND: src 0x2c base 0x2c insns 11/11; diffs 0: [] +- RFL_DataUtility RFLiIsSameFaceCore: src 0x110 base 0x110 insns 68/68; diffs 0: [] +- RFL_DataUtility RFLiPickupCharInfo: src 0x140 base 0x140 insns 80/80; diffs 0: [] +- RFL_DataUtility RFLGetAdditionalInfo: src 0x54 base 0x54 insns 21/21; diffs 0: [] +libs/RVLFaceLib/src/RFL_DataUtility: data 56 -> 116/116; instruction-exact 6 -> 6; code 2244 -> 2244/2244. +- RFL_NWC24 RFLiNWC24Msg2CharData: src 0x78 base 0x78 insns 30/30; diffs 0: [] +- RFL_NWC24 RFLiSetOfficial2NWC24Msg: src 0xd8 base 0xd8 insns 54/54; diffs 0: [] +- RFL_NWC24 RFLiNWC24Msg2HiddenAsync: src 0x188 base 0x188 insns 98/98; diffs 0: [] +- RFL_NWC24 makeNWC24MsgforExchange_: src 0x8d0 base 0x8d0 insns 564/564; diffs 0: [] +- RFL_NWC24 RFLiMakeNWC24MsgforExchange: src 0x8 base 0x8 insns 2/2; diffs 0: [] +libs/RVLFaceLib/src/RFL_NWC24: data 504 -> 552/552; instruction-exact 5 -> 5; code 2992 -> 2992/2992. + +Remaining owned target nonmatching functions: none. Uncertain mappings: none. + +## Final full gate + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLFaceLib/src/RFL_MiddleDatabase] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_MiddleDatabase] objdiff: code 3648/3648 data 200/200 functions 13/13 fuzzy 100.0000 linked code 3648 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] instruction-exact functions: 13/13 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] section .text size 3648 match 100.0 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extab size 80 match 100.0 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extabindex size 120 match 100.0 +[libs/RVLFaceLib/src/RFL_MiddleDatabase] baseline: code 3648/3648 data 80 functions 13 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_MakeTex] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_MakeTex] objdiff: code 10396/10396 data 544/544 functions 10/10 fuzzy 100.0000 linked code 10396 +[libs/RVLFaceLib/src/RFL_MakeTex] instruction-exact functions: 10/10 +[libs/RVLFaceLib/src/RFL_MakeTex] section .rodata size 192 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section .sdata2 size 192 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section .text size 10396 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section extab size 64 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] section extabindex size 96 match 100.0 +[libs/RVLFaceLib/src/RFL_MakeTex] baseline: code 10396/10396 data 448 functions 10 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_DataUtility] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_DataUtility] objdiff: code 2244/2244 data 116/116 functions 6/6 fuzzy 100.0000 linked code 2244 +[libs/RVLFaceLib/src/RFL_DataUtility] instruction-exact functions: 6/6 +[libs/RVLFaceLib/src/RFL_DataUtility] section .rodata size 16 match 100.0 +[libs/RVLFaceLib/src/RFL_DataUtility] section .text size 2244 match 100.0 +[libs/RVLFaceLib/src/RFL_DataUtility] section extab size 40 match 100.0 +[libs/RVLFaceLib/src/RFL_DataUtility] section extabindex size 60 match 100.0 +[libs/RVLFaceLib/src/RFL_DataUtility] baseline: code 2244/2244 data 56 functions 6 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_NWC24] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_NWC24] objdiff: code 2992/2992 data 552/552 functions 5/5 fuzzy 100.0000 linked code 2992 +[libs/RVLFaceLib/src/RFL_NWC24] instruction-exact functions: 5/5 +[libs/RVLFaceLib/src/RFL_NWC24] section .data size 472 match 100.0 +[libs/RVLFaceLib/src/RFL_NWC24] section .text size 2992 match 100.0 +[libs/RVLFaceLib/src/RFL_NWC24] section extab size 32 match 100.0 +[libs/RVLFaceLib/src/RFL_NWC24] section extabindex size 48 match 100.0 +[libs/RVLFaceLib/src/RFL_NWC24] baseline: code 2992/2992 data 504 functions 5 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_Model] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_Model] objdiff: code 7788/7788 data 552/552 functions 15/15 fuzzy 100.0000 linked code 7788 +[libs/RVLFaceLib/src/RFL_Model] instruction-exact functions: 15/15 +[libs/RVLFaceLib/src/RFL_Model] section .data size 16 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .rodata size 272 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .sdata2 size 64 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section .text size 7788 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section extab size 80 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] section extabindex size 120 match 100.0 +[libs/RVLFaceLib/src/RFL_Model] baseline: code 7788/7788 data 552 functions 15 fuzzy 100.0000 +[libs/RVLFaceLib/src/RFL_Database] pool: IDENTICAL +[libs/RVLFaceLib/src/RFL_Database] objdiff: code 7508/7508 data 688/688 functions 39/39 fuzzy 100.0000 linked code 7508 +[libs/RVLFaceLib/src/RFL_Database] instruction-exact functions: 38/39 +[libs/RVLFaceLib/src/RFL_Database] section .sdata2 size 8 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section .text size 7508 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section extab size 272 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] section extabindex size 408 match 100.0 +[libs/RVLFaceLib/src/RFL_Database] baseline: code 7508/7508 data 688 functions 39 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.78074 -> 97.79842 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` -- 2.49.1 From b941fc6268ba8f5251a22447cb1a3e94ee3354e0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:11:34 +0000 Subject: [PATCH 15/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bfde1c37..4dd89c59 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.16% | 97.78% | +| 99.46% | 88.57% | 63.16% | 97.80% | units 927/1027 complete, functions 12264/12563 matched. -- 2.49.1 From b145a74db18a09e8c789bcdcf605c65cb005484c Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:13:29 -0500 Subject: [PATCH 16/63] data(tiHwKeyboard, sha1, nettime data 100%) (data-d12) (worker b6f9650f) (#748) --- config/43U/symbols.txt | 9 +- tools/decomp-assist/data-d12.attempts.md | 100 +++++++++++++++++++++++ 2 files changed, 104 insertions(+), 5 deletions(-) create mode 100644 tools/decomp-assist/data-d12.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 94775211..0d043320 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -116,7 +116,7 @@ lbl_810C8820 = .bss:0x810C8820; // type:object size:0xC data:4byte sDisappearMemoState__Q39textinput6extend4memo = .bss:0x810C882C; // type:object size:0xC data:4byte lbl_810C8838 = .bss:0x810C8838; // type:object size:0xC data:4byte sInstance__Q39textinput5input10HKBManager = .bss:0x810C8844; // type:object size:0xFC -lbl_810C8940 = .bss:0x810C8940; // type:object size:0x10 +@6371 = .bss:0x810C8940; // type:object size:0xC scope:local CDB_VFF_FILE_NAME = .bss:0x810C8950; // type:object size:0x40 CDB_WIIID_DAT_PATH = .bss:0x810C8990; // type:object size:0x40 s_fssdWork = .bss:0x810C89D0; // type:object size:0x14 scope:local data:4byte @@ -14051,7 +14051,7 @@ Zi8PunctTable = .rodata:0x81618130; // type:object size:0x50 lbl_81618180 = .rodata:0x81618180; // type:object size:0x10 crc16_table = .rodata:0x81618190; // type:object size:0x20 scope:local data:2byte crc32_table = .rodata:0x816181B0; // type:object size:0x40 scope:local data:4byte -sha1template$2339 = .rodata:0x816181F0; // type:object size:0x20 scope:local +interface$143 = .rodata:0x816181F0; // type:object size:0x1C scope:local AESiSubShiftTable = .rodata:0x81618210; // type:object size:0x100 scope:local AESiInvSubShiftTable = .rodata:0x81618310; // type:object size:0x100 scope:local AESiRoundKeyRcon0 = .rodata:0x81618410; // type:object size:0x1E scope:local @@ -20744,7 +20744,7 @@ scGuiLineColorB = .sdata2:0x81694EEE; // type:object size:0x1 data:byte scGuiLineColorA = .sdata2:0x81694EEF; // type:object size:0x1 data:byte scGuiHalfF = .sdata2:0x81694EF0; // type:object size:0x4 align:4 data:float lbl_81694EF8 = .sdata2:0x81694EF8; // type:object size:0x8 data:4byte -lbl_81694F00 = .sdata2:0x81694F00; // type:object size:0x4 data:4byte +lbl_81694F00 = .sdata2:0x81694F00; // type:object size:0x8 data:4byte lbl_81694F08 = .sdata2:0x81694F08; // type:object size:0x8 align:8 data:double lbl_81694F10 = .sdata2:0x81694F10; // type:object size:0x8 align:8 data:double lbl_81694F18 = .sdata2:0x81694F18; // type:object size:0x8 align:8 data:double @@ -23577,8 +23577,7 @@ lbl_81698D98 = .sbss:0x81698D98; // type:object size:0x4 data:4byte lbl_81698DA0 = .sbss:0x81698DA0; // type:object size:0x4 data:4byte ncdInitialized = .sbss:0x81698DA8; // type:object size:0x4 scope:local data:4byte ncdCommonBuffer = .sbss:0x81698DAC; // type:object size:0x4 scope:local data:4byte -lbl_81698DB0 = .sbss:0x81698DB0; // type:object size:0x4 data:4byte -lbl_81698DB4 = .sbss:0x81698DB4; // type:object size:0x4 data:4byte +whenCached$1061 = .sbss:0x81698DB0; // type:object size:0x8 scope:local data:4byte nhttpRegistered = .sbss:0x81698DB8; // type:object size:0x4 scope:local data:4byte l_nhttp_connection_list_p = .sbss:0x81698DC0; // type:object size:0x4 scope:local data:4byte sysInfo_p = .sbss:0x81698DC4; // type:object size:0x4 scope:local data:4byte diff --git a/tools/decomp-assist/data-d12.attempts.md b/tools/decomp-assist/data-d12.attempts.md new file mode 100644 index 00000000..e7f978ee --- /dev/null +++ b/tools/decomp-assist/data-d12.attempts.md @@ -0,0 +1,100 @@ +# Data lane d12 + +Baseline HEAD and fetched origin/main: 9702056b. Owned sources and symbols unchanged on origin/main. Initial quick full gate PASS, zero regressions, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. + +| Unit | Exact functions | Code bytes | Data bytes | +| --- | --- | --- | --- | +| src/keyboard/tiHwKeyboard | 10/10 | 4596/4596 | 472/504 | +| libs/RevoEX/src/net/sha1 | 5/5 | 1496/1496 | 16/48 | +| libs/RevoEX/src/net/nettime | 1/1 | 228/228 | 0/8 | + +All three pool_diff checks are identical, zero strings. No non-exact functions exist; code experiments are unnecessary for this data assignment. + +## tiHwKeyboard + +- .bss extent/name mismatch: target lbl_810C8940 has 16 bytes, source @6371 has 12; init .text+0x5a/0x66 and updateShift +0x102/0x10e pass its address as r5 to __register_global_object for LayoutGather singleton. Runtime NMWException.h defines DestructorChain as three 32-bit pointers, hence 12 bytes; trailing four bytes are alignment. Rename to compiler-emitted @6371 and set size 12, preserving section range and bytes. +- .sdata2 extent mismatch: target lbl_81694F00 has four bytes but source @6555 has eight, both contain command 8 followed by zero. updateTriggerKey .text+0x8d8 and source +0x9a0 load the first word for NavigationCommand {u32 command, u32 modifiers}; sizeof is 8, and dynamic modifiers overwrite the second initializer word. Correct extent to eight within existing section, retaining address and all bytes. +- .rodata/.data/.sdata already 100%; no renames needed for automatically paired anonymous symbols or controlKeys. Additional weak singleton storage is linker-deduplicated and ignored. + +## sha1 + +- .rodata extent/name mismatch: NETGetSHA1Interface target .text+0x232/+0x236 and source same offsets load sha1template$2339/interface$143; its data relocations +0x10/+0x14/+0x18 point to NETSHA1Init/NETSHA1Update/NETSHA1GetDigest. DigestInterface contains four u32 fields and three function pointers, sizeof 28; target extent 32 absorbed four trailing alignment bytes. Rename to interface$143 and set size 28, preserving address, section range and bytes. +- .sbss2/.sdata2 already 100%; padlead$2309/endMarker$120 and padalign$2310/zeroBytes$121 are automatically paired by matching code references and need no renames. + +## nettime + +- .sbss split/name mismatch: target .text+0xc/+0x38/+0x78 uses lbl_81698DB0, +0x18/+0x2c/+0x74 uses lbl_81698DB4; source relocations at identical offsets use whenCached$1061 with addends 0 and 4 respectively. The two words hold the s64 __OSGetSystemTime return in r3:r4 and are compared/added as one s64. Combine into the real eight-byte whenCached$1061 at unchanged 0x81698DB0; remove artificial second-word symbol at 0x81698DB4, preserving section range and bytes. + +## Verification after corrections + +Quick gate PASS: tiHwKeyboard data 504/504, sha1 data 48/48, nettime data 8/8. All owned non-text sections report 100%; exact functions remain 10/10, 5/5, 1/1. Code bytes remain 4596/4596, 1496/1496, 228/228. Zero global regressions, forbidden patterns, or readability warnings. Only symbol metadata changed; no source edits or split edits. + +## Final clean full gate + +Command: `python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/keyboard/tiHwKeyboard libs/RevoEX/src/net/sha1 libs/RevoEX/src/net/nettime` + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/keyboard/tiHwKeyboard] pool: IDENTICAL +[src/keyboard/tiHwKeyboard] objdiff: code 4596/4596 data 504/504 functions 10/10 fuzzy 100.0000 linked code 4596 +[src/keyboard/tiHwKeyboard] instruction-exact functions: 10/10 +[src/keyboard/tiHwKeyboard] section .bss size 16 match 100.0 +[src/keyboard/tiHwKeyboard] section .data size 288 match 100.0 +[src/keyboard/tiHwKeyboard] section .rodata size 176 match 100.0 +[src/keyboard/tiHwKeyboard] section .sdata size 8 match 100.0 +[src/keyboard/tiHwKeyboard] section .sdata2 size 16 match 100.0 +[src/keyboard/tiHwKeyboard] section .text size 4596 match 100.0 +[src/keyboard/tiHwKeyboard] baseline: code 4596/4596 data 472 functions 10 fuzzy 100.0000 +[libs/RevoEX/src/net/sha1] pool: IDENTICAL +[libs/RevoEX/src/net/sha1] objdiff: code 1496/1496 data 48/48 functions 5/5 fuzzy 100.0000 linked code 1496 +[libs/RevoEX/src/net/sha1] instruction-exact functions: 5/5 +[libs/RevoEX/src/net/sha1] section .rodata size 32 match 100.0 +[libs/RevoEX/src/net/sha1] section .sbss2 size 8 match 100.0 +[libs/RevoEX/src/net/sha1] section .sdata2 size 8 match 100.0 +[libs/RevoEX/src/net/sha1] section .text size 1496 match 100.0 +[libs/RevoEX/src/net/sha1] baseline: code 1496/1496 data 16 functions 5 fuzzy 100.0000 +[libs/RevoEX/src/net/nettime] pool: IDENTICAL +[libs/RevoEX/src/net/nettime] objdiff: code 228/228 data 8/8 functions 1/1 fuzzy 100.0000 linked code 228 +[libs/RevoEX/src/net/nettime] instruction-exact functions: 1/1 +[libs/RevoEX/src/net/nettime] section .sbss size 8 match 100.0 +[libs/RevoEX/src/net/nettime] section .text size 228 match 100.0 +[libs/RevoEX/src/net/nettime] baseline: code 228/228 data None functions 1 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.78074 -> 97.78467 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` + +All target sections retain their original sizes and bytes. splits.txt unchanged. Every owned symbol remains within its assigned split; only proven object extents and names changed. The two nettime word labels were consolidated into the s64 object rather than dropping data. + +## Fresh pool and instruction checks after clean build + +```text +src/keyboard/tiHwKeyboard: POOL IDENTICAL up to 0 (mine=0 base=0) +__ct__Q49textinput8keyboard5hwkey10HWKeyboardFPQ29textinput7Manager: src 0x28 base 0x28 insns 10/10; diffs 0: [] +init__Q49textinput8keyboard5hwkey10HWKeyboardFv: src 0xa0 base 0xa0 insns 40/40; diffs 0: [] +updateShift__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x184 base 0x184 insns 97/97; diffs 0: [] +updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x1e8 base 0x1e8 insns 122/122; diffs 0: [] +updateRepeatKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x2d0 base 0x2d0 insns 180/180; diffs 0: [] +updateTriggerKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x654 base 0x654 insns 405/405; diffs 0: [] +updateTappingShift___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x244 base 0x244 insns 145/145; diffs 0: [] +updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFiffUlUlUlPv: src 0x14 base 0x14 insns 5/5; diffs 0: [] +convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw: src 0x20c base 0x20c insns 131/131; diffs 0: [] +setLanguage__Q49textinput8keyboard5hwkey10HWKeyboardFQ29textinput11DestinationQ29textinput8Language: src 0x38 base 0x38 insns 14/14; diffs 0: [] +libs/RevoEX/src/net/sha1: POOL IDENTICAL up to 0 (mine=0 base=0) +NETSHA1Init: src 0x50 base 0x50 insns 20/20; diffs 0: [] +NETSHA1Update: src 0xb4 base 0xb4 insns 45/45; diffs 0: [] +NETSHA1GetDigest: src 0x12c base 0x12c insns 75/75; diffs 0: [] +NETGetSHA1Interface: src 0xc base 0xc insns 3/3; diffs 0: [] +NETSHA1iProcessBlock: src 0x39c base 0x39c insns 231/231; diffs 0: [] +libs/RevoEX/src/net/nettime: POOL IDENTICAL up to 0 (mine=0 base=0) +NETGetUniversalCalendar: src 0xe4 base 0xe4 insns 57/57; diffs 0: [] +``` + +Open-function audit: none in any assigned unit. All sixteen functions were already instruction-exact before this data lane and remain exact. No source experiments, new code, or changes to configure.py were needed. All owned non-text sections reach 100% and matched_data equals total_data in each unit. No unresolved uncertainty. -- 2.49.1 From b3c23834a7c4ac362ff85018a5fedd90a97befe2 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:14:46 -0500 Subject: [PATCH 17/63] data(iplAddressEdit, iplAddress, WPADHIDParser, iplBoardObject data 100%) (data-d7b) (worker 364037a2) (#749) --- config/43U/symbols.txt | 297 ++-- tools/decomp-assist/data-d7.attempts.md | 1944 +++++++++++++++++++++++ 2 files changed, 2147 insertions(+), 94 deletions(-) create mode 100644 tools/decomp-assist/data-d7.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 0d043320..c74c4b99 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -13837,10 +13837,10 @@ lbl_8160F254 = .rodata:0x8160F254; // type:object size:0x120 data:4byte scAnmTable__10homebutton = .rodata:0x8160F378; // type:object size:0x60 scope:local data:4byte scGroupAnmTable__10homebutton = .rodata:0x8160F3D8; // type:object size:0x250 scope:local data:4byte __DVDErrorMessage = .rodata:0x8160F628; // type:object size:0x28 -lbl_8160F650 = .rodata:0x8160F650; // type:object size:0x16 data:2byte +@18225 = .rodata:0x8160F650; // type:object size:0x14 scope:local data:2byte specials$18760 = .rodata:0x8160F668; // type:object size:0xB data:byte @19145 = .rodata:0x8160F673; // type:object size:0xC data:byte -lbl_8160F67F = .rodata:0x8160F67F; // type:object size:0xD data:byte +@19550 = .rodata:0x8160F67F; // type:object size:0xC scope:local data:string lbl_8160F690 = .rodata:0x8160F690; // type:object size:0x18 data:2byte scAnmFrame__Q23ipl5scene = .rodata:0x8160F6A8; // type:object size:0x20 scope:local scNumber__Q23ipl5scene = .rodata:0x8160F6C8; // type:object size:0x14 scope:local data:2byte @@ -15373,53 +15373,92 @@ jumptable_81646E78 = .data:0x81646E78; // type:object size:0x30 scope:local @1484 = .data:0x816472F9; // type:object size:0xC7 scope:local data:string @1485 = .data:0x816473C0; // type:object size:0x9B scope:local data:string @1486 = .data:0x8164745B; // type:object size:0xD7 scope:local data:string -lbl_81647538 = .data:0x81647538; // type:object size:0xC data:string -lbl_81647544 = .data:0x81647544; // type:object size:0xC data:string -lbl_81647550 = .data:0x81647550; // type:object size:0xC data:string -lbl_8164755C = .data:0x8164755C; // type:object size:0xC data:string -lbl_81647568 = .data:0x81647568; // type:object size:0xC data:string -lbl_81647574 = .data:0x81647574; // type:object size:0x14 -lbl_81647588 = .data:0x81647588; // type:object size:0xC data:string -lbl_81647594 = .data:0x81647594; // type:object size:0xC data:string -lbl_816475A0 = .data:0x816475A0; // type:object size:0xC data:string -lbl_816475AC = .data:0x816475AC; // type:object size:0xC data:string -lbl_816475B8 = .data:0x816475B8; // type:object size:0x20 -lbl_816475D8 = .data:0x816475D8; // type:object size:0xC data:string -lbl_816475E4 = .data:0x816475E4; // type:object size:0xC data:string -lbl_816475F0 = .data:0x816475F0; // type:object size:0xC data:string -lbl_816475FC = .data:0x816475FC; // type:object size:0xC data:string -lbl_81647608 = .data:0x81647608; // type:object size:0xC data:string -lbl_81647614 = .data:0x81647614; // type:object size:0x14 -lbl_81647628 = .data:0x81647628; // type:object size:0xF data:string -lbl_81647637 = .data:0x81647637; // type:object size:0xF data:string -lbl_81647646 = .data:0x81647646; // type:object size:0xF data:string -lbl_81647655 = .data:0x81647655; // type:object size:0xF data:string -lbl_81647664 = .data:0x81647664; // type:object size:0x10 -lbl_81647674 = .data:0x81647674; // type:object size:0xA data:string -lbl_8164767E = .data:0x8164767E; // type:object size:0xA data:string -lbl_81647688 = .data:0x81647688; // type:object size:0xA data:string -lbl_81647692 = .data:0x81647692; // type:object size:0xA data:string -lbl_8164769C = .data:0x8164769C; // type:object size:0x20 -lbl_816476BC = .data:0x816476BC; // type:object size:0xC data:string -lbl_816476C8 = .data:0x816476C8; // type:object size:0xC data:string -lbl_816476D4 = .data:0x816476D4; // type:object size:0xC data:string -lbl_816476E0 = .data:0x816476E0; // type:object size:0xC data:string -lbl_816476EC = .data:0x816476EC; // type:object size:0x296 -lbl_81647982 = .data:0x81647982; // type:object size:0xC data:string -lbl_8164798E = .data:0x8164798E; // type:object size:0x14 data:string -jumptable_816479A4 = .data:0x816479A4; // type:object size:0x68 scope:local -lbl_81647A4D = .data:0x81647A4D; // type:object size:0x14 data:string -lbl_81647A61 = .data:0x81647A61; // type:object size:0xC data:string -lbl_81647A6D = .data:0x81647A6D; // type:object size:0xB data:string -lbl_81647A78 = .data:0x81647A78; // type:object size:0x4B -lbl_81647AC3 = .data:0x81647AC3; // type:object size:0x2F -lbl_81647AF2 = .data:0x81647AF2; // type:object size:0xC data:wstring -lbl_81647AFE = .data:0x81647AFE; // type:object size:0x1C -lbl_81647B1A = .data:0x81647B1A; // type:object size:0xC data:string -lbl_81647B26 = .data:0x81647B26; // type:object size:0x22 data:wstring -lbl_81647B48 = .data:0x81647B48; // type:object size:0x10 data:wstring +@17080 = .data:0x81647538; // type:object size:0xC scope:local data:string +@17081 = .data:0x81647544; // type:object size:0xC scope:local data:string +@17082 = .data:0x81647550; // type:object size:0xC scope:local data:string +@17083 = .data:0x8164755C; // type:object size:0xC scope:local data:string +@17084 = .data:0x81647568; // type:object size:0xC scope:local data:string +sTextNameB__Q23ipl5scene = .data:0x81647574; // type:object size:0x14 +@17085 = .data:0x81647588; // type:object size:0xC scope:local data:string +@17086 = .data:0x81647594; // type:object size:0xC scope:local data:string +@17087 = .data:0x816475A0; // type:object size:0xC scope:local data:string +@17088 = .data:0x816475AC; // type:object size:0xC scope:local data:string +@17089 = .data:0x816475B8; // type:object size:0xC scope:local data:string +sTextNameC__Q23ipl5scene = .data:0x816475C4; // type:object size:0x14 scope:local +@17090 = .data:0x816475D8; // type:object size:0xC scope:local data:string +@17091 = .data:0x816475E4; // type:object size:0xC scope:local data:string +@17092 = .data:0x816475F0; // type:object size:0xC scope:local data:string +@17093 = .data:0x816475FC; // type:object size:0xC scope:local data:string +@17094 = .data:0x81647608; // type:object size:0xC scope:local data:string +sButtonName__Q23ipl5scene = .data:0x81647614; // type:object size:0x14 +@17095 = .data:0x81647628; // type:object size:0xF scope:local data:string +@17096 = .data:0x81647637; // type:object size:0xF scope:local data:string +@17097 = .data:0x81647646; // type:object size:0xF scope:local data:string +@17098 = .data:0x81647655; // type:object size:0xF scope:local data:string +sButtonSpaceName__Q23ipl5scene = .data:0x81647664; // type:object size:0x10 +@17099 = .data:0x81647674; // type:object size:0xA scope:local data:string +@17100 = .data:0x8164767E; // type:object size:0xA scope:local data:string +@17101 = .data:0x81647688; // type:object size:0xA scope:local data:string +@17102 = .data:0x81647692; // type:object size:0xA scope:local data:string +@17103 = .data:0x8164769C; // type:object size:0xA scope:local data:string +sNameGroup__Q23ipl5scene = .data:0x816476A8; // type:object size:0x14 scope:local +@17104 = .data:0x816476BC; // type:object size:0xC scope:local data:string +@17105 = .data:0x816476C8; // type:object size:0xC scope:local data:string +@17106 = .data:0x816476D4; // type:object size:0xC scope:local data:string +@17107 = .data:0x816476E0; // type:object size:0xC scope:local data:string +@17108 = .data:0x816476EC; // type:object size:0xC scope:local data:string +sNameCGroup__Q23ipl5scene = .data:0x816476F8; // type:object size:0x14 scope:local +@23133 = .data:0x8164770C; // type:object size:0x12 scope:local data:string +@23134 = .data:0x8164771E; // type:object size:0x1E scope:local data:string +@23135 = .data:0x8164773C; // type:object size:0xB scope:local data:string +@23136 = .data:0x81647747; // type:object size:0x1F scope:local data:string +@23137 = .data:0x81647766; // type:object size:0x1F scope:local data:string +@23138 = .data:0x81647785; // type:object size:0x20 scope:local data:string +@23139 = .data:0x816477A5; // type:object size:0x1D scope:local data:string +@23140 = .data:0x816477C2; // type:object size:0xD scope:local data:string +@23141 = .data:0x816477CF; // type:object size:0x1D scope:local data:string +@23142 = .data:0x816477EC; // type:object size:0xB scope:local data:string +@23143 = .data:0x816477F7; // type:object size:0x1A scope:local data:string +@23144 = .data:0x81647811; // type:object size:0x1B scope:local data:string +@23145 = .data:0x8164782C; // type:object size:0x1B scope:local data:string +@23146 = .data:0x81647847; // type:object size:0x1E scope:local data:string +@23147 = .data:0x81647865; // type:object size:0x1F scope:local data:string +@23148 = .data:0x81647884; // type:object size:0x1F scope:local data:string +@23149 = .data:0x816478A3; // type:object size:0x1D scope:local data:string +@23150 = .data:0x816478C0; // type:object size:0x10 scope:local data:string +@23151 = .data:0x816478D0; // type:object size:0x16 scope:local data:string +@23152 = .data:0x816478E6; // type:object size:0xB scope:local data:string +@23153 = .data:0x816478F1; // type:object size:0x15 scope:local data:string +@23154 = .data:0x81647906; // type:object size:0x12 scope:local data:string +@23155 = .data:0x81647918; // type:object size:0x1B scope:local data:string +@23157 = .data:0x81647933; // type:object size:0x1C scope:local data:string +@23158 = .data:0x8164794F; // type:object size:0x9 scope:local data:string +@23159 = .data:0x81647958; // type:object size:0xB scope:local data:string +@23160 = .data:0x81647963; // type:object size:0xB scope:local data:string +@23161 = .data:0x8164796E; // type:object size:0xA scope:local data:string +@23162 = .data:0x81647978; // type:object size:0xA scope:local data:string +@23163 = .data:0x81647982; // type:object size:0xC scope:local data:string +@23235 = .data:0x8164798E; // type:object size:0x14 scope:local data:string +@23237 = .data:0x816479A4; // type:object size:0x68 scope:local +@23490 = .data:0x81647A4D; // type:object size:0x14 scope:local data:string +@23528 = .data:0x81647A61; // type:object size:0xC scope:local data:string +@23743 = .data:0x81647A6D; // type:object size:0xB scope:local data:string +@24121 = .data:0x81647A78; // type:object size:0xF scope:local data:string +@24186 = .data:0x81647A87; // type:object size:0x9 scope:local data:string +@24187 = .data:0x81647A90; // type:object size:0x10 scope:local data:string +@24229 = .data:0x81647AA0; // type:object size:0xF scope:local data:string +@24230 = .data:0x81647AAF; // type:object size:0x14 scope:local data:string +@24249 = .data:0x81647AC3; // type:object size:0x16 scope:local data:string +@24469 = .data:0x81647AD9; // type:object size:0xF scope:local data:string +@24525 = .data:0x81647AE8; // type:object size:0x9 scope:local data:string +@24589 = .data:0x81647AF2; // type:object size:0xC scope:local data:wstring +@24711 = .data:0x81647AFE; // type:object size:0xC scope:local data:string +@24712 = .data:0x81647B0A; // type:object size:0x10 scope:local data:string +@24759 = .data:0x81647B1A; // type:object size:0xC scope:local data:string +@24941 = .data:0x81647B26; // type:object size:0x22 scope:local data:wstring +@24942 = .data:0x81647B48; // type:object size:0x10 scope:local data:wstring __vt__Q33ipl5scene12AddressEvent = .data:0x81647B58; // type:object size:0x18 -__vt__Q33ipl5scene7Address = .data:0x81647B70; // type:object size:0x120 +__vt__Q33ipl5scene7Address = .data:0x81647B70; // type:object size:0x88 @10137 = .data:0x81647C90; // type:object size:0x9 scope:local data:string ...data.0 = .data:0x81647C90; // type:label scope:local @10138 = .data:0x81647C99; // type:object size:0x9 scope:local data:string @@ -15470,7 +15509,29 @@ sButtonPaneNames = .data:0x81647F24; // type:object size:0x14 @24227 = .data:0x816480E2; // type:object size:0xD data:string @24228 = .data:0x816480EF; // type:object size:0xE data:string @24229 = .data:0x816480FD; // type:object size:0xE data:string -@24231 = .data:0x8164810B; // type:object size:0x1F5 +@24231 = .data:0x8164810B; // type:object size:0xA scope:local data:string +@24804 = .data:0x81648115; // type:object size:0x12 scope:local data:string +@24805 = .data:0x81648127; // type:object size:0x1C scope:local data:string +@24806 = .data:0x81648143; // type:object size:0x11 scope:local data:string +@24807 = .data:0x81648154; // type:object size:0x22 scope:local data:string +@24808 = .data:0x81648176; // type:object size:0xE scope:local data:string +@24809 = .data:0x81648184; // type:object size:0x1E scope:local data:string +@24810 = .data:0x816481A2; // type:object size:0xA scope:local data:string +@24811 = .data:0x816481AC; // type:object size:0x1D scope:local data:string +@24812 = .data:0x816481C9; // type:object size:0x9 scope:local data:string +@24813 = .data:0x816481D2; // type:object size:0x1D scope:local data:string +@24815 = .data:0x816481EF; // type:object size:0x23 scope:local data:string +@24816 = .data:0x81648212; // type:object size:0x1F scope:local data:string +@24817 = .data:0x81648231; // type:object size:0x1E scope:local data:string +@24818 = .data:0x8164824F; // type:object size:0x1E scope:local data:string +@24819 = .data:0x8164826D; // type:object size:0x1C scope:local data:string +@24820 = .data:0x81648289; // type:object size:0x10 scope:local data:string +@24821 = .data:0x81648299; // type:object size:0x16 scope:local data:string +@24822 = .data:0x816482AF; // type:object size:0xB scope:local data:string +@24823 = .data:0x816482BA; // type:object size:0x15 scope:local data:string +@24824 = .data:0x816482CF; // type:object size:0xE scope:local data:string +@24825 = .data:0x816482DD; // type:object size:0x9 scope:local data:string +@24829 = .data:0x816482E6; // type:object size:0x19 scope:local data:string @25188 = .data:0x81648300; // type:object size:0xC0 scope:local @25187 = .data:0x816483C0; // type:object size:0xC0 scope:local @25711 = .data:0x8164848D; // type:object size:0x16 data:string @@ -15481,7 +15542,7 @@ sButtonPaneNames = .data:0x81647F24; // type:object size:0x14 @26030 = .data:0x816485EC; // type:object size:0xC data:wstring __vt__Q33ipl5scene17AddressInputEvent = .data:0x816485F8; // type:object size:0x18 __vt__Q33ipl5scene16AddressEditEvent = .data:0x81648610; // type:object size:0x18 -__vt__Q33ipl5scene11AddressEdit = .data:0x81648628; // type:object size:0x120 +__vt__Q33ipl5scene11AddressEdit = .data:0x81648628; // type:object size:0x88 @10131 = .data:0x81648748; // type:object size:0x17 scope:local data:string @10132 = .data:0x8164875F; // type:object size:0x17 scope:local data:string __vt__Q33ipl5scene8BackMenu = .data:0x81648778; // type:object size:0x68 @@ -15505,45 +15566,49 @@ lbl_8164B118 = .data:0x8164B118; // type:object size:0x30 lbl_8164B148 = .data:0x8164B148; // type:object size:0xA data:string lbl_8164B152 = .data:0x8164B152; // type:object size:0xF data:string __vt__Q33ipl5scene5Board = .data:0x8164B164; // type:object size:0x84 -lbl_8164B1E8 = .data:0x8164B1E8; // type:object size:0x10 data:string -lbl_8164B1F8 = .data:0x8164B1F8; // type:object size:0x1C data:string -lbl_8164B214 = .data:0x8164B214; // type:object size:0x18 data:string -lbl_8164B22C = .data:0x8164B22C; // type:object size:0x19 data:string -lbl_8164B245 = .data:0x8164B245; // type:object size:0x1D data:string -lbl_8164B262 = .data:0x8164B262; // type:object size:0x1B data:string -lbl_8164B27D = .data:0x8164B27D; // type:object size:0x19 data:string -lbl_8164B296 = .data:0x8164B296; // type:object size:0x18 data:string -lbl_8164B2AE = .data:0x8164B2AE; // type:object size:0x18 data:string -lbl_8164B2C6 = .data:0x8164B2C6; // type:object size:0x17 data:string -lbl_8164B2DD = .data:0x8164B2DD; // type:object size:0x10 data:string -lbl_8164B2ED = .data:0x8164B2ED; // type:object size:0x1C data:string -lbl_8164B309 = .data:0x8164B309; // type:object size:0x18 data:string -lbl_8164B321 = .data:0x8164B321; // type:object size:0x19 data:string -lbl_8164B33A = .data:0x8164B33A; // type:object size:0x1D data:string -lbl_8164B357 = .data:0x8164B357; // type:object size:0x1B data:string -lbl_8164B372 = .data:0x8164B372; // type:object size:0x19 data:string -lbl_8164B38B = .data:0x8164B38B; // type:object size:0x18 data:string -lbl_8164B3A3 = .data:0x8164B3A3; // type:object size:0x18 data:string -lbl_8164B3BB = .data:0x8164B3BB; // type:object size:0x17 data:string -lbl_8164B3D2 = .data:0x8164B3D2; // type:object size:0x10 data:string -lbl_8164B3E2 = .data:0x8164B3E2; // type:object size:0x1C data:string -lbl_8164B3FE = .data:0x8164B3FE; // type:object size:0x18 data:string -lbl_8164B416 = .data:0x8164B416; // type:object size:0x19 data:string -lbl_8164B42F = .data:0x8164B42F; // type:object size:0x1D data:string -lbl_8164B44C = .data:0x8164B44C; // type:object size:0x1B data:string -lbl_8164B467 = .data:0x8164B467; // type:object size:0x19 data:string -lbl_8164B480 = .data:0x8164B480; // type:object size:0x18 data:string -lbl_8164B498 = .data:0x8164B498; // type:object size:0x18 data:string -lbl_8164B4B0 = .data:0x8164B4B0; // type:object size:0x90 -lbl_8164B540 = .data:0x8164B540; // type:object size:0x15 data:string -lbl_8164B555 = .data:0x8164B555; // type:object size:0xA data:string -lbl_8164B55F = .data:0x8164B55F; // type:object size:0x36 -lbl_8164B595 = .data:0x8164B595; // type:object size:0xA data:string -lbl_8164B59F = .data:0x8164B59F; // type:object size:0x13 data:string -lbl_8164B5B2 = .data:0x8164B5B2; // type:object size:0x14 data:string +@16958 = .data:0x8164B1E8; // type:object size:0x10 scope:local data:string +@16959 = .data:0x8164B1F8; // type:object size:0x1C scope:local data:string +@16960 = .data:0x8164B214; // type:object size:0x18 scope:local data:string +@16961 = .data:0x8164B22C; // type:object size:0x19 scope:local data:string +@16962 = .data:0x8164B245; // type:object size:0x1D scope:local data:string +@16963 = .data:0x8164B262; // type:object size:0x1B scope:local data:string +@16964 = .data:0x8164B27D; // type:object size:0x19 scope:local data:string +@16965 = .data:0x8164B296; // type:object size:0x18 scope:local data:string +@16966 = .data:0x8164B2AE; // type:object size:0x18 scope:local data:string +@16967 = .data:0x8164B2C6; // type:object size:0x17 scope:local data:string +@16968 = .data:0x8164B2DD; // type:object size:0x10 scope:local data:string +@16969 = .data:0x8164B2ED; // type:object size:0x1C scope:local data:string +@16970 = .data:0x8164B309; // type:object size:0x18 scope:local data:string +@16971 = .data:0x8164B321; // type:object size:0x19 scope:local data:string +@16972 = .data:0x8164B33A; // type:object size:0x1D scope:local data:string +@16973 = .data:0x8164B357; // type:object size:0x1B scope:local data:string +@16974 = .data:0x8164B372; // type:object size:0x19 scope:local data:string +@16975 = .data:0x8164B38B; // type:object size:0x18 scope:local data:string +@16976 = .data:0x8164B3A3; // type:object size:0x18 scope:local data:string +@16977 = .data:0x8164B3BB; // type:object size:0x17 scope:local data:string +@16978 = .data:0x8164B3D2; // type:object size:0x10 scope:local data:string +@16979 = .data:0x8164B3E2; // type:object size:0x1C scope:local data:string +@16980 = .data:0x8164B3FE; // type:object size:0x18 scope:local data:string +@16981 = .data:0x8164B416; // type:object size:0x19 scope:local data:string +@16982 = .data:0x8164B42F; // type:object size:0x1D scope:local data:string +@16983 = .data:0x8164B44C; // type:object size:0x1B scope:local data:string +@16984 = .data:0x8164B467; // type:object size:0x19 scope:local data:string +@16985 = .data:0x8164B480; // type:object size:0x18 scope:local data:string +@16986 = .data:0x8164B498; // type:object size:0x18 scope:local data:string +@16987 = .data:0x8164B4B0; // type:object size:0x17 scope:local data:string +mAnimNames__Q33ipl5scene11BoardObject = .data:0x8164B4C8; // type:object size:0x78 +@16989 = .data:0x8164B540; // type:object size:0x15 scope:local data:string +@16990 = .data:0x8164B555; // type:object size:0xA scope:local data:string +@19509 = .data:0x8164B55F; // type:object size:0x9 scope:local data:string +@19511 = .data:0x8164B568; // type:object size:0x9 scope:local data:string +@19512 = .data:0x8164B571; // type:object size:0x13 scope:local data:string +@19514 = .data:0x8164B584; // type:object size:0x11 scope:local data:string +@19542 = .data:0x8164B595; // type:object size:0xA scope:local data:string +@19595 = .data:0x8164B59F; // type:object size:0x13 scope:local data:string +@19785 = .data:0x8164B5B2; // type:object size:0x14 scope:local data:string __vt__Q33ipl5scene11BoardObject = .data:0x8164B5C8; // type:object size:0x18 __vt__Q33ipl4math28LinearIntp = .data:0x8164B5E0; // type:object size:0x10 -__vt__Q33ipl4math31Interporation = .data:0x8164B5F0; // type:object size:0xA8 +__vt__Q33ipl4math31Interporation = .data:0x8164B5F0; // type:object size:0x10 @10018 = .data:0x8164B698; // type:object size:0xB scope:local data:string @10019 = .data:0x8164B6A3; // type:object size:0xF scope:local data:string __vt__Q33ipl5scene12UrlProcessor = .data:0x8164B6B8; // type:object size:0x18 @@ -19210,7 +19275,51 @@ lbl_81687A14 = .data:0x81687A14; // type:object size:0x1B data:string jumptable_81687A30 = .data:0x81687A30; // type:object size:0x28 scope:local __a1_input_reports_array = .data:0x81687A58; // type:object size:0x80 checkInvalidData = .data:0x81687AD8; // type:object size:0x15 scope:local -lbl_81687AF0 = .data:0x81687AF0; // type:object size:0x508 +@2798 = .data:0x81687AF0; // type:object size:0x2C scope:local data:string +@3037 = .data:0x81687B1C; // type:object size:0x14 scope:local data:string +@3038 = .data:0x81687B30; // type:object size:0x18 scope:local data:string +@3039 = .data:0x81687B48; // type:object size:0x41 scope:local data:string +@3041 = .data:0x81687B8C; // type:object size:0x12 scope:local data:string +@3050 = .data:0x81687BA0; // type:object size:0x1E scope:local data:string +@3051 = .data:0x81687BC0; // type:object size:0x1E scope:local data:string +@3052 = .data:0x81687BE0; // type:object size:0x1C scope:local data:string +@3053 = .data:0x81687BFC; // type:object size:0x1C scope:local data:string +@3056 = .data:0x81687C18; // type:object size:0xE scope:local data:string +@3057 = .data:0x81687C28; // type:object size:0xC scope:local data:string +@3058 = .data:0x81687C38; // type:object size:0x10 scope:local data:string +@3059 = .data:0x81687C48; // type:object size:0x28 scope:local data:string +@3060 = .data:0x81687C70; // type:object size:0x28 scope:local data:string +@3061 = .data:0x81687C98; // type:object size:0x19 scope:local data:string +@3125 = .data:0x81687CB4; // type:object size:0x12 scope:local data:string +@3126 = .data:0x81687CC8; // type:object size:0x2E scope:local data:string +@3127 = .data:0x81687CF8; // type:object size:0x2E scope:local data:string +@3128 = .data:0x81687D28; // type:object size:0x27 scope:local data:string +@3129 = .data:0x81687D50; // type:object size:0x27 scope:local data:string +@3130 = .data:0x81687D78; // type:object size:0x27 scope:local data:string +@3131 = .data:0x81687DA0; // type:object size:0x27 scope:local data:string +@3132 = .data:0x81687DC8; // type:object size:0x27 scope:local data:string +@3133 = .data:0x81687DF0; // type:object size:0x27 scope:local data:string +@3134 = .data:0x81687E18; // type:object size:0x16 scope:local data:string +@3169 = .data:0x81687E30; // type:object size:0x16 scope:local data:string +@3170 = .data:0x81687E48; // type:object size:0xB scope:local data:string +@3171 = .data:0x81687E54; // type:object size:0xB scope:local data:string +@3231 = .data:0x81687E60; // type:object size:0x14 scope:local data:string +@3232 = .data:0x81687E74; // type:object size:0x17 scope:local data:string +@3233 = .data:0x81687E8C; // type:object size:0x15 scope:local data:string +@3234 = .data:0x81687EA4; // type:object size:0x16 scope:local data:string +@3280 = .data:0x81687EBC; // type:object size:0x15 scope:local data:string +@3281 = .data:0x81687ED4; // type:object size:0x11 scope:local data:string +@3282 = .data:0x81687EE8; // type:object size:0xF scope:local data:string +@3283 = .data:0x81687EF8; // type:object size:0xC scope:local data:string +@3284 = .data:0x81687F04; // type:object size:0xA scope:local data:string +@3285 = .data:0x81687F10; // type:object size:0x1F scope:local data:string +@3286 = .data:0x81687F30; // type:object size:0xC scope:local data:string +@3287 = .data:0x81687F3C; // type:object size:0x1B scope:local data:string +@3288 = .data:0x81687F58; // type:object size:0x20 scope:local data:string +@3309 = .data:0x81687F78; // type:object size:0xF scope:local data:string +@3310 = .data:0x81687F88; // type:object size:0x2B scope:local data:string +@3311 = .data:0x81687FB4; // type:object size:0x2F scope:local data:string +@3312 = .data:0x81687FE4; // type:object size:0xE scope:local data:string base = .data:0x81687FF8; // type:object size:0x2A scope:local ...data.0 = .data:0x81687FF8; // type:label scope:local tb = .data:0x81688028; // type:object size:0x900 scope:local @@ -20361,7 +20470,7 @@ lbl_8169483B = .sdata2:0x8169483B; // type:object size:0x1 data:byte lbl_8169483C = .sdata2:0x8169483C; // type:object size:0x4 align:4 data:float lbl_81694840 = .sdata2:0x81694840; // type:object size:0x4 align:4 data:float lbl_81694844 = .sdata2:0x81694844; // type:object size:0x4 align:4 data:float -lbl_81694848 = .sdata2:0x81694848; // type:object size:0x8 align:4 data:float +lbl_81694848 = .sdata2:0x81694848; // type:object size:0x4 align:4 data:float lbl_81694850 = .sdata2:0x81694850; // type:object size:0x4 align:4 data:float lbl_81694854 = .sdata2:0x81694854; // type:object size:0x4 align:4 data:float lbl_81694858 = .sdata2:0x81694858; // type:object size:0x4 align:4 data:float @@ -21733,9 +21842,9 @@ lbl_8169659E = .sdata:0x8169659E; // type:object size:0x7 data:string lbl_816965A5 = .sdata:0x816965A5; // type:object size:0x4 data:string views = .sdata:0x816965B0; // type:object size:0x4 scope:local data:4byte @1792 = .sdata:0x816965B8; // type:object size:0x4 scope:local data:string -lbl_816965C0 = .sdata:0x816965C0; // type:object size:0x4 data:string -lbl_816965C4 = .sdata:0x816965C4; // type:object size:0x6 data:string -lbl_816965CA = .sdata:0x816965CA; // type:object size:0x4 +@23132 = .sdata:0x816965C0; // type:object size:0x4 scope:local data:string +@23156 = .sdata:0x816965C4; // type:object size:0x6 scope:local data:string +@24036 = .sdata:0x816965CA; // type:object size:0x2 scope:local smButtonName__Q33ipl5scene13AddressAddSel = .sdata:0x816965D0; // type:object size:0x8 @10971 = .sdata:0x816965D8; // type:object size:0x4 scope:local data:string sInputPaneName = .sdata:0x816965E0; // type:object size:0x4 data:4byte @@ -23449,8 +23558,8 @@ VersionMEM2 = .sbss:0x81698B38; // type:object size:0x4 data:4byte VersionES = .sbss:0x81698B3C; // type:object size:0x4 data:4byte ConsoleType = .sbss:0x81698B40; // type:object size:0x4 data:4byte FatalFunc = .sbss:0x81698B48; // type:object size:0x4 scope:local data:4byte -lbl_81698B50 = .sbss:0x81698B50; // type:object size:0x4 align:4 data:float -lbl_81698B54 = .sbss:0x81698B54; // type:object size:0x4 data:float +sPageOffset__Q23ipl5scene = .sbss:0x81698B50; // type:object size:0x8 scope:local align:4 data:float +..sPageOffset.y = .sbss:0x81698B54; // type:label scope:local msInitFlag__Q33ipl5scene13ChannelSelect = .sbss:0x81698B58; // type:object size:0x4 data:4byte m_already_shown_wii_menu__Q33ipl5scene5clock = .sbss:0x81698B60; // type:object size:0x1 data:byte sThread__Q23ipl10memorycard = .sbss:0x81698B68; // type:object size:0x4 scope:local data:4byte diff --git a/tools/decomp-assist/data-d7.attempts.md b/tools/decomp-assist/data-d7.attempts.md new file mode 100644 index 00000000..b8ed7656 --- /dev/null +++ b/tools/decomp-assist/data-d7.attempts.md @@ -0,0 +1,1944 @@ +# Data lane d7 attempts + +Baseline HEAD 85701c82. Origin fetched; all four owned sources unchanged on origin/main. Initial quick gate PASS, DOL 26116613f624061ba99c8d1a299aaa6efa85670d, regressions 0. + +| Unit | matched_data | instruction-exact | matched_code | +| --- | --- | --- | --- | +| iplAddressEdit | 368/2560 | 87/94 | 21556/27112 | +| iplAddress | 36/1964 | 94/101 | 20256/23988 | +| WPADHIDParser | 224/1664 | 22/22 | 21664/21664 | +| iplBoardObject | 56/1320 | 38/39 | 9184/9184 | + +Pool checks run before source experiments: identical strings and offsets, counts 57/81/45/39 respectively. ELF section and symbol comparison found no missing tables or wrong nonzero initializer bytes. All overlapping non-relocated bytes agree. + +## iplAddress + +The digit table target symbol is 22 bytes, source 20 bytes. Target holds the wide string 0123456789 plus its terminator. Investigate a real terminated digit table rather than adding padding. + +Attempt 1, set_page_text: use the target wide-string initializer with explicit 10-element array. MWCC rejects it as too many initializers; stale object was not counted as a result. +Attempt 2, set_page_text: inferred-size terminated wide-string array emits the correct 22-byte literal, but copies its terminator to the stack and regresses the exact function from 67 to 69 instructions. Rejected. +Attempt 3, set_page_text: copy ten digits from the terminated literal with memcpy. Correct literal but emits a memcpy call and 65 instructions versus 67; rejected. +Attempt 4, set_page_text: ten-element indexed copy loop from the real wide literal. 66 versus 67 instructions; the target copies pairs with update loads/stores. Rejected. +Attempt 5, set_page_text: paired indexed copy loop. 69 versus 67 instructions; still indexed addressing instead of paired pointer-update addressing. Restored original exact function. No rejected experiment retained. + +## Section audit and stopping evidence + +Fresh origin fetch before each unit; owned source paths have no changes on origin/main. Native nm -n, objdump -t and objdump -r inspected both ELF objects, with detailed output in /tmp/data-d7.symbols.txt. The semantic relocation audit resolves target section offsets and target function plus offset, avoiding auto-generated literal names. Full evidence follows below. + +- AddressEdit: all 211 original .data relocations match semantically. Source has 31 additional relocations in the deduplicated PaneManager, EventHandler and Interface weak vtables. Original bytes there are all zero with no relocations. Overlapping raw data bytes are equal. The only size residuals are 4 trailing zero bytes in .data and 5 trailing zeros in .rodata. No missing typed object found. +- Address: all 87 original .data relocations match semantically, including the jump table. Same 31 extra weak-vtable relocations and zero-filled extraction. .sbss has the real 8-byte VEC2, versus two unnamed 4-byte extraction symbols; bytes agree and its accesses match. .data/.rodata/.sdata/.sdata2 each have 4 trailing original zero bytes. Only possible semantic discrepancy is the terminated wide-digit literal, tested five ways above without retaining regressions. +- WPADHIDParser: all 32 dispatch table relocations match. checkInvalidData is correctly 21 bytes, all BSS arrays have the target types/order/sizes, and .sdata2 plus .sbss agree byte-for-byte. .data is identical over all 1434 source bytes; only the 6-byte trailing extraction alignment differs. This unit is already linked C and the DOL gate passes. No source fix is justified. +- BoardObject: all 38 original .data relocations match, including the 120-byte animation-name table and vtables. Same 31 additional weak-vtable relocations into target zeros. .rodata has the correct 12-byte three-pointer struct and its 3 relocations match. .sdata2 is identical over 60 source bytes, including the target white color and float constants. .data/.rodata/.sdata2 each have 4 trailing original zero bytes. This unit is already linked C++ and the DOL gate passes. No source fix is justified. + +No extab or extabindex sections exist in any owned object. No ownership correction is warranted: every original relocation is accounted for; changing split endpoints would merely redistribute alignment rather than fix missing source data. No dummy objects, forced placement or fake tables introduced. + +This is the data lane. Existing unmatched code functions are unchanged and are not data causes: all owned original data relocations match. No code tuning was done beyond the digit-table experiments. Every identified data discrepancy has either direct byte/relocation evidence for the extraction exception or five distinct logged source attempts. The requested literal 100-percent section/data metrics remain unresolved because the extraction includes alignment and weak-data holes. + +### Semantic ELF comparison + +```text + +## src/scene/address/iplAddressEdit +.data: original/source 2152/2148 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra [2020, 2008, 2064, 2060, 2056, 2052, 2048, 2040, 2044, 2036, 2032, 2024, 2016, 2012, 2088, 2084, 2080, 2076, 2072, 2068, 2028, 2112, 2108, 2104, 2100, 2144, 2136, 2140, 2132, 2128, 2124]; changed [] +extra targets: [('0x7e4', (1, ('draw__Q23gui9InterfaceFRA3_A4_f', 0)), '00000000'), ('0x7d8', (1, ('create__Q23gui9InterfaceFv', 0)), '00000000'), ('0x810', (1, ('setDraggingButton__Q23gui7ManagerFUl', 0)), '00000000'), ('0x80c', (1, ('changeEventHandler__Q23gui7ManagerFPQ23gui12EventHandler', 0)), '00000000'), ('0x808', (1, ('setEventHandler__Q23gui7ManagerFPQ23gui12EventHandler', 0)), '00000000'), ('0x804', (1, ('setAllComponentTriggerTarget__Q23gui7ManagerFb', 0)), '00000000'), ('0x800', (1, ('onEvent__Q23gui7ManagerFUlUliPv', 0)), '00000000'), ('0x7f8', (1, ('update__Q23gui7ManagerFiPC10KPADStatusffPv', 0)), '00000000'), ('0x7fc', (1, ('update__Q23gui7ManagerFiffUlUlUlPv', 0)), '00000000'), ('0x7f4', (1, ('getComponent__Q23gui7ManagerFUl', 0)), '00000000'), ('0x7f0', (1, ('addComponent__Q23gui7ManagerFPQ23gui9Component', 0)), '00000000'), ('0x7e8', (1, ('draw__Q23gui7ManagerFv', 0)), '00000000'), ('0x7e0', (1, ('calc__Q23gui7ManagerFv', 0)), '00000000'), ('0x7dc', (1, ('init__Q23gui7ManagerFv', 0)), '00000000'), ('0x828', (1, ('walkInChildren__Q23gui11PaneManagerFRQ34nw4r2ut28LinkList', 0)), '00000000'), ('0x824', (1, ('setAllBoundingBoxComponentTriggerTarget__Q23gui11PaneManagerFb', 0)), '00000000'), ('0x820', (1, ('setDrawInfo__Q23gui11PaneManagerFPCQ34nw4r3lyt8DrawInfo', 0)), '00000000'), ('0x81c', (1, ('getDrawInfo__Q23gui11PaneManagerFv', 0)), '00000000'), ('0x818', (1, ('getPaneComponentByPane__Q23gui11PaneManagerFPQ34nw4r3lyt4Pane', 0)), '00000000'), ('0x814', (1, ('createLayoutScene__Q23gui11PaneManagerFRCQ34nw4r3lyt6Layout', 0)), '00000000'), ('0x7ec', (1, ('__dt__Q33ipl3gui11PaneManagerFv', 0)), '00000000'), ('0x840', (1, ('getLatestEventCtrlNo__Q23gui12EventHandlerFv', 0)), '00000000'), ('0x83c', (1, ('setLatestEventCtrlNo__Q23gui12EventHandlerFi', 0)), '00000000'), ('0x838', (1, ('setManager__Q23gui12EventHandlerFPQ23gui7Manager', 0)), '00000000'), ('0x834', (1, ('onEvent__Q23gui12EventHandlerFUlUlPv', 0)), '00000000'), ('0x860', (1, ('__dt__Q23gui9InterfaceFv', 0)), '00000000'), ('0x858', (1, ('draw__Q23gui9InterfaceFRA3_A4_f', 0)), '00000000'), ('0x85c', (1, ('draw__Q23gui9InterfaceFv', 0)), '00000000'), ('0x854', (1, ('calc__Q23gui9InterfaceFv', 0)), '00000000'), ('0x850', (1, ('init__Q23gui9InterfaceFv', 0)), '00000000'), ('0x84c', (1, ('create__Q23gui9InterfaceFv', 0)), '00000000')] +.rodata: original/source 40/35 bytes, overlapping non-relocation byte differences [], original tail 0000000000 +relocations: missing []; extra []; changed [] +.sdata: original/source 24/24 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.sdata2: original/source 24/24 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.bss: original/source 320/320 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.sbss: absent on both +.ctors: absent on both +extab: absent on both +extabindex: absent on both + +## src/scene/address/iplAddress +.data: original/source 1880/1876 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra [1748, 1736, 1792, 1788, 1784, 1780, 1776, 1768, 1772, 1764, 1760, 1752, 1744, 1740, 1816, 1812, 1808, 1804, 1800, 1796, 1756, 1840, 1836, 1832, 1828, 1872, 1864, 1868, 1860, 1856, 1852]; changed [] +extra targets: [('0x6d4', (1, ('draw__Q23gui9InterfaceFRA3_A4_f', 0)), '00000000'), ('0x6c8', (1, ('create__Q23gui9InterfaceFv', 0)), '00000000'), ('0x700', (1, ('setDraggingButton__Q23gui7ManagerFUl', 0)), '00000000'), ('0x6fc', (1, ('changeEventHandler__Q23gui7ManagerFPQ23gui12EventHandler', 0)), '00000000'), ('0x6f8', (1, ('setEventHandler__Q23gui7ManagerFPQ23gui12EventHandler', 0)), '00000000'), ('0x6f4', (1, ('setAllComponentTriggerTarget__Q23gui7ManagerFb', 0)), '00000000'), ('0x6f0', (1, ('onEvent__Q23gui7ManagerFUlUliPv', 0)), '00000000'), ('0x6e8', (1, ('update__Q23gui7ManagerFiPC10KPADStatusffPv', 0)), '00000000'), ('0x6ec', (1, ('update__Q23gui7ManagerFiffUlUlUlPv', 0)), '00000000'), ('0x6e4', (1, ('getComponent__Q23gui7ManagerFUl', 0)), '00000000'), ('0x6e0', (1, ('addComponent__Q23gui7ManagerFPQ23gui9Component', 0)), '00000000'), ('0x6d8', (1, ('draw__Q23gui7ManagerFv', 0)), '00000000'), ('0x6d0', (1, ('calc__Q23gui7ManagerFv', 0)), '00000000'), ('0x6cc', (1, ('init__Q23gui7ManagerFv', 0)), '00000000'), ('0x718', (1, ('walkInChildren__Q23gui11PaneManagerFRQ34nw4r2ut28LinkList', 0)), '00000000'), ('0x714', (1, ('setAllBoundingBoxComponentTriggerTarget__Q23gui11PaneManagerFb', 0)), '00000000'), ('0x710', (1, ('setDrawInfo__Q23gui11PaneManagerFPCQ34nw4r3lyt8DrawInfo', 0)), '00000000'), ('0x70c', (1, ('getDrawInfo__Q23gui11PaneManagerFv', 0)), '00000000'), ('0x708', (1, ('getPaneComponentByPane__Q23gui11PaneManagerFPQ34nw4r3lyt4Pane', 0)), '00000000'), ('0x704', (1, ('createLayoutScene__Q23gui11PaneManagerFRCQ34nw4r3lyt6Layout', 0)), '00000000'), ('0x6dc', (1, ('__dt__Q33ipl3gui11PaneManagerFv', 0)), '00000000'), ('0x730', (1, ('getLatestEventCtrlNo__Q23gui12EventHandlerFv', 0)), '00000000'), ('0x72c', (1, ('setLatestEventCtrlNo__Q23gui12EventHandlerFi', 0)), '00000000'), ('0x728', (1, ('setManager__Q23gui12EventHandlerFPQ23gui7Manager', 0)), '00000000'), ('0x724', (1, ('onEvent__Q23gui12EventHandlerFUlUlPv', 0)), '00000000'), ('0x750', (1, ('__dt__Q23gui9InterfaceFv', 0)), '00000000'), ('0x748', (1, ('draw__Q23gui9InterfaceFRA3_A4_f', 0)), '00000000'), ('0x74c', (1, ('draw__Q23gui9InterfaceFv', 0)), '00000000'), ('0x744', (1, ('calc__Q23gui9InterfaceFv', 0)), '00000000'), ('0x740', (1, ('init__Q23gui9InterfaceFv', 0)), '00000000'), ('0x73c', (1, ('create__Q23gui9InterfaceFv', 0)), '00000000')] +.rodata: original/source 24/20 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra []; changed [] +.sdata: original/source 16/12 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra []; changed [] +.sdata2: original/source 32/28 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra []; changed [] +.bss: absent on both +.sbss: original/source 8/8 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.ctors: original/source 4/4 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +extab: absent on both +extabindex: absent on both + +## libs/RVL_SDK/src/wpad/WPADHIDParser +.data: original/source 1440/1434 bytes, overlapping non-relocation byte differences [], original tail 000000000000 +relocations: missing []; extra []; changed [] +.rodata: absent on both +.sdata: absent on both +.sdata2: original/source 96/96 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.bss: original/source 104/104 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.sbss: original/source 24/24 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.ctors: absent on both +extab: absent on both +extabindex: absent on both + +## src/scene/board/iplBoardObject +.data: original/source 1200/1196 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra [1068, 1056, 1112, 1108, 1104, 1100, 1096, 1088, 1092, 1084, 1080, 1072, 1064, 1060, 1136, 1132, 1128, 1124, 1120, 1116, 1076, 1160, 1156, 1152, 1148, 1192, 1184, 1188, 1180, 1176, 1172]; changed [] +extra targets: [('0x42c', (1, ('draw__Q23gui9InterfaceFRA3_A4_f', 0)), '00000000'), ('0x420', (1, ('create__Q23gui9InterfaceFv', 0)), '00000000'), ('0x458', (1, ('setDraggingButton__Q23gui7ManagerFUl', 0)), '00000000'), ('0x454', (1, ('changeEventHandler__Q23gui7ManagerFPQ23gui12EventHandler', 0)), '00000000'), ('0x450', (1, ('setEventHandler__Q23gui7ManagerFPQ23gui12EventHandler', 0)), '00000000'), ('0x44c', (1, ('setAllComponentTriggerTarget__Q23gui7ManagerFb', 0)), '00000000'), ('0x448', (1, ('onEvent__Q23gui7ManagerFUlUliPv', 0)), '00000000'), ('0x440', (1, ('update__Q23gui7ManagerFiPC10KPADStatusffPv', 0)), '00000000'), ('0x444', (1, ('update__Q23gui7ManagerFiffUlUlUlPv', 0)), '00000000'), ('0x43c', (1, ('getComponent__Q23gui7ManagerFUl', 0)), '00000000'), ('0x438', (1, ('addComponent__Q23gui7ManagerFPQ23gui9Component', 0)), '00000000'), ('0x430', (1, ('draw__Q23gui7ManagerFv', 0)), '00000000'), ('0x428', (1, ('calc__Q23gui7ManagerFv', 0)), '00000000'), ('0x424', (1, ('init__Q23gui7ManagerFv', 0)), '00000000'), ('0x470', (1, ('walkInChildren__Q23gui11PaneManagerFRQ34nw4r2ut28LinkList', 0)), '00000000'), ('0x46c', (1, ('setAllBoundingBoxComponentTriggerTarget__Q23gui11PaneManagerFb', 0)), '00000000'), ('0x468', (1, ('setDrawInfo__Q23gui11PaneManagerFPCQ34nw4r3lyt8DrawInfo', 0)), '00000000'), ('0x464', (1, ('getDrawInfo__Q23gui11PaneManagerFv', 0)), '00000000'), ('0x460', (1, ('getPaneComponentByPane__Q23gui11PaneManagerFPQ34nw4r3lyt4Pane', 0)), '00000000'), ('0x45c', (1, ('createLayoutScene__Q23gui11PaneManagerFRCQ34nw4r3lyt6Layout', 0)), '00000000'), ('0x434', (1, ('__dt__Q33ipl3gui11PaneManagerFv', 0)), '00000000'), ('0x488', (1, ('getLatestEventCtrlNo__Q23gui12EventHandlerFv', 0)), '00000000'), ('0x484', (1, ('setLatestEventCtrlNo__Q23gui12EventHandlerFi', 0)), '00000000'), ('0x480', (1, ('setManager__Q23gui12EventHandlerFPQ23gui7Manager', 0)), '00000000'), ('0x47c', (1, ('onEvent__Q23gui12EventHandlerFUlUlPv', 0)), '00000000'), ('0x4a8', (1, ('__dt__Q23gui9InterfaceFv', 0)), '00000000'), ('0x4a0', (1, ('draw__Q23gui9InterfaceFRA3_A4_f', 0)), '00000000'), ('0x4a4', (1, ('draw__Q23gui9InterfaceFv', 0)), '00000000'), ('0x49c', (1, ('calc__Q23gui9InterfaceFv', 0)), '00000000'), ('0x498', (1, ('init__Q23gui9InterfaceFv', 0)), '00000000'), ('0x494', (1, ('create__Q23gui9InterfaceFv', 0)), '00000000')] +.rodata: original/source 16/12 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra []; changed [] +.sdata: original/source 40/40 bytes, overlapping non-relocation byte differences [], original tail +relocations: missing []; extra []; changed [] +.sdata2: original/source 64/60 bytes, overlapping non-relocation byte differences [], original tail 00000000 +relocations: missing []; extra []; changed [] +.bss: absent on both +.sbss: absent on both +.ctors: absent on both +extab: absent on both +extabindex: absent on both + +``` + +## Existing code-only residuals, outside this data assignment + +### start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.34978% + +```text +src 0x378 base 0x37c insns 222/223 +--- replace mine 12:13 base 12:13 + M 12 beq 816 + B 12 beq 820 +--- replace mine 19:20 base 19:20 + M 19 blt 788 + B 19 blt 792 +--- replace mine 22:23 base 22:24 + M 22 bne 776 + B 22 beq 8 + B 23 b 776 +--- replace mine 116:118 base 117:119 + M 116 lwz r29, 0x104(r3) + M 117 cmpwi r29, 0 + B 117 lwz r26, 0x104(r3) + B 118 cmpwi r26, 0 +--- replace mine 129:130 base 130:131 + M 129 mr r26, r3 + B 130 mr r29, r3 +--- replace mine 132:133 base 133:134 + M 132 addi r4, r29, 0x14 + B 133 addi r4, r26, 0x14 +--- replace mine 143:144 base 144:145 + M 143 lwz r4, 0(r29) + B 144 lwz r4, 0(r26) +--- replace mine 154:156 base 155:157 + M 154 lwz r12, 0(r26) + M 155 mr r3, r26 + B 155 lwz r12, 0(r29) + B 156 mr r3, r29 +``` + +### onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 97.662964% + +```text +src 0x43c base 0x438 insns 271/270 +--- replace mine 0:1 base 0:1 + M 0 stwu r1, -0x20(r1) + B 0 stwu r1, -0x30(r1) +--- replace mine 2:4 base 2:4 + M 2 stw r0, 0x24(r1) + M 3 addi r11, r1, 0x20 + B 2 stw r0, 0x34(r1) + B 3 addi r11, r1, 0x30 +--- replace mine 5:6 base 5:6 + M 5 mr r30, r3 + B 5 mr r29, r3 +--- replace mine 7:9 base 7:9 + M 7 lis r28, 0 + M 8 mr r31, r5 + B 7 lis r27, 0 + B 8 mr r25, r5 +--- replace mine 10:12 base 10:12 + M 10 mr r29, r6 + M 11 addi r28, r28, 0 + B 10 mr r30, r6 + B 11 addi r27, r27, 0 +--- replace mine 19:22 base 19:22 + M 19 cmpwi r31, 1 + M 20 addi r27, r3, 0xb4 + M 21 beq 716 + B 19 cmpwi r25, 1 + B 20 addi r31, r3, 0xb4 + B 21 beq 712 +--- replace mine 23:24 base 23:24 + M 23 cmpwi r31, 0 + B 23 cmpwi r25, 0 +--- replace mine 25:32 base 25:32 + M 25 b 960 + M 26 cmpwi r31, 3 + M 27 bge 952 + M 28 b 832 + M 29 cmpwi r29, 0 + M 30 beq 940 + M 31 lwz r12, 0(r29) + B 25 b 956 + B 26 cmpwi r25, 3 + B 27 bge 948 + B 28 b 828 + B 29 cmpwi r30, 0 + B 30 beq 936 + B 31 lwz r12, 0(r30) +--- replace mine 33:34 base 33:34 + M 33 mr r3, r29 + B 33 mr r3, r30 +--- replace mine 39:40 base 39:40 + M 39 beq 644 + B 39 beq 640 +--- replace mine 45:47 base 45:47 + M 45 lwz r0, 0xac(r30) + M 46 mr r31, r3 + B 45 lwz r0, 0xac(r29) + B 46 mr r26, r3 +--- replace mine 50:55 base 50:55 + M 50 bne 860 + M 51 lis r29, 0 + M 52 mr r3, r27 + M 53 addi r29, r29, 0 + M 54 lwz r4, 0x14(r29) + B 50 bne 596 + B 51 lis r28, 0 + B 52 mr r3, r31 + B 53 addi r28, r28, 0 + B 54 lwz r4, 0x14(r28) +--- replace mine 63:65 base 63:65 + M 63 mr r27, r3 + M 64 mr r3, r31 + B 63 mr r25, r3 + B 64 mr r3, r26 +--- replace mine 67:68 base 67:68 + M 67 lwz r0, 0x88(r30) + B 67 lwz r0, 0x88(r29) +--- replace mine 77:78 base 77:78 + M 77 cmpwi r27, 0 + B 77 cmpwi r25, 0 +--- replace mine 79:80 base 79:80 + M 79 mr r3, r27 + B 79 mr r3, r25 +--- replace mine 81:82 base 81:82 + M 81 lwz r3, 0x8c(r30) + B 81 lwz r3, 0x8c(r29) +--- replace mine 85:86 base 85:86 + M 85 mr r27, r3 + B 85 mr r28, r3 +--- replace mine 88:90 base 88:90 + M 88 mr r3, r31 + M 89 stw r0, 0x14(r27) + B 88 mr r3, r26 + B 89 stw r0, 0x14(r28) +--- replace mine 92:93 base 92:93 + M 92 mr r3, r31 + B 92 mr r3, r26 +--- replace mine 96:97 base 96:97 + M 96 lwz r3, 0x8c(r30) + B 96 lwz r3, 0x8c(r29) +--- replace mine 100:101 base 100:101 + M 100 mr r27, r3 + B 100 mr r25, r3 +--- replace mine 102:103 base 102:103 + M 102 li r29, 1 + B 102 li r28, 1 +--- replace mine 104:106 base 104:106 + M 104 stw r29, 0x14(r27) + M 105 lwz r3, 0xa0(r30) + B 104 stw r28, 0x14(r25) + B 105 lwz r3, 0xa0(r29) +--- replace mine 108:109 base 108:109 + M 108 mr r27, r3 + B 108 mr r25, r3 +--- replace mine 110:112 base 110:112 + M 110 stw r29, 0x14(r27) + M 111 mr r3, r31 + B 110 stw r28, 0x14(r25) + B 111 mr r3, r26 +--- replace mine 114:115 base 114:115 + M 114 mr r3, r31 + B 114 mr r3, r26 +--- replace mine 118:119 base 118:119 + M 118 lwz r3, 0x8c(r30) + B 118 lwz r3, 0x8c(r29) +--- replace mine 122:123 base 122:123 + M 122 mr r27, r3 + B 122 mr r25, r3 +--- replace mine 124:125 base 124:125 + M 124 li r29, 1 + B 124 li r28, 1 +--- replace mine 126:128 base 126:128 + M 126 stw r29, 0x14(r27) + M 127 lwz r3, 0xa0(r30) + B 126 stw r28, 0x14(r25) + B 127 lwz r3, 0xa0(r29) +--- replace mine 130:131 base 130:131 + M 130 mr r27, r3 + B 130 mr r25, r3 +--- replace mine 132:134 base 132:134 + M 132 stw r29, 0x14(r27) + M 133 mr r3, r31 + B 132 stw r28, 0x14(r25) + B 133 mr r3, r26 +--- replace mine 136:137 base 136:137 + M 136 mr r3, r31 + B 136 mr r3, r26 +--- replace mine 140:141 base 140:141 + M 140 mr r3, r31 + B 140 mr r3, r26 +--- replace mine 144:145 base 144:145 + M 144 mr r3, r31 + B 144 mr r3, r26 +--- replace mine 147:148 base 147:148 + M 147 mr r3, r31 + B 147 mr r3, r26 +--- replace mine 150:151 base 150:151 + M 150 mr r3, r31 + B 150 mr r3, r26 +--- replace mine 154:155 base 154:155 + M 154 addi r4, r28, 0x5a1 + B 154 addi r4, r27, 0x5a1 +--- replace mine 158:162 base 158:162 + M 158 stw r0, 0xac(r30) + M 159 b 424 + M 160 lwz r4, 0x1c(r29) + M 161 mr r3, r27 + B 158 stw r0, 0xac(r29) + B 159 b 160 + B 160 lwz r4, 0x1c(r28) + B 161 mr r3, r31 +--- replace mine 166:168 base 166:168 + M 166 mr r3, r30 + M 167 stw r0, 0xc0(r30) + B 166 mr r3, r29 + B 167 stw r0, 0xc0(r29) +--- replace mine 169:172 base 169:172 + M 169 b 384 + M 170 lwz r4, 0x24(r29) + M 171 mr r3, r27 + B 169 b 120 + B 170 lwz r4, 0x24(r28) + B 171 mr r3, r31 +--- replace mine 175:176 base 175:176 + M 175 mr r3, r31 + B 175 mr r3, r26 +--- replace mine 179:180 base 179:180 + M 179 addi r4, r28, 0x456 + B 179 addi r4, r27, 0x456 +--- replace mine 182:183 base 182:183 + M 182 mr r3, r30 + B 182 mr r3, r29 +--- replace mine 184:187 base 184:187 + M 184 b 324 + M 185 lwz r4, 0x28(r29) + M 186 mr r3, r27 + B 184 b 60 + B 185 lwz r4, 0x28(r28) + B 186 mr r3, r31 +--- replace mine 189:191 base 189:191 + M 189 bne 304 + M 190 mr r3, r31 + B 189 bne 40 + B 190 mr r3, r26 +--- replace mine 194:195 base 194:195 + M 194 addi r4, r28, 0x515 + B 194 addi r4, r27, 0x515 +--- replace mine 197:198 base 197:198 + M 197 mr r3, r30 + B 197 mr r3, r29 +--- replace mine 199:201 base 199:200 + M 199 b 264 + M 200 lbz r0, 0x84(r30) + B 199 lbz r0, 0x84(r29) +--- replace mine 203:204 base 202:203 + M 203 cmpwi r29, 0 + B 202 cmpwi r30, 0 +--- replace mine 206:207 base 205:206 + M 206 lwz r4, 0x6c(r30) + B 205 lwz r4, 0x6c(r29) +--- replace mine 210:211 base 209:210 + M 210 cmplw r29, r3 + B 209 cmplw r30, r3 +--- replace mine 212:216 base 211:215 + M 212 lis r31, 0 + M 213 mr r3, r27 + M 214 addi r31, r31, 0 + M 215 lwz r4, 0x28(r31) + B 211 lis r30, 0 + B 212 mr r3, r31 + B 213 addi r30, r30, 0 + B 214 lwz r4, 0x28(r30) +--- replace mine 219:220 base 218:219 + M 219 lwz r0, 0x7c(r30) + B 218 lwz r0, 0x7c(r29) +--- replace mine 223:224 base 222:223 + M 223 stw r0, 0x7c(r30) + B 222 stw r0, 0x7c(r29) +--- replace mine 225:227 base 224:226 + M 225 lwz r4, 0x24(r31) + M 226 mr r3, r27 + B 224 lwz r4, 0x24(r30) + B 225 mr r3, r31 +--- replace mine 230:231 base 229:230 + M 230 lwz r0, 0x78(r30) + B 229 lwz r0, 0x78(r29) +--- replace mine 234:235 base 233:234 + M 234 stw r0, 0x78(r30) + B 233 stw r0, 0x78(r29) +--- replace mine 236:237 base 235:236 + M 236 lbz r0, 0x84(r30) + B 235 lbz r0, 0x84(r29) +--- replace mine 239:240 base 238:239 + M 239 cmpwi r29, 0 + B 238 cmpwi r30, 0 +--- replace mine 242:243 base 241:242 + M 242 lwz r4, 0x6c(r30) + B 241 lwz r4, 0x6c(r29) +--- replace mine 246:247 base 245:246 + M 246 cmplw r29, r3 + B 245 cmplw r30, r3 +--- replace mine 248:252 base 247:251 + M 248 lis r31, 0 + M 249 mr r3, r27 + M 250 addi r31, r31, 0 + M 251 lwz r4, 0x28(r31) + B 247 lis r30, 0 + B 248 mr r3, r31 + B 249 addi r30, r30, 0 + B 250 lwz r4, 0x28(r30) +--- replace mine 256:257 base 255:256 + M 256 stw r0, 0x7c(r30) + B 255 stw r0, 0x7c(r29) +--- replace mine 258:260 base 257:259 + M 258 lwz r4, 0x24(r31) + M 259 mr r3, r27 + B 257 lwz r4, 0x24(r30) + B 258 mr r3, r31 +--- replace mine 264:266 base 263:265 + M 264 stw r0, 0x78(r30) + M 265 addi r11, r1, 0x20 + B 263 stw r0, 0x78(r29) + B 264 addi r11, r1, 0x30 +--- replace mine 267:268 base 266:267 + M 267 lwz r0, 0x24(r1) + B 266 lwz r0, 0x34(r1) +--- replace mine 269:270 base 268:269 + M 269 addi r1, r1, 0x20 + B 268 addi r1, r1, 0x30 +``` + +### onPreviousPage__Q33ipl5scene7AddressFv 97.25455% + +```text +src 0x284 base 0x294 insns 161/165 +--- replace mine 14:15 base 14:15 + M 14 b 564 + B 14 b 580 +--- replace mine 17:18 base 17:18 + M 17 b 552 + B 17 b 568 +--- replace mine 68:69 base 68:69 + M 68 b 348 + B 68 b 364 +--- replace mine 87:88 base 87:88 + M 87 b 272 + B 87 b 288 +--- replace mine 92:93 base 92:93 + M 92 lfs f2, 0(0) + B 92 lfs f1, 0(0) +--- replace mine 97:98 base 97:98 + M 97 lfs f1, 4(r6) + B 97 lfs f2, 4(r6) +--- replace mine 99:102 base 99:102 + M 99 fmuls f1, f2, f1 + M 100 fmuls f0, f2, f0 + M 101 stfs f1, 0xc(r1) + B 99 fmuls f2, f2, f1 + B 100 fmuls f0, f0, f1 + B 101 stfs f2, 0xc(r1) +--- insert mine 103:103 base 103:107 + B 103 lwz r0, 0xc(r1) + B 104 lwz r6, 8(r1) + B 105 stw r0, 0x14(r1) + B 106 stw r6, 0x10(r1) +--- replace mine 111:112 base 115:116 + M 111 addi r5, r1, 8 + B 115 addi r5, r1, 0x10 +``` + +### set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 98.6% + +```text +src 0x144 base 0x140 insns 81/80 +--- delete mine 26:27 base 26:26 + M 26 li r30, 0x190 +``` + +### movePane_onDrag__Q33ipl5scene7AddressFv 95.70968% + +```text +src 0x268 base 0x26c insns 154/155 +--- replace mine 34:36 base 34:36 + M 34 lwz r6, 0x8c(r31) + M 35 lis r7, 0 + B 34 lwz r7, 0x8c(r31) + B 35 lis r6, 0 +--- replace mine 39:40 base 39:40 + M 39 lwz r3, 0x14(r6) + B 39 lwz r3, 0x14(r7) +--- replace mine 43:44 base 43:44 + M 43 addi r4, r7, 0 + B 43 addi r4, r6, 0 +--- replace mine 50:51 base 50:51 + M 50 mr r28, r3 + B 50 mr r27, r3 +--- replace mine 56:61 base 56:62 + M 56 add r27, r5, r0 + M 57 addi r27, r27, 8 + M 58 beq 112 + M 59 cmpwi r27, 0 + M 60 beq 104 + B 56 add r0, r5, r0 + B 57 bne 8 + B 58 b 124 + B 59 addic. r29, r0, 8 + B 60 bne 8 + B 61 b 112 +--- replace mine 69:70 base 70:71 + M 69 mr r3, r28 + B 70 mr r3, r27 +--- replace mine 72:73 base 73:74 + M 72 mr r4, r29 + B 73 mr r4, r28 +--- replace mine 78:79 base 79:80 + M 78 addi r27, r27, 2 + B 79 addi r29, r29, 2 +--- replace mine 83:85 base 84:86 + M 83 lhz r29, 0(r27) + M 84 cmpwi r29, 0 + B 84 lhz r28, 0(r29) + B 85 cmpwi r28, 0 +--- insert mine 87:87 base 88:89 + B 88 fadds f30, f0, f30 +--- delete mine 88:89 base 90:90 + M 88 fadds f30, f30, f0 +--- replace mine 108:110 base 109:111 + M 108 fmuls f0, f5, f0 + M 109 fneg f0, f0 + B 109 fmuls f5, f5, f0 + B 110 fneg f0, f5 +``` + +### update__Q33ipl5scene15FriendListCacheFUlPCwUx 81.35% + +```text +src 0x90 base 0xa0 insns 36/40 +--- replace mine 6:8 base 6:10 + M 6 mr r29, r4 + M 7 mr r30, r5 + B 6 mr r29, r3 + B 7 mr r30, r4 + B 8 mr r31, r5 + B 9 add r3, r3, r0 +--- replace mine 9:10 base 11:12 + M 9 add r31, r3, r0 + B 11 stw r8, 0x24(r3) +--- replace mine 11:14 base 13:15 + M 11 stw r8, 0x24(r31) + M 12 addi r3, r31, 8 + M 13 stw r7, 0x20(r31) + B 13 stw r7, 0x20(r3) + B 14 addi r3, r3, 8 +--- replace mine 15:17 base 16:18 + M 15 mr r4, r30 + M 16 addi r3, r31, 8 + B 16 mulli r0, r30, 0x140 + B 17 mr r4, r31 +--- insert mine 18:18 base 19:21 + B 19 add r3, r29, r0 + B 20 addi r3, r3, 8 +--- replace mine 27:29 base 30:33 + M 27 mr r4, r31 + M 28 mr r5, r29 + B 30 mulli r0, r30, 0x140 + B 31 mr r5, r30 + B 32 add r4, r29, r0 +``` + +### create__Q33ipl5scene11AddressEditFv 97.44634% + +```text +src 0xcd0 base 0xcd0 insns 820/820 +diffs 323: [10, 14, 17, 24, 25, 30, 31, 36, 37, 42, 43, 48, 49, 54, 55, 60, 61, 66, 67, 72] + 10 M lis r30, 0 + B lis r31, 0 + 14 M addi r30, r30, 0 + B addi r31, r31, 0 + 17 M lwz r31, 0xd20(r3) + B lwz r30, 0xd20(r3) + 24 M mr r5, r31 + B mr r5, r30 + 25 M addi r7, r30, 0x72 + B addi r7, r31, 0x72 + 30 M addi r4, r30, 0x84 + B addi r4, r31, 0x84 + 31 M addi r5, r30, 0xa0 + B addi r5, r31, 0xa0 + 36 M addi r4, r30, 0xaf + B addi r4, r31, 0xaf + 37 M addi r5, r30, 0xc8 + B addi r5, r31, 0xc8 + 42 M addi r4, r30, 0xaf + B addi r4, r31, 0xaf + 43 M addi r5, r30, 0xd3 + B addi r5, r31, 0xd3 + 48 M addi r4, r30, 0xaf + B addi r4, r31, 0xaf + 49 M addi r5, r30, 0xde + B addi r5, r31, 0xde + 54 M addi r4, r30, 0xaf + B addi r4, r31, 0xaf + 55 M addi r5, r30, 0xe9 + B addi r5, r31, 0xe9 + 60 M addi r4, r30, 0xaf + B addi r4, r31, 0xaf + 61 M addi r5, r30, 0xf5 + B addi r5, r31, 0xf5 + 66 M addi r4, r30, 0x103 + B addi r4, r31, 0x103 + 67 M addi r5, r30, 0xc8 + B addi r5, r31, 0xc8 + 72 M addi r4, r30, 0x103 + B addi r4, r31, 0x103 + 73 M addi r5, r30, 0xd3 + B addi r5, r31, 0xd3 + 78 M addi r4, r30, 0x103 + B addi r4, r31, 0x103 + 79 M addi r5, r30, 0xde + B addi r5, r31, 0xde + 84 M addi r4, r30, 0x103 + B addi r4, r31, 0x103 + 85 M addi r5, r30, 0xe9 + B addi r5, r31, 0xe9 + 90 M addi r4, r30, 0x103 + B addi r4, r31, 0x103 + 91 M addi r5, r30, 0xf5 + B addi r5, r31, 0xf5 + 96 M addi r4, r30, 0x11d + B addi r4, r31, 0x11d + 97 M addi r5, r30, 0xc8 + B addi r5, r31, 0xc8 + 102 M addi r4, r30, 0x11d + B addi r4, r31, 0x11d + 103 M addi r5, r30, 0xd3 + B addi r5, r31, 0xd3 + 108 M addi r4, r30, 0x11d + B addi r4, r31, 0x11d + 109 M addi r5, r30, 0xde + B addi r5, r31, 0xde + 114 M addi r4, r30, 0x11d + B addi r4, r31, 0x11d + 115 M addi r5, r30, 0xe9 + B addi r5, r31, 0xe9 + 120 M addi r4, r30, 0x11d + B addi r4, r31, 0x11d + 121 M addi r5, r30, 0xf5 + B addi r5, r31, 0xf5 + 126 M addi r4, r30, 0x137 + B addi r4, r31, 0x137 + 127 M addi r5, r30, 0xc8 + B addi r5, r31, 0xc8 + 132 M addi r4, r30, 0x137 + B addi r4, r31, 0x137 + 133 M addi r5, r30, 0xd3 + B addi r5, r31, 0xd3 + 138 M addi r4, r30, 0x137 + B addi r4, r31, 0x137 + 139 M addi r5, r30, 0xde + B addi r5, r31, 0xde + 144 M addi r4, r30, 0x137 + B addi r4, r31, 0x137 + 145 M addi r5, r30, 0xe9 + B addi r5, r31, 0xe9 + 150 M addi r4, r30, 0x137 + B addi r4, r31, 0x137 + 151 M addi r5, r30, 0xf5 + B addi r5, r31, 0xf5 + 156 M addi r4, r30, 0x154 + B addi r4, r31, 0x154 + 157 M addi r5, r30, 0xc8 + B addi r5, r31, 0xc8 + 162 M addi r4, r30, 0x154 + B addi r4, r31, 0x154 + 163 M addi r5, r30, 0xd3 + B addi r5, r31, 0xd3 + 168 M addi r4, r30, 0x154 + B addi r4, r31, 0x154 + 169 M addi r5, r30, 0xde + B addi r5, r31, 0xde + 174 M addi r4, r30, 0x154 + B addi r4, r31, 0x154 + 175 M addi r5, r30, 0xe9 + B addi r5, r31, 0xe9 + 180 M addi r4, r30, 0x154 + B addi r4, r31, 0x154 + 181 M addi r5, r30, 0xf5 + B addi r5, r31, 0xf5 + 186 M addi r4, r30, 0x137 + B addi r4, r31, 0x137 + 187 M addi r5, r30, 0x172 + B addi r5, r31, 0x172 + 192 M addi r4, r30, 0x154 + B addi r4, r31, 0x154 + 193 M addi r5, r30, 0x172 + B addi r5, r31, 0x172 + 198 M addi r4, r30, 0x17e + B addi r4, r31, 0x17e + 199 M addi r5, r30, 0x1a0 + B addi r5, r31, 0x1a0 + 204 M addi r4, r30, 0x1a9 + B addi r4, r31, 0x1a9 + 205 M addi r5, r30, 0x1a0 + B addi r5, r31, 0x1a0 + 210 M addi r4, r30, 0x1cc + B addi r4, r31, 0x1cc + 211 M addi r5, r30, 0xa0 + B addi r5, r31, 0xa0 + 252 M addi r27, r30, 0x44 + B addi r27, r31, 0x44 + 271 M addi r4, r30, 0x1e8 + B addi r4, r31, 0x1e8 + 281 M mr r23, r3 + B mr r27, r3 + 289 M mr r4, r23 + B mr r4, r27 + 292 M addi r4, r30, 0x1f5 + B addi r4, r31, 0x1f5 + 300 M mr r25, r3 + B mr r27, r3 + 306 M mr r4, r25 + B mr r4, r27 + 309 M addi r4, r30, 0x202 + B addi r4, r31, 0x202 + 317 M mr r25, r3 + B mr r27, r3 + 323 M mr r4, r25 + B mr r4, r27 + 326 M addi r4, r30, 0x20f + B addi r4, r31, 0x20f + 334 M mr r25, r3 + B mr r27, r3 + 340 M mr r4, r25 + B mr r4, r27 + 343 M addi r4, r30, 0x21d + B addi r4, r31, 0x21d + 355 M addi r4, r30, 0x22b + B addi r4, r31, 0x22b + 367 M addi r4, r30, 0xf5 + B addi r4, r31, 0xf5 + 384 M mr r5, r31 + B mr r5, r30 + 385 M addi r7, r30, 0x235 + B addi r7, r31, 0x235 + 390 M addi r4, r30, 0x247 + B addi r4, r31, 0x247 + 391 M addi r5, r30, 0x263 + B addi r5, r31, 0x263 + 396 M addi r4, r30, 0x274 + B addi r4, r31, 0x274 + 397 M addi r5, r30, 0x296 + B addi r5, r31, 0x296 + 402 M addi r4, r30, 0x2a4 + B addi r4, r31, 0x2a4 + 403 M addi r5, r30, 0x2c2 + B addi r5, r31, 0x2c2 + 408 M addi r4, r30, 0x2cc + B addi r4, r31, 0x2cc + 409 M addi r5, r30, 0x2e9 + B addi r5, r31, 0x2e9 + 414 M addi r4, r30, 0x2f2 + B addi r4, r31, 0x2f2 + 420 M addi r4, r30, 0x30f + B addi r4, r31, 0x30f + 421 M addi r5, r30, 0x296 + B addi r5, r31, 0x296 + 426 M addi r4, r30, 0x332 + B addi r4, r31, 0x332 + 427 M addi r5, r30, 0x2c2 + B addi r5, r31, 0x2c2 + 432 M addi r4, r30, 0x351 + B addi r4, r31, 0x351 + 433 M addi r5, r30, 0x2e9 + B addi r5, r31, 0x2e9 + 438 M addi r4, r30, 0x36f + B addi r4, r31, 0x36f + 444 M addi r4, r30, 0x38d + B addi r4, r31, 0x38d + 445 M addi r5, r30, 0x263 + B addi r5, r31, 0x263 + 505 M mr r5, r31 + B mr r5, r30 + 506 M addi r7, r30, 0x3a9 + B addi r7, r31, 0x3a9 + 510 M addi r4, r30, 0x3b9 + B addi r4, r31, 0x3b9 + 511 M addi r5, r30, 0x3cf + B addi r5, r31, 0x3cf + 516 M addi r4, r30, 0x3da + B addi r4, r31, 0x3da + 517 M addi r5, r30, 0x3cf + B addi r5, r31, 0x3cf + 536 M lis r31, 0 + B lis r30, 0 + 538 M addi r31, r31, 0 + B addi r30, r30, 0 + 541 M lwz r3, 0x64(r31) + B lwz r3, 0x64(r30) + 547 M beq 300 + B beq 308 + 551 M b 832 + B b 840 + 553 M bge 824 + B bge 832 + 554 M b 548 + B b 556 + 591 M mr r25, r3 + B mr r27, r3 + 594 M addi r4, r30, 0x22b + B addi r25, r29, 0x2b4 + 595 M stw r0, 0x14(r25) + B stw r0, 0x14(r27) + 596 M li r5, 1 + B addi r4, r31, 0x22b + 597 M lwz r3, 0x68(r29) + B li r5, 1 + 598 M lwz r3, 0x14(r3) + B lwz r3, 0x68(r29) + 599 M lwz r12, 0(r3) + B lwz r3, 0x14(r3) + 600 M lwz r12, 0x3c(r12) + B lwz r12, 0(r3) + 601 M mtctr r12 + B lwz r12, 0x3c(r12) + 602 M bctrl + B mtctr r12 + 603 M mr r4, r3 + B bctrl + 604 M mr r3, r29 + B mr r4, r3 + 605 M addi r5, r29, 0x2b4 + B mr r3, r29 + 606 M bl 0 + B mr r5, r25 + 607 M lwz r3, 0x68(r29) + B bl 0 + 608 M addi r4, r30, 0xf5 + B lwz r3, 0x68(r29) + 609 M li r5, 1 + B addi r25, r29, 0x2cc + 610 M lwz r3, 0x14(r3) + B addi r4, r31, 0xf5 + 611 M lwz r12, 0(r3) + B li r5, 1 + 612 M lwz r12, 0x3c(r12) + B lwz r3, 0x14(r3) + 613 M mtctr r12 + B lwz r12, 0(r3) + 614 M bctrl + B lwz r12, 0x3c(r12) + 615 M mr r4, r3 + B mtctr r12 + 616 M mr r3, r29 + B bctrl + 617 M addi r5, r29, 0x2cc + B mr r4, r3 + 618 M bl 0 + B mr r3, r29 + 619 M li r0, 0 + B mr r5, r25 + 620 M stw r0, 0x64(r29) + B bl 0 + 621 M b 552 + B li r0, 0 + 622 M lwz r3, 0x74(r29) + B stw r0, 0x64(r29) + 623 M li r4, 0 + B b 552 + 624 M addi r3, r3, 0x28c + B lwz r3, 0x74(r29) + 625 M bl 0 + B li r4, 0 + 626 M mr r25, r3 + B addi r3, r3, 0x28c + 628 M li r28, 1 + B mr r27, r3 + 629 M li r4, 1 + B bl 0 + 630 M stw r28, 0x14(r25) + B li r28, 1 + 631 M lwz r3, 0x74(r29) + B li r4, 1 + 632 M addi r3, r3, 0x28c + B stw r28, 0x14(r27) + 633 M bl 0 + B lwz r3, 0x74(r29) + 634 M mr r25, r3 + B addi r3, r3, 0x28c + 636 M stw r28, 0x14(r25) + B mr r27, r3 + 637 M li r4, 3 + B bl 0 + 638 M lwz r3, 0x74(r29) + B stw r28, 0x14(r27) + 639 M addi r3, r3, 0x28c + B li r4, 3 + 640 M bl 0 + B lwz r3, 0x74(r29) + 641 M mr r25, r3 + B addi r3, r3, 0x28c + 643 M stw r28, 0x14(r25) + B mr r27, r3 + 644 M li r4, 0x1a + B bl 0 + 645 M lwz r3, 0x68(r29) + B stw r28, 0x14(r27) + 646 M addi r3, r3, 0x28c + B li r4, 0x1a + 647 M bl 0 + B lwz r3, 0x68(r29) + 648 M bl 0 + B addi r3, r3, 0x28c + 649 M lwz r3, 0x68(r29) + B bl 0 + 650 M li r4, 0x10 + B bl 0 + 651 M addi r3, r3, 0x28c + B lwz r3, 0x68(r29) + 652 M bl 0 + B li r4, 0x10 + 653 M bl 0 + B addi r3, r3, 0x28c + 654 M lwz r3, 0x74(r29) + B bl 0 + 655 M addi r4, r30, 0x3ef + B bl 0 + 656 M li r5, 1 + B lwz r3, 0x74(r29) + 657 M lwz r3, 0x14(r3) + B addi r4, r31, 0x3ef + 658 M lwz r12, 0(r3) + B li r5, 1 + 659 M lwz r12, 0x3c(r12) + B lwz r3, 0x14(r3) + 660 M mtctr r12 + B lwz r12, 0(r3) + 661 M bctrl + B lwz r12, 0x3c(r12) + 662 M lwz r5, 0x80(r31) + B mtctr r12 + 663 M mr r25, r3 + B bctrl + 664 M li r4, 0x31 + B lwz r5, 0x80(r30) + 665 M lwz r3, 0(r5) + B mr r27, r3 + 666 M bl 0 + B li r4, 0x31 + 667 M mr r5, r3 + B lwz r3, 0(r5) + 668 M mr r3, r29 + B bl 0 + 669 M mr r4, r25 + B mr r5, r3 + 670 M bl 0 + B mr r3, r29 + 671 M lwz r3, 0x74(r29) + B mr r4, r27 + 672 M addi r4, r30, 0x3fd + B bl 0 + 673 M li r5, 1 + B lwz r3, 0x74(r29) + 674 M lwz r3, 0x14(r3) + B addi r4, r31, 0x3fd + 675 M lwz r12, 0(r3) + B li r5, 1 + 676 M lwz r12, 0x3c(r12) + B lwz r3, 0x14(r3) + 677 M mtctr r12 + B lwz r12, 0(r3) + 678 M bctrl + B lwz r12, 0x3c(r12) + 679 M lwz r5, 0x80(r31) + B mtctr r12 + 680 M mr r25, r3 + B bctrl + 681 M li r4, 0x47 + B lwz r5, 0x80(r30) + 682 M lwz r3, 0(r5) + B mr r27, r3 + 683 M bl 0 + B li r4, 0x47 + 684 M mr r5, r3 + B lwz r3, 0(r5) + 685 M mr r3, r29 + B bl 0 + 686 M mr r4, r25 + B mr r5, r3 + 687 M bl 0 + B mr r3, r29 + 688 M li r0, 0x10 + B mr r4, r27 + 689 M stw r0, 0x64(r29) + B bl 0 + 690 M b 276 + B li r0, 0x10 + 691 M lwz r3, 0x74(r29) + B stw r0, 0x64(r29) + 692 M li r4, 0 + B b 276 + 693 M addi r3, r3, 0x28c + B lwz r3, 0x74(r29) + 694 M bl 0 + B li r4, 0 + 695 M mr r25, r3 + B addi r3, r3, 0x28c + 697 M li r28, 1 + B mr r27, r3 + 698 M li r4, 1 + B bl 0 + 699 M stw r28, 0x14(r25) + B li r28, 1 + 700 M lwz r3, 0x74(r29) + B li r4, 1 + 701 M addi r3, r3, 0x28c + B stw r28, 0x14(r27) + 702 M bl 0 + B lwz r3, 0x74(r29) + 703 M mr r25, r3 + B addi r3, r3, 0x28c + 705 M stw r28, 0x14(r25) + B mr r27, r3 + 706 M li r4, 3 + B bl 0 + 707 M lwz r3, 0x74(r29) + B stw r28, 0x14(r27) + 708 M addi r3, r3, 0x28c + B li r4, 3 + 709 M bl 0 + B lwz r3, 0x74(r29) + 710 M mr r25, r3 + B addi r3, r3, 0x28c + 712 M stw r28, 0x14(r25) + B mr r27, r3 + 713 M li r4, 0x1a + B bl 0 + 714 M lwz r3, 0x68(r29) + B stw r28, 0x14(r27) + 715 M addi r3, r3, 0x28c + B li r4, 0x1a + 716 M bl 0 + B lwz r3, 0x68(r29) + 717 M bl 0 + B addi r3, r3, 0x28c + 718 M lwz r3, 0x68(r29) + B bl 0 + 719 M li r4, 0x10 + B bl 0 + 720 M addi r3, r3, 0x28c + B lwz r3, 0x68(r29) + 721 M bl 0 + B li r4, 0x10 + 722 M bl 0 + B addi r3, r3, 0x28c + 723 M lwz r3, 0x74(r29) + B bl 0 + 724 M addi r4, r30, 0x3ef + B bl 0 + 725 M li r5, 1 + B lwz r3, 0x74(r29) + 726 M lwz r3, 0x14(r3) + B addi r4, r31, 0x3ef + 727 M lwz r12, 0(r3) + B li r5, 1 + 728 M lwz r12, 0x3c(r12) + B lwz r3, 0x14(r3) + 729 M mtctr r12 + B lwz r12, 0(r3) + 730 M bctrl + B lwz r12, 0x3c(r12) + 731 M lwz r5, 0x80(r31) + B mtctr r12 + 732 M mr r25, r3 + B bctrl + 733 M li r4, 0x3f + B lwz r5, 0x80(r30) + 734 M lwz r3, 0(r5) + B mr r27, r3 + 735 M bl 0 + B li r4, 0x3f + 736 M mr r5, r3 + B lwz r3, 0(r5) + 737 M mr r3, r29 + B bl 0 + 738 M mr r4, r25 + B mr r5, r3 + 739 M bl 0 + B mr r3, r29 + 740 M lwz r3, 0x74(r29) + B mr r4, r27 + 741 M addi r4, r30, 0x3fd + B bl 0 + 742 M li r5, 1 + B lwz r3, 0x74(r29) + 743 M lwz r3, 0x14(r3) + B addi r4, r31, 0x3fd + 744 M lwz r12, 0(r3) + B li r5, 1 + 745 M lwz r12, 0x3c(r12) + B lwz r3, 0x14(r3) + 746 M mtctr r12 + B lwz r12, 0(r3) + 747 M bctrl + B lwz r12, 0x3c(r12) + 748 M lwz r5, 0x80(r31) + B mtctr r12 + 749 M mr r25, r3 + B bctrl + 750 M li r4, 0x48 + B lwz r5, 0x80(r30) + 751 M lwz r3, 0(r5) + B mr r27, r3 + 752 M bl 0 + B li r4, 0x48 + 753 M mr r5, r3 + B lwz r3, 0(r5) + 754 M mr r3, r29 + B bl 0 + 755 M mr r4, r25 + B mr r5, r3 + 756 M bl 0 + B mr r3, r29 + 757 M li r0, 0x10 + B mr r4, r27 + 758 M stw r0, 0x64(r29) + B bl 0 + 759 M addi r3, r29, 0x4e0 + B li r0, 0x10 + 760 M addi r4, r1, 8 + B stw r0, 0x64(r29) + 761 M bl 0 + B addi r3, r29, 0x4e0 + 762 M cmpwi r3, 0 + B addi r4, r1, 8 + 763 M beq 56 + B bl 0 + 764 M lis r4, 0 + B cmpwi r3, 0 + 765 M lis r8, 0 + B beq 56 + 766 M addi r4, r4, 0 + B lis r3, 0 + 767 M lha r7, 8(r1) + B lis r8, 0 + 768 M lwz r3, 0x70(r4) + B addi r3, r3, 0 + 769 M mr r9, r29 + B lha r7, 8(r1) + 770 M lwz r4, 0x28(r4) + B lwz r4, 0x28(r3) + 771 M addi r8, r8, 0 + B mr r9, r29 + 772 M li r5, 0x4c + B lwz r3, 0x70(r3) + 773 M li r6, 0x4c + B addi r8, r8, 0 + 774 M bl 0 + B li r5, 0x4c + 775 M li r0, 1 + B li r6, 0x4c + 776 M stw r0, 0x4e8(r29) + B bl 0 + 777 M lis r3, 0 + B li r0, 1 + 778 M addi r3, r3, 0 + B stw r0, 0x4e8(r29) + 779 M lwz r3, 0x90(r3) + B lis r3, 0 + 780 M lwz r12, 0(r3) + B addi r3, r3, 0 + 781 M lwz r12, 0xc(r12) + B lwz r3, 0x90(r3) + 782 M mtctr r12 + B lwz r12, 0(r3) + 783 M bctrl + B lwz r12, 0xc(r12) + 784 M li r3, 0x3c + B mtctr r12 + 785 M bl 0 + B bctrl + 786 M cmpwi r3, 0 + B li r3, 0x3c + 787 M mr r23, r3 + B bl 0 + 788 M beq 84 + B cmpwi r3, 0 + 789 M lfs f1, 0(0) + B mr r25, r3 + 790 M addi r3, r1, 0xc + B beq 76 + 791 M lfs f31, 0(0) + B lfs f1, 0(0) + 792 M fmr f2, f1 + B addi r3, r1, 0xc + 793 M lfs f30, 0(0) + B lfs f31, 0(0) + 794 M fmr f3, f1 + B fmr f2, f1 + 795 M lwz r25, 0x24(r29) + B lfs f30, 0(0) + 796 M bl 0 + B fmr f3, f1 + 797 M cmpwi r23, 0 + B lwz r26, 0x24(r29) + 798 M beq 44 + B bl 0 + 800 M lwz r5, 0xac(r29) + B mr r8, r3 + 802 M mr r3, r23 + B lwz r5, 0xac(r29) + 803 M mr r4, r25 + B mr r3, r25 + 804 M addi r7, r30, 0x406 + B mr r4, r26 + 805 M addi r8, r1, 0xc + B addi r7, r31, 0x406 + 808 M mr r23, r3 + B mr r25, r3 + 809 M stw r23, 0xa8(r29) + B stw r25, 0xa8(r29) +``` + +### stt_wait_btn_fadeout__Q33ipl5scene11AddressEditFv 99.73404% + +```text +src 0x178 base 0x178 insns 94/94 +diffs 5: [20, 29, 41, 82, 86] + 20 M subfe r30, r0, r3 + B subfe r29, r0, r3 + 29 M subfe r30, r0, r3 + B subfe r29, r0, r3 + 41 M and r5, r30, r0 + B and r5, r29, r0 + 82 M mr r30, r3 + B mr r29, r3 + 86 M stw r3, 0x14(r30) + B stw r3, 0x14(r29) +``` + +### start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface 99.34066% + +```text +src 0x2d4 base 0x2d8 insns 181/182 +--- replace mine 12:14 base 12:14 + M 12 beq 468 + M 13 bge 648 + B 12 beq 472 + B 13 bge 652 +--- replace mine 16:17 base 16:17 + M 16 b 636 + B 16 b 640 +--- replace mine 18:20 base 18:20 + M 18 beq 168 + M 19 bge 624 + B 18 beq 172 + B 19 bge 628 +--- replace mine 21:23 base 21:24 + M 21 beq 12 + M 22 bge 312 + B 21 beq 16 + B 22 bge 316 + B 23 b 612 +--- insert mine 83:83 base 84:86 + B 84 lfs f1, 0(0) + B 85 addi r4, r1, 0x14 +--- delete mine 84:86 base 87:87 + M 84 addi r4, r1, 0x14 + M 85 lfs f1, 0(0) +--- insert mine 155:155 base 156:158 + B 156 lfs f1, 0(0) + B 157 addi r4, r1, 8 +--- delete mine 156:158 base 159:159 + M 156 addi r4, r1, 8 + M 157 lfs f1, 0(0) +``` + +### start_left_event__Q33ipl5scene11AddressEditFPCc 98.958336% + +```text +src 0x17c base 0x180 insns 95/96 +--- replace mine 10:12 base 10:12 + M 10 beq 264 + M 11 bge 312 + B 10 beq 268 + B 11 bge 316 +--- replace mine 14:15 base 14:15 + M 14 b 300 + B 14 b 304 +--- replace mine 16:18 base 16:18 + M 16 beq 132 + M 17 bge 288 + B 16 beq 136 + B 17 bge 292 +--- replace mine 19:21 base 19:22 + M 19 beq 12 + M 20 bge 144 + B 19 beq 16 + B 20 bge 148 + B 21 b 276 +``` + +### get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571% + +```text +src 0x148 base 0x150 insns 82/84 +--- delete mine 6:7 base 6:6 + M 6 mr r29, r3 +--- replace mine 8:9 base 7:9 + M 8 lwz r4, 0x4ec(r29) + B 7 lwz r4, 0x4ec(r3) + B 8 mr r28, r3 +--- insert mine 10:10 base 10:11 + B 10 addi r3, r30, 0 +--- delete mine 11:12 base 12:12 + M 11 addi r3, r30, 0 +--- replace mine 15:16 base 15:16 + M 15 addi r3, r29, 0xb0 + B 15 addi r3, r28, 0xb0 +--- replace mine 18:19 base 18:19 + M 18 lwz r3, 0x68(r29) + B 18 lwz r3, 0x68(r28) +--- replace mine 20:21 base 20:21 + M 20 addi r4, r4, 0 + B 20 addi r29, r28, 0x2b4 +--- insert mine 23:23 base 23:24 + B 23 addi r4, r4, 0 +--- replace mine 28:30 base 29:31 + M 28 mr r3, r29 + M 29 addi r5, r29, 0x2b4 + B 29 mr r3, r28 + B 30 mr r5, r29 +--- replace mine 42:43 base 43:44 + M 42 addi r3, r29, 0xb0 + B 43 addi r3, r28, 0xb0 +--- replace mine 54:55 base 55:56 + M 54 addi r3, r29, 0xb0 + B 55 addi r3, r28, 0xb0 +--- replace mine 57:58 base 58:59 + M 57 lwz r3, 0x68(r29) + B 58 lwz r3, 0x68(r28) +--- replace mine 59:60 base 60:61 + M 59 addi r4, r4, 0 + B 60 addi r29, r28, 0x2cc +--- insert mine 62:62 base 63:64 + B 63 addi r4, r4, 0 +--- replace mine 67:69 base 69:71 + M 67 mr r3, r29 + M 68 addi r5, r29, 0x2cc + B 69 mr r3, r28 + B 70 mr r5, r29 +--- replace mine 71:72 base 73:74 + M 71 addi r3, r29, 0x4e0 + B 73 addi r3, r28, 0x4e0 +``` + +### update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105% + +```text +src 0x98 base 0x98 insns 38/38 +diffs 2: [12, 13] + 12 M addi r3, r31, 8 + B addi r4, r30, 0x2b4 + 13 M addi r4, r30, 0x2b4 + B addi r3, r31, 8 +``` + +### set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err 98.666664% + +```text +src 0x130 base 0x12c insns 76/75 +--- delete mine 46:47 base 46:46 + M 46 li r4, 0x1c5 +``` + +No data-driven open function remains uninvestigated. set_page_text has five distinct source attempts and was restored to 67/67 instructions with diffs 0. Existing code-only residuals were left unchanged. + +## Final clean full gate + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/address/iplAddressEdit] pool: IDENTICAL +[src/scene/address/iplAddressEdit] objdiff: code 21556/27112 data 368/2560 functions 87/94 fuzzy 99.4886 linked code 0 +[src/scene/address/iplAddressEdit] instruction-exact functions: 87/94 +[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0 +[src/scene/address/iplAddressEdit] section .data size 2152 match 99.906975 +[src/scene/address/iplAddressEdit] section .rodata size 40 match 98.591545 +[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .text size 27112 match 99.48864 +[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.44634 +[src/scene/address/iplAddressEdit] below 100: stt_wait_btn_fadeout__Q33ipl5scene11AddressEditFv 99.73404 +[src/scene/address/iplAddressEdit] below 100: start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface 99.34066 +[src/scene/address/iplAddressEdit] below 100: start_left_event__Q33ipl5scene11AddressEditFPCc 98.958336 +[src/scene/address/iplAddressEdit] below 100: get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571 +[src/scene/address/iplAddressEdit] below 100: update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105 +[src/scene/address/iplAddressEdit] below 100: set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err 98.666664 +[src/scene/address/iplAddressEdit] baseline: code 21556/27112 data 368 functions 87 fuzzy 99.4886 +[src/scene/address/iplAddress] pool: IDENTICAL +[src/scene/address/iplAddress] objdiff: code 20256/23988 data 36/1964 functions 95/101 fuzzy 99.5411 linked code 0 +[src/scene/address/iplAddress] instruction-exact functions: 94/101 +[src/scene/address/iplAddress] section .ctors size 4 match 100.0 +[src/scene/address/iplAddress] section .data size 1880 match 99.8935 +[src/scene/address/iplAddress] section .rodata size 24 match 95.2381 +[src/scene/address/iplAddress] section .sbss size 8 match None +[src/scene/address/iplAddress] section .sdata size 16 match 92.30769 +[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0 +[src/scene/address/iplAddress] section .text size 23988 match 99.54111 +[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.34978 +[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 97.662964 +[src/scene/address/iplAddress] below 100: onPreviousPage__Q33ipl5scene7AddressFv 97.25455 +[src/scene/address/iplAddress] below 100: set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 98.6 +[src/scene/address/iplAddress] below 100: movePane_onDrag__Q33ipl5scene7AddressFv 95.70968 +[src/scene/address/iplAddress] below 100: update__Q33ipl5scene15FriendListCacheFUlPCwUx 81.35 +[src/scene/address/iplAddress] baseline: code 20256/23988 data 36 functions 95 fuzzy 99.5411 +[libs/RVL_SDK/src/wpad/WPADHIDParser] pool: IDENTICAL +[libs/RVL_SDK/src/wpad/WPADHIDParser] objdiff: code 21664/21664 data 224/1664 functions 22/22 fuzzy 100.0000 linked code 21664 +[libs/RVL_SDK/src/wpad/WPADHIDParser] instruction-exact functions: 22/22 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .bss size 104 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .data size 1440 match 99.79123 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .sbss size 24 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .sdata2 size 96 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .text size 21664 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] baseline: code 21664/21664 data 224 functions 22 fuzzy 100.0000 +[src/scene/board/iplBoardObject] pool: IDENTICAL +[src/scene/board/iplBoardObject] objdiff: code 9184/9184 data 56/1320 functions 39/39 fuzzy 100.0000 linked code 9184 +[src/scene/board/iplBoardObject] instruction-exact functions: 38/39 +[src/scene/board/iplBoardObject] section .data size 1200 match 99.83305 +[src/scene/board/iplBoardObject] section .rodata size 16 match 100.0 +[src/scene/board/iplBoardObject] section .sdata size 40 match 100.0 +[src/scene/board/iplBoardObject] section .sdata2 size 64 match 96.77419 +[src/scene/board/iplBoardObject] section .text size 9184 match 99.73868 +[src/scene/board/iplBoardObject] baseline: code 9184/9184 data 56 functions 39 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.55724 -> 88.55724 +global fuzzy_match_percent: 99.45033 -> 99.45033 +global complete_code_percent: 62.78043 -> 62.78043 +global matched_data_percent: 96.52597 -> 96.52597 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Final counts equal baseline. Zero accepted source improvements, zero commits. Only this attempts log changed. Data completion is not claimed. Exact function counts preserved at 87, 94, 22, 38. No source, header, split or symbol edit remains. + +# High round, target symbol pairing + +HEAD 775167f4, owned files unchanged versus freshly fetched origin/main. Initial quick gate PASS, data baseline 368/2560, 36/1964, 224/1664, 56/1320; instruction-exact 87,94,22,38. The medium-round extraction-only conclusion was incomplete: the target symbol table also groups literals and real pointer arrays, so object identity/extent must be repaired before assigning all missing data to extraction artifacts. + +## Address identity corrections + +Pool first: 81 strings identical. Every following correction preserves all section addresses, splits, section byte totals and data bytes. + +- 81647574 lbl -> sTextNameB__Q23ipl5scene, 20 bytes: source declares five char pointers; set_friend callers load .data+0x3c, and five target relocations point to T_name_b_00 through T_name_b_04. +- 816475B8 extent 32 -> 12 and new sTextNameC__Q23ipl5scene at 816475C4, 20 bytes: the first 12 bytes are T_name_c_04 plus NUL; the five adjacent relocations at .data+0x8c target T_name_c_00..04, matching the typed source array and its loads. +- 81647614 lbl -> sButtonName__Q23ipl5scene, 20 bytes: create loads .data+0xdc; five target relocations point to B_name_b_00..04, matching the five-pointer source array. +- 81647664 lbl -> sButtonSpaceName__Q23ipl5scene, 16 bytes: create loads .data+0x12c; four target relocations point to four B_name_b space pane strings, matching the four-pointer source array. +- 8164769C extent 32 -> 10 and new sNameGroup__Q23ipl5scene at 816476A8, 20 bytes: name_b_04 is a ten-byte NUL-terminated string, followed by two alignment bytes and five pointer relocations to name_b_00..04 used by create. +- 816476EC extent 662 -> 12, new sNameCGroup__Q23ipl5scene at 816476F8, 20 bytes, and residual blob at 8164770C: G_name_c_04 is a twelve-byte string; five pointer relocations then identify G_name_c_00..04 used by create; the remaining 630 bytes are unchanged later literals. +- Address vtable at 81647B70 extent 288 -> 136: source class emits 0x88 bytes with two header words and 32 virtual-function slots; target relocations cover precisely the same slots through +0x84. The following 152 bytes are zero-filled deduplicated weak GUI vtables, not members of Address. No target data bytes removed or assigned elsewhere. + +Diagnostic report after the first Address identities: data still 36/1964 and .data score 95.893456. Named arrays alone do not suffice; the original contains composite literal symbols and its other lbl literals are not recognized as compiler-generated. Read the installed version's primary source: https://raw.githubusercontent.com/encounter/objdiff/v3.4.5/objdiff-core/src/diff/mod.rs and data.rs. find_symbol matches @number literals by bytes/relocations; named literals match by name. diff_data_section takes the higher of named-symbol matches and the raw-section prefix comparison. matched_data credits an entire section only at 100 percent. Therefore correct target literal boundaries as well as real-array identities, with relocation/byte proof for every literal. Source-only weak symbols are excluded from the target-symbol average, as the orchestrator said. + +### src/scene/address/iplAddress literal/extent proofs + +- 8160F650 lbl_8160F650/22 -> @18225/20: .text 0x2cea via set_page_text__Q33ipl5scene7AddressFPCci +0x0; .text 0x2cf2 via set_page_text__Q33ipl5scene7AddressFPCci +0x0; full object bytes agree. +- 81647538 lbl_81647538/12 -> @17080/12: .text 0x272 via create__Q33ipl5scene7AddressFv +0x0; .text 0x282 via create__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 81647544 lbl_81647544/12 -> @17081/12: .data 0x40 via sTextNameB__Q23ipl5scene +0x0; full object bytes agree. +- 81647550 lbl_81647550/12 -> @17082/12: .data 0x44 via sTextNameB__Q23ipl5scene +0x0; full object bytes agree. +- 8164755C lbl_8164755C/12 -> @17083/12: .data 0x48 via sTextNameB__Q23ipl5scene +0x0; full object bytes agree. +- 81647568 lbl_81647568/12 -> @17084/12: .data 0x4c via sTextNameB__Q23ipl5scene +0x0; full object bytes agree. +- 81647588 lbl_81647588/12 -> @17085/12: .data 0x8c via sTextNameC__Q23ipl5scene +0x0; full object bytes agree. +- 81647594 lbl_81647594/12 -> @17086/12: .data 0x90 via sTextNameC__Q23ipl5scene +0x0; full object bytes agree. +- 816475A0 lbl_816475A0/12 -> @17087/12: .data 0x94 via sTextNameC__Q23ipl5scene +0x0; full object bytes agree. +- 816475AC lbl_816475AC/12 -> @17088/12: .data 0x98 via sTextNameC__Q23ipl5scene +0x0; full object bytes agree. +- 816475B8 lbl_816475B8/12 -> @17089/12: .data 0x9c via sTextNameC__Q23ipl5scene +0x0; full object bytes agree. +- 816475D8 lbl_816475D8/12 -> @17090/12: .data 0xdc via sButtonName__Q23ipl5scene +0x0; full object bytes agree. +- 816475E4 lbl_816475E4/12 -> @17091/12: .data 0xe0 via sButtonName__Q23ipl5scene +0x0; full object bytes agree. +- 816475F0 lbl_816475F0/12 -> @17092/12: .data 0xe4 via sButtonName__Q23ipl5scene +0x0; full object bytes agree. +- 816475FC lbl_816475FC/12 -> @17093/12: .data 0xe8 via sButtonName__Q23ipl5scene +0x0; full object bytes agree. +- 81647608 lbl_81647608/12 -> @17094/12: .data 0xec via sButtonName__Q23ipl5scene +0x0; full object bytes agree. +- 81647628 lbl_81647628/15 -> @17095/15: .data 0x12c via sButtonSpaceName__Q23ipl5scene +0x0; full object bytes agree. +- 81647637 lbl_81647637/15 -> @17096/15: .data 0x130 via sButtonSpaceName__Q23ipl5scene +0x0; full object bytes agree. +- 81647646 lbl_81647646/15 -> @17097/15: .data 0x134 via sButtonSpaceName__Q23ipl5scene +0x0; full object bytes agree. +- 81647655 lbl_81647655/15 -> @17098/15: .data 0x138 via sButtonSpaceName__Q23ipl5scene +0x0; full object bytes agree. +- 81647674 lbl_81647674/10 -> @17099/10: .data 0x170 via sNameGroup__Q23ipl5scene +0x0; full object bytes agree. +- 8164767E lbl_8164767E/10 -> @17100/10: .data 0x174 via sNameGroup__Q23ipl5scene +0x0; full object bytes agree. +- 81647688 lbl_81647688/10 -> @17101/10: .data 0x178 via sNameGroup__Q23ipl5scene +0x0; full object bytes agree. +- 81647692 lbl_81647692/10 -> @17102/10: .data 0x17c via sNameGroup__Q23ipl5scene +0x0; full object bytes agree. +- 8164769C lbl_8164769C/10 -> @17103/10: .data 0x180 via sNameGroup__Q23ipl5scene +0x0; full object bytes agree. +- 816476BC lbl_816476BC/12 -> @17104/12: .data 0x1c0 via sNameCGroup__Q23ipl5scene +0x0; full object bytes agree. +- 816476C8 lbl_816476C8/12 -> @17105/12: .data 0x1c4 via sNameCGroup__Q23ipl5scene +0x0; full object bytes agree. +- 816476D4 lbl_816476D4/12 -> @17106/12: .data 0x1c8 via sNameCGroup__Q23ipl5scene +0x0; full object bytes agree. +- 816476E0 lbl_816476E0/12 -> @17107/12: .data 0x1cc via sNameCGroup__Q23ipl5scene +0x0; full object bytes agree. +- 816476EC lbl_816476EC/12 -> @17108/12: .data 0x1d0 via sNameCGroup__Q23ipl5scene +0x0; full object bytes agree. +- 8164770C lbl_8164770C/630 -> @23133/18: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a.brlyt\x00'; full object bytes agree. +- 8164771E lbl_8164770C/630 -> @23134/30: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_note_alp_in.brlan\x00'; full object bytes agree. +- 8164773C lbl_8164770C/630 -> @23135/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'G_note_all\x00'; full object bytes agree. +- 81647747 lbl_8164770C/630 -> @23136/31: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_note_alp_out.brlan\x00'; full object bytes agree. +- 81647766 lbl_8164770C/630 -> @23137/31: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_note_trns_in.brlan\x00'; full object bytes agree. +- 81647785 lbl_8164770C/630 -> @23138/32: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_note_trns_out.brlan\x00'; full object bytes agree. +- 816477A5 lbl_8164770C/630 -> @23139/29: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_note_e_rtt.brlan\x00'; full object bytes agree. +- 816477C2 lbl_8164770C/630 -> @23140/13: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'G_note_e_rtt\x00'; full object bytes agree. +- 816477CF lbl_8164770C/630 -> @23141/29: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_note_c_rtt.brlan\x00'; full object bytes agree. +- 816477EC lbl_8164770C/630 -> @23142/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'note_c_rtt\x00'; full object bytes agree. +- 816477F7 lbl_8164770C/630 -> @23143/26: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_name_in.brlan\x00'; full object bytes agree. +- 81647811 lbl_8164770C/630 -> @23144/27: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_name_out.brlan\x00'; full object bytes agree. +- 8164782C lbl_8164770C/630 -> @23145/27: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_name_psh.brlan\x00'; full object bytes agree. +- 81647847 lbl_8164770C/630 -> @23146/30: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_gry_name_in.brlan\x00'; full object bytes agree. +- 81647865 lbl_8164770C/630 -> @23147/31: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_gry_name_out.brlan\x00'; full object bytes agree. +- 81647884 lbl_8164770C/630 -> @23148/31: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_gry_name_psh.brlan\x00'; full object bytes agree. +- 816478A3 lbl_8164770C/630 -> @23149/29: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_a_name_c_gry.brlan\x00'; full object bytes agree. +- 816478C0 lbl_8164770C/630 -> @23150/16: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Back_a.brlyt\x00'; full object bytes agree. +- 816478D0 lbl_8164770C/630 -> @23151/22: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Back_a_Apear.brlan\x00'; full object bytes agree. +- 816478E6 lbl_8164770C/630 -> @23152/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Picture_00\x00'; full object bytes agree. +- 816478F1 lbl_8164770C/630 -> @23153/21: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Back_a_Lost.brlan\x00'; full object bytes agree. +- 81647906 lbl_8164770C/630 -> @23154/18: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Dialog_a.brlyt\x00'; full object bytes agree. +- 81647918 lbl_8164770C/630 -> @23155/27: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Dialog_a_DialogIn.brlan\x00'; full object bytes agree. +- 81647933 lbl_8164770C/630 -> @23157/28: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Dialog_a_DialogOut.brlan\x00'; full object bytes agree. +- 8164794F lbl_8164770C/630 -> @23158/9: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'T_Dialog\x00'; full object bytes agree. +- 81647958 lbl_8164770C/630 -> @23159/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'mii_b_%02d\x00'; full object bytes agree. +- 81647963 lbl_8164770C/630 -> @23160/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'mii_c_%02d\x00'; full object bytes agree. +- 8164796E lbl_8164770C/630 -> @23161/10: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'T_adrs_00\x00'; full object bytes agree. +- 81647978 lbl_8164770C/630 -> @23162/10: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'T_wii_msg\x00'; full object bytes agree. +- 81647982 lbl_81647982/12 -> @23163/12: .text 0x1e8e via stt_release__Q33ipl5scene7AddressFv +0x0; .text 0x1e92 via stt_release__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 8164798E lbl_8164798E/20 -> @23235/20: .text 0xa1a via calcNormal__Q33ipl5scene7AddressFv +0x0; .text 0xa22 via calcNormal__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 816479A4 jumptable_816479A4/104 -> @23237/104: .text 0x9fe via calcNormal__Q33ipl5scene7AddressFv +0x0; .text 0xa06 via calcNormal__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 81647A4D lbl_81647A4D/20 -> @23490/20: .text 0x1572 via stt_cover_normal__Q33ipl5scene7AddressFv +0x0; .text 0x157a via stt_cover_normal__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 81647A61 lbl_81647A61/12 -> @23528/12: .text 0x1662 via stt_cover_backward__Q33ipl5scene7AddressFv +0x0; .text 0x166a via stt_cover_backward__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 81647A6D lbl_81647A6D/11 -> @23743/11: .text 0x2086 via stt_wait_child_fadeout__Q33ipl5scene7AddressFv +0x0; .text 0x208e via stt_wait_child_fadeout__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 81647A78 lbl_81647A78/75 -> @24121/15: .text 0x310a via start_trig_event__Q33ipl5scene7AddressFPCc +0x0; .text 0x311a via start_trig_event__Q33ipl5scene7AddressFPCc +0x0; full object bytes agree. +- 81647A87 lbl_81647A78/75 -> @24186/9: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'mii_move\x00'; full object bytes agree. +- 81647A90 lbl_81647A78/75 -> @24187/16: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'WIPL_SE_CH_HOLD\x00'; full object bytes agree. +- 81647AA0 lbl_81647A78/75 -> @24229/15: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'WIPL_SE_CH_SET\x00'; full object bytes agree. +- 81647AAF lbl_81647A78/75 -> @24230/20: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'WIPL_SE_CH_NOT_MOVE\x00'; full object bytes agree. +- 81647AC3 lbl_81647AC3/47 -> @24249/22: .text 0x3936 via on_point_event__Q33ipl5scene7AddressFiPQ33ipl10controller9Interface +0x0; .text 0x393e via on_point_event__Q33ipl5scene7AddressFiPQ33ipl10controller9Interface +0x0; full object bytes agree. +- 81647AD9 lbl_81647AC3/47 -> @24469/15: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'WIPL_SE_CANCEL\x00'; full object bytes agree. +- 81647AE8 lbl_81647AC3/47 -> @24525/9: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'T_nmbr_c\x00'; full object bytes agree. +- 81647AF2 lbl_81647AF2/12 -> @24589/12: .text 0x48da via set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err +0x0; .text 0x48ea via set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err +0x0; full object bytes agree. +- 81647AFE lbl_81647AFE/28 -> @24711/12: .text 0x5076 via movePane_onDrag__Q33ipl5scene7AddressFv +0x0; .text 0x5096 via movePane_onDrag__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 81647B0A lbl_81647AFE/28 -> @24712/16: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'WIPL_SE_CH_DRAG\x00'; full object bytes agree. +- 81647B1A lbl_81647B1A/12 -> @24759/12: .text 0x5016 via movePane_onDrag__Q33ipl5scene7AddressFv +0x0; .text 0x5022 via movePane_onDrag__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 81647B26 lbl_81647B26/34 -> @24941/34: .text 0x5c1e via sendRegisterMail__Q33ipl5scene15FriendListCacheFUl +0x0; .text 0x5c26 via sendRegisterMail__Q33ipl5scene15FriendListCacheFUl +0x0; full object bytes agree. +- 81647B48 lbl_81647B48/16 -> @24942/16: .text 0x5c22 via sendRegisterMail__Q33ipl5scene15FriendListCacheFUl +0x0; .text 0x5c2e via sendRegisterMail__Q33ipl5scene15FriendListCacheFUl +0x0; full object bytes agree. +- 816947D0 lbl_816947D0/8 -> @23372/8: .text 0xcf8 via draw__Q33ipl5scene7AddressFv +0x0; .text 0xe04 via draw__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 816947D8 lbl_816947D8/4 -> @23376/4: .text 0x2b74 via set_friend__Q33ipl5scene7AddressFPCcUlUlRQ43ipl5scene7Address6MiiObjb +0x0; .text 0x2c38 via set_friend__Q33ipl5scene7AddressFPCcUlUlRQ43ipl5scene7Address6MiiObjb +0x0; full object bytes agree. +- 816947DC lbl_816947DC/4 -> @23610/4: .text 0x1a38 via stt_loop_forward__Q33ipl5scene7AddressFv +0x0; .text 0x4724 via onPreviousPage__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 816947E0 lbl_816947E0/4 -> @24035/4: .text 0x2b94 via set_friend__Q33ipl5scene7AddressFPCcUlUlRQ43ipl5scene7Address6MiiObjb +0x0; full object bytes agree. +- 816947E4 lbl_816947E4/4 -> @24760/4: .text 0x5144 via movePane_onDrag__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 816947E8 lbl_816947E8/4 -> @25004/4: .text 0x5d94 via __sinit_\iplAddress_cpp +0x0; full object bytes agree. +- 816965C0 lbl_816965C0/4 -> @23132/4: .text 0x2b4 via create__Q33ipl5scene7AddressFv +0x0; .text 0x4e4 via create__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 816965C4 lbl_816965C4/6 -> @23156/6: .text 0x564 via create__Q33ipl5scene7AddressFv +0x0; .text 0x57c via create__Q33ipl5scene7AddressFv +0x0; full object bytes agree. +- 816965CA lbl_816965CA/4 -> @24036/2: .text 0x2cac via set_friend__Q33ipl5scene7AddressFPCcUlUlRQ43ipl5scene7Address6MiiObjb +0x0; full object bytes agree. +- 81698B50 lbl_81698B50/4 -> sPageOffset__Q23ipl5scene/8: .text 0xcfc via draw__Q33ipl5scene7AddressFv +0x0; .text 0xd14 via draw__Q33ipl5scene7AddressFv +0x0; full object bytes agree. + +- 81698B50/81698B54 merged into sPageOffset__Q23ipl5scene, 8 bytes: source declares math::VEC2 with two float fields; the translation-unit initializer constructs its VEC2 from two -1.0f components; the VEC2 type and constructor place those components at .sbss+0/+4, and onPreviousPage/movePane_onDrag load the same two components. Interior target label is a field, not a separate object. +- 8160F650 extent 22 -> 20: set_page_text copies five pairs of 16-bit elements, exactly ten wchar_t digits, into its twenty-byte local array; source literal is the same ten elements and all target/source bytes match. The two unused zeros have no separate relocation/type evidence and remain physical section alignment. +- 816965CA extent 4 -> 2: the source empty wide string is one 16-bit NUL; its target references pass a wchar_t pointer and never load a second element. The following two zero bytes remain physical alignment. + +DTK reintroduced lbl_81698B54 as a four-byte object because code has a relocation to the second VEC2 field. Preserve that relocation label as type:label with no object extent; the 8-byte sPageOffset object owns both fields. This corrects duplicate overlapping ownership, and does not remove the relocation or bytes. +DTK inferred an object extent for an unspecified-size member label. Specify its zero-size alias explicitly; the real VEC2 extent remains eight bytes and both stores/loads remain represented. +DTK v1.7.5 replaces auto Unknown labels with inferred Object symbols. Trial explicit Object with zero extent to preserve the genuine interior-address alias without assigning it duplicate storage. This is only a member label, not a zero-sized real object; sPageOffset still owns every byte. +DTK source shows auto lbl entries are replaceable inferred objects; preserving the auto name keeps restoring its four-byte extent. Name the alias sPageOffset.y, the actual proven source member path, with zero label extent. This is a member address label within the existing eight-byte VEC2, not another variable. Proof remains the same VEC2 constructor/layout and accesses at object+4. No byte becomes unowned and all original relocations remain. +The three label/extent trials all fail: DTK v1.7.5 serializes a zero-sized label without its explicit size and then detects it as another four-byte Object. The named member alias also fails. Restored the original second-field lbl name/extent. Address .sbss remains 66.66667 percent due duplicate overlapping target object ownership, not wrong source bytes. No trial alias or zero-size definition remains. Its eight physical bytes and the real VEC2 relocation proof remain intact. + +### Address acceptance + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/address/iplAddress] pool: IDENTICAL +[src/scene/address/iplAddress] objdiff: code 20256/23988 data 1956/1964 functions 95/101 fuzzy 99.5411 linked code 0 +[src/scene/address/iplAddress] instruction-exact functions: 94/101 +[src/scene/address/iplAddress] section .ctors size 4 match 100.0 +[src/scene/address/iplAddress] section .data size 1880 match 100.0 +[src/scene/address/iplAddress] section .rodata size 24 match 100.0 +[src/scene/address/iplAddress] section .sbss size 8 match 66.66667 +[src/scene/address/iplAddress] section .sdata size 16 match 100.0 +[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0 +[src/scene/address/iplAddress] section .text size 23988 match 99.54111 +[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.34978 +[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 97.662964 +[src/scene/address/iplAddress] below 100: onPreviousPage__Q33ipl5scene7AddressFv 97.25455 +[src/scene/address/iplAddress] below 100: set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 98.6 +[src/scene/address/iplAddress] below 100: movePane_onDrag__Q33ipl5scene7AddressFv 95.70968 +[src/scene/address/iplAddress] below 100: update__Q33ipl5scene15FriendListCacheFUlPCwUx 81.35 +[src/scene/address/iplAddress] baseline: code 20256/23988 data 36 functions 95 fuzzy 99.5411 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 62.98463 -> 63.07103 +global matched_data_percent: 97.19820 -> 97.30297 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: no baseline for merge-base 775167f4; compared against nearest snapshotted ancestor 547637bf (1 commits back) +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` +Instruction-exact 94/101 unchanged, data 36 -> 1956/1964; .data/.rodata/.sdata/.sdata2/.ctors all 100 percent. .sbss remains the overlapping VEC2 field alias above. DOL hash correct and global regressions zero. + +### src/scene/address/iplAddressEdit literal/extent proofs + +- 8160F67F lbl_8160F67F/13 -> @19550/12: .text 0x52fe via start_ipt_left_event__Q33ipl5scene11AddressEditFPCci +0x0; .text 0x5306 via start_ipt_left_event__Q33ipl5scene11AddressEditFPCci +0x0; full object bytes agree. +- 8164810B @24231/501 -> @24231/10: .text 0x2322 via stt_ipt_input__Q33ipl5scene11AddressEditFv +0x0; .text 0x2326 via stt_ipt_input__Q33ipl5scene11AddressEditFv +0x0; full object bytes agree. +- 81648115 @24231/501 -> @24804/18: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c.brlyt\x00'; full object bytes agree. +- 81648127 @24231/501 -> @24805/28: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_card_strt.brlan\x00'; full object bytes agree. +- 81648143 @24231/501 -> @24806/17: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'G_card_strt_fnsh\x00'; full object bytes agree. +- 81648154 @24231/501 -> @24807/34: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_question_alp_in.brlan\x00'; full object bytes agree. +- 81648176 @24231/501 -> @24808/14: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'G_question_00\x00'; full object bytes agree. +- 81648184 @24231/501 -> @24809/30: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_name_alp_in.brlan\x00'; full object bytes agree. +- 816481A2 @24231/501 -> @24810/10: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'G_name_00\x00'; full object bytes agree. +- 816481AC @24231/501 -> @24811/29: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_msg_alp_in.brlan\x00'; full object bytes agree. +- 816481C9 @24231/501 -> @24812/9: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'G_msg_00\x00'; full object bytes agree. +- 816481D2 @24231/501 -> @24813/29: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_mii_alp_in.brlan\x00'; full object bytes agree. +- 816481EF @24231/501 -> @24815/35: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_question_alp_out.brlan\x00'; full object bytes agree. +- 81648212 @24231/501 -> @24816/31: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_name_alp_out.brlan\x00'; full object bytes agree. +- 81648231 @24231/501 -> @24817/30: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_msg_alp_out.brlan\x00'; full object bytes agree. +- 8164824F @24231/501 -> @24818/30: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_mii_alp_out.brlan\x00'; full object bytes agree. +- 8164826D @24231/501 -> @24819/28: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'th_Adress_c_card_fnsh.brlan\x00'; full object bytes agree. +- 81648289 @24231/501 -> @24820/16: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Back_a.brlyt\x00'; full object bytes agree. +- 81648299 @24231/501 -> @24821/22: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Back_a_Apear.brlan\x00'; full object bytes agree. +- 816482AF @24231/501 -> @24822/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Picture_00\x00'; full object bytes agree. +- 816482BA @24231/501 -> @24823/21: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_Back_a_Lost.brlan\x00'; full object bytes agree. +- 816482CF @24231/501 -> @24824/14: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'T_question_00\x00'; full object bytes agree. +- 816482DD @24231/501 -> @24825/9: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'T_msg_00\x00'; full object bytes agree. +- 816482E6 @24231/501 -> @24829/25: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'my_IplTopBalloon_a.brlyt\x00'; full object bytes agree. +- 81648628 __vt__Q33ipl5scene11AddressEdit/288 -> __vt__Q33ipl5scene11AddressEdit/136: .text 0x282 via __ct__Q33ipl5scene11AddressEditFPQ23EGG4Heapi +0x0; .text 0x28a via __ct__Q33ipl5scene11AddressEditFPQ23EGG4Heapi +0x0; full object bytes agree. +- 816947F0 lbl_816947F0/4 -> @24826/4: .text 0x1078 via create__Q33ipl5scene11AddressEditFv +0x0; full object bytes agree. +- 816947F4 lbl_816947F4/4 -> @24827/4: .text 0x1080 via create__Q33ipl5scene11AddressEditFv +0x0; full object bytes agree. +- 816947F8 lbl_816947F8/4 -> @24828/4: .text 0x1070 via create__Q33ipl5scene11AddressEditFv +0x0; .text 0x4788 via start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +0x0; full object bytes agree. +- 816947FC lbl_816947FC/4 -> @26462/4: .text 0x47c0 via start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +0x0; .text 0x48e0 via start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +0x0; full object bytes agree. +- 81694800 lbl_81694800/4 -> @26463/4: .text 0x47b0 via start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +0x0; .text 0x48d0 via start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +0x0; full object bytes agree. +- 81694804 lbl_81694804/4 -> @26464/4: .text 0x47b8 via start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +0x0; .text 0x48d8 via start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +0x0; full object bytes agree. +- 816965E4 lbl_816965E4/4 -> @24778/4: .text 0x47c via create__Q33ipl5scene11AddressEditFv +0x0; .text 0xa1c via create__Q33ipl5scene11AddressEditFv +0x0; full object bytes agree. +- 816965E8 lbl_816965E8/2 -> @24802/2: .text 0x994 via create__Q33ipl5scene11AddressEditFv +0x0; .text 0x9c4 via create__Q33ipl5scene11AddressEditFv +0x0; full object bytes agree. +- 816965EA lbl_816965EA/6 -> @24814/6: .text 0xa90 via create__Q33ipl5scene11AddressEditFv +0x0; .text 0xaf0 via create__Q33ipl5scene11AddressEditFv +0x0; full object bytes agree. +- 816965F0 lbl_816965F0/8 -> @26844/8: .text 0x6390 via setEMail__Q43ipl5scene11AddressEdit6StringFPCw +0x0; full object bytes agree. + +Restored 16 unnecessary identity changes in Address/AddressEdit sections already scoring 100 percent. Their raw-prefix bytes and relocations already match; preserve original constant names and minimize the diff. + +### AddressEdit acceptance + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/address/iplAddressEdit] pool: IDENTICAL +[src/scene/address/iplAddressEdit] objdiff: code 21556/27112 data 2560/2560 functions 87/94 fuzzy 99.4886 linked code 0 +[src/scene/address/iplAddressEdit] instruction-exact functions: 87/94 +[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0 +[src/scene/address/iplAddressEdit] section .data size 2152 match 100.0 +[src/scene/address/iplAddressEdit] section .rodata size 40 match 100.0 +[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .text size 27112 match 99.48864 +[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.44634 +[src/scene/address/iplAddressEdit] below 100: stt_wait_btn_fadeout__Q33ipl5scene11AddressEditFv 99.73404 +[src/scene/address/iplAddressEdit] below 100: start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface 99.34066 +[src/scene/address/iplAddressEdit] below 100: start_left_event__Q33ipl5scene11AddressEditFPCc 98.958336 +[src/scene/address/iplAddressEdit] below 100: get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571 +[src/scene/address/iplAddressEdit] below 100: update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105 +[src/scene/address/iplAddressEdit] below 100: set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err 98.666664 +[src/scene/address/iplAddressEdit] baseline: code 21556/27112 data 368 functions 87 fuzzy 99.4886 +[src/scene/address/iplAddress] pool: IDENTICAL +[src/scene/address/iplAddress] objdiff: code 20256/23988 data 1956/1964 functions 95/101 fuzzy 99.5411 linked code 0 +[src/scene/address/iplAddress] instruction-exact functions: 94/101 +[src/scene/address/iplAddress] section .ctors size 4 match 100.0 +[src/scene/address/iplAddress] section .data size 1880 match 100.0 +[src/scene/address/iplAddress] section .rodata size 24 match 100.0 +[src/scene/address/iplAddress] section .sbss size 8 match 66.66667 +[src/scene/address/iplAddress] section .sdata size 16 match 100.0 +[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0 +[src/scene/address/iplAddress] section .text size 23988 match 99.54111 +[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.34978 +[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 97.662964 +[src/scene/address/iplAddress] below 100: onPreviousPage__Q33ipl5scene7AddressFv 97.25455 +[src/scene/address/iplAddress] below 100: set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 98.6 +[src/scene/address/iplAddress] below 100: movePane_onDrag__Q33ipl5scene7AddressFv 95.70968 +[src/scene/address/iplAddress] below 100: update__Q33ipl5scene15FriendListCacheFUlPCwUx 81.35 +[src/scene/address/iplAddress] baseline: code 20256/23988 data 36 functions 95 fuzzy 99.5411 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 62.98463 -> 63.07103 +global matched_data_percent: 97.19820 -> 97.42258 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: no baseline for merge-base 775167f4; compared against nearest snapshotted ancestor 547637bf (1 commits back) +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` +Data 368 -> 2560/2560, all non-text sections 100 percent. Instruction-exact 87/94 unchanged. Target/source pools, DOL and regression gates pass. + +### Address field alias, documented DTK label representation + +DTK v1.7.5 detect_objects skips named labels beginning with two dots. Try its actual address-label convention, ..sPageOffset.y, instead of a bare auto label. The alias identifies the same y member at 81698B54; the real 8-byte sPageOffset owns all .sbss bytes and all original relocations remain. No hidden/ignored/noexport flag used; no physical object is deleted or resized. This is an overlapping field-address alias, proven by VEC2's two f32 fields and the constructor initializes both fields at 0/+4. Source: https://raw.githubusercontent.com/encounter/decomp-toolkit/v1.7.5/src/analysis/objects.rs . + +### libs/RVL_SDK/src/wpad/WPADHIDParser literal/extent proofs + +- 81687AF0 lbl_81687AF0/1288 -> @2798/44: .text 0xf6 via abortInitExtension +0x0; .text 0xfa via abortInitExtension +0x0; full object bytes agree. +- 81687B1C lbl_81687AF0/1288 -> @3037/20: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Dpd Setting is ok.\n\x00'; full object bytes agree. +- 81687B30 lbl_81687AF0/1288 -> @3038/24: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Dpd Setting is broken.\n\x00'; full object bytes agree. +- 81687B48 lbl_81687AF0/1288 -> @3039/65: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Old Firmware uses default values because it has no Dpd Setting.\n\x00'; full object bytes agree. +- 81687B8C lbl_81687AF0/1288 -> @3041/18: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'x = %lf, y = %lf\n\x00'; full object bytes agree. +- 81687BA0 lbl_81687AF0/1288 -> @3050/30: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'difaveX = %lf, difaveY = %lf\n\x00'; full object bytes agree. +- 81687BC0 lbl_81687AF0/1288 -> @3051/30: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'deltaX = %lf, deltaY = %lf\n\x00'; full object bytes agree. +- 81687BE0 lbl_81687AF0/1288 -> @3052/28: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'calibX = %lf, calibY = %lf\n\x00'; full object bytes agree. +- 81687BFC lbl_81687AF0/1288 -> @3053/28: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'centX = %lf, centY = %lf\n\x00'; full object bytes agree. +- 81687C18 lbl_81687AF0/1288 -> @3056/14: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'rolag = %lf\n\x00'; full object bytes agree. +- 81687C28 lbl_81687AF0/1288 -> @3057/12: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Acc is ok.\n\x00'; full object bytes agree. +- 81687C38 lbl_81687AF0/1288 -> @3058/16: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Acc is broken.\n\x00'; full object bytes agree. +- 81687C48 lbl_81687AF0/1288 -> @3059/40: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'0G: accX = %d, accY = %d, accZ = %d\n\x00'; full object bytes agree. +- 81687C70 lbl_81687AF0/1288 -> @3060/40: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'1G: accX = %d, accY = %d, accZ = %d\n\x00'; full object bytes agree. +- 81687C98 lbl_81687AF0/1288 -> @3061/25: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Volume: %d, Motor: %d\n\x00'; full object bytes agree. +- 81687CB4 lbl_81687AF0/1288 -> @3125/18: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'check sum error.\n\x00'; full object bytes agree. +- 81687CC8 lbl_81687AF0/1288 -> @3126/46: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'0G: fsaccX = %d, fsaccY = %d, fsaccZ = %d\n\x00'; full object bytes agree. +- 81687CF8 lbl_81687AF0/1288 -> @3127/46: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'1G: fsaccX = %d, fsaccY = %d, fsaccZ = %d\n\x00'; full object bytes agree. +- 81687D28 lbl_81687AF0/1288 -> @3128/39: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'FS: X = %d, X max = %d, X min = %d\n\x00'; full object bytes agree. +- 81687D50 lbl_81687AF0/1288 -> @3129/39: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'FS: Y = %d, Y max = %d, Y min = %d\n\x00'; full object bytes agree. +- 81687D78 lbl_81687AF0/1288 -> @3130/39: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'CL: X = %d, X max = %d, X min = %d\n\x00'; full object bytes agree. +- 81687DA0 lbl_81687AF0/1288 -> @3131/39: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'CL: Y = %d, Y max = %d, Y min = %d\n\x00'; full object bytes agree. +- 81687DC8 lbl_81687AF0/1288 -> @3132/39: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'CR: X = %d, X max = %d, X min = %d\n\x00'; full object bytes agree. +- 81687DF0 lbl_81687AF0/1288 -> @3133/39: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'CR: Y = %d, Y max = %d, Y min = %d\n\x00'; full object bytes agree. +- 81687E18 lbl_81687AF0/1288 -> @3134/22: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'LR: L = %d, R = %d\n\x00'; full object bytes agree. +- 81687E30 lbl_81687AF0/1288 -> @3169/22: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'devId: %d, subId: %d\n\x00'; full object bytes agree. +- 81687E48 lbl_81687AF0/1288 -> @3170/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'type : %d\n\x00'; full object bytes agree. +- 81687E54 lbl_81687AF0/1288 -> @3171/11: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'mode : %d\n\x00'; full object bytes agree. +- 81687E60 lbl_81687AF0/1288 -> @3231/20: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Received report 20\n\x00'; full object bytes agree. +- 81687E74 lbl_81687AF0/1288 -> @3232/23: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'initialize attachment\n\x00'; full object bytes agree. +- 81687E8C lbl_81687AF0/1288 -> @3233/21: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'already initialized\n\x00'; full object bytes agree. +- 81687EA4 lbl_81687AF0/1288 -> @3234/22: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'already disconnected\n\x00'; full object bytes agree. +- 81687EBC lbl_81687AF0/1288 -> @3280/21: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'read error happens!\n\x00'; full object bytes agree. +- 81687ED4 lbl_81687AF0/1288 -> @3281/17: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'base addr: %08x\n\x00'; full object bytes agree. +- 81687EE8 lbl_81687AF0/1288 -> @3282/15: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'length : %d\n\x00'; full object bytes agree. +- 81687EF8 lbl_81687AF0/1288 -> @3283/12: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'i2c = %04x\n\x00'; full object bytes agree. +- 81687F04 lbl_81687AF0/1288 -> @3284/10: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'enc = %d\n\x00'; full object bytes agree. +- 81687F10 lbl_81687AF0/1288 -> @3285/31: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Access to extension register.\n\x00'; full object bytes agree. +- 81687F30 lbl_81687AF0/1288 -> @3286/12: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Decode!!!!\n\x00'; full object bytes agree. +- 81687F3C lbl_81687AF0/1288 -> @3287/27: source literal/type and byte-identical target pool at this exact offset; decoded bytes b' len = %d, addr = %04x\n\x00'; full object bytes agree. +- 81687F58 lbl_81687AF0/1288 -> @3288/32: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'received data is out of range!\n\x00'; full object bytes agree. +- 81687F78 lbl_81687AF0/1288 -> @3309/15: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'Received ack!\n\x00'; full object bytes agree. +- 81687F88 lbl_81687AF0/1288 -> @3310/43: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'ack --> report ID = %02x, error code = %d\n\x00'; full object bytes agree. +- 81687FB4 lbl_81687AF0/1288 -> @3311/47: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'ack error --> report ID = %d, error code = %d\n\x00'; full object bytes agree. +- 81687FE4 lbl_81687AF0/1288 -> @3312/14: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'invalid ack!\n\x00'; full object bytes agree. + +### WPAD and Address field acceptance + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVL_SDK/src/wpad/WPADHIDParser] pool: IDENTICAL +[libs/RVL_SDK/src/wpad/WPADHIDParser] objdiff: code 21664/21664 data 1664/1664 functions 22/22 fuzzy 100.0000 linked code 21664 +[libs/RVL_SDK/src/wpad/WPADHIDParser] instruction-exact functions: 22/22 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .bss size 104 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .data size 1440 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .sbss size 24 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .sdata2 size 96 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .text size 21664 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] baseline: code 21664/21664 data 224 functions 22 fuzzy 100.0000 +[src/scene/address/iplAddress] pool: IDENTICAL +[src/scene/address/iplAddress] objdiff: code 20256/23988 data 1964/1964 functions 95/101 fuzzy 99.5411 linked code 0 +[src/scene/address/iplAddress] instruction-exact functions: 94/101 +[src/scene/address/iplAddress] section .ctors size 4 match 100.0 +[src/scene/address/iplAddress] section .data size 1880 match 100.0 +[src/scene/address/iplAddress] section .rodata size 24 match 100.0 +[src/scene/address/iplAddress] section .sbss size 8 match 100.0 +[src/scene/address/iplAddress] section .sdata size 16 match 100.0 +[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0 +[src/scene/address/iplAddress] section .text size 23988 match 99.54111 +[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.34978 +[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 97.662964 +[src/scene/address/iplAddress] below 100: onPreviousPage__Q33ipl5scene7AddressFv 97.25455 +[src/scene/address/iplAddress] below 100: set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 98.6 +[src/scene/address/iplAddress] below 100: movePane_onDrag__Q33ipl5scene7AddressFv 95.70968 +[src/scene/address/iplAddress] below 100: update__Q33ipl5scene15FriendListCacheFUlPCwUx 81.35 +[src/scene/address/iplAddress] baseline: code 20256/23988 data 36 functions 95 fuzzy 99.5411 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 62.98463 -> 63.07103 +global matched_data_percent: 97.19820 -> 97.50159 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: no baseline for merge-base 775167f4; compared against nearest snapshotted ancestor 547637bf (1 commits back) +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` +WPAD data 224 -> 1664/1664; all sections 100 percent and instruction-exact 22/22 unchanged. Address data 1956 -> 1964/1964 with the typed member address alias, all non-text sections 100 percent and instruction-exact 94/101 unchanged. Zero regressions and correct DOL. + +### src/scene/board/iplBoardObject literal/extent proofs + +- 8164B1E8 lbl_8164B1E8/16 -> @16958/16: .text 0x7d2 via stt_create__Q33ipl5scene11BoardObjectFv +0x0; .text 0x7de via stt_create__Q33ipl5scene11BoardObjectFv +0x0; full object bytes agree. +- 8164B1F8 lbl_8164B1F8/28 -> @16959/28: .data 0x2e4 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B214 lbl_8164B214/24 -> @16960/24: .data 0x2e8 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B22C lbl_8164B22C/25 -> @16961/25: .data 0x2ec via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B245 lbl_8164B245/29 -> @16962/29: .data 0x2f0 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B262 lbl_8164B262/27 -> @16963/27: .data 0x2f4 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B27D lbl_8164B27D/25 -> @16964/25: .data 0x2f8 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B296 lbl_8164B296/24 -> @16965/24: .data 0x2fc via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B2AE lbl_8164B2AE/24 -> @16966/24: .data 0x300 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B2C6 lbl_8164B2C6/23 -> @16967/23: .data 0x304 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B2DD lbl_8164B2DD/16 -> @16968/16: .data 0x308 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B2ED lbl_8164B2ED/28 -> @16969/28: .data 0x30c via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B309 lbl_8164B309/24 -> @16970/24: .data 0x310 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B321 lbl_8164B321/25 -> @16971/25: .data 0x314 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B33A lbl_8164B33A/29 -> @16972/29: .data 0x318 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B357 lbl_8164B357/27 -> @16973/27: .data 0x31c via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B372 lbl_8164B372/25 -> @16974/25: .data 0x320 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B38B lbl_8164B38B/24 -> @16975/24: .data 0x324 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B3A3 lbl_8164B3A3/24 -> @16976/24: .data 0x328 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B3BB lbl_8164B3BB/23 -> @16977/23: .data 0x32c via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B3D2 lbl_8164B3D2/16 -> @16978/16: .data 0x330 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B3E2 lbl_8164B3E2/28 -> @16979/28: .data 0x334 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B3FE lbl_8164B3FE/24 -> @16980/24: .data 0x338 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B416 lbl_8164B416/25 -> @16981/25: .data 0x33c via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B42F lbl_8164B42F/29 -> @16982/29: .data 0x340 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B44C lbl_8164B44C/27 -> @16983/27: .data 0x344 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B467 lbl_8164B467/25 -> @16984/25: .data 0x348 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B480 lbl_8164B480/24 -> @16985/24: .data 0x34c via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B498 lbl_8164B498/24 -> @16986/24: .data 0x350 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B4B0 lbl_8164B4B0/144 -> @16987/23: .data 0x354 via lbl_8164B4B0 +0x0; full object bytes agree. +- 8164B4C8 lbl_8164B4B0/144 -> mAnimNames__Q33ipl5scene11BoardObject/120: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'; full object bytes agree. +- 8164B540 lbl_8164B540/21 -> @16989/21: .rodata 0x0 via scThumbChangeTexFile__Q23ipl5scene +0x0; full object bytes agree. +- 8164B555 lbl_8164B555/10 -> @16990/10: .rodata 0x4 via scThumbChangeTexFile__Q23ipl5scene +0x0; full object bytes agree. +- 8164B55F lbl_8164B55F/54 -> @19509/9: .text 0x1e7e via onEvent__Q33ipl5scene11BoardObjectFUlUlPv +0x0; .text 0x1e86 via onEvent__Q33ipl5scene11BoardObjectFUlUlPv +0x0; full object bytes agree. +- 8164B568 lbl_8164B55F/54 -> @19511/9: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'T_Letter\x00'; full object bytes agree. +- 8164B571 lbl_8164B55F/54 -> @19512/19: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'./thumbnail_LZ.bin\x00'; full object bytes agree. +- 8164B584 lbl_8164B55F/54 -> @19514/17: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'WIPL_SE_MSG_DISP\x00'; full object bytes agree. +- 8164B595 lbl_8164B595/10 -> @19542/10: .text 0xeee via stt_make_thm__Q33ipl5scene11BoardObjectFv +0x0; .text 0xef2 via stt_make_thm__Q33ipl5scene11BoardObjectFv +0x0; full object bytes agree. +- 8164B59F lbl_8164B59F/19 -> @19595/19: .text 0x1106 via stt_pinch__Q33ipl5scene11BoardObjectFv +0x0; .text 0x1112 via stt_pinch__Q33ipl5scene11BoardObjectFv +0x0; full object bytes agree. +- 8164B5B2 lbl_8164B5B2/20 -> @19785/20: .text 0x1b56 via start_point_event__Q33ipl5scene11BoardObjectFiPQ33ipl10controller9Interface +0x0; .text 0x1b62 via start_point_event__Q33ipl5scene11BoardObjectFiPQ33ipl10controller9Interface +0x0; full object bytes agree. +- 8164B5F0 __vt__Q33ipl4math31Interporation/168 -> __vt__Q33ipl4math31Interporation/16: source literal/type and byte-identical target pool at this exact offset; decoded bytes b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'; full object bytes agree. + +- 8164B4B0 extent 144 -> 23 and mAnimNames__Q33ipl5scene11BoardObject at 8164B4C8, 120 bytes: target's first bytes are the final LetterS_c_SDAnim.brlan string plus NUL; one alignment byte follows; thirty R_PPC_ADDR32 entries then match the typed 3-by-10 char-pointer table used by stt_create. Every relocation target is the corresponding layout/animation literal. +- Interporation vtable at 8164B5F0 extent 168 -> 16: two header words, destructor and calc slots match the real template class vtable; following 152 zero bytes are deduplicated weak GUI vtables. All real virtual slots remain accounted for. +- 81694848 extent 8 -> 4: calc's instruction at 81395284 performs lfs of a single 32-bit 48.0f constant, emitted by source as @19646 size 4; the following four zero bytes are unused section alignment, with no load or relocation to +4. Both section totals remain 64. + +### BoardObject acceptance + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/board/iplBoardObject] pool: IDENTICAL +[src/scene/board/iplBoardObject] objdiff: code 9184/9184 data 1320/1320 functions 39/39 fuzzy 100.0000 linked code 9184 +[src/scene/board/iplBoardObject] instruction-exact functions: 38/39 +[src/scene/board/iplBoardObject] section .data size 1200 match 100.0 +[src/scene/board/iplBoardObject] section .rodata size 16 match 100.0 +[src/scene/board/iplBoardObject] section .sdata size 40 match 100.0 +[src/scene/board/iplBoardObject] section .sdata2 size 64 match 100.0 +[src/scene/board/iplBoardObject] section .text size 9184 match 99.73868 +[src/scene/board/iplBoardObject] baseline: code 9184/9184 data 56 functions 39 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 62.98463 -> 63.07103 +global matched_data_percent: 97.19820 -> 97.57056 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: no baseline for merge-base 775167f4; compared against nearest snapshotted ancestor 547637bf (1 commits back) +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` +Data 56 -> 1320/1320, all non-text sections 100 percent, instruction-exact 38/39 unchanged. Matched_code remains 9184/9184. Full DOL and regression checks pass. + +Ownership audit: every symbols.txt change lies inside the four owned non-text section ranges. Splits, addresses, complete section bytes and total_data are unchanged. No source/header/configure.py or other unit was edited. Original section totals remain AddressEdit 2560, Address 1964, WPAD 1664, Board 1320. + +## High-round terminal verification + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/address/iplAddressEdit] pool: IDENTICAL +[src/scene/address/iplAddressEdit] objdiff: code 21556/27112 data 2560/2560 functions 87/94 fuzzy 99.4886 linked code 0 +[src/scene/address/iplAddressEdit] instruction-exact functions: 87/94 +[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0 +[src/scene/address/iplAddressEdit] section .data size 2152 match 100.0 +[src/scene/address/iplAddressEdit] section .rodata size 40 match 100.0 +[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0 +[src/scene/address/iplAddressEdit] section .text size 27112 match 99.48864 +[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.44634 +[src/scene/address/iplAddressEdit] below 100: stt_wait_btn_fadeout__Q33ipl5scene11AddressEditFv 99.73404 +[src/scene/address/iplAddressEdit] below 100: start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface 99.34066 +[src/scene/address/iplAddressEdit] below 100: start_left_event__Q33ipl5scene11AddressEditFPCc 98.958336 +[src/scene/address/iplAddressEdit] below 100: get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571 +[src/scene/address/iplAddressEdit] below 100: update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105 +[src/scene/address/iplAddressEdit] below 100: set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err 98.666664 +[src/scene/address/iplAddressEdit] baseline: code 21556/27112 data 368 functions 87 fuzzy 99.4886 +[src/scene/address/iplAddress] pool: IDENTICAL +[src/scene/address/iplAddress] objdiff: code 20256/23988 data 1964/1964 functions 95/101 fuzzy 99.5411 linked code 0 +[src/scene/address/iplAddress] instruction-exact functions: 94/101 +[src/scene/address/iplAddress] section .ctors size 4 match 100.0 +[src/scene/address/iplAddress] section .data size 1880 match 100.0 +[src/scene/address/iplAddress] section .rodata size 24 match 100.0 +[src/scene/address/iplAddress] section .sbss size 8 match 100.0 +[src/scene/address/iplAddress] section .sdata size 16 match 100.0 +[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0 +[src/scene/address/iplAddress] section .text size 23988 match 99.54111 +[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.34978 +[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 97.662964 +[src/scene/address/iplAddress] below 100: onPreviousPage__Q33ipl5scene7AddressFv 97.25455 +[src/scene/address/iplAddress] below 100: set_err_msg__Q33ipl5scene7AddressFPwUl8NWC24Err 98.6 +[src/scene/address/iplAddress] below 100: movePane_onDrag__Q33ipl5scene7AddressFv 95.70968 +[src/scene/address/iplAddress] below 100: update__Q33ipl5scene15FriendListCacheFUlPCwUx 81.35 +[src/scene/address/iplAddress] baseline: code 20256/23988 data 36 functions 95 fuzzy 99.5411 +[libs/RVL_SDK/src/wpad/WPADHIDParser] pool: IDENTICAL +[libs/RVL_SDK/src/wpad/WPADHIDParser] objdiff: code 21664/21664 data 1664/1664 functions 22/22 fuzzy 100.0000 linked code 21664 +[libs/RVL_SDK/src/wpad/WPADHIDParser] instruction-exact functions: 22/22 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .bss size 104 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .data size 1440 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .sbss size 24 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .sdata2 size 96 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] section .text size 21664 match 100.0 +[libs/RVL_SDK/src/wpad/WPADHIDParser] baseline: code 21664/21664 data 224 functions 22 fuzzy 100.0000 +[src/scene/board/iplBoardObject] pool: IDENTICAL +[src/scene/board/iplBoardObject] objdiff: code 9184/9184 data 1320/1320 functions 39/39 fuzzy 100.0000 linked code 9184 +[src/scene/board/iplBoardObject] instruction-exact functions: 38/39 +[src/scene/board/iplBoardObject] section .data size 1200 match 100.0 +[src/scene/board/iplBoardObject] section .rodata size 16 match 100.0 +[src/scene/board/iplBoardObject] section .sdata size 40 match 100.0 +[src/scene/board/iplBoardObject] section .sdata2 size 64 match 100.0 +[src/scene/board/iplBoardObject] section .text size 9184 match 99.73868 +[src/scene/board/iplBoardObject] baseline: code 9184/9184 data 56 functions 39 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 62.98463 -> 63.07103 +global matched_data_percent: 97.19820 -> 97.57056 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: no baseline for merge-base 775167f4; compared against nearest snapshotted ancestor 547637bf (1 commits back) +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` +All four data units meet this task: every reported non-text section is 100.0 percent and matched_data equals the unchanged total_data. Exact-instruction counts are unchanged at 87/94, 94/101, 22/22, 38/39; code bytes remain 21556,20256,21664,9184. Full clean build passes, DOL SHA1 is 26116613f624061ba99c8d1a299aaa6efa85670d, global regressions zero, no source patterns added. No data function is open or untried. Existing code-only residuals remain as already logged; this task does not claim full code completion. +Gate baseline note: the external gate has no snapshot for 775167f4 and compares against parent 547637bf. The high-round local baseline was independently recorded before any changes and has the same per-unit instruction-exact/code totals. The orchestrator still reviews the typed extents and the DTK field-address alias. +Improvement commits: 2e44afb0,190e688e,cc957c9d,d6e9095a. Only config/43U/symbols.txt and this attempts log changed. -- 2.49.1 From 069576031284128d2295354b2dee7f22560972ab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:15:45 +0000 Subject: [PATCH 18/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4dd89c59..1f29d0e1 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.16% | 97.80% | +| 99.46% | 88.57% | 63.16% | 98.17% | units 927/1027 complete, functions 12264/12563 matched. -- 2.49.1 From 0c94076d99ee248b49e5827e976988fab5516242 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:16:02 -0500 Subject: [PATCH 19/63] data(NHTTP_thread data 88->304) (data-d5b) (worker b909c94b) (#750) --- config/43U/symbols.txt | 4 +- tools/decomp-assist/data-d5.attempts.md | 201 ++++++++++++++++++++++++ 2 files changed, 203 insertions(+), 2 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index c74c4b99..1481d059 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -14060,9 +14060,9 @@ AESiDecryptTable = .rodata:0x81618830; // type:object size:0x400 scope:local NHTTPi_strMultipartBound = .rodata:0x81618C30; // type:object size:0x18 lbl_81618C48 = .rodata:0x81618C48; // type:object size:0x28 scope:local data:4byte STR_POST_DISPOS = .rodata:0x81618C70; // type:object size:0x27 scope:local data:string -STR_POST_TYPE_BIN = .rodata:0x81618C97; // type:object size:0x4C scope:local +STR_POST_TYPE_BIN = .rodata:0x81618C98; // type:object size:0x4C scope:local data:string STR_POST_TYPE_URLENCODE = .rodata:0x81618CE4; // type:object size:0x32 scope:local data:string -STR_POST_TYPE_MULTIPART = .rodata:0x81618D16; // type:object size:0x2D scope:local +STR_POST_TYPE_MULTIPART = .rodata:0x81618D18; // type:object size:0x2D scope:local data:string DAYS_OF_MONTH = .rodata:0x81618D48; // type:object size:0x10 scope:local DAYS_OF_YEAR = .rodata:0x81618D58; // type:object size:0x18 scope:local g_SpecialsChars = .rodata:0x81618D70; // type:object size:0x10 data:byte diff --git a/tools/decomp-assist/data-d5.attempts.md b/tools/decomp-assist/data-d5.attempts.md index 86884947..fef61a04 100644 --- a/tools/decomp-assist/data-d5.attempts.md +++ b/tools/decomp-assist/data-d5.attempts.md @@ -71,3 +71,204 @@ readability warnings (net, per file; must be 0 in the final result): 0 GATE PASS Fresh comparison confirms no baseline instruction-exact function disappeared. All four string pools identical. GCWindow and SDMemory semantic non-text relocations identical; GCWindow and SDMemory data are 100%. Extab/extabindex, .bss and .sbss are absent except ChannelSelect .sbss, which reports 100%. Config/splits/symbols unchanged in the final diff. Final clean gate log: /tmp/data-d5-final-gate.log. Symbol/relocation evidence: /tmp/data-d5-symbol-relocation-evidence.txt; final semantic relocation comparison: /tmp/data-d5-final-relocs.txt. + +# data-d5 round 2 + +Fresh branch HEAD/origin/main f6fd2780, after #736. GCWindow and SDMemory are no longer owned. No initial source differences from origin/main for the four new leaves. Fresh baseline report /tmp/data-d5-r2-start.json and instruction-exact snapshot /tmp/data-d5-r2-before.json. + +| Unit | matched data | total data | instruction exact | +| --- | ---: | ---: | ---: | +| SDChannelSelect | 224 | 2960 | 117/129 | +| ChannelSelect | 192 | 2336 | 101/102 | +| wad | 64 | 528 | 35/40 | +| NHTTP_thread | 88 | 504 | 25/26 | + +Pool-first audit: all four pools identical, 101/101, 98/98, 18/18 and 8/8 strings respectively. Fresh fetches confirm owned SDK/RevoEX sources have not changed on origin/main. + +wad .data raw bytes and semantic relocations are identical after zero extension; target length 464 versus source 458, source alignment 8. Target includes six trailing linker alignment bytes. No missing static or pointer table is apparent. + +NHTTP_thread .data raw bytes and semantic relocations are identical after zero extension; target 200 versus source 194. .rodata target 216 versus source 213. Target STR_POST_TYPE_BIN symbol is incorrectly at +0x27, which points at the alignment zero before the actual string at +0x28. STR_POST_TYPE_MULTIPART is incorrectly at +0xa6, which points at two alignment zeros before the actual string at +0xa8. Source strings and target bytes agree completely. Investigate instruction relocation addends before correcting these symbols; preserve section ownership and total bytes. + +NHTTP_thread symbol correction: NHTTPi_SendProcPostDataBinary materializes STR_POST_DISPOS at 0x81618C70 via .text relocations +0xdf2/+0xdfa. Its original instructions at 0x81499674 and 0x814997E4 add 0xa8 and 0x28 to that relocated base before calling NHTTPi_SendData. These prove MULTIPART begins at 0x81618D18 and BIN at 0x81618C98, not the previous misaligned 0x81618D16/0x81618C97. Corrected only the two symbol addresses; their true character-array sizes remain 0x2d and 0x4c. DTK now recognizes both as strings. All source bytes, section sizes, splits and total data 504 stay unchanged. .rodata 99.5283 -> 100%, matched_data 88 -> 304/504; instruction-exact 25/26 unchanged and objdiff code 10528 unchanged. Quick gate PASS, DOL correct, regressions 0, forbidden/readability 0. No source changes or data-placement tricks. + +Round 2 SDK padding audit: nm/objdump symbols and section relocations on both objects are saved in /tmp/data-d5-r2-nm-objdump.txt. wad and NHTTP_thread .data sections both have sh_addralign=8. Their last literal ends at 0x1ca and 0xc2 respectively; target sections end at 0x1d0 and 0xc8, exactly the next 8-byte boundary. These are six zero linker-alignment bytes, not weak objects, static tables, or missing strings. The current compiled sections stop at the literal terminator. No semantic data relocation differs and no symbol/reference names an object in these tails. Shrinking the unit, attributing the zeros to its neighbor, or adding an oversized array solely to reach the boundary would hide/fabricate the mismatch, so none is permitted. This is recorded as a separate linker-padding limitation, not the task's weak-data exception. + +Round 2 SDChannelSelect: fresh pool and symbol/relocation audit confirms the previous round's exact state and the three logged typed-class experiments remain applicable. Target .data+0x960..0x980 has no symbol or incoming relocation anywhere in the target object. Source uses that range for its first live button-event vtable; all three real vtable pointer sequences match by class but their section positions differ by 32. Do not invent ownership for the target's anonymous zero range. The trailing weak GUI tables are also still deduplicated. + +Round 2 ChannelSelect: fresh bytes and semantic relocation comparison reproduces the first round's exact evidence and three logged attempts. All live string/table/vtable bytes agree, including the fixed WSD_SELECT pool. Remaining source relocations land only in target's deduplicated weak-table zeros. No new actionable data mismatch. + +NHTTPi_ThreadParseHeaderProc code cross-check, no data changes: baseline 98.58639%, 191/191 instructions, 20 differences involving pool/request registers and scheduling of the keep-alive false value around the comparison call. Attempt 1 used an initialized BOOL result, updated it on success and stored once after the comparison. 189/191 instructions, 97.565445%, no new exact function; reverted. Attempt 2 retained separate stores but named the false value before the call. Compiler folded it back to the baseline, 191/191 instructions, 98.58639%; reverted. Attempt 3 stored the comparison's boolean result directly. Measurements are saved in /tmp/data-d5-r2-nhttp-parse3.ctx and /tmp/data-d5-r2-nhttp-parse3.json; no exact gain, reverted. These are distinct readable forms, with no volatile or register coercion. All three kept the data report 304/504; none was committed. + +WAD_815C1288 attempt 1: initialize transfer before bufferIndex, following target load order. objdiff 96.803276%, source/target 61/61 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-1.ctx. No accepted exact gain, restored. + +WAD_815C1288 attempt 2: express the producer loop as while with explicit index advance. objdiff 96.803276%, source/target 61/61 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-2.ctx. No accepted exact gain, restored. + +WAD_815C1288 attempt 3: calculate chunk size with a conditional expression. objdiff 96.31148%, source/target 61/61 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-3.ctx. No accepted exact gain, restored. + +WADImportGetBlocks attempt 1: express content-count and file-count loops with explicit advances. objdiff 94.24161%, source/target 286/298 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-4.ctx. No accepted exact gain, restored. + +WADImportGetBlocks attempt 2: bind each content descriptor only after selecting its index. objdiff 91.72819%, source/target 281/298 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-5.ctx. No accepted exact gain, restored. + +WADImportGetBlocks attempt 3: cache the file-count value for allocation and iteration. objdiff 92.66443%, source/target 284/298 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-6.ctx. No accepted exact gain, restored. + +WADImportEx attempt 1: separate cleanup-state declarations from initialization before unpackInfo clear. objdiff 99.01571%, source/target 1146/1146 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-7.ctx. No accepted exact gain, restored. + +WADImportEx attempt 2: declare the two transfer buffers together, retaining their initialization order. objdiff 99.02269%, source/target 1146/1146 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-8.ctx. No accepted exact gain, restored. + +WADImportEx attempt 3: group content-installation cache declarations before the result state. objdiff 98.81676%, source/target 1146/1146 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-9.ctx. No accepted exact gain, restored. + +WADBackupEx attempt 1: initialize stream/file cleanup states at declaration. objdiff 97.085686%, source/target 1057/1062 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-10.ctx. No accepted exact gain, restored. + +WADBackupEx attempt 2: reorder independent metadata/cache zero initializations before validation. objdiff 97.37571%, source/target 1057/1062 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-11.ctx. No accepted exact gain, restored. + +WADBackupEx attempt 3: initialize the thread-created state with other cleanup flags. objdiff 97.370995%, source/target 1057/1062 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-12.ctx. No accepted exact gain, restored. + +WADImportDVDExForBS attempt 1: initialize the read-buffer pointer after cleanup state declaration. objdiff 97.49049%, source/target 261/263 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-13.ctx. No accepted exact gain, restored. + +WADImportDVDExForBS attempt 2: check buffer then path in the initial independent validation. objdiff 97.45247%, source/target 261/263 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-14.ctx. No accepted exact gain, restored. + +WADImportDVDExForBS attempt 3: group content-buffer and remaining-size calculations with a typed section-end pointer. Compile failed; rejected and restored. Evidence /tmp/data-d5-r2-wad-trial-15.build. + +WADImportDVDExForBS attempt 3: group content-buffer and remaining-size calculations with a typed section-end pointer. objdiff 97.49049%, source/target 261/263 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-15.ctx. No accepted exact gain, restored. + +src/scene/sdChannelSelect/iplSDChannelSelect::create attempt 1: express the thumbnail heap addition as separate arithmetic. objdiff 96.64384%, instructions 146/146, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-1.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::create attempt 2: declare elapsed tick storage beside the starting tick. objdiff 97.73972%, instructions 145/146, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-2.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::create attempt 3: test a single next-page index temporary. objdiff 96.5274%, instructions 144/146, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-3.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::handleSDTitleListResult attempt 1: initialize added-title state before iteration indices. objdiff 98.91813%, instructions 170/171, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-4.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::handleSDTitleListResult attempt 2: use an explicit increment statement for the stored channel index. objdiff 99.15205%, instructions 170/171, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-5.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::handleSDTitleListResult attempt 3: initialize title count and adjust the hazard case explicitly. objdiff 96.666664%, instructions 168/171, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-6.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByUsage attempt 1: reverse independent usage accumulator declarations. objdiff 97.72277%, instructions 101/101, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-7.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByUsage attempt 2: declare the channel index before its page output. objdiff 97.77228%, instructions 101/101, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-8.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByUsage attempt 3: return the final first-usage comparison directly. objdiff 94.53465%, instructions 100/101, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-9.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesFromNandUsage attempt 1: reverse independent usage accumulator declarations. objdiff 97.745094%, instructions 102/102, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-10.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesFromNandUsage attempt 2: declare the channel index before its page output. objdiff 97.79412%, instructions 102/102, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-11.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesFromNandUsage attempt 3: return the final first-usage comparison directly. objdiff 94.588234%, instructions 101/102, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-12.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByChannelOrder attempt 1: reverse independent usage accumulator declarations. objdiff 97.22222%, instructions 126/126, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-13.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByChannelOrder attempt 3: return the final first-usage comparison directly. objdiff 94.666664%, instructions 125/126, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-15.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesBySpecialChannels attempt 1: reverse independent usage accumulator declarations. objdiff 97.484764%, instructions 361/361, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-16.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesBySpecialChannels attempt 2: declare the channel index before its page output. objdiff 97.54017%, instructions 361/361, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-17.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesBySpecialChannels attempt 3: return the final first-usage comparison directly. objdiff 96.634346%, instructions 360/361, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-18.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::flushSaveDataAndMountSD attempt 1: bind the pointer animation before resetting it. objdiff 99.65714%, instructions 35/35, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-19.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::flushSaveDataAndMountSD attempt 2: bind the save manager for its two operations. objdiff 99.65714%, instructions 35/35, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-20.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::flushSaveDataAndMountSD attempt 3: hold the flush result before storing it. objdiff 99.65714%, instructions 35/35, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-21.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::calcCommon attempt 3: simplify the independent right-arrow predicate. objdiff 98.888885%, instructions 109/108, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-24.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 1: assign the left arrow flag before conditional animation. objdiff 89.62766%, instructions 93/94, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-25.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 2: simplify the right-arrow range comparison. objdiff 98.723404%, instructions 95/94, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-26.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 3: isolate the first animation pointer. Compile failed, reverted; /tmp/data-d5-r2-scene-trial-27.build. + +src/scene/sdChannelSelect/iplSDChannelSelect::selectChannel attempt 1: materialize the channel translation as a named vector. objdiff 93.72881%, instructions 60/59, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-28.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::selectChannel attempt 2: place the selected channel index assignment next to its lookup. objdiff 80.932205%, instructions 60/59, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-29.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::selectChannel attempt 3: separate the button declaration from initialization. objdiff 98.305084%, instructions 60/59, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-30.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::setChannelScissor attempt 1: declare clipping coordinates before extents. objdiff 92.67811%, instructions 233/233, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-31.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::setChannelScissor attempt 2: reverse independent vertical projection divisions. objdiff 93.48498%, instructions 233/233, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-32.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::setChannelScissor attempt 3: expand extents before subtracting the border coordinates. objdiff 93.343346%, instructions 233/233, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-33.ctx. No accepted exact gain, reverted. + +src/scene/channelSelect/iplChannelSelect::setChannelScissor attempt 1: declare clipping coordinates before extents. objdiff 92.69099%, instructions 233/233, exact baseline preserved 101/101, data 192/2336, pool 0; /tmp/data-d5-r2-scene-trial-34.ctx. No accepted exact gain, reverted. + +src/scene/channelSelect/iplChannelSelect::setChannelScissor attempt 2: reverse independent vertical projection divisions. objdiff 93.4721%, instructions 233/233, exact baseline preserved 101/101, data 192/2336, pool 0; /tmp/data-d5-r2-scene-trial-35.ctx. No accepted exact gain, reverted. + +src/scene/channelSelect/iplChannelSelect::setChannelScissor attempt 3: expand extents before subtracting the border coordinates. objdiff 93.356224%, instructions 233/233, exact baseline preserved 101/101, data 192/2336, pool 0; /tmp/data-d5-r2-scene-trial-36.ctx. No accepted exact gain, reverted. + +Runner selection error: the first button-handler trial accidentally measured the already-exact SDChannelSelect member overload. That measurement was invalid, no candidate was accepted or committed, and the source was restored. Subsequent trials use the full anonymous handler namespace and report its actual 98.541664% score. + +src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByChannelOrder attempt 2: declare a cached selected channel index as const. objdiff 97.29365%, instructions 126/126, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-14.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::calcCommon attempt 1: set the left arrow visibility with one boolean expression. objdiff 88.14815%, instructions 104/108, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-22.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::calcCommon attempt 2: bind the SD button through a separate scene pointer. objdiff 99.07407%, instructions 109/108, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-23.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 3: isolate the first animation pointer. objdiff 98.93617%, instructions 95/94, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-27.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 1: switch directly on the scene state. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-37.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 2: bind the pane before getting its name. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-38.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 3: use a typed boolean for the controller trigger. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-39.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 4: handle nonzero events with an early return before normal-state processing. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-40.ctx. No accepted exact gain, reverted. + +src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 5: dispatch the event with a switch and explicit default return. objdiff 99.30556%, instructions 145/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-41.ctx. No accepted exact gain, reverted. + +Final pre-gate remote check: fetched origin/main a1d6b7d9; none of the four owned source files changed since starting main f6fd2780. No new upstream match duplicates this work. + +Button-handler fifth attempt uses the real event switch and reaches 99.30556%, 145/144 instructions. The remaining extra instruction is `li r5,0` before SDButton::setEventHandler(NULL). The original relocates to the two-pointer setter but does not initialize its ignored second argument. The current honest declaration supplies default NULL, and the setter implementation ignores that argument. Removed no argument, introduced no alias/prototype cast or uninitialized value; reverted the fuzzy-only candidate. This explains the unresolved call ABI difference rather than claiming a register-only tie-break. + +## Round 2 final full gate and remaining functions + +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 27108/33828 data 224/2960 functions 117/129 fuzzy 99.5051 linked code 0 +[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 117/129 +[src/scene/channelSelect/iplChannelSelect] objdiff: code 24736/25668 data 192/2336 functions 101/102 fuzzy 99.7634 linked code 0 +[src/scene/channelSelect/iplChannelSelect] instruction-exact functions: 101/102 +[libs/RVL_SDK/src/wad/wad] objdiff: code 13180/24500 data 64/528 functions 35/40 fuzzy 98.9416 linked code 0 +[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 35/40 +[libs/RevoEX/src/nhttp/NHTTP_thread] objdiff: code 10528/11292 data 304/504 functions 25/26 fuzzy 99.9044 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_thread] instruction-exact functions: 25/26 +regressions vs baseline: 0 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +src/scene/sdChannelSelect/iplSDChannelSelect: data 224 -> 224/2960; code 27108 -> 27108/33828; instruction-exact 117 -> 117/129. + +- create__Q33ipl5scene15SDChannelSelectFv: 97.73972%; instructions 145/146; allocation and elapsed-tick scheduling; one instruction missing; 3 distinct compiled source attempts, all rejected and restored. +- handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv: 99.15205%; instructions 170/171; title-loop/state scheduling; one instruction missing; 3 distinct compiled source attempts, all rejected and restored. +- collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.81188%; instructions 101/101; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored. +- collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.833336%; instructions 102/102; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored. +- collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.29365%; instructions 126/126; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored. +- collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.55125%; instructions 361/361; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored. +- flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv: 99.65714%; instructions 35/35; heap/save-manager load order reversed, two instruction differences; 3 distinct compiled source attempts, all rejected and restored. +- calcCommon__Q33ipl5scene15SDChannelSelectFv: 99.07407%; instructions 109/108; extra default second-argument initialization at SDButton setter call; 3 distinct compiled source attempts, all rejected and restored. +- initializeNormalPage__Q33ipl5scene15SDChannelSelectFv: 98.93617%; instructions 95/94; extra default second-argument initialization at SDButton setter call; 3 distinct compiled source attempts, all rejected and restored. +- selectChannel__Q33ipl5scene15SDChannelSelectFii: 98.305084%; instructions 60/59; extra default second-argument initialization at SDButton setter call; 3 distinct compiled source attempts, all rejected and restored. +- setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj: 93.4721%; instructions 233/233; floating-point registers and arithmetic scheduling; 3 distinct compiled source attempts, all rejected and restored. +- onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface: 98.541664%; instructions 144/144; event dispatch form and ignored second setter argument; 5 distinct compiled source attempts, all rejected and restored. + +src/scene/channelSelect/iplChannelSelect: data 192 -> 192/2336; code 24736 -> 24736/25668; instruction-exact 101 -> 101/102. + +- setChannelScissor__Q33ipl5scene13ChannelSelectCFPCQ33ipl5scene10ChannelObj: 93.48498%; instructions 233/233; floating-point registers and arithmetic scheduling; 3 distinct compiled source attempts, all rejected and restored. + +libs/RVL_SDK/src/wad/wad: data 64 -> 64/528; code 13180 -> 13180/24500; instruction-exact 35 -> 35/40. + +- WADImportGetBlocks: 94.24161%; instructions 286/298; metadata/content loop and initialization code, twelve instructions missing; 3 distinct compiled source attempts, all rejected and restored. +- WADImportEx: 99.02269%; instructions 1146/1146; register allocation across transfer/cleanup state, equal instruction count; 3 distinct compiled source attempts, all rejected and restored. +- WAD_815C1288: 96.803276%; instructions 61/61; transfer/index register allocation, equal instruction count; 3 distinct compiled source attempts, all rejected and restored. +- WADBackupEx: 97.370995%; instructions 1057/1062; export loops and cleanup code, five instructions missing; 3 distinct compiled source attempts, all rejected and restored. +- WADImportDVDExForBS: 97.49049%; instructions 261/263; section calculations, two instructions missing; 3 distinct compiled source attempts, all rejected and restored. + +libs/RevoEX/src/nhttp/NHTTP_thread: data 88 -> 304/504; code 10528 -> 10528/11292; instruction-exact 25 -> 25/26. + +- NHTTPi_ThreadParseHeaderProc: 98.58639%; instructions 191/191; pool/request registers and keep-alive false-value scheduling; 3 distinct compiled source attempts, all rejected and restored. + +All 19 remaining functions have at least three compiled, distinct source-level attempts recorded above. No exact function disappeared. Final pools all identical, zero-extended section bytes and semantic relocations independently rechecked after the clean gate. Only NHTTP .rodata reaches a new 100% section; remaining .data scores are SDChannelSelect 35.06984, ChannelSelect 95.60976, wad 99.34924, NHTTP_thread 98.47716. The anonymous SD gap ownership and SDK final linker padding remain unresolved; the ChannelSelect weak-data exception is documented. No code, shared header, split or array-size changes survive round 2. -- 2.49.1 From 08923eda6ca98c9270567edcac967fe6d30868cf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:17:06 +0000 Subject: [PATCH 20/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f29d0e1..4cf5da91 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.16% | 98.17% | +| 99.46% | 88.57% | 63.16% | 98.19% | units 927/1027 complete, functions 12264/12563 matched. -- 2.49.1 From 2f0f5a44c72cb84e23732e09fc8e75487c788f76 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:26:05 -0500 Subject: [PATCH 21/63] data(zi8alpha data 180->516) (data-d13) (worker 5c2aec13) (#751) --- config/43U/symbols.txt | 2 +- tools/decomp-assist/data-d13.attempts.md | 179 +++++++++++++++++++++++ 2 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 tools/decomp-assist/data-d13.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 1481d059..0a6bfea5 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -14040,7 +14040,7 @@ zi8ZYfinalSpelling = .rodata:0x816179A0; // type:object size:0x100 zi8PYinitialSpelling = .rodata:0x81617AA0; // type:object size:0x100 zi8PYfinalSpelling = .rodata:0x81617BA0; // type:object size:0x200 IT_EXCLUDE_PAIRS = .rodata:0x81617DA0; // type:object size:0x104 -lbl_81617EA4 = .rodata:0x81617EA4; // type:object size:0x4C +FrenchExcludePairs = .rodata:0x81617EA4; // type:object size:0x46 zi8CangjieCodes = .rodata:0x81617EF0; // type:object size:0x20 Zi8SOdefaultArray = .rodata:0x81617F10; // type:object size:0x10 Zi8PinyinInitials = .rodata:0x81617F20; // type:object size:0x1C diff --git a/tools/decomp-assist/data-d13.attempts.md b/tools/decomp-assist/data-d13.attempts.md new file mode 100644 index 00000000..afbd11c5 --- /dev/null +++ b/tools/decomp-assist/data-d13.attempts.md @@ -0,0 +1,179 @@ +# data-d13 attempts + +Scope: BS2Mach, zi8cgetc, zi8alpha, zi81key. Baseline HEAD 0c94076d; origin/main fetched and scoped diff empty before work. All four pools identical. Before gate PASS, no regressions, retail DOL SHA1 correct. + +## zi8alpha +- Rename/extent proof: .text relocations 0x84A HA and 0x84E LO in Zi8_814659E8 load target lbl_81617EA4 and source FrenchExcludePairs, both .rodata offset 0x104. Seven ZiExclusionPair records are 10 bytes each, target/source first 70 bytes identical, trailing six target bytes zero alignment before next unit at 0x81617EF0. Rename to FrenchExcludePairs and correct 76 to 70 bytes; address and split totals unchanged. + +## ELF audit src/BS2/BS2Mach +obj non-text sizes: .bss=155232, .data=3024, .sdata=32, .sbss=240 +- obj jumptable_8164619C .data+0x3f4 size 52 loaded by CheckDVDCommandStatus+0x5a, CheckDVDCommandStatus+0x62; entries 13; target functions CheckDVDCommandStatus +- obj jumptable_81646338 .data+0x590 size 184 loaded by CheckBS2CommandStatus+0xda, CheckBS2CommandStatus+0xe2; entries 46; target functions CheckBS2CommandStatus +- obj jumptable_816467F4 .data+0xa4c size 92 loaded by BS2Tick+0x12c2, BS2Tick+0x12ca; entries 23; target functions BS2Tick +- obj jumptable_81646850 .data+0xaa8 size 292 loaded by BS2Tick+0x3e, BS2Tick+0x46; entries 73; target functions BS2Tick +src non-text sizes: .data=3020, .bss=155232, .sdata=32, .sbss=236 +- src @3618 .data+0x3f4 size 52 loaded by CheckDVDCommandStatus+0x5a, CheckDVDCommandStatus+0x62; entries 13; target functions CheckDVDCommandStatus +- src @3695 .data+0x590 size 184 loaded by CheckBS2CommandStatus+0xda, CheckBS2CommandStatus+0xe2; entries 46; target functions CheckBS2CommandStatus +- src @3972 .data+0xaa8 size 292 loaded by BS2Tick+0x3e, BS2Tick+0x46; entries 73; target functions BS2Tick +- src @3973 .data+0xa4c size 92 loaded by BS2Tick+0x12ae, BS2Tick+0x12b6; entries 23; target functions BS2Tick + +## ELF audit libs/RVLMiddleware/eZiText/src/clib/zi8cgetc +obj non-text sizes: extab=48, extabindex=72, .data=392, .sdata2=16, .sbss2=8 +- obj jumptable_8166AA88 .data+0x0 size 44 loaded by zi8InternalGetZH+0x76d2, zi8InternalGetZH+0x76d6; entries 11; target functions zi8InternalGetZH +- obj jumptable_8166AAB4 .data+0x2c size 44 loaded by zi8InternalGetZH+0x5436, zi8InternalGetZH+0x543a; entries 11; target functions zi8InternalGetZH +- obj jumptable_8166AAE0 .data+0x58 size 160 loaded by zi8InternalGetZH+0x11be, zi8InternalGetZH+0x11c2; entries 40; target functions zi8InternalGetZH +- obj jumptable_8166AB80 .data+0xf8 size 144 loaded by zi8InternalGetZH+0x102e, zi8InternalGetZH+0x1032; entries 36; target functions zi8InternalGetZH +src non-text sizes: extab=48, extabindex=72, .data=392, .sdata2=16, .sbss2=8 +- src @2792 .data+0xf8 size 144 loaded by zi8InternalGetZH+0x1032, zi8InternalGetZH+0x1036; entries 36; target functions zi8InternalGetZH +- src @2793 .data+0x58 size 160 loaded by zi8InternalGetZH+0x11c2, zi8InternalGetZH+0x11c6; entries 40; target functions zi8InternalGetZH +- src @2794 .data+0x2c size 44 loaded by zi8InternalGetZH+0x543e, zi8InternalGetZH+0x5442; entries 11; target functions zi8InternalGetZH +- src @2795 .data+0x0 size 44 loaded by zi8InternalGetZH+0x76d6, zi8InternalGetZH+0x76da; entries 11; target functions zi8InternalGetZH + +## ELF audit libs/RVLMiddleware/eZiText/src/clib/zi8alpha +obj non-text sizes: extab=72, extabindex=108, .rodata=336, .data=48 +- obj jumptable_8166AA58 .data+0x0 size 48 loaded by Zi8AlphaGetCandidates+0x18b2, Zi8AlphaGetCandidates+0x18b6; entries 12; target functions Zi8AlphaGetCandidates +src non-text sizes: extab=72, extabindex=108, .rodata=330, .data=48 +- src @1527 .data+0x0 size 48 loaded by Zi8AlphaGetCandidates+0x18ae, Zi8AlphaGetCandidates+0x18b2; entries 12; target functions Zi8AlphaGetCandidates + +## ELF audit libs/RVLMiddleware/eZiText/src/clib/zi81key +obj non-text sizes: extab=72, extabindex=108, .rodata=1152, .data=48, .sdata2=8 +- obj jumptable_8166AA28 .data+0x0 size 44 loaded by Zi8Get1KeyPressCandidates+0x3aa, Zi8Get1KeyPressCandidates+0x3ae; entries 11; target functions Zi8Get1KeyPressCandidates +- obj extabindex function extents [492, 628, 388, 1364, 200, 324, 6800, 9588, 1676] +src non-text sizes: extab=72, extabindex=108, .rodata=1152, .data=44, .sdata2=8 +- src @1359 .data+0x0 size 44 loaded by Zi8Get1KeyPressCandidates+0x3aa, Zi8Get1KeyPressCandidates+0x3ae; entries 11; target functions Zi8Get1KeyPressCandidates +- src extabindex function extents [492, 628, 388, 1364, 200, 324, 6796, 9548, 1676] + +Rename-only control, original 76-byte extent: {"fuzzy_match_percent": 94.17153, "total_code": "21664", "matched_code": "5704", "matched_code_percent": 26.329395, "total_data": "564", "matched_data": "180", "matched_data_percent": 31.914892, "total_functions": 12, "matched_functions": 10, "matched_functions_percent": 83.33333, "total_units": 1}; [{"name": ".data", "size": "48", "metadata": {}}, {"name": ".rodata", "size": "336", "fuzzy_match_percent": 99.0991, "metadata": {}}, {"name": ".text", "size": "21664", "fuzzy_match_percent": 94.17153, "metadata": {}}, {"name": "extab", "size": "72", "fuzzy_match_percent": 100.0, "metadata": {}}, {"name": "extabindex", "size": "108", "fuzzy_match_percent": 100.0, "metadata": {}}] + +Extent-only control, extracted name: {"fuzzy_match_percent": 94.17153, "total_code": "21664", "matched_code": "5704", "matched_code_percent": 26.329395, "total_data": "564", "matched_data": "516", "matched_data_percent": 91.489365, "total_functions": 12, "matched_functions": 10, "matched_functions_percent": 83.33333, "total_units": 1}; [{"name": ".data", "size": "48", "metadata": {}}, {"name": ".rodata", "size": "336", "fuzzy_match_percent": 100.0, "metadata": {}}, {"name": ".text", "size": "21664", "fuzzy_match_percent": 94.17153, "metadata": {}}, {"name": "extab", "size": "72", "fuzzy_match_percent": 100.0, "metadata": {}}, {"name": "extabindex", "size": "108", "fuzzy_match_percent": 100.0, "metadata": {}}] + +## Classification and scope boundary + +BS2Mach: .bss/.sdata/.sbss already 100%. Target .data string objects at offsets 0x0, 0x22, 0x3C, 0x428, 0x452, 0x648, 0x669 are anonymous compiler string-pool ranges, several containing multiple literals. All 91 ordinary literal contents and offsets agree. Source symbols are compiler-generated @ identifiers, not real typed object names. Do not rename these extracted objects to unstable compiler identifiers or shrink aggregate pool extents. Four jump tables are compiler-generated switch data. The CheckDVDCommandStatus table has an exact owning function; remaining tables have code-relative relocations into non-exact CheckBS2CommandStatus and BS2Tick. No safe real-name correction exists for any remaining .data symbol. Four trailing .data bytes and four trailing .sbss bytes are split alignment, not missing objects. + +zi8cgetc: .sdata2/.sbss2/extab/extabindex already 100%. All four .data objects are switch tables whose entries relocate into non-exact zi8InternalGetZH; same table offsets/sizes, displaced basic blocks. Matching these requires code work. No real named object or initializer is missing. Compiler @ names are not authorized rename targets. + +zi8alpha: .rodata now 100%, extab/extabindex already 100%. Remaining 48-byte .data object is a 12-entry switch table owned by non-exact Zi8AlphaGetCandidates. Its code-relative relocation destinations require code matching, not a data extent change. No ordinary initializer difference remains. + +zi81key: .rodata/.data/.sdata2/extab already 100%. Only extabindex differs, exactly at function-size fields for Zi8Get1KeyPressSpelling (source 6796, target 6800) and Zi8Get1KeyPressCandidates (source 9548, target 9588). These are genuine generated code-length fields. Never edit function extents or unwind data to disguise missing instructions. Source tables and type names already agree. No data edit can resolve these lengths. + +Control results: extent correction alone restores .rodata 100% and matched_data 180 -> 516; name-only correction does not. Both are retained because the HA/LO relocation proof identifies the actual FrenchExcludePairs object. No source change is required. Data total remains 564, split endpoints remain unchanged, and the six alignment bytes remain unowned by the corrected symbol. + +## Open-function attempt coverage inherited from tracked logs + +No source tuning is undertaken in this data assignment. All open functions already have at least three measured, distinct source attempts recorded in tracked logs; the summaries below preserve that coverage without repeating rejected experiments. + +BS2Mach.attempts.md, Remaining-function attempt coverage: +- Run: per-block do/while cache calls; counted for loop; bulk cache zero/flush. Register-clearing trampoline remains outside portable C. +- BS2StartGame: target-shaped nested error branches; switch result dispatch; nested polling via DVD status APIs. Calls/reloads/scheduling remain. +- BS2StartGCGame: config/SRAM/MIOS implementation; reversed multiply operands with 64-bit MIOS vararg; separate timer locals and DVD polling. Reload/scheduling remains. +- CheckBS2CommandStatus: per-state paths/shared exit; direct returns; precompute chunk length. Reload/scheduling remains. +- BS2Tick: object-order state switch; typed disk/partition scan; region switch plus forward ticket scan. State branch/register scheduling remains. + +zi8cgetc.current.attempts.md: +- ZiMatchZHSpelling: unsigned candidate character length; long spelling match result; long candidate character length; 18 measured trials, register-only plateau. +- zi8InternalGetZH: initialize all engine locals at declaration; charset-only declaration initialization; phase/output-index declaration initialization; 19 initial measured trials plus relocation-aware g20-g22 fixes. Engine register choices/call-result moves remain. +- Zi8GetElementCount: explicit remaining-character condition; direct separator local; compound count increments; 12 measured trials, register-only plateau. + +zi8alpha.attempts.md: +- Zi8ChangeWordCase: integer case flag; byte case flag; separate flag declaration/assignment. Register-only plateau. +- Zi8AlphaGetCandidates: reverse declarations; five byte state flags; explicit phonetic separator switch. Many subsequent complete-body improvements landed; current branch/register differences remain. + +zi81key.attempts.md: +- Zi8SpellingZY: flat row indexing; typed row pointer; generic output formal. Six register differences remain. +- Zi8SpellingPY: initialize length before components; signed tone; decode tone after spelling rows. Later work improved it, current register allocation remains. +- Zi8Get1KeyPressSpelling: compound cursor postincrement; constant-first language tests; index increment in for header. One missing instruction and fallback-call scheduling remain. +- Zi8Get1KeyPressCandidates: halfword key/byte length formals; explicit PCode halfword casts/masks; preincrement capacity comparisons. Ten missing instructions and scheduling remain. + +Data goal is not complete. No prohibited symbol renames, guessed objects, padding, forced sections, code-size changes, or assembly were used. This candidate is a focused 336-byte data-measure gain and leaves every instruction-exact count unchanged. + +## Final fresh validation + +BS2Mach pool contents AND offsets identical for all 91 strings. French table reader Zi8_814659E8: ctxdiff 51/51 instructions, diffs 0. + +- main/src/BS2/BS2Mach: exact functions 24 -> 24, code 4940 -> 4940, data 155504 -> 155504 / 158528. + - Open Run 16.744186%; prior distinct source-attempt coverage listed above. + - Open BS2StartGame 95.496185%; prior distinct source-attempt coverage listed above. + - Open BS2StartGCGame 99.5614%; prior distinct source-attempt coverage listed above. + - Open CheckBS2CommandStatus 99.50739%; prior distinct source-attempt coverage listed above. + - Open BS2Tick 98.15876%; prior distinct source-attempt coverage listed above. +- main/libs/RVLMiddleware/eZiText/src/clib/zi81key: exact functions 5 -> 5, code 3952 -> 3952, data 1280 -> 1280 / 1388. + - Open Zi8SpellingZY 99.756096%; prior distinct source-attempt coverage listed above. + - Open Zi8SpellingPY 99.36306%; prior distinct source-attempt coverage listed above. + - Open Zi8Get1KeyPressSpelling 97.92647%; prior distinct source-attempt coverage listed above. + - Open Zi8Get1KeyPressCandidates 95.39716%; prior distinct source-attempt coverage listed above. +- main/libs/RVLMiddleware/eZiText/src/clib/zi8alpha: exact functions 10 -> 10, code 5704 -> 5704, data 180 -> 516 / 564. + - Open Zi8ChangeWordCase 99.09091%; prior distinct source-attempt coverage listed above. + - Open Zi8AlphaGetCandidates 92.01039%; prior distinct source-attempt coverage listed above. +- main/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc: exact functions 5 -> 5, code 4168 -> 4168, data 144 -> 144 / 536. + - Open ZiMatchZHSpelling 98.80165%; prior distinct source-attempt coverage listed above. + - Open zi8InternalGetZH 95.99054%; prior distinct source-attempt coverage listed above. + - Open Zi8GetElementCount 99.347824%; prior distinct source-attempt coverage listed above. + +Final non-quick gate output: + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/BS2/BS2Mach] pool: IDENTICAL +[src/BS2/BS2Mach] objdiff: code 4940/16980 data 155504/158528 functions 24/29 fuzzy 97.8276 linked code 0 +[src/BS2/BS2Mach] instruction-exact functions: 24/29 +[src/BS2/BS2Mach] section .bss size 155232 match 100.0 +[src/BS2/BS2Mach] section .data size 3024 match None +[src/BS2/BS2Mach] section .sbss size 240 match 100.0 +[src/BS2/BS2Mach] section .sdata size 32 match 100.0 +[src/BS2/BS2Mach] section .text size 16980 match 97.82756 +[src/BS2/BS2Mach] below 100: Run 16.744186 +[src/BS2/BS2Mach] below 100: BS2StartGame 95.496185 +[src/BS2/BS2Mach] below 100: BS2StartGCGame 99.5614 +[src/BS2/BS2Mach] below 100: CheckBS2CommandStatus 99.50739 +[src/BS2/BS2Mach] below 100: BS2Tick 98.15876 +[src/BS2/BS2Mach] baseline: code 4940/16980 data 155504 functions 24 fuzzy 97.8276 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 144/536 functions 5/8 fuzzy 96.4008 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match None +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 96.40079 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 95.99054 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824 +[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 144 functions 5 fuzzy 96.4008 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] objdiff: code 5704/21664 data 516/564 functions 10/12 fuzzy 94.1715 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] instruction-exact functions: 10/12 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .data size 48 match None +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .rodata size 336 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .text size 21664 match 94.17153 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section extab size 72 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section extabindex size 108 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] below 100: Zi8ChangeWordCase 99.09091 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] below 100: Zi8AlphaGetCandidates 92.01039 +[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] baseline: code 5704/21664 data 180 functions 10 fuzzy 94.1715 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zi81key] objdiff: code 3952/21460 data 1280/1388 functions 5/9 fuzzy 97.2622 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] instruction-exact functions: 5/9 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .data size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .rodata size 1152 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .sdata2 size 8 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .text size 21460 match 97.26225 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] section extab size 72 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] section extabindex size 108 match 98.14815 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8SpellingZY 99.756096 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8SpellingPY 99.36306 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8Get1KeyPressSpelling 97.92647 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8Get1KeyPressCandidates 95.39716 +[libs/RVLMiddleware/eZiText/src/clib/zi81key] baseline: code 3952/21460 data 1280 functions 5 fuzzy 97.2622 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.18649 -> 98.20482 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` -- 2.49.1 From 5d63d152486a556fa24edf46b65dee7ce88474d6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:27:05 +0000 Subject: [PATCH 22/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4cf5da91..d930f39d 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.16% | 98.19% | +| 99.46% | 88.57% | 63.16% | 98.20% | units 927/1027 complete, functions 12264/12563 matched. -- 2.49.1 From 5543b7b720e18b9e093f2f3a9e8f9d4cb3a2eabb Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:28:42 -0500 Subject: [PATCH 23/63] data(tiTextDrawer data 100%) (data-d14) (worker 6757043c) (#752) --- config/43U/symbols.txt | 2 +- tools/decomp-assist/data-d14.attempts.md | 114 +++++++++++++++++++++++ 2 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 tools/decomp-assist/data-d14.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 0a6bfea5..3751e3c3 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -20803,7 +20803,7 @@ lbl_81694DF8 = .sdata2:0x81694DF8; // type:object size:0x4 align:4 data:float lbl_81694DFC = .sdata2:0x81694DFC; // type:object size:0x4 align:4 data:float lbl_81694E00 = .sdata2:0x81694E00; // type:object size:0x4 align:4 data:float lbl_81694E04 = .sdata2:0x81694E04; // type:object size:0x4 align:4 data:float -lbl_81694E08 = .sdata2:0x81694E08; // type:object size:0x8 align:4 data:float +lbl_81694E08 = .sdata2:0x81694E08; // type:object size:0x4 align:4 data:float @6510 = .sdata2:0x81694E10; // type:object size:0x4 scope:local align:4 data:float @6752 = .sdata2:0x81694E14; // type:object size:0x4 scope:local align:4 data:float @6771 = .sdata2:0x81694E18; // type:object size:0x4 scope:local align:4 data:float diff --git a/tools/decomp-assist/data-d14.attempts.md b/tools/decomp-assist/data-d14.attempts.md new file mode 100644 index 00000000..9a97a3bd --- /dev/null +++ b/tools/decomp-assist/data-d14.attempts.md @@ -0,0 +1,114 @@ +# Data d14 attempts + +Baseline origin/main checked after fetch; assigned source and symbol entries unchanged from HEAD. Baseline full build and DOL hash passed. +zkokeyp: data 96/180; instruction-exact 1/7; code 332/5200. +zprepare: data 8/68; instruction-exact 0/1; code 0/3760. +tiTextDrawer: data 1560/1608; instruction-exact 24/24; code 3476/3476. +All three pool_diff.py comparisons identical, zero strings. + +## Classification +zkokeyp .data: 40-byte compiler jump table, all ten relocation addends into exact Zi8_81483118 identical; no name mismatch. extab: 56 bytes identical. extabindex: function lengths differ for Zi8_814834AC (1376 vs 1372) and Zi8GetKOcandidates (2692 vs 2676). Remaining gap is code-dependent unwind data, not an initializer or symbol extent error. +zprepare .data: 48-byte compiler jump table, all twelve relocation addends into non-exact Zi8PrepareMatch shifted -16 bytes; real code-position mismatch. extab identical; extabindex function length 3756 vs 3760. No proven data symbol rename. +tiTextDrawer .bss and .data identical; .sdata2 first 44 bytes identical. Final float literal extent absorbs four trailing alignment bytes. +Proof: lbl_81694E08 at .sdata2:0x81694E08 is loaded by lfs in beginDraw, source float 100.0f is compiler @2181 size 4 with bytes 42c80000; target extent 8 includes 00000000 alignment through unchanged split end 0x81694E10. Correct size to 4, preserve address and section total 48. + +Zi8_8148302C: 1 widen table count local: objdiff 96.52542%; data 96/180; exact 1/7; ['src 0xe8 base 0xec insns 58/59', '--- replace mine 7:8 base 7:8']; reverted + +Zi8_8148302C: 2 reverse local declaration order: objdiff 99.32204%; data 96/180; exact 1/7; ['src 0xec base 0xec insns 59/59', 'diffs 8: [7, 12, 14, 32, 34, 38, 44, 49]']; reverted + +Zi8_8148302C: 3 typed entry character access: objdiff 93.81356%; data 96/180; exact 1/7; ['src 0xe4 base 0xec insns 57/59', '--- replace mine 6:8 base 6:8']; reverted + +Zi8_81483264: 1 widen scratch index: objdiff 93.65854%; data 96/180; exact 1/7; ['src 0x9c base 0xa4 insns 39/41', '--- replace mine 6:7 base 6:7']; reverted + +Zi8_81483264: 2 pointer typed scratch alias: objdiff 88.268295%; data 40/180; exact 1/7; ['src 0xac base 0xa4 insns 43/41', '--- replace mine 6:11 base 6:9']; reverted + +Zi8_81483264: 3 scope loop index initialization: objdiff 91.46342%; data 96/180; exact 1/7; ['src 0xa0 base 0xa4 insns 40/41', '--- replace mine 6:7 base 6:7']; reverted + +Zi8_81483308: 1 widen scratch index: objdiff 95.43104%; data 96/180; exact 1/7; ['src 0xe0 base 0xe8 insns 56/58', '--- replace mine 7:8 base 7:8']; reverted + +Zi8_81483308: 2 pointer typed scratch alias: objdiff 93.10345%; data 40/180; exact 1/7; ['src 0xe4 base 0xe8 insns 57/58', '--- replace mine 6:10 base 6:9']; reverted + +Zi8_81483308: 3 scope loop index initialization: objdiff 93.86207%; data 96/180; exact 1/7; ['src 0xe4 base 0xe8 insns 57/58', '--- replace mine 7:8 base 7:8']; reverted + +Zi8_814833F0: 1 widen scratch index: objdiff 94.46809%; data 96/180; exact 1/7; ['src 0xb4 base 0xbc insns 45/47', '--- replace mine 6:7 base 6:7']; reverted + +Zi8_814833F0: 2 pointer typed scratch alias: objdiff 89.87234%; data 40/180; exact 1/7; ['src 0xc4 base 0xbc insns 49/47', '--- replace mine 6:8 base 6:7']; reverted + +Zi8_814833F0: 3 scope loop index initialization: objdiff 92.53191%; data 96/180; exact 1/7; ['src 0xb8 base 0xbc insns 46/47', '--- replace mine 6:7 base 6:7']; reverted + +Zi8_814834AC: 1 initialize packed keys in narrow to wide order: objdiff 98.77551%; data 96/180; exact 1/7; ['src 0x560 base 0x55c insns 344/343', '--- replace mine 9:10 base 9:10']; reverted + +Zi8_814834AC: 2 split packed keys initialization: objdiff 99.3586%; data 96/180; exact 1/7; ['src 0x560 base 0x55c insns 344/343', '--- replace mine 9:10 base 9:10']; reverted + +Zi8_814834AC: 3 reverse character expression operands: objdiff 98.755104%; data 96/180; exact 1/7; ['src 0x560 base 0x55c insns 344/343', '--- replace mine 9:10 base 9:10']; reverted + +Zi8GetKOcandidates: 1 chain packed keys initialization: objdiff 97.67564%; data 96/180; exact 1/7; ['src 0xa84 base 0xa74 insns 673/669', '--- delete mine 11:13 base 11:11']; reverted + +Zi8GetKOcandidates: 2 reorder key pointer declarations: objdiff 97.96712%; data 96/180; exact 1/7; ['src 0xa84 base 0xa74 insns 673/669', '--- replace mine 11:13 base 11:13']; reverted + +Zi8GetKOcandidates: 3 reverse key initialization order: objdiff 97.66816%; data 96/180; exact 1/7; ['src 0xa84 base 0xa74 insns 673/669', '--- delete mine 11:13 base 11:11']; reverted + +Zi8PrepareMatch: 1 split element load and component assignment: objdiff 96.297874%; data 8/68; ['src 0xeac base 0xeb0 insns 939/940', '--- replace mine 11:13 base 11:13']; reverted + +Zi8PrepareMatch: 2 use indexed component address expression: objdiff 96.319145%; data 8/68; ['src 0xeac base 0xeb0 insns 939/940', '--- replace mine 11:13 base 11:13']; reverted + +Zi8PrepareMatch: 3 factor component length calculation into typed local: objdiff 95.607445%; data 8/68; ['src 0xeb4 base 0xeb0 insns 941/940', '--- replace mine 10:13 base 10:13']; reverted + +## Final open-function audit +Zi8_8148302C: three distinct built source trials recorded above; no accepted code change. +Zi8_81483264: three distinct built source trials recorded above; no accepted code change. +Zi8_81483308: three distinct built source trials recorded above; no accepted code change. +Zi8_814833F0: three distinct built source trials recorded above; no accepted code change. +Zi8_814834AC: three distinct built source trials recorded above; no accepted code change. +Zi8GetKOcandidates: three distinct built source trials recorded above; no accepted code change. +Zi8PrepareMatch: three distinct built source trials recorded above; no accepted code change. +First four Korean helpers retain instruction counts and differ only in callee-saved register assignment. Zi8_814834AC retains an extra zero-extension and register differences. Zi8GetKOcandidates retains initialization, operand ordering, and branch/code-size differences. Zi8PrepareMatch retains code-position and instruction differences; target writes a component-present byte at stack+0xF twice but never reads it. No dummy local or forced instruction was added to reproduce those writes. +No remaining target data symbol has a proven real-name mismatch. zkokeyp and zprepare residual non-text gaps require code matching; no address or section extent was changed there. tiTextDrawer is now 1608/1608 data with all non-text sections 100%; all 24 instruction-exact functions remain exact. + +## Final full gate + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 96/180 functions 1/7 fuzzy 98.6539 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .data size 40 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 98.65385 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.3586 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 97.96712 +[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data 96 functions 1 fuzzy 98.6539 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 96.3191 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 96.319145 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 91.66667 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 96.319145 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 96.3191 +[src/keyboard/tiTextDrawer] pool: IDENTICAL +[src/keyboard/tiTextDrawer] objdiff: code 3476/3476 data 1608/1608 functions 24/24 fuzzy 100.0000 linked code 3476 +[src/keyboard/tiTextDrawer] instruction-exact functions: 24/24 +[src/keyboard/tiTextDrawer] section .bss size 1408 match 100.0 +[src/keyboard/tiTextDrawer] section .data size 152 match 100.0 +[src/keyboard/tiTextDrawer] section .sdata2 size 48 match 100.0 +[src/keyboard/tiTextDrawer] section .text size 3476 match 100.0 +[src/keyboard/tiTextDrawer] baseline: code 3476/3476 data 1560 functions 24 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.18649 -> 98.18910 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` +Full clean 43U rebuild passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Regression count 0. All experimental source changes reverted. Only the proven float extent correction is retained. -- 2.49.1 From 422a344b282c65104a9157a99239d0950b337472 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:29:37 +0000 Subject: [PATCH 24/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d930f39d..d5472712 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.16% | 98.20% | +| 99.46% | 88.57% | 63.16% | 98.21% | units 927/1027 complete, functions 12264/12563 matched. -- 2.49.1 From 0dd0a6941a161ae0d1bd6a1bad74665d015916e2 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:32:21 -0500 Subject: [PATCH 25/63] data(iplSDChannelSelect, iplChannelSelect, wad, NHTTP_thread data 100%) (data-d5c) (worker a2bc7e81) (#753) --- config/43U/symbols.txt | 401 ++++++++++++++---------- tools/decomp-assist/data-d5.attempts.md | 308 ++++++++++++++++++ 2 files changed, 544 insertions(+), 165 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 3751e3c3..d38be0ec 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -15947,85 +15947,112 @@ __vt__Q33ipl5scene11ChanAppEdit = .data:0x8164D6D8; // type:object size:0x28 ...data.0 = .data:0x8164D950; // type:label scope:local @12056 = .data:0x8164D95B; // type:object size:0xB scope:local data:string @12057 = .data:0x8164D966; // type:object size:0x11 scope:local data:string -lbl_8164D978 = .data:0x8164D978; // type:object size:0x9 data:string -lbl_8164D981 = .data:0x8164D981; // type:object size:0x9 data:string -lbl_8164D98A = .data:0x8164D98A; // type:object size:0x9 data:string -lbl_8164D993 = .data:0x8164D993; // type:object size:0x9 data:string -lbl_8164D99C = .data:0x8164D99C; // type:object size:0x9 data:string -lbl_8164D9A5 = .data:0x8164D9A5; // type:object size:0x9 data:string -lbl_8164D9AE = .data:0x8164D9AE; // type:object size:0x9 data:string -lbl_8164D9B7 = .data:0x8164D9B7; // type:object size:0x9 data:string -lbl_8164D9C0 = .data:0x8164D9C0; // type:object size:0x9 data:string -lbl_8164D9C9 = .data:0x8164D9C9; // type:object size:0x9 data:string -lbl_8164D9D2 = .data:0x8164D9D2; // type:object size:0x9 data:string -lbl_8164D9DB = .data:0x8164D9DB; // type:object size:0x9 data:string -lbl_8164D9E4 = .data:0x8164D9E4; // type:object size:0x9 data:string -lbl_8164D9ED = .data:0x8164D9ED; // type:object size:0x9 data:string -lbl_8164D9F6 = .data:0x8164D9F6; // type:object size:0x9 data:string -lbl_8164D9FF = .data:0x8164D9FF; // type:object size:0x9 data:string -lbl_8164DA08 = .data:0x8164DA08; // type:object size:0x9 data:string -lbl_8164DA11 = .data:0x8164DA11; // type:object size:0x9 data:string -lbl_8164DA1A = .data:0x8164DA1A; // type:object size:0x9 data:string -lbl_8164DA23 = .data:0x8164DA23; // type:object size:0x9 data:string -lbl_8164DA2C = .data:0x8164DA2C; // type:object size:0x9 data:string -lbl_8164DA35 = .data:0x8164DA35; // type:object size:0x9 data:string -lbl_8164DA3E = .data:0x8164DA3E; // type:object size:0x9 data:string -lbl_8164DA47 = .data:0x8164DA47; // type:object size:0x9 data:string -lbl_8164DA50 = .data:0x8164DA50; // type:object size:0x9 data:string -lbl_8164DA59 = .data:0x8164DA59; // type:object size:0x9 data:string -lbl_8164DA62 = .data:0x8164DA62; // type:object size:0x9 data:string -lbl_8164DA6B = .data:0x8164DA6B; // type:object size:0x9 data:string -lbl_8164DA74 = .data:0x8164DA74; // type:object size:0x9 data:string -lbl_8164DA7D = .data:0x8164DA7D; // type:object size:0x9 data:string -lbl_8164DA86 = .data:0x8164DA86; // type:object size:0x9 data:string -lbl_8164DA8F = .data:0x8164DA8F; // type:object size:0x9 data:string -lbl_8164DA98 = .data:0x8164DA98; // type:object size:0x9 data:string -lbl_8164DAA1 = .data:0x8164DAA1; // type:object size:0x9 data:string -lbl_8164DAAA = .data:0x8164DAAA; // type:object size:0x9 data:string -lbl_8164DAB3 = .data:0x8164DAB3; // type:object size:0x9 data:string -lbl_8164DABC = .data:0x8164DABC; // type:object size:0x9 data:string -lbl_8164DAC5 = .data:0x8164DAC5; // type:object size:0x9 data:string -lbl_8164DACE = .data:0x8164DACE; // type:object size:0x9 data:string -lbl_8164DAD7 = .data:0x8164DAD7; // type:object size:0x9 data:string -lbl_8164DAE0 = .data:0x8164DAE0; // type:object size:0x9 data:string -lbl_8164DAE9 = .data:0x8164DAE9; // type:object size:0x9 data:string +@17260 = .data:0x8164D978; // type:object size:0x9 scope:local data:string +@17261 = .data:0x8164D981; // type:object size:0x9 scope:local data:string +@17262 = .data:0x8164D98A; // type:object size:0x9 scope:local data:string +@17263 = .data:0x8164D993; // type:object size:0x9 scope:local data:string +@17264 = .data:0x8164D99C; // type:object size:0x9 scope:local data:string +@17265 = .data:0x8164D9A5; // type:object size:0x9 scope:local data:string +@17266 = .data:0x8164D9AE; // type:object size:0x9 scope:local data:string +@17267 = .data:0x8164D9B7; // type:object size:0x9 scope:local data:string +@17268 = .data:0x8164D9C0; // type:object size:0x9 scope:local data:string +@17269 = .data:0x8164D9C9; // type:object size:0x9 scope:local data:string +@17270 = .data:0x8164D9D2; // type:object size:0x9 scope:local data:string +@17271 = .data:0x8164D9DB; // type:object size:0x9 scope:local data:string +@17272 = .data:0x8164D9E4; // type:object size:0x9 scope:local data:string +@17273 = .data:0x8164D9ED; // type:object size:0x9 scope:local data:string +@17274 = .data:0x8164D9F6; // type:object size:0x9 scope:local data:string +@17275 = .data:0x8164D9FF; // type:object size:0x9 scope:local data:string +@17276 = .data:0x8164DA08; // type:object size:0x9 scope:local data:string +@17277 = .data:0x8164DA11; // type:object size:0x9 scope:local data:string +@17278 = .data:0x8164DA1A; // type:object size:0x9 scope:local data:string +@17279 = .data:0x8164DA23; // type:object size:0x9 scope:local data:string +@17280 = .data:0x8164DA2C; // type:object size:0x9 scope:local data:string +@17281 = .data:0x8164DA35; // type:object size:0x9 scope:local data:string +@17282 = .data:0x8164DA3E; // type:object size:0x9 scope:local data:string +@17283 = .data:0x8164DA47; // type:object size:0x9 scope:local data:string +@17284 = .data:0x8164DA50; // type:object size:0x9 scope:local data:string +@17285 = .data:0x8164DA59; // type:object size:0x9 scope:local data:string +@17286 = .data:0x8164DA62; // type:object size:0x9 scope:local data:string +@17287 = .data:0x8164DA6B; // type:object size:0x9 scope:local data:string +@17288 = .data:0x8164DA74; // type:object size:0x9 scope:local data:string +@17289 = .data:0x8164DA7D; // type:object size:0x9 scope:local data:string +@17290 = .data:0x8164DA86; // type:object size:0x9 scope:local data:string +@17291 = .data:0x8164DA8F; // type:object size:0x9 scope:local data:string +@17292 = .data:0x8164DA98; // type:object size:0x9 scope:local data:string +@17293 = .data:0x8164DAA1; // type:object size:0x9 scope:local data:string +@17294 = .data:0x8164DAAA; // type:object size:0x9 scope:local data:string +@17295 = .data:0x8164DAB3; // type:object size:0x9 scope:local data:string +@17296 = .data:0x8164DABC; // type:object size:0x9 scope:local data:string +@17297 = .data:0x8164DAC5; // type:object size:0x9 scope:local data:string +@17298 = .data:0x8164DACE; // type:object size:0x9 scope:local data:string +@17299 = .data:0x8164DAD7; // type:object size:0x9 scope:local data:string +@17300 = .data:0x8164DAE0; // type:object size:0x9 scope:local data:string +@17301 = .data:0x8164DAE9; // type:object size:0x9 scope:local data:string mscChanPaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DAF4; // type:object size:0xF0 -lbl_8164DBE4 = .data:0x8164DBE4; // type:object size:0xA data:string -lbl_8164DBEE = .data:0x8164DBEE; // type:object size:0xA data:string -lbl_8164DBF8 = .data:0x8164DBF8; // type:object size:0xA data:string -lbl_8164DC02 = .data:0x8164DC02; // type:object size:0xA data:string -lbl_8164DC0C = .data:0x8164DC0C; // type:object size:0xA data:string +@17302 = .data:0x8164DBE4; // type:object size:0xA scope:local data:string +@17303 = .data:0x8164DBEE; // type:object size:0xA scope:local data:string +@17304 = .data:0x8164DBF8; // type:object size:0xA scope:local data:string +@17305 = .data:0x8164DC02; // type:object size:0xA scope:local data:string +@17306 = .data:0x8164DC0C; // type:object size:0xA scope:local data:string mscBasePaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC18; // type:object size:0x14 -lbl_8164DC2C = .data:0x8164DC2C; // type:object size:0xB data:string -lbl_8164DC37 = .data:0x8164DC37; // type:object size:0xB data:string -lbl_8164DC42 = .data:0x8164DC42; // type:object size:0xB data:string -lbl_8164DC4D = .data:0x8164DC4D; // type:object size:0xB data:string -lbl_8164DC58 = .data:0x8164DC58; // type:object size:0x20 -lbl_8164DC78 = .data:0x8164DC78; // type:object size:0x14 data:4byte -lbl_8164DC8C = .data:0x8164DC8C; // type:object size:0x9 data:string -lbl_8164DC95 = .data:0x8164DC95; // type:object size:0x9 data:string -lbl_8164DC9E = .data:0x8164DC9E; // type:object size:0x9 data:string -lbl_8164DCA8 = .data:0x8164DCA8; // type:object size:0xC -lbl_8164DCB4 = .data:0x8164DCB4; // type:object size:0xC data:string -lbl_8164DCC0 = .data:0x8164DCC0; // type:object size:0x1F -lbl_8164DCDF = .data:0x8164DCDF; // type:object size:0x35 -jumptable_8164DD14 = .data:0x8164DD14; // type:object size:0x6C scope:local -lbl_8164DD80 = .data:0x8164DD80; // type:object size:0x37 -lbl_8164DDB7 = .data:0x8164DDB7; // type:object size:0xAD +@17307 = .data:0x8164DC2C; // type:object size:0xB scope:local data:string +@17308 = .data:0x8164DC37; // type:object size:0xB scope:local data:string +@17309 = .data:0x8164DC42; // type:object size:0xB scope:local data:string +@17310 = .data:0x8164DC4D; // type:object size:0xB scope:local data:string +@17311 = .data:0x8164DC58; // type:object size:0xB scope:local data:string +mscUnk0PaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC64; // type:object size:0x14 data:4byte +mscUnk1PaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC78; // type:object size:0x14 data:4byte +@17317 = .data:0x8164DC8C; // type:object size:0x9 scope:local data:string +@17318 = .data:0x8164DC95; // type:object size:0x9 scope:local data:string +@17319 = .data:0x8164DC9E; // type:object size:0x9 scope:local data:string +mscClockPaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DCA8; // type:object size:0xC data:4byte +@23246 = .data:0x8164DCB4; // type:object size:0xC scope:local data:string +@23247 = .data:0x8164DCC0; // type:object size:0xD scope:local data:string +@23374 = .data:0x8164DCCD; // type:object size:0x12 scope:local data:string +@23375 = .data:0x8164DCDF; // type:object size:0xE scope:local data:string +@23376 = .data:0x8164DCED; // type:object size:0x12 scope:local data:string +@23377 = .data:0x8164DCFF; // type:object size:0x13 scope:local data:string +@23426 = .data:0x8164DD14; // type:object size:0x6C scope:local data:4byte +@23551 = .data:0x8164DD80; // type:object size:0x17 scope:local data:string +@23653 = .data:0x8164DD97; // type:object size:0x12 scope:local data:string +@23654 = .data:0x8164DDA9; // type:object size:0xE scope:local data:string +@23655 = .data:0x8164DDB7; // type:object size:0xB scope:local data:string +@23656 = .data:0x8164DDC2; // type:object size:0x12 scope:local data:string +@23731 = .data:0x8164DDD4; // type:object size:0x12 scope:local data:string +@23732 = .data:0x8164DDE6; // type:object size:0x12 scope:local data:string +@23734 = .data:0x8164DDF8; // type:object size:0x12 scope:local data:string +@23735 = .data:0x8164DE0A; // type:object size:0x12 scope:local data:string +@23736 = .data:0x8164DE1C; // type:object size:0x13 scope:local data:string +@23739 = .data:0x8164DE2F; // type:object size:0x1A scope:local data:string +@23740 = .data:0x8164DE49; // type:object size:0x1B scope:local data:string scPaneName_N_GCIcon = .data:0x8164DE64; // type:object size:0x9 data:string scPaneName_N_DiscUpdateIcon = .data:0x8164DE6D; // type:object size:0x11 data:string updateDiskState_jumptable = .data:0x8164DE80; // type:object size:0x1C scope:local scSE_WSD_SELECT = .data:0x8164DE9C; // type:object size:0xB data:string -lbl_8164DEA7 = .data:0x8164DEA7; // type:object size:0x10 data:string -lbl_8164DEB7 = .data:0x8164DEB7; // type:object size:0x114 +@24254 = .data:0x8164DEA7; // type:object size:0x10 scope:local data:string +@24282 = .data:0x8164DEB7; // type:object size:0x12 scope:local data:string +@24521 = .data:0x8164DEC9; // type:object size:0x12 scope:local data:string +@24522 = .data:0x8164DEDB; // type:object size:0x12 scope:local data:string +@24523 = .data:0x8164DEED; // type:object size:0x12 scope:local data:string +@24524 = .data:0x8164DEFF; // type:object size:0x18 scope:local data:string +@24525 = .data:0x8164DF17; // type:object size:0xB scope:local data:string +@24526 = .data:0x8164DF22; // type:object size:0x17 scope:local data:string +@24527 = .data:0x8164DF39; // type:object size:0x13 scope:local data:string +@24528 = .data:0x8164DF4C; // type:object size:0x19 scope:local data:string +@24530 = .data:0x8164DF65; // type:object size:0x18 scope:local data:string +@24531 = .data:0x8164DF7D; // type:object size:0xA scope:local data:string +@24532 = .data:0x8164DF87; // type:object size:0x13 scope:local data:string +@24533 = .data:0x8164DF9A; // type:object size:0x19 scope:local data:string +@24534 = .data:0x8164DFB3; // type:object size:0x18 scope:local data:string scSE_WIPL_SE_CH_TARGETTING = .data:0x8164DFCB; // type:object size:0x16 data:string scSE_WIPL_SE_CH_HOLD = .data:0x8164DFE1; // type:object size:0x10 data:string scSE_WIPL_SE_CH_SET = .data:0x8164DFF1; // type:object size:0xF data:string scSE_WIPL_SE_CH_NOT_MOVE = .data:0x8164E000; // type:object size:0x14 data:string -lbl_8164E014 = .data:0x8164E014; // type:object size:0x10 data:string +@24865 = .data:0x8164E014; // type:object size:0x10 scope:local data:string scSE_WIPL_SE_GRAY_BUTTON = .data:0x8164E024; // type:object size:0x14 data:string scSE_WIPL_SE_DECIDE = .data:0x8164E038; // type:object size:0xF data:string -__vt__Q33ipl4math29HermiteIntp = .data:0x8164E048; // type:object size:0x20 +__vt__Q33ipl4math29HermiteIntp = .data:0x8164E048; // type:object size:0x10 data:4byte __vt__Q33ipl5scene27CsChanSelSDMenuEventHandler = .data:0x8164E068; // type:object size:0x1C __vt__Q33ipl5scene27CsChanSelButtonEventHandler = .data:0x8164E084; // type:object size:0x1C __vt__Q33ipl5scene25ChannelSelectEventHandler = .data:0x8164E0A0; // type:object size:0x18 @@ -16824,93 +16851,122 @@ __vt__Q33ipl5scene14ParentalDialog = .data:0x81653ED8; // type:object size:0x68 @10007 = .data:0x81653FD8; // type:object size:0xE scope:local data:string __vt__Q33ipl5scene6Reboot = .data:0x81653FE8; // type:object size:0x4C __vt__Q33ipl5scene9RootScene = .data:0x81654038; // type:object size:0x4C -@16632 = .data:0x81654088; // type:object size:0x9 scope:local data:string -@16633 = .data:0x81654091; // type:object size:0x9 scope:local data:string -@16634 = .data:0x8165409A; // type:object size:0x9 scope:local data:string -@16635 = .data:0x816540A3; // type:object size:0x9 scope:local data:string -@16636 = .data:0x816540AC; // type:object size:0x9 scope:local data:string -@16637 = .data:0x816540B5; // type:object size:0x9 scope:local data:string -@16638 = .data:0x816540BE; // type:object size:0x9 scope:local data:string -@16639 = .data:0x816540C7; // type:object size:0x9 scope:local data:string -@16640 = .data:0x816540D0; // type:object size:0x9 scope:local data:string -@16641 = .data:0x816540D9; // type:object size:0x9 scope:local data:string -@16642 = .data:0x816540E2; // type:object size:0x9 scope:local data:string -@16643 = .data:0x816540EB; // type:object size:0x9 scope:local data:string -@16644 = .data:0x816540F4; // type:object size:0x9 scope:local data:string -@16645 = .data:0x816540FD; // type:object size:0x9 scope:local data:string -@16646 = .data:0x81654106; // type:object size:0x9 scope:local data:string -@16647 = .data:0x8165410F; // type:object size:0x9 scope:local data:string -@16648 = .data:0x81654118; // type:object size:0x9 scope:local data:string -@16649 = .data:0x81654121; // type:object size:0x9 scope:local data:string -@16650 = .data:0x8165412A; // type:object size:0x9 scope:local data:string -@16651 = .data:0x81654133; // type:object size:0x9 scope:local data:string -@16652 = .data:0x8165413C; // type:object size:0x9 scope:local data:string -@16653 = .data:0x81654145; // type:object size:0x9 scope:local data:string -@16654 = .data:0x8165414E; // type:object size:0x9 scope:local data:string -@16655 = .data:0x81654157; // type:object size:0x9 scope:local data:string -@16656 = .data:0x81654160; // type:object size:0x9 scope:local data:string -@16657 = .data:0x81654169; // type:object size:0x9 scope:local data:string -@16658 = .data:0x81654172; // type:object size:0x9 scope:local data:string -@16659 = .data:0x8165417B; // type:object size:0x9 scope:local data:string -@16660 = .data:0x81654184; // type:object size:0x9 scope:local data:string -@16661 = .data:0x8165418D; // type:object size:0x9 scope:local data:string -@16662 = .data:0x81654196; // type:object size:0x9 scope:local data:string -@16663 = .data:0x8165419F; // type:object size:0x9 scope:local data:string -@16664 = .data:0x816541A8; // type:object size:0x9 scope:local data:string -@16665 = .data:0x816541B1; // type:object size:0x9 scope:local data:string -@16666 = .data:0x816541BA; // type:object size:0x9 scope:local data:string -@16667 = .data:0x816541C3; // type:object size:0x9 scope:local data:string -@16668 = .data:0x816541CC; // type:object size:0x9 scope:local data:string -@16669 = .data:0x816541D5; // type:object size:0x9 scope:local data:string -@16670 = .data:0x816541DE; // type:object size:0x9 scope:local data:string -@16671 = .data:0x816541E7; // type:object size:0x9 scope:local data:string -@16672 = .data:0x816541F0; // type:object size:0x9 scope:local data:string -@16673 = .data:0x816541F9; // type:object size:0x9 scope:local data:string -lbl_81654204 = .data:0x81654204; // type:object size:0xF0 -@16674 = .data:0x816542F4; // type:object size:0xA scope:local data:string -@16675 = .data:0x816542FE; // type:object size:0xA scope:local data:string -@16676 = .data:0x81654308; // type:object size:0xA scope:local data:string -@16677 = .data:0x81654312; // type:object size:0xA scope:local data:string -lbl_8165431C = .data:0x8165431C; // type:object size:0x20 -@16679 = .data:0x8165433C; // type:object size:0xB scope:local data:string -@16680 = .data:0x81654347; // type:object size:0xB scope:local data:string -@16681 = .data:0x81654352; // type:object size:0xB scope:local data:string -@16682 = .data:0x8165435D; // type:object size:0xB scope:local data:string -lbl_81654368 = .data:0x81654368; // type:object size:0x20 -lbl_81654388 = .data:0x81654388; // type:object size:0x14 data:4byte +@16723 = .data:0x81654088; // type:object size:0x9 scope:local data:string +@16724 = .data:0x81654091; // type:object size:0x9 scope:local data:string +@16725 = .data:0x8165409A; // type:object size:0x9 scope:local data:string +@16726 = .data:0x816540A3; // type:object size:0x9 scope:local data:string +@16727 = .data:0x816540AC; // type:object size:0x9 scope:local data:string +@16728 = .data:0x816540B5; // type:object size:0x9 scope:local data:string +@16729 = .data:0x816540BE; // type:object size:0x9 scope:local data:string +@16730 = .data:0x816540C7; // type:object size:0x9 scope:local data:string +@16731 = .data:0x816540D0; // type:object size:0x9 scope:local data:string +@16732 = .data:0x816540D9; // type:object size:0x9 scope:local data:string +@16733 = .data:0x816540E2; // type:object size:0x9 scope:local data:string +@16734 = .data:0x816540EB; // type:object size:0x9 scope:local data:string +@16735 = .data:0x816540F4; // type:object size:0x9 scope:local data:string +@16736 = .data:0x816540FD; // type:object size:0x9 scope:local data:string +@16737 = .data:0x81654106; // type:object size:0x9 scope:local data:string +@16738 = .data:0x8165410F; // type:object size:0x9 scope:local data:string +@16739 = .data:0x81654118; // type:object size:0x9 scope:local data:string +@16740 = .data:0x81654121; // type:object size:0x9 scope:local data:string +@16741 = .data:0x8165412A; // type:object size:0x9 scope:local data:string +@16742 = .data:0x81654133; // type:object size:0x9 scope:local data:string +@16743 = .data:0x8165413C; // type:object size:0x9 scope:local data:string +@16744 = .data:0x81654145; // type:object size:0x9 scope:local data:string +@16745 = .data:0x8165414E; // type:object size:0x9 scope:local data:string +@16746 = .data:0x81654157; // type:object size:0x9 scope:local data:string +@16747 = .data:0x81654160; // type:object size:0x9 scope:local data:string +@16748 = .data:0x81654169; // type:object size:0x9 scope:local data:string +@16749 = .data:0x81654172; // type:object size:0x9 scope:local data:string +@16750 = .data:0x8165417B; // type:object size:0x9 scope:local data:string +@16751 = .data:0x81654184; // type:object size:0x9 scope:local data:string +@16752 = .data:0x8165418D; // type:object size:0x9 scope:local data:string +@16753 = .data:0x81654196; // type:object size:0x9 scope:local data:string +@16754 = .data:0x8165419F; // type:object size:0x9 scope:local data:string +@16755 = .data:0x816541A8; // type:object size:0x9 scope:local data:string +@16756 = .data:0x816541B1; // type:object size:0x9 scope:local data:string +@16757 = .data:0x816541BA; // type:object size:0x9 scope:local data:string +@16758 = .data:0x816541C3; // type:object size:0x9 scope:local data:string +@16759 = .data:0x816541CC; // type:object size:0x9 scope:local data:string +@16760 = .data:0x816541D5; // type:object size:0x9 scope:local data:string +@16761 = .data:0x816541DE; // type:object size:0x9 scope:local data:string +@16762 = .data:0x816541E7; // type:object size:0x9 scope:local data:string +@16763 = .data:0x816541F0; // type:object size:0x9 scope:local data:string +@16764 = .data:0x816541F9; // type:object size:0x9 scope:local data:string +mscChannelPaneNames__Q33ipl5scene15SDChannelSelect = .data:0x81654204; // type:object size:0xF0 data:4byte +@16765 = .data:0x816542F4; // type:object size:0xA scope:local data:string +@16766 = .data:0x816542FE; // type:object size:0xA scope:local data:string +@16767 = .data:0x81654308; // type:object size:0xA scope:local data:string +@16768 = .data:0x81654312; // type:object size:0xA scope:local data:string +@16769 = .data:0x8165431C; // type:object size:0xA scope:local data:string +mscBasePaneNames__Q33ipl5scene15SDChannelSelect = .data:0x81654328; // type:object size:0x14 data:4byte +@16770 = .data:0x8165433C; // type:object size:0xB scope:local data:string +@16771 = .data:0x81654347; // type:object size:0xB scope:local data:string +@16772 = .data:0x81654352; // type:object size:0xB scope:local data:string +@16773 = .data:0x8165435D; // type:object size:0xB scope:local data:string +@16774 = .data:0x81654368; // type:object size:0xB scope:local data:string +mscPicturePaneNames__Q33ipl5scene15SDChannelSelect = .data:0x81654374; // type:object size:0x14 data:4byte +mscEdgePaneNames__Q33ipl5scene15SDChannelSelect = .data:0x81654388; // type:object size:0x14 data:4byte sFourPageDialogPages__Q23ipl5scene = .data:0x8165439C; // type:object size:0x70 sThreePageDialogPages__Q23ipl5scene = .data:0x8165440C; // type:object size:0x54 -@16689 = .data:0x81654460; // type:object size:0x9 scope:local data:string -@16690 = .data:0x81654469; // type:object size:0x9 scope:local data:string -lbl_81654472 = .data:0x81654472; // type:object size:0x16 -@24438 = .data:0x81654488; // type:object size:0xE scope:local data:string -@24439 = .data:0x81654496; // type:object size:0x11 scope:local data:string -@24489 = .data:0x816544A7; // type:object size:0x19 scope:local data:string -@24490 = .data:0x816544C0; // type:object size:0x1B scope:local data:string -jumptable_816544DC = .data:0x816544DC; // type:object size:0x38 scope:local -jumptable_81654514 = .data:0x81654514; // type:object size:0x40 scope:local -@24961 = .data:0x81654554; // type:object size:0xB scope:local data:string -@24962 = .data:0x8165455F; // type:object size:0xE scope:local data:string -jumptable_81654570 = .data:0x81654570; // type:object size:0x3C scope:local -jumptable_816545AC = .data:0x816545AC; // type:object size:0x40 scope:local -jumptable_816545EC = .data:0x816545EC; // type:object size:0x40 scope:local -jumptable_8165462C = .data:0x8165462C; // type:object size:0x40 scope:local -jumptable_8165466C = .data:0x8165466C; // type:object size:0x28 scope:local -jumptable_81654694 = .data:0x81654694; // type:object size:0x78 scope:local -lbl_8165473B = .data:0x8165473B; // type:object size:0xD4 -@26032 = .data:0x8165480F; // type:object size:0xE scope:local data:string -@26047 = .data:0x8165481D; // type:object size:0xB scope:local data:string -@26062 = .data:0x81654828; // type:object size:0x10 scope:local data:string -lbl_81654838 = .data:0x81654838; // type:object size:0x146 -@26231 = .data:0x8165497E; // type:object size:0x16 scope:local data:string -@26266 = .data:0x81654994; // type:object size:0x10 scope:local data:string -@26311 = .data:0x816549A4; // type:object size:0xF scope:local data:string -@26312 = .data:0x816549B3; // type:object size:0x14 scope:local data:string -@26336 = .data:0x816549C7; // type:object size:0x10 scope:local data:string -@26559 = .data:0x816549D7; // type:object size:0xF scope:local data:string -lbl_81654A08 = .data:0x81654A08; // type:object size:0x1C -lbl_81654A24 = .data:0x81654A24; // type:object size:0x18 -lbl_81654A3C = .data:0x81654A3C; // type:object size:0xFC +@16780 = .data:0x81654460; // type:object size:0x9 scope:local data:string +@16781 = .data:0x81654469; // type:object size:0x9 scope:local data:string +@16782 = .data:0x81654472; // type:object size:0x9 scope:local data:string +mscClockPaneNames__Q33ipl5scene15SDChannelSelect = .data:0x8165447C; // type:object size:0xC data:4byte +@24582 = .data:0x81654488; // type:object size:0xE scope:local data:string +@24583 = .data:0x81654496; // type:object size:0x11 scope:local data:string +@24633 = .data:0x816544A7; // type:object size:0x19 scope:local data:string +@24634 = .data:0x816544C0; // type:object size:0x1B scope:local data:string +@24741 = .data:0x816544DC; // type:object size:0x38 scope:local data:4byte +@24981 = .data:0x81654514; // type:object size:0x40 scope:local data:4byte +@25087 = .data:0x81654554; // type:object size:0xB scope:local data:string +@25088 = .data:0x8165455F; // type:object size:0xE scope:local data:string +@25094 = .data:0x81654570; // type:object size:0x3C scope:local data:4byte +@25093 = .data:0x816545AC; // type:object size:0x40 scope:local data:4byte +@25092 = .data:0x816545EC; // type:object size:0x40 scope:local data:4byte +@25091 = .data:0x8165462C; // type:object size:0x40 scope:local data:4byte +@25090 = .data:0x8165466C; // type:object size:0x28 scope:local data:4byte +@25466 = .data:0x81654694; // type:object size:0x78 scope:local data:4byte +@25703 = .data:0x8165473B; // type:object size:0xB scope:local data:string +@25704 = .data:0x81654746; // type:object size:0x16 scope:local data:string +@25705 = .data:0x8165475C; // type:object size:0x19 scope:local data:string +@25706 = .data:0x81654775; // type:object size:0x10 scope:local data:string +@25707 = .data:0x81654785; // type:object size:0x13 scope:local data:string +@25708 = .data:0x81654798; // type:object size:0x9 scope:local data:string +@25709 = .data:0x816547A1; // type:object size:0x14 scope:local data:string +@25710 = .data:0x816547B5; // type:object size:0x16 scope:local data:string +@25711 = .data:0x816547CB; // type:object size:0x9 scope:local data:string +@25712 = .data:0x816547D4; // type:object size:0x17 scope:local data:string +@25713 = .data:0x816547EB; // type:object size:0x15 scope:local data:string +@25715 = .data:0x81654800; // type:object size:0xF scope:local data:string +@25863 = .data:0x8165480F; // type:object size:0xE scope:local data:string +@26098 = .data:0x8165481D; // type:object size:0xB scope:local data:string +@26120 = .data:0x81654828; // type:object size:0x10 scope:local data:string +@26130 = .data:0x81654838; // type:object size:0x12 scope:local data:string +@26333 = .data:0x8165484A; // type:object size:0x16 scope:local data:string +@26334 = .data:0x81654860; // type:object size:0x16 scope:local data:string +@26335 = .data:0x81654876; // type:object size:0x12 scope:local data:string +@26336 = .data:0x81654888; // type:object size:0x18 scope:local data:string +@26337 = .data:0x816548A0; // type:object size:0xB scope:local data:string +@26338 = .data:0x816548AB; // type:object size:0x17 scope:local data:string +@26339 = .data:0x816548C2; // type:object size:0x13 scope:local data:string +@26340 = .data:0x816548D5; // type:object size:0x19 scope:local data:string +@26342 = .data:0x816548EE; // type:object size:0x18 scope:local data:string +@26344 = .data:0x81654906; // type:object size:0xA scope:local data:string +@26345 = .data:0x81654910; // type:object size:0x13 scope:local data:string +@26346 = .data:0x81654923; // type:object size:0x19 scope:local data:string +@26347 = .data:0x8165493C; // type:object size:0x18 scope:local data:string +@26348 = .data:0x81654954; // type:object size:0x10 scope:local data:string +@26349 = .data:0x81654964; // type:object size:0x1A scope:local data:string +@26552 = .data:0x8165497E; // type:object size:0x16 scope:local data:string +@26600 = .data:0x81654994; // type:object size:0x10 scope:local data:string +@26645 = .data:0x816549A4; // type:object size:0xF scope:local data:string +@26646 = .data:0x816549B3; // type:object size:0x14 scope:local data:string +@26677 = .data:0x816549C7; // type:object size:0x10 scope:local data:string +@26753 = .data:0x816549D7; // type:object size:0xF scope:local data:string +__vt__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandler = .data:0x81654A08; // type:object size:0x1C scope:local data:4byte +__vt__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@27SDChannelSelectEventHandler = .data:0x81654A24; // type:object size:0x18 scope:local data:4byte +__vt__Q33ipl5scene15SDChannelSelect = .data:0x81654A3C; // type:object size:0x68 data:4byte lbl_81654B38 = .data:0x81654B38; // type:object size:0x9 data:string lbl_81654B41 = .data:0x81654B41; // type:object size:0x1B data:string lbl_81654B5C = .data:0x81654B5C; // type:object size:0x1A data:string @@ -18420,8 +18476,16 @@ __FUNCTION__$378 = .data:0x8166D100; // type:object size:0x1A data:string lbl_8166D140 = .data:0x8166D140; // type:object size:0x9 data:string lbl_8166D150 = .data:0x8166D150; // type:object size:0xF data:string lbl_8166D160 = .data:0x8166D160; // type:object size:0x41 data:string -lbl_8166D1A8 = .data:0x8166D1A8; // type:object size:0x5C -lbl_8166D204 = .data:0x8166D204; // type:object size:0x6C +@2079 = .data:0x8166D1A8; // type:object size:0x9 scope:local data:string +@2081 = .data:0x8166D1B4; // type:object size:0xC scope:local data:string +@2084 = .data:0x8166D1C0; // type:object size:0x26 scope:local data:string +@2085 = .data:0x8166D1E8; // type:object size:0x1C scope:local data:string +@2147 = .data:0x8166D204; // type:object size:0x11 scope:local data:string +@2423 = .data:0x8166D218; // type:object size:0x16 scope:local data:string +@2483 = .data:0x8166D230; // type:object size:0xF scope:local data:string +@2484 = .data:0x8166D240; // type:object size:0xB scope:local data:string +@2485 = .data:0x8166D24C; // type:object size:0xB scope:local data:string +@2486 = .data:0x8166D258; // type:object size:0x12 scope:local data:string lbl_8166D270 = .data:0x8166D270; // type:object size:0xA4 lbl_8166D314 = .data:0x8166D314; // type:object size:0x14 data:string lbl_8166D328 = .data:0x8166D328; // type:object size:0x205 @@ -20086,17 +20150,24 @@ reset_auth_count_cmd = .data:0x8168A8EC; // type:object size:0x1C scope:local @1762 = .data:0x81690470; // type:object size:0xB scope:local data:string @1763 = .data:0x8169047C; // type:object size:0xC scope:local data:string @1764 = .data:0x81690488; // type:object size:0x28 scope:local data:string -lbl_816904B0 = .data:0x816904B0; // type:object size:0x58 -lbl_81690508 = .data:0x81690508; // type:object size:0xD data:string -lbl_81690518 = .data:0x81690518; // type:object size:0xD data:string -lbl_81690528 = .data:0x81690528; // type:object size:0x38 data:string -lbl_81690560 = .data:0x81690560; // type:object size:0x20 data:string -lbl_81690580 = .data:0x81690580; // type:object size:0xB data:string -lbl_8169058C = .data:0x8169058C; // type:object size:0x9 data:string -lbl_81690598 = .data:0x81690598; // type:object size:0xB data:string -lbl_816905A4 = .data:0x816905A4; // type:object size:0xC data:string -lbl_816905B0 = .data:0x816905B0; // type:object size:0x10 data:string -lbl_816905C0 = .data:0x816905C0; // type:object size:0xC0 +__func__$1718 = .data:0x816904B0; // type:object size:0xC scope:local data:string +@4498 = .data:0x816904BC; // type:object size:0x25 scope:local data:string +@4499 = .data:0x816904E4; // type:object size:0x23 scope:local data:string +@4643 = .data:0x81690508; // type:object size:0xD scope:local data:string +__func__$2446 = .data:0x81690518; // type:object size:0xD scope:local data:string +@4680 = .data:0x81690528; // type:object size:0x38 scope:local data:string +@4976 = .data:0x81690560; // type:object size:0x20 scope:local data:string +@4988 = .data:0x81690580; // type:object size:0xB scope:local data:string +@5034 = .data:0x8169058C; // type:object size:0x9 scope:local data:string +@5036 = .data:0x81690598; // type:object size:0xB scope:local data:string +@5310 = .data:0x816905A4; // type:object size:0xC scope:local data:string +__func__$3419 = .data:0x816905B0; // type:object size:0x10 scope:local data:string +@5329 = .data:0x816905C0; // type:object size:0x11 scope:local data:string +__func__$3450 = .data:0x816905D4; // type:object size:0x12 scope:local data:string +@5365 = .data:0x816905E8; // type:object size:0x27 scope:local data:string +@5366 = .data:0x81690610; // type:object size:0x1C scope:local data:string +@5367 = .data:0x8169062C; // type:object size:0x1C scope:local data:string +@5368 = .data:0x81690648; // type:object size:0x32 scope:local data:string @1378 = .data:0x81690680; // type:object size:0x48 scope:local data:string ...data.0 = .data:0x81690680; // type:label scope:local @1380 = .data:0x816906C8; // type:object size:0xB scope:local data:string diff --git a/tools/decomp-assist/data-d5.attempts.md b/tools/decomp-assist/data-d5.attempts.md index fef61a04..1b63c8af 100644 --- a/tools/decomp-assist/data-d5.attempts.md +++ b/tools/decomp-assist/data-d5.attempts.md @@ -272,3 +272,311 @@ libs/RevoEX/src/nhttp/NHTTP_thread: data 88 -> 304/504; code 10528 -> 10528/1129 - NHTTPi_ThreadParseHeaderProc: 98.58639%; instructions 191/191; pool/request registers and keep-alive false-value scheduling; 3 distinct compiled source attempts, all rejected and restored. All 19 remaining functions have at least three compiled, distinct source-level attempts recorded above. No exact function disappeared. Final pools all identical, zero-extended section bytes and semantic relocations independently rechecked after the clean gate. Only NHTTP .rodata reaches a new 100% section; remaining .data scores are SDChannelSelect 35.06984, ChannelSelect 95.60976, wad 99.34924, NHTTP_thread 98.47716. The anonymous SD gap ownership and SDK final linker padding remain unresolved; the ChannelSelect weak-data exception is documented. No code, shared header, split or array-size changes survive round 2. + +## High round: symbol pairing and typed extents + +Starting HEAD 0c94076d, fetched origin/main 08923eda. No owned source differs on the remote. All pools are identical; fresh before report saved as /tmp/data-d5-r3-before-report.json. Correct the previous interpretation: source-only weak data does not itself prevent exact data scoring. Coarse target aggregates and misleading names paired the wrong objects; physical linker padding stays present when real typed extents are corrected. The following changes use original relocations, constant address calculations from relocated bases, literal terminators and real vtable slot layouts. No original addresses, splits, section totals or source definitions change. + +### High-round libs/RVL_SDK/src/wad/wad symbol/type proofs + +- 816904B0 lbl_816904B0 -> __func__$1718, extent 88 -> 12: .text+0x98E relocates lbl_816904B0+0x0; 12-byte NUL-terminated char literal b'WADImportEx\x00'. Address and physical section length unchanged. +- 816904BC new symbol @4498, extent 37 inside formerly aggregated lbl_816904B0: WADImportEx .text+0x1a60 `addi r3, r3, 0xc` via relocation-derived base register r3; 37-byte NUL-terminated char literal b'%s:%d Cancel importing the content.\n\x00'. Address and physical section length unchanged. +- 816904E4 new symbol @4499, extent 35 inside formerly aggregated lbl_816904B0: WADImportEx .text+0x1a94 `addi r3, r3, 0x34` via relocation-derived base register r3; 35-byte NUL-terminated char literal b'%s:%d Cancel importing the title.\n\x00'. Address and physical section length unchanged. +- 81690508 lbl_81690508 -> @4643, extent 13 -> 13: .text+0x217E relocates lbl_81690508+0x0; 13-byte NUL-terminated char literal b'/title/%x/%x\x00'. Address and physical section length unchanged. +- 81690518 lbl_81690518 -> __func__$2446, extent 13 -> 13: .text+0x2F16 relocates lbl_81690518+0x0; 13-byte NUL-terminated char literal b'_WADMemAlloc\x00'. Address and physical section length unchanged. +- 81690528 lbl_81690528 -> @4680, extent 56 -> 56: .text+0x2F12 relocates lbl_81690528+0x0; 56-byte NUL-terminated char literal b'%s: Memory Allocator must return 64B aligned memBlocks\n\x00'. Address and physical section length unchanged. +- 81690560 lbl_81690560 -> @4976, extent 32 -> 32: .text+0x41D2 relocates lbl_81690560+0x0; 32-byte NUL-terminated char literal b'/shared2/succession/transfer.id\x00'. Address and physical section length unchanged. +- 81690580 lbl_81690580 -> @4988, extent 11 -> 11: .text+0x4292 relocates lbl_81690580+0x0; 11-byte NUL-terminated char literal b'notransfer\x00'. Address and physical section length unchanged. +- 8169058C lbl_8169058C -> @5034, extent 9 -> 9: .text+0x442A relocates lbl_8169058C+0x0; 9-byte NUL-terminated char literal b'%s/%s/%s\x00'. Address and physical section length unchanged. +- 81690598 lbl_81690598 -> @5036, extent 11 -> 11: .text+0x442E relocates lbl_81690598+0x0; 11-byte NUL-terminated char literal b'banner.bin\x00'. Address and physical section length unchanged. +- 816905A4 lbl_816905A4 -> @5310, extent 12 -> 12: .text+0x560E relocates lbl_816905A4+0x0; 12-byte NUL-terminated char literal b'zeldaTp.dat\x00'. Address and physical section length unchanged. +- 816905B0 lbl_816905B0 -> __func__$3419, extent 16 -> 16: .text+0x5826 relocates lbl_816905B0+0x0; 16-byte NUL-terminated char literal b'_WADCleanTmpDir\x00'. Address and physical section length unchanged. +- 816905C0 lbl_816905C0 -> @5329, extent 192 -> 17: .text+0x5822 relocates lbl_816905C0+0x0; 17-byte NUL-terminated char literal b'%s:%d remove %s\n\x00'. Address and physical section length unchanged. +- 816905D4 new symbol __func__$3450, extent 18 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x59cc `addi r4, r31, 0x124` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'WADImportDVDForBS\x00'. Address and physical section length unchanged. +- 816905E8 new symbol @5365, extent 39 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x59c8 `addi r3, r31, 0x138` via relocation-derived base register r31; 39-byte NUL-terminated char literal b'%s:%d Format should be iRD format: %s\n\x00'. Address and physical section length unchanged. +- 81690610 new symbol @5366, extent 28 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x5b10 `addi r3, r31, 0x160` via relocation-derived base register r31; 28-byte NUL-terminated char literal b'%s: Import Boot Failed: %d\n\x00'. Address and physical section length unchanged. +- 8169062C new symbol @5367, extent 28 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x5b24 `addi r3, r31, 0x17c` via relocation-derived base register r31; 28-byte NUL-terminated char literal b'%s: Import Boot Successful\n\x00'. Address and physical section length unchanged. +- 81690648 new symbol @5368, extent 50 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x5b38 `addi r3, r31, 0x198` via relocation-derived base register r31; 50-byte NUL-terminated char literal b'%s:%d This function only works for boot2 import.\n\x00'. Address and physical section length unchanged. + +wad quick gate PASS: data 64 -> 528/528, all non-text sections 100%, instruction-exact 35/40 unchanged, code 13180/24500 unchanged, regressions/forbidden/readability 0. Correct literal extents remove the earlier false padding limitation; physical section remains 464 bytes. + +### High-round libs/RevoEX/src/nhttp/NHTTP_thread symbol/type proofs + +- 8166D1A8 lbl_8166D1A8 -> @2079, extent 92 -> 9: .text+0x6D2 relocates lbl_8166D1A8+0x0; 9-byte NUL-terminated char literal b'CONNECT \x00'. Address and physical section length unchanged. +- 8166D1B4 new symbol @2081, extent 12 inside formerly aggregated lbl_8166D1A8: NHTTPi_SendProxyConnectMethod .text+0x798 `addi r4, r28, 0xc` via relocation-derived base register r28; 12-byte NUL-terminated char literal b' HTTP/1.1\r\n\x00'. Address and physical section length unchanged. +- 8166D1C0 new symbol @2084, extent 38 inside formerly aggregated lbl_8166D1A8: NHTTPi_SendProxyConnectMethod .text+0x848 `addi r4, r28, 0x18` via relocation-derived base register r28; 38-byte NUL-terminated char literal b'Content-Length: 0\r\nPragma: no-cache\r\n\x00'. Address and physical section length unchanged. +- 8166D1E8 new symbol @2085, extent 28 inside formerly aggregated lbl_8166D1A8: NHTTPi_SendProxyConnectMethod .text+0x888 `addi r4, r28, 0x40` via relocation-derived base register r28; 28-byte NUL-terminated char literal b'Proxy-Authorization: Basic \x00'. Address and physical section length unchanged. +- 8166D204 lbl_8166D204 -> @2147, extent 108 -> 17: .text+0xCFA relocates lbl_8166D204+0x0; 17-byte NUL-terminated char literal b'Content-Length: \x00'. Address and physical section length unchanged. +- 8166D218 new symbol @2423, extent 22 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadSendProc .text+0x1d78 `addi r4, r30, 0x70` via relocation-derived base register r30; 22-byte NUL-terminated char literal b'Authorization: Basic \x00'. Address and physical section length unchanged. +- 8166D230 new symbol @2483, extent 15 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x223c `addi r4, r28, 0x88` via relocation-derived base register r28; 15-byte NUL-terminated char literal b'Content-Length\x00'. Address and physical section length unchanged. +- 8166D240 new symbol @2484, extent 11 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x2300 `addi r4, r28, 0x98` via relocation-derived base register r28; 11-byte NUL-terminated char literal b'Connection\x00'. Address and physical section length unchanged. +- 8166D24C new symbol @2485, extent 11 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x2350 `addi r6, r28, 0xa4` via relocation-derived base register r28; 11-byte NUL-terminated char literal b'Keep-Alive\x00'. Address and physical section length unchanged. +- 8166D258 new symbol @2486, extent 18 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x238c `addi r4, r28, 0xb0` via relocation-derived base register r28; 18-byte NUL-terminated char literal b'Transfer-Encoding\x00'. Address and physical section length unchanged. + +NHTTP_thread quick gate PASS: data 304 -> 504/504, all non-text sections 100%, instruction-exact 25/26 unchanged, code 10528/11292 unchanged, regressions/forbidden/readability 0. Fetched origin before this unit; no remote source fix. The final Transfer-Encoding string is 18 bytes; remaining six alignment bytes stay physically present and need no fabricated array. + +### High-round src/scene/channelSelect/iplChannelSelect symbol/type proofs + +- 8164DD14 jumptable_8164DD14 -> @23426, extent 108 -> 108: .text+0x9A6 relocates jumptable_8164DD14+0x0; 108-byte typed pointer/jump table; +0x0->calcNormal__Q33ipl5scene13ChannelSelectFv+0xD4, +0x4->calcNormal__Q33ipl5scene13ChannelSelectFv+0x4C, +0x8->calcNormal__Q33ipl5scene13ChannelSelectFv+0xD4. Address and physical section length unchanged. +- 8164D978 lbl_8164D978 -> @17260, extent 9 -> 9: .text+0x586 relocates lbl_8164D978+0x0; 9-byte NUL-terminated char literal b'N_Ch_a04\x00'. Address and physical section length unchanged. +- 8164D981 lbl_8164D981 -> @17261, extent 9 -> 9: .data+0x198 relocates lbl_8164D981+0x0; 9-byte NUL-terminated char literal b'N_Ch_a08\x00'. Address and physical section length unchanged. +- 8164D98A lbl_8164D98A -> @17262, extent 9 -> 9: .data+0x1A8 relocates lbl_8164D98A+0x0; 9-byte NUL-terminated char literal b'N_Ch_a12\x00'. Address and physical section length unchanged. +- 8164D993 lbl_8164D993 -> @17263, extent 9 -> 9: .data+0x1AC relocates lbl_8164D993+0x0; 9-byte NUL-terminated char literal b'N_Ch_b01\x00'. Address and physical section length unchanged. +- 8164D99C lbl_8164D99C -> @17264, extent 9 -> 9: .data+0x1B0 relocates lbl_8164D99C+0x0; 9-byte NUL-terminated char literal b'N_Ch_b02\x00'. Address and physical section length unchanged. +- 8164D9A5 lbl_8164D9A5 -> @17265, extent 9 -> 9: .data+0x1B4 relocates lbl_8164D9A5+0x0; 9-byte NUL-terminated char literal b'N_Ch_b03\x00'. Address and physical section length unchanged. +- 8164D9AE lbl_8164D9AE -> @17266, extent 9 -> 9: .data+0x1B8 relocates lbl_8164D9AE+0x0; 9-byte NUL-terminated char literal b'N_Ch_b04\x00'. Address and physical section length unchanged. +- 8164D9B7 lbl_8164D9B7 -> @17267, extent 9 -> 9: .data+0x1BC relocates lbl_8164D9B7+0x0; 9-byte NUL-terminated char literal b'N_Ch_b05\x00'. Address and physical section length unchanged. +- 8164D9C0 lbl_8164D9C0 -> @17268, extent 9 -> 9: .data+0x1C0 relocates lbl_8164D9C0+0x0; 9-byte NUL-terminated char literal b'N_Ch_b06\x00'. Address and physical section length unchanged. +- 8164D9C9 lbl_8164D9C9 -> @17269, extent 9 -> 9: .data+0x1C4 relocates lbl_8164D9C9+0x0; 9-byte NUL-terminated char literal b'N_Ch_b07\x00'. Address and physical section length unchanged. +- 8164D9D2 lbl_8164D9D2 -> @17270, extent 9 -> 9: .data+0x1C8 relocates lbl_8164D9D2+0x0; 9-byte NUL-terminated char literal b'N_Ch_b08\x00'. Address and physical section length unchanged. +- 8164D9DB lbl_8164D9DB -> @17271, extent 9 -> 9: .data+0x1CC relocates lbl_8164D9DB+0x0; 9-byte NUL-terminated char literal b'N_Ch_b09\x00'. Address and physical section length unchanged. +- 8164D9E4 lbl_8164D9E4 -> @17272, extent 9 -> 9: .data+0x1D0 relocates lbl_8164D9E4+0x0; 9-byte NUL-terminated char literal b'N_Ch_b10\x00'. Address and physical section length unchanged. +- 8164D9ED lbl_8164D9ED -> @17273, extent 9 -> 9: .data+0x1D4 relocates lbl_8164D9ED+0x0; 9-byte NUL-terminated char literal b'N_Ch_b11\x00'. Address and physical section length unchanged. +- 8164D9F6 lbl_8164D9F6 -> @17274, extent 9 -> 9: .data+0x1D8 relocates lbl_8164D9F6+0x0; 9-byte NUL-terminated char literal b'N_Ch_b12\x00'. Address and physical section length unchanged. +- 8164D9FF lbl_8164D9FF -> @17275, extent 9 -> 9: .data+0x1DC relocates lbl_8164D9FF+0x0; 9-byte NUL-terminated char literal b'N_Ch_c01\x00'. Address and physical section length unchanged. +- 8164DA08 lbl_8164DA08 -> @17276, extent 9 -> 9: .data+0x1E0 relocates lbl_8164DA08+0x0; 9-byte NUL-terminated char literal b'N_Ch_c02\x00'. Address and physical section length unchanged. +- 8164DA11 lbl_8164DA11 -> @17277, extent 9 -> 9: .data+0x1E4 relocates lbl_8164DA11+0x0; 9-byte NUL-terminated char literal b'N_Ch_c03\x00'. Address and physical section length unchanged. +- 8164DA1A lbl_8164DA1A -> @17278, extent 9 -> 9: .data+0x1E8 relocates lbl_8164DA1A+0x0; 9-byte NUL-terminated char literal b'N_Ch_c04\x00'. Address and physical section length unchanged. +- 8164DA23 lbl_8164DA23 -> @17279, extent 9 -> 9: .data+0x1EC relocates lbl_8164DA23+0x0; 9-byte NUL-terminated char literal b'N_Ch_c05\x00'. Address and physical section length unchanged. +- 8164DA2C lbl_8164DA2C -> @17280, extent 9 -> 9: .data+0x1F0 relocates lbl_8164DA2C+0x0; 9-byte NUL-terminated char literal b'N_Ch_c06\x00'. Address and physical section length unchanged. +- 8164DA35 lbl_8164DA35 -> @17281, extent 9 -> 9: .data+0x1F4 relocates lbl_8164DA35+0x0; 9-byte NUL-terminated char literal b'N_Ch_c07\x00'. Address and physical section length unchanged. +- 8164DA3E lbl_8164DA3E -> @17282, extent 9 -> 9: .data+0x1F8 relocates lbl_8164DA3E+0x0; 9-byte NUL-terminated char literal b'N_Ch_c08\x00'. Address and physical section length unchanged. +- 8164DA47 lbl_8164DA47 -> @17283, extent 9 -> 9: .data+0x1FC relocates lbl_8164DA47+0x0; 9-byte NUL-terminated char literal b'N_Ch_c09\x00'. Address and physical section length unchanged. +- 8164DA50 lbl_8164DA50 -> @17284, extent 9 -> 9: .data+0x200 relocates lbl_8164DA50+0x0; 9-byte NUL-terminated char literal b'N_Ch_c10\x00'. Address and physical section length unchanged. +- 8164DA59 lbl_8164DA59 -> @17285, extent 9 -> 9: .data+0x204 relocates lbl_8164DA59+0x0; 9-byte NUL-terminated char literal b'N_Ch_c11\x00'. Address and physical section length unchanged. +- 8164DA62 lbl_8164DA62 -> @17286, extent 9 -> 9: .data+0x208 relocates lbl_8164DA62+0x0; 9-byte NUL-terminated char literal b'N_Ch_c12\x00'. Address and physical section length unchanged. +- 8164DA6B lbl_8164DA6B -> @17287, extent 9 -> 9: .data+0x20C relocates lbl_8164DA6B+0x0; 9-byte NUL-terminated char literal b'N_Ch_d01\x00'. Address and physical section length unchanged. +- 8164DA74 lbl_8164DA74 -> @17288, extent 9 -> 9: .data+0x210 relocates lbl_8164DA74+0x0; 9-byte NUL-terminated char literal b'N_Ch_d02\x00'. Address and physical section length unchanged. +- 8164DA7D lbl_8164DA7D -> @17289, extent 9 -> 9: .data+0x214 relocates lbl_8164DA7D+0x0; 9-byte NUL-terminated char literal b'N_Ch_d03\x00'. Address and physical section length unchanged. +- 8164DA86 lbl_8164DA86 -> @17290, extent 9 -> 9: .data+0x218 relocates lbl_8164DA86+0x0; 9-byte NUL-terminated char literal b'N_Ch_d04\x00'. Address and physical section length unchanged. +- 8164DA8F lbl_8164DA8F -> @17291, extent 9 -> 9: .data+0x21C relocates lbl_8164DA8F+0x0; 9-byte NUL-terminated char literal b'N_Ch_d05\x00'. Address and physical section length unchanged. +- 8164DA98 lbl_8164DA98 -> @17292, extent 9 -> 9: .data+0x220 relocates lbl_8164DA98+0x0; 9-byte NUL-terminated char literal b'N_Ch_d06\x00'. Address and physical section length unchanged. +- 8164DAA1 lbl_8164DAA1 -> @17293, extent 9 -> 9: .data+0x224 relocates lbl_8164DAA1+0x0; 9-byte NUL-terminated char literal b'N_Ch_d07\x00'. Address and physical section length unchanged. +- 8164DAAA lbl_8164DAAA -> @17294, extent 9 -> 9: .data+0x228 relocates lbl_8164DAAA+0x0; 9-byte NUL-terminated char literal b'N_Ch_d08\x00'. Address and physical section length unchanged. +- 8164DAB3 lbl_8164DAB3 -> @17295, extent 9 -> 9: .data+0x22C relocates lbl_8164DAB3+0x0; 9-byte NUL-terminated char literal b'N_Ch_d09\x00'. Address and physical section length unchanged. +- 8164DABC lbl_8164DABC -> @17296, extent 9 -> 9: .data+0x230 relocates lbl_8164DABC+0x0; 9-byte NUL-terminated char literal b'N_Ch_d10\x00'. Address and physical section length unchanged. +- 8164DAC5 lbl_8164DAC5 -> @17297, extent 9 -> 9: .data+0x234 relocates lbl_8164DAC5+0x0; 9-byte NUL-terminated char literal b'N_Ch_d11\x00'. Address and physical section length unchanged. +- 8164DACE lbl_8164DACE -> @17298, extent 9 -> 9: .data+0x238 relocates lbl_8164DACE+0x0; 9-byte NUL-terminated char literal b'N_Ch_d12\x00'. Address and physical section length unchanged. +- 8164DAD7 lbl_8164DAD7 -> @17299, extent 9 -> 9: .data+0x23C relocates lbl_8164DAD7+0x0; 9-byte NUL-terminated char literal b'N_Ch_e01\x00'. Address and physical section length unchanged. +- 8164DAE0 lbl_8164DAE0 -> @17300, extent 9 -> 9: .data+0x24C relocates lbl_8164DAE0+0x0; 9-byte NUL-terminated char literal b'N_Ch_e05\x00'. Address and physical section length unchanged. +- 8164DAE9 lbl_8164DAE9 -> @17301, extent 9 -> 9: .data+0x25C relocates lbl_8164DAE9+0x0; 9-byte NUL-terminated char literal b'N_Ch_e09\x00'. Address and physical section length unchanged. +- 8164DBE4 lbl_8164DBE4 -> @17302, extent 10 -> 10: .data+0x2A0 relocates lbl_8164DBE4+0x0; 10-byte NUL-terminated char literal b'BaseMask0\x00'. Address and physical section length unchanged. +- 8164DBEE lbl_8164DBEE -> @17303, extent 10 -> 10: .data+0x2A4 relocates lbl_8164DBEE+0x0; 10-byte NUL-terminated char literal b'BaseMask1\x00'. Address and physical section length unchanged. +- 8164DBF8 lbl_8164DBF8 -> @17304, extent 10 -> 10: .data+0x2A8 relocates lbl_8164DBF8+0x0; 10-byte NUL-terminated char literal b'BaseMask2\x00'. Address and physical section length unchanged. +- 8164DC02 lbl_8164DC02 -> @17305, extent 10 -> 10: .data+0x2AC relocates lbl_8164DC02+0x0; 10-byte NUL-terminated char literal b'BaseMask3\x00'. Address and physical section length unchanged. +- 8164DC0C lbl_8164DC0C -> @17306, extent 10 -> 10: .data+0x2B0 relocates lbl_8164DC0C+0x0; 10-byte NUL-terminated char literal b'BaseMask4\x00'. Address and physical section length unchanged. +- 8164DC2C lbl_8164DC2C -> @17307, extent 11 -> 11: .data+0x2EC relocates lbl_8164DC2C+0x0; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged. +- 8164DC37 lbl_8164DC37 -> @17308, extent 11 -> 11: .data+0x2F0 relocates lbl_8164DC37+0x0; 11-byte NUL-terminated char literal b'Picture_01\x00'. Address and physical section length unchanged. +- 8164DC42 lbl_8164DC42 -> @17309, extent 11 -> 11: .data+0x2F4 relocates lbl_8164DC42+0x0; 11-byte NUL-terminated char literal b'Picture_02\x00'. Address and physical section length unchanged. +- 8164DC4D lbl_8164DC4D -> @17310, extent 11 -> 11: .data+0x2F8 relocates lbl_8164DC4D+0x0; 11-byte NUL-terminated char literal b'Picture_03\x00'. Address and physical section length unchanged. +- 8164DC58 lbl_8164DC58 -> @17311, extent 32 -> 11: .data+0x2FC relocates lbl_8164DC58+0x0; 11-byte NUL-terminated char literal b'Picture_04\x00'. Address and physical section length unchanged. +- 8164DC64 new symbol mscUnk0PaneNames__Q33ipl5scene13ChannelSelect, extent 20 inside formerly aggregated lbl_8164DC58: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x12c8 `addi r28, r27, 0x2ec` via relocation-derived base register r27; 20-byte typed pointer/jump table; +0x0->lbl_8164DC2C+0x0, +0x4->lbl_8164DC37+0x0, +0x8->lbl_8164DC42+0x0. Address and physical section length unchanged. +- 8164DC78 lbl_8164DC78 -> mscUnk1PaneNames__Q33ipl5scene13ChannelSelect, extent 20 -> 20: .text+0x2F1E relocates lbl_8164DC78+0x0; 20-byte typed pointer/jump table; +0x0->lbl_816968B1+0x0, +0x4->lbl_816968B7+0x0, +0x8->lbl_816968BD+0x0. Address and physical section length unchanged. +- 8164DC8C lbl_8164DC8C -> @17317, extent 9 -> 9: .data+0x330 relocates lbl_8164DC8C+0x0; 9-byte NUL-terminated char literal b'N_Clock0\x00'. Address and physical section length unchanged. +- 8164DC95 lbl_8164DC95 -> @17318, extent 9 -> 9: .data+0x334 relocates lbl_8164DC95+0x0; 9-byte NUL-terminated char literal b'N_Clock1\x00'. Address and physical section length unchanged. +- 8164DC9E lbl_8164DC9E -> @17319, extent 9 -> 9: .data+0x338 relocates lbl_8164DC9E+0x0; 9-byte NUL-terminated char literal b'N_Clock2\x00'. Address and physical section length unchanged. +- 8164DCA8 lbl_8164DCA8 -> mscClockPaneNames__Q33ipl5scene13ChannelSelect, extent 12 -> 12: .text+0xD72 relocates lbl_8164DCA8+0x0; 12-byte typed pointer/jump table; +0x0->lbl_8164DC8C+0x0, +0x4->lbl_8164DC95+0x0, +0x8->lbl_8164DC9E+0x0. Address and physical section length unchanged. +- 8164DCB4 lbl_8164DCB4 -> @23246, extent 12 -> 12: .text+0x362 relocates lbl_8164DCB4+0x0; 12-byte NUL-terminated char literal b'chanSel.ash\x00'. Address and physical section length unchanged. +- 8164DCC0 lbl_8164DCC0 -> @23247, extent 31 -> 13: .text+0x396 relocates lbl_8164DCC0+0x0; 13-byte NUL-terminated char literal b'diskThum.ash\x00'. Address and physical section length unchanged. +- 8164DCCD new symbol @23374, extent 18 inside formerly aggregated lbl_8164DCC0: calcCommon__Q33ipl5scene13ChannelSelectFv .text+0x684 `addi r4, r31, 0x355` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'WIPL_SE_WII_START\x00'. Address and physical section length unchanged. +- 8164DCDF lbl_8164DCDF -> @23375, extent 53 -> 14: .text+0x2416 relocates lbl_8164DCDF+0x0; 14-byte NUL-terminated char literal b'WIPL_BGM_MENU\x00'. Address and physical section length unchanged. +- 8164DCED new symbol @23376, extent 18 inside formerly aggregated lbl_8164DCDF: calcCommon__Q33ipl5scene13ChannelSelectFv .text+0x8e4 `addi r4, r31, 0x375` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'WIPL_SE_SDCARD_IN\x00'. Address and physical section length unchanged. +- 8164DCFF new symbol @23377, extent 19 inside formerly aggregated lbl_8164DCDF: calcCommon__Q33ipl5scene13ChannelSelectFv .text+0x918 `addi r4, r31, 0x387` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'WIPL_SE_SDCARD_OUT\x00'. Address and physical section length unchanged. +- 8164DD80 lbl_8164DD80 -> @23551, extent 55 -> 23: .text+0x10A6 relocates lbl_8164DD80+0x0; 23-byte NUL-terminated char literal b'/title/%08x/%08x/data/\x00'. Address and physical section length unchanged. +- 8164DD97 new symbol @23653, extent 18 inside formerly aggregated lbl_8164DD80: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x122c `addi r7, r27, 0x41f` via relocation-derived base register r27; 18-byte NUL-terminated char literal b'my_IplTop_a.brlyt\x00'. Address and physical section length unchanged. +- 8164DDA9 new symbol @23654, extent 14 inside formerly aggregated lbl_8164DD80: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x1254 `addi r4, r27, 0x431` via relocation-derived base register r27; 14-byte NUL-terminated char literal b'ChangeTex16x9\x00'. Address and physical section length unchanged. +- 8164DDB7 lbl_8164DDB7 -> @23655, extent 173 -> 11: .text+0x3A16 relocates lbl_8164DDB7+0x0; 11-byte NUL-terminated char literal b'Picture_16\x00'. Address and physical section length unchanged. +- 8164DDC2 new symbol @23656, extent 18 inside formerly aggregated lbl_8164DDB7: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x1364 `addi r4, r27, 0x44a` via relocation-derived base register r27; 18-byte NUL-terminated char literal b'my_IplTop_a.brlan\x00'. Address and physical section length unchanged. +- 8164DDD4 new symbol @23731, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x15c8 `addi r7, r31, 0x45c` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_DiskCh_b.brlyt\x00'. Address and physical section length unchanged. +- 8164DDE6 new symbol @23732, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x15dc `addi r4, r31, 0x46e` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_DiskCh_b.brlan\x00'. Address and physical section length unchanged. +- 8164DDF8 new symbol @23734, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x16bc `addi r7, r31, 0x480` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_GCIcon_a.brlyt\x00'. Address and physical section length unchanged. +- 8164DE0A new symbol @23735, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x16d0 `addi r4, r31, 0x492` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_GCIcon_a.brlan\x00'. Address and physical section length unchanged. +- 8164DE1C new symbol @23736, extent 19 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x170c `addi r7, r31, 0x4a4` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'my_DiskCh_In.brlyt\x00'. Address and physical section length unchanged. +- 8164DE2F new symbol @23739, extent 26 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x17ac `addi r4, r31, 0x4b7` via relocation-derived base register r31; 26-byte NUL-terminated char literal b'my_DiskCh_In_DiskIn.brlan\x00'. Address and physical section length unchanged. +- 8164DE49 new symbol @23740, extent 27 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x17c4 `addi r4, r31, 0x4d1` via relocation-derived base register r31; 27-byte NUL-terminated char literal b'my_DiskCh_In_DiskOut.brlan\x00'. Address and physical section length unchanged. +- 8164DEA7 lbl_8164DEA7 -> @24254, extent 16 -> 16: .text+0x369A relocates lbl_8164DEA7+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_BT_PUSH\x00'. Address and physical section length unchanged. +- 8164DEB7 lbl_8164DEB7 -> @24282, extent 276 -> 18: .text+0x3792 relocates lbl_8164DEB7+0x0; 18-byte NUL-terminated char literal b'WIPL_SE_CH_SELECT\x00'. Address and physical section length unchanged. +- 8164DEC9 new symbol @24521, extent 18 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4690 `addi r7, r30, 0x551` via relocation-derived base register r30; 18-byte NUL-terminated char literal b'my_IplTop_b.brlyt\x00'. Address and physical section length unchanged. +- 8164DEDB new symbol @24522, extent 18 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x46a4 `addi r4, r30, 0x563` via relocation-derived base register r30; 18-byte NUL-terminated char literal b'my_IplTop_b.brlan\x00'. Address and physical section length unchanged. +- 8164DEED new symbol @24523, extent 18 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4724 `addi r7, r30, 0x575` via relocation-derived base register r30; 18-byte NUL-terminated char literal b'my_TVMask_a.brlyt\x00'. Address and physical section length unchanged. +- 8164DEFF new symbol @24524, extent 24 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4738 `addi r4, r30, 0x587` via relocation-derived base register r30; 24-byte NUL-terminated char literal b'my_TVMask_a_Apear.brlan\x00'. Address and physical section length unchanged. +- 8164DF17 new symbol @24525, extent 11 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x473c `addi r5, r30, 0x59f` via relocation-derived base register r30; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged. +- 8164DF22 new symbol @24526, extent 23 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4750 `addi r4, r30, 0x5aa` via relocation-derived base register r30; 23-byte NUL-terminated char literal b'my_TVMask_a_Lost.brlan\x00'. Address and physical section length unchanged. +- 8164DF39 new symbol @24527, extent 19 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4794 `addi r7, r30, 0x5c1` via relocation-derived base register r30; 19-byte NUL-terminated char literal b'my_TVShade_a.brlyt\x00'. Address and physical section length unchanged. +- 8164DF4C new symbol @24528, extent 25 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x47a8 `addi r4, r30, 0x5d4` via relocation-derived base register r30; 25-byte NUL-terminated char literal b'my_TVShade_a_Apear.brlan\x00'. Address and physical section length unchanged. +- 8164DF65 new symbol @24530, extent 24 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x47c0 `addi r4, r30, 0x5ed` via relocation-derived base register r30; 24-byte NUL-terminated char literal b'my_TVShade_a_Lost.brlan\x00'. Address and physical section length unchanged. +- 8164DF7D new symbol @24531, extent 10 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4868 `addi r4, r30, 0x605` via relocation-derived base register r30; 10-byte NUL-terminated char literal b'4x3_dummy\x00'. Address and physical section length unchanged. +- 8164DF87 new symbol @24532, extent 19 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x48c8 `addi r7, r30, 0x60f` via relocation-derived base register r30; 19-byte NUL-terminated char literal b'my_TVApear_a.brlyt\x00'. Address and physical section length unchanged. +- 8164DF9A new symbol @24533, extent 25 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x48dc `addi r4, r30, 0x622` via relocation-derived base register r30; 25-byte NUL-terminated char literal b'my_TVApear_a_Apear.brlan\x00'. Address and physical section length unchanged. +- 8164DFB3 new symbol @24534, extent 24 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x48f4 `addi r4, r30, 0x63b` via relocation-derived base register r30; 24-byte NUL-terminated char literal b'my_TVApear_a_Lost.brlan\x00'. Address and physical section length unchanged. +- 8164E014 lbl_8164E014 -> @24865, extent 16 -> 16: .text+0x5CAE relocates lbl_8164E014+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_CH_DRAG\x00'. Address and physical section length unchanged. +- 8164E048 __vt__Q33ipl4math29HermiteIntp -> __vt__Q33ipl4math29HermiteIntp, extent 32 -> 16: .text+0x1506 relocates __vt__Q33ipl4math29HermiteIntp+0x0; 16-byte vtable (two header words and 2 virtual slots); +0x8->__dt__Q33ipl4math29HermiteIntpFv+0x0, +0xC->calc__Q33ipl7utility15FrameControllerFv+0x0. Address and physical section length unchanged. + +ChannelSelect quick gate PASS: data 192 -> 2336/2336, every non-text section 100%, instruction-exact 101/102 unchanged, code 24736/25668 unchanged, regressions/forbidden/readability 0. Fetched origin before starting; no remote source changes. Hermite vtable has 16 real bytes, not the 32-byte aggregate with a deduplicated neighbor. Only symbol metadata changed. + +### High-round src/scene/sdChannelSelect/iplSDChannelSelect symbol/type proofs + +- 81654088 @16632 -> @16723, extent 9 -> 9: .text+0x384E relocates @16632+0x0; 9-byte NUL-terminated char literal b'N_Ch_a04\x00'. Address and physical section length unchanged. +- 81654091 @16633 -> @16724, extent 9 -> 9: .data+0x198 relocates @16633+0x0; 9-byte NUL-terminated char literal b'N_Ch_a08\x00'. Address and physical section length unchanged. +- 8165409A @16634 -> @16725, extent 9 -> 9: .data+0x1A8 relocates @16634+0x0; 9-byte NUL-terminated char literal b'N_Ch_a12\x00'. Address and physical section length unchanged. +- 816540A3 @16635 -> @16726, extent 9 -> 9: .data+0x1AC relocates @16635+0x0; 9-byte NUL-terminated char literal b'N_Ch_b01\x00'. Address and physical section length unchanged. +- 816540AC @16636 -> @16727, extent 9 -> 9: .data+0x1B0 relocates @16636+0x0; 9-byte NUL-terminated char literal b'N_Ch_b02\x00'. Address and physical section length unchanged. +- 816540B5 @16637 -> @16728, extent 9 -> 9: .data+0x1B4 relocates @16637+0x0; 9-byte NUL-terminated char literal b'N_Ch_b03\x00'. Address and physical section length unchanged. +- 816540BE @16638 -> @16729, extent 9 -> 9: .data+0x1B8 relocates @16638+0x0; 9-byte NUL-terminated char literal b'N_Ch_b04\x00'. Address and physical section length unchanged. +- 816540C7 @16639 -> @16730, extent 9 -> 9: .data+0x1BC relocates @16639+0x0; 9-byte NUL-terminated char literal b'N_Ch_b05\x00'. Address and physical section length unchanged. +- 816540D0 @16640 -> @16731, extent 9 -> 9: .data+0x1C0 relocates @16640+0x0; 9-byte NUL-terminated char literal b'N_Ch_b06\x00'. Address and physical section length unchanged. +- 816540D9 @16641 -> @16732, extent 9 -> 9: .data+0x1C4 relocates @16641+0x0; 9-byte NUL-terminated char literal b'N_Ch_b07\x00'. Address and physical section length unchanged. +- 816540E2 @16642 -> @16733, extent 9 -> 9: .data+0x1C8 relocates @16642+0x0; 9-byte NUL-terminated char literal b'N_Ch_b08\x00'. Address and physical section length unchanged. +- 816540EB @16643 -> @16734, extent 9 -> 9: .data+0x1CC relocates @16643+0x0; 9-byte NUL-terminated char literal b'N_Ch_b09\x00'. Address and physical section length unchanged. +- 816540F4 @16644 -> @16735, extent 9 -> 9: .data+0x1D0 relocates @16644+0x0; 9-byte NUL-terminated char literal b'N_Ch_b10\x00'. Address and physical section length unchanged. +- 816540FD @16645 -> @16736, extent 9 -> 9: .data+0x1D4 relocates @16645+0x0; 9-byte NUL-terminated char literal b'N_Ch_b11\x00'. Address and physical section length unchanged. +- 81654106 @16646 -> @16737, extent 9 -> 9: .data+0x1D8 relocates @16646+0x0; 9-byte NUL-terminated char literal b'N_Ch_b12\x00'. Address and physical section length unchanged. +- 8165410F @16647 -> @16738, extent 9 -> 9: .data+0x1DC relocates @16647+0x0; 9-byte NUL-terminated char literal b'N_Ch_c01\x00'. Address and physical section length unchanged. +- 81654118 @16648 -> @16739, extent 9 -> 9: .data+0x1E0 relocates @16648+0x0; 9-byte NUL-terminated char literal b'N_Ch_c02\x00'. Address and physical section length unchanged. +- 81654121 @16649 -> @16740, extent 9 -> 9: .data+0x1E4 relocates @16649+0x0; 9-byte NUL-terminated char literal b'N_Ch_c03\x00'. Address and physical section length unchanged. +- 8165412A @16650 -> @16741, extent 9 -> 9: .data+0x1E8 relocates @16650+0x0; 9-byte NUL-terminated char literal b'N_Ch_c04\x00'. Address and physical section length unchanged. +- 81654133 @16651 -> @16742, extent 9 -> 9: .data+0x1EC relocates @16651+0x0; 9-byte NUL-terminated char literal b'N_Ch_c05\x00'. Address and physical section length unchanged. +- 8165413C @16652 -> @16743, extent 9 -> 9: .data+0x1F0 relocates @16652+0x0; 9-byte NUL-terminated char literal b'N_Ch_c06\x00'. Address and physical section length unchanged. +- 81654145 @16653 -> @16744, extent 9 -> 9: .data+0x1F4 relocates @16653+0x0; 9-byte NUL-terminated char literal b'N_Ch_c07\x00'. Address and physical section length unchanged. +- 8165414E @16654 -> @16745, extent 9 -> 9: .data+0x1F8 relocates @16654+0x0; 9-byte NUL-terminated char literal b'N_Ch_c08\x00'. Address and physical section length unchanged. +- 81654157 @16655 -> @16746, extent 9 -> 9: .data+0x1FC relocates @16655+0x0; 9-byte NUL-terminated char literal b'N_Ch_c09\x00'. Address and physical section length unchanged. +- 81654160 @16656 -> @16747, extent 9 -> 9: .data+0x200 relocates @16656+0x0; 9-byte NUL-terminated char literal b'N_Ch_c10\x00'. Address and physical section length unchanged. +- 81654169 @16657 -> @16748, extent 9 -> 9: .data+0x204 relocates @16657+0x0; 9-byte NUL-terminated char literal b'N_Ch_c11\x00'. Address and physical section length unchanged. +- 81654172 @16658 -> @16749, extent 9 -> 9: .data+0x208 relocates @16658+0x0; 9-byte NUL-terminated char literal b'N_Ch_c12\x00'. Address and physical section length unchanged. +- 8165417B @16659 -> @16750, extent 9 -> 9: .data+0x20C relocates @16659+0x0; 9-byte NUL-terminated char literal b'N_Ch_d01\x00'. Address and physical section length unchanged. +- 81654184 @16660 -> @16751, extent 9 -> 9: .data+0x210 relocates @16660+0x0; 9-byte NUL-terminated char literal b'N_Ch_d02\x00'. Address and physical section length unchanged. +- 8165418D @16661 -> @16752, extent 9 -> 9: .data+0x214 relocates @16661+0x0; 9-byte NUL-terminated char literal b'N_Ch_d03\x00'. Address and physical section length unchanged. +- 81654196 @16662 -> @16753, extent 9 -> 9: .data+0x218 relocates @16662+0x0; 9-byte NUL-terminated char literal b'N_Ch_d04\x00'. Address and physical section length unchanged. +- 8165419F @16663 -> @16754, extent 9 -> 9: .data+0x21C relocates @16663+0x0; 9-byte NUL-terminated char literal b'N_Ch_d05\x00'. Address and physical section length unchanged. +- 816541A8 @16664 -> @16755, extent 9 -> 9: .data+0x220 relocates @16664+0x0; 9-byte NUL-terminated char literal b'N_Ch_d06\x00'. Address and physical section length unchanged. +- 816541B1 @16665 -> @16756, extent 9 -> 9: .data+0x224 relocates @16665+0x0; 9-byte NUL-terminated char literal b'N_Ch_d07\x00'. Address and physical section length unchanged. +- 816541BA @16666 -> @16757, extent 9 -> 9: .data+0x228 relocates @16666+0x0; 9-byte NUL-terminated char literal b'N_Ch_d08\x00'. Address and physical section length unchanged. +- 816541C3 @16667 -> @16758, extent 9 -> 9: .data+0x22C relocates @16667+0x0; 9-byte NUL-terminated char literal b'N_Ch_d09\x00'. Address and physical section length unchanged. +- 816541CC @16668 -> @16759, extent 9 -> 9: .data+0x230 relocates @16668+0x0; 9-byte NUL-terminated char literal b'N_Ch_d10\x00'. Address and physical section length unchanged. +- 816541D5 @16669 -> @16760, extent 9 -> 9: .data+0x234 relocates @16669+0x0; 9-byte NUL-terminated char literal b'N_Ch_d11\x00'. Address and physical section length unchanged. +- 816541DE @16670 -> @16761, extent 9 -> 9: .data+0x238 relocates @16670+0x0; 9-byte NUL-terminated char literal b'N_Ch_d12\x00'. Address and physical section length unchanged. +- 816541E7 @16671 -> @16762, extent 9 -> 9: .data+0x23C relocates @16671+0x0; 9-byte NUL-terminated char literal b'N_Ch_e01\x00'. Address and physical section length unchanged. +- 816541F0 @16672 -> @16763, extent 9 -> 9: .data+0x24C relocates @16672+0x0; 9-byte NUL-terminated char literal b'N_Ch_e05\x00'. Address and physical section length unchanged. +- 816541F9 @16673 -> @16764, extent 9 -> 9: .data+0x25C relocates @16673+0x0; 9-byte NUL-terminated char literal b'N_Ch_e09\x00'. Address and physical section length unchanged. +- 816542F4 @16674 -> @16765, extent 10 -> 10: .data+0x2A0 relocates @16674+0x0; 10-byte NUL-terminated char literal b'BaseMask0\x00'. Address and physical section length unchanged. +- 816542FE @16675 -> @16766, extent 10 -> 10: .data+0x2A4 relocates @16675+0x0; 10-byte NUL-terminated char literal b'BaseMask1\x00'. Address and physical section length unchanged. +- 81654308 @16676 -> @16767, extent 10 -> 10: .data+0x2A8 relocates @16676+0x0; 10-byte NUL-terminated char literal b'BaseMask2\x00'. Address and physical section length unchanged. +- 81654312 @16677 -> @16768, extent 10 -> 10: .data+0x2AC relocates @16677+0x0; 10-byte NUL-terminated char literal b'BaseMask3\x00'. Address and physical section length unchanged. +- 8165433C @16679 -> @16770, extent 11 -> 11: .data+0x2EC relocates @16679+0x0; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged. +- 81654347 @16680 -> @16771, extent 11 -> 11: .data+0x2F0 relocates @16680+0x0; 11-byte NUL-terminated char literal b'Picture_01\x00'. Address and physical section length unchanged. +- 81654352 @16681 -> @16772, extent 11 -> 11: .data+0x2F4 relocates @16681+0x0; 11-byte NUL-terminated char literal b'Picture_02\x00'. Address and physical section length unchanged. +- 8165435D @16682 -> @16773, extent 11 -> 11: .data+0x2F8 relocates @16682+0x0; 11-byte NUL-terminated char literal b'Picture_03\x00'. Address and physical section length unchanged. +- 81654460 @16689 -> @16780, extent 9 -> 9: .data+0x3F4 relocates @16689+0x0; 9-byte NUL-terminated char literal b'N_Clock0\x00'. Address and physical section length unchanged. +- 81654469 @16690 -> @16781, extent 9 -> 9: .data+0x3F8 relocates @16690+0x0; 9-byte NUL-terminated char literal b'N_Clock1\x00'. Address and physical section length unchanged. +- 81654488 @24438 -> @24582, extent 14 -> 14: .text+0x3FA relocates @24438+0x0; 14-byte NUL-terminated char literal b'sdChanSel.ash\x00'. Address and physical section length unchanged. +- 81654496 @24439 -> @24583, extent 17 -> 17: .text+0x416 relocates @24439+0x0; 17-byte NUL-terminated char literal b'corrupt_icon.ash\x00'. Address and physical section length unchanged. +- 816544A7 @24489 -> @24633, extent 25 -> 25: .text+0x626 relocates @24489+0x0; 25-byte NUL-terminated char literal b' ... wait for bs2 abord\n\x00'. Address and physical section length unchanged. +- 816544C0 @24490 -> @24634, extent 27 -> 27: .text+0x66A relocates @24490+0x0; 27-byte NUL-terminated char literal b'*** BS2 abort costs: %dms\n\x00'. Address and physical section length unchanged. +- 816544DC jumptable_816544DC -> @24741, extent 56 -> 56: .text+0xDCA relocates jumptable_816544DC+0x0; 56-byte typed pointer/jump table; +0x0->processWorkerCommands__Q33ipl5scene15SDChannelSelectFv+0x408, +0x4->processWorkerCommands__Q33ipl5scene15SDChannelSelectFv+0x21C, +0x8->processWorkerCommands__Q33ipl5scene15SDChannelSelectFv+0x234. Address and physical section length unchanged. +- 81654514 jumptable_81654514 -> @24981, extent 64 -> 64: .text+0x1EAE relocates jumptable_81654514+0x0; 64-byte typed pointer/jump table; +0x0->processWorkerState__Q33ipl5scene15SDChannelSelectFv+0xA0, +0x4->processWorkerState__Q33ipl5scene15SDChannelSelectFv+0x94, +0x8->processWorkerState__Q33ipl5scene15SDChannelSelectFv+0xAC. Address and physical section length unchanged. +- 81654554 @24961 -> @25087, extent 11 -> 11: .text+0x2266 relocates @24961+0x0; 11-byte NUL-terminated char literal b'T_TimerMes\x00'. Address and physical section length unchanged. +- 8165455F @24962 -> @25088, extent 14 -> 14: .text+0x22F2 relocates @24962+0x0; 14-byte NUL-terminated char literal b'T_TimerMes_01\x00'. Address and physical section length unchanged. +- 81654570 jumptable_81654570 -> @25094, extent 60 -> 60: .text+0x224A relocates jumptable_81654570+0x0; 60-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x3E8, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x3E8, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x2A4. Address and physical section length unchanged. +- 816545AC jumptable_816545AC -> @25093, extent 64 -> 64: .text+0x21F2 relocates jumptable_816545AC+0x0; 64-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x24C, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x24C, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x24C. Address and physical section length unchanged. +- 816545EC jumptable_816545EC -> @25092, extent 64 -> 64: .text+0x2166 relocates jumptable_816545EC+0x0; 64-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x1C0, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x1C0, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x27C. Address and physical section length unchanged. +- 8165462C jumptable_8165462C -> @25091, extent 64 -> 64: .text+0x20DA relocates jumptable_8165462C+0x0; 64-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x134, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x134, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x148. Address and physical section length unchanged. +- 8165466C jumptable_8165466C -> @25090, extent 40 -> 40: .text+0x200E relocates jumptable_8165466C+0x0; 40-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x68, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0xAC, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0xAC. Address and physical section length unchanged. +- 81654694 jumptable_81654694 -> @25466, extent 120 -> 120: .text+0x359E relocates jumptable_81654694+0x0; 120-byte typed pointer/jump table; +0x0->calcNormal__Q33ipl5scene15SDChannelSelectFv+0x10C, +0x4->calcNormal__Q33ipl5scene15SDChannelSelectFv+0x4C, +0x8->calcNormal__Q33ipl5scene15SDChannelSelectFv+0x10C. Address and physical section length unchanged. +- 8165480F @26032 -> @25863, extent 14 -> 14: .text+0x4B2E relocates @26032+0x0; 14-byte NUL-terminated char literal b'WIPL_BGM_MENU\x00'. Address and physical section length unchanged. +- 8165481D @26047 -> @26098, extent 11 -> 11: .text+0x589A relocates @26047+0x0; 11-byte NUL-terminated char literal b'WSD_SELECT\x00'. Address and physical section length unchanged. +- 81654828 @26062 -> @26120, extent 16 -> 16: .text+0x59FA relocates @26062+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_BT_PUSH\x00'. Address and physical section length unchanged. +- 8165497E @26231 -> @26552, extent 22 -> 22: .text+0x75F2 relocates @26231+0x0; 22-byte NUL-terminated char literal b'WIPL_SE_CH_TARGETTING\x00'. Address and physical section length unchanged. +- 81654994 @26266 -> @26600, extent 16 -> 16: .text+0x799E relocates @26266+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_CH_HOLD\x00'. Address and physical section length unchanged. +- 816549A4 @26311 -> @26645, extent 15 -> 15: .text+0x7ABA relocates @26311+0x0; 15-byte NUL-terminated char literal b'WIPL_SE_CH_SET\x00'. Address and physical section length unchanged. +- 816549B3 @26312 -> @26646, extent 20 -> 20: .text+0x7AFA relocates @26312+0x0; 20-byte NUL-terminated char literal b'WIPL_SE_CH_NOT_MOVE\x00'. Address and physical section length unchanged. +- 816549C7 @26336 -> @26677, extent 16 -> 16: .text+0x7D6E relocates @26336+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_CH_DRAG\x00'. Address and physical section length unchanged. +- 816549D7 @26559 -> @26753, extent 15 -> 15: .text+0x8192 relocates @26559+0x0; 15-byte NUL-terminated char literal b'WIPL_SE_DECIDE\x00'. Address and physical section length unchanged. +- 81654204 lbl_81654204 -> mscChannelPaneNames__Q33ipl5scene15SDChannelSelect, extent 240 -> 240: .text+0x574A relocates lbl_81654204+0x0; 240-byte typed pointer/jump table; +0x0->@16631+0x0, +0x4->@16631+0x0, +0x8->@16631+0x0. Address and physical section length unchanged. +- 8165431C lbl_8165431C -> @16769, extent 32 -> 10: .data+0x2B0 relocates lbl_8165431C+0x0; 10-byte NUL-terminated char literal b'BaseMask4\x00'. Address and physical section length unchanged. +- 81654328 new symbol mscBasePaneNames__Q33ipl5scene15SDChannelSelect, extent 20 inside formerly aggregated lbl_8165431C: draw__Q33ipl5scene15SDChannelSelectFv .text+0x38b8 `addi r25, r26, 0x2a0` via relocation-derived base register r26; 20-byte typed pointer/jump table; +0x0->@16674+0x0, +0x4->@16675+0x0, +0x8->@16676+0x0. Address and physical section length unchanged. +- 81654368 lbl_81654368 -> @16774, extent 32 -> 11: .data+0x2FC relocates lbl_81654368+0x0; 11-byte NUL-terminated char literal b'Picture_04\x00'. Address and physical section length unchanged. +- 81654374 new symbol mscPicturePaneNames__Q33ipl5scene15SDChannelSelect, extent 20 inside formerly aggregated lbl_81654368: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x3fc4 `addi r28, r27, 0x2ec` via relocation-derived base register r27; 20-byte typed pointer/jump table; +0x0->@16679+0x0, +0x4->@16680+0x0, +0x8->@16681+0x0. Address and physical section length unchanged. +- 81654388 lbl_81654388 -> mscEdgePaneNames__Q33ipl5scene15SDChannelSelect, extent 20 -> 20: .text+0x5472 relocates lbl_81654388+0x0; 20-byte typed pointer/jump table; +0x0->@16684+0x0, +0x4->@16685+0x0, +0x8->@16686+0x0. Address and physical section length unchanged. +- 81654472 lbl_81654472 -> @16782, extent 22 -> 9: .data+0x3FC relocates lbl_81654472+0x0; 9-byte NUL-terminated char literal b'N_Clock2\x00'. Address and physical section length unchanged. +- 8165447C new symbol mscClockPaneNames__Q33ipl5scene15SDChannelSelect, extent 12 inside formerly aggregated lbl_81654472: draw__Q33ipl5scene15SDChannelSelectFv .text+0x39f0 `addi r26, r26, 0x3f4` via relocation-derived base register r26; 12-byte typed pointer/jump table; +0x0->@16689+0x0, +0x4->@16690+0x0, +0x8->lbl_81654472+0x0. Address and physical section length unchanged. +- 8165473B lbl_8165473B -> @25703, extent 212 -> 11: .text+0x5C46 relocates lbl_8165473B+0x0; 11-byte NUL-terminated char literal b'Picture_16\x00'. Address and physical section length unchanged. +- 81654746 new symbol @25704, extent 22 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4060 `addi r4, r27, 0x6be` via relocation-derived base register r27; 22-byte NUL-terminated char literal b'mn_SdcardMenu_a.brlan\x00'. Address and physical section length unchanged. +- 8165475C new symbol @25705, extent 25 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4088 `addi r7, r27, 0x6d4` via relocation-derived base register r27; 25-byte NUL-terminated char literal b'mn_SdcardMenu_Page.brlyt\x00'. Address and physical section length unchanged. +- 81654775 new symbol @25706, extent 16 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40b0 `addi r7, r27, 0x6ed` via relocation-derived base register r27; 16-byte NUL-terminated char literal b'mn_Nocard.brlyt\x00'. Address and physical section length unchanged. +- 81654785 new symbol @25707, extent 19 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40c4 `addi r4, r27, 0x6fd` via relocation-derived base register r27; 19-byte NUL-terminated char literal b'mn_Nocard_IN.brlan\x00'. Address and physical section length unchanged. +- 81654798 new symbol @25708, extent 9 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40c8 `addi r5, r27, 0x710` via relocation-derived base register r27; 9-byte NUL-terminated char literal b'Group_00\x00'. Address and physical section length unchanged. +- 816547A1 new symbol @25709, extent 20 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40dc `addi r4, r27, 0x719` via relocation-derived base register r27; 20-byte NUL-terminated char literal b'mn_Nocard_Out.brlan\x00'. Address and physical section length unchanged. +- 816547B5 new symbol @25710, extent 22 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40f4 `addi r4, r27, 0x72d` via relocation-derived base register r27; 22-byte NUL-terminated char literal b'mn_Nocard_IN_02.brlan\x00'. Address and physical section length unchanged. +- 816547CB new symbol @25711, extent 9 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40f8 `addi r5, r27, 0x743` via relocation-derived base register r27; 9-byte NUL-terminated char literal b'Group_01\x00'. Address and physical section length unchanged. +- 816547D4 new symbol @25712, extent 23 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x410c `addi r4, r27, 0x74c` via relocation-derived base register r27; 23-byte NUL-terminated char literal b'mn_Nocard_Out_02.brlan\x00'. Address and physical section length unchanged. +- 816547EB new symbol @25713, extent 21 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4124 `addi r4, r27, 0x763` via relocation-derived base register r27; 21-byte NUL-terminated char literal b'mn_Nocard_Wait.brlan\x00'. Address and physical section length unchanged. +- 81654800 new symbol @25715, extent 15 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4180 `addi r7, r27, 0x778` via relocation-derived base register r27; 15-byte NUL-terminated char literal b'help_Btn.brlyt\x00'. Address and physical section length unchanged. +- 81654838 lbl_81654838 -> @26130, extent 326 -> 18: .text+0x5A8A relocates lbl_81654838+0x0; 18-byte NUL-terminated char literal b'WIPL_SE_CH_SELECT\x00'. Address and physical section length unchanged. +- 8165484A new symbol @26333, extent 22 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x66f8 `addi r7, r31, 0x7c2` via relocation-derived base register r31; 22-byte NUL-terminated char literal b'mn_SdcardMenu_d.brlyt\x00'. Address and physical section length unchanged. +- 81654860 new symbol @26334, extent 22 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x670c `addi r4, r31, 0x7d8` via relocation-derived base register r31; 22-byte NUL-terminated char literal b'mn_SdcardMenu_d.brlan\x00'. Address and physical section length unchanged. +- 81654876 new symbol @26335, extent 18 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x678c `addi r7, r31, 0x7ee` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_TVMask_a.brlyt\x00'. Address and physical section length unchanged. +- 81654888 new symbol @26336, extent 24 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67a0 `addi r4, r31, 0x800` via relocation-derived base register r31; 24-byte NUL-terminated char literal b'my_TVMask_a_Apear.brlan\x00'. Address and physical section length unchanged. +- 816548A0 new symbol @26337, extent 11 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67a4 `addi r5, r31, 0x818` via relocation-derived base register r31; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged. +- 816548AB new symbol @26338, extent 23 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67b8 `addi r4, r31, 0x823` via relocation-derived base register r31; 23-byte NUL-terminated char literal b'my_TVMask_a_Lost.brlan\x00'. Address and physical section length unchanged. +- 816548C2 new symbol @26339, extent 19 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67fc `addi r7, r31, 0x83a` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'my_TVShade_a.brlyt\x00'. Address and physical section length unchanged. +- 816548D5 new symbol @26340, extent 25 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6810 `addi r4, r31, 0x84d` via relocation-derived base register r31; 25-byte NUL-terminated char literal b'my_TVShade_a_Apear.brlan\x00'. Address and physical section length unchanged. +- 816548EE new symbol @26342, extent 24 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6828 `addi r4, r31, 0x866` via relocation-derived base register r31; 24-byte NUL-terminated char literal b'my_TVShade_a_Lost.brlan\x00'. Address and physical section length unchanged. +- 81654906 new symbol @26344, extent 10 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x68d0 `addi r4, r31, 0x87e` via relocation-derived base register r31; 10-byte NUL-terminated char literal b'4x3_dummy\x00'. Address and physical section length unchanged. +- 81654910 new symbol @26345, extent 19 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6930 `addi r7, r31, 0x888` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'my_TVApear_a.brlyt\x00'. Address and physical section length unchanged. +- 81654923 new symbol @26346, extent 25 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6944 `addi r4, r31, 0x89b` via relocation-derived base register r31; 25-byte NUL-terminated char literal b'my_TVApear_a_Apear.brlan\x00'. Address and physical section length unchanged. +- 8165493C new symbol @26347, extent 24 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x695c `addi r4, r31, 0x8b4` via relocation-derived base register r31; 24-byte NUL-terminated char literal b'my_TVApear_a_Lost.brlan\x00'. Address and physical section length unchanged. +- 81654954 new symbol @26348, extent 16 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x69e4 `addi r7, r31, 0x8cc` via relocation-derived base register r31; 16-byte NUL-terminated char literal b'wait_icon.brlyt\x00'. Address and physical section length unchanged. +- 81654964 new symbol @26349, extent 26 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x69f8 `addi r4, r31, 0x8dc` via relocation-derived base register r31; 26-byte NUL-terminated char literal b'wait_icon_wait_loop.brlan\x00'. Address and physical section length unchanged. +- 81654A08 lbl_81654A08 -> __vt__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandler, extent 28 -> 28: .text+0x52 relocates lbl_81654A08+0x0; 28-byte vtable (two header words and 5 virtual slots); +0x8->onEvent__Q33ipl5scene24SDButtonEventHandlerBaseFUlUlPv+0x0, +0xC->setManager__Q23gui12EventHandlerFPQ23gui7Manager+0x0, +0x10->setLatestEventCtrlNo__Q23gui12EventHandlerFi+0x0. Address and physical section length unchanged. +- 81654A24 lbl_81654A24 -> __vt__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@27SDChannelSelectEventHandler, extent 24 -> 24: .text+0x41BA relocates lbl_81654A24+0x0; 24-byte vtable (two header words and 4 virtual slots); +0x8->onEvent__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@27SDChannelSelectEventHandlerFUlUlPv+0x0, +0xC->setManager__Q23gui12EventHandlerFPQ23gui7Manager+0x0, +0x10->setLatestEventCtrlNo__Q23gui12EventHandlerFi+0x0. Address and physical section length unchanged. +- 81654A3C lbl_81654A3C -> __vt__Q33ipl5scene15SDChannelSelect, extent 252 -> 104: .text+0x2A relocates lbl_81654A3C+0x0; 104-byte vtable (two header words and 24 virtual slots); +0x8->__dt__Q33ipl5scene15SDChannelSelectFv+0x0, +0xC->getParent__Q33ipl5scene4BaseFv+0x0, +0x10->getChild__Q33ipl5scene4BaseFv+0x0. Address and physical section length unchanged. + +SDChannelSelect: fetched origin before starting; no remote source fix. All data now 2960/2960 with every non-text section 100%. The three live vtables pair by their proven class names despite source offsets being 32 bytes earlier. The scene vtable is 104 bytes (two header words and 24 slots, including null ABI slots); its old 252-byte extent absorbed 148 bytes of deduplicated GUI tables. The anonymous target .data+0x960..0x980 remains unowned, unchanged and unfabricated; it does not prevent exact per-object data comparison. Source weak tables are also unchanged. Final full gate follows. + +## High-round final full gate + +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 27108/33828 data 2960/2960 functions 117/129 fuzzy 99.5051 linked code 0 +[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 117/129 +[src/scene/channelSelect/iplChannelSelect] objdiff: code 24736/25668 data 2336/2336 functions 101/102 fuzzy 99.7634 linked code 0 +[src/scene/channelSelect/iplChannelSelect] instruction-exact functions: 101/102 +[libs/RVL_SDK/src/wad/wad] objdiff: code 13180/24500 data 528/528 functions 35/40 fuzzy 98.9416 linked code 0 +[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 35/40 +[libs/RevoEX/src/nhttp/NHTTP_thread] objdiff: code 10528/11292 data 504/504 functions 25/26 fuzzy 99.9044 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_thread] instruction-exact functions: 25/26 +regressions vs baseline: 0 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +src/scene/sdChannelSelect/iplSDChannelSelect: matched_data 224 -> 2960/2960; instruction-exact 117 -> 117/129; code bytes 27108 -> 27108/33828. +src/scene/channelSelect/iplChannelSelect: matched_data 192 -> 2336/2336; instruction-exact 101 -> 101/102; code bytes 24736 -> 24736/25668. +libs/RVL_SDK/src/wad/wad: matched_data 64 -> 528/528; instruction-exact 35 -> 35/40; code bytes 13180 -> 13180/24500. +libs/RevoEX/src/nhttp/NHTTP_thread: matched_data 304 -> 504/504; instruction-exact 25 -> 25/26; code bytes 10528 -> 10528/11292. + +Fresh independent audit confirms all four units have every non-text section at 100%, matched_data equals total_data, and every baseline instruction-exact function is preserved. The physical section byte totals and all symbol addresses stay unchanged. Config diff audit checked all 401 changed symbol lines are inside the four owned .data ranges; no source file, shared header, function symbol, other unit symbol or split changed. The 32-byte SD zero range and all alignment/deduplicated storage remain in the extraction. They need no source padding. Final gate log /tmp/data-d5-r3-final-gate.log; independent section/relocation audit /tmp/data-d5-r3-final-audit.txt. + +Remaining code-only functions (19), outside the achieved non-text-data goal; each retains at least three logged source attempts: + +- create__Q33ipl5scene15SDChannelSelectFv: 97.73972%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv: 99.15205%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.81188%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.833336%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.29365%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.55125%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv: 99.65714%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- calcCommon__Q33ipl5scene15SDChannelSelectFv: 99.07407%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- initializeNormalPage__Q33ipl5scene15SDChannelSelectFv: 98.93617%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- selectChannel__Q33ipl5scene15SDChannelSelectFii: 98.305084%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj: 93.4721%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface: 98.541664%; 5 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- setChannelScissor__Q33ipl5scene13ChannelSelectCFPCQ33ipl5scene10ChannelObj: 93.48498%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- WADImportGetBlocks: 94.24161%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- WADImportEx: 99.02269%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- WAD_815C1288: 96.803276%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- WADBackupEx: 97.370995%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- WADImportDVDExForBS: 97.49049%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. +- NHTTPi_ThreadParseHeaderProc: 98.58639%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round. -- 2.49.1 From c4857800df46ae3edfd824198fa09a31c4f6ce0f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:33:14 +0000 Subject: [PATCH 26/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d5472712..a8d96e79 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.16% | 98.21% | +| 99.46% | 88.57% | 63.16% | 98.51% | units 927/1027 complete, functions 12264/12563 matched. -- 2.49.1 From cbf6363d0f5e07b6dceadc43693694c14d58a229 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:46:58 -0500 Subject: [PATCH 27/63] match(kpr_lib 9/9, zconvert 3/4) (fz2) (worker 7208e236) (#754) --- .../RVLMiddleware/eZiText/src/clib/zconvert.c | 4 +- libs/RVL_SDK/src/kpr/kpr_lib.c | 35 +-- tools/decomp-assist/fz2.attempts.md | 230 ++++++++++++++++++ 3 files changed, 252 insertions(+), 17 deletions(-) create mode 100644 tools/decomp-assist/fz2.attempts.md diff --git a/libs/RVLMiddleware/eZiText/src/clib/zconvert.c b/libs/RVLMiddleware/eZiText/src/clib/zconvert.c index 5f52f9d6..c31aed74 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zconvert.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zconvert.c @@ -27,11 +27,11 @@ ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK); ziWChar Zi8ConvertUC2UserKey(ziChar, ziU8 ZI_NEED_WORK); ziWChar Zi8ConvertUC2WC(ziChar character, ziU8 language ZI_NEED_WORK) { - ziU8* table; + const ziConversionTables* defaults; ziWChar* mapped; ziU8* cursor; ziU16 first, last; - const ziConversionTables* defaults; + ziU8* table; if (character == 0) { Zi8LogError(0x133, __zi8_work_data); return 0; diff --git a/libs/RVL_SDK/src/kpr/kpr_lib.c b/libs/RVL_SDK/src/kpr/kpr_lib.c index b037070c..32888f7c 100644 --- a/libs/RVL_SDK/src/kpr/kpr_lib.c +++ b/libs/RVL_SDK/src/kpr/kpr_lib.c @@ -242,6 +242,25 @@ u8 KPRLookAhead(KPRQueue* queue, u16* destination, u32 capacity) { return queue->iCount + queue->oCount; } +static inline u32 KPRConvertAltValue(u32 value, u32 leadingZero) { + if (value >= 128 && value <= 255) { + if (leadingZero) { + if (value < 160) { + value = kprLookupTable1252[value - 128]; + } + } else { + value = kprLookupTable437[value - 128]; + } + } else if (value > 255) { + u32 converted = 32; + if (value <= 0x6666666) { + converted = (u8)value; + } + value = converted; + } + return value; +} + BOOL KPRProcessAltKeypad(KPRQueue* queue, u16 character) { if (queue->altVal != 0) { u32 accumulator = queue->altVal & 0x7FFFFFFF; @@ -256,21 +275,7 @@ BOOL KPRProcessAltKeypad(KPRQueue* queue, u16 character) { return TRUE; } value = queue->altVal; - if (value >= 128 && value <= 255) { - if (leadingZero) { - if (value < 160) { - value = kprLookupTable1252[value - 128]; - } - } else { - value = kprLookupTable437[value - 128]; - } - } else if (value > 255) { - u32 converted = 32; - if (value <= 0x6666666) { - converted = (u8)value; - } - value = converted; - } + value = KPRConvertAltValue(value, leadingZero); { u16* destination; int index = queue->oCount + queue->iCount; diff --git a/tools/decomp-assist/fz2.attempts.md b/tools/decomp-assist/fz2.attempts.md new file mode 100644 index 00000000..d6affd85 --- /dev/null +++ b/tools/decomp-assist/fz2.attempts.md @@ -0,0 +1,230 @@ +# fz2 matching attempts + +Baseline HEAD 2f0f5a44c72cb84e23732e09fc8e75487c788f76; origin/main 5d63d152486a556fa24edf46b65dee7ce88474d6 + +All four units already have fully paired data, no symbol renames or extent changes needed. + +libs/RVLMiddleware/eZiText/src/clib/zmtkey: POOL IDENTICAL up to 0 (mine=0 base=0) + +libs/RVL_SDK/src/fa/pf_file: POOL IDENTICAL up to 0 (mine=0 base=0) + +libs/RVL_SDK/src/kpr/kpr_lib: POOL IDENTICAL up to 2 (mine=2 base=2) + +libs/RVLMiddleware/eZiText/src/clib/zconvert: POOL IDENTICAL up to 0 (mine=0 base=0) + +## Structural diagnosis +- Zi8getKeyLayout: 182/182 instructions, same 0x40 frame and branch/inline boundaries; only language/tableCount r26/r27 swapped, 16 differences. +- PFFILE_GetSFD: 113/113 instructions, frame and branch layout identical; four saved register assignments differ and index/pointer increments reversed, 18 differences. +- KPRProcessAltKeypad: 96/96 instructions, leaf function without frame; branch form/operand order/helper boundaries identical; leadingZero/value/index register assignment differs, 21 differences. +- Zi8ConvertUC2WC: 124/124 instructions, identical frame/branches/operands/helper boundaries; table/first/mapped saved registers differ, 8 differences. +- Zi8ConvertUC2Key: 207/207 instructions, identical frame/branches/operands/helper boundaries; work/key r27/r28 swapped, 18 differences. + +Before each initial function investigation origin fetched under flock; source identical to origin/main in all four owned units, so none already matched remotely. +- Zi8getKeyLayout / scope table count to builtin table path: 186/182 instructions; structural 12, positional differences 181 +- Zi8getKeyLayout / use separate character total after table lookup: 182/182 instructions; structural 2, positional differences 4 +- Zi8getKeyLayout / nested fallback branches instead of goto: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / wide lookup count with explicit narrow comparison: 184/182 instructions; structural 8, positional differences 113 +- Zi8getKeyLayout / signed lookup count with explicit narrow comparison: 184/182 instructions; structural 8, positional differences 113 +- Zi8getKeyLayout / carry lookup count into accumulated total initializer: 184/182 instructions; structural 8, positional differences 67 +- Zi8getKeyLayout / initialize separate count and total together: 183/182 instructions; structural 7, positional differences 65 +- Zi8getKeyLayout / lookup count used for later zero character check: 183/182 instructions; structural 7, positional differences 52 +- Zi8getKeyLayout / use ziU8 language local: 186/182 instructions; structural 34, positional differences 180 +- Zi8getKeyLayout / use ziU16 language local: 186/182 instructions; structural 34, positional differences 180 +- Zi8getKeyLayout / use ziU32 language local: 186/182 instructions; structural 34, positional differences 180 +- Zi8getKeyLayout / lookup count declaration after key characters: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / narrow table count on reads with wide storage: 180/182 instructions; structural 7, positional differences 116 +- PFFILE_GetSFD / pointer increment before index in loop latch: 113/113 instructions; structural 0, positional differences 18 +- PFFILE_GetSFD / separate free slot index and pointer initialization: 113/113 instructions; structural 2, positional differences 19 +- PFFILE_GetSFD / pointer iteration with existing index comparisons: 113/113 instructions; structural 0, positional differences 18 +- PFFILE_GetSFD / free index declaration before free slot pointer: 113/113 instructions; structural 0, positional differences 42 +- Zi8getKeyLayout / declaration search: 52 orders, best remained structural 0 and 16 register differences; source restored. +- KPRProcessAltKeypad / leading zero declared before accumulator: 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / converted value scoped to non-digit path: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / keypad value fetched into accumulator local: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / declare conversion and shift locals together: 96/96 instructions; structural 0, positional differences 25 +- KPRProcessAltKeypad / leading zero first and reuse accumulator for converted value: 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / leading zero first and shift locals at function scope: 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / leading zero first and converted declared beside value: 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / leading zero first and converted before value: 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / leading zero first and shift index before destination: 96/96 instructions; structural 0, positional differences 15 +- PFFILE_GetSFD / use formal volume through typed field casts: 113/113 instructions; structural 9, positional differences 61 +- PFFILE_GetSFD / separate volume alias from initialization: 113/113 instructions; structural 2, positional differences 31 +- PFFILE_GetSFD / index initializer before volume and entry aliases: 113/113 instructions; structural 0, positional differences 39 +- PFFILE_GetSFD / free pointer and index initialized in first loop clause: 113/113 instructions; structural 0, positional differences 19 +- KPRProcessAltKeypad / all keypad locals before active-value branch: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / all locals at function scope including conversion and shifting: 96/96 instructions; structural 0, positional differences 25 +- KPRProcessAltKeypad / leading zero signed local: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / reuse value local for digit accumulator: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / initialize value from stored accumulator in branch declaration: BUILD FAIL ivate/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/kpr/kpr_lib.c -o build/43U/src/libs/RVL_SDK/src/kpr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpr/kpr_lib.d build/43U/src/libs/RVL_SDK/src/kpr/kpr_lib.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kpr\kpr_lib.c # --------------------------------------- # 257: u32 value = queue->altVal; # Error: ^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- KPRProcessAltKeypad / declaration order (0, 1, 2): 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / declaration order (0, 2, 1): 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / declaration order (1, 0, 2): 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / declaration order (1, 2, 0): 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / declaration order (2, 0, 1): 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / declaration order (2, 1, 0): 96/96 instructions; structural 0, positional differences 7 +- PFFILE_GetSFD / declsearch after swapped loop latch: 23 orders, structural 0, 18 differences; no exact gain, original source restored. +- Zi8ConvertUC2WC / declaration search: initial 6 orders reduced 8 to 6 differences; corrected full leading block search tried 11 orders and reached structural 0, diffs 0, 124/124 instructions. Final order defaults, mapped, cursor, first/last, table. A mistaken initial line range included the following if block, produced no gain and was restored before corrected range. + +UC2WC final full gate PASS: zconvert 3/4 exact, code 1380/2208, data 112/112; regressions/forbidden/readability 0; DOL 26116613f624061ba99c8d1a299aaa6efa85670d. +- Zi8getKeyLayout / count declaration split with character count: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / all builtin table locals grouped in function scope: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / initialize address in declaration: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / initialize num keys at declaration after other locals: 182/182 instructions; structural 2, positional differences 20 +- Zi8getKeyLayout / scope copy pointer and lookup count in mutually exclusive paths: 186/182 instructions; structural 12, positional differences 181 +- KPRProcessAltKeypad / value declared outside the active accumulator branch: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / leading zero declared outside the active branch: 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / accumulator declared outside the active branch: BUILD FAIL L_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/kpr/kpr_lib.c -o build/43U/src/libs/RVL_SDK/src/kpr && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpr/kpr_lib.d build/43U/src/libs/RVL_SDK/src/kpr/kpr_lib.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kpr\kpr_lib.c # --------------------------------------- # 249: u32 value; # Error: ^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- KPRProcessAltKeypad / value and leading zero declared at function scope: 96/96 instructions; structural 0, positional differences 7 +- KPRProcessAltKeypad / all locals initialized after declarations with zero flag first: 96/96 instructions; structural 0, positional differences 21 +- PFFILE_GetSFD / full declaration permutation (0, 1, 2, 3, 4): 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / full declaration permutation (0, 1, 2, 4, 3): 113/113 instructions; structural 2, positional differences 19 +- PFFILE_GetSFD / full declaration permutation (0, 1, 3, 2, 4): 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / full declaration permutation (0, 1, 3, 4, 2): 113/113 instructions; structural 2, positional differences 22 +- PFFILE_GetSFD / full declaration permutation (0, 1, 4, 2, 3): 113/113 instructions; structural 2, positional differences 22 +- PFFILE_GetSFD / full declaration permutation (0, 1, 4, 3, 2): 113/113 instructions; structural 2, positional differences 22 +- PFFILE_GetSFD / full declaration permutation (0, 2, 1, 3, 4): 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / full declaration permutation (0, 2, 1, 4, 3): 113/113 instructions; structural 2, positional differences 19 +- PFFILE_GetSFD / full declaration permutation (0, 2, 3, 1, 4): 113/113 instructions; structural 2, positional differences 42 +- PFFILE_GetSFD / full declaration permutation (0, 2, 3, 4, 1): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (0, 2, 4, 1, 3): 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / full declaration permutation (0, 2, 4, 3, 1): 113/113 instructions; structural 2, positional differences 42 +- PFFILE_GetSFD / full declaration permutation (0, 3, 1, 2, 4): 113/113 instructions; structural 2, positional differences 42 +- PFFILE_GetSFD / full declaration permutation (0, 3, 1, 4, 2): 113/113 instructions; structural 2, positional differences 45 +- PFFILE_GetSFD / full declaration permutation (0, 3, 2, 1, 4): 113/113 instructions; structural 2, positional differences 42 +- PFFILE_GetSFD / full declaration permutation (0, 3, 2, 4, 1): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (0, 3, 4, 1, 2): 113/113 instructions; structural 2, positional differences 45 +- PFFILE_GetSFD / full declaration permutation (0, 3, 4, 2, 1): 113/113 instructions; structural 2, positional differences 45 +- PFFILE_GetSFD / full declaration permutation (0, 4, 1, 2, 3): 113/113 instructions; structural 2, positional differences 21 +- PFFILE_GetSFD / full declaration permutation (0, 4, 1, 3, 2): 113/113 instructions; structural 2, positional differences 21 +- PFFILE_GetSFD / full declaration permutation (0, 4, 2, 1, 3): 113/113 instructions; structural 2, positional differences 21 +- PFFILE_GetSFD / full declaration permutation (0, 4, 2, 3, 1): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (0, 4, 3, 1, 2): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (0, 4, 3, 2, 1): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (1, 0, 2, 3, 4): 113/113 instructions; structural 2, positional differences 41 +- PFFILE_GetSFD / full declaration permutation (1, 0, 2, 4, 3): 113/113 instructions; structural 2, positional differences 42 +- PFFILE_GetSFD / full declaration permutation (1, 0, 3, 2, 4): 113/113 instructions; structural 2, positional differences 41 +- PFFILE_GetSFD / full declaration permutation (1, 0, 3, 4, 2): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (1, 0, 4, 2, 3): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (1, 0, 4, 3, 2): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (1, 3, 0, 2, 4): 113/113 instructions; structural 2, positional differences 40 +- PFFILE_GetSFD / full declaration permutation (1, 3, 0, 4, 2): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (1, 3, 4, 0, 2): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (1, 4, 0, 2, 3): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (1, 4, 0, 3, 2): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (1, 4, 3, 0, 2): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (3, 0, 1, 2, 4): 113/113 instructions; structural 2, positional differences 39 +- PFFILE_GetSFD / full declaration permutation (3, 0, 1, 4, 2): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (3, 0, 2, 1, 4): 113/113 instructions; structural 2, positional differences 39 +- PFFILE_GetSFD / full declaration permutation (3, 0, 2, 4, 1): 113/113 instructions; structural 2, positional differences 40 +- PFFILE_GetSFD / full declaration permutation (3, 0, 4, 1, 2): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (3, 0, 4, 2, 1): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (3, 1, 0, 2, 4): 113/113 instructions; structural 2, positional differences 14 +- Zi8ConvertUC2Key / separate key declaration and initial assignment: 207/207 instructions; structural 0, positional differences 18 +- PFFILE_GetSFD / full declaration permutation (3, 1, 0, 4, 2): 113/113 instructions; structural 2, positional differences 19 +- Zi8ConvertUC2Key / scope keyed table lookup locals in their path: 210/207 instructions; structural 14, positional differences 205 +- PFFILE_GetSFD / full declaration permutation (3, 1, 4, 0, 2): 113/113 instructions; structural 2, positional differences 19 +- Zi8ConvertUC2Key / negative table lookup with default path first: 207/207 instructions; structural 138, positional differences 155 +- PFFILE_GetSFD / full declaration permutation (3, 4, 0, 1, 2): 113/113 instructions; structural 2, positional differences 43 +- Zi8ConvertUC2Key / wide key local with narrow result reads: 205/207 instructions; structural 11, positional differences 130 +- PFFILE_GetSFD / full declaration permutation (3, 4, 0, 2, 1): 113/113 instructions; structural 2, positional differences 43 +- PFFILE_GetSFD / full declaration permutation (3, 4, 1, 0, 2): 113/113 instructions; structural 2, positional differences 20 +- PFFILE_GetSFD / full declaration permutation (4, 0, 1, 2, 3): 113/113 instructions; structural 2, positional differences 21 +- PFFILE_GetSFD / full declaration permutation (4, 0, 1, 3, 2): 113/113 instructions; structural 2, positional differences 21 +- PFFILE_GetSFD / full declaration permutation (4, 0, 2, 1, 3): 113/113 instructions; structural 2, positional differences 21 +- PFFILE_GetSFD / full declaration permutation (4, 0, 2, 3, 1): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (4, 0, 3, 1, 2): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (4, 0, 3, 2, 1): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (4, 1, 0, 2, 3): 113/113 instructions; structural 2, positional differences 45 +- PFFILE_GetSFD / full declaration permutation (4, 1, 0, 3, 2): 113/113 instructions; structural 2, positional differences 45 +- PFFILE_GetSFD / full declaration permutation (4, 1, 3, 0, 2): 113/113 instructions; structural 2, positional differences 45 +- PFFILE_GetSFD / full declaration permutation (4, 3, 0, 1, 2): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (4, 3, 0, 2, 1): 113/113 instructions; structural 2, positional differences 44 +- PFFILE_GetSFD / full declaration permutation (4, 3, 1, 0, 2): 113/113 instructions; structural 2, positional differences 21 +- Zi8getKeyLayout / descriptive local tableCount to tableSize: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / descriptive local language to languageId: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / descriptive local tableCount to characterTotal: 182/182 instructions; structural 0, positional differences 16 +- Zi8ConvertUC2Key / descriptive local key to keyCode: 207/207 instructions; structural 0, positional differences 18 +- KPRProcessAltKeypad / inline codepage conversion helper: 96/96 instructions; structural 0, positional differences 0; EXACT candidate retained +- KPRProcessAltKeypad / clear alt accumulator with compound assignment: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / combine digit arithmetic with accumulator assignment: 96/96 instructions; structural 0, positional differences 21 +- KPRProcessAltKeypad / keep converted character in outer value but use shift pointer loop: 96/96 instructions; structural 0, positional differences 21 + +Zi8ConvertUC2Key declaration search covered 36 legal orders without gain; a mistaken first range included the declaration of the function, yielded no gain, and restored source. The later correct range was 127-132. +PFFILE_GetSFD exhaustive search covered 60 dependency-valid declaration orders, none exact, best 113/113 with 14 differences. No fuzzy candidates retained. + +KPRProcessAltKeypad: codepage conversion extracted to readable inline helper; 96/96 instructions, diffs 0; final full gate PASS 9/9, code 1536/1536 data 1104/1104, DOL correct, zero regressions/forbidden/style. Helper indentation normalized, verification repeated before commit. +- Zi8getKeyLayout / inline custom key character copy: 168/182 instructions; structural 28, positional differences 151 +- Zi8getKeyLayout / inline builtin key character count: 175/182 instructions; structural 13, positional differences 68 +- Zi8getKeyLayout / inline little endian key character read: 174/182 instructions; structural 18, positional differences 50 +- Zi8ConvertUC2Key / inline key table value decoding: 193/207 instructions; structural 32, positional differences 167 +- Zi8ConvertUC2Key / inline all conversion entry decoding: 189/207 instructions; structural 38, positional differences 165 +- Zi8ConvertUC2Key / scope default mapping variables in fallback branch: 210/207 instructions; structural 6, positional differences 205 +- Zi8ConvertUC2Key / entry offset access through byte pointer local: 212/207 instructions; structural 19, positional differences 128 +- PFFILE_GetSFD / inline descriptor initialization with original volume alias: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / inline descriptor initialization with pointer-first latch: 113/113 instructions; structural 0, positional differences 18 +- PFFILE_GetSFD / inline cluster link setup: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / both descriptor and link setup helpers: 113/113 instructions; structural 2, positional differences 18 +- Zi8getKeyLayout / inline ziU16 table count wrapper: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / inline ziU32 table count wrapper: 180/182 instructions; structural 6, positional differences 116 +- Zi8getKeyLayout / table count initialized from character summation in separate block: 182/182 instructions; structural 0, positional differences 16 + +## Completion audit +- Remaining Zi8getKeyLayout: at least three distinct structural/source attempts, declaration search and helper variations logged; no exact candidate. Baseline 182/182, 16 register differences. +- Remaining PFFILE_GetSFD: at least three distinct structural/source attempts plus 60 legal declaration permutations and helper variations logged; no exact candidate. Baseline 113/113, 18 differences including increment order. +- Remaining Zi8ConvertUC2Key: at least three distinct structural/source attempts, full declaration search and decoding/scope variations logged; no exact candidate. Baseline 207/207, 18 work/key register differences. +- Matched Zi8ConvertUC2WC: 124/124 diffs 0. Matched KPRProcessAltKeypad: 96/96 diffs 0. +- Every owned data unit is 100% paired from baseline through final candidate; no config edits made. All nonexact experimental changes restored. + +## Final full gate over all four units + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] objdiff: code 1488/2216 data 60/60 functions 3/4 fuzzy 99.8466 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] instruction-exact functions: 3/4 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section .text size 2216 match 99.84657 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extab size 24 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extabindex size 36 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] below 100: Zi8getKeyLayout 99.53297 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] baseline: code 1488/2216 data 60 functions 3 fuzzy 99.8466 +[libs/RVL_SDK/src/fa/pf_file] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_file] objdiff: code 17368/17820 data None/None functions 44/45 fuzzy 99.9771 linked code 0 +[libs/RVL_SDK/src/fa/pf_file] instruction-exact functions: 44/45 +[libs/RVL_SDK/src/fa/pf_file] section .text size 17820 match 99.977104 +[libs/RVL_SDK/src/fa/pf_file] below 100: PFFILE_GetSFD 99.09734 +[libs/RVL_SDK/src/fa/pf_file] baseline: code 17368/17820 data None functions 44 fuzzy 99.9771 +[libs/RVL_SDK/src/kpr/kpr_lib] pool: IDENTICAL +[libs/RVL_SDK/src/kpr/kpr_lib] objdiff: code 1536/1536 data 1104/1104 functions 9/9 fuzzy 100.0000 linked code 0 +[libs/RVL_SDK/src/kpr/kpr_lib] instruction-exact functions: 9/9 +[libs/RVL_SDK/src/kpr/kpr_lib] section .data size 112 match 100.0 +[libs/RVL_SDK/src/kpr/kpr_lib] section .rodata size 968 match 100.0 +[libs/RVL_SDK/src/kpr/kpr_lib] section .sbss size 16 match 100.0 +[libs/RVL_SDK/src/kpr/kpr_lib] section .sdata size 8 match 100.0 +[libs/RVL_SDK/src/kpr/kpr_lib] section .text size 1536 match 100.0 +[libs/RVL_SDK/src/kpr/kpr_lib] baseline: code 1152/1536 data 1104 functions 8 fuzzy 99.6875 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zconvert] objdiff: code 1380/2208 data 112/112 functions 3/4 fuzzy 99.8370 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] instruction-exact functions: 3/4 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .rodata size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .text size 2208 match 99.83696 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extab size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extabindex size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] below 100: Zi8ConvertUC2Key 99.565216 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] baseline: code 884/2208 data 112 functions 2 fuzzy 99.7645 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.60345 +global fuzzy_match_percent: 99.45531 -> 99.45553 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.20482 -> 98.20482 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Before -> after instruction-exact functions / matched code bytes / matched data bytes: +- zmtkey: 3->3 / 1488->1488 / 60->60. +- pf_file: 44->44 / 17368->17368 / no data symbols. +- kpr_lib: 8->9 / 1152->1536 / 1104->1104. +- zconvert: 2->3 / 884->1380 / 112->112. +Source commits: 57bab7c8, 36278f38. No uncertainty about the reported measurements; remaining source levers unknown. -- 2.49.1 From aa677ad5207735d1f7a47da8f950678e8e3011a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:47:56 +0000 Subject: [PATCH 28/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8d96e79..41520a5e 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.57% | 63.16% | 98.51% | +| 99.46% | 88.60% | 63.16% | 98.51% | -units 927/1027 complete, functions 12264/12563 matched. +units 927/1027 complete, functions 12266/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 9ef60d674d871e9d936b6f608dc7392de529e97d Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:52:29 -0500 Subject: [PATCH 29/63] match(iplGCWindow 48/48, NWC24MBoxCtrl data 100%) (fz4) (worker 715d7be2) (#755) --- config/43U/symbols.txt | 2 +- src/scene/memoryCard/iplGCWindow.cpp | 5 +- tools/decomp-assist/fz4.attempts.md | 166 +++++++++++++++++++++++++++ 3 files changed, 169 insertions(+), 4 deletions(-) create mode 100644 tools/decomp-assist/fz4.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index d38be0ec..644e6f77 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -23772,7 +23772,7 @@ YouGotMail = .sbss:0x81698DE8; // type:object size:0x4 scope:local data:4byte GlobalErrorCode = .sbss:0x81698DEC; // type:object size:0x4 scope:local data:4byte Registered = .sbss:0x81698DF0; // type:object size:0x4 scope:local data:4byte lastTick$2045 = .sbss:0x81698DF4; // type:object size:0x4 scope:local data:4byte -MountInfo = .sbss:0x81698DF8; // type:object size:0x4 scope:local data:4byte +MountInfo = .sbss:0x81698DF8; // type:object size:0x8 scope:local data:4byte m_pFile = .sbss:0x81698E00; // type:object size:0x4 scope:local data:4byte nwc24ScdInitialized = .sbss:0x81698E08; // type:object size:0x4 scope:local data:4byte nwc24ScdSuspendCnt = .sbss:0x81698E0C; // type:object size:0x4 scope:local data:4byte diff --git a/src/scene/memoryCard/iplGCWindow.cpp b/src/scene/memoryCard/iplGCWindow.cpp index 2e0ebf1e..72de28b2 100644 --- a/src/scene/memoryCard/iplGCWindow.cpp +++ b/src/scene/memoryCard/iplGCWindow.cpp @@ -106,8 +106,8 @@ void GCWindow::init(const math::VEC3& translate, MemoryCardManager* manager, u8 } int blocks = mpMemoryCardManager->getBlocks(cardState, cardIndex); DigitTable digitTable = scNumber; - int blockCount = static_cast(blocks); wchar_t decimal[5] = {0}; + int blockCount = static_cast(blocks); int skipCount = 0; wchar_t blockText[5] = {0}; decimal[0] = digitTable.w[blockCount / 1000]; @@ -123,8 +123,7 @@ void GCWindow::init(const math::VEC3& translate, MemoryCardManager* manager, u8 wcscpy(blockText, decimal + skipCount); set_textbox("T_Block_00", blockText); mTranslate = translate; - math::VEC3 zero(0.0f, 0.0f, 0.0f); - mLinearInterp.init(ANIM_TYPE_FORWARD, 12.0f, 0.0f, mTranslate, zero, 1.0f); + mLinearInterp.init(ANIM_TYPE_FORWARD, 12.0f, 0.0f, mTranslate, math::VEC3(0.0f, 0.0f, 0.0f), 1.0f); mLinearInterp.initFrame(); mLinearInterp.restart(); math::VEC3 position = mLinearInterp.get(); diff --git a/tools/decomp-assist/fz4.attempts.md b/tools/decomp-assist/fz4.attempts.md new file mode 100644 index 00000000..1dd671fd --- /dev/null +++ b/tools/decomp-assist/fz4.attempts.md @@ -0,0 +1,166 @@ +# fz4 attempts + +Baseline origin/main c4857800; all four string pools identical. + +src/scene/memoryCard/iplGCWindow: {'fuzzy_match_percent': 99.83982, 'total_code': '9964', 'matched_code': '9172', 'matched_code_percent': 92.051384, 'total_data': '2032', 'matched_data': '2032', 'matched_data_percent': 100.0, 'total_functions': 48, 'matched_functions': 47, 'matched_functions_percent': 97.91667, 'total_units': 1} + +libs/RVLMiddleware/eZiText/src/clib/zoemdata: {'fuzzy_match_percent': 98.29918, 'total_code': '976', 'matched_code': '208', 'matched_code_percent': 21.311476, 'total_data': '60', 'matched_data': '60', 'matched_data_percent': 100.0, 'total_functions': 3, 'matched_functions': 2, 'matched_functions_percent': 66.66667, 'total_units': 1} + +libs/RevoEX/src/nwc24/NWC24MBoxCtrl: {'fuzzy_match_percent': 99.80762, 'total_code': '10604', 'matched_code': '10104', 'matched_code_percent': 95.2848, 'total_data': '192', 'matched_data': '184', 'matched_data_percent': 95.83333, 'total_functions': 25, 'matched_functions': 23, 'matched_functions_percent': 92.0, 'total_units': 1} + +libs/RVL_SDK/src/fa/pf_cache: {'fuzzy_match_percent': 99.77555, 'total_code': '7396', 'matched_code': '6464', 'matched_code_percent': 87.3986, 'matched_data_percent': 100.0, 'total_functions': 36, 'matched_functions': 35, 'matched_functions_percent': 97.22222, 'complete_data_percent': 100.0, 'total_units': 1} + +PFCACHE_DoWriteNumSectorAndFreeIfNeeded structural diagnosis: 233/233 instructions, third overlap branch computes last sector via cancelled page-sector rather than request end. Attempt 1: compute request end directly before overlap count. +Attempt 1 result: 232/233 instructions; request end hoisted, broad register changes; rejected. Attempt 2: simplify overlap count while retaining page-relative last-sector expression. +Attempt 2 result: same 9 scheduling differences. Attempt 3: shared request-end temporary, then subtract page start and decrement last sector. +Attempt 3 result: 232/233, request end reused from r31. Attempt 4: retain original overlap expression and compute last sector directly using reversed operand order. +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap arithmetic variant 5: structural/exact/instructions (17, 109, 236, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap arithmetic variant 6: structural/exact/instructions (17, 109, 236, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap arithmetic variant 7: structural/exact/instructions (17, 109, 236, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap arithmetic variant 8: structural/exact/instructions (15, 228, 232, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap arithmetic variant 9: structural/exact/instructions (4, 9, 233, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap arithmetic variant 10: structural/exact/instructions (17, 109, 236, 233) +NWC24iIsMsgObjReadable: local message type: structural/exact/instructions (4, 5, 57, 57) +NWC24iIsMsgObjReadable: nested readable branch: structural/exact/instructions (4, 5, 57, 57) +NWC24iIsMsgObjReadable: explicit entry local: structural/exact/instructions (4, 5, 57, 57) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: declare position before zero: structural/exact/instructions (42, 81, 201, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: unsigned block count: structural/exact/instructions (4, 48, 198, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: declare block count before digit table: structural/exact/instructions (18, 60, 198, 198) +NWC24iMBoxCheck: individual oldest id and header locals: structural/exact/instructions (15, 40, 66, 68) +NWC24iMBoxCheck: direct oldest id assignment: structural/exact/instructions (10, 38, 67, 68) +NWC24iMBoxCheck: inline helper local id value: structural/exact/instructions (10, 38, 67, 68) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: inline interpolation result: structural/exact/instructions (6, 71, 199, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: direct converted block count: structural/exact/instructions (18, 60, 198, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: array digits scope: structural/exact/instructions (4, 48, 198, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: wchar digits separate initialization: structural/exact/instructions (16, 48, 198, 198) +Zi8MatchOEMdata: predecrement capacity in bounds test: structural/exact/instructions (0, 47, 192, 192) +Zi8MatchOEMdata: initialize index after continuation reset: structural/exact/instructions ('compile failed', 'LMiddleware/eZiText/src/clib/zoemdata.d\n### mwcceppc.exe Compiler:\n# File: libs\\RVLMiddleware\\eZiText\\src\\clib\\zoemdata.c\n# -------------------------------------------------------\n# 30: ziS32 index = ZI_WORK->oemIdx; \n# Error: ^^^^^\n# (10141) expression syntax error\n# Too many errors printed, aborting program\n\nUser break, cancelled...\nninja: build stopped: subcommand failed.\n') +Zi8MatchOEMdata: unsigned index matching OEM index: structural/exact/instructions (2, 40, 192, 192) + +Data proof: MountInfo at 0x81698DF8 is an 8-byte {s32 count; NWC24MBoxType type;} object. Target MountVFMBox relocates to MountInfo and stores the type at +4; target Unmount/ForceUnmount load type at +4. Expand extraction extent 4->8 within unchanged 8-byte .sbss section; no address or section-total change. +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: const zero vector: structural/exact/instructions (4, 48, 198, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: const interpolation position: structural/exact/instructions (4, 48, 198, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: declare block count before loop: structural/exact/instructions (4, 48, 198, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: reuse block return local: structural/exact/instructions (4, 48, 198, 198) +NWC24iMBoxCheck: single field id object and separate header: structural/exact/instructions (15, 40, 66, 68) +NWC24iMBoxCheck: single field header object and separate id: structural/exact/instructions (15, 40, 66, 68) +NWC24iMBoxCheck: helper returns loaded id: structural/exact/instructions (10, 38, 67, 68) +NWC24iMBoxCheck: id passed through local pointer: structural/exact/instructions (10, 38, 67, 68) +NWC24iIsMsgObjReadable: common unreadable tail: structural/exact/instructions (19, 55, 53, 57) +NWC24iIsMsgObjReadable: combine unreadable masks: structural/exact/instructions (10, 55, 53, 57) +NWC24iIsMsgObjReadable: explicit mask equality: structural/exact/instructions (4, 5, 57, 57) +NWC24iIsMsgObjReadable: readable flags via shift: structural/exact/instructions (4, 5, 57, 57) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: left associative overlap subtraction: structural/exact/instructions (4, 9, 233, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: subtract sector before num sector: structural/exact/instructions (4, 9, 233, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: cancel through page end temporary: structural/exact/instructions (18, 110, 237, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: use signed request sum: structural/exact/instructions (4, 9, 233, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap subtract page minus request: structural/exact/instructions (15, 107, 234, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: overlap reversed request operands: structural/exact/instructions (15, 107, 234, 233) +Zi8MatchOEMdata: local work pointer declaration position 0: structural/exact/instructions (18, 184, 196, 192) +Zi8MatchOEMdata: local work pointer declaration position 1: structural/exact/instructions (18, 184, 196, 192) +Zi8MatchOEMdata: local work pointer declaration position 2: structural/exact/instructions (18, 184, 196, 192) +Zi8MatchOEMdata: local work pointer declaration position 3: structural/exact/instructions (18, 184, 196, 192) +Zi8MatchOEMdata: local work replaces call argument: structural/exact/instructions (22, 186, 196, 192) +Zi8MatchOEMdata: local work with predecrement capacity: structural/exact/instructions (20, 186, 196, 192) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: inline zero vector temporary: structural/exact/instructions (0, 44, 198, 198) +init__Q33ipl5scene8GCWindowFRCQ33ipl4math4VEC3PQ33ipl5scene17MemoryCardManagerUcs: inline digit formatting boundary: structural/exact/instructions (41, 52, 198, 198) + +GCWindow::init: inline zero vector fixes both VEC3 stack offsets, structural diffs 4->0. declsearch swapped decimal initialization before blockCount declaration; all uses remain initialized. Exact 198/198 instructions, diffs 0. Original register-only difference was lifetime/declaration ordering. +Zi8MatchOEMdata: declsearch original leading four locals tried 13 orders, no improvement; predecrement variant tried 13 orders, no exact result. Restored baseline source. + +First full gate PASS: GCWindow 48/48, code9964/9964,data2032/2032; MountInfo extraction data192/192; zero regressions/forbidden/readability warnings; DOL26116613f624061ba99c8d1a299aaa6efa85670d. +Zi8MatchOEMdata: 16 bit unsigned OEM index: structural/exact/instructions (16, 180, 196, 192) +Zi8MatchOEMdata: 16 bit signed OEM index: structural/exact/instructions (16, 180, 196, 192) +Zi8MatchOEMdata: initialize index before fallback: structural/exact/instructions (3, 182, 193, 192) +Zi8MatchOEMdata: move fallback initialization after index: structural/exact/instructions (4, 45, 192, 192) +Zi8MatchOEMdata: signed pattern position: structural/exact/instructions (2, 40, 192, 192) +NWC24iIsMsgObjReadable: inline readability validation boundary: structural/exact/instructions (11, 54, 60, 57) +NWC24iMBoxCheck: header pointer passed to oldest helper: structural/exact/instructions (10, 38, 67, 68) +NWC24iMBoxCheck: copy oldest id through memcpy: structural/exact/instructions (16, 41, 70, 68) +NWC24iMBoxCheck: helper returns status checked by caller: structural/exact/instructions (19, 66, 74, 68) +Zi8MatchOEMdata: scoped OEM index ziS32 index = ZI_WORK->oemIdx;: structural/exact/instructions (12, 191, 196, 192) +Zi8MatchOEMdata: scoped OEM index ziS32 index; + index = ZI_WORK->oemIdx;: structural/exact/instructions (12, 191, 196, 192) +Zi8MatchOEMdata: index declaration before folded char: structural/exact/instructions (2, 40, 192, 192) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline request overlap helper: structural/exact/instructions (27, 113, 236, 233) +PFCACHE_DoWriteNumSectorAndFreeIfNeeded: inline page overlap helper: structural/exact/instructions (27, 110, 235, 233) + +PFCACHE register-only follow-up after structural arithmetic/boundary trials: +declaration block: + PF_CACHE_PAGE* p_page = PF_NULL; + pf_s32 err; + pf_u32 num_rest_sector = num_sector; + pf_u8* p_sbuf; + pf_u8* p_ebuf; + pf_u32 num_overlap; + pf_u32 last_sector; +start (4, 9) +best (4, 9) after 52 builds; source restored; best order was: + PF_CACHE_PAGE* p_page = PF_NULL; + pf_s32 err; + pf_u32 num_rest_sector = num_sector; + pf_u8* p_sbuf; + pf_u8* p_ebuf; + pf_u32 num_overlap; + pf_u32 last_sector; + +Zi8MatchOEMdata: int OEM index: structural/exact/instructions (2, 40, 192, 192) +Zi8MatchOEMdata: unsigned int OEM index: structural/exact/instructions (2, 40, 192, 192) +Zi8MatchOEMdata: local continuation fallback boolean: structural/exact/instructions (9, 85, 193, 192) +Zi8MatchOEMdata: OEM callback result temporary: structural/exact/instructions (14, 70, 193, 192) + +Final structural audit: +- NWC24iIsMsgObjReadable: target/ours 57/57 instructions; only first field load and mask test scheduled before LR/r31 saves in ours. Seven distinct condition/local/helper trials rejected; no volatile, assembly, or added source retained. +- NWC24iMBoxCheck: target/ours 68/67; target stores oldest id then reloads into r4 at stack +8, ours forwards the loaded value. Separate locals remove spill or reorder stack; helper forms, pointer indirection, and memcpy do not reproduce target reload. Ten distinct trials rejected. +- Zi8MatchOEMdata: target/ours 192/192; bounds-check length narrowing and capacity decrement swap scheduling, plus saved-register permutation: target work r29/index r26 versus ours work r28/index r29. Leading-declaration search, scoped index, width/signedness, typed work pointer, bounds form and callback temporary all tested. No exact candidate; baseline restored. +- PFCACHE_DoWriteNumSectorAndFreeIfNeeded: target/ours 233/233; third overlap branch target recomputes reversed request end before overlap subtraction; ours reuses loop-invariant r31 then reconstructs end through page start. Arithmetic reassociation and helper-boundary trials unsuccessful; declsearch 52 builds leaves structural/exact 4/9. Baseline restored. +- GCWindow::init accepted exact 198/198 with zero differences; data100%. All four unit data scores100%; pf_cache has no data bytes. +Completeness audit: every remaining function has more than three logged distinct source-level attempts. No untried function remains. All trial edits except exact GCWindow source and relocation-proven MountInfo extent were restored. + +Final full clean gate: +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/memoryCard/iplGCWindow] pool: IDENTICAL +[src/scene/memoryCard/iplGCWindow] objdiff: code 9964/9964 data 2032/2032 functions 48/48 fuzzy 100.0000 linked code 0 +[src/scene/memoryCard/iplGCWindow] instruction-exact functions: 48/48 +[src/scene/memoryCard/iplGCWindow] section .data size 1784 match 100.0 +[src/scene/memoryCard/iplGCWindow] section .rodata size 176 match 100.0 +[src/scene/memoryCard/iplGCWindow] section .sdata size 48 match 100.0 +[src/scene/memoryCard/iplGCWindow] section .sdata2 size 24 match 100.0 +[src/scene/memoryCard/iplGCWindow] section .text size 9964 match 100.0 +[src/scene/memoryCard/iplGCWindow] baseline: code 9172/9964 data 2032 functions 47 fuzzy 99.8398 +[libs/RVL_SDK/src/fa/pf_cache] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_cache] objdiff: code 6464/7396 data None/None functions 35/36 fuzzy 99.7755 linked code 0 +[libs/RVL_SDK/src/fa/pf_cache] instruction-exact functions: 35/36 +[libs/RVL_SDK/src/fa/pf_cache] section .text size 7396 match 99.77555 +[libs/RVL_SDK/src/fa/pf_cache] below 100: PFCACHE_DoWriteNumSectorAndFreeIfNeeded 98.21889 +[libs/RVL_SDK/src/fa/pf_cache] baseline: code 6464/7396 data None functions 35 fuzzy 99.7755 +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] objdiff: code 208/976 data 60/60 functions 2/3 fuzzy 98.2992 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] instruction-exact functions: 2/3 +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section .text size 976 match 98.29918 +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section extab size 24 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] section extabindex size 36 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] below 100: Zi8MatchOEMdata 97.83854 +[libs/RVLMiddleware/eZiText/src/clib/zoemdata] baseline: code 208/976 data 60 functions 2 fuzzy 98.2992 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] objdiff: code 10104/10604 data 192/192 functions 23/25 fuzzy 99.8076 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] instruction-exact functions: 23/25 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .data size 168 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .sdata size 16 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] section .text size 10604 match 99.80762 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] below 100: NWC24iIsMsgObjReadable 92.98245 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] below 100: NWC24iMBoxCheck 98.382355 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] baseline: code 10104/10604 data 184 functions 23 fuzzy 99.8076 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.60052 +global fuzzy_match_percent: 99.45531 -> 99.45585 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.50994 -> 98.51038 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` -- 2.49.1 From 249c129e67e3445b85f4d7accb99faab932279dd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:53:24 +0000 Subject: [PATCH 30/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41520a5e..cea8e191 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.60% | 63.16% | 98.51% | +| 99.46% | 88.63% | 63.16% | 98.51% | -units 927/1027 complete, functions 12266/12563 matched. +units 927/1027 complete, functions 12267/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From b02273897cb9eac36abc0b0767ec30d492d05df6 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:54:31 -0500 Subject: [PATCH 31/63] fuzzy(zidawg1, zi8pud2, ziswordw structure; ziswordw data) (data-d11b) (worker 9a700863) (#756) --- libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c | 122 +++--- libs/RVLMiddleware/eZiText/src/clib/zidawg1.c | 120 +++--- .../RVLMiddleware/eZiText/src/clib/ziswordw.c | 36 +- tools/decomp-assist/data-d11.attempts.md | 395 ++++++++++++++++++ 4 files changed, 536 insertions(+), 137 deletions(-) create mode 100644 tools/decomp-assist/data-d11.attempts.md diff --git a/libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c b/libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c index 10a569b3..5c4aec7d 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c @@ -58,8 +58,8 @@ ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option ZI_NEED_WORK) { } ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) { ziWChar folded; - ziU32 entrySize, wordSize, copied; - ziU8* entry; + ziU32 entrySize; + int wordSize, copied; ziU8* word; int index; int fallback = 0; @@ -70,18 +70,18 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* return 0; } if (language == 1) { - length &= 0x7F; length *= 2; } if (continuation == 0) { table = (ziPudHeader*)ZI_WORK->pudTable[ZI_WORK->pudCount - 1]; - index = 0; section = table->sections; - while (index < table->languageCount && section->language != language) { + index = 0; + while (index < table->languageCount) { + if (section->language == language) break; index++; section++; } - if (table->languageCount <= index) { + if (index >= table->languageCount) { Zi8LogError(0x4F6, __zi8_work_data); return 0; } @@ -90,78 +90,82 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* ZI_WORK->unk_0x318 = 0; } for (;;) { - entry = (ziU8*)ZI_WORK->unk_0x310; - if (entry == 0) { + word = (ziU8*)ZI_WORK->unk_0x310; + if (word == 0) { Zi8LogError(0x4B3, __zi8_work_data); return 0; } while ((ziS32)ZI_WORK->unk_0x318 < (ziS32)ZI_WORK->unk_0x314) { - word = entry + 1; - wordSize = *entry; + wordSize = *word++; entrySize = wordSize; if (language == 1) { - if (*word < ZI_WORK->unk_0x17) goto next; + if (ZI_WORK->unk_0x17 > *word) goto next; entrySize = wordSize - 1; - word = entry + 2; + word++; wordSize = ZiGetZHWordSize((ziWChar*)word, entrySize); } else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && wordSize > length && word[length] == 0x20) goto matchText; - if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) goto next; - if (language == 1) { - for (index = 0; index < length; index++) { - if (word[index] != ((ziU8*)pattern)[index]) goto next; - } - goto matched; - } -matchText: - for (index = 0; index < length; index++) { - if (pattern[index] < 0xEFF1 || pattern[index] > 0xF37F) { - folded = Zi8ConvertUC2WC(word[index], language, __zi8_work_data); - if (folded != pattern[index] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[index])) goto next; - } else if (pattern[index] != Zi8ConvertUC2Key(word[index], language, __zi8_work_data)) goto next; - } -matched: - if (fallback) { - ZI_WORK->unk_0x310 = 0; - ZI_WORK->unk_0x318 = 0; - ZI_WORK->unk_0x314 = 0; - if (*pattern < 0xEFF1) *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data); - else *output = *pattern; - return 1; - } - if (language == 1) { - index = 0; - for (copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) { - ((ziU8*)output)[index] = word[index]; - ((ziU8*)output)[index + 1] = word[index + 1]; - index += 2; - } - Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize); + if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) { +next: + ZI_WORK->unk_0x318++; + word += entrySize; } else { - for (copied = 0; copied < wordSize && copied < capacity; copied++) { - output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data); - if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) { - if (complete != 0 || copied >= length) break; - goto next; + if (language == 1) { + for (index = 0; index < length; index++) { + if (word[index] != ((ziU8*)pattern)[index]) goto next; + } + goto matched; + } +matchText: + for (index = 0; index < length; index++) { + if (pattern[index] >= 0xEFF1 && pattern[index] <= 0xF37F) { + if (pattern[index] != Zi8ConvertUC2Key(word[index], language, __zi8_work_data)) goto next; + } else { + folded = Zi8ConvertUC2WC(word[index], language, __zi8_work_data); + if (folded != pattern[index] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[index])) goto next; } } +matched: + if (fallback) { + ZI_WORK->unk_0x310 = 0; + ZI_WORK->unk_0x318 = 0; + ZI_WORK->unk_0x314 = 0; + if (*pattern >= 0xEFF1) *output = *pattern; + else *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data); + return 1; + } + if (language == 1) { + index = 0; + for (copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) { + ((ziU8*)output)[index] = word[index]; + ((ziU8*)output)[index + 1] = word[index + 1]; + index += 2; + } + Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize); + } else { + for (copied = 0; copied < wordSize && copied < capacity; copied++) { + output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data); + if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) { + if (complete != 0 || copied >= length) break; + goto next; + } + } + } + ZI_WORK->unk_0x318++; + ZI_WORK->unk_0x310 = (ziU32)(word + entrySize); + Zi8LogError(100, __zi8_work_data); + return (ziU8)copied; } - ZI_WORK->unk_0x318++; - ZI_WORK->unk_0x310 = (ziU32)(word + entrySize); - Zi8LogError(100, __zi8_work_data); - return (ziU8)copied; -next: - ZI_WORK->unk_0x318++; - entry = word + entrySize; } - if (length != 1 || complete == 0 || continuation != 0) { + if (length == 1 && complete != 0 && continuation == 0) { + complete = 0; + fallback = 1; + ZI_WORK->unk_0x318 = 0; + } else { ZI_WORK->unk_0x310 = 0; ZI_WORK->unk_0x318 = 0; ZI_WORK->unk_0x314 = 0; return 0; } - complete = 0; - fallback = 1; - ZI_WORK->unk_0x318 = 0; } } ziU32 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) { diff --git a/libs/RVLMiddleware/eZiText/src/clib/zidawg1.c b/libs/RVLMiddleware/eZiText/src/clib/zidawg1.c index 9c5bd50f..95d6f0b3 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/zidawg1.c +++ b/libs/RVLMiddleware/eZiText/src/clib/zidawg1.c @@ -42,39 +42,41 @@ ziU32 ZiDAWGGetChild(ziU32 node) { return node; } -ziU8* ZiDAWGGetSibling(ziU8* node) { +ziU8* ZiDAWGGetSibling(ziU8* cursor) { ziU16 header; - ziU8* cursor = node; + ziU8* node; ziS32 depth; ziS32 offset; depth = 0; + node = cursor; offset = 0; - header = nodeHeaderTable[node[0] >> 4]; + header = nodeHeaderTable[cursor[0] >> 4]; if ((header & 4) == 0) { - node = 0; + return 0; } else { if ((header & 8) != 0) { - if ((node[0] & 0xf) == 0xf) { - node += 2; + if ((cursor[0] & 0xf) == 0xf) { + cursor += 2; } else { - node += 1; + cursor += 1; } if ((header & 2) != 0) { - if ((*node & 0x80) == 0) { - node += 2; + if ((*cursor & 0x80) != 0) { + cursor += 3; } else { - node += 3; + cursor += 2; } } - if ((*node & 0x80) != 0) { - node += (*node & 0x7f) * 0x10000 + (ziU32)node[1] * 0x100 + - (ziU32)node[2] + 0x8000; + if ((*cursor & 0x80) != 0) { + node += (*cursor & 0x7f) * 0x10000 + (ziU32)cursor[1] * 0x100 + + (ziU32)cursor[2] + 0x8000; } else { - node += (ziU16)*node * 0x100 + (ziU32)node[1]; + node = cursor[1] + (node + (ziU16)*cursor * 0x100); } + return node; } else { cursor = node; do { @@ -88,14 +90,16 @@ ziU8* ZiDAWGGetSibling(ziU8* node) { } if ((header & 1) != 0) { - if ((header & 2) == 0) { - depth++; - } else if ((*cursor & 0x80) != 0) { - cursor += 3; - offset += 3; + if ((header & 2) != 0) { + if ((*cursor & 0x80) != 0) { + cursor += 3; + offset += 3; + } else { + cursor += 2; + offset += 2; + } } else { - cursor += 2; - offset += 2; + depth++; } } @@ -113,11 +117,10 @@ ziU8* ZiDAWGGetSibling(ziU8* node) { } } while (0 < depth); - node += offset; + return node + offset; } } - return node; } ziU8 ZiDAWGgetEOWattribute(ziU32 node) { @@ -158,57 +161,52 @@ ziU32 ZiDAWGGetGraphInfo(zi8DawgCtx* context, ziU8* entry, ziU16* keys) { ziS32 result; ziU32 end; ziU8 depth; - ziU32 pair; graph = ZiDAWGGetGraph(context); result = 0; - pair = (((ziU16)entry[0] << 8) + entry[1]); - if (pair != 0) { + if ((((ziU16)entry[0] << 8) + entry[1]) != 0 || (((ziU16)entry[2] << 8) + entry[3]) != 0) { return 0; } - pair = (((ziU16)entry[2] << 8) + entry[3]); - if (pair == 0) { - end = (ziU32)(entry + (((ziU16)entry[4] << 8) + entry[5] + 1) * 10); - entry += 10; - depth = 0; - while ((depth < 2) && (*keys != 0)) { - if ((*keys < 0xeff1) || (0xf010 < *keys)) { - break; - } - + end = (ziU32)(entry + (((ziU16)entry[4] << 8) + entry[5] + 1) * 10); + entry += 10; + depth = 0; + while ((depth < 2) && (*keys != 0)) { + if (*keys >= 0xeff1 && *keys <= 0xf010) { + goto checkEntry; while (1) { - if (*keys == (ziS32)(entry[3] + ((ziU16)entry[2] << 8))) { + if (*keys == (ziS32)(((ziU16)entry[2] << 8) + entry[3])) { break; } - entry += (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10; + entry += (((ziU16)entry[0] << 8) + entry[1]) * 10 + 10; +checkEntry: if (((ziU32)entry >= end) || - (*keys == (ziS32)(entry[3] + ((ziU16)entry[2] << 8)))) { + (*keys == (ziS32)(((ziU16)entry[2] << 8) + entry[3]))) { break; } } - - if ((ziU32)entry >= end) { - return 0; - } - - result = graph + (ziU32)entry[4] * 0x10000 + ((ziU16)entry[5] << 8) + - entry[6]; - ((zi8DawgCtx*)context)->unk_0x338 = - graph + (ziU32)entry[7] * 0x10000 + ((ziU16)entry[8] << 8) + - entry[9]; - if (((zi8DawgCtx*)context)->unk_0x338 == graph) { - ((zi8DawgCtx*)context)->unk_0x338 = 0; - } - - if ((entry[1] + ((ziU16)entry[0] << 8)) == 0) { - break; - } - - end = (ziU32)(entry + (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10); - entry += 10; - depth++; - keys++; + } else { + return 0; } + + if ((ziU32)entry >= end) { + return 0; + } + + result = graph + (ziU32)entry[4] * 0x10000 + (((ziU16)entry[5] << 8) + entry[6]); + ((zi8DawgCtx*)context)->unk_0x338 = + graph + (ziU32)entry[7] * 0x10000 + (((ziU16)entry[8] << 8) + entry[9]); + if (((zi8DawgCtx*)context)->unk_0x338 == graph) { + ((zi8DawgCtx*)context)->unk_0x338 = 0; + } + + if ((((ziU16)entry[0] << 8) + entry[1]) == 0) { + break; + } + + end = (ziU32)(entry + (((ziU16)entry[0] << 8) + entry[1]) * 10 + 10); + entry += 10; + depth++; + keys++; } return result; diff --git a/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c b/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c index daebeb2e..18980f56 100644 --- a/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c +++ b/libs/RVLMiddleware/eZiText/src/clib/ziswordw.c @@ -20,13 +20,12 @@ typedef struct ziChineseEntry { ziU8 offsetLow[2]; } ziChineseEntry; -ziU8 Zi8GetCandidatesOrCount(ziGetParam*, ziSearchState* ZI_NEED_WORK); +ziU32 Zi8GetCandidatesOrCount(ziGetParam*, ziSearchState* ZI_NEED_WORK); ziU8 Zi8GetFormatVersion(ziU8 ZI_NEED_WORK); ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK); ziU16 Zi8Uni2Ord(ziWChar ZI_NEED_WORK); ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { - int count; int offset; ziU8 group; ziU8 remaining; @@ -35,9 +34,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { ziSearchState search; ziGetParam request; ziWChar ordinals[65]; - int length; + int count; int unmatched; ziChineseEntry* entry; + ziChineseEntry* table; ziU8* data; ziU8 formats[8] = {1, 5, 0, 0, 0, 0, 0, 0}; ziU32 savedFormats = ZI_WORK->unk_0x1410; @@ -54,10 +54,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { return 0; } if (language != 1) { - for (length = 0; word[length] != 0; length++) { - if (word[length] >= 0xEFF1 || length == 64) return 0; + for (count = 0; word[count] != 0; count++) { + if (word[count] >= 0xEFF1 || count == 64) return 0; } - ((ziU8*)&search.length)[0] = length; + ((ziU8*)&search.length)[0] = count; ((ziU8*)&search.flags)[2] = 1; ((ziU16*)&search.capacity)[0] = 64; search.word = word; @@ -67,7 +67,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { request.context = 1; request.getOptions = 0x81; request.elements = word; - request.elementCount = length; + request.elementCount = count; request.currentWord = 0; request.wordCharCount = 0; request.candidates = ordinals; @@ -92,20 +92,22 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) { if (count != 0) return 1; } if (language == 1) { - length = 0; + count = 0; do { - ordinals[length] = Zi8Uni2Ord(word[length], __zi8_work_data); - if (ordinals[length] == 0xFFFF) return 0; - length++; - if (length == 64) return 0; - } while (word[length] != 0); + ordinals[count] = Zi8Uni2Ord(word[count], __zi8_work_data); + if (ordinals[count] == 0xFFFF) return 0; + count++; + if (count == 64) return 0; + } while (word[count] != 0); { - if (length == 1) return 1; - count = --length; + if (count == 1) return 1; + count--; ordinals[count] |= 0x8000; ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, __zi8_work_data) & 2; - entry = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data) + ordinals[0]; - data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data) + ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1])); + table = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data); + entry = table + ordinals[0]; + data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data); + data += ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1])); if (ZI_WORK->cangjieEnabled != 0) { switch (*data & 7) { case 2: diff --git a/tools/decomp-assist/data-d11.attempts.md b/tools/decomp-assist/data-d11.attempts.md new file mode 100644 index 00000000..f777d79f --- /dev/null +++ b/tools/decomp-assist/data-d11.attempts.md @@ -0,0 +1,395 @@ +# Data d11 attempts + +Baseline HEAD 32f358cd, matching origin/main at start. +All four pools contain no strings and are identical. + +## zidawg1 +- Rename @etb_81330728 -> @34: extabindex relocation at entry for ZiDAWGGetChild identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_8133144C -> @35: extabindex relocation at entry for ZiDAWGGetChild identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_81330730 -> @85: extabindex relocation at entry for ZiDAWGGetSibling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_81331458 -> @86: extabindex relocation at entry for ZiDAWGGetSibling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_81330738 -> @108: extabindex relocation at entry for ZiDAWGgetCHARattribute identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_81331464 -> @109: extabindex relocation at entry for ZiDAWGgetCHARattribute identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_81330740 -> @159: extabindex relocation at entry for ZiDAWGGetGraphInfo identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_81331470 -> @160: extabindex relocation at entry for ZiDAWGGetGraphInfo identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- extab: target/source lengths 32/32, byte differences [(24, 56, 64)]. +- extabindex: target/source lengths 48/48, byte differences [(19, 12, 4), (43, 24, 8)]. + +## zi8uwd +- Rename @etb_81330700 -> @69: extabindex relocation at entry for Zi8_81480224 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_81331410 -> @70: extabindex relocation at entry for Zi8_81480224 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_81330708 -> @80: extabindex relocation at entry for Zi8_814803F4 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_8133141C -> @81: extabindex relocation at entry for Zi8_814803F4 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_81330710 -> @88: extabindex relocation at entry for Zi8_8148047C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_81331428 -> @89: extabindex relocation at entry for Zi8_8148047C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_81330718 -> @248: extabindex relocation at entry for Zi8MatchUWDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_81331434 -> @249: extabindex relocation at entry for Zi8MatchUWDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- extab: target/source lengths 32/32, byte differences [(24, 104, 88)]. +- extabindex: target/source lengths 48/48, byte differences [(42, 7, 8), (43, 192, 48)]. + +## zi8pud2 +- Rename @etb_813306C0 -> @52: extabindex relocation at entry for ZiGetZHWordSize identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813313B0 -> @53: extabindex relocation at entry for ZiGetZHWordSize identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_813306C8 -> @76: extabindex relocation at entry for Zi8CopyZHSpelling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813313BC -> @77: extabindex relocation at entry for Zi8CopyZHSpelling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_813306D0 -> @86: extabindex relocation at entry for ZADP_Zi8SetPDremoveOpt identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813313C8 -> @87: extabindex relocation at entry for ZADP_Zi8SetPDremoveOpt identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_813306D8 -> @215: extabindex relocation at entry for Zi8MatchPUDdata_ZHS identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813313D4 -> @216: extabindex relocation at entry for Zi8MatchPUDdata_ZHS identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_813306E0 -> @241: extabindex relocation at entry for Zi8MatchPUDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813313E0 -> @242: extabindex relocation at entry for Zi8MatchPUDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_813306E8 -> @255: extabindex relocation at entry for Zi8_8147FD7C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813313EC -> @256: extabindex relocation at entry for Zi8_8147FD7C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- extab: target/source lengths 48/48, byte differences []. +- extabindex: target/source lengths 72/72, byte differences [(43, 136, 120)]. + +## ziswordw +- Rename @etb_81330760 -> @127: extabindex relocation at entry for Zi8IsWordW identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813314A0 -> @128: extabindex relocation at entry for Zi8IsWordW identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @etb_81330768 -> @174: extabindex relocation at entry for Zi8ConvertUC2UserKey identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- Rename @eti_813314AC -> @175: extabindex relocation at entry for Zi8ConvertUC2UserKey identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged. +- extab: target/source lengths 16/16, byte differences [(0, 48, 40)]. +- extabindex: target/source lengths 24/24, byte differences [(7, 128, 136)]. +- .sdata2: target/source lengths 8/8, byte differences []. + +- ZiDAWGGetChild attempt 1, widen decoded header to match explicit narrowing: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (272, 260). Reverted. +- ZiDAWGGetChild attempt 2, combine encoded displacement before assigning it: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (272, 272). Reverted. +- ZiDAWGGetChild attempt 3, combine short displacement in one assignment: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (272, 272). Reverted. +- ZiDAWGGetSibling attempt 1, decode header in full word temporary: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (524, 488). Reverted. +- ZiDAWGGetSibling attempt 2, invert long-offset branch to target direction: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (524, 516). Reverted. +- ZiDAWGGetSibling attempt 3, retain 16-bit mask in long sibling displacement: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (524, 520). Reverted. +- ZiDAWGgetCHARattribute attempt 1, decode low attribute bytes as one value: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (240, 240). Reverted. +- ZiDAWGgetCHARattribute attempt 2, widen key during decode: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (240, 212). Reverted. +- ZiDAWGgetCHARattribute attempt 3, declare output before decoded key: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (240, 240). Reverted. +- ZiDAWGGetGraphInfo attempt 1, keep two header predicates together: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (536, 520). Reverted. +- ZiDAWGGetGraphInfo attempt 2, decode entry header without persistent pair local: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source function sizes (536, 520). Selected. +- ZiDAWGGetGraphInfo attempt 3, widen depth used as loop counter: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (536, 516). Reverted. +- Zi8_81480224 attempt 1, use separate insertion index instead of recycling length: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted. +- Zi8_81480224 attempt 2, compare candidates through incrementing text cursors: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted. +- Zi8_81480224 attempt 3, declare candidate length after list pointers: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted. +- Zi8MatchUWDdata attempt 1, use 32-bit return temporary for converted entry language: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2100). Reverted. +- Zi8MatchUWDdata attempt 2, keep returned entry length in integer temporary: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2096). Reverted. +- Zi8MatchUWDdata attempt 3, use dictionary base fields directly for initial cursor: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2096). Reverted. +- ZADP_Zi8SetPDremoveOpt attempt 1, return previous option as a full word: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (84, 84). Reverted. +- ZADP_Zi8SetPDremoveOpt attempt 2, retain work pointer explicitly before previous option: build failed, reverted. lib\zi8pud2.c # ------------------------------------------------------ # 54: ziWorkData* work = ZI_WORK; # Error: ^^^^^^^^^^ # (10140) undefined identifier 'ziWorkData' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- ZADP_Zi8SetPDremoveOpt attempt 3, scope previous option initialization at declaration: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (84, 84). Reverted. +- Zi8MatchPUDdata_ZHS attempt 1, replace compound section-loop condition with explicit language break: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1400). Reverted. +- Zi8MatchPUDdata_ZHS attempt 2, let byte overflow implement Chinese doubled-length mask: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1392). Reverted. +- Zi8MatchPUDdata_ZHS attempt 3, keep Chinese entry length in signed integer: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1400). Reverted. +- Zi8MatchPUDdata attempt 1, use byte result matching wrapper return test: instruction-exact 4, identical non-text bytes 48, raw byte matches 118, target/source function sizes (200, 196). Reverted. +- Zi8MatchPUDdata attempt 2, initialize result at call inside explicit loop block: instruction-exact 4, identical non-text bytes 0, raw byte matches 116, target/source function sizes (200, 228). Reverted. +- Zi8MatchPUDdata attempt 3, scope loop flag through explicit zero comparison: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (200, 200). Reverted. +- Zi8IsWordW attempt 1, initialize search before saving formats and count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted. +- Zi8IsWordW attempt 2, invert format count branch to target order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted. +- Zi8IsWordW attempt 3, keep candidate count as unsigned word: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted. + +Unwind-name experiment reverted in full: source-generated @ numbers changed extabindex fuzzy pairing but no matched_data count increased; original extraction names are retained. No symbol extents or addresses changed. +- Zi8MatchPUDdata_ZHS followup, preserve target 16-bit narrowing for section count and offset bytes: instruction-exact 4, identical non-text bytes 120, raw byte matches 120, target/source sizes (1416, 1416). Selected. +- ZiDAWGGetSibling followup, combine target branch direction and 16-bit sibling displacement narrowing: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (524, 520). Reverted. +- ZiDAWGGetGraphInfo followup, narrow entry size and key words as shown in target instruction sequence: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (536, 520). Reverted. +- ZADP_Zi8SetPDremoveOpt followup, explicit typed work pointer using actual SDK work structure: instruction-exact 4, identical non-text bytes 0, raw byte matches 118, target/source sizes (84, 96). Reverted. +- Zi8IsWordW followup: correct local Zi8GetCandidatesOrCount return prototype from ziU8 to ziU32. Definition and both declarations in zi8getc2.c return ziU32; target caller moves r3 into r29 without byte narrowing. This changes only ziswordw output. +- Zi8IsWordW attempt 4, initialize Chinese decoding locals in target order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1704). Reverted. +- Zi8IsWordW attempt 5, zero search aggregate after saving original formats: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1648). Reverted. +- Zi8IsWordW attempt 6, match request assignments to target word pointer before capacity: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted. +- Zi8IsWordW attempt 7, use typed byte-pair fields for Chinese decoded offset: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1676). Reverted. +- Zi8IsWordW attempt 8, combined target initialization and request order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1684). Reverted. +- ZiDAWGGetGraphInfo further followup, return zero on unsupported key as target direct-return block proves: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (536, 528). Reverted. +- ZiDAWGGetGraphInfo further followup, match top-tested child-search loop with explicit extent exit: instruction-exact 2, identical non-text bytes 32, raw byte matches 77, target/source sizes (536, 492). Reverted. +- ZiDAWGGetSibling further followup, explicit target halfword narrowing at header-table load: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (524, 524). Reverted. +- Zi8MatchUWDdata further followup, advance typed result text cursor once before conversion loop: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2112). Reverted. +- ZiDAWGGetSibling halfword-load followup retained for combined validation: source size now 524 equals target; target lhzx-to-r0 then clrlwi-to-saved-register proves explicit halfword narrowing, instruction-exact counts stay 2/6. One extabindex record now has the exact length. +- ZiDAWGGetGraphInfo combined followup, preserve invalid-key exit and decode graph offset in byte order: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (536, 528). Reverted. +- ZiDAWGGetGraphInfo combined followup, group graph child-count header rejects in one condition: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (536, 528). Reverted. +- ZiDAWGGetGraphInfo combined followup, split key range rejects matching direct target branches: instruction-exact 2, identical non-text bytes 80, raw byte matches 80, target/source sizes (536, 536). Selected. +- Zi8MatchUWDdata remaining-data followup, reuse language parameter for early and final popped entries as target does: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2092). Reverted. +- Zi8MatchUWDdata remaining-data followup, scope continuation result independently: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source sizes (1984, 2108). Reverted. +- Zi8MatchUWDdata remaining-data followup, combine independent continuation result and reused language: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source sizes (1984, 2104). Reverted. +- Zi8IsWordW remaining-data followup, reorder genuine offset local after ordinal length: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted. +- Count-reuse experiment initially failed to build because the scripted identifier change also changed search.length; restored, corrected the transformation to exclude member names, and retried. +- Zi8IsWordW remaining-data followup, reuse count for length and candidate result matching target r29 lifetime: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted. +- Zi8IsWordW remaining-data followup, fuse terminal Chinese length decrement into single-length test: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted. +- Zi8IsWordW remaining-data followup, reorder genuine offset local after ordinal length: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted. +- Zi8IsWordW final followup, split table base lookup and encoded entry offset: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1680). Reverted. +- Zi8IsWordW final followup, reuse count and split table base lookup: instruction-exact 1, identical non-text bytes 32, raw byte matches 47, target/source sizes (1664, 1664). Selected. +- Zi8IsWordW final followup, declare decoded offset as unsigned word with reused count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted. +- Zi8IsWordW final followup, keep count conversion result and selector in distinct scopes: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1680). Reverted. +- Zi8IsWordW final followup, initialize groups and entry words with reused count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1676). Reverted. +- Zi8IsWordW selector followup, explicit decoded format selector before switch: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted. +- Zi8IsWordW selector followup, initialize decoded format displacement to target default: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted. +- Zi8IsWordW selector followup, decode selector into unsigned shift variable: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted. +- Zi8IsWordW selector followup, factor selector size defaults before switch: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1660). Reverted. +- Zi8MatchUWDdata loop followup, keep both prefix scan induction variables in the loop update: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2100). Reverted. +- Zi8MatchUWDdata loop followup, initialize ring scan cursor in its own loop: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2096). Reverted. +- Zi8MatchUWDdata loop followup, combine prefix and cursor scan loop induction variables: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2100). Reverted. +- Zi8MatchUWDdata loop followup, use preincrement prefix counter after character test: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2096). Reverted. + +## Coverage audit and remaining data classification +- ZADP_Zi8SetPDremoveOpt: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 98.57143%, instruction-exact count retained. +- Zi8MatchPUDdata_ZHS: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 72.59322%, instruction-exact count retained. +- Zi8MatchPUDdata: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 99.1%, instruction-exact count retained. +- Zi8_81480224: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 99.22414%, instruction-exact count retained. +- Zi8MatchUWDdata: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 70.245964%, instruction-exact count retained. +- ZiDAWGGetChild: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 93.60294%, instruction-exact count retained. +- ZiDAWGGetSibling: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 86.854965%, instruction-exact count retained. +- ZiDAWGgetCHARattribute: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 95.5%, instruction-exact count retained. +- ZiDAWGGetGraphInfo: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 81.83582%, instruction-exact count retained. +- Zi8IsWordW: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 83.33654%, instruction-exact count retained. +- zidawg1: extab and extabindex bytes now identical, including all four owned exception records. No metadata renames or extent changes retained. +- zi8pud2: extab and extabindex bytes now identical; explicit 16-bit section-count/offset decoding follows four target clrlwi instructions. No metadata changes. +- zi8uwd: no literal/global data. Residual extab record for Zi8MatchUWDdata saves r19-r31 in target, r21-r31 in source; extabindex length is target 1984 versus source 2096. These are real code-generation differences, not name/extent errors. Other three extab records and their lengths match. +- ziswordw: .sdata2 and extabindex bytes identical; residual extab for Zi8IsWordW saves r26-r31 in target, r27-r31 in source. Zi8ConvertUC2UserKey unwind bytes and instruction-exact function remain unchanged. The residual is code register allocation, not a data initializer or symbol-name mismatch. +- No symbol-size adjustments, forced sections, alignment objects, volatile casts, or assembly added. All retained code is in owned units. + +## Final per-symbol data audit +- zidawg1 + - @etb_81330728, extab+0x0, size 8, ZiDAWGGetChild: identical bytes; relocations pair by owning function and unwind entry. + - @etb_81330730, extab+0x8, size 8, ZiDAWGGetSibling: identical bytes; relocations pair by owning function and unwind entry. + - @etb_81330738, extab+0x10, size 8, ZiDAWGgetCHARattribute: identical bytes; relocations pair by owning function and unwind entry. + - @etb_81330740, extab+0x18, size 8, ZiDAWGGetGraphInfo: identical bytes; relocations pair by owning function and unwind entry. + - @eti_8133144C, extabindex+0x0, size 12, ZiDAWGGetChild: identical bytes; relocations pair by owning function and unwind entry. + - @eti_81331458, extabindex+0xc, size 12, ZiDAWGGetSibling: identical bytes; relocations pair by owning function and unwind entry. + - @eti_81331464, extabindex+0x18, size 12, ZiDAWGgetCHARattribute: identical bytes; relocations pair by owning function and unwind entry. + - @eti_81331470, extabindex+0x24, size 12, ZiDAWGGetGraphInfo: identical bytes; relocations pair by owning function and unwind entry. +- zi8uwd + - @etb_81330700, extab+0x0, size 8, Zi8_81480224: identical bytes; relocations pair by owning function and unwind entry. + - @etb_81330708, extab+0x8, size 8, Zi8_814803F4: identical bytes; relocations pair by owning function and unwind entry. + - @etb_81330710, extab+0x10, size 8, Zi8_8148047C: identical bytes; relocations pair by owning function and unwind entry. + - @etb_81330718, extab+0x18, size 8, Zi8MatchUWDdata: real code-derived metadata differences [('0x0', '0x68', '0x58')]. + - @eti_81331410, extabindex+0x0, size 12, Zi8_81480224: identical bytes; relocations pair by owning function and unwind entry. + - @eti_8133141C, extabindex+0xc, size 12, Zi8_814803F4: identical bytes; relocations pair by owning function and unwind entry. + - @eti_81331428, extabindex+0x18, size 12, Zi8_8148047C: identical bytes; relocations pair by owning function and unwind entry. + - @eti_81331434, extabindex+0x24, size 12, Zi8MatchUWDdata: real code-derived metadata differences [('0x6', '0x7', '0x8'), ('0x7', '0xc0', '0x30')]. +- zi8pud2 + - @etb_813306C0, extab+0x0, size 8, ZiGetZHWordSize: identical bytes; relocations pair by owning function and unwind entry. + - @etb_813306C8, extab+0x8, size 8, Zi8CopyZHSpelling: identical bytes; relocations pair by owning function and unwind entry. + - @etb_813306D0, extab+0x10, size 8, ZADP_Zi8SetPDremoveOpt: identical bytes; relocations pair by owning function and unwind entry. + - @etb_813306D8, extab+0x18, size 8, Zi8MatchPUDdata_ZHS: identical bytes; relocations pair by owning function and unwind entry. + - @etb_813306E0, extab+0x20, size 8, Zi8MatchPUDdata: identical bytes; relocations pair by owning function and unwind entry. + - @etb_813306E8, extab+0x28, size 8, Zi8_8147FD7C: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813313B0, extabindex+0x0, size 12, ZiGetZHWordSize: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813313BC, extabindex+0xc, size 12, Zi8CopyZHSpelling: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813313C8, extabindex+0x18, size 12, ZADP_Zi8SetPDremoveOpt: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813313D4, extabindex+0x24, size 12, Zi8MatchPUDdata_ZHS: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813313E0, extabindex+0x30, size 12, Zi8MatchPUDdata: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813313EC, extabindex+0x3c, size 12, Zi8_8147FD7C: identical bytes; relocations pair by owning function and unwind entry. +- ziswordw + - @etb_81330760, extab+0x0, size 8, Zi8IsWordW: real code-derived metadata differences [('0x0', '0x30', '0x28')]. + - @etb_81330768, extab+0x8, size 8, Zi8ConvertUC2UserKey: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813314A0, extabindex+0x0, size 12, Zi8IsWordW: identical bytes; relocations pair by owning function and unwind entry. + - @eti_813314AC, extabindex+0xc, size 12, Zi8ConvertUC2UserKey: identical bytes; relocations pair by owning function and unwind entry. + - lbl_81695018, .sdata2+0x0, size 1, : identical bytes; relocations pair by owning function and unwind entry. + - lbl_81695019, .sdata2+0x1, size 1, : identical bytes; relocations pair by owning function and unwind entry. + - lbl_8169501A, .sdata2+0x2, size 1, : identical bytes; relocations pair by owning function and unwind entry. + - lbl_8169501B, .sdata2+0x3, size 1, : identical bytes; relocations pair by owning function and unwind entry. + - lbl_8169501C, .sdata2+0x4, size 1, : identical bytes; relocations pair by owning function and unwind entry. + - lbl_8169501D, .sdata2+0x5, size 1, : identical bytes; relocations pair by owning function and unwind entry. + - lbl_8169501E, .sdata2+0x6, size 1, : identical bytes; relocations pair by owning function and unwind entry. + - lbl_8169501F, .sdata2+0x7, size 1, : identical bytes; relocations pair by owning function and unwind entry. + +## Final clean full gate +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 92/1664 data 80/80 functions 2/6 fuzzy 87.7019 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 2/6 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 87.70192 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetChild 93.60294 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetSibling 86.51145 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGgetCHARattribute 95.5 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetGraphInfo 80.268654 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 92/1664 data None functions 2 fuzzy 88.3149 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 208/2656 data None/80 functions 2/4 fuzzy 77.6386 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 2/4 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section .text size 2656 match 77.63856 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extab size 32 match 96.875 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extabindex size 48 match 95.83333 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8_81480224 99.22414 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8MatchUWDdata 70.245964 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] baseline: code 208/2656 data None functions 2 fuzzy 77.6386 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 436/2136 data 120/120 functions 4/7 fuzzy 81.4288 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 4/7 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 81.42884 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: ZADP_Zi8SetPDremoveOpt 98.57143 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata_ZHS 72.19774 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata 99.1 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 436/2136 data 48 functions 4 fuzzy 81.6910 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 364/2028 data 32/48 functions 1/2 fuzzy 88.2229 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 1/2 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 88.22288 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 93.75 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] below 100: Zi8IsWordW 85.64664 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 364/2028 data 8 functions 1 fuzzy 86.3274 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45609 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.73032 -> 97.73993 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Data lane incomplete for zi8uwd and ziswordw. All remaining non-exact code functions have at least three logged source attempts. No instruction-exact function count dropped. + +## Orchestrator rejection and resumed worker +Restored zidawg1.c and zi8pud2.c from current origin/main. Previous unwind-only changes are rejected: they lower function fuzzy scores, and redundant load masks are not accepted. Kept ziswordw.c. Future candidates must preserve every owned function fuzzy score and improve real target control flow/register use. + +Live origin baseline 2f0f5a44c72cb84e23732e09fc8e75487c788f76 built in this worker tree, then owned source restored and rebuilt. Restored full gate passed with correct DOL hash. Function-by-function comparison: +``` +zi8pud2 ZiIsPhoneticChar: 100.0 -> 100.0 +zi8pud2 ZiGetZHWordSize: 100.0 -> 100.0 +zi8pud2 Zi8CopyZHSpelling: 100.0 -> 100.0 +zi8pud2 ZADP_Zi8SetPDremoveOpt: 98.57143 -> 98.57143 +zi8pud2 Zi8MatchPUDdata_ZHS: 72.59322 -> 72.59322 +zi8pud2 Zi8MatchPUDdata: 99.1 -> 99.1 +zi8pud2 Zi8_8147FD7C: 100.0 -> 100.0 +zi8uwd Zi8_81480224: 99.22414 -> 99.22414 +zi8uwd Zi8_814803F4: 100.0 -> 100.0 +zi8uwd Zi8_8148047C: 100.0 -> 100.0 +zi8uwd Zi8MatchUWDdata: 70.245964 -> 70.245964 +zidawg1 ZiDAWGGetChild: 93.60294 -> 93.60294 +zidawg1 ZiDAWGGetSibling: 86.854965 -> 86.854965 +zidawg1 ZiDAWGgetEOWattribute: 100.0 -> 100.0 +zidawg1 ZiDAWGgetCHARattribute: 95.5 -> 95.5 +zidawg1 ZiDAWGGetGraph: 100.0 -> 100.0 +zidawg1 ZiDAWGGetGraphInfo: 81.83582 -> 81.83582 +ziswordw Zi8IsWordW: 83.33654 -> 85.64664 +ziswordw Zi8ConvertUC2UserKey: 100.0 -> 100.0 +FUZZY REGRESSIONS: 0 +``` +- Resume ZiDAWGGetSibling, separate original-node base from encoded-offset cursor, target 81480F6C/81480F88 add original r28: objdiff 86.854965 -> 88.59542; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetSibling, decode header from incoming cursor before changing it: objdiff 88.59542 -> 88.63359; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetSibling, emit direct no-sibling return proven by 81480ED4/81480ED8: objdiff 88.63359 -> 88.938934; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetSibling, invert child-offset branch to target long-first control flow: objdiff 88.938934 -> 88.99236; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetSibling, return decoded sibling directly at target 81480F90/81480F94: objdiff 88.99236 -> 89.51145; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetSibling, group original-node plus low displacement byte before encoded high displacement: objdiff 89.51145 -> 87.92367; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; reverted. +- Resume ZiDAWGGetSibling, decode short displacement through its two byte weights: objdiff 89.51145 -> 91.16031; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetGraphInfo, avoid persistent decoded header temporary, target first comparisons use r0: objdiff 81.83582 -> 81.87313; data 0 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetGraphInfo, group empty-root header checks matching branch to 81481240: objdiff 81.87313 -> 85.00746; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetGraphInfo, validate key range with shared zero-return else at 81481308: objdiff 85.00746 -> 87.32089; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetGraphInfo, top-test child search with target extent check and common key comparison: objdiff 87.32089 -> 85.08209; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 504); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted. +- Resume ZiDAWGGetGraphInfo, decode big-endian header high byte before low byte: objdiff 87.32089 -> 95.19403; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetGraphInfo, group 24-bit offsets as high part plus trailing two-byte value: objdiff 95.19403 -> 98.43284; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetGraphInfo, tie depth and key induction variables to bounded traversal loop: objdiff 98.43284 -> 97.68657; data 32 -> 48; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; reverted. +- Resume ZiDAWGGetGraphInfo, treat returned graph address as unsigned value: objdiff 98.43284 -> 98.43284; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted. +- Resume ZiDAWGGetGraphInfo, check entry bounds before the first dereference, target 81481298 branches to 814812DC: objdiff 98.43284 -> 99.17911; data 32 -> 80; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetGraphInfo, use actual graph/end/result byte pointers consistent with caller zi8dawg.c: objdiff 99.17911 -> 99.17911; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted. +- Removed redundant outer graph-search scope after root guard. Object metrics unchanged: sibling 91.16031%, graph info 99.17911%, extab/extabindex 100%; exact 2/6 retained. +- Target proof for graph-search invalid key: branches at 81481288 and 81481294 both reach li r3,0 at 81481308 and return via 814813E4; the former break returning prior result was wrong. New shared else models that control flow. +- Current graph info ctxdiff 134/134 instructions, 20 differences remain, principally callee register names plus endpoint arithmetic scheduling. Prologue saves r25-r31, exactly the target range. +- Resume Zi8MatchPUDdata_ZHS, let doubled byte length wrap naturally without redundant pre-mask: objdiff 72.59322 -> 73.46045; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, advance one payload cursor through length/priority/text as target r29: objdiff 73.46045 -> 77.74011; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, search section language with explicit match break: objdiff 77.74011 -> 80.53672; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, test key-token range first matching target 8147F884 branch order: objdiff 80.53672 -> 86.245766; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, treat decoded word and copy counts as signed integers, matching target cmpw: objdiff 86.245766 -> 86.62429; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, use a typed byte view of Chinese search keys: objdiff 86.62429 -> 82.24859; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000701800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, copy UTF16 bytes through typed output view, advancing byte index twice: objdiff 86.62429 -> 83.81638; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1428); source unwind 180800000000000010080000000000001008000000000000681800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, place common next-entry block at target initial rejection branch: objdiff 86.62429 -> 89.27683; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1376); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, store existing key token before converting plain character fallback: objdiff 89.27683 -> 93.54237; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1376); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, place permitted single-key fallback retry before exhausted-table return: objdiff 93.54237 -> 94.68644; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, bind generic work argument to its real work-data structure: objdiff 94.68644 -> 86.056496; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1504); source unwind 180800000000000010080000000000001008000000000000580800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, use payload byte view for Chinese key comparison after retry restructure: objdiff 94.68644 -> 91.09887; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000701800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, advance Chinese output byte index after each copied byte: objdiff 94.68644 -> 89.9887; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1428); source unwind 180800000000000010080000000000001008000000000000681800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, decrement both decoded word count and payload size before stripping priority: objdiff 94.68644 -> 94.5226; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1380); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, compare consumed character threshold in target operand order: objdiff 94.68644 -> 94.73447; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, check section index against its declared language count: objdiff 94.73447 -> 94.77683; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, initialize section cursor before loop index as target 8147F75C through 8147F764: objdiff 94.77683 -> 95.341805; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED. +- Resume Zi8MatchPUDdata_ZHS, test requested length against decoded word size in target cmpw operand order: objdiff 95.341805 -> 95.29944; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, decrement remaining payload size before consuming Chinese priority byte: objdiff 95.341805 -> 91.0226; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1408); source unwind 180800000000000010080000000000001008000000000000600800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Resume Zi8MatchPUDdata_ZHS, advance Chinese output index after each byte without new alias: objdiff 95.341805 -> 95.31921; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1368); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted. +- Reindented matched/rejected PUD paths. Object metrics unchanged, ZHS 95.341805%, data 48/120 and instruction-exact 4/7. No masks were added. +- PUD target prologue saves r19-r31; current source uses that same range. Remaining code gaps include source size 1372 versus target 1416 and decoded count/offset load treatment; unwind-index mismatch is left intact rather than forced. +- Resume ZiDAWGGetSibling, visit encoded child displacement before implicit-child depth increment: objdiff 91.16031 -> 94.21374; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. +- Resume ZiDAWGGetSibling, initialize each traversal state where its lifetime starts in target order: objdiff 94.21374 -> 94.21374; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted. +- Resume ZiDAWGGetSibling, return scanned sibling directly as original node plus traversal size: objdiff 94.21374 -> 95.24428; data 80 -> 32; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED. + +Latest origin/main cbf6363d0f5e07b6dceadc43693694c14d58a229 fetched before final validation. Owned unit sources and eZiText headers are unchanged from measured origin baseline 2f0f5a44c72cb84e23732e09fc8e75487c788f76. +- Latest sibling direct scan return improves real code 94.21374 -> 95.24428% but source length is 520 versus target 524; extabindex mismatch remains. This source improvement is kept rather than adding an instruction to force the unwind record. +- Removed unreachable final sibling return after all paths already return. Complete object SHA256 equality True. + +## Resumed final clean gate and live-origin function audit +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 92/1664 data 32/80 functions 2/6 fuzzy 96.5433 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 2/6 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 96.54327 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 97.91667 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetChild 93.60294 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetSibling 95.24428 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGgetCHARattribute 95.5 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetGraphInfo 99.17911 +[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 92/1664 data None functions 2 fuzzy 88.3149 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 208/2656 data None/80 functions 2/4 fuzzy 77.6386 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 2/4 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section .text size 2656 match 77.63856 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extab size 32 match 96.875 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extabindex size 48 match 95.83333 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8_81480224 99.22414 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8MatchUWDdata 70.245964 +[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] baseline: code 208/2656 data None functions 2 fuzzy 77.6386 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 436/2136 data 48/120 functions 4/7 fuzzy 96.7715 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 4/7 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 96.77154 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 98.61111 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: ZADP_Zi8SetPDremoveOpt 98.57143 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata_ZHS 95.341805 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata 99.1 +[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 436/2136 data 48 functions 4 fuzzy 81.6910 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 364/2028 data 32/48 functions 1/2 fuzzy 88.2229 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 1/2 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 88.22288 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 93.75 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] below 100: Zi8IsWordW 85.64664 +[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 364/2028 data 8 functions 1 fuzzy 86.3274 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.47194 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.73032 -> 97.73338 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` +``` +zi8pud2 ZiIsPhoneticChar: 100.0 -> 100.0 +zi8pud2 ZiGetZHWordSize: 100.0 -> 100.0 +zi8pud2 Zi8CopyZHSpelling: 100.0 -> 100.0 +zi8pud2 ZADP_Zi8SetPDremoveOpt: 98.57143 -> 98.57143 +zi8pud2 Zi8MatchPUDdata_ZHS: 72.59322 -> 95.341805 +zi8pud2 Zi8MatchPUDdata: 99.1 -> 99.1 +zi8pud2 Zi8_8147FD7C: 100.0 -> 100.0 +zi8uwd Zi8_81480224: 99.22414 -> 99.22414 +zi8uwd Zi8_814803F4: 100.0 -> 100.0 +zi8uwd Zi8_8148047C: 100.0 -> 100.0 +zi8uwd Zi8MatchUWDdata: 70.245964 -> 70.245964 +zidawg1 ZiDAWGGetChild: 93.60294 -> 93.60294 +zidawg1 ZiDAWGGetSibling: 86.854965 -> 95.24428 +zidawg1 ZiDAWGgetEOWattribute: 100.0 -> 100.0 +zidawg1 ZiDAWGgetCHARattribute: 95.5 -> 95.5 +zidawg1 ZiDAWGGetGraph: 100.0 -> 100.0 +zidawg1 ZiDAWGGetGraphInfo: 81.83582 -> 99.17911 +ziswordw Zi8IsWordW: 83.33654 -> 85.64664 +ziswordw Zi8ConvertUC2UserKey: 100.0 -> 100.0 +FUZZY REGRESSIONS: 0 +``` +No redundant load masks or symbol extent changes retained. All four owned units preserve instruction-exact counts. Data remains incomplete; outstanding unwind-index lengths and saved-register mismatches are left for real code matching. -- 2.49.1 From 91fd1dcb69350fb6c41742aea3b06287daee3d53 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:55:24 +0000 Subject: [PATCH 32/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cea8e191..cd51e9bb 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.46% | 88.63% | 63.16% | 98.51% | +| 99.47% | 88.63% | 63.16% | 98.51% | units 927/1027 complete, functions 12267/12563 matched. -- 2.49.1 From a3b27c9ed0395c408f5c94ff657914456cc7d3f0 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:56:45 -0500 Subject: [PATCH 33/63] match(puh_msc_blk 10/11; pf_fat12, iqdec fuzzy up) (fz3) (worker 6651d7cf) (#757) --- .../TMC_JPEG/src/b65/iqdec_b65_frv32.c | 10 +- libs/RVL_SDK/src/fa/msc/puh_msc_blk.c | 29 +- libs/RVL_SDK/src/fa/pf_fat12.c | 4 +- tools/decomp-assist/fz3.attempts.md | 413 ++++++++++++++++++ 4 files changed, 444 insertions(+), 12 deletions(-) create mode 100644 tools/decomp-assist/fz3.attempts.md diff --git a/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c b/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c index b852b3f9..b7594c9f 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c @@ -106,16 +106,16 @@ static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, co s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) { TMCHuffmanEntry dcEntry; - TMCHuffmanEntry acEntry; - const TMCHuffmanEntry* ac_fast; u8* huff_sym; + const TMCHuffmanEntry* ac_fast; + s32 idx; u32* huff_tbl; s32 bit_pos; u32 bit_data; const TMCHuffmanEntry* dc_fast; s32 r; s32 blk0; - s32 idx; + TMCHuffmanEntry acEntry; s32 extra; s32 t; s32 zz; @@ -135,10 +135,8 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p bit_pos = work->bitCount; bit_data = work->bitBuf; - tmp = bit_pos - 8; - tmp = ((bit_data >> tmp) & 0xFF) << 2; { - dcEntry = readHuffmanEntry(dc_fast, tmp >> 2); + dcEntry = readHuffmanEntry(dc_fast, (bit_data >> (bit_pos - 8)) & 0xFF); r = dcEntry.bitLength; extra = dcEntry.symbol; } diff --git a/libs/RVL_SDK/src/fa/msc/puh_msc_blk.c b/libs/RVL_SDK/src/fa/msc/puh_msc_blk.c index ee467359..74556bb2 100644 --- a/libs/RVL_SDK/src/fa/msc/puh_msc_blk.c +++ b/libs/RVL_SDK/src/fa/msc/puh_msc_blk.c @@ -87,8 +87,9 @@ s32 uhf_msc_blk_mount(FADisk* disk) { } s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* completed) { - s32 error; UHF_MSC_DEVICE* device; + u16 transfer_blocks; + s32 error; u32 block_size; u8* transfer_buffer; u32 transfer_limit; @@ -102,7 +103,17 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com if (blocks == 0) { return 0; } - device = uhf_msc_blk_find_device(disk); + device = NULL; + { + u32 index; + UHF_MSC_DEVICE* candidate; + for (candidate = uhg_msc_blk_device_tbl, index = 0; index < 8; candidate++, index++) { + if (candidate->disk == disk) { + device = &uhg_msc_blk_device_tbl[index]; + break; + } + } + } if (device == NULL) { return -1; } @@ -127,7 +138,7 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com transfer_buffer = buffer; } do { - u16 transfer_blocks = transfer_limit; + transfer_blocks = transfer_limit; if (blocks <= transfer_limit) { transfer_blocks = blocks; } @@ -186,7 +197,17 @@ s32 uhf_msc_blk_pwrite(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* co if (blocks == 0) { return 0; } - device = uhf_msc_blk_find_device(disk); + device = NULL; + { + u32 index; + UHF_MSC_DEVICE* candidate; + for (candidate = uhg_msc_blk_device_tbl, index = 0; index < 8; candidate++, index++) { + if (candidate->disk == disk) { + device = &uhg_msc_blk_device_tbl[index]; + break; + } + } + } if (device == NULL) { return -1; } diff --git a/libs/RVL_SDK/src/fa/pf_fat12.c b/libs/RVL_SDK/src/fa/pf_fat12.c index cfcac45f..f4d8d7c9 100644 --- a/libs/RVL_SDK/src/fa/pf_fat12.c +++ b/libs/RVL_SDK/src/fa/pf_fat12.c @@ -175,9 +175,9 @@ pf_s32 PFFAT12_WriteFATEntryWithBuf(PF_VOLUME* p_vol, pf_s16 cluster, pf_u16 val pf_s32 PFFAT12_ReadFATEntryWithBuf(PF_VOLUME* p_vol , pf_u16 cluster , pf_u32* p_value , PF_CACHE_PAGE* p_page ) { - pf_s32 err; - pf_u32 current_fat; pf_u32 sector; + pf_u32 current_fat; + pf_s32 err; pf_u32 offset; pf_s32 result; diff --git a/tools/decomp-assist/fz3.attempts.md b/tools/decomp-assist/fz3.attempts.md new file mode 100644 index 00000000..93fc8059 --- /dev/null +++ b/tools/decomp-assist/fz3.attempts.md @@ -0,0 +1,413 @@ +# fz3 attempts + +Start HEAD 5543b7b720e18b9e093f2f3a9e8f9d4cb3a2eabb; origin/main 422a344b282c65104a9157a99239d0950b337472 + +libs/RVL_SDK/src/fa/pf_fat12 pool: POOL IDENTICAL up to 0 (mine=0 base=0) + +src/keyboard/tiSignWindow pool: POOL IDENTICAL up to 30 (mine=30 base=30) + +libs/RVL_SDK/src/fa/msc/puh_msc_blk pool: POOL IDENTICAL up to 0 (mine=0 base=0) + +libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 pool: POOL IDENTICAL up to 0 (mine=0 base=0) + +## PFFAT12_ReadFATEntryWithBuf +Remote source unchanged. Pool empty. Target/source both 0x30 frame, 155 instructions, identical branches and operand forms; remaining registers cycle error/current FAT/sector/offset. +PFFAT12_ReadFATEntryWithBuf | callback result scoped to callback block | 155/155 instructions; structural/exact differences (0, 34) +PFFAT12_ReadFATEntryWithBuf | pointer-index byte read form | 155/155 instructions; structural/exact differences (0, 34) +PFFAT12_ReadFATEntryWithBuf | inverted terminal success branch | 155/155 instructions; structural/exact differences (9, 46) +restored structural trials; 155/155 instructions; structural/exact differences (0, 34) +PFFAT12_ReadFATEntryWithBuf exhaustive declarations (' pf_u32 sector;', ' pf_u32 current_fat;', ' pf_s32 err;', ' pf_u32 offset;', ' pf_s32 result;') (0, 23) +exhaustive retained 155/155 instructions; structural/exact differences (0, 23) + +## create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator +Remote source unchanged. Pool 30 strings identical; data already 3468/3468. Target/source frame 0x50, 221 instructions, branch/operand structure identical, hoisted vtable and count registers differ. +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | for outer loop instead of do/while | 221/221 instructions; structural/exact differences (0, 34) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation count scoped after append | BUILD FAIL clude/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -O4,p -MMD -c src/keyboard/tiSignWindow.cpp -o build/43U/src/src/keyboard && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/keyboard/tiSignWindow.d build/43U/src/src/keyboard/tiSignWindow.d +### mwcceppc.exe Compiler: +# File: src\keyboard\tiSignWindow.cpp +# -------------------------------------- +# 77: {0, "N_SGNkeytop_all", 3, 0, {&csAninationFileForSign[0], &csAninationFileForSign[1], &csAninationFileForSign[2]}}, +# Error: ^ +# (10209) illegal implicit conversion from 'int' to +# 'const char *' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | shared allocation buffer across switch arms | 221/221 instructions; structural/exact differences (0, 34) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation table reference declared before pane pointer | 221/221 instructions; structural/exact differences (0, 34) +restored 221/221 instructions; structural/exact differences (0, 34) +PFFAT12_ReadFATEntryWithBuf | offset computation temporary separate from in-sector offset | 155/155 instructions; structural/exact differences (0, 23) +PFFAT12_ReadFATEntryWithBuf | distinct FAT flush index and read error | 155/155 instructions; structural/exact differences (0, 34) +PFFAT12_ReadFATEntryWithBuf | sector narrowing as cast and offset as additive expression | 155/155 instructions; structural/exact differences (0, 26) +fat retained 155/155 instructions; structural/exact differences (0, 23) + +## uhf_msc_blk_pread +Remote source unchanged. Pool empty; all 424 data bytes already paired. Target/source frames and 129 instructions identical. Transfer block variable scoped in loop shifts callee-saved coloring; control flow and operands identical. +uhf_msc_blk_pread | transfer block count declared at function scope | 129/129 instructions; structural/exact differences (0, 17) +uhf_msc_blk_pread | cache flag positive comparison | 129/129 instructions; structural/exact differences (0, 33) +uhf_msc_blk_pread | transfer byte length named in copy block | 129/129 instructions; structural/exact differences (0, 33) +hoisted transfer declaration 129/129 instructions; structural/exact differences (0, 17) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | retry animation count scoped only inside create | 221/221 instructions; structural/exact differences (0, 59) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | force name and count both scoped after append | 221/221 instructions; structural/exact differences (0, 61) +sign declaration search: +declaration block: + const char* forceName; + u32 animationCount; + u32 paneIndex = 0; +start (0, 34) +best (0, 34) after 6 builds; source restored; best order was: + const char* forceName; + u32 animationCount; + u32 paneIndex = 0; + +sign retained 221/221 instructions; structural/exact differences (0, 34) +PFFAT12_ReadFATEntryWithBuf | initialize error before offset | 155/155 instructions; structural/exact differences (3, 26) +PFFAT12_ReadFATEntryWithBuf | initialize error at declaration | 155/155 instructions; structural/exact differences (3, 26) +PFFAT12_ReadFATEntryWithBuf | load current FAT before sector calculation | 155/155 instructions; structural/exact differences (15, 38) +PFFAT12_ReadFATEntryWithBuf | inline callback result direct local | 155/155 instructions; structural/exact differences (0, 23) +retained fat 155/155 instructions; structural/exact differences (0, 23) + +## uhf_msc_blk_pwrite +Remote source unchanged. Empty pool and 424/424 data. Both frames 0x40 and 129 instructions, branch forms and operands identical; device and transfer-block registers exchanged. +uhf_msc_blk_pwrite | transfer count scoped to transfer loop | 129/129 instructions; structural/exact differences (0, 30) +uhf_msc_blk_pwrite | cache flag explicit zero and positive comparisons | 129/129 instructions; structural/exact differences (0, 16) +uhf_msc_blk_pwrite | find device loop in caller scope | 129/129 instructions; structural/exact differences (0, 7) +pwrite restored 129/129 instructions; structural/exact differences (0, 16) + +## TMCJPEGDEC_decode_iquant +Remote source unchanged. No data section or strings. Both 0x50 frames and 276 instructions. Structural diagnosis: AC aggregate stack slot 0x18 instead of 8; DC/AC helper copy slots reversed; long-code addition operands reversed; helper parameter/temporary colors differ. +TMCJPEGDEC_decode_iquant | AC entry scoped to AC decode block | 276/276 instructions; structural/exact differences (12, 59) +TMCJPEGDEC_decode_iquant | shared long Huffman inline helper for DC and AC | 277/276 instructions; structural/exact differences (19, 177) +TMCJPEGDEC_decode_iquant | Huffman symbol offset as named difference plus symbol | BUILD FAIL include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -use_lmw_stmw on -lang=c -MMD -c libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c -o build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.d +### mwcceppc.exe Compiler: +# File: libs\RVLMiddleware\TMC_JPEG\src\b65\iqdec_b65_frv32.c +# -------------------------------------------------------------- +# 58: u32 symbolIndex = code - entry->bitLength; +# Error: ^^^ +# (10141) expression syntax error +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +jpeg restored 276/276 instructions; structural/exact differences (12, 59) +uhf_msc_blk_pread retained caller-scope lookup 129/129 instructions; structural/exact differences (0, 35) +uhf_msc_blk_pwrite retained caller-scope lookup 129/129 instructions; structural/exact differences (0, 7) +pread declaration search: +declaration block: + u16 transfer_blocks; + s32 error; + UHF_MSC_DEVICE* device; + u32 block_size; + u8* transfer_buffer; + u32 transfer_limit; + s32 cacheable; + u8 sense[3] = {0}; +start (0, 17) +best (0, 17) after 71 builds; source restored; best order was: + u16 transfer_blocks; + s32 error; + UHF_MSC_DEVICE* device; + u32 block_size; + u8* transfer_buffer; + u32 transfer_limit; + s32 cacheable; + u8 sense[3] = {0}; + +pwrite declaration search: +declaration block: + u16 transfer_blocks; + UHF_MSC_DEVICE* device; + u32 block_size; + s32 error; + u8* transfer_buffer; + u32 transfer_limit; + s32 cacheable; + u8 sense[3] = {0}; +start (0, 16) +best (0, 16) after 71 builds; source restored; best order was: + u16 transfer_blocks; + UHF_MSC_DEVICE* device; + u32 block_size; + s32 error; + u8* transfer_buffer; + u32 transfer_limit; + s32 cacheable; + u8 sense[3] = {0}; + +TMCJPEGDEC_decode_iquant | unsigned Huffman symbol offset temporary | 276/276 instructions; structural/exact differences (12, 58) +TMCJPEGDEC_decode_iquant | AC aggregate declared after DC helper calls | 276/276 instructions; structural/exact differences (12, 59) +TMCJPEGDEC_decode_iquant | long helper code and table entry declaration order reversed | 276/276 instructions; structural/exact differences (12, 63) +TMCJPEGDEC_decode_iquant | Huffman table advance as byte-scaled index | 276/276 instructions; structural/exact differences (12, 59) +TMCJPEGDEC_decode_iquant | fast DC consumption assigned directly to work field | 276/276 instructions; structural/exact differences (12, 57) +jpeg retained 276/276 instructions; structural/exact differences (12, 59) +uhf_msc_blk_pread | find index at function scope | 129/129 instructions; structural/exact differences (0, 17) +uhf_msc_blk_pread | find index declared first | 129/129 instructions; structural/exact differences (0, 17) +uhf_msc_blk_pread | find index narrower signed int | 129/129 instructions; structural/exact differences (0, 17) +uhf_msc_blk_pread | explicit cursor for device lookup | 129/129 instructions; structural/exact differences (2, 17) +uhf_msc_blk_pwrite | find index at function scope | 129/129 instructions; structural/exact differences (0, 7) +uhf_msc_blk_pwrite | find index declared first | 129/129 instructions; structural/exact differences (0, 35) +uhf_msc_blk_pwrite | find index narrower signed int | 129/129 instructions; structural/exact differences (0, 7) +uhf_msc_blk_pwrite | explicit cursor for device lookup | 129/129 instructions; structural/exact differences (2, 7) +msc retained pread 129/129 instructions; structural/exact differences (0, 17) +msc retained pwrite 129/129 instructions; structural/exact differences (0, 7) +uhf_msc_blk_pwrite | cursor increment before index | 129/129 instructions; structural/exact differences (0, 7) +uhf_msc_blk_pwrite | find index before null assignment | 129/129 instructions; structural/exact differences (0, 8) +uhf_msc_blk_pwrite | return device through inline output helper | 129/129 instructions; structural/exact differences (0, 35) +retained pwrite 129/129 instructions; structural/exact differences (0, 7) +uhf_msc_blk_pwrite | inline device lookup using output parameter | 129/129 instructions; structural/exact differences (0, 28) +uhf_msc_blk_pwrite | inline output lookup parameter order swapped | 129/129 instructions; structural/exact differences (0, 28) +restored 129/129 instructions; structural/exact differences (0, 7) +uhf_msc_blk_pwrite | index declared before explicit cursor | 129/129 instructions; structural/exact differences (0, 0) +uhf_msc_blk_pwrite | cursor initialized before device | 129/129 instructions; structural/exact differences (0, 0) +uhf_msc_blk_pwrite | cursor object at function scope | 129/129 instructions; structural/exact differences (0, 7) +uhf_msc_blk_pwrite | loop count explicitly starts before cursor | 129/129 instructions; structural/exact differences (0, 0) +restored pwrite 129/129 instructions; structural/exact differences (0, 7) +retained index before cursor uhf_msc_blk_pread 129/129 instructions; structural/exact differences (0, 10) +retained index before cursor uhf_msc_blk_pwrite 129/129 instructions; structural/exact differences (0, 0) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | pane table pointer instead of reference | 221/221 instructions; structural/exact differences (0, 34) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation index function scope | 221/221 instructions; structural/exact differences (0, 63) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | pane pointer function scope | 221/221 instructions; structural/exact differences (0, 34) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | animation record pointer named in inner loop | 219/221 instructions; structural/exact differences (9, 91) +restored sign 221/221 instructions; structural/exact differences (0, 34) +uhf_msc_blk_pread | transfer bytes function scope | 129/129 instructions; structural/exact differences (0, 15) +uhf_msc_blk_pread | transfer bytes before block count declaration | 129/129 instructions; structural/exact differences (0, 17) +uhf_msc_blk_pread | count at loop scope with explicit device cursor | 129/129 instructions; structural/exact differences (0, 27) +uhf_msc_blk_pread | byte copy in inline helper | 129/129 instructions; structural/exact differences (0, 10) +restored pread 129/129 instructions; structural/exact differences (0, 10) + +## First accepted improvement +Pwrite 129/129 instructions and ctxdiff diffs 0. Fresh objdiff 100%. Caller-scope lookup with index declared before cursor restores target scratch registers. Pread remains open; declsearch restores its closest order. FAT/JPEG declaration searches improve fuzzy scores without changing instruction count or matched neighbors. Data already 100% in every owned unit, so no symbol rename or extent edit needed. +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 1544/2164 data None/None functions 3/4 fuzzy 99.7597 linked code 0 +[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 3/4 +[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 99.759705 +[libs/RVL_SDK/src/fa/pf_fat12] below 100: PFFAT12_ReadFATEntryWithBuf 99.16129 +[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.6396 +[src/keyboard/tiSignWindow] pool: IDENTICAL +[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8914 linked code 0 +[src/keyboard/tiSignWindow] instruction-exact functions: 55/56 +[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0 +[src/keyboard/tiSignWindow] section .data size 2672 match 100.0 +[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0 +[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0 +[src/keyboard/tiSignWindow] section .text size 7184 match 99.891426 +[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.117645 +[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] pool: IDENTICAL +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] objdiff: code 1556/2072 data 424/424 functions 10/11 fuzzy 99.8938 linked code 0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] instruction-exact functions: 10/11 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .bss size 384 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .data size 32 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .sbss size 8 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .text size 2072 match 99.89382 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] below 100: uhf_msc_blk_pread 99.57365 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] baseline: code 1040/2072 data 424 functions 9 fuzzy 99.4498 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 98.9058 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 98.9058 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 98.9058 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 98.8333 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.59130 +global fuzzy_match_percent: 99.45531 -> 99.45574 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.20744 -> 98.20744 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +uhf_msc_blk_pread copy-block helper parameters ('destination', 'source', 'blocks', 'block_size') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('destination', 'source', 'block_size', 'blocks') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('destination', 'blocks', 'source', 'block_size') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('destination', 'blocks', 'block_size', 'source') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('destination', 'block_size', 'source', 'blocks') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('destination', 'block_size', 'blocks', 'source') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('source', 'destination', 'blocks', 'block_size') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('source', 'destination', 'block_size', 'blocks') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('source', 'blocks', 'destination', 'block_size') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('source', 'blocks', 'block_size', 'destination') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('source', 'block_size', 'destination', 'blocks') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('source', 'block_size', 'blocks', 'destination') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('blocks', 'destination', 'source', 'block_size') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('blocks', 'destination', 'block_size', 'source') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('blocks', 'source', 'destination', 'block_size') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('blocks', 'source', 'block_size', 'destination') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('blocks', 'block_size', 'destination', 'source') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('blocks', 'block_size', 'source', 'destination') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('block_size', 'destination', 'source', 'blocks') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('block_size', 'destination', 'blocks', 'source') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('block_size', 'source', 'destination', 'blocks') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('block_size', 'source', 'blocks', 'destination') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('block_size', 'blocks', 'destination', 'source') 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread copy-block helper parameters ('block_size', 'blocks', 'source', 'destination') 129/129 instructions; structural/exact differences (0, 10) +helper permutations restored 129/129 instructions; structural/exact differences (0, 10) +TMCJPEGDEC_decode_iquant AC coefficient loop isolated in real inline helper 276/276 instructions; structural/exact differences (5, 128) +restored JPEG 276/276 instructions; structural/exact differences (12, 55) +uhf_msc_blk_pread | copy byte count at transfer-loop scope | 129/129 instructions; structural/exact differences (0, 33) +uhf_msc_blk_pread | transfer count unsigned int with call-bound narrowing | 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread | copy byte count declared before device | 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread | transfer loop copies with named signed byte count | 129/129 instructions; structural/exact differences (0, 33) +retained pread 129/129 instructions; structural/exact differences (0, 10) +TMCJPEGDEC_decode_iquant | long decode aggregate caller-scope declarations | 276/276 instructions; structural/exact differences (5, 128) +TMCJPEGDEC_decode_iquant | long symbol offset compound assignment | 276/276 instructions; structural/exact differences (5, 129) +TMCJPEGDEC_decode_iquant | AC helper with outer scalar declarations preserved | 276/276 instructions; structural/exact differences (5, 128) +TMCJPEGDEC_decode_iquant | long decoded declarations plus operand compounds | 276/276 instructions; structural/exact differences (5, 129) +restored JPEG 276/276 instructions; structural/exact differences (12, 55) +PFFAT12_ReadFATEntryWithBuf | sixteen-bit byte offset | 156/155 instructions; structural/exact differences (8, 90) +PFFAT12_ReadFATEntryWithBuf | signed byte offset with unsigned boundary compare | 155/155 instructions; structural/exact differences (2, 24) +PFFAT12_ReadFATEntryWithBuf | signed sector with unsigned page comparison | 155/155 instructions; structural/exact differences (0, 23) +PFFAT12_ReadFATEntryWithBuf | callback flag branch as conditional expression | 155/155 instructions; structural/exact differences (0, 23) +FAT restored 155/155 instructions; structural/exact differences (0, 23) +PFFAT12_ReadFATEntryWithBuf | FAT flush loops isolated in genuine inline helper | 155/155 instructions; structural/exact differences (0, 34) +fat restored 155/155 instructions; structural/exact differences (0, 23) +uhf_msc_blk_pread completed randomized leading declarations 900 builds; 129/129 instructions; structural/exact differences (0, 10) +TMCJPEGDEC_decode_iquant | DC and AC limit helpers defined in reverse order | 276/276 instructions; structural/exact differences (5, 128) +TMCJPEGDEC_decode_iquant | Huffman return copied through explicit output pointer | 276/276 instructions; structural/exact differences (5, 128) +TMCJPEGDEC_decode_iquant | Huffman return copied via named initializer | 276/276 instructions; structural/exact differences (5, 128) +restored jpeg 276/276 instructions; structural/exact differences (12, 55) +PFFAT12_ReadFATEntryWithBuf | readable full FAT local names | BUILD FAIL TION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/fa/pf_fat12.c -o build/43U/src/libs/RVL_SDK/src/fa && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/fa/pf_fat12.d build/43U/src/libs/RVL_SDK/src/fa/pf_fat12.d +### mwcceppc.exe Compiler: +# File: libs\RVL_SDK\src\fa\pf_fat12.c +# --------------------------------------- +# 218: if (p_page->fat_sector != fat_sector + (0)) { if (p_page->option == 1) { for (error = 0; ; +# Error: ^^ +# (10393) 'fat_sector' is not a member of class 'struct PF_CACHE_PAGE' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +PFFAT12_ReadFATEntryWithBuf | error local status name | 155/155 instructions; structural/exact differences (0, 23) +PFFAT12_ReadFATEntryWithBuf | byte offset local FAT offset name | 155/155 instructions; structural/exact differences (0, 23) +fat retained 155/155 instructions; structural/exact differences (0, 23) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 0, 0) 221/221 instructions; structural/exact differences (0, 34) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 0, 1) 221/221 instructions; structural/exact differences (0, 34) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 1, 0) 221/221 instructions; structural/exact differences (0, 63) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 0, 1, 1) 221/221 instructions; structural/exact differences (0, 63) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 0, 0) 221/221 instructions; structural/exact differences (0, 59) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 0, 1) 221/221 instructions; structural/exact differences (0, 59) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 1, 0) 221/221 instructions; structural/exact differences (0, 38) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (0, 1, 1, 1) 221/221 instructions; structural/exact differences (0, 38) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 0, 0) 221/221 instructions; structural/exact differences (0, 61) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 0, 1) 221/221 instructions; structural/exact differences (0, 61) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 1, 0) 221/221 instructions; structural/exact differences (0, 41) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 0, 1, 1) 221/221 instructions; structural/exact differences (0, 41) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 0, 0) 221/221 instructions; structural/exact differences (0, 61) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 0, 1) 221/221 instructions; structural/exact differences (0, 61) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 1, 0) 221/221 instructions; structural/exact differences (0, 65) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator force/count inner and index/pane outer scopes (1, 1, 1, 1) 221/221 instructions; structural/exact differences (0, 65) +sign retained 221/221 instructions; structural/exact differences (0, 34) +AC helper declaration search restored: structural (5,128) unchanged after118 builds; restores better objdiff committed source. +declaration block: + TMCHuffmanEntry dcEntry; + u8* huff_sym; + u32* huff_tbl; + s32 bit_pos; + u32 bit_data; + const TMCHuffmanEntry* dc_fast; + s32 r; + s32 blk0; + s32 extra; + u32 tmp; +start (5, 128) +best (5, 128) after 118 builds; source restored; best order was: + TMCHuffmanEntry dcEntry; + u8* huff_sym; + u32* huff_tbl; + s32 bit_pos; + u32 bit_data; + const TMCHuffmanEntry* dc_fast; + s32 r; + s32 blk0; + s32 extra; + u32 tmp; + +TMCJPEGDEC_decode_iquant DC fast lookup single bit-index expression 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant DC fast lookup from work bit buffer 276/276 instructions; structural/exact differences (12, 55) +TMCJPEGDEC_decode_iquant DC fast lookup uses signed bit index 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant DC consume direct work bit count 276/276 instructions; structural/exact differences (12, 53) +retained JPEG fast lookup 276/276 instructions; structural/exact differences (12, 50) +uhf_msc_blk_pread | inline transfer count selection | 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread | inline count selection reversed parameters | 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread | inline count selection loop-scope destination | BUILD FAIL ath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/fa/msc/puh_msc_blk.c -o build/43U/src/libs/RVL_SDK/src/fa/msc && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/fa/msc/puh_msc_blk.d build/43U/src/libs/RVL_SDK/src/fa/msc/puh_msc_blk.d +### mwcceppc.exe Compiler: +# File: libs\RVL_SDK\src\fa\msc\puh_msc_blk.c +# ---------------------------------------------- +# 237: transfer_blocks = transfer_limit; +# Error: ^^^^^^^^^^^^^^^ +# (10140) undefined identifier 'transfer_blocks' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +pread restored 129/129 instructions; structural/exact differences (0, 10) +TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' TMCHuffmanEntry limit;', ' u16 bitLength;', ' u16 symbol;') 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' TMCHuffmanEntry limit;', ' u16 symbol;', ' u16 bitLength;') 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 bitLength;', ' TMCHuffmanEntry limit;', ' u16 symbol;') 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 bitLength;', ' u16 symbol;', ' TMCHuffmanEntry limit;') 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 symbol;', ' TMCHuffmanEntry limit;', ' u16 bitLength;') 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant explicit Huffman-limit scalar declarations (' u16 symbol;', ' u16 bitLength;', ' TMCHuffmanEntry limit;') 276/276 instructions; structural/exact differences (12, 50) +JPEG retained limit 276/276 instructions; structural/exact differences (12, 50) + +## Open-function audit before final full gate +PFFAT12_ReadFATEntryWithBuf distinct measured source trials 17; 155/155 instructions; structural/exact differences (0, 23) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator distinct measured source trials 9; 221/221 instructions; structural/exact differences (0, 34) +uhf_msc_blk_pread distinct measured source trials 17; 129/129 instructions; structural/exact differences (0, 10) +TMCJPEGDEC_decode_iquant distinct measured source trials 14; 276/276 instructions; structural/exact differences (12, 50) +Data ownership audit: FAT/JPEG contain no target data; SignWindow .ctors/.data/.rodata/.sdata are fully matched at 3468/3468, MSC .bss/.data/.sbss fully matched at 424/424. No config renames, extents, addresses, or section totals changed. +JPEG structural work retained only direct fast DC lookup simplification; AC helper extraction fixed some stack slots but worsened exact differences and was restored. Every remaining function has more than three built, distinct source attempts. No remaining untried function. + +## Final clean full gate +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 1544/2164 data None/None functions 3/4 fuzzy 99.7597 linked code 0 +[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 3/4 +[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 99.759705 +[libs/RVL_SDK/src/fa/pf_fat12] below 100: PFFAT12_ReadFATEntryWithBuf 99.16129 +[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.6396 +[src/keyboard/tiSignWindow] pool: IDENTICAL +[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8914 linked code 0 +[src/keyboard/tiSignWindow] instruction-exact functions: 55/56 +[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0 +[src/keyboard/tiSignWindow] section .data size 2672 match 100.0 +[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0 +[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0 +[src/keyboard/tiSignWindow] section .text size 7184 match 99.891426 +[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.117645 +[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] pool: IDENTICAL +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] objdiff: code 1556/2072 data 424/424 functions 10/11 fuzzy 99.8938 linked code 0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] instruction-exact functions: 10/11 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .bss size 384 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .data size 32 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .sbss size 8 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .text size 2072 match 99.89382 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] below 100: uhf_msc_blk_pread 99.57365 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] baseline: code 1040/2072 data 424 functions 9 fuzzy 99.4498 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 99.0326 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 99.03261 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 99.03261 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 98.8333 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.59130 +global fuzzy_match_percent: 99.45531 -> 99.45580 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.20744 -> 98.20744 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +libs/RVL_SDK/src/fa/pf_fat12 POOL IDENTICAL up to 0 (mine=0 base=0) +src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30) +libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0) +Fresh clean-build pwrite ctxdiff: 129/129 instructions, diffs 0. DOL SHA1 correct; regressions 0; forbidden patterns 0; readability warnings 0. Matched data remains 100% for all owned sections. +Second accepted improvement: direct DC fast Huffman index expression raises JPEG fuzzy 98.9058 -> 99.03261; code count stays 0/1. Final clean full gate is PASS over all four units. Original inline-helper boundaries remain uncertain; rejected helper variants were restored. -- 2.49.1 From 11df09974be3d0b0f463641255b4df378736c44b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 06:57:45 +0000 Subject: [PATCH 34/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd51e9bb..677b1bda 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.63% | 63.16% | 98.51% | +| 99.47% | 88.65% | 63.16% | 98.51% | -units 927/1027 complete, functions 12267/12563 matched. +units 927/1027 complete, functions 12268/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From c9fb0697ca1af1a4934b8020b176d57068cf219e Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:59:04 -0500 Subject: [PATCH 35/63] tools: audit literal values at corresponding PPC calls (#758) --- AGENTS.md | 6 + tools/decomp-assist/literal_reference_diff.py | 331 ++++++++++++++++++ .../test_literal_reference_diff.py | 285 +++++++++++++++ 3 files changed, 622 insertions(+) create mode 100644 tools/decomp-assist/literal_reference_diff.py create mode 100644 tools/decomp-assist/test_literal_reference_diff.py diff --git a/AGENTS.md b/AGENTS.md index 315a3fd6..93f2ba55 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -78,6 +78,12 @@ Helper tools live in `tools/decomp-assist/`: between your object and the original. This is the main iteration loop. - `disasm_fn.py ` — disassembly with relocation-resolved call names, so you can see which real functions are being called. +- `literal_reference_diff.py [unit ...]` — advisory check of actual narrow-string + bytes passed at corresponding calls, including addresses derived from a shared + data base. Defaults to functions scored 100% in the live report; use + `--all-functions` to include other equal-sized functions. Inspect every + candidate against the assembly. This does not follow mutable pointer globals, + infer compiler aliases, or prove complete data matching; skips are reported. - `pool_diff.py` — diffs the string pool in `.data` between your object and the original, string by string. See below; this is the highest-signal tool. - `export_pyghidra.py` — regenerates `ghidra_decomp.txt`, decompiled C for the diff --git a/tools/decomp-assist/literal_reference_diff.py b/tools/decomp-assist/literal_reference_diff.py new file mode 100644 index 00000000..453d56b6 --- /dev/null +++ b/tools/decomp-assist/literal_reference_diff.py @@ -0,0 +1,331 @@ +"""Audit statically addressed narrow-string call arguments after ctxdiff. + +Usage: python literal_reference_diff.py [unit ...] [--function NAME] +--function requires exactly one unit. With no units, inspect all units in build/43U/report.json. By default, select +functions scored 100%; --all-functions includes other equal-sized functions. +Requires pyelftools and the sibling jump_table_diff.py. + +This is an advisory audit, not a matching gate. It compares bytes, not relocation +names or offsets, and follows constant addresses through GPR moves/additions and +control-flow joins. It deliberately does not dereference mutable pointer globals, +infer dynamic indices, or establish which arguments a callee actually consumes. +Only corresponding calls with the same identity are compared. Binary data can +look like a string: inspect every candidate against the original assembly. +Missing exact symbol names are explicitly skipped in report-driven selection; +compiler aliases are never guessed. No candidates does not prove complete data matching. Exit 0 means no candidates, +1 means candidates require review, and 2 means invalid/incomplete input. +""" + +import argparse +from collections import deque +from dataclasses import dataclass +import json +from pathlib import Path +import sys + +from elftools.common.exceptions import ELFError +from elftools.elf.elffile import ELFFile + +import jump_table_diff as jump + +DATA_SECTIONS = {".data", ".rodata", ".sdata", ".sdata2"} +VOLATILE_GPRS = {0, *range(3, 13)} + + +@dataclass +class LiteralObject: + info: jump.ObjectInfo + data: dict + + def relocation(self, section, offset): + entries = self.info.relocs(section) + found = [entries[p] for p in (offset, offset + 2) if p in entries] + if len(found) > 1: + raise ValueError("multiple relocations in one instruction") + return found[0] if found else None + + def string(self, pointer, limit=512): + if pointer is None or pointer[0] != "address": + return None + _, section, offset = pointer + if section not in self.info.sections: + return None + if self.info.sections[section][0] not in DATA_SECTIONS or offset < 0: + return None + data = self.data.get(section, b"") + if offset >= len(data): + return None + raw = data[offset:offset + limit] + end = raw.find(b"\0") + if end < 0: + return None + raw = raw[:end] + if not all(c >= 32 or c in (9, 10, 13) for c in raw): + return None + # A relocated word is an address, not literal character bytes. + if any(offset <= at < offset + end + 1 + for at in self.info.relocs(section)): + return None + return raw + + +def read_object(path): + info = jump.read_object(path) + with open(path, "rb") as stream: + elf = ELFFile(stream) + data = {i: s.data() for i, s in enumerate(elf.iter_sections()) + if s["sh_type"] == "SHT_PROGBITS" and s["sh_flags"] & 2} + return LiteralObject(info, data) + + +def signed(value, bits): + return value - (1 << bits) if value & (1 << (bits - 1)) else value + + +def is_call(word): + op, xo = word >> 26, (word >> 1) & 1023 + return bool(word & 1) and (op == 18 or op == 19 and xo in (16, 528)) + + + +def is_tail_call(obj, function, offset, word): + if word >> 26 != 18 or word & 1: + return False + relocation = obj.relocation(function.section, function.value + offset) + if relocation is None or relocation.kind != 10: + return False + if not 0 <= relocation.symbol < len(obj.info.symbols): + raise ValueError("tail-call relocation symbol is out of range") + symbol = obj.info.symbols[relocation.symbol] + return bool(symbol.name) and (not isinstance(symbol.section, int) + or symbol.kind == "STT_FUNC" and symbol.name != function.name) + + +def call_identity(obj, function, offset, word): + relocation = obj.relocation(function.section, function.value + offset) + if relocation is not None: + if relocation.kind != 10: # R_PPC_REL24 + return None + if not 0 <= relocation.symbol < len(obj.info.symbols): + raise ValueError("call relocation symbol is out of range") + symbol = obj.info.symbols[relocation.symbol] + return ("direct", symbol.name, relocation.addend) + if word >> 26 == 19: + return ("indirect", (word >> 1) & 1023) + # A non-relocated direct call has no reliably paired cross-object identity. + return None + + +def transfer(obj, function, offset, word, incoming): + state = dict(incoming) + op = word >> 26 + rd, ra, rb = (word >> 21) & 31, (word >> 16) & 31, (word >> 11) & 31 + xo = (word >> 1) & 1023 + immediate = signed(word & 0xffff, 16) + if is_call(word): + return {r: p for r, p in state.items() if r not in VOLATILE_GPRS} + if op in (14, 15): + relocation = obj.relocation(function.section, function.value + offset) + if relocation and relocation.kind in (4, 6, 109): + location = obj.info.location(relocation) + if location is not None: + kind = "high" if relocation.kind == 6 else "address" + state[rd] = (kind, *location) + return state + pointer = incoming.get(ra) if ra else None + if op == 14 and pointer and pointer[0] == "address": + state[rd] = ("address", pointer[1], pointer[2] + immediate) + else: + state.pop(rd, None) + elif op == 31 and xo == 444 and rd == rb: # mr = or rA,rS,rS + state.pop(ra, None) + if rd in incoming: + state[ra] = incoming[rd] + elif op in (7, 8, 12, 13, 32, 34, 40, 42): + state.pop(rd, None) + elif op in (33, 35, 41, 43): + state.pop(rd, None) + state.pop(ra, None) + elif op in (20, 21, 23, 24, 25, 26, 27, 28, 29): + state.pop(ra, None) + elif op == 46: # lmw + state = {r: p for r, p in state.items() if r < rd} + elif op in (37, 39, 45, 49, 51, 53, 55, 57, 61): + state.pop(ra, None) + elif op == 4: + # Paired-single indexed updates may write rA. Forget it conservatively. + state.pop(ra, None) + elif op in (10, 11, 16, 18, 19, 36, 38, 44, 47, 48, 50, + 52, 54, 56, 59, 60, 63): + pass + elif op == 31: + if xo in (0, 32, 144, 467, 151, 215, 407, 535, 599, 663, 727, + 598, 854): + pass + elif xo in (28, 60, 124, 284, 316, 412, 444, 476, 24, 26, 536, + 792, 824, 922, 954): + state.pop(ra, None) + elif xo in (8, 10, 11, 19, 23, 40, 75, 87, 104, 136, + 138, 200, 202, 232, 234, 235, 266, 279, 339, + 343, 459, 491): + state.pop(rd, None) + elif xo in (55, 119, 311, 375): + state.pop(rd, None) + state.pop(ra, None) + elif xo in (183, 247, 439, 567, 631, 695, 759): + state.pop(ra, None) + else: + state.clear() + else: + state.clear() + return state + + +def call_strings(obj, name): + function = obj.info.symbol(name) + if function.kind != "STT_FUNC" or function.size % 4 or function.value % 4: + raise ValueError("expected an aligned function: " + name) + code = obj.data.get(function.section, b"") + if function.value + function.size > len(code): + raise ValueError("function code is unavailable: " + name) + code = code[function.value:function.value + function.size] + words = [int.from_bytes(code[i:i + 4], "big") for i in range(0, len(code), 4)] + targets = set() + for _, entries in jump.reference_tables(obj.info, function): + targets.update(entries) + states, pending = {0: {}}, deque([0]) + + def offer(offset, state): + if offset < 0 or offset >= function.size or offset % 4: + return + if offset not in states: + states[offset] = dict(state) + pending.append(offset) + return + old = states[offset] + merged = {r: p for r, p in old.items() if state.get(r) == p} + if merged != old: + states[offset] = merged + pending.append(offset) + + while pending: + offset = pending.popleft() + word = words[offset // 4] + op, xo = word >> 26, (word >> 1) & 1023 + state = transfer(obj, function, offset, word, states[offset]) + if is_tail_call(obj, function, offset, word): + continue + if op == 18 and not word & 1: + if word & 2: + continue # Absolute branches do not name local section offsets. + offer(offset + signed(word & 0x03fffffc, 26), state) + elif op == 16: + if word & 1: + raise ValueError("conditional branch-and-link is unsupported") + if not word & 2: + offer(offset + signed(word & 0xfffc, 16), state) + if ((word >> 21) & 0x14) != 0x14: + offer(offset + 4, state) + elif op == 19 and xo in (16, 528) and not word & 1: + if xo == 528: + for target in targets: + offer(target, state) + if ((word >> 21) & 0x14) != 0x14: + offer(offset + 4, state) + else: + offer(offset + 4, state) + + result = {} + for offset, state in states.items(): + word = words[offset // 4] + if not (is_call(word) or is_tail_call(obj, function, offset, word)): + continue + identity = call_identity(obj, function, offset, word) + if identity is None: + continue + for gpr in range(3, 11): + value = obj.string(state.get(gpr)) + if value is not None: + result[(offset, gpr)] = (identity, value) + return result + + +def compare_function(source, reference, name): + if source.info.symbol(name).size != reference.info.symbol(name).size: + return 0, [], "different function sizes" + actual = call_strings(source, name) + expected = call_strings(reference, name) + checked, differences = 0, [] + for key, (callee, value) in expected.items(): + # Short/binary-looking data has especially ambiguous string semantics. + if len(value) < 3 or key not in actual or actual[key][0] != callee: + continue + checked += 1 + if value != actual[key][1]: + differences.append({"offset": key[0], "register": key[1], + "expected_hex": value.hex(), + "actual_hex": actual[key][1].hex(), + "expected": value.decode("utf-8", "replace"), + "actual": actual[key][1].decode("utf-8", "replace")}) + return checked, differences, None + + +def unit_path(name): + path = Path(name.removeprefix("main/")) + if path.is_absolute() or ".." in path.parts or not path.parts: + raise ValueError("expected a relative unit path") + return path + + +def main(argv=None): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("units", nargs="*") + parser.add_argument("--function", action="append", default=[]) + parser.add_argument("--all-functions", action="store_true") + parser.add_argument("--build", type=Path, default=Path("build/43U")) + parser.add_argument("--report", type=Path) + args = parser.parse_args(argv) + if args.function and len(args.units) != 1: + parser.error("--function requires exactly one unit") + output = {"checked_arguments": 0, "analyzed_functions": 0, + "skipped_functions": [], "candidates": [], "errors": []} + try: + report = json.loads((args.report or args.build / "report.json").read_text()) + selected = {str(unit_path(n)) for n in args.units} + units = {str(unit_path(u["name"])): u for u in report["units"]} + if selected - units.keys(): + raise ValueError("unit is absent from report: " + ", ".join(sorted(selected - units.keys()))) + for unit in sorted(selected or units.keys()): + source = read_object(args.build / "src" / (unit + ".o")) + reference = read_object(args.build / "obj" / (unit + ".o")) + functions = args.function or [f["name"] for f in units[unit].get("functions", []) + if args.all_functions or f.get("fuzzy_match_percent") == 100] + for name in functions: + try: + if not args.function: + missing = [label for label, obj in (("source", source), ("reference", reference)) + if not any(s.name == name and isinstance(s.section, int) and s.size + for s in obj.info.symbols)] + if missing: + output["skipped_functions"].append({ + "unit": unit, "function": name, + "reason": "missing exact symbol name in " + ", ".join(missing) + + "; no compiler-alias inference"}) + continue + checked, differences, skipped = compare_function(source, reference, name) + if skipped: + output["skipped_functions"].append({"unit": unit, "function": name, "reason": skipped}) + continue + output["analyzed_functions"] += 1 + output["checked_arguments"] += checked + output["candidates"].extend(dict(unit=unit, function=name, **d) for d in differences) + except ValueError as error: + output["errors"].append({"unit": unit, "function": name, "error": str(error)}) + except (OSError, ELFError, ValueError, KeyError, TypeError) as error: + output["errors"].append({"error": str(error)}) + print(json.dumps(output, indent=2)) + return 2 if output["errors"] else 1 if output["candidates"] else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/tools/decomp-assist/test_literal_reference_diff.py b/tools/decomp-assist/test_literal_reference_diff.py new file mode 100644 index 00000000..f08b7d19 --- /dev/null +++ b/tools/decomp-assist/test_literal_reference_diff.py @@ -0,0 +1,285 @@ +import contextlib +from dataclasses import replace +import io +import json +from pathlib import Path +import struct +import tempfile +import unittest +from unittest.mock import patch + +import jump_table_diff as jump +import literal_reference_diff as tool + + +def words(*values): + return b"".join(struct.pack(">I", value) for value in values) + + +def fixture(value=b"P_prdc_scrl_Left\0", code=None, call_offsets=(8,), + text_id=1, data_id=2, function_offset=0, data_offset=0, + references=None): + code = code or words(0x3c800000, 0x38840000, 0x48000001, 0x4e800020) + data = b"\0" * data_offset + value + symbols = [jump.Symbol("dispatch", text_id, function_offset, len(code), "STT_FUNC"), + jump.Symbol("literal", data_id, data_offset, len(value)), + jump.Symbol("consume", "SHN_UNDEF", 0, 0, "STT_FUNC")] + relocations = {text_id: { + function_offset + 2: jump.Relocation(function_offset + 2, 6, 1, 0), + function_offset + 6: jump.Relocation(function_offset + 6, 4, 1, 0), + }} + if references is not None: + relocations[text_id] = {function_offset + at: jump.Relocation( + function_offset + at, kind, 1, addend) for at, kind, addend in references} + for at in call_offsets: + relocations[text_id][function_offset + at] = jump.Relocation( + function_offset + at, 10, 2, 0) + sections = {text_id: (".text", function_offset + len(code)), + data_id: (".data", len(data))} + return tool.LiteralObject(jump.ObjectInfo(sections, symbols, relocations), + {text_id: b"\0" * function_offset + code, data_id: data}) + + +def compare(source, reference=None): + return tool.compare_function(source, reference or fixture(), "dispatch") + + +class LiteralReferenceTests(unittest.TestCase): + def test_equal_value_with_different_section_ids_and_offsets(self): + source = fixture(text_id=4, data_id=7, function_offset=0x40, data_offset=0x20) + self.assertEqual(compare(source), (1, [], None)) + + def test_detects_different_literal_despite_identical_code(self): + source = fixture(b"wrong_pane\0") + checked, differences, skipped = compare(source) + self.assertEqual(checked, 1) + self.assertIsNone(skipped) + self.assertEqual(differences[0]["expected"], "P_prdc_scrl_Left") + self.assertEqual(differences[0]["actual"], "wrong_pane") + + def test_source_empty_string_is_not_silently_ignored(self): + self.assertEqual(compare(fixture(b"\0"))[1][0]["actual_hex"], "") + + def test_fixed_width_record_regression(self): + names = [b"B_OffBtn", b"P_JPOffBtn", b"P_CNOffBtn", b"P_CNOnBtn", + b"B_prdc_scrl_Left", b"P_prdc_scrl_Left", + b"B_prdc_scrl_Rght", b"P_prdc_scrl_Rght"] + widths = [12] * 4 + [20] * 4 + correct = b"".join(n.ljust(w, b"\0") for n, w in zip(names, widths)).ljust(132, b"\0") + broken = b"".join(n.ljust(w - 1, b"\0") for n, w in zip(names, widths)).ljust(132, b"\0") + code = words(0x3fe00000, 0x3bff0000, 0x389f0044, 0x48000001, + 0x389f006c, 0x48000001, 0x4e800020) + expected = fixture(correct, code, (12, 20)) + actual = fixture(broken, code, (12, 20)) + self.assertEqual(len(correct), len(broken)) + self.assertEqual(correct.count(0), broken.count(0)) + checked, differences, _ = compare(actual, expected) + self.assertEqual(checked, 2) + self.assertEqual([d["actual"] for d in differences], ["c_scrl_Left", "scrl_Rght"]) + self.assertEqual(compare(expected, expected), (2, [], None)) + + def test_nonvolatile_base_survives_call(self): + code = words(0x3fe00000, 0x3bff0000, 0x389f0000, 0x48000001, + 0x389f0000, 0x48000001, 0x4e800020) + obj = fixture(code=code, call_offsets=(12, 20)) + self.assertEqual(compare(obj, obj), (2, [], None)) + + def test_volatile_argument_does_not_survive_call(self): + obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000001, + 0x48000001, 0x4e800020), call_offsets=(8, 12)) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_move_propagates_address(self): + code = words(0x3fe00000, 0x3bff0000, 0x7fe4fb78, 0x48000001, 0x4e800020) + obj = fixture(code=code, call_offsets=(12,)) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_sda21_literal_address(self): + obj = fixture(code=words(0x38800000, 0x48000001, 0x4e800020), + call_offsets=(4,), references=[(0, 109, 0)]) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_high_half_alone_is_not_a_pointer(self): + obj = fixture(code=words(0x3c800000, 0x48000001, 0x4e800020), + call_offsets=(4,), references=[(2, 6, 0)]) + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_section_relative_literal_symbol(self): + obj = fixture(data_offset=0x40) + obj.info.symbols[1] = jump.Symbol("", 2, 0, 0, "STT_SECTION") + for at in (2, 6): + obj.info.relocations[1][at] = replace(obj.info.relocations[1][at], addend=0x40) + self.assertEqual(compare(obj), (1, [], None)) + + def test_no_assumption_of_unique_section_names(self): + obj = fixture(text_id=3, data_id=4) + obj.info.sections[1] = (".text", 16) + obj.data[1] = words(0, 0, 0, 0) + self.assertEqual(compare(obj), (1, [], None)) + + def test_cntlzw_invalidates_its_actual_destination(self): + code = words(0x3c800000, 0x38840000, 0x7ca40034, 0x48000001, 0x4e800020) + obj = fixture(code=code, call_offsets=(12,)) + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_paired_single_update_cannot_leave_a_stale_base(self): + obj = fixture() + fn = obj.info.symbol("dispatch") + pointer = ("address", 2, 0) + state = tool.transfer(obj, fn, 0, (4 << 26) | (31 << 16) | 38, + {31: pointer, 30: pointer}) + self.assertNotIn(31, state) + self.assertEqual(state[30], pointer) + + def test_does_not_dereference_mutable_pointer_globals(self): + code = words(0x3c800000, 0x38840000, 0x80840000, 0x48000001, 0x4e800020) + obj = fixture(code=code, call_offsets=(12,)) + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_relocated_data_word_is_not_character_bytes(self): + obj = fixture(b"ABCDEFG\0") + obj.info.relocations[2] = {0: jump.Relocation(0, 1, 0, 0)} + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_unterminated_and_control_data_are_not_strings(self): + for value in (b"unterminated", b"a\x01b\0"): + obj = fixture(value) + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_negative_and_out_of_bounds_addresses_are_not_strings(self): + obj = fixture() + for offset in (-1, 999): + self.assertIsNone(obj.string(("address", 2, offset))) + + def test_different_callees_are_not_compared(self): + obj = fixture(b"different\0") + obj.info.symbols[2] = replace(obj.info.symbols[2], name="other_consumer") + self.assertEqual(compare(obj), (0, [], None)) + + def test_named_direct_tail_call_is_observed(self): + obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000000), + call_offsets=(8,)) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_internal_branch_is_not_misclassified_as_tail_call(self): + obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000000), + call_offsets=(8,)) + obj.info.relocations[1][8] = jump.Relocation(8, 10, 0, 0) + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_indirect_call_is_observed(self): + obj = fixture(code=words(0x3c800000, 0x38840000, 0x4e800421, 0x4e800020), + call_offsets=()) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def branch_fixture(self, second_offset): + code = words(0x3fe00000, 0x3bff0000, 0x4182000c, 0x389f0000, + 0x48000008, 0x389f0000 | second_offset, 0x48000001, 0x4e800020) + return fixture(b"first\0\0\0second\0", code, (24,)) + + def test_conflicting_control_flow_addresses_are_unknown(self): + obj = self.branch_fixture(8) + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_identical_control_flow_addresses_are_retained(self): + obj = self.branch_fixture(0) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_backward_loop_converges(self): + code = words(0x3fe00000, 0x3bff0000, 0x389f0000, + 0x48000001, 0x4082fff8, 0x4e800020) + obj = fixture(code=code, call_offsets=(12,)) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_conditional_return_keeps_fallthrough(self): + code = words(0x3c800000, 0x38840000, 0x4d820020, 0x48000001, 0x4e800020) + obj = fixture(code=code, call_offsets=(12,)) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_unconditional_branch_skips_dead_call(self): + code = words(0x3c800000, 0x38840000, 0x42800008, 0x48000001, 0x4e800020) + obj = fixture(code=code, call_offsets=(12,)) + self.assertEqual(compare(obj, obj), (0, [], None)) + + def test_different_function_sizes_are_reported_as_skipped(self): + obj = fixture(code=words(0x3c800000, 0x38840000, 0x48000001, 0x60000000, 0x4e800020)) + self.assertEqual(compare(obj), (0, [], "different function sizes")) + + def test_duplicate_function_is_invalid(self): + obj = fixture() + obj.info.symbols.append(obj.info.symbols[0]) + with self.assertRaisesRegex(ValueError, "one defined symbol"): + compare(obj) + + def test_invalid_code_extent_is_rejected(self): + obj = fixture() + obj.data[1] = b"" + with self.assertRaisesRegex(ValueError, "code is unavailable"): + compare(obj) + + def test_conditional_link_is_explicitly_unsupported(self): + obj = fixture(code=words(0x41820009, 0x60000000, 0x4e800020), + call_offsets=(), references=[]) + with self.assertRaisesRegex(ValueError, "branch-and-link"): + compare(obj, obj) + + def test_switch_table_targets_are_reached(self): + code = words(0x3fe00000, 0x3bff0000, 0x4e800420, + 0x389f0000, 0x48000001, 0x4e800020, + 0x389f0008, 0x48000001, 0x4e800020) + obj = fixture(b"first\0\0\0second\0\0\0" + bytes(8), code, (16, 28)) + obj.info.symbols.append(jump.Symbol("jumptable_case", 2, 16, 8)) + obj.info.relocations[2] = { + 16: jump.Relocation(16, 1, 0, 12), + 20: jump.Relocation(20, 1, 0, 24), + } + self.assertEqual(compare(obj, obj), (2, [], None)) + + def test_bad_relocation_index_is_invalid(self): + obj = fixture() + obj.info.relocations[1][2] = replace(obj.info.relocations[1][2], symbol=999) + with self.assertRaisesRegex(ValueError, "symbol index"): + compare(obj) + + def test_shift_jis_bytes_are_preserved(self): + obj = fixture(bytes.fromhex("837483408343838b96bc82cc89fce28282f08c9f8f6f0a00")) + self.assertEqual(compare(obj, obj), (1, [], None)) + + def test_automatic_missing_name_is_disclosed_not_guessed(self): + with tempfile.TemporaryDirectory() as directory: + report = Path(directory) / "report.json" + report.write_text(json.dumps({"units": [{"name": "main/demo", "functions": [ + {"name": "compiler_alias", "fuzzy_match_percent": 100}]}]})) + output = io.StringIO() + with patch.object(tool, "read_object", return_value=fixture()), contextlib.redirect_stdout(output): + result = tool.main(["demo", "--report", str(report)]) + self.assertEqual(result, 0) + parsed = json.loads(output.getvalue()) + self.assertEqual(parsed["checked_arguments"], 0) + self.assertEqual(len(parsed["skipped_functions"]), 1) + output = io.StringIO() + with patch.object(tool, "read_object", return_value=fixture()), contextlib.redirect_stdout(output): + result = tool.main(["demo", "--report", str(report), "--function", "compiler_alias"]) + self.assertEqual(result, 2) + + def test_cli_reports_candidates_and_nonzero_exit(self): + with tempfile.TemporaryDirectory() as directory: + report = Path(directory) / "report.json" + report.write_text(json.dumps({"units": [{"name": "main/demo", "functions": [ + {"name": "dispatch", "fuzzy_match_percent": 100}]}]})) + output = io.StringIO() + def read(path): + return fixture(b"wrong\0") if "src" in path.parts else fixture() + with patch.object(tool, "read_object", side_effect=read), contextlib.redirect_stdout(output): + result = tool.main(["demo", "--report", str(report)]) + self.assertEqual(result, 1) + self.assertEqual(len(json.loads(output.getvalue())["candidates"]), 1) + + def test_rejects_unsafe_unit_paths(self): + for name in ("../outside", "/absolute"): + with self.assertRaisesRegex(ValueError, "relative unit"): + tool.unit_path(name) + + +if __name__ == "__main__": + unittest.main() -- 2.49.1 From f78a686e3216ae4be40493a9fbc2c0b340eb6051 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:05:41 -0500 Subject: [PATCH 36/63] Correct AOSS allocation callback symbol signatures (#759) --- config/43U/symbols.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 644e6f77..0a5c2b44 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -5129,8 +5129,8 @@ __ct__Q33ipl5scene10AOSSThreadFPQ23EGG4Heap = .text:0x813FCA0C; // type:function destroy__Q33ipl5scene10AOSSThreadFi = .text:0x813FCAA0; // type:function size:0x84 __dt__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB24; // type:function size:0x70 start__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB94; // type:function size:0xF8 -aossAlloc__Q33ipl5scene10AOSSThreadFv = .text:0x813FCC8C; // type:function size:0x58 -aossFree__Q33ipl5scene10AOSSThreadFv = .text:0x813FCCE4; // type:function size:0x50 +aossAlloc__Q33ipl5scene10AOSSThreadFUll = .text:0x813FCC8C; // type:function size:0x58 +aossFree__Q33ipl5scene10AOSSThreadFUlPvl = .text:0x813FCCE4; // type:function size:0x50 Run__Q33ipl5scene10AOSSThreadFv = .text:0x813FCD34; // type:function size:0xEC cancel__Q33ipl5scene10AOSSThreadFv = .text:0x813FCE20; // type:function size:0x50 finish__Q33ipl5scene10AOSSThreadFP13NCDAossConfigPi = .text:0x813FCE70; // type:function size:0x2FC -- 2.49.1 From c44fbd720965dadcc282b8cea9f6fba352c2f559 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:07:43 -0500 Subject: [PATCH 37/63] match(pf_file 45/45) (fz2b) (worker 26c4b368) (#760) --- libs/RVL_SDK/src/fa/pf_file.c | 16 ++- tools/decomp-assist/fz2.attempts.md | 155 ++++++++++++++++++++++++++++ 2 files changed, 162 insertions(+), 9 deletions(-) diff --git a/libs/RVL_SDK/src/fa/pf_file.c b/libs/RVL_SDK/src/fa/pf_file.c index 9b4f9e95..608ee53f 100644 --- a/libs/RVL_SDK/src/fa/pf_file.c +++ b/libs/RVL_SDK/src/fa/pf_file.c @@ -647,18 +647,16 @@ void PFFILE_Cursor_MoveToClusterEnd(PFFILE_FILE* file, pf_u32 size) { } } -PFFILE_SFD* PFFILE_GetSFD(PF_VOLUME* volume, PF_DIR_ENT* entry) { - PFFILE_VOLUME_DIRS* volume_dirs = (PFFILE_VOLUME_DIRS*)volume; - PFFILE_SFD* first_free_sfd = PF_NULL; - PFFILE_SFD* sfd = volume_dirs->sfds; +PFFILE_SFD* PFFILE_GetSFD(PFFILE_VOLUME_DIRS* volume_dirs, PF_DIR_ENT* entry) { pf_u32 first_free_index = 0; - pf_u32 index = 0; + PFFILE_SFD* first_free_sfd = PF_NULL; + pf_u32 index; - for (; index < 5; index++, sfd++) { + for (index = 0; index < 5; index++) { if ((volume_dirs->sfds[index].stat & 1) == 0 || ((volume_dirs->sfds[index].stat & 1) != 0 && (!volume_dirs->sfds[index].stat & 2) != 0)) { if (first_free_sfd == PF_NULL) { - first_free_sfd = sfd; + first_free_sfd = &volume_dirs->sfds[index]; first_free_index = index; } } else if (entry->p_vol == volume_dirs->sfds[index].dir_entry.p_vol && @@ -922,7 +920,7 @@ pf_s32 PFFILE_p_fopen(PF_VOLUME* volume, PF_STR* path, pf_u32 open_mode, } } volume = entry.p_vol; - sfd = PFFILE_GetSFD(volume, &entry); + sfd = PFFILE_GetSFD((PFFILE_VOLUME_DIRS*)volume, &entry); if (sfd == PF_NULL) { return 0x15; } @@ -1409,7 +1407,7 @@ pf_s32 PFFILE_FsexecOpenFile(PF_DIR_ENT* entry, PFFILE_ENT_ITER* iter, } else { PFENT_getcurrentDateTimeForEnt(&entry->access_date, &access_time); } - sfd = PFFILE_GetSFD(volume, entry); + sfd = PFFILE_GetSFD((PFFILE_VOLUME_DIRS*)volume, entry); if (sfd == PF_NULL) { return 0x15; } diff --git a/tools/decomp-assist/fz2.attempts.md b/tools/decomp-assist/fz2.attempts.md index d6affd85..e3c88408 100644 --- a/tools/decomp-assist/fz2.attempts.md +++ b/tools/decomp-assist/fz2.attempts.md @@ -228,3 +228,158 @@ Before -> after instruction-exact functions / matched code bytes / matched data - kpr_lib: 8->9 / 1152->1536 / 1104->1104. - zconvert: 2->3 / 884->1380 / 112->112. Source commits: 57bab7c8, 36278f38. No uncertainty about the reported measurements; remaining source levers unknown. + +# Round 2 after landing +Baseline cbf6363d0f5e07b6dceadc43693694c14d58a229 +- Zi8getKeyLayout / r2 inline layout helper with existing argument order: 18/182 instructions; structural 187, positional differences 180 +- Zi8getKeyLayout / r2 inline layout helper with work pointer first: 18/182 instructions; structural 187, positional differences 180 +- Zi8getKeyLayout / r2 inline layout helper with wide scalars: BUILD FAIL tkey.c -o build/43U/src/libs/RVLMiddleware/eZiText/src/clib && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/eZiText/src/clib/zmtkey.d build/43U/src/libs/RVLMiddleware/eZiText/src/clib/zmtkey.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\eZiText\src\clib\zmtkey.c # ----------------------------------------------------- # 61: if (!Zi8MapKeyCode(key, &key, __zi8_work_data)) { # Error: ^ # (10209) illegal implicit conversion from 'unsigned long *' to # 'unsigned short *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. + +Round 2 live diagnosis, all pools identical before source experiments. +- Zi8getKeyLayout: same 0x40 frame, 182/182 instructions, branches, operands and inline boundaries equal after register normalization. Language/tableCount r26/r27 coloring remains. +- PFFILE_GetSFD: same 0x20 frame, 113/113 instructions; indexed traversal generates three induction updates in different order; volume/entry/free-index saved registers differ. +- Zi8ConvertUC2Key: same 0x40 frame, 207/207 instructions, branches/temporaries/operands/helper boundaries equal after register normalization. Work/key r27/r28 coloring remains. +All three owned sources identical to newly fetched origin/main before their initial function investigations. +- Zi8getKeyLayout / r2 split primary table lookup assignment from condition: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 split both table lookup assignments from conditions: 182/182 instructions; structural 0, positional differences 22 +- Zi8getKeyLayout / r2 signed 16 bit count with unsigned reads: 182/182 instructions; structural 3, positional differences 16 +- Zi8getKeyLayout / r2 direct count addition instead of compound assignment: 183/182 instructions; structural 7, positional differences 72 +- Zi8getKeyLayout / r2 unsigned sum widened only at increment: 184/182 instructions; structural 8, positional differences 75 +- Zi8getKeyLayout / r2 index initialized with count in common assignment: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 key count helper ziU16 locals and ziU16 result: 175/182 instructions; structural 13, positional differences 68 +- Zi8getKeyLayout / r2 key count helper ziU16 locals and ziU32 result: 175/182 instructions; structural 13, positional differences 68 +- Zi8getKeyLayout / r2 key count helper ziU32 locals and ziU16 result: 175/182 instructions; structural 13, positional differences 68 +- Zi8getKeyLayout / r2 key count helper ziU32 locals and ziU32 result: 175/182 instructions; structural 13, positional differences 68 +- PFFILE_GetSFD / r2 pointer advance in body before index loop update: 113/113 instructions; structural 0, positional differences 18 +- PFFILE_GetSFD / r2 index advance in body before pointer loop update: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / r2 while loop with separate induction updates: 113/113 instructions; structural 0, positional differences 18 +- PFFILE_GetSFD / r2 prefix index and pointer updates: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / r2 initialize saved slot index before free slot pointer: 113/113 instructions; structural 2, positional differences 19 +- PFFILE_GetSFD / r2 free descriptor predicate helper: 121/113 instructions; structural 13, positional differences 113 +- PFFILE_GetSFD / r2 matching directory entry comparison helper: 117/113 instructions; structural 12, positional differences 102 +- Zi8ConvertUC2Key / r2 signed key with unsigned bit-pattern reads: 208/207 instructions; structural 17, positional differences 53 +- Zi8ConvertUC2Key / r2 constant character and language parameters: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 explicit constant work pointer parameter: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 common result block entered by goto after table lookup: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 inverse entry exclusion condition nested body: 206/207 instructions; structural 13, positional differences 137 +- PFFILE_GetSFD / r2 use existing correct SDK volume layout in internal function signature: 113/113 instructions; structural 2, positional differences 28 +- PFFILE_GetSFD / r2 correct volume signature and pointer-first loop latch: 113/113 instructions; structural 0, positional differences 28 +- PFFILE_GetSFD / r2 correct volume signature and first free index declaration first: 113/113 instructions; structural 2, positional differences 2 +- PFFILE_GetSFD / r2 signed traversal index: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / r2 signed saved slot index: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / r2 signed traversal and saved slot indices: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / r2 unsigned int traversal and saved slot indices: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / r2 constant volume alias and entry pointers: 113/113 instructions; structural 2, positional differences 18 +- PFFILE_GetSFD / r2 typed volume saved index first pointer-first latch: 113/113 instructions; structural 0, positional differences 2 +- PFFILE_GetSFD / r2 typed volume saved index first body pointer update: 113/113 instructions; structural 0, positional differences 2 +- PFFILE_GetSFD / r2 typed volume saved index first separate while updates: 113/113 instructions; structural 0, positional differences 2 +- PFFILE_GetSFD / r2 typed volume saved index first explicit pointer assignment: 113/113 instructions; structural 0, positional differences 2 +- PFFILE_GetSFD / r2 typed volume saved index first explicit index assignment: 113/113 instructions; structural 0, positional differences 2 +- PFFILE_GetSFD / r2 typed volume saved index first both compound additions: 113/113 instructions; structural 0, positional differences 2 +- PFFILE_GetSFD / r2 typed volume saved index first next index temporary: 113/113 instructions; structural 0, positional differences 2 +- PFFILE_GetSFD / r2 typed volume saved index first next descriptor temporary: 113/113 instructions; structural 2, positional differences 2 +- PFFILE_GetSFD / r2 original formal volume retained after traversal: 113/113 instructions; structural 4, positional differences 5 +- PFFILE_GetSFD / r2 original formal volume retained pointer-first latch: 113/113 instructions; structural 2, positional differences 5 +- PFFILE_GetSFD / r2 volume traversal alias declared after saved indices: 113/113 instructions; structural 4, positional differences 5 +- Zi8ConvertUC2Key / r2 ziPtr work context local declared first: 213/207 instructions; structural 44, positional differences 206 +- Zi8ConvertUC2Key / r2 ziPtr work context local declared last: 213/207 instructions; structural 44, positional differences 206 +- Zi8ConvertUC2Key / r2 struct __zi8_work_data_s* work context local declared first: 213/207 instructions; structural 44, positional differences 206 +- Zi8ConvertUC2Key / r2 struct __zi8_work_data_s* work context local declared last: 213/207 instructions; structural 44, positional differences 206 +- Zi8getKeyLayout / r2 noncompound accumulator expression same operand order: 183/182 instructions; structural 7, positional differences 72 +- Zi8getKeyLayout / r2 zero test using logical not for lookup result: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 chained initialization from index to total: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 prefix key index increments in all traversal loops: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 builtin character count assignment separated from zero test: 182/182 instructions; structural 1, positional differences 17 +- PFFILE_GetSFD / r2 typed volume derive free slot directly from indexed array: 113/113 instructions; structural 0, positional differences 0; EXACT candidate retained +- PFFILE_GetSFD / r2 typed volume indexed free slot with for loop: 113/113 instructions; structural 0, positional differences 0; EXACT candidate retained +- PFFILE_GetSFD / r2 typed volume indexed free slot and declaration-only loop index: 113/113 instructions; structural 0, positional differences 0; EXACT candidate retained +- Zi8ConvertUC2Key / r2 separate every short declaration: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 key grouped with count index and bounds: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 lookup index kept wide with narrow reads: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 default mapping pointer const qualification: 208/207 instructions; structural 13, positional differences 53 + +Round 2 PFFILE_GetSFD structural resolution: the existing PFFILE_VOLUME_DIRS type is the SDK layout used for all accessed fields, with sfds at 0x40, sizeof(SFD)=0x29c and cluster-link at 0x1f94. Use that type directly in the internal function signature, cast the two callers without changing their generated code. Saved slot index initialization precedes free slot pointer. Derive the free slot from the indexed array instead of maintaining a redundant pointer. The compiler now creates its two induction pointers in target order. 113/113 instructions, diffs 0. Full gate 45/45 exact, code 17820/17820, no data symbols; correct DOL; zero regressions/forbidden/style. + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVL_SDK/src/fa/pf_file] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_file] objdiff: code 17820/17820 data None/None functions 45/45 fuzzy 100.0000 linked code 0 +[libs/RVL_SDK/src/fa/pf_file] instruction-exact functions: 45/45 +[libs/RVL_SDK/src/fa/pf_file] section .text size 17820 match 100.0 +[libs/RVL_SDK/src/fa/pf_file] baseline: code 17368/17820 data None functions 44 fuzzy 99.9771 +regressions vs baseline: 0 +global matched_code_percent: 88.60345 -> 88.61855 +global fuzzy_match_percent: 99.45553 -> 99.45567 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.50994 -> 98.50994 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` +- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 readonly pointer qualifiers customTable: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress,customTable: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r2 readonly pointer qualifiers keyChars: 183/182 instructions; structural 5, positional differences 140 +- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress,keyChars: 183/182 instructions; structural 5, positional differences 140 +- Zi8getKeyLayout / r2 readonly pointer qualifiers customTable,keyChars: 183/182 instructions; structural 5, positional differences 140 +- Zi8getKeyLayout / r2 readonly pointer qualifiers dataAddress,customTable,keyChars: 183/182 instructions; structural 5, positional differences 140 +- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 readonly pointer qualifiers ranges: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table,ranges: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 readonly pointer qualifiers entry: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table,entry: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 readonly pointer qualifiers ranges,entry: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r2 readonly pointer qualifiers table,ranges,entry: 207/207 instructions; structural 0, positional differences 18 + +Round 2 compiler diagnosis: eZiText units compile with -inline off -opt off, explaining why new helper calls shortened callers without matching target instruction streams. SDK pf_file uses -O4,p -inline auto -ipa file; structural source changes were effective there. No compiler flags changed. zmtkey declaration search tried 52 orders, no improvement, source restored. + +Round 2 Zi8ConvertUC2Key expanded declaration search: split the four grouped short declarations, explored 93 orders across all nine declarations, best remained structural 0 / 18 differences. Restored original source, including grouped declarations. + +## Round 2 remaining-function audit +- Zi8getKeyLayout: 25 distinct logged source experiments this round; at least three complete, no exact candidate. +- Zi8ConvertUC2Key: 20 distinct logged source experiments this round; at least three complete, no exact candidate. +- PFFILE_GetSFD: exact 113/113, zero instruction differences; all 45 target functions exact after full gate. +- No nonexact source changes retained. Data unchanged and fully paired. Only pf_file source and this attempts log changed. + +## Round 2 final full gate over all owned units +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] objdiff: code 1488/2216 data 60/60 functions 3/4 fuzzy 99.8466 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] instruction-exact functions: 3/4 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section .text size 2216 match 99.84657 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extab size 24 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extabindex size 36 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] below 100: Zi8getKeyLayout 99.53297 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] baseline: code 1488/2216 data 60 functions 3 fuzzy 99.8466 +[libs/RVL_SDK/src/fa/pf_file] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_file] objdiff: code 17820/17820 data None/None functions 45/45 fuzzy 100.0000 linked code 0 +[libs/RVL_SDK/src/fa/pf_file] instruction-exact functions: 45/45 +[libs/RVL_SDK/src/fa/pf_file] section .text size 17820 match 100.0 +[libs/RVL_SDK/src/fa/pf_file] baseline: code 17368/17820 data None functions 44 fuzzy 99.9771 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zconvert] objdiff: code 1380/2208 data 112/112 functions 3/4 fuzzy 99.8370 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] instruction-exact functions: 3/4 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .rodata size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .text size 2208 match 99.83696 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extab size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extabindex size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] below 100: Zi8ConvertUC2Key 99.565216 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] baseline: code 1380/2208 data 112 functions 3 fuzzy 99.8370 +regressions vs baseline: 0 +global matched_code_percent: 88.60345 -> 88.61855 +global fuzzy_match_percent: 99.45553 -> 99.45567 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.50994 -> 98.50994 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Instruction-exact functions / matched code bytes / matched data bytes, before -> after: +- zmtkey: 3->3 / 1488->1488 / 60->60. +- pf_file: 44->45 / 17368->17820 / no data symbols. +- zconvert: 3->3 / 1380->1380 / 112->112. +Commit ac0541dd contains the exact source improvement. Remaining eZiText compiler coloring fixes are unknown. -- 2.49.1 From d9cf3598fce3c7991cbc370ad84612a1294866cb Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:09:55 -0500 Subject: [PATCH 38/63] match(iplMemoryCardManager 18/26) (near9f) (worker 05f3938f) (#761) --- config/43U/symbols.txt | 22 +- include/iplMemoryCardLib.h | 6 +- src/scene/memoryCard/iplMemoryCardManager.cpp | 6 +- tools/decomp-assist/partial-oct2f.attempts.md | 1218 +++++++++++++++++ .../decomp-assist/partial-oct2f.data-gate.txt | 58 + .../partial-oct2f.final-gate.txt | 58 + .../decomp-assist/partial-oct2f.icon-gate.txt | 58 + .../partial-oct2f.initial-gate.txt | 57 + tools/decomp-assist/partial-oct2f.report.txt | 50 + 9 files changed, 1517 insertions(+), 16 deletions(-) create mode 100644 tools/decomp-assist/partial-oct2f.attempts.md create mode 100644 tools/decomp-assist/partial-oct2f.data-gate.txt create mode 100644 tools/decomp-assist/partial-oct2f.final-gate.txt create mode 100644 tools/decomp-assist/partial-oct2f.icon-gate.txt create mode 100644 tools/decomp-assist/partial-oct2f.initial-gate.txt create mode 100644 tools/decomp-assist/partial-oct2f.report.txt diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 0a5c2b44..af209eb6 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -13892,7 +13892,7 @@ lbl_816105C8 = .rodata:0x816105C8; // type:object size:0x10 lbl_816105D8 = .rodata:0x816105D8; // type:object size:0x30 lbl_81610608 = .rodata:0x81610608; // type:object size:0x300 lbl_81610908 = .rodata:0x81610908; // type:object size:0x10 -lbl_81610918 = .rodata:0x81610918; // type:object size:0x10 +sCaptureSizes__Q23ipl5scene = .rodata:0x81610918; // type:object size:0x10 lbl_81610928 = .rodata:0x81610928; // type:object size:0x20 data:4byte scAnmTable__Q23ipl5scene = .rodata:0x81610948; // type:object size:0x1A8 scope:local lbl_81610AF0 = .rodata:0x81610AF0; // type:object size:0x30 data:4byte @@ -13939,7 +13939,7 @@ csLanguageDependencyDataKOR__Q29textinput9inputform = .rodata:0x81615288; // typ csLanguageDependencyDataCHN__Q29textinput9inputform = .rodata:0x81615298; // type:object size:0x10 scope:local pppURLCheck = .rodata:0x816152A8; // type:object size:0x28 scope:local lbl_816152D0 = .rodata:0x816152D0; // type:object size:0x10 scope:local data:4byte -csAninationFile__Q29textinput12candidatebox = .rodata:0x816152E0; // type:object size:0x378 scope:local +csAninationFile__Q29textinput12candidatebox = .rodata:0x816152E0; // type:object size:0x374 scope:local lbl_81615658 = .rodata:0x81615658; // type:object size:0xA0 scope:local data:4byte csAninationFile__Q29textinput7toolbar = .rodata:0x816156F8; // type:object size:0x1DC scope:local data:4byte csAninationFile__Q29textinput11predictlang = .rodata:0x816158D8; // type:object size:0x268 scope:local @@ -17009,9 +17009,9 @@ lbl_8165542D = .data:0x8165542D; // type:object size:0x14 data:string lbl_81655441 = .data:0x81655441; // type:object size:0x12 data:string lbl_81655453 = .data:0x81655453; // type:object size:0xF data:string lbl_81655462 = .data:0x81655462; // type:object size:0x62 -lbl_816554C4 = .data:0x816554C4; // type:object size:0x1C -lbl_816554E0 = .data:0x816554E0; // type:object size:0x18 -lbl_816554F8 = .data:0x816554F8; // type:object size:0x140 +__vt__Q33ipl5scene25SDTitleButtonEventHandler = .data:0x816554C4; // type:object size:0x1C +__vt__Q33ipl5scene23SDTitlePaneEventHandler = .data:0x816554E0; // type:object size:0x18 +__vt__Q33ipl5scene14SDChannelTitle = .data:0x816554F8; // type:object size:0x68 @10016 = .data:0x81655638; // type:object size:0xA scope:local data:string ...data.0 = .data:0x81655638; // type:label scope:local smButtonName__Q33ipl5scene8SDButton = .data:0x81655644; // type:object size:0x10 data:4byte @@ -17673,17 +17673,17 @@ lbl_8165DCD4 = .data:0x8165DCD4; // type:object size:0xF data:string __vt__Q39textinput12candidatebox13PredictWindow = .data:0x8165DCE4; // type:object size:0x2C __vt__Q39textinput12candidatebox12OnOffAnmPane = .data:0x8165DD10; // type:object size:0x2C __vt__Q39textinput12candidatebox22CandidateScrollAnmPane = .data:0x8165DD3C; // type:object size:0x2C -__vt__Q39textinput12candidatebox20CandidateTextAnmPane = .data:0x8165DD68; // type:object size:0x30 +__vt__Q39textinput12candidatebox20CandidateTextAnmPane = .data:0x8165DD68; // type:object size:0x2C __vt__Q39textinput12candidatebox12LayoutByNW4R = .data:0x8165DD98; // type:object size:0x130 __vt__Q39textinput12candidatebox12UITextWindow = .data:0x8165DEC8; // type:object size:0x2C __vt__Q39textinput12candidatebox13UIOnOffButton = .data:0x8165DEF4; // type:object size:0x2C __vt__Q39textinput12candidatebox8UIButton = .data:0x8165DF20; // type:object size:0x1C __vt__Q39textinput12candidatebox10UITextArea = .data:0x8165DF3C; // type:object size:0x2C -__vt__Q39textinput12candidatebox5UIObj = .data:0x8165DF68; // type:object size:0x20 +__vt__Q39textinput12candidatebox5UIObj = .data:0x8165DF68; // type:object size:0x1C __vt__Q39textinput12candidatebox12EventHandler = .data:0x8165DF88; // type:object size:0x20 __vt__Q39textinput12candidatebox4Base = .data:0x8165DFA8; // type:object size:0x54 __vt__Q39textinput12candidatebox18CandidateBoxCaller = .data:0x8165DFFC; // type:object size:0x1C -__vt__Q39textinput11nw4rmanager11AnmObserver = .data:0x8165E018; // type:object size:0x4C +__vt__Q39textinput11nw4rmanager11AnmObserver = .data:0x8165E018; // type:object size:0xC __vt__Q39textinput4util12AnimObserver = .data:0x8165E064; // type:object size:0xC @6142 = .data:0x8165E070; // type:object size:0xC scope:local data:string @6143 = .data:0x8165E080; // type:object size:0x10 scope:local data:string @@ -20715,7 +20715,7 @@ lbl_81694B48 = .sdata2:0x81694B48; // type:object size:0x4 align:4 data:float lbl_81694B4C = .sdata2:0x81694B4C; // type:object size:0x4 align:4 data:float lbl_81694B50 = .sdata2:0x81694B50; // type:object size:0x4 align:4 data:float lbl_81694B58 = .sdata2:0x81694B58; // type:object size:0x8 align:8 data:double -lbl_81694B60 = .sdata2:0x81694B60; // type:object size:0x8 data:wstring +sMissingTitle__Q23ipl5scene = .sdata2:0x81694B60; // type:object size:0x8 data:wstring lbl_81694B68 = .sdata2:0x81694B68; // type:object size:0x4 align:4 data:float lbl_81694B6C = .sdata2:0x81694B6C; // type:object size:0x4 align:4 data:float lbl_81694B70 = .sdata2:0x81694B70; // type:object size:0x4 align:4 data:float @@ -22258,7 +22258,7 @@ lbl_81696E20 = .sdata:0x81696E20; // type:object size:0x4 data:string lbl_81696E24 = .sdata:0x81696E24; // type:object size:0x7 data:string lbl_81696E30 = .sdata:0x81696E30; // type:object size:0x7 data:string lbl_81696E37 = .sdata:0x81696E37; // type:object size:0x7 data:string -lbl_81696E40 = .sdata:0x81696E40; // type:object size:0x8 data:4byte +sButtonNames__Q23ipl5scene = .sdata:0x81696E40; // type:object size:0x8 data:4byte lbl_81696E48 = .sdata:0x81696E48; // type:object size:0x6 data:string lbl_81696E4E = .sdata:0x81696E4E; // type:object size:0x6 data:string lbl_81696E54 = .sdata:0x81696E54; // type:object size:0x6 data:string @@ -22273,7 +22273,7 @@ lbl_81696E84 = .sdata:0x81696E84; // type:object size:0x6 data:string lbl_81696E8A = .sdata:0x81696E8A; // type:object size:0x6 data:string lbl_81696E90 = .sdata:0x81696E90; // type:object size:0x7 data:string lbl_81696E97 = .sdata:0x81696E97; // type:object size:0x7 data:string -lbl_81696EA0 = .sdata:0x81696EA0; // type:object size:0x8 data:4byte +sTextNames__Q23ipl5scene = .sdata:0x81696EA0; // type:object size:0x8 data:4byte lbl_81696EA8 = .sdata:0x81696EA8; // type:object size:0x4 lbl_81696EAC = .sdata:0x81696EAC; // type:object size:0x4 lbl_81696EB0 = .sdata:0x81696EB0; // type:object size:0x4 data:string diff --git a/include/iplMemoryCardLib.h b/include/iplMemoryCardLib.h index 9f9d6d32..f8b0a190 100644 --- a/include/iplMemoryCardLib.h +++ b/include/iplMemoryCardLib.h @@ -37,7 +37,11 @@ namespace ipl { u8 unk_0x06; // 0x06 u8 unk_0x07; // 0x07 u8 iconFmt[8]; // 0x08 - u16 anmFrameBits; // 0x10 +#ifdef IPL_MEMORY_CARD_MANAGER_CPP + volatile u16 anmFrameBits; +#else + u16 anmFrameBits; +#endif #ifdef IPL_MEMORY_CARD_MANAGER_CPP volatile s16 anmMax; #else diff --git a/src/scene/memoryCard/iplMemoryCardManager.cpp b/src/scene/memoryCard/iplMemoryCardManager.cpp index 96e1ff35..5b74505d 100644 --- a/src/scene/memoryCard/iplMemoryCardManager.cpp +++ b/src/scene/memoryCard/iplMemoryCardManager.cpp @@ -345,12 +345,10 @@ void MemoryCardManager::update_change_cardstate(u8 slot) { GXTexObj* MemoryCardManager::create_icon(u8 slot, s16 index) { memorycard::IconState (*icons)[0x7f] = reinterpret_cast(memorycard::getIconStateArray()); int total = 0; - u32 file = mFile[slot][index].fileNo; s16 frame = 0; + u32 file = mFile[slot][index].fileNo; do { - u32 shift = frame << 1; - frame++; - total += ((icons[slot][file].anmFrameBits >> shift) & 3) * 4; + total += ((icons[slot][file].anmFrameBits >> (frame++ << 1)) & 3) * 4; if (mFileCell[slot][file].iconAnmCounter <= total) { break; } diff --git a/tools/decomp-assist/partial-oct2f.attempts.md b/tools/decomp-assist/partial-oct2f.attempts.md new file mode 100644 index 00000000..3aeaa0cc --- /dev/null +++ b/tools/decomp-assist/partial-oct2f.attempts.md @@ -0,0 +1,1218 @@ +43U structural matching run. Initial HEAD 0cc4c57ecdeeee25872bf7c93c654f6fceb5e1ab +src/keyboard/tiCandidateBox pool-first +POOL IDENTICAL up to 57 (mine=57 base=57) + +src/scene/sdChannelTitle/iplSDChannelTitle pool-first +POOL IDENTICAL up to 55 (mine=55 base=55) + +libs/RevoEX/src/nhttp/NHTTP_recvbuf pool-first +POOL IDENTICAL up to 0 (mine=0 base=0) + +src/scene/memoryCard/iplMemoryCardManager pool-first +POOL IDENTICAL up to 0 (mine=0 base=0) + +DATA ownership: memory/NHTTP have .text only; both matched_data_percent=100 with no data symbols. Candidate rebuilt after #742; pane-name bytes identical; no code function gains. +DATA PROOF lbl_816554C4 -> __vt__Q33ipl5scene25SDTitleButtonEventHandler, size 0x1C->0x1C, same address: constructor .text+0x82 HA/.text+0x8a LO references .data+0x52c; target 5 virtual slots+2 ABI words and source vtable 28 bytes at same offset. +DATA PROOF lbl_816554E0 -> __vt__Q33ipl5scene23SDTitlePaneEventHandler, size 0x18->0x18, same address: create .text+0x612 HA/.text+0x61a LO references .data+0x548; target 4 virtual slots+2 ABI words and source vtable 24 bytes at same offset. +DATA PROOF lbl_816554F8 -> __vt__Q33ipl5scene14SDChannelTitle, size 0x140->0x68, same address: constructor .text+0x22 HA/.text+0x2a LO references .data+0x560; target relocations end .data+0x5c4, 26 words=104 bytes, remaining 216 bytes have no relocations and are weak-data neighbours/padding. +DATA PROOF lbl_81696E40 -> sButtonNames__Q23ipl5scene, size 0x8->0x8, same address: create .text+0x6f8/0x740 and event handlers load .sdata+0x10; two pointer relocations .sdata+0x10/0x14 point to B_BtnA/B_BtnB, matching char*[2] source. +DATA PROOF lbl_81696EA0 -> sTextNames__Q23ipl5scene, size 0x8->0x8, same address: create .text+0x448/0x478 loads .sdata+0x70; two pointer relocations .sdata+0x70/0x74 point to T_BtnA/T_BtnB, matching char*[2] source. +DATA PROOF lbl_81610918 -> sCaptureSizes__Q23ipl5scene, size 0x10->0x10, same address: create .text+0x95a HA/.text+0x962 LO addresses .rodata+0; indexed words 128/96/176/96 match int[2][2] source. +DATA PROOF lbl_81694B60 -> sMissingTitle__Q23ipl5scene, size 0x8->0x8, same address: loadTitleBanner .text+0x19b8 SDA references .sdata2+0; wchar_t[4] question marks + NUL bytes 003f003f003f0000 match source. +DATA attempt SD real object names and vtable extent: {'fuzzy_match_percent': 99.89347, 'total_code': '18624', 'matched_code': '17444', 'matched_code_percent': 93.66409, 'total_data': '1976', 'matched_data': '240', 'matched_data_percent': 12.145749, 'total_functions': 69, 'matched_functions': 64, 'matched_functions_percent': 92.753624, 'total_units': 1} +DATA EXTENT PROOF __vt__Q39textinput12candidatebox20CandidateTextAnmPane 0x30->0x2C same address: two ABI words and nine virtual function slots; final relocation .data+0xac0, source vtable44 bytes; four zero alignment bytes before LayoutByNW4R +DATA EXTENT PROOF __vt__Q39textinput12candidatebox5UIObj 0x20->0x1C same address: two ABI words and five virtual slots; final relocation .data+0xcb0, source28 bytes; four zero alignment bytes before EventHandler +DATA EXTENT PROOF __vt__Q39textinput11nw4rmanager11AnmObserver 0x4C->0xC same address: AnmObserver has one virtual onChangeAnmState slot and two ABI words; source12 bytes and target no relocations (linker deduplicated), 64 trailing bytes belong to neighbours/zero space +DATA EXTENT PROOF csAninationFile__Q29textinput12candidatebox 0x378->0x374 same address: AnimationFile is u32 id+char fileName[64]=68 bytes, thirteen records=884 bytes; PaneToAnimation pAnims relocations reference 0x0..0x330 stepping0x44, source symbol size0x374; four trailing bytes align pointer tables +DATA Candidate scEmptyWChars[4] last element 1->0: target .sdata+8 eight bytes zero, all code references the empty wide-character array at that offset; source array is 8 bytes (wchar_t=2). +DATA measured src/keyboard/tiCandidateBox {'fuzzy_match_percent': 99.4395, 'total_code': '24000', 'matched_code': '19988', 'matched_code_percent': 83.28333, 'total_data': '4652', 'matched_data': '1132', 'matched_data_percent': 24.33362, 'total_functions': 112, 'matched_functions': 109, 'matched_functions_percent': 97.32143, 'total_units': 1} +DATA measured src/scene/sdChannelTitle/iplSDChannelTitle {'fuzzy_match_percent': 99.89347, 'total_code': '18624', 'matched_code': '17444', 'matched_code_percent': 93.66409, 'total_data': '1976', 'matched_data': '240', 'matched_data_percent': 12.145749, 'total_functions': 69, 'matched_functions': 64, 'matched_functions_percent': 92.753624, 'total_units': 1} +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | DATA empty wide literal | 351/352 insns structural/exact (27, 239) objdiff 92.71023% regress 0 source create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.3e7bde005d55 +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | DATA const wide literal inference | 351/352 insns structural/exact (27, 239) objdiff 92.71023% regress 0 source create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.b2a82fa26667 +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | DATA empty aggregate explicit braces | 351/352 insns structural/exact (27, 239) objdiff 92.71023% regress 0 source create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.6854ec97a2f3 +DATA empty wchar attempts reverted: every all-zero form emits .sbss (target .sdata), literal inference size2; cannot force initialized section under current rules. Existing last1 left unchanged, records byte mismatch. +START isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl origin/main b3c23834a7c4ac362ff85018a5fedd90a97befe2 upstream source UNCHANGED +src 0x1d8 base 0x1d8 insns 118/118 +diffs 2: [28, 78] + 28 M add r5, r3, r0 + B add r5, r0, r3 + 78 M add r5, r3, r0 + B add r5, r0, r3 + +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl diagnosis: frame0x30 and118 instructions exact, branch/helper boundaries exact; only28/78 final directory row+column add operands swapped. Test addressing syntax before declaration search. +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | commuted subscript file[row] | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.264979154279 +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | explicit commuted file plus row first element | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.aacea7457fa9 +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | directory struct row files member | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.a1ae5582100e +START isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl origin/main b3c23834a7c4ac362ff85018a5fedd90a97befe2 upstream source UNCHANGED +src 0x1d8 base 0x1d8 insns 118/118 +diffs 2: [28, 78] + 28 M add r5, r3, r0 + B add r5, r0, r3 + 78 M add r5, r3, r0 + B add r5, r0, r3 + +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl diagnosis: frame0x30 and118 instructions exact, branch/helper boundaries exact; only28/78 final directory row+column add operands swapped. Test addressing syntax before declaration search. +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | commuted subscript file[row] | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.5169af77e8ef +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | explicit commuted file plus row first element | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.ec93d834b8bf +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | directory struct row files member | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.db36a570c85b +DATA EXTENT TEST scEmptyWChars 8->2: all uses pass an empty wchar_t string (target bytes are zero), no relocation into following six bytes; wchar_t NUL literal size2. Candidate source currently defines wchar_t[4]; test whether source-size discrepancy is tolerated, not accepted without a complete type proof. +START isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs origin/main 08923eda6ca98c9270567edcac967fe6d30868cf upstream source UNCHANGED +src 0x68 base 0x68 insns 26/26 +diffs 8: [11, 12, 13, 14, 15, 16, 17, 18] + 11 M addi r11, r1, 0x20 + B add r4, r29, r4 + 12 M add r4, r29, r4 + B add r4, r4, r0 + 13 M add r4, r4, r0 + B mulli r5, r30, 0x1fc0 + 14 M mulli r5, r30, 0x1fc0 + B lwz r4, 8(r4) + 15 M lwz r4, 8(r4) + B add r0, r3, r5 + 16 M add r0, r3, r5 + B slwi r3, r4, 6 + 17 M slwi r3, r4, 6 + B lbzx r3, r3, r0 + 18 M lbzx r3, r3, r0 + B addi r11, r1, 0x20 + +DIAGNOSIS isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs: frame0x20,26/26 instructions; restoring-helper stack base r11 materialized early in source (before address math), target after lbzx. Three typed addressing/evaluation forms before register-only search. +DATA extent-only empty wchar test discarded: inferred string length cannot establish declared array4 size, source extent8 was known; no source/config change retained for this object. +isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs | reference binds icon member | 26/26 insns structural/exact (2, 8) objdiff 92.30769% regress 0 source isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs.e68ad93d5f04 +isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs | index copied before external accessor | 26/26 insns structural/exact (2, 8) objdiff 92.30769% regress 0 source isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs.224bd8c02185 +isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs | explicit unsigned result predicate | 26/26 insns structural/exact (2, 8) objdiff 92.30769% regress 0 source isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs.7639367669a7 +DATA STRING EXTENT PROOF lbl_81654FE2 ->0x9 same address, trailing neighbours unowned: G_OutBtn string9, next pointer array starts .data+0x54 and 7 relocations to group strings; former0x26 included 1 alignment byte plus char*[7] +DATA STRING EXTENT PROOF lbl_816550CD ->0x24 same address, trailing neighbours unowned: mn_SdcardMenuBanner_bc_OutBtn_in.brlan string36, next array begins .data+0x15c and6 pointer relocations to animation names; former0x3f absorbed3 padding bytes plus char*[6] +DATA STRING EXTENT PROOF lbl_8165517C ->0xE same address, trailing neighbours unowned: sdChanTtl.ash string14; former0x120 joined twenty following null-terminated literals used by create; source first literal symbol size14 and target matching NUL terminator +DATA STRING EXTENT PROOF lbl_81655318 ->0xF same address, trailing neighbours unowned: sound stopped newline string15; former0xb2 joined following diagnostic strings; source first literal size15 matches target bytes +DATA STRING EXTENT PROOF lbl_816553CA ->0xD same address, trailing neighbours unowned: banner.brlyt string13; former0x34 joined icon.brlyt/icon.brlan/icon_Whole.brlan; target NUL and source first literal size13 +DATA STRING EXTENT PROOF lbl_81655462 ->0x16 same address, trailing neighbours unowned: iplSDChannelTitle.cpp string22; former0x62 joined four sound-name literals; target NUL and source first literal size22 +DATA PROOF lbl_81655140 -> sBannerAnimationNames__Q23ipl5scene,0x3c->0xc same address: bindBannerAnimations .text+0x37be HA/0x37d2 LO references .data+0x1a8, three pointer relocations to banner.brlan/banner_Start.brlan/banner_Loop.brlan; following char*[3][4] begins .data+0x1b4, left unowned. +DATA after SD true string extents and banner pointer-array boundary: {'fuzzy_match_percent': 99.89347, 'total_code': '18624', 'matched_code': '17444', 'matched_code_percent': 93.66409, 'total_data': '1976', 'matched_data': '240', 'matched_data_percent': 12.145749, 'total_functions': 69, 'matched_functions': 64, 'matched_functions_percent': 92.753624, 'total_units': 1} [{'name': '.data', 'size': '1696', 'fuzzy_match_percent': 19.598541, 'metadata': {}}, {'name': '.rodata', 'size': '48', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '192', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata2', 'size': '40', 'fuzzy_match_percent': 90.0, 'metadata': {}}, {'name': '.text', 'size': '18624', 'fuzzy_match_percent': 99.89347, 'metadata': {}}] +START create_icon__Q33ipl5scene17MemoryCardManagerFUcs origin/main 08923eda6ca98c9270567edcac967fe6d30868cf upstream source UNCHANGED +src 0xcc base 0xcc insns 51/51 +diffs 19: [16, 17, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 34, 36, 38, 39, 42] + 16 M li r9, 0 + B li r8, 0 + 17 M lwz r8, 8(r4) + B lwz r9, 8(r4) + 19 M slwi r5, r8, 6 + B slwi r6, r9, 6 + 20 M mulli r6, r31, 0x1fc0 + B mulli r5, r31, 0x1fc0 + 22 M add r3, r3, r6 + B mulli r4, r9, 0x15c + 23 M mulli r4, r8, 0x15c + B add r5, r3, r5 + 24 M add r5, r5, r3 + B add r3, r4, r0 + 25 M add r3, r4, r0 + B add r4, r6, r5 + 26 M lhz r4, 0x10(r5) + B lha r5, 0x10e8(r3) + 27 M lha r3, 0x10e8(r3) + B extsh r0, r8 + 28 M extsh r0, r9 + B lhz r3, 0x10(r4) + 29 M addi r9, r9, 1 + B slwi r0, r0, 1 + 30 M slwi r0, r0, 1 + B addi r8, r8, 1 + 31 M sraw r0, r4, r0 + B sraw r0, r3, r0 + 34 M cmpw r3, r7 + B cmpw r5, r7 + 36 M extsh r0, r9 + B extsh r0, r8 + 38 M ble -40 + B ble -44 + 39 M extsh r6, r9 + B extsh r6, r8 + 42 M extsh r5, r8 + B extsh r5, r9 + +create_icon__Q33ipl5scene17MemoryCardManagerFUcs DIAGNOSIS: frame0x20;51/51 insns. Target hoists animation counter lha before loop, but rereads duration anmFrameBits lhz on every loop iteration at0xe94 (backedge0xebc->0xe90), no stores or calls inside. Source hoists lhz outside; frame/file register allocation also reversed. Check duration read/loop boundaries first. +create_icon__Q33ipl5scene17MemoryCardManagerFUcs | counter named before duration extraction | 51/51 insns structural/exact (7, 15) objdiff 87.05882% regress 0 source create_icon__Q33ipl5scene17MemoryCardManagerFUcs.3119b1fb2b08 +create_icon__Q33ipl5scene17MemoryCardManagerFUcs | remaining duration words advanced each iteration | 49/51 insns structural/exact (10, 30) objdiff 81.47059% regress 0 source create_icon__Q33ipl5scene17MemoryCardManagerFUcs.3555d482ce60 +create_icon__Q33ipl5scene17MemoryCardManagerFUcs | for frame progression with separate terminal frame | 51/51 insns structural/exact (6, 14) objdiff 87.15686% regress 0 source create_icon__Q33ipl5scene17MemoryCardManagerFUcs.b06501736219 +create_icon__Q33ipl5scene17MemoryCardManagerFUcs definition-only volatile duration experiment: target loop repeats lhz .IconState+0x10 each backedge0xebc->0xe90, no stores or calls between reads; change scoped by IPL_MEMORY_CARD_MANAGER_CPP, no other TU output. Not retained without exact code and full gate. +create_icon__Q33ipl5scene17MemoryCardManagerFUcs | duration repeated read with original scalar order | 51/51 insns structural/exact (0, 12) objdiff 98.43137% regress 0 source create_icon__Q33ipl5scene17MemoryCardManagerFUcs.f4f3cc81a163 +create_icon__Q33ipl5scene17MemoryCardManagerFUcs | duration repeated read with frame-before-file | 51/51 insns structural/exact (0, 4) objdiff 99.411766% regress 0 source create_icon__Q33ipl5scene17MemoryCardManagerFUcs.eab89c8e631d +START _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl origin/main 08923eda6ca98c9270567edcac967fe6d30868cf upstream source UNCHANGED +src 0x190 base 0x190 insns 100/100 +diffs 37: [19, 20, 22, 23, 24, 34, 39, 40, 42, 44, 45, 46, 47, 48, 57, 59, 63, 64, 65, 66] + 19 M mulli r30, r26, 0x1fc0 + B mulli r29, r26, 0x1fc0 + 20 M slwi r31, r27, 6 + B slwi r30, r27, 6 + 22 M add r0, r31, r3 + B add r0, r3, r29 + 23 M add r29, r30, r0 + B add r31, r0, r30 + 24 M add r3, r29, r28 + B add r3, r31, r28 + 34 M add r3, r29, r0 + B add r3, r31, r0 + 39 M add r4, r29, r0 + B add r4, r0, r31 + 40 M mulli r26, r27, 0x15c + B mulli r24, r27, 0x15c + 42 M addi r27, r3, 0x10ec + B addi r25, r3, 0x10ec + 44 M add r24, r27, r26 + B add r3, r25, r24 + 45 M mr r3, r24 + B bl 0 + 46 M bl 0 + B add r24, r25, r24 + 47 M mr r3, r24 + B li r4, 0 + 48 M li r4, 0 + B mr r3, r24 + 57 M mullw r28, r26, r4 + B mullw r26, r26, r4 + 59 M add r3, r29, r0 + B add r3, r31, r0 + 63 M mulli r26, r27, 0x15c + B add r3, r25, r26 + 64 M add r3, r25, r28 + B add r4, r31, r0 + 65 M add r4, r29, r0 + B mulli r27, r27, 0x15c + 66 M addi r27, r3, 0x10ec + B li r7, 9 + 67 M li r7, 9 + B addi r28, r3, 0x10ec + 69 M add r3, r27, r26 + B add r3, r28, r27 + 73 M add r0, r24, r30 + B add r0, r24, r29 + 74 M add r4, r25, r28 + B add r4, r25, r26 + 75 M add r3, r0, r31 + B add r3, r0, r30 + 77 M add r4, r4, r26 + B lwz r0, 0x3c(r3) + 78 M lwz r0, 0x3c(r3) + B addi r24, r4, 0x112c + 79 M addi r24, r4, 0x112c + B add r3, r24, r27 + 81 M mr r3, r24 + B add r4, r31, r0 + 82 M add r4, r29, r0 + B bl 0 + 83 M bl 0 + B add r3, r24, r27 + 84 M mr r3, r24 + B li r4, 0 + 85 M li r4, 0 + B bl 0 + 86 M bl 0 + B add r24, r28, r27 + 87 M add r3, r27, r26 + B li r4, 0 + 88 M li r4, 0 + B mr r3, r24 + 93 M add r3, r27, r26 + B mr r3, r24 + +create_icon__Q33ipl5scene17MemoryCardManagerFUcs DECLSEARCH after structural duration fix + +create_icon__Q33ipl5scene17MemoryCardManagerFUcs | duration + declaration search | 51/51 insns structural/exact (0, 4) objdiff 99.411766% regress 0 source create_icon__Q33ipl5scene17MemoryCardManagerFUcs.eab89c8e631d +create_icon__Q33ipl5scene17MemoryCardManagerFUcs | duration right shift postfix frame directly | 51/51 insns structural/exact (0, 0) objdiff 100.0% regress 0 source create_icon__Q33ipl5scene17MemoryCardManagerFUcs.ff57b3a014b7 +EXACT CANDIDATE create_icon__Q33ipl5scene17MemoryCardManagerFUcs duration right shift postfix frame directly +create_icon accepted quick gate PASS:51/51 instructions ctxdiff0, objdiff100, memory instruction-exact17->18 code2368->2572, regressions0; volatile duration reads at target0xe94 recur on0xebc->0xe90 backedge without stores/calls; guarded other TUs unchanged. +_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl DIAGNOSIS frame0x30,100/100insns; target retains independent cell row/column addresses across GX calls, computes final texture address after GXInitTexObj, source caches complete texture before call; icon row/column add operands also reversed. Three lifetime/address forms. +_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl | texture branch result assigned after initializer | 101/100 insns structural/exact (17, 61) objdiff 85.3% regress 0 source _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl.fe3d5b6066e8 +_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl | commuted icon row address and image displacement | 100/100 insns structural/exact (16, 37) objdiff 87.55% regress 0 source _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl.d3e6de82b2d3 +_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl | column then row selector via typed cell helper | 100/100 insns structural/exact (20, 67) objdiff 78.13% regress 0 source _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl.853475ce68a5 +DATA RECOVERED NEIGHBOUR PROOF sButtonGroups__Q23ipl5scene = .data:0x81654FEC; // type:object size:0x1C scope:local data:4byte: char*[7], .data+0x54..0x6c relocations to seven G_* group strings; create/event handler base .data+0 addressing uses +0x54; was swallowed by G_OutBtn extent; original addresses and split section totals unchanged, only target object boundaries. +DATA RECOVERED NEIGHBOUR PROOF sButtonAnimationNames__Q23ipl5scene = .data:0x816550F4; // type:object size:0x18 scope:local data:4byte: char*[6], .data+0x15c..0x170 relocations to six mn_SdcardMenuBanner_bc_* strings; create uses same offsets from pooled .data base; swallowed by OutBtn string extent; original addresses and split section totals unchanged, only target object boundaries. +DATA RECOVERED NEIGHBOUR PROOF sTexturePaneNames__Q23ipl5scene = .data:0x8165514C; // type:object size:0x30 scope:local data:4byte: char*[3][4], .data+0x1b4..0x1e0 relocations to twelve Fre_* pane strings; create indexes12 pointers; swallowed by banner animation array extent; original addresses and split section totals unchanged, only target object boundaries. +START getComment__Q33ipl5scene17MemoryCardManagerFUcsi origin/main 2f0f5a44c72cb84e23732e09fc8e75487c788f76 upstream source UNCHANGED +src 0x1ec base 0x1ec insns 123/123 +diffs 20: [10, 12, 14, 19, 20, 21, 23, 24, 45, 46, 48, 49, 51, 62, 66, 67, 86, 90, 91, 117] + 10 M mr r27, r3 + B mr r26, r3 + 12 M slwi r28, r6, 7 + B slwi r27, r6, 7 + 14 M mullw r30, r4, r0 + B mullw r29, r4, r0 + 19 M mulli r29, r25, 0x15c + B mulli r28, r25, 0x15c + 20 M add r0, r3, r30 + B add r0, r3, r29 + 21 M add r3, r0, r29 + B add r3, r0, r28 + 23 M add r26, r31, r28 + B add r30, r31, r27 + 24 M mr r3, r26 + B mr r3, r30 + 45 M mr r5, r4 + B mr r3, r4 + 46 M li r3, 0 + B li r5, 0 + 48 M stb r3, 0(r4) + B stb r5, 0(r4) + 49 M addi r5, r5, -1 + B addi r3, r3, -1 + 51 M lbz r0, 0(r5) + B lbz r0, 0(r3) + 62 M mr r3, r26 + B mr r3, r30 + 66 M add r3, r27, r30 + B add r3, r26, r29 + 67 M add r0, r28, r29 + B add r0, r27, r28 + 86 M mr r3, r26 + B mr r3, r30 + 90 M add r3, r27, r30 + B add r3, r26, r29 + 91 M add r0, r28, r29 + B add r0, r27, r28 + 117 M add r3, r31, r28 + B add r3, r31, r27 + +DATA after recovered pointer-array neighbours: [{'name': '.data', 'size': '1696', 'fuzzy_match_percent': 28.318872, 'metadata': {}}, {'name': '.rodata', 'size': '48', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '192', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata2', 'size': '40', 'fuzzy_match_percent': 90.0, 'metadata': {}}, {'name': '.text', 'size': '18624', 'fuzzy_match_percent': 99.89347, 'metadata': {}}] +getComment__Q33ipl5scene17MemoryCardManagerFUcsi DIAGNOSIS frame0x60 and123/123 insns, zero structural differences; this/column/file-cell-offset/decoded-pointer callee-saved lifetimes differ and trailing ASCII trim uses r5/r3 reversed. Preserve operations and test actual source-level local/loop boundaries before declsearch. +getComment__Q33ipl5scene17MemoryCardManagerFUcsi | stack comment declared before file selection | 123/123 insns structural/exact (27, 47) objdiff 78.032524% regress 0 source getComment__Q33ipl5scene17MemoryCardManagerFUcsi.d78de696c8f6 +getComment__Q33ipl5scene17MemoryCardManagerFUcsi | trim character pointer decrement integrated in scan | 123/123 insns structural/exact (0, 21) objdiff 98.861786% regress 0 source getComment__Q33ipl5scene17MemoryCardManagerFUcsi.f127fa891688 +getComment__Q33ipl5scene17MemoryCardManagerFUcsi | newline truncation for loop scoped found flag | 123/123 insns structural/exact (0, 20) objdiff 98.94309% regress 0 source getComment__Q33ipl5scene17MemoryCardManagerFUcsi.6d93e902721f +START create_banner__Q33ipl5scene17MemoryCardManagerFUcs origin/main 5d63d152486a556fa24edf46b65dee7ce88474d6 upstream source UNCHANGED +src 0x1a8 base 0x1a8 insns 106/106 +diffs 70: [5, 6, 9, 11, 14, 16, 17, 18, 19, 23, 24, 25, 26, 27, 32, 33, 34, 35, 36, 37] + 5 M mr r27, r3 + B mr r26, r3 + 6 M mr r28, r4 + B mr r27, r4 + 9 M mr r30, r3 + B mr r25, r3 + 11 M mulli r4, r28, 0x7f0 + B mulli r4, r27, 0x7f0 + 14 M add r4, r27, r4 + B add r4, r26, r4 + 16 M lwz r29, 8(r4) + B lwz r28, 8(r4) + 17 M mulli r0, r28, 0x5f4 + B mulli r0, r27, 0x5f4 + 18 M mulli r4, r29, 0xc + B mulli r4, r28, 0xc + 19 M add r0, r30, r0 + B add r0, r25, r0 + 23 M mulli r25, r28, 0x1fc0 + B mulli r29, r27, 0x1fc0 + 24 M slwi r26, r29, 6 + B slwi r30, r28, 6 + 25 M add r0, r26, r3 + B add r0, r30, r3 + 26 M add r30, r25, r0 + B add r4, r29, r0 + 27 M lbzx r0, r25, r0 + B lbzx r0, r29, r0 + 32 M lbz r0, 3(r30) + B add r0, r3, r29 + 33 M cmpwi r0, 5 + B add r25, r0, r30 + 34 M bne 88 + B lbz r0, 3(r25) + 35 M lis r3, 1 + B cmpwi r0, 5 + 36 M lwz r0, 0x14(r30) + B bne 84 + 37 M addi r3, r3, -0x535c + B lis r3, 1 + 38 M li r5, 0x60 + B lwz r0, 0x14(r25) + 39 M mullw r3, r28, r3 + B addi r3, r3, -0x535c + 40 M add r4, r30, r0 + B li r5, 0x60 + 41 M li r6, 0x20 + B mullw r3, r27, r3 + 42 M li r7, 5 + B add r4, r4, r0 + 43 M li r8, 0 + B li r6, 0x20 + 44 M li r9, 0 + B li r7, 5 + 45 M mulli r0, r29, 0x15c + B li r8, 0 + 46 M add r3, r27, r3 + B li r9, 0 + 47 M li r10, 0 + B add r3, r26, r3 + 48 M add r3, r3, r0 + B li r10, 0 + 49 M addi r25, r3, 0x110c + B mulli r25, r28, 0x15c + 50 M mr r3, r25 + B addi r29, r3, 0x110c + 51 M bl 0 + B add r3, r29, r25 + 52 M mr r3, r25 + B bl 0 + 53 M li r4, 0 + B add r3, r29, r25 + 54 M bl 0 + B li r4, 0 + 55 M b 152 + B bl 0 + 56 M cmpwi r0, 9 + B b 148 + 57 M bne 144 + B cmpwi r0, 9 + 58 M lis r3, 1 + B bne 140 + 59 M li r0, 0 + B lis r3, 1 + 60 M addi r3, r3, -0x535c + B li r0, 0 + 61 M stw r0, 8(r1) + B addi r3, r3, -0x535c + 62 M mullw r23, r28, r3 + B stw r0, 8(r1) + 63 M li r5, 0x60 + B mullw r23, r27, r3 + 64 M lwz r0, 0x14(r30) + B li r5, 0x60 + 65 M li r6, 0x20 + B lwz r0, 0x14(r25) + 66 M li r7, 9 + B li r6, 0x20 + 67 M add r4, r30, r0 + B li r7, 9 + 68 M add r3, r27, r23 + B add r4, r25, r0 + 69 M li r8, 0 + B add r3, r26, r23 + 70 M mulli r24, r29, 0x15c + B li r8, 0 + 71 M li r9, 0 + B mulli r24, r28, 0x15c + 72 M addi r22, r3, 0x110c + B li r9, 0 + 73 M li r10, 0 + B addi r22, r3, 0x110c + 74 M add r3, r22, r24 + B li r10, 0 + 75 M bl 0 + B add r3, r22, r24 + 76 M add r0, r31, r25 + B bl 0 + 77 M add r4, r27, r23 + B add r0, r31, r29 + 78 M add r3, r0, r26 + B add r4, r26, r23 + 79 M li r5, 2 + B add r3, r0, r30 + 80 M add r4, r4, r24 + B li r5, 2 + 83 M li r6, 0x100 + B add r3, r23, r24 + 84 M mr r3, r23 + B li r6, 0x100 + 85 M add r4, r30, r0 + B add r4, r25, r0 + 87 M mr r3, r23 + B add r3, r23, r24 + 95 M mullw r3, r28, r0 + B mullw r3, r27, r0 + 96 M mulli r0, r29, 0x15c + B mulli r0, r28, 0x15c + 97 M add r3, r27, r3 + B add r3, r26, r3 + +create_banner__Q33ipl5scene17MemoryCardManagerFUcs DIAGNOSIS frame0x40,106/106 insns; target rebuilds row+column icon pointer after validation and preserves separate texture/TLUT base offsets across GX calls; source merges validation and rendering icon pointers. Try argument and cell row lifetimes; no volatile evidence for banner fields. +create_banner__Q33ipl5scene17MemoryCardManagerFUcs | typed render-image temporary inside each format branch | 106/106 insns structural/exact (15, 70) objdiff 90.42453% regress 0 source create_banner__Q33ipl5scene17MemoryCardManagerFUcs.c5dde8aad816 +create_banner__Q33ipl5scene17MemoryCardManagerFUcs | texture and TLUT typed cells addressed after validation | 97/106 insns structural/exact (81, 90) objdiff 63.103775% regress 0 source create_banner__Q33ipl5scene17MemoryCardManagerFUcs.ebdaefe8aed5 +create_banner__Q33ipl5scene17MemoryCardManagerFUcs | directory reference validates before icon access | 108/106 insns structural/exact (18, 87) objdiff 88.4434% regress 0 source create_banner__Q33ipl5scene17MemoryCardManagerFUcs.ceae65267db5 +START getBlocks__Q33ipl5scene17MemoryCardManagerFUcs origin/main 5543b7b720e18b9e093f2f3a9e8f9d4cb3a2eabb upstream source UNCHANGED +src 0x64 base 0x64 insns 25/25 +diffs 9: [11, 12, 13, 14, 15, 16, 17, 18, 19] + 11 M addi r11, r1, 0x20 + B add r4, r29, r4 + 12 M add r4, r29, r4 + B add r4, r4, r0 + 13 M add r4, r4, r0 + B lwz r0, 8(r4) + 14 M lwz r0, 8(r4) + B mulli r4, r30, 0x5f4 + 15 M mulli r4, r30, 0x5f4 + B mulli r0, r0, 0xc + 16 M mulli r0, r0, 0xc + B add r3, r3, r4 + 17 M add r3, r3, r4 + B add r3, r3, r0 + 18 M add r3, r3, r0 + B lhz r3, 2(r3) + 19 M lhz r3, 2(r3) + B addi r11, r1, 0x20 + +getBlocks__Q33ipl5scene17MemoryCardManagerFUcs DIAGNOSIS frame0x20,25/25 insns; source hoists restore stack-base instruction before address chain, target leaves it after final lhzx. Three real selector/value declaration forms. +getBlocks__Q33ipl5scene17MemoryCardManagerFUcs | directory reference and named result | 25/25 insns structural/exact (2, 9) objdiff 91.0% regress 0 source getBlocks__Q33ipl5scene17MemoryCardManagerFUcs.b96479a35734 +getBlocks__Q33ipl5scene17MemoryCardManagerFUcs | file lookup named before card directory getter | 23/25 insns structural/exact (20, 23) objdiff 26.08% regress 0 source getBlocks__Q33ipl5scene17MemoryCardManagerFUcs.b2485fca815c +getBlocks__Q33ipl5scene17MemoryCardManagerFUcs | commuted directory column plus typed row | 25/25 insns structural/exact (2, 9) objdiff 91.0% regress 0 source getBlocks__Q33ipl5scene17MemoryCardManagerFUcs.8933679ebf34 +SKIP update_file_array__Q33ipl5scene17MemoryCardManagerFUc: user-directed known r3/r4 tie; already exact update_icon_anm not touched. +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl REGISTER SEARCH after >=3 addressing/lifetime attempts +fewer than two leading declarations; pass --lines START END + +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | final declaration order search | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.ff57b3a014b7 +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl REGISTER SEARCH after >=3 addressing/lifetime attempts +fewer than two leading declarations; pass --lines START END + +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl | final declaration order search | 118/118 insns structural/exact (0, 2) objdiff 99.830505% regress 0 source isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl.ff57b3a014b7 +getComment__Q33ipl5scene17MemoryCardManagerFUcsi REGISTER SEARCH after >=3 addressing/lifetime attempts +declaration block: + const u8* encoded; + char* tail; + char* end; +start (0, 20) +best (0, 20) after 6 builds; source restored; best order was: + const u8* encoded; + char* tail; + char* end; + +getComment__Q33ipl5scene17MemoryCardManagerFUcsi | final declaration order search | 123/123 insns structural/exact (0, 20) objdiff 98.94309% regress 0 source getComment__Q33ipl5scene17MemoryCardManagerFUcsi.e2182693d4f2 +START calcFadein__Q33ipl5scene14SDChannelTitleFv origin/main 422a344b282c65104a9157a99239d0950b337472 upstream source UNCHANGED +src 0xc0 base 0xbc insns 48/47 +--- replace mine 11:12 base 11:12 + M 11 b 124 + B 11 b 120 +--- replace mine 15:16 base 15:16 + M 15 beq 84 + B 15 beq 80 +--- delete mine 24:25 base 24:24 + M 24 li r5, 0 + +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl DECLSEARCH explicit six-line typed declarations (autodetect stops at qualified type) +declaration block: + CardDirectory* dirs = reinterpret_cast(memorycard::getCardDirState()); + memorycard::CardState* states = memorycard::getCardSlotState(); + u32 file = mFile[slot][index].fileNo; + memorycard::FileInfo* dir = NULL; + long result; + bool enabled = false; +start (0, 2) +best (0, 2) after 12 builds; source restored; best order was: + CardDirectory* dirs = reinterpret_cast(memorycard::getCardDirState()); + memorycard::CardState* states = memorycard::getCardSlotState(); + u32 file = mFile[slot][index].fileNo; + memorycard::FileInfo* dir = NULL; + long result; + bool enabled = false; + +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl DECLSEARCH explicit six-line typed declarations (autodetect stops at qualified type) +declaration block: + CardDirectory* dirs = reinterpret_cast(memorycard::getCardDirState()); + memorycard::CardState* states = memorycard::getCardSlotState(); + u32 file = mFile[slot][index].fileNo; + memorycard::FileInfo* dir = NULL; + long result; + bool enabled = false; +start (0, 2) +best (0, 2) after 12 builds; source restored; best order was: + CardDirectory* dirs = reinterpret_cast(memorycard::getCardDirState()); + memorycard::CardState* states = memorycard::getCardSlotState(); + u32 file = mFile[slot][index].fileNo; + memorycard::FileInfo* dir = NULL; + long result; + bool enabled = false; + +calcFadein__Q33ipl5scene14SDChannelTitleFv DIAGNOSIS frame0x10,48/47insns; extra li r5,0 is second optOut handler argument unused by callee, causing branch displacements; no register-only issue. Preserve callable signature; test branch/helper/live-handler forms. +calcFadein__Q33ipl5scene14SDChannelTitleFv | positive fade-playing early continuation | 48/47 insns structural/exact (17, 34) objdiff 67.87234% regress 0 source calcFadein__Q33ipl5scene14SDChannelTitleFv.b7af66be118b +calcFadein__Q33ipl5scene14SDChannelTitleFv | event handler captured before button lookup | 49/47 insns structural/exact (17, 38) objdiff 78.85107% regress 0 source calcFadein__Q33ipl5scene14SDChannelTitleFv.0fb8cd5fe935 +calcFadein__Q33ipl5scene14SDChannelTitleFv | button reference with separately named fade result | 48/47 insns structural/exact (3, 26) objdiff 97.87234% regress 0 source calcFadein__Q33ipl5scene14SDChannelTitleFv.643f10ce33c6 +START initCalcFadeout__Q33ipl5scene14SDChannelTitleFv origin/main c4857800df46ae3edfd824198fa09a31c4f6ce0f upstream source UNCHANGED +src 0xc8 base 0xc4 insns 50/49 +--- delete mine 43:44 base 43:43 + M 43 li r5, 0 + +initCalcFadeout__Q33ipl5scene14SDChannelTitleFv DIAGNOSIS frame0x10,50/49insns; extra initialized optOut handler r5 makes callable ABI different from target call preparation; state branches otherwise identical. No ABI casts or unused uninitialized values. +initCalcFadeout__Q33ipl5scene14SDChannelTitleFv | state dispatch switch grouped sound cases | 52/49 insns structural/exact (14, 38) objdiff 85.46939% regress 0 source initCalcFadeout__Q33ipl5scene14SDChannelTitleFv.37f523731bf2 +initCalcFadeout__Q33ipl5scene14SDChannelTitleFv | named optOut handler pointer | BUILD FAIL i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -MMD -c src/scene/sdChannelTitle/iplSDChannelTitle.cpp -o build/43U/src/src/scene/sdChannelTitle && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/scene/sdChannelTitle/iplSDChannelTitle.d build/43U/src/src/scene/sdChannelTitle/iplSDChannelTitle.d +### mwcceppc.exe Compiler: +# In: include\utility\iplTree.h +# From: src\scene\sdChannelTitle\iplSDChannelTitle.cpp +# ------------------------------------------------------- +# 40: } +# Warning: ^ +# (10184) return value expected +# (included from: +# Z:\mnt\drive2\projects\wii-ipl-workers\sol- +# low\include\scene\iplSceneBase.h:6 +# Z:\mnt\drive2\projects\wii-ipl-workers\sol- +# low\include\scene\iplFaderSceneBase.h:4 +# Z:\mnt\drive2\projects\wii-ipl-workers\sol- +# low\include\iplSceneHeader.h:5 +# Z:\mnt\drive2\projects\wii-ipl-workers\sol- +# low\include\scene\sdChannelTitle\iplSDChannelTitle.h:4 +# Z:\mnt\drive2\projects\wii-ipl-workers\sol- +# low\src\scene\sdChannelTitle\iplSDChannelTitle.cpp:6) +### mwcceppc.exe Compiler: +# File: src\scene\sdChannelTitle\iplSDChannelTitle.cpp +# ------------------------------------------------------- +# 347: SDButtonOptOutEventHandler* optOut = NULL; +# Error: ^^^^^^^^^^^^^^^^^^^^^^^^^^ +# (10140) undefined identifier 'SDButtonOptOutEventHandler' +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +initCalcFadeout__Q33ipl5scene14SDChannelTitleFv | button reference receiver | 50/49 insns structural/exact (1, 7) objdiff 97.95918% regress 0 source initCalcFadeout__Q33ipl5scene14SDChannelTitleFv.2f6b81493f27 +START iplSDChannelTitle_startCopyProgress origin/main c4857800df46ae3edfd824198fa09a31c4f6ce0f upstream source UNCHANGED +src 0x15c base 0x158 insns 87/86 +--- replace mine 10:11 base 10:11 + M 10 bne 284 + B 10 bne 280 +--- replace mine 15:16 base 15:16 + M 15 bne 264 + B 15 bne 260 +--- replace mine 20:21 base 20:21 + M 20 b 244 + B 20 b 240 +--- replace mine 65:66 base 65:68 + M 65 b 64 + B 65 b 60 + B 66 lwz r3, 0x13c(r31) + B 67 addi r7, r31, 0x228 +--- delete mine 67:68 base 69:69 + M 67 addi r7, r31, 0x228 +--- delete mine 69:71 base 70:70 + M 69 li r4, 0 + M 70 lwz r3, 0x13c(r31) + +iplSDChannelTitle_startCopyProgress DIAGNOSIS frame0x20,87/86insns; enqueueChannelNotice receives initialized controller r4=0, target does not initialize it; title high/low/receiver scheduling also differs. Test actual title and request argument lifetimes. +iplSDChannelTitle_startCopyProgress | request data pointer captured before selector | 88/86 insns structural/exact (10, 36) objdiff 94.51163% regress 0 source iplSDChannelTitle_startCopyProgress.a4eef35e180c +iplSDChannelTitle_startCopyProgress | selector receiver named for find and enqueue | 88/86 insns structural/exact (10, 34) objdiff 92.19768% regress 0 source iplSDChannelTitle_startCopyProgress.13c4126272bb +iplSDChannelTitle_startCopyProgress | title high/low grouped in union at request | 91/86 insns structural/exact (11, 40) objdiff 93.96512% regress 0 source iplSDChannelTitle_startCopyProgress.17f0521c8a49 +START iplSDChannelTitle_updateCopyStart origin/main c4857800df46ae3edfd824198fa09a31c4f6ce0f upstream source UNCHANGED +src 0x134 base 0x130 insns 77/76 +--- replace mine 10:11 base 10:11 + M 10 bne 244 + B 10 bne 240 +--- replace mine 37:38 base 37:38 + M 37 beq 104 + B 37 beq 100 +--- replace mine 43:44 base 43:44 + M 43 beq 80 + B 43 beq 76 +--- replace mine 46:47 base 46:47 + M 46 beq 100 + B 46 beq 96 +--- insert mine 48:48 base 48:49 + B 48 mr r6, r29 +--- delete mine 49:51 base 50:50 + M 49 mr r6, r29 + M 50 li r4, 0 + +iplSDChannelTitle_updateCopyStart DIAGNOSIS frame0x20,77/76insns; enqueueStateNotice controller r4=0 absent in target plus title-word scheduling. Try request receiver and title-word lifetime forms while keeping ABI and event order. +iplSDChannelTitle_updateCopyStart | temporary title high/low locals before enqueue | 77/76 insns structural/exact (5, 33) objdiff 98.3421% regress 0 source iplSDChannelTitle_updateCopyStart.5aade78b371d +iplSDChannelTitle_updateCopyStart | removed title request named result | 77/76 insns structural/exact (5, 33) objdiff 98.3421% regress 0 source iplSDChannelTitle_updateCopyStart.3fc0860741fd +iplSDChannelTitle_updateCopyStart | title word union preserves full comparison | 77/76 insns structural/exact (17, 47) objdiff 76.697365% regress 0 source iplSDChannelTitle_updateCopyStart.8b9ee376a5ca +START iplSDChannelTitle_flushSaveBeforeExit origin/main c4857800df46ae3edfd824198fa09a31c4f6ce0f upstream source UNCHANGED +src 0x94 base 0x94 insns 37/37 +diffs 6: [20, 22, 23, 24, 25, 26] + 20 M lis r4, 0 + B lis r3, 0 + 22 M addi r4, r4, 0 + B addi r3, r3, 0 + 23 M lwz r3, 0x94(r4) + B lwz r4, 0x94(r3) + 24 M stw r0, 0x4c0(r3) + B stw r0, 0x4c0(r4) + 25 M lwz r3, 0x94(r4) + B lwz r4, 0x28(r3) + 26 M lwz r4, 0x28(r4) + B lwz r3, 0x94(r3) + +iplSDChannelTitle_flushSaveBeforeExit DIAGNOSIS frame0x20,37/37insns; target smArg base r3 vs source r4, save receiver r4 vs source r3; target heap load precedes save receiver reload after page store. Inspect argument nesting/cached receiver boundaries before register search. +iplSDChannelTitle_flushSaveBeforeExit | heap getter nested in flush argument | 37/37 insns structural/exact (2, 6) objdiff 98.5946% regress 0 source iplSDChannelTitle_flushSaveBeforeExit.6fb891065ce7 +iplSDChannelTitle_flushSaveBeforeExit | save receiver named across page store and flush | 36/37 insns structural/exact (1, 16) objdiff 96.35135% regress 0 source iplSDChannelTitle_flushSaveBeforeExit.c83d79e76c61 +iplSDChannelTitle_flushSaveBeforeExit | page value declared before save accessor | 37/37 insns structural/exact (2, 6) objdiff 98.5946% regress 0 source iplSDChannelTitle_flushSaveBeforeExit.987ef44c910b +initCalcFadeout__Q33ipl5scene14SDChannelTitleFv | named typed optOut handler corrected | 50/49 insns structural/exact (1, 7) objdiff 97.95918% regress 0 source initCalcFadeout__Q33ipl5scene14SDChannelTitleFv.41b00df1c3fd +iplSDChannelTitle_flushSaveBeforeExit declaration search after structural argument/receiver attempts +declaration block: + int page; + int index; +start (2, 6) +best (2, 6) after 2 builds; source restored; best order was: + int page; + int index; + +SD code attempts all restored; unused optOut/controller argument declarations in neighbouring APIs account for four extra argument initialization instructions. Correcting ABI/function symbol names outside current data-only rename scope is not authorized. Flush remains argument scheduling/smArg base GPR tie. +START create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator origin/main c4857800df46ae3edfd824198fa09a31c4f6ce0f upstream source UNCHANGED +src 0x57c base 0x580 insns 351/352 +--- replace mine 5:6 base 5:6 + M 5 lis r29, 0 + B 5 lis r30, 0 +--- replace mine 10:11 base 10:11 + M 10 addi r29, r29, 0 + B 10 addi r30, r30, 0 +--- replace mine 29:30 base 29:30 + M 29 mr r30, r3 + B 29 mr r26, r3 +--- replace mine 49:51 base 49:51 + M 49 stw r30, 0xe0(r31) + M 50 mr r3, r30 + B 49 stw r26, 0xe0(r31) + B 50 mr r3, r26 +--- replace mine 52:53 base 52:53 + M 52 lwz r12, 0(r30) + B 52 lwz r12, 0(r26) +--- replace mine 77:79 base 77:79 + M 77 li r28, 0 + M 78 li r30, 0 + B 77 mr r26, r31 + B 78 li r29, 0 +--- replace mine 80:81 base 80:81 + M 80 add r3, r31, r30 + B 80 lwz r3, 0x11c(r26) +--- delete mine 82:83 base 82:82 + M 82 lwz r3, 0x11c(r3) +--- replace mine 89:90 base 88:89 + M 89 add r3, r31, r30 + B 88 lwz r3, 0x16c(r26) +--- delete mine 91:92 base 90:90 + M 91 lwz r3, 0x16c(r3) +--- replace mine 96:100 base 94:98 + M 96 addi r28, r28, 1 + M 97 addi r30, r30, 4 + M 98 cmplwi r28, 0x14 + M 99 blt -76 + B 94 addi r29, r29, 1 + B 95 addi r26, r26, 4 + B 96 cmplwi r29, 0x14 + B 97 blt -68 +--- replace mine 111:112 base 109:110 + M 111 mr r28, r3 + B 109 mr r29, r3 +--- replace mine 115:116 base 113:114 + M 115 mr r3, r28 + B 113 mr r3, r29 +--- replace mine 126:129 base 124:126 + M 126 addi r30, r29, 0x28 + M 127 mr r3, r28 + M 128 addi r4, r30, 0x680 + B 124 mr r3, r29 + B 125 addi r4, r30, 0x6a8 +--- replace mine 131:133 base 128:130 + M 131 mr r3, r28 + M 132 addi r4, r29, 0x6b4 + B 128 mr r3, r29 + B 129 addi r4, r30, 0x6b4 +--- replace mine 136:137 base 133:134 + M 136 addi r4, r30, 0x680 + B 133 addi r4, r30, 0x6a8 +--- replace mine 148:149 base 145:146 + M 148 addi r4, r30, 0x680 + B 145 addi r4, r30, 0x6a8 +--- replace mine 167:169 base 164:165 + M 167 addi r30, r29, 0x6b4 + M 168 addi r4, r30, 0xc + B 164 addi r4, r30, 0x6c0 +--- replace mine 187:188 base 183:184 + M 187 addi r4, r30, 0x18 + B 183 addi r4, r30, 0x6cc +--- replace mine 225:226 base 221:222 + M 225 addi r4, r30, 0x24 + B 221 addi r4, r30, 0x6d8 +--- replace mine 256:257 base 252:255 + M 256 mr r27, r31 + B 252 mr r26, r31 + B 253 addi r28, r30, 0x6e4 + B 254 addi r29, r30, 0x6f8 +--- replace mine 258:261 base 256:259 + M 258 addi r27, r31, 0x24 + M 259 lwz r12, 0(r27) + M 260 mr r3, r27 + B 256 addi r26, r31, 0x24 + B 257 lwz r12, 0(r26) + B 258 mr r3, r26 +--- replace mine 264:266 base 262:264 + M 264 mr r28, r3 + M 265 addi r4, r30, 0x44 + B 262 mr r27, r3 + B 263 mr r4, r29 +--- replace mine 268:270 base 266:268 + M 268 mr r3, r28 + M 269 addi r4, r30, 0x30 + B 266 mr r3, r27 + B 267 mr r4, r28 +--- replace mine 272:275 base 270:273 + M 272 mr r3, r27 + M 273 addi r4, r30, 0x44 + M 274 lwz r12, 0(r27) + B 270 mr r3, r26 + B 271 mr r4, r29 + B 272 lwz r12, 0(r26) +--- replace mine 282:283 base 280:282 + M 282 mr r27, r31 + B 280 mr r26, r31 + B 281 addi r28, r30, 0x70c +--- insert mine 284:284 base 283:284 + B 283 addi r27, r30, 0x720 +--- replace mine 285:288 base 285:288 + M 285 addi r27, r31, 0x24 + M 286 lwz r12, 0(r27) + M 287 mr r3, r27 + B 285 addi r26, r31, 0x24 + B 286 lwz r12, 0(r26) + B 287 mr r3, r26 +--- replace mine 291:293 base 291:293 + M 291 mr r28, r3 + M 292 addi r4, r30, 0x6c + B 291 mr r29, r3 + B 292 mr r4, r27 +--- replace mine 295:297 base 295:297 + M 295 mr r3, r28 + M 296 addi r4, r30, 0x58 + B 295 mr r3, r29 + B 296 mr r4, r28 +--- replace mine 299:302 base 299:302 + M 299 mr r3, r27 + M 300 addi r4, r30, 0x6c + M 301 lwz r12, 0(r27) + B 299 mr r3, r26 + B 300 mr r4, r27 + B 301 lwz r12, 0(r26) +--- replace mine 322:323 base 322:324 + M 322 mr r27, r31 + B 322 mr r26, r31 + B 323 addi r27, r30, 0x738 +--- replace mine 324:327 base 325:328 + M 324 addi r27, r31, 0x24 + M 325 lwz r12, 0(r27) + M 326 mr r3, r27 + B 325 addi r26, r31, 0x24 + B 326 lwz r12, 0(r26) + B 327 mr r3, r26 +--- replace mine 330:331 base 331:332 + M 330 addi r4, r29, 0x738 + B 331 mr r4, r27 +--- replace mine 333:336 base 334:337 + M 333 mr r3, r27 + M 334 addi r4, r29, 0x738 + M 335 lwz r12, 0(r27) + B 334 mr r3, r26 + B 335 mr r4, r27 + B 336 lwz r12, 0(r26) + +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator DIAGNOSIS frame0x30,351/352 insns. Target inlined UITextArea::Init advances owner pointer with fixed loads0x11c/0x16c, source indexes offset and extra adds. Scroll/window name arguments target cached separately in callee-saved registers; ours rematerializes pointer offsets. Target pool after#742 identical, no data padding/strings added. +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | decorated string allocation typed before member store | 351/352 insns structural/exact (27, 239) objdiff 92.71023% regress 0 source create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.2a0276ff27b0 +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | window name captured before window Create helper | 352/352 insns structural/exact (24, 218) objdiff 93.67614% regress 0 source create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.d9cd56dc516f +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | text area named reference across create/init calls | 352/352 insns structural/exact (34, 267) objdiff 92.55398% regress 0 source create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.822ce4aadb06 +START createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator origin/main c4857800df46ae3edfd824198fa09a31c4f6ce0f upstream source UNCHANGED +src 0x358 base 0x360 insns 214/216 +--- insert mine 5:5 base 5:8 + B 5 lis r25, 0 + B 6 lis r27, 0 + B 7 lis r28, 0 +--- delete mine 6:10 base 9:9 + M 6 lis r26, 0 + M 7 lis r27, 0 + M 8 lis r23, 0 + M 9 lis r28, 0 +--- insert mine 11:11 base 10:11 + B 10 lis r30, 0 +--- insert mine 14:14 base 14:17 + B 14 addi r25, r25, 0 + B 15 addi r27, r27, 0 + B 16 addi r28, r28, 0 +--- delete mine 15:19 base 18:18 + M 15 addi r26, r26, 0 + M 16 addi r27, r27, 0 + M 17 addi r23, r23, 0 + M 18 addi r28, r28, 0 +--- insert mine 20:20 base 19:20 + B 19 addi r30, r30, 0 +--- replace mine 21:22 base 21:22 + M 21 li r25, 0 + B 21 li r26, 0 +--- replace mine 23:26 base 23:26 + M 23 li r22, 0 + M 24 add r20, r23, r0 + M 25 lwzx r0, r23, r0 + B 23 li r19, 0 + B 24 add r20, r24, r0 + B 25 lwzx r0, r24, r0 +--- replace mine 40:41 base 40:41 + M 40 mr r22, r3 + B 40 mr r19, r3 +--- replace mine 48:49 base 48:49 + M 48 stw r24, 0(r22) + B 48 stw r25, 0(r19) +--- replace mine 50:54 base 50:54 + M 50 stw r3, 4(r22) + M 51 addi r3, r22, 8 + M 52 stw r25, 0x14(r22) + M 53 stw r25, 0x18(r22) + B 50 stw r3, 4(r19) + B 51 addi r3, r19, 8 + B 52 stw r26, 0x14(r19) + B 53 stw r26, 0x18(r19) +--- replace mine 55:59 base 55:59 + M 55 stw r26, 0(r22) + M 56 mr r3, r22 + M 57 stw r25, 0x2c(r22) + M 58 lwz r12, 0(r22) + B 55 stw r27, 0(r19) + B 56 mr r3, r19 + B 57 stw r26, 0x2c(r19) + B 58 lwz r12, 0(r19) +--- replace mine 62:64 base 62:64 + M 62 stw r27, 0(r22) + M 63 stw r25, 0x30(r22) + B 62 stw r28, 0(r19) + B 63 stw r26, 0x30(r19) +--- replace mine 69:70 base 69:70 + M 69 mr r22, r3 + B 69 mr r19, r3 +--- replace mine 77:78 base 77:78 + M 77 stw r24, 0(r22) + B 77 stw r25, 0(r19) +--- replace mine 79:83 base 79:83 + M 79 stw r3, 4(r22) + M 80 addi r3, r22, 8 + M 81 stw r25, 0x14(r22) + M 82 stw r25, 0x18(r22) + B 79 stw r3, 4(r19) + B 80 addi r3, r19, 8 + B 81 stw r26, 0x14(r19) + B 82 stw r26, 0x18(r19) +--- replace mine 84:88 base 84:88 + M 84 stw r26, 0(r22) + M 85 mr r3, r22 + M 86 stw r25, 0x2c(r22) + M 87 lwz r12, 0(r22) + B 84 stw r27, 0(r19) + B 85 mr r3, r19 + B 86 stw r26, 0x2c(r19) + B 87 lwz r12, 0(r19) +--- replace mine 91:92 base 91:92 + M 91 stw r14, 0x30(r22) + B 91 stw r14, 0x30(r19) +--- replace mine 97:98 base 97:98 + M 97 mr r22, r3 + B 97 mr r19, r3 +--- replace mine 105:106 base 105:106 + M 105 stw r24, 0(r22) + B 105 stw r25, 0(r19) +--- replace mine 108:112 base 108:112 + M 108 stw r3, 4(r22) + M 109 addi r3, r22, 8 + M 110 stw r25, 0x14(r22) + M 111 stw r0, 0x18(r22) + B 108 stw r3, 4(r19) + B 109 addi r3, r19, 8 + B 110 stw r26, 0x14(r19) + B 111 stw r0, 0x18(r19) +--- replace mine 113:117 base 113:117 + M 113 stw r26, 0(r22) + M 114 mr r3, r22 + M 115 stw r25, 0x2c(r22) + M 116 lwz r12, 0(r22) + B 113 stw r27, 0(r19) + B 114 mr r3, r19 + B 115 stw r26, 0x2c(r19) + B 116 lwz r12, 0(r19) +--- replace mine 120:121 base 120:121 + M 120 stw r28, 0(r22) + B 120 stw r29, 0(r19) +--- replace mine 122:123 base 122:123 + M 122 stw r0, 0x30(r22) + B 122 stw r0, 0x30(r19) +--- replace mine 128:129 base 128:129 + M 128 mr r22, r3 + B 128 mr r19, r3 +--- replace mine 136:137 base 136:137 + M 136 stw r24, 0(r22) + B 136 stw r25, 0(r19) +--- replace mine 139:143 base 139:143 + M 139 stw r3, 4(r22) + M 140 addi r3, r22, 8 + M 141 stw r25, 0x14(r22) + M 142 stw r0, 0x18(r22) + B 139 stw r3, 4(r19) + B 140 addi r3, r19, 8 + B 141 stw r26, 0x14(r19) + B 142 stw r0, 0x18(r19) +--- replace mine 144:148 base 144:148 + M 144 stw r26, 0(r22) + M 145 mr r3, r22 + M 146 stw r25, 0x2c(r22) + M 147 lwz r12, 0(r22) + B 144 stw r27, 0(r19) + B 145 mr r3, r19 + B 146 stw r26, 0x2c(r19) + B 147 lwz r12, 0(r19) +--- replace mine 151:152 base 151:152 + M 151 stw r29, 0(r22) + B 151 stw r30, 0(r19) +--- replace mine 153:155 base 153:155 + M 153 stw r0, 0x30(r22) + M 154 mr r4, r22 + B 153 stw r0, 0x30(r19) + B 154 mr r4, r19 +--- replace mine 157:159 base 157:159 + M 157 lwz r30, 0x1c(r20) + M 158 li r19, 0 + B 157 lwz r22, 0x1c(r20) + B 158 li r18, 0 +--- replace mine 160:161 base 160:161 + M 160 b 168 + B 160 b 176 +--- replace mine 162:164 base 162:164 + M 162 rlwinm r0, r19, 2, 0xe, 0x1d + M 163 add r5, r20, r0 + B 162 rlwinm r0, r18, 2, 0xe, 0x1d + B 163 add r23, r20, r0 +--- replace mine 167:168 base 167:168 + M 167 lwz r18, 0x20(r5) + B 167 lwz r5, 0x20(r23) +--- replace mine 169:170 base 169:170 + M 169 addi r5, r18, 4 + B 169 addi r5, r5, 4 +--- replace mine 184:185 base 184:185 + M 184 cmpwi r30, 0 + B 184 cmpwi r22, 0 +--- replace mine 186:189 base 186:189 + M 186 bne 32 + M 187 lwz r5, 0(r18) + M 188 mr r3, r22 + B 186 bne 36 + B 187 lwz r5, 0x20(r23) + B 188 mr r3, r19 +--- insert mine 191:191 base 191:192 + B 191 lwz r5, 0(r5) +--- replace mine 193:196 base 194:197 + M 193 b 32 + M 194 lwz r5, 0(r18) + M 195 mr r3, r22 + B 194 b 36 + B 195 lwz r5, 0x20(r23) + B 196 mr r3, r19 +--- replace mine 197:198 base 198:200 + M 197 mr r7, r30 + B 198 mr r7, r22 + B 199 lwz r5, 0(r5) +--- replace mine 201:203 base 203:205 + M 201 addi r19, r19, 1 + M 202 clrlwi r0, r19, 0x10 + B 203 addi r18, r18, 1 + B 204 clrlwi r0, r18, 0x10 +--- replace mine 204:205 base 206:207 + M 204 blt -172 + B 206 blt -180 +--- replace mine 207:208 base 209:210 + M 207 blt -740 + B 209 blt -748 + +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator DIAGNOSIS frame0x50,214/216insns; cached animation pointer in source persists across CreateAnimTransform, target keeps entry address and reloads pAnims[j] separately in both branches; restoring these two loads makes structure exact. Remaining vtable hoisting and GPR lifetime coloring considered last. +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | animation reference to entry pointer across resource creation | 216/216 insns structural/exact (0, 82) objdiff 97.361115% regress 0 source createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.095584f09005 +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator animation reference to entry pointer across resource creation data 1132 [{'name': '.ctors', 'size': '4', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '3488', 'fuzzy_match_percent': 99.48127, 'metadata': {}}, {'name': '.rodata', 'size': '1048', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '32', 'fuzzy_match_percent': 96.875, 'metadata': {}}, {'name': '.sdata2', 'size': '80', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.text', 'size': '24000', 'fuzzy_match_percent': 99.46817, 'metadata': {}}] +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | animation id read only after transform creation | 216/216 insns structural/exact (20, 152) objdiff 91.736115% regress 0 source createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.80cae5ce662f +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator animation id read only after transform creation data 1132 [{'name': '.ctors', 'size': '4', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '3488', 'fuzzy_match_percent': 99.48127, 'metadata': {}}, {'name': '.rodata', 'size': '1048', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '32', 'fuzzy_match_percent': 96.875, 'metadata': {}}, {'name': '.sdata2', 'size': '80', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.text', 'size': '24000', 'fuzzy_match_percent': 99.26566, 'metadata': {}}] +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | separate resource and animation descriptors | 220/216 insns structural/exact (37, 170) objdiff 92.15278% regress 0 source createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator.ad2835c5becf +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator separate resource and animation descriptors data 1132 [{'name': '.ctors', 'size': '4', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '3488', 'fuzzy_match_percent': 99.48127, 'metadata': {}}, {'name': '.rodata', 'size': '1048', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '32', 'fuzzy_match_percent': 96.875, 'metadata': {}}, {'name': '.sdata2', 'size': '80', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.text', 'size': '24000', 'fuzzy_match_percent': 99.28067, 'metadata': {}}] +START CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv origin/main c4857800df46ae3edfd824198fa09a31c4f6ce0f upstream source UNCHANGED +src 0x6cc base 0x6cc insns 435/435 +diffs 11: [264, 269, 304, 305, 306, 307, 310, 313, 316, 322, 324] + 264 M lfs f2, 0(0) + B lfs f3, 0(0) + 269 M lfs f2, 0(0) + B lfs f3, 0(0) + 304 M fadds f2, f22, f0 + B fadds f3, f22, f0 + 305 M frsp f1, f2 + B frsp f1, f3 + 306 M lfs f3, 0x54(r1) + B lfs f2, 0x54(r1) + 307 M fmuls f23, f2, f29 + B fmuls f23, f3, f29 + 310 M stfs f2, 0x20(r1) + B stfs f3, 0x20(r1) + 313 M stfs f3, 0x50(r22) + B stfs f2, 0x50(r22) + 316 M stfs f3, 0x50(r23) + B stfs f2, 0x50(r23) + 322 M stfs f3, 0x24(r1) + B stfs f2, 0x24(r1) + 324 M stfs f3, 0x1c(r1) + B stfs f2, 0x1c(r1) + +CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv DIAGNOSIS frame0xd0,435/435insns, structure identical; eleven f2/f3 substitutions in second (forward) calcStringWidth inline return and size/height stores. Backwards helper matches. Only forward locals/operands/helper boundaries varied, protect other exact helper users. +CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | forward Size reference extends temporary lifetime | 432/435 insns structural/exact (53, 195) objdiff 97.73793% regress 0 source CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv.b52821f87fc0 +CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | forward string width declared before pane receiver | 435/435 insns structural/exact (0, 11) objdiff 99.873566% regress 0 source CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv.ce7189ca2d09 +CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | forward translated centre as separate summand | 435/435 insns structural/exact (2, 39) objdiff 99.413795% regress 0 source CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv.c509618a410d +CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv declaration search after three local/operand trials +fewer than two leading declarations; pass --lines START END + +START NHTTPi_compareTokenN_HdrRecvBuf origin/main cbf6363d0f5e07b6dceadc43693694c14d58a229 upstream source UNCHANGED +src 0x1f8 base 0x1f0 insns 126/124 +--- replace mine 0:1 base 0:1 + M 0 stwu r1, -0x20(r1) + B 0 stwu r1, -0x30(r1) +--- replace mine 2:4 base 2:4 + M 2 stw r0, 0x24(r1) + M 3 addi r11, r1, 0x20 + B 2 stw r0, 0x34(r1) + B 3 addi r11, r1, 0x30 +--- replace mine 6:9 base 6:7 + M 6 blt 12 + M 7 li r3, -1 + M 8 b 448 + B 6 bge 444 +--- replace mine 44:45 base 42:43 + M 44 extsb r0, r0 + B 42 extsb r25, r0 +--- replace mine 55:57 base 53:56 + M 55 lbz r0, 4(r10) + M 56 extsb r10, r0 + B 53 lbz r25, 4(r10) + B 54 li r28, 0x41 + B 55 li r31, 0x5a +--- delete mine 59:60 base 58:58 + M 59 li r28, 0x41 +--- replace mine 61:64 base 59:61 + M 61 li r31, 0x5a + M 62 b 132 + M 63 extsb. r5, r26 + B 59 b 128 + B 60 extsb. r5, r5 +--- replace mine 72:73 base 69:70 + M 72 b 192 + B 69 b 196 +--- replace mine 80:81 base 77:78 + M 80 extsb r5, r5 + B 77 extsb r25, r5 +--- replace mine 91:93 base 88:89 + M 91 lbz r5, 4(r5) + M 92 extsb r10, r5 + B 88 lbz r25, 4(r5) +--- replace mine 95:99 base 91:98 + M 95 srawi r12, r10, 0x1f + M 96 srwi r11, r10, 0x1f + M 97 subfc r5, r28, r10 + M 98 adde r30, r12, r29 + B 91 lbz r5, 0(r6) + B 92 extsb r30, r5 + B 93 srawi r12, r30, 0x1f + B 94 subfc r10, r28, r30 + B 95 srwi r11, r30, 0x1f + B 96 adde r27, r12, r29 + B 97 addi r26, r30, 0x20 +--- replace mine 100:107 base 99:105 + M 100 subfc r5, r10, r31 + M 101 adde r5, r12, r11 + M 102 and. r5, r30, r5 + M 103 beq 8 + M 104 addi r10, r10, 0x20 + M 105 lbz r26, 0(r6) + M 106 extsb r27, r26 + B 99 subfc r10, r30, r31 + B 100 adde r10, r12, r11 + B 101 and. r10, r27, r10 + B 102 bne 8 + B 103 mr r26, r30 + B 104 extsb r27, r25 +--- replace mine 108:109 base 106:107 + M 108 subfc r5, r28, r27 + B 106 subfc r10, r28, r27 +--- replace mine 112:115 base 110:113 + M 112 subfc r5, r27, r31 + M 113 adde r5, r12, r11 + M 114 and. r5, r30, r5 + B 110 subfc r10, r27, r31 + B 111 adde r10, r12, r11 + B 112 and. r10, r30, r10 +--- replace mine 117:119 base 115:117 + M 117 cmpw r10, r27 + M 118 beq -220 + B 115 cmpw r27, r26 + B 116 beq -224 +--- replace mine 120:121 base 118:119 + M 120 addi r11, r1, 0x20 + B 118 addi r11, r1, 0x30 +--- replace mine 122:123 base 120:121 + M 122 lwz r0, 0x24(r1) + B 120 lwz r0, 0x34(r1) +--- replace mine 124:125 base 122:123 + M 124 addi r1, r1, 0x20 + B 122 addi r1, r1, 0x30 + +NHTTPi_compareTokenN_HdrRecvBuf DIAGNOSIS source frame0x30,126/124insns; source narrows ReadHeaderChar before fold and at reader boundary, target retains integer byte with sign extension at fold; positive position=3 distinct compiled source variants, except explicitly skipped update_file_array. All unsuccessful source experiments restored; only exact create_icon retained. +Final retained data metadata quick gate PASS, global regression0/forbidden0/readability0/DOL hash unchanged. SD .data fuzzy0(unpaired)->10.087957 with correct three vtable names and104-byte extent; matched_data still240/1976. Candidate four type extents corrected, matched_data still1132/4652. Extent proof is object layout/relocation evidence; no bytes or section boundaries moved. +Final full gate PASS over all four; clean rebuild, DOL exact,0 regressions/patterns/readability; final report records all17 open functions and data uncertainty. diff --git a/tools/decomp-assist/partial-oct2f.data-gate.txt b/tools/decomp-assist/partial-oct2f.data-gate.txt new file mode 100644 index 00000000..5d0bbdc1 --- /dev/null +++ b/tools/decomp-assist/partial-oct2f.data-gate.txt @@ -0,0 +1,58 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL +[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0 +[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26 +[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.88362 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769 +[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222 +[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309 +[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0 +[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610 +[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL +[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0 +[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match 10.087957 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946 +[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935 +[src/keyboard/tiCandidateBox] pool: IDENTICAL +[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0 +[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112 +[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0 +[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127 +[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0 +[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875 +[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0 +[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395 +[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023 +[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481 +[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566 +[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.58088 +global fuzzy_match_percent: 99.45531 -> 99.45625 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.73032 -> 97.73032 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile u16 anmFrameBits; +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS diff --git a/tools/decomp-assist/partial-oct2f.final-gate.txt b/tools/decomp-assist/partial-oct2f.final-gate.txt new file mode 100644 index 00000000..5d0bbdc1 --- /dev/null +++ b/tools/decomp-assist/partial-oct2f.final-gate.txt @@ -0,0 +1,58 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL +[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0 +[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26 +[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.88362 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769 +[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222 +[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309 +[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0 +[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610 +[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL +[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0 +[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match 10.087957 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946 +[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935 +[src/keyboard/tiCandidateBox] pool: IDENTICAL +[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0 +[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112 +[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0 +[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127 +[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0 +[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875 +[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0 +[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395 +[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023 +[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481 +[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566 +[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.58088 +global fuzzy_match_percent: 99.45531 -> 99.45625 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.73032 -> 97.73032 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile u16 anmFrameBits; +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS diff --git a/tools/decomp-assist/partial-oct2f.icon-gate.txt b/tools/decomp-assist/partial-oct2f.icon-gate.txt new file mode 100644 index 00000000..25b9a5ee --- /dev/null +++ b/tools/decomp-assist/partial-oct2f.icon-gate.txt @@ -0,0 +1,58 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL +[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0 +[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26 +[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.88362 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769 +[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222 +[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309 +[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0 +[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610 +[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL +[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0 +[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match 19.598541 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946 +[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935 +[src/keyboard/tiCandidateBox] pool: IDENTICAL +[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0 +[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112 +[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0 +[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127 +[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0 +[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875 +[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0 +[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395 +[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023 +[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481 +[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566 +[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.58088 +global fuzzy_match_percent: 99.45531 -> 99.45625 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.73032 -> 97.73032 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile u16 anmFrameBits; +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS diff --git a/tools/decomp-assist/partial-oct2f.initial-gate.txt b/tools/decomp-assist/partial-oct2f.initial-gate.txt new file mode 100644 index 00000000..c3e50073 --- /dev/null +++ b/tools/decomp-assist/partial-oct2f.initial-gate.txt @@ -0,0 +1,57 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL +[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2368/5396 data None/None functions 17/26 fuzzy 97.3610 linked code 0 +[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 17/26 +[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 97.36101 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505 +[src/scene/memoryCard/iplMemoryCardManager] below 100: isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769 +[src/scene/memoryCard/iplMemoryCardManager] below 100: update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222 +[src/scene/memoryCard/iplMemoryCardManager] below 100: create_icon__Q33ipl5scene17MemoryCardManagerFUcs 86.17647 +[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309 +[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453 +[src/scene/memoryCard/iplMemoryCardManager] below 100: getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0 +[src/scene/memoryCard/iplMemoryCardManager] baseline: code 2368/5396 data None functions 17 fuzzy 97.3610 +[src/scene/sdChannelTitle/iplSDChannelTitle] pool: IDENTICAL +[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0 +[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .data size 1696 match None +[src/scene/sdChannelTitle/iplSDChannelTitle] section .rodata size 48 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata size 192 match 100.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .sdata2 size 40 match 90.0 +[src/scene/sdChannelTitle/iplSDChannelTitle] section .text size 18624 match 99.89347 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_startCopyProgress 98.62791 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_updateCopyStart 98.3421 +[src/scene/sdChannelTitle/iplSDChannelTitle] below 100: iplSDChannelTitle_flushSaveBeforeExit 98.5946 +[src/scene/sdChannelTitle/iplSDChannelTitle] baseline: code 17444/18624 data 240 functions 64 fuzzy 99.8935 +[src/keyboard/tiCandidateBox] pool: IDENTICAL +[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0 +[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112 +[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0 +[src/keyboard/tiCandidateBox] section .data size 3488 match 99.48127 +[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0 +[src/keyboard/tiCandidateBox] section .sdata size 32 match 96.875 +[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0 +[src/keyboard/tiCandidateBox] section .text size 24000 match 99.4395 +[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023 +[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481 +[src/keyboard/tiCandidateBox] below 100: CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566 +[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 1132 functions 109 fuzzy 99.4395 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 96.36407 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 87.59677 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 96.3641 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.07103 -> 63.07103 +global matched_data_percent: 97.73032 -> 97.73032 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS diff --git a/tools/decomp-assist/partial-oct2f.report.txt b/tools/decomp-assist/partial-oct2f.report.txt new file mode 100644 index 00000000..c514257e --- /dev/null +++ b/tools/decomp-assist/partial-oct2f.report.txt @@ -0,0 +1,50 @@ +GATE PASS +[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 18/26 +[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 2572/5396 data None/None functions 18/26 fuzzy 97.8836 linked code 0 +before -> after: instruction-exact 17/26 -> 18/26; objdiff-exact 17/26 -> 18/26; code 2368/5396 -> 2572/5396; matched_data None/None -> None/None +[src/scene/sdChannelTitle/iplSDChannelTitle] instruction-exact functions: 64/69 +[src/scene/sdChannelTitle/iplSDChannelTitle] objdiff: code 17444/18624 data 240/1976 functions 64/69 fuzzy 99.8935 linked code 0 +before -> after: instruction-exact 64/69 -> 64/69; objdiff-exact 64/69 -> 64/69; code 17444/18624 -> 17444/18624; matched_data 240/1976 -> 240/1976 +[src/keyboard/tiCandidateBox] instruction-exact functions: 108/112 +[src/keyboard/tiCandidateBox] objdiff: code 19988/24000 data 1132/4652 functions 109/112 fuzzy 99.4395 linked code 0 +before -> after: instruction-exact 108/112 -> 108/112; objdiff-exact 109/112 -> 109/112; code 19988/24000 -> 19988/24000; matched_data 1132/4652 -> 1132/4652 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7 +[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 96.3641 linked code 0 +before -> after: instruction-exact 6/7 -> 6/7; objdiff-exact 6/7 -> 6/7; code 1196/1692 -> 1196/1692; matched_data None/None -> None/None +Remaining nonmatching functions: +isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505%: directory row/column add operands r0/r3 reversed; 118/118 instructions, 2 diffs +isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl 99.830505%: directory row/column add operands r0/r3 reversed; 118/118 instructions, 2 diffs +isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs 92.30769%: restore stack-base setup scheduled seven instructions early; 26/26 instructions +update_file_array__Q33ipl5scene17MemoryCardManagerFUc 99.72222%: r3/r4 allocation tie; explicitly skipped as requested; 90/90 instructions +_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55%: texture/TLUT row and column addresses merged across GX calls; 100/100 instructions,16 structural differences +getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309%: callee-saved decoded pointer and row/column GPR coloring plus trim read pointer;123/123 instructions,20 GPR-only differences +create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453%: validation icon pointer reused; target recomputes rendering pointer and separate cell bases;106/106 instructions,15 structural differences +getBlocks__Q33ipl5scene17MemoryCardManagerFUcs 92.0%: restore stack-base setup scheduled before directory load;25/25 instructions +calcFadein__Q33ipl5scene14SDChannelTitleFv 97.87234%: extra initialized unused optOut handler argument;48/47 instructions +initCalcFadeout__Q33ipl5scene14SDChannelTitleFv 97.95918%: extra initialized unused optOut handler argument;50/49 instructions +iplSDChannelTitle_startCopyProgress 98.62791%: extra initialized unused enqueue controller argument and title-word scheduling;87/86 instructions +iplSDChannelTitle_updateCopyStart 98.3421%: extra initialized unused enqueue controller argument and title-word scheduling;77/76 instructions +iplSDChannelTitle_flushSaveBeforeExit 98.5946%: smArg base GPR assignment and heap/manager reload order;37/37 instructions +create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 92.71023%: UITextArea Init indexed addressing instead of advancing owner pointer; scroll/window name helper argument lifetimes;351/352 instructions +createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 96.56481%: animation pointer cached across CreateAnimTransform; entry reference restores216/216 structure but leaves53 GPR differences +CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv 99.873566%: eleven f2/f3 substitutions in forward-loop calcStringWidth/height temporaries;435/435 instructions +NHTTPi_compareTokenN_HdrRecvBuf 87.59677%: guard/read-width/LowerCase structure differs; best honest variant124/124 leaves five delimiter/ASCII-constant scheduling differences +Validation: final nonquick gate all four; clean full43U build; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; global regressions0; forbidden/readability0; all four pools identical. +Every remaining unskipped function has >=3 distinct compiled source attempts; failed variations restored. 17 open including update_file_array user skip. +New exact: create_icon__Q33ipl5scene17MemoryCardManagerFUcs,51/51 instructions,ctxdiff0,objdiff100. Volatile anmFrameBits is definition-level and scoped to IPL_MEMORY_CARD_MANAGER_CPP; target rereads duration at0xe94 on backedge0xebc->0xe90, without writes/calls in loop. +Uncertainty: Candidate gate reports108 instruction-exact versus109 objdiff-exact. Existing onGUIEvent is objdiff100 and declsearch-normalizedscore0; odiff normalizes CR1 branch immediate incorrectly. Function not changed. +Data limitation: matched_data is whole-section exact accounting and unchanged. SD three vtable names now pair (.data fuzzy10.087957) but anonymous pooled string/array boundaries and callback relocations remain. Candidate named data bytes/relocations pair after extent corrections, but source .data0xd7c differs from target0xda0 by36 bytes; weak extras were ignored, no padding/suppression added. scEmptyWChars has a final element1 vs target0; all-zero alternatives migrate it to .sbss and were restored. +Retained config proof:7 same-address data names and five type extent corrections, no function rename/size/address edits, section totals preserved. See DATA PROOF / DATA EXTENT PROOF lines in attempts log. +Files changed: +config/43U/symbols.txt +include/iplMemoryCardLib.h +src/scene/memoryCard/iplMemoryCardManager.cpp +tools/decomp-assist/partial-oct2f.attempts.md +tools/decomp-assist/partial-oct2f.data-gate.txt +tools/decomp-assist/partial-oct2f.final-gate.txt +tools/decomp-assist/partial-oct2f.icon-gate.txt +tools/decomp-assist/partial-oct2f.initial-gate.txt +tools/decomp-assist/partial-oct2f.report.txt +Commit hashes: +fde9f8d5 identify sd title data objects and correct extents +390d83ee match memory card icon frame duration reads -- 2.49.1 From b38c5653dfe7102ab3a43d4c13dac21f25f48029 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:11:00 +0000 Subject: [PATCH 39/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 677b1bda..12a67dbb 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.65% | 63.16% | 98.51% | +| 99.47% | 88.67% | 63.16% | 98.51% | -units 927/1027 complete, functions 12268/12563 matched. +units 927/1027 complete, functions 12270/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From c6c0b145f823573a643925eacc094af8547ff502 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:12:31 -0500 Subject: [PATCH 40/63] match(pf_fat12 4/4) (fz3b) (worker 18afdc56) (#763) --- .../TMC_JPEG/src/b65/iqdec_b65_frv32.c | 7 +- libs/RVL_SDK/src/fa/pf_fat12.c | 66 +++--- tools/decomp-assist/fz3.attempts.md | 188 ++++++++++++++++++ 3 files changed, 225 insertions(+), 36 deletions(-) diff --git a/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c b/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c index b7594c9f..7c4562e0 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32.c @@ -112,7 +112,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p u32* huff_tbl; s32 bit_pos; u32 bit_data; - const TMCHuffmanEntry* dc_fast; + u32 tmp; s32 r; s32 blk0; TMCHuffmanEntry acEntry; @@ -120,7 +120,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p s32 t; s32 zz; s32 q; - u32 tmp; + const TMCHuffmanEntry* dc_fast; const u8* zztbl; bit_pos = work->bitCount; @@ -142,8 +142,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p } if (r != 0) { - bit_pos -= r; - work->bitCount = bit_pos; + work->bitCount = bit_pos - r; r = extra; } else { huff_sym = work->pDCHuffSym; diff --git a/libs/RVL_SDK/src/fa/pf_fat12.c b/libs/RVL_SDK/src/fa/pf_fat12.c index f4d8d7c9..c7349cb1 100644 --- a/libs/RVL_SDK/src/fa/pf_fat12.c +++ b/libs/RVL_SDK/src/fa/pf_fat12.c @@ -175,68 +175,70 @@ pf_s32 PFFAT12_WriteFATEntryWithBuf(PF_VOLUME* p_vol, pf_s16 cluster, pf_u16 val pf_s32 PFFAT12_ReadFATEntryWithBuf(PF_VOLUME* p_vol , pf_u16 cluster , pf_u32* p_value , PF_CACHE_PAGE* p_page ) { - pf_u32 sector; - pf_u32 current_fat; - pf_s32 err; - pf_u32 offset; + struct { + pf_u32 sector; + pf_u32 current_fat; + pf_s32 err; + pf_u32 offset; + } state; pf_s32 result; #define LOAD_FAT_SECTOR(next_sector) \ - if (p_page->sector != sector + (next_sector)) { \ + if (p_page->sector != state.sector + (next_sector)) { \ if (p_page->option == 1) { \ - for (err = 0; (pf_u16)err < p_vol->bpb.num_active_FATs; err++) { \ - VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); \ + for (state.err = 0; (pf_u16)state.err < p_vol->bpb.num_active_FATs; state.err++) { \ + VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)state.err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); \ } \ } \ - err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, sector + (next_sector), 0, p_vol->bpb.bytes_per_sector); \ - if (err != 0) { continue; } \ - p_page->sector = sector + (next_sector); \ + state.err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, state.sector + (next_sector), 0, p_vol->bpb.bytes_per_sector); \ + if (state.err != 0) { continue; } \ + p_page->sector = state.sector + (next_sector); \ } - offset = (pf_u16)(cluster + (cluster >> 1)); - sector = p_vol->bpb.active_FAT_sector + (offset >> p_vol->bpb.log2_bytes_per_sector) & 0xFFFF; + state.offset = (pf_u16)(cluster + (cluster >> 1)); + state.sector = p_vol->bpb.active_FAT_sector + (state.offset >> p_vol->bpb.log2_bytes_per_sector) & 0xFFFF; if ((p_vol->bpb.ext_flags & 0x80) != 0) { - current_fat = p_vol->bpb.ext_flags & (0x01 | 0x02 | 0x04); + state.current_fat = p_vol->bpb.ext_flags & (0x01 | 0x02 | 0x04); } else { - current_fat = 1; + state.current_fat = 1; } - err = 0; + state.err = 0; while (PF_TRUE) { - if (err == 0x1000 && p_vol->p_callback != PF_NULL) { + if (state.err == 0x1000 && p_vol->p_callback != PF_NULL) { result = ((PF_VOLUME_CB)p_vol->p_callback)(p_vol->last_driver_error); if (result == 0) { - err = 0; + state.err = 0; continue; } - if (result == 1 && p_vol->bpb.num_active_FATs >= 2 && current_fat < p_vol->bpb.num_active_FATs) { - current_fat++; - sector += p_vol->bpb.sectors_per_FAT; - err = 0; + if (result == 1 && p_vol->bpb.num_active_FATs >= 2 && state.current_fat < p_vol->bpb.num_active_FATs) { + state.current_fat++; + state.sector += p_vol->bpb.sectors_per_FAT; + state.err = 0; continue; } } else { LOAD_FAT_SECTOR(0); - offset &= p_vol->bpb.bytes_per_sector - 1; - if (offset == (p_vol->bpb.bytes_per_sector - 1)) { - *p_value = *(p_page->p_buf + offset); + state.offset &= p_vol->bpb.bytes_per_sector - 1; + if (state.offset == (p_vol->bpb.bytes_per_sector - 1)) { + *p_value = *(p_page->p_buf + state.offset); if (p_page->option == 1) { - for (err = 0; (pf_u16)err < p_vol->bpb.num_active_FATs; err++) { - VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); + for (state.err = 0; (pf_u16)state.err < p_vol->bpb.num_active_FATs; state.err++) { + VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)state.err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); } } - err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, sector + 1, 0, p_vol->bpb.bytes_per_sector); - if (err != 0) { continue; } - p_page->sector = sector + 1; + state.err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, state.sector + 1, 0, p_vol->bpb.bytes_per_sector); + if (state.err != 0) { continue; } + p_page->sector = state.sector + 1; *p_value += (pf_u16)(*p_page->p_buf) << 8; } else { - *p_value = ((pf_u16)p_page->p_buf[offset + 1] << 8) + *(p_page->p_buf + offset); + *p_value = ((pf_u16)p_page->p_buf[state.offset + 1] << 8) + *(p_page->p_buf + state.offset); } } break; } - if (err != 0) { + if (state.err != 0) { *p_value = -1; - return err; + return state.err; } if ((cluster & 0x01) != 0) { *p_value = *p_value >> 4; diff --git a/tools/decomp-assist/fz3.attempts.md b/tools/decomp-assist/fz3.attempts.md index 93fc8059..02be0c7d 100644 --- a/tools/decomp-assist/fz3.attempts.md +++ b/tools/decomp-assist/fz3.attempts.md @@ -411,3 +411,191 @@ libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0) libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0) Fresh clean-build pwrite ctxdiff: 129/129 instructions, diffs 0. DOL SHA1 correct; regressions 0; forbidden patterns 0; readability warnings 0. Matched data remains 100% for all owned sections. Second accepted improvement: direct DC fast Huffman index expression raises JPEG fuzzy 98.9058 -> 99.03261; code count stays 0/1. Final clean full gate is PASS over all four units. Original inline-helper boundaries remain uncertain; rejected helper variants were restored. + +# Round 2 +Start a3b27c9ed0395c408f5c94ff657914456cc7d3f0; current origin/main a3b27c9ed0395c408f5c94ff657914456cc7d3f0 +libs/RVL_SDK/src/fa/pf_fat12 POOL IDENTICAL up to 0 (mine=0 base=0) +src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30) +libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0) + +## Round 2 PFFAT12_ReadFATEntryWithBuf +Origin/main source unchanged before starting. Pool empty. Frame 0x30 and 155 instructions identical. Structural comparison shows only error/offset registers exchanged; previous leading-declaration search exhausted all120 orders without exact match. New attempts vary real helper and state boundaries before register search. +PFFAT12_ReadFATEntryWithBuf | R2 typed buffered-read state aggregate | 155/155 instructions; structural/exact differences (0, 0) +PFFAT12_ReadFATEntryWithBuf | R2 FAT offset calculation inline helper | 155/155 instructions; structural/exact differences (0, 23) +PFFAT12_ReadFATEntryWithBuf | R2 buffered-read inline boundary ('p_vol', 'p_page', 'cluster', 'p_value') | 155/155 instructions; structural/exact differences (3, 26) +PFFAT12_ReadFATEntryWithBuf | R2 buffered-read inline boundary ('p_page', 'p_vol', 'p_value', 'cluster') | 155/155 instructions; structural/exact differences (3, 26) +PFFAT12_ReadFATEntryWithBuf | R2 buffered-read inline boundary ('cluster', 'p_value', 'p_page', 'p_vol') | 155/155 instructions; structural/exact differences (3, 26) +R2 FAT structural restore 155/155 instructions; structural/exact differences (0, 23) +R2 retained real buffered-read state aggregate 155/155 instructions; structural/exact differences (0, 0) + +## R2 accepted FAT result +Real buffered-read state aggregate scalar-replaces without changing frame or instructions. Exact-name objdiff100%, instruction-exact4/4, ctxdiff155/155 diffs0. No extra data or alignment object. +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 2164/2164 data None/None functions 4/4 fuzzy 100.0000 linked code 0 +[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 4/4 +[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 100.0 +[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.7597 +regressions vs baseline: 0 +global matched_code_percent: 88.64712 -> 88.66782 +global fuzzy_match_percent: 99.47315 -> 99.47333 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.51344 -> 98.51344 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS + +## Round 2 create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator +Origin/main unchanged before starting. Pool 30strings and3468data bytes identical. Same0x50frame and221instructions. Differences involve hoisted constructor vtables, animation record pointer/count. Previous scopes/loop/declsearch tried; new typed creation-state and constructor-helper boundaries. +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 outer creation state | 221/221 instructions; structural/exact differences (0, 38) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 creation state including inner index | 221/221 instructions; structural/exact differences (0, 63) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 creation state including pane pointer | 221/221 instructions; structural/exact differences (0, 38) +R2 Sign restore 221/221 instructions; structural/exact differences (0, 34) + +## Round 2 uhf_msc_blk_pread +Origin/main source unchanged before starting. Pool empty and424/424data. Same0x40frame,129instructions, control flow and operands. Only transfer-block count and memcpy byte-count registers exchanged. Try genuine transfer-state aggregate and typed length temporary, then declaration search. +uhf_msc_blk_pread | R2 full block transfer state | 129/129 instructions; structural/exact differences (0, 33) +uhf_msc_blk_pread | R2 transfer count and limit state | 129/129 instructions; structural/exact differences (0, 28) +uhf_msc_blk_pread | R2 copy length and transfer count state | 129/129 instructions; structural/exact differences (0, 10) +R2 MSC restored 129/129 instructions; structural/exact differences (0, 10) + +## Round 2 TMCJPEGDEC_decode_iquant +Origin/main source unchanged. No pool/data. Same0x50frame and276instructions. Structure differs in temporary aggregate-copy slots, AC fast-entry stack slot, helper subtraction/add operand order. New typed bit-reader/coefficient state and long-decoder helper state experiments; register search last. +TMCJPEGDEC_decode_iquant | R2 bit-reader scalar state | 276/276 instructions; structural/exact differences (12, 54) +TMCJPEGDEC_decode_iquant | R2 coefficient and Huffman scalar state | 276/276 instructions; structural/exact differences (12, 129) +TMCJPEGDEC_decode_iquant | R2 typed long-Huffman decoder state | 276/276 instructions; structural/exact differences (12, 64) +R2 JPEG structural restore 276/276 instructions; structural/exact differences (12, 50) +R2 state member declsearch restored src/keyboard/tiSignWindow 221/221 instructions; structural/exact differences (0, 34) +R2 state member declsearch restored libs/RVL_SDK/src/fa/msc/puh_msc_blk 129/129 instructions; structural/exact differences (0, 10) +declaration block: + const char* forceName; + u32 animationCount; + u32 paneIndex; +start (0, 38) +best (0, 38) after 6 builds; source restored; best order was: + const char* forceName; + u32 animationCount; + u32 paneIndex; + +declaration block: + UHF_MSC_DEVICE* device; + u16 transfer_blocks; + s32 error; + u32 block_size; + u8* transfer_buffer; + u32 transfer_limit; + s32 cacheable; +start (0, 33) +best (0, 33) after 52 builds; source restored; best order was: + UHF_MSC_DEVICE* device; + u16 transfer_blocks; + s32 error; + u32 block_size; + u8* transfer_buffer; + u32 transfer_limit; + s32 cacheable; + +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 per-pane animation state | 221/221 instructions; structural/exact differences (0, 65) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 per-pane state with pane object | 221/221 instructions; structural/exact differences (0, 65) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R2 typed sign-pane factory inline boundary | 221/221 instructions; structural/exact differences (0, 61) +R2 Sign restored 221/221 instructions; structural/exact differences (0, 34) +R2 transfer-state subset search 120 builds; retained 129/129 instructions; structural/exact differences (0, 10) +TMCJPEGDEC_decode_iquant | R2 DC count subtraction directly into work | 276/276 instructions; structural/exact differences (12, 48) +TMCJPEGDEC_decode_iquant | R2 long-helper consumed bit count explicit subtraction | 276/276 instructions; structural/exact differences (12, 50) +TMCJPEGDEC_decode_iquant | R2 long symbol subtraction separate from addition | 276/276 instructions; structural/exact differences (12, 51) +R2 JPEG retained 276/276 instructions; structural/exact differences (12, 48) + +## R2 open-function audit before final full gate +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator built, distinct R2 structural attempts 6; 221/221 instructions; structural/exact differences (0, 34) +uhf_msc_blk_pread built, distinct R2 structural attempts 3; 129/129 instructions; structural/exact differences (0, 10) +TMCJPEGDEC_decode_iquant built, distinct R2 structural attempts 6; 276/276 instructions; structural/exact differences (12, 46) +FAT open-function audit: none remains; ReadFATEntryWithBuf155/155 instructions, diffs0 and unit4/4exact. +declaration block: + TMCHuffmanEntry dcEntry; + u8* huff_sym; + const TMCHuffmanEntry* ac_fast; + s32 idx; + u32* huff_tbl; + s32 bit_pos; + u32 bit_data; + const TMCHuffmanEntry* dc_fast; + s32 r; + s32 blk0; + TMCHuffmanEntry acEntry; + s32 extra; + s32 t; + s32 zz; + s32 q; + u32 tmp; + const u8* zztbl; +start (12, 48) +improved (12, 46) +best (12, 46) after 320 builds; kept in source: + TMCHuffmanEntry dcEntry; + u8* huff_sym; + const TMCHuffmanEntry* ac_fast; + s32 idx; + u32* huff_tbl; + s32 bit_pos; + u32 bit_data; + u32 tmp; + s32 r; + s32 blk0; + TMCHuffmanEntry acEntry; + s32 extra; + s32 t; + s32 zz; + s32 q; + const TMCHuffmanEntry* dc_fast; + const u8* zztbl; + +R2 MSC all120 nontrivial transfer-state field subsets built without improvement; restored original source. Sign outer/member/per-pane/factory boundaries all preserve221instructions but worsen colors; restored. JPEG only direct bit-count subtraction and improved declaration order retained; 46instruction differences remain, including12 structural stack/copy differences. + +## R2 final clean full gate +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVL_SDK/src/fa/pf_fat12] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_fat12] objdiff: code 2164/2164 data None/None functions 4/4 fuzzy 100.0000 linked code 0 +[libs/RVL_SDK/src/fa/pf_fat12] instruction-exact functions: 4/4 +[libs/RVL_SDK/src/fa/pf_fat12] section .text size 2164 match 100.0 +[libs/RVL_SDK/src/fa/pf_fat12] baseline: code 1544/2164 data None functions 3 fuzzy 99.7597 +[src/keyboard/tiSignWindow] pool: IDENTICAL +[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8914 linked code 0 +[src/keyboard/tiSignWindow] instruction-exact functions: 55/56 +[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0 +[src/keyboard/tiSignWindow] section .data size 2672 match 100.0 +[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0 +[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0 +[src/keyboard/tiSignWindow] section .text size 7184 match 99.891426 +[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.117645 +[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] pool: IDENTICAL +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] objdiff: code 1556/2072 data 424/424 functions 10/11 fuzzy 99.8938 linked code 0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] instruction-exact functions: 10/11 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .bss size 384 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .data size 32 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .sbss size 8 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .text size 2072 match 99.89382 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] below 100: uhf_msc_blk_pread 99.57365 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] baseline: code 1556/2072 data 424 functions 10 fuzzy 99.8938 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 99.1051 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 99.10507 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 99.10507 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 99.0326 +regressions vs baseline: 0 +global matched_code_percent: 88.64712 -> 88.66782 +global fuzzy_match_percent: 99.47315 -> 99.47335 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.51344 -> 98.51344 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +libs/RVL_SDK/src/fa/pf_fat12 POOL IDENTICAL up to 0 (mine=0 base=0) +src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30) +libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0) +Fresh clean FAT ctxdiff155/155 diffs0. Code bytes1544->2164, exactfunctions3->4. Other exact counts unchanged. JPEG fuzzy99.03261->99.10507; declaration/direct-expression improvement remains partial. All owned data100%; no configuration/linking edits. Final full gate PASS, DOL correct, regressions0, forbidden0, readability0. Original JPEG inline-helper/copy layout remains uncertain. -- 2.49.1 From dbf6a1256e50cfb5f667803a88fef4bac8a154e7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:13:27 +0000 Subject: [PATCH 41/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 12a67dbb..481d2dcb 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.67% | 63.16% | 98.51% | +| 99.47% | 88.69% | 63.16% | 98.51% | -units 927/1027 complete, functions 12270/12563 matched. +units 927/1027 complete, functions 12271/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 5fe0a61af71d078b7b2da949b49a9cf30e81d66f Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:13:46 -0500 Subject: [PATCH 42/63] Initialize KPR callbacks explicitly and enable native linking (#762) --- configure.py | 2 +- libs/RVL_SDK/src/kpr/kpr_lib.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.py b/configure.py index 6da16397..5aeb3a1e 100644 --- a/configure.py +++ b/configure.py @@ -1892,7 +1892,7 @@ config.libs = [ ] ), RVLSDKLib("kpr", [ - Object(NonMatching, "kpr/kpr_lib.c"), + Object(Matching, "kpr/kpr_lib.c"), ] ), RVLSDKLib("usbkbd", [ diff --git a/libs/RVL_SDK/src/kpr/kpr_lib.c b/libs/RVL_SDK/src/kpr/kpr_lib.c index 32888f7c..824f59a9 100644 --- a/libs/RVL_SDK/src/kpr/kpr_lib.c +++ b/libs/RVL_SDK/src/kpr/kpr_lib.c @@ -144,8 +144,8 @@ const u16 kprLookupTable437[] = { 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0, }; -static void (*kprProcDeadKeysFP)(KPRQueue* queue); -static void (*kprProcRomajiFP)(KPRQueue* queue); +static void (*kprProcDeadKeysFP)(KPRQueue* queue) = NULL; +static void (*kprProcRomajiFP)(KPRQueue* queue) = NULL; const char* __KPRVersion = "<< RVL_SDK - KPR \trelease build: Apr 20 2010 11:21:44 (0x4199_60831) >>"; void KPRProcessDeadKeys(KPRQueue* queue); -- 2.49.1 From 4aaa362c5eb2ac1be17fe5fa533d5c2610d06473 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:14:34 +0000 Subject: [PATCH 43/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 481d2dcb..40c5016a 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.69% | 63.16% | 98.51% | +| 99.47% | 88.69% | 63.21% | 98.51% | -units 927/1027 complete, functions 12271/12563 matched. +units 928/1027 complete, functions 12271/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 7deffd048cf2cb4d71cb0667845b7b5d416e65d6 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:19:33 -0500 Subject: [PATCH 44/63] data(MyTiInputForm data 100%, tiInputForm/MyTiManager data up) (data-d4b) (worker 4e1959af) (#764) --- config/43U/symbols.txt | 31 ++- include/keyboard/tiTextDrawer.h | 1 + src/keyboard/MyTiInputForm.cpp | 2 +- tools/decomp-assist/data-d4.attempts.md | 267 ++++++++++++++++++++++++ 4 files changed, 289 insertions(+), 12 deletions(-) create mode 100644 tools/decomp-assist/data-d4.attempts.md diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index af209eb6..72f44c16 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -104,15 +104,24 @@ Voices = .bss:0x810C0C80; // type:object size:0x1800 data:4byte sZeroMem = .bss:0x810C2480; // type:object size:0x100 data:byte s_player_thread_stack = .bss:0x810C2580; // type:object size:0x4000 scope:local lbl_810C6580 = .bss:0x810C6580; // type:object size:0x10 -lbl_810C6590 = .bss:0x810C6590; // type:object size:0x60 +layoutGatherDestructorRecord = .bss:0x810C6590; // type:object size:0xC data:4byte +unInputedWCharColorDestructorRecord = .bss:0x810C659C; // type:object size:0xC data:4byte +charColorDestructorRecord = .bss:0x810C65A8; // type:object size:0xC data:4byte +ziStringColorLeftDestructorRecord = .bss:0x810C65B4; // type:object size:0xC data:4byte +ziStringNonSelectColorRightDestructorRecord = .bss:0x810C65C0; // type:object size:0xC data:4byte +ziStringColorRightDestructorRecord = .bss:0x810C65CC; // type:object size:0xC data:4byte +underlateColorDestructorRecord = .bss:0x810C65D8; // type:object size:0xC data:4byte +unInputedWCharColorSpaceDestructorRecord = .bss:0x810C65E4; // type:object size:0xC data:4byte ElementBuffer__Q39textinput8tistring6WithZi = .bss:0x810C65F0; // type:object size:0x200 data:2byte CandidatesBuffer__Q39textinput8tistring6WithZi = .bss:0x810C67F0; // type:object size:0x600 data:2byte CandidatedWord__Q39textinput8tistring6WithZi = .bss:0x810C6DF0; // type:object size:0x1400 data:2byte LatestWord__Q39textinput8tistring6WithZi = .bss:0x810C81F0; // type:object size:0x80 data:2byte snWidthTable__Q29textinput10textdrawer = .bss:0x810C8270; // type:object size:0x580 data:4byte -lbl_810C87F0 = .bss:0x810C87F0; // type:object size:0x24 +dispMemoStateDestructorRecord = .bss:0x810C87F0; // type:object size:0xC data:4byte +editMemoStateDestructorRecord = .bss:0x810C87FC; // type:object size:0xC data:4byte +appearMemoStateDestructorRecord = .bss:0x810C8808; // type:object size:0xC data:4byte sAppearMemoState__Q39textinput6extend4memo = .bss:0x810C8814; // type:object size:0xC data:4byte -lbl_810C8820 = .bss:0x810C8820; // type:object size:0xC data:4byte +disappearMemoStateDestructorRecord = .bss:0x810C8820; // type:object size:0xC data:4byte sDisappearMemoState__Q39textinput6extend4memo = .bss:0x810C882C; // type:object size:0xC data:4byte lbl_810C8838 = .bss:0x810C8838; // type:object size:0xC data:4byte sInstance__Q39textinput5input10HKBManager = .bss:0x810C8844; // type:object size:0xFC @@ -23724,14 +23733,14 @@ sCallback__19AxAdpcmSimplePlayer = .sbss:0x81698CE8; // type:object size:0x4 dat pBSWaveBuffer = .sbss:0x81698CF0; // type:object size:0x4 data:4byte @GUARD@getInstance__Q39textinput12LayoutGather9SingletonFv@sGather = .sbss:0x81698CF8; // type:object size:0x1 data:byte @LOCAL@getInstance__Q39textinput12LayoutGather9SingletonFv@sGather = .sbss:0x81698CFC; // type:object size:0x1 data:byte -csUnInputedWCharColor__Q29textinput9inputform = .sbss:0x81698D00; // type:object size:0x1 data:byte -csCharColor__Q29textinput9inputform = .sbss:0x81698D04; // type:object size:0x1 data:byte -csZiStringColorLeft__Q29textinput9inputform = .sbss:0x81698D08; // type:object size:0x1 data:byte -csZiStringNonSelectColorRight__Q29textinput9inputform = .sbss:0x81698D0C; // type:object size:0x1 data:byte -csZiStringColorRight__Q29textinput9inputform = .sbss:0x81698D10; // type:object size:0x1 data:byte -csUnderlateColor__Q29textinput9inputform = .sbss:0x81698D14; // type:object size:0x1 data:byte -csUnInputedWCharColorSpace__Q29textinput9inputform = .sbss:0x81698D18; // type:object size:0x1 data:byte -lbl_81698D1C = .sbss:0x81698D1C; // type:object size:0x4 align:4 data:float +csUnInputedWCharColor__Q29textinput9inputform = .sbss:0x81698D00; // type:object size:0x4 data:4byte +csCharColor__Q29textinput9inputform = .sbss:0x81698D04; // type:object size:0x4 data:4byte +csZiStringColorLeft__Q29textinput9inputform = .sbss:0x81698D08; // type:object size:0x4 data:4byte +csZiStringNonSelectColorRight__Q29textinput9inputform = .sbss:0x81698D0C; // type:object size:0x4 data:4byte +csZiStringColorRight__Q29textinput9inputform = .sbss:0x81698D10; // type:object size:0x4 data:4byte +csUnderlateColor__Q29textinput9inputform = .sbss:0x81698D14; // type:object size:0x4 data:4byte +csUnInputedWCharColorSpace__Q29textinput9inputform = .sbss:0x81698D18; // type:object size:0x4 data:4byte +sfColorPhase__Q29textinput9inputform = .sbss:0x81698D1C; // type:object size:0x4 align:4 data:float lbl_81698D20 = .sbss:0x81698D20; // type:object size:0x4 data:4byte s_dakuten_map__Q29textinput4util = .sbss:0x81698D28; // type:object size:0x8 scope:local data:4byte s_handaku_map__Q29textinput4util = .sbss:0x81698D30; // type:object size:0x8 scope:local data:4byte diff --git a/include/keyboard/tiTextDrawer.h b/include/keyboard/tiTextDrawer.h index 7428a6e7..f6783fb4 100644 --- a/include/keyboard/tiTextDrawer.h +++ b/include/keyboard/tiTextDrawer.h @@ -197,6 +197,7 @@ namespace textinput { bool mbMaintainCursorCache; #elif defined(MYTIINPUTFORM_IMPLEMENTATION) protected: + void setDrawScrollY(const f32& scroll) { mfDrawScrollY = scroll; } u8 mDrawState[0x27]; f32 mfDrawScrollY; u8 mDrawCacheState[0x14]; diff --git a/src/keyboard/MyTiInputForm.cpp b/src/keyboard/MyTiInputForm.cpp index 8e97fa55..67e5fffa 100644 --- a/src/keyboard/MyTiInputForm.cpp +++ b/src/keyboard/MyTiInputForm.cpp @@ -523,7 +523,7 @@ void InputForm::calc() { if (meEditMode == EM_Edit) { height = 2.0f * getLineHeight(); boundY = (mDefaultBoundTrans.y - (height - mDefaultBoundSize.height) / 2.0f) - mfScroll; - } else mfDrawScrollY = 0.0f; + } else setDrawScrollY(0.0f); mpBoundPane->SetSize(nw4r::lyt::Size(mpBoundPane->GetSize().width, height)); mpBoundPane->SetTranslate(nw4r::math::VEC2(mDefaultBoundTrans.x, boundY)); mpBoundPane->CalculateMtx(mDrawInfo); diff --git a/tools/decomp-assist/data-d4.attempts.md b/tools/decomp-assist/data-d4.attempts.md new file mode 100644 index 00000000..88de6cba --- /dev/null +++ b/tools/decomp-assist/data-d4.attempts.md @@ -0,0 +1,267 @@ +# Data d4 high round + +Baseline instruction-exact: tiInputForm 216/221, tiKeyboard 62/62, MyTiManager 91/91, MyTiInputForm 84/84. Matched_data: 908/3772, 12/2708, 76/1132, 2960/3032. All sources equal origin/main after initial fetch. Initial all-unit quick gate passes. All pools identical. Investigate actual relocations and typed source for every mismatch; do not claim completion from the safety gate alone. + +## MyTiInputForm + +High attempt 1: add the real protected textdrawer::Base draw-scroll setter taking const f32&, guarded by MYTIINPUTFORM_IMPLEMENTATION, and call it from calc's non-edit branch. This encapsulates the existing field assignment and lets MWCC materialize the addressable zero argument naturally in .sdata. No explicit object, array, forced section or padding was added. + +Concrete baseline difference: target .sdata+0x28 is four zero bytes, with Nigaoe at +0x2C; source omitted this constant and placed Nigaoe at +0x28. Target calc relocation at .text+0x1F24 referenced .sdata+0x28; baseline source referenced .sdata2 zero. Setter now produces .sdata+0x28 zero and moves the following strings to their target offsets. Source .sdata contains 67 bytes matching target through +0x42; the remaining five target bytes are zero section-end linker alignment. Every non-text section reports 100%, matched_data 2960 -> 3032. calc instruction count remains 629/629, ctxdiff diffs 0. All 84 functions remain objdiff 100%. Await full-unit regression gate before committing. + +All-unit quick gate after the setter passes: retail DOL hash preserved, regressions 0, forbidden/readability scans 0. MyTiInputForm remains 84/84 instruction-exact. Accepted and committed this focused improvement. + +## tiInputForm + +High attempts 1 and 2: defer tiLayoutGather.h until after the Color definitions, then until after sfColorPhase. Both emitted the seven Color objects at their real target offsets 0x0..0x18 instead of source offsets 0x8..0x20. However the compiler still schedules zero-initialized sfColorPhase after the singleton weak statics, and the section score regressed 33.333336 -> 31.818182. Static constructor objdiff regressed from 100 to 99.91954, unit matched_functions 218 -> 217 and matched_code 46980 -> 46632. Both changes rejected and restored. No accepted-data bytes gained. + +High attempt 3: recover the existing sfColorPhase symbol name without changing any size or split range. Target calcCursorTimer has lfs at 0x8141F13C, 0x8141F26C, 0x8141F2CC and stfs at 0x8141F2E0, all relocating to .sbss 0x81698D1C. The real C++ float sfColorPhase feeds those same sine/phase updates. Original anonymous float is already four bytes. This is a name correction, not source address pinning or resizing; total bytes unchanged. + +Phase-name recovery changes .sbss score 33.333336 -> 68.181816, but matched_data stays 908, with code/functions unchanged. No size or byte changes. Not retained as a fuzzy-only result. + +## tiKeyboard + +High attempt 1: declare gui::EventHandler's real virtual destructor out of line under a new macro defined only by tiKeyboard.cpp. The target does not retain this weak table or its weak methods in this unit. MWCC correctly changes its table ownership to external without changing any of the 62 original functions. .data improves 99.117645 -> 99.55687, matched_data remains 12. Pure abstract UIObj::Listener and AnmObserver still contribute 24 appended zero bytes not owned by the original split. Investigating before accepting any declaration-only change. + +## MyTiManager + +Fetched origin and checked pool first. All 91 functions already exact. Target .data+0x3B0..0x3D7 is 40 zero bytes without outgoing relocations; source ends at +0x3B0. Scan of all 43U extracted objects found references to that tail label: []. No concrete virtual method/function-pointer slot or used table object can be recovered from those zeros. Do not invent one. Target .bss is byte-identical 72 bytes but aggregates the first three compiler destructor records into a 36-byte symbol; source has three real 12-byte records at offsets 0, 12 and 24. The fourth record at +0x30 is 12 bytes. Source state objects at +0x24/+0x3C match target. No symbol sizes changed. + +tiKeyboard declaration attempt rejected and restored. It improves only fuzzy section similarity and does not make data exact. Last pure-abstract base tables have no target-owned relocation slots to fill; declaring invented virtual methods or suppressing tables with compiler attributes would be dishonest. + +High attempt 4: recover the actual four-byte ownership of each of seven Color objects in symbols.txt, preserving every address, split boundary and section byte. This corrects wrongly inferred byte objects; it does not hide a byte or relocation difference. Target static initialization relocates r6 to each named Color base and stores the R byte at base plus G/B/A bytes at +1,+2,+3 before registering the same base with __dt__nw4r::ut::Color. All seven objects are exactly four bytes apart, with no overlapping object or unrelated symbol in the three omitted bytes. Existing source already has the real typed nw4r::ut::Color globals. The prior one-byte annotations incorrectly assigned G/B/A to anonymous gaps. sfColorPhase name is recovered from its exact lfs/stfs relocations. Total .sbss stays 32 and whole-unit total_data stays 3772. This is evidence-backed object ownership recovery, not shrinking tables to hide mismatches. + +Color ownership recovery passes the all-unit quick gate. .sbss now 100%, tiInputForm matched_data 908 -> 940, total_data unchanged 3772, instruction-exact 216/221 unchanged, whole-project regressions 0, DOL hash unchanged. Gate explicitly marks symbols.txt for orchestrator review. No source or object bytes were changed by this metadata correction. + +High record-ownership experiment: recover the real 12-byte DestructorChain objects in two incorrectly aggregated BSS labels. NMWException.h defines next/dtor/object, all four-byte pointers. Runtime __register_global_object writes exactly those three fields. Target tiInputForm onCommand registers its singleton using BSS+0; static initialization registers the seven Color globals with BSS+12,+24,+36,+48,+60,+72,+84. Target MyTiManager static initialization registers Disp/Edit/Appear/Disappear states with BSS+0,+12,+24,+48. State objects themselves occupy +36..47 and +60..71 and stay untouched. Replace only the aggregate ownership annotation with those separately proved record boundaries; no byte, section size, split or pointer target changes. No source records or dummy padding added. Keep only if original functions do not regress and data measures improve. + +Record ownership recovery passes the all-unit quick gate. tiInputForm .bss is now 100%, data 940 -> 1036; MyTiManager .bss is now 100%, data 76 -> 148. Both sections have the same byte extent and all original instruction-exact functions are preserved. Whole-project regressions 0, retail DOL hash unchanged. Symbols review remains required by the orchestrator. + +calcCursorPos attempt right-before-bottom: objdiff 91.59509%, code 46980, data 1036. ['src 0x518 base 0x518 insns 326/326', 'diffs 43: [77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 127, 128, 129, 130, 131, 132, 133]'] +calcCursorPos attempt separate-scale-components: objdiff 86.54601%, code 46980, data 1036. ['src 0x4f4 base 0x518 insns 317/326', '--- replace mine 28:29 base 28:29'] +calcCursorPos attempt aggregate-line-bounds: objdiff 78.78528%, code 46980, data 1036. ['src 0x56c base 0x518 insns 347/326', '--- replace mine 0:1 base 0:1'] +create attempt reload-row-owner: objdiff 94.985954%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6'] +create attempt font-branch-direction: objdiff 85.985954%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6'] +create attempt typed-button-index: objdiff 95.02809%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6'] +setLanguage attempt text-pane-branch-direction: objdiff 96.44726%, code 46980, data 1036. ['src 0x3b4 base 0x3b4 insns 237/237', 'diffs 22: [57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 118, 119, 120, 121, 122, 123, 124, 125, 126]'] +setLanguage attempt reload-language-pane-after-query: objdiff 96.44726%, code 46980, data 1036. ['src 0x3b4 base 0x3b4 insns 237/237', 'diffs 22: [57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 118, 119, 120, 121, 122, 123, 124, 125, 126]'] +setLanguage attempt split-visibility-counts: objdiff 93.44304%, code 46980, data 1036. ['src 0x3bc base 0x3b4 insns 239/237', '--- replace mine 9:11 base 9:10'] +High tiInputForm vtable attempt: declare the real GUIComponent virtual destructor out of line in this unit only. This asks the compiler to use the actual external destructor/vtable ownership instead of emitting a duplicate weak GUIComponent table. Every virtual method and signature remains intact. Original unit does not own the GUIComponent destructor. Inspect data and original-function counts before keeping it. +GUIComponent destructor declaration had no data/code effect because this unit still defines its real non-inline init, which causes MWCC to emit the table. Restored header. Next real-class ownership attempt declares only gui::EventHandler destructor out of line, preserving all virtual slots. +GUI EventHandler destructor-declaration result: code 46916, functions 217, data 1036. Sections [{'name': '.bss', 'size': '96', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.ctors', 'size': '4', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '2736', 'fuzzy_match_percent': 65.68563, 'metadata': {}}, {'name': '.rodata', 'size': '760', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sbss', 'size': '32', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '40', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata2', 'size': '104', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.text', 'size': '50656', 'fuzzy_match_percent': 99.521164, 'metadata': {}}]. Rejected and restored; no exact-data improvement. + +## Final concrete data-symbol audit + +Rebuilt all four units from a clean build with the final full gate. The following table compares every target .data symbol to its same-name source object (unnamed labels use the same section offset). Relocations are compared relative to the named object, not to the section start. Named weak tables at different section offsets can have identical real entries. An aligned target symbol extent can include zeros beyond the actual C++ object; these are shown separately rather than treated as missing virtual functions. + +### tiInputForm .data + +Target 2736 bytes; source 3077 bytes. + +- `scP_txtScrll_UP` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal. +- `scP_txtScrll_DOWN` target +0x10, source +0x10: owned bytes equal, 0 relocation entries equal. +- `lbl_8165C840` target +0x20, source +0x20: owned bytes equal, 18 relocation entries equal. +- `scN_JPNUSAEUR` target +0xA0, source +0xA0: owned bytes equal, 0 relocation entries equal. +- `scN_separateBarAll` target +0xAC, source +0xAC: owned bytes equal, 0 relocation entries equal. +- `scT_2l_TextBox` target +0xC0, source +0xC0: owned bytes equal, 0 relocation entries equal. +- `scT_title_textJPN` target +0xD0, source +0xD0: owned bytes equal, 0 relocation entries equal. +- `scN_separateBarKOR` target +0xE0, source +0xE0: owned bytes equal, 0 relocation entries equal. +- `scT_2l_TextBoxKOR` target +0xF8, source +0xF8: owned bytes equal, 0 relocation entries equal. +- `scT_title_textKOR` target +0x108, source +0x108: owned bytes equal, 0 relocation entries equal. +- `scN_separateBarCHN` target +0x118, source +0x118: owned bytes equal, 0 relocation entries equal. +- `scT_2l_TextBoxCHN` target +0x130, source +0x130: owned bytes equal, 0 relocation entries equal. +- `scT_title_textCHN` target +0x140, source +0x140: owned bytes equal, 0 relocation entries equal. +- `lbl_8165C970` target +0x150, source +0x150: owned bytes equal, 0 relocation entries equal. +- `jumptable_8165C990` target +0x170, source +0x170: owned bytes equal, 40 relocation entries equal. +- `jumptable_8165CA30` target +0x210, source +0x210: owned bytes equal, 10 relocation entries equal. +- `jumptable_8165CA58` target +0x238, source +0x238: owned bytes equal, 13 relocation entries equal. +- `jumptable_8165CA8C` target +0x26C, source +0x26C: owned bytes equal, 48 relocation entries equal. +- `jumptable_8165CB4C` target +0x32C, source +0x32C: owned bytes equal, 37 relocation entries equal. +- `lbl_8165CBE0` target +0x3C0, source +0x3C0: owned bytes equal, 0 relocation entries equal. +- `lbl_8165CC14` target +0x3F4, source +0x3F4: owned bytes equal, 0 relocation entries equal. +- `lbl_8165CC28` target +0x408, source +0x408: owned bytes equal, 0 relocation entries equal. +- `lbl_8165CC4C` target +0x42C, source +0x42C: owned bytes equal, 0 relocation entries equal. +- `jumptable_8165CC5C` target +0x43C, source +0x43C: owned bytes equal, 7 relocation entries equal. +- `__vt__Q39textinput9inputform19NormalButtonAnmPane` target +0x458, source +0x458: owned bytes equal, 9 relocation entries equal. +- `__vt__Q39textinput9inputform7AnmPane` target +0x484, source +0x484: owned bytes equal, 9 relocation entries equal. +- `__vt__Q39textinput9inputform12EventHandler` target +0x4B0, source +0x4B0: owned bytes equal, 6 relocation entries equal. +- `__vt__Q39textinput9inputform12LayoutByNW4R` target +0x4D0, source +0x4D0: owned bytes equal, 136 relocation entries equal. +- `__vt__Q39textinput9inputform4Base` target +0x710, source +0x710: owned bytes equal, 100 relocation entries equal. +- `__vt__Q39textinput9inputform10EditBuffer` target +0x8B8, source +0x8B8: owned bytes equal, target extent 16, source object 12, 1 relocation entries equal. +- `__vt__Q39textinput8tistring8WithAtok` target +0x8C8, source +0x8C8: owned bytes equal, 78 relocation entries equal. +- `__vt__Q29textinput4Base` target +0xA08, source +0xBA0: owned bytes equal, target extent 48, source object 20, 3 relocation entries equal. +- `__vt__Q39textinput4util9Animation` target +0xA38, source +0xB58: owned bytes equal, 7 relocation entries equal. +- `lbl_8165D258` target +0xA5C, source +0xA5C: first byte difference +0x0: 4F -> 00, relocations +0x0 None -> ('inputString__Q39textinput8tistring9DecolatedFPCw', 0); +0x4 None -> ('deleteChar__Q39textinput8tistring9DecolatedFv', 0); +0x8 None -> ('backSpace__Q39textinput8tistring9DecolatedFv', 0); +0xC None -> ('confirm__Q39textinput8tistring9DecolatedFPCw', 0). +- `@STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl` target +0xA6C, source +0xBC4: owned bytes equal, target extent 68, source object 65, source section ends after 65 available bytes, 0 relocation entries equal. + +Additional real compiler-emitted weak tables absent from the target symbol inventory: + +- `__vt__Q39textinput8tistring9Decolated` source +0xA08, 208 bytes: +0x4C -> getLastWChar__Q39textinput8tistring10StringBaseFv; +0x48 -> hasCandidate__Q39textinput8tistring10StringBaseCFv; +0x44 -> getCandidate__Q39textinput8tistring10StringBaseCFv; +0x40 -> setCandidate__Q39textinput8tistring10StringBaseFw; +0x3C -> getWCString__Q39textinput8tistring10StringBaseCFv; +0x34 -> setAt__Q39textinput8tistring10StringBaseFUsw; +0x2C -> replace__Q39textinput8tistring10StringBaseFUsUsPCw; +0x28 -> remove__Q39textinput8tistring10StringBaseFUsUs; +0x24 -> insert__Q39textinput8tistring10StringBaseFUsPCw; +0x20 -> append__Q39textinput8tistring10StringBaseFPCw; +0x1C -> getLength__Q39textinput8tistring10StringBaseCFv; +0x14 -> popBack__Q39textinput8tistring10StringBaseFv; +0x10 -> pushBack__Q39textinput8tistring10StringBaseFw; +0xC -> create__Q39textinput8tistring10StringBaseFP12MEMAllocator; +0xCC -> EnableKSXFilter__Q39textinput8tistring9DecolatedFb; +0xC8 -> clearKana__Q39textinput8tistring9DecolatedFv; +0xC4 -> confirmKana__Q39textinput8tistring9DecolatedFv; +0xC0 -> isKanaFix__Q39textinput8tistring9DecolatedCFv; +0xBC -> getKanaBuffer__Q39textinput8tistring9DecolatedFv; +0xB8 -> initKanaConverter__Q39textinput8tistring9DecolatedFv; +0xB4 -> atTheBeginningOfASentence__Q39textinput8tistring9DecolatedFv; +0xB0 -> converSmall__Q39textinput8tistring9DecolatedFv; +0xAC -> isSmall__Q39textinput8tistring9DecolatedFv; +0xA8 -> convertAll__Q39textinput8tistring9DecolatedFv; +0xA4 -> converHandaku__Q39textinput8tistring9DecolatedFv; +0xA0 -> isHandaku__Q39textinput8tistring9DecolatedFv; +0x9C -> converDakuten__Q39textinput8tistring9DecolatedFv; +0x98 -> isDakuten__Q39textinput8tistring9DecolatedFv; +0x94 -> replaceAtCursor__Q39textinput8tistring9DecolatedFw; +0x90 -> getWCharAtCursor__Q39textinput8tistring9DecolatedFv; +0x8C -> getSelected__Q39textinput8tistring9DecolatedFRUlRUl; +0x88 -> deleteForward__Q39textinput8tistring9DecolatedFv; +0x84 -> canBackSpace__Q39textinput8tistring9DecolatedFv; +0x7C -> getCursorPos__Q39textinput8tistring9DecolatedCFv; +0x80 -> getCursorPos__Q39textinput8tistring9DecolatedFPUlPUl; +0x78 -> isOnSustain__Q39textinput8tistring9DecolatedFv; +0x74 -> offSustain__Q39textinput8tistring9DecolatedFv; +0x70 -> onSustain__Q39textinput8tistring9DecolatedFv; +0x6C -> setCursorPos__Q39textinput8tistring9DecolatedFUl; +0x68 -> moveCursorLeft__Q39textinput8tistring9DecolatedFv; +0x64 -> moveCursorRight__Q39textinput8tistring9DecolatedFv; +0x60 -> confirm__Q39textinput8tistring9DecolatedFPCw; +0x5C -> backSpace__Q39textinput8tistring9DecolatedFv; +0x58 -> deleteChar__Q39textinput8tistring9DecolatedFv; +0x50 -> inputChar__Q39textinput8tistring9DecolatedFw; +0x54 -> inputString__Q39textinput8tistring9DecolatedFPCw; +0x38 -> setLength__Q39textinput8tistring9DecolatedFUs; +0x30 -> set__Q39textinput8tistring9DecolatedFPCw; +0x18 -> clear__Q39textinput8tistring9DecolatedFv; +0x8 -> __dt__Q39textinput8tistring9DecolatedFv. +- `__vt__Q39textinput3gui12GUIComponent` source +0xAD8, 104 bytes: +0x18 -> draw__Q39textinput3gui12GUIInterfaceFRA3_A4_f; +0x1C -> draw__Q39textinput3gui12GUIInterfaceFv; +0x14 -> calc__Q39textinput3gui12GUIInterfaceFv; +0xC -> create__Q39textinput3gui12GUIInterfaceFv; +0x60 -> setFlightDuration__Q39textinput3gui12GUIComponentFiUs; +0x5C -> getFlightDuration__Q39textinput3gui12GUIComponentFi; +0x58 -> isVisible__Q39textinput3gui12GUIComponentFv; +0x54 -> setTriggerTarget__Q39textinput3gui12GUIComponentFb; +0x50 -> isTriggerTarget__Q39textinput3gui12GUIComponentFv; +0x48 -> updatePointer__Q39textinput3gui12GUIComponentFRCQ39textinput3gui10GUIPointer; +0x4C -> updatePointer__Q39textinput3gui12GUIComponentFiffUlUlUl; +0x44 -> setDraggingButton__Q39textinput3gui12GUIComponentFUl; +0x40 -> onTrig__Q39textinput3gui12GUIComponentFiUlR3Vec; +0x3C -> onMove__Q39textinput3gui12GUIComponentFiff; +0x38 -> onDrag__Q39textinput3gui12GUIComponentFff; +0x34 -> onPointOut__Q39textinput3gui12GUIComponentFi; +0x30 -> onPointIn__Q39textinput3gui12GUIComponentFi; +0x2C -> setPointed__Q39textinput3gui12GUIComponentFib; +0x28 -> isDragging__Q39textinput3gui12GUIComponentFi; +0x24 -> isPointed__Q39textinput3gui12GUIComponentFi; +0x20 -> getID__Q39textinput3gui12GUIComponentFv; +0x8 -> __dt__Q39textinput3gui12GUIComponentFv; +0x10 -> init__Q39textinput3gui12GUIComponentFv. +- `__vt__Q39textinput3gui12EventHandler` source +0xB40, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv. +- `__vt__Q29textinput15CommandReceiver` source +0xB80, 32 bytes: +0x10 -> init__Q29textinput4BaseFv; +0xC -> create__Q29textinput4BaseFP12MEMAllocator; +0x1C -> addSender__Q29textinput15CommandReceiverFPQ29textinput13CommandSender; +0x18 -> onCommand__Q29textinput15CommandReceiverFQ39textinput15CommandReceiver13INPUT_COMMANDPv; +0x14 -> clearSender__Q29textinput15CommandReceiverFv; +0x8 -> __dt__Q29textinput15CommandReceiverFv. + +### tiKeyboard .data + +Target 2696 bytes; source 2744 bytes. + +- `lbl_8165F8F0` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal. +- `lbl_8165F900` target +0x10, source +0x10: owned bytes equal, 0 relocation entries equal. +- `lbl_8165F920` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal. +- `lbl_8165F938` target +0x48, source +0x48: owned bytes equal, 0 relocation entries equal. +- `lbl_8165F950` target +0x60, source +0x60: owned bytes equal, 0 relocation entries equal. +- `lbl_8165F96C` target +0x7C, source +0x7C: owned bytes equal, 0 relocation entries equal. +- `lbl_8165F988` target +0x98, source +0x98: owned bytes equal, 0 relocation entries equal. +- `lbl_8165F9A0` target +0xB0, source +0xB0: owned bytes equal, 0 relocation entries equal. +- `__vt__Q29textinput7Manager` target +0xC8, source +0xC8: owned bytes equal, 50 relocation entries equal. +- `__vt__Q49textinput8keyboard10signwindow6Sample` target +0x198, source +0x198: owned bytes equal, target extent 272, source object 268, 61 relocation entries equal. +- `__vt__Q39textinput11predictlang6Sample` target +0x2A8, source +0x2A8: owned bytes equal, 50 relocation entries equal. +- `__vt__Q39textinput11predictlang4Base` target +0x388, source +0x388: owned bytes equal, target extent 40, source object 36, 7 relocation entries equal. +- `__vt__Q39textinput7toolbar6Sample` target +0x3B0, source +0x3B0: owned bytes equal, 48 relocation entries equal. +- `__vt__Q39textinput9inputform6Sample` target +0x480, source +0x480: owned bytes equal, 136 relocation entries equal. +- `__vt__Q39textinput12candidatebox6Sample` target +0x6C0, source +0x6C0: owned bytes equal, 70 relocation entries equal. +- `__vt__Q49textinput8keyboard13cellphonetype6Sample` target +0x7F0, source +0x7F0: owned bytes equal, 75 relocation entries equal. +- `__vt__Q49textinput8keyboard6pctype6Sample` target +0x92C, source +0x92C: owned bytes equal, 81 relocation entries equal. + +Additional real compiler-emitted weak tables absent from the target symbol inventory: + +- `__vt__Q59textinput8keyboard6pctype5UIObj8Listener` source +0xA88, 12 bytes: all bytes zero; no relocation slots. +- `__vt__Q39textinput11nw4rmanager11AnmObserver` source +0xA94, 12 bytes: all bytes zero; no relocation slots. +- `__vt__Q39textinput3gui12EventHandler` source +0xAA0, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv. + +### MyTiManager .data + +Target 984 bytes; source 944 bytes. + +- `lbl_81667E38` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal. +- `lbl_81667E58` target +0x20, source +0x20: owned bytes equal, 0 relocation entries equal. +- `lbl_81667E68` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal. +- `lbl_81667E7C` target +0x44, source +0x44: owned bytes equal, 0 relocation entries equal. +- `lbl_81667E94` target +0x5C, source +0x5C: owned bytes equal, 0 relocation entries equal. +- `lbl_81667EB0` target +0x78, source +0x78: owned bytes equal, 0 relocation entries equal. +- `lbl_81667EC8` target +0x90, source +0x90: owned bytes equal, 0 relocation entries equal. +- `__vt__Q49textinput6extend2bg4Base` target +0xA8, source +0xA8: owned bytes equal, 2 relocation entries equal. +- `__vt__Q49textinput6extend4memo18DisappearMemoState` target +0xB8, source +0xB8: owned bytes equal, 20 relocation entries equal. +- `__vt__Q49textinput6extend4memo13EditMemoState` target +0x110, source +0x110: owned bytes equal, 20 relocation entries equal. +- `__vt__Q49textinput6extend4memo15AppearMemoState` target +0x168, source +0x168: owned bytes equal, 20 relocation entries equal. +- `__vt__Q49textinput6extend4memo13DispMemoState` target +0x1C0, source +0x1C0: owned bytes equal, 20 relocation entries equal. +- `__vt__Q49textinput6extend4memo5State` target +0x218, source +0x218: owned bytes equal, 10 relocation entries equal. +- `__vt__Q49textinput6extend4memo7Manager` target +0x270, source +0x270: owned bytes equal, 78 relocation entries equal. +- `lbl_816681E8` target +0x3B0, source +0x3B0: target contains 40 zero bytes; source section has ended, so none of this object is present; no target relocation entries. + +### MyTiInputForm .data + +Target 1616 bytes; source 1616 bytes. + +- `lbl_81668210` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal. +- `lbl_8166821C` target +0xC, source +0xC: owned bytes equal, 0 relocation entries equal. +- `lbl_81668228` target +0x18, source +0x18: owned bytes equal, 0 relocation entries equal. +- `lbl_81668234` target +0x24, source +0x24: owned bytes equal, 0 relocation entries equal. +- `lbl_81668240` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal. +- `lbl_8166824C` target +0x3C, source +0x3C: owned bytes equal, 0 relocation entries equal. +- `scPaneName__Q39textinput6extend4memo` target +0x4C, source +0x4C: owned bytes equal, relocations +0x0 ('lbl_81668210', 0) -> ('@6051', 0); +0x4 ('lbl_816974E0', 0) -> ('@6052', 0); +0x8 ('lbl_816974E8', 0) -> ('@6053', 0); +0xC ('lbl_8166821C', 0) -> ('@6054', 0); +0x10 ('lbl_816974F0', 0) -> ('@6055', 0); +0x14 ('lbl_81668228', 0) -> ('@6056', 0); +0x18 ('lbl_81668234', 0) -> ('@6057', 0); +0x1C ('lbl_81668240', 0) -> ('@6058', 0); +0x20 ('lbl_8166824C', 0) -> ('@6059', 0). +- `jumptable_81668280` target +0x70, source +0x70: owned bytes equal, 26 relocation entries equal. +- `lbl_81668324` target +0x114, source +0x114: owned bytes equal, 0 relocation entries equal. +- `lbl_81668330` target +0x120, source +0x120: owned bytes equal, 0 relocation entries equal. +- `lbl_81668340` target +0x130, source +0x130: owned bytes equal, 0 relocation entries equal. +- `lbl_81668350` target +0x140, source +0x140: owned bytes equal, 0 relocation entries equal. +- `lbl_8166835C` target +0x14C, source +0x14C: owned bytes equal, 0 relocation entries equal. +- `lbl_81668368` target +0x158, source +0x158: owned bytes equal, 0 relocation entries equal. +- `lbl_81668374` target +0x164, source +0x164: owned bytes equal, 0 relocation entries equal. +- `lbl_81668380` target +0x170, source +0x170: owned bytes equal, 0 relocation entries equal. +- `lbl_8166838C` target +0x17C, source +0x17C: owned bytes equal, 0 relocation entries equal. +- `csGroupName__Q39textinput6extend4memo` target +0x188, source +0x188: owned bytes equal, relocations +0x0 ('lbl_81668324', 0) -> ('@6255', 0); +0x4 ('lbl_81668330', 0) -> ('@6256', 0); +0x8 ('lbl_81668340', 0) -> ('@6257', 0); +0xC ('lbl_81668350', 0) -> ('@6258', 0); +0x10 ('lbl_8166835C', 0) -> ('@6259', 0); +0x14 ('lbl_81668368', 0) -> ('@6260', 0); +0x18 ('lbl_81668374', 0) -> ('@6261', 0); +0x1C ('lbl_81668380', 0) -> ('@6262', 0); +0x20 ('lbl_8166838C', 0) -> ('@6263', 0). +- `jumptable_816683BC` target +0x1AC, source +0x1AC: owned bytes equal, 9 relocation entries equal. +- `jumptable_816683E0` target +0x1D0, source +0x1D0: owned bytes equal, 9 relocation entries equal. +- `lbl_81668404` target +0x1F4, source +0x1F4: owned bytes equal, 0 relocation entries equal. +- `lbl_81668418` target +0x208, source +0x208: owned bytes equal, 0 relocation entries equal. +- `lbl_81668428` target +0x218, source +0x218: owned bytes equal, 0 relocation entries equal. +- `lbl_81668434` target +0x224, source +0x224: owned bytes equal, 0 relocation entries equal. +- `lbl_81668460` target +0x250, source +0x250: owned bytes equal, 0 relocation entries equal. +- `lbl_8166846C` target +0x25C, source +0x25C: owned bytes equal, 0 relocation entries equal. +- `lbl_8166847C` target +0x26C, source +0x26C: owned bytes equal, 0 relocation entries equal. +- `lbl_81668488` target +0x278, source +0x278: owned bytes equal, 0 relocation entries equal. +- `__vt__Q49textinput6extend4memo13SimpleAnmPane` target +0x284, source +0x284: owned bytes equal, 7 relocation entries equal. +- `__vt__Q49textinput6extend4memo12ScrollButton` target +0x2A8, source +0x2A8: owned bytes equal, 4 relocation entries equal. +- `__vt__Q49textinput6extend4memo10NigaoePane` target +0x2C0, source +0x2C0: owned bytes equal, 9 relocation entries equal. +- `__vt__Q49textinput6extend4memo9WholePane` target +0x2EC, source +0x2EC: owned bytes equal, 9 relocation entries equal. +- `__vt__Q49textinput6extend4memo7AnmPane` target +0x318, source +0x318: owned bytes equal, target extent 48, source object 44, 9 relocation entries equal. +- `__vt__Q49textinput6extend4memo12EventHandler` target +0x348, source +0x348: owned bytes equal, 6 relocation entries equal. +- `__vt__Q49textinput6extend4memo9InputForm` target +0x368, source +0x368: owned bytes equal, target extent 744, source object 720, 172 relocation entries equal. + +Additional real compiler-emitted weak tables absent from the target symbol inventory: + +- `__vt__Q39textinput3gui12EventHandler` source +0x638, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv. + +## Remaining differences and completeness audit + +Raw relocation name differences for ordinary literal aliases in the inventory above are not wrong pointer targets: normalization to referenced section plus symbol value plus relocation addend resolves them to the same bytes. All retained tiInputForm tables through WithAtok, all tiKeyboard retained tables, and all MyTiManager retained tables have the exact original virtual method slots. No missing nonzero virtual slot was discovered. tiInputForm Base at target .data+0xA08 has only its real destructor/create/init at +8/+12/+16; the additional 28 bytes of its extraction extent are zeros without relocations. Its source table at +0xBA0 has those same three entries. Animation has all seven exact method slots, but shifts from target +0xA38 to source +0xB58. The target OutOfLength literal is at +0xA5C; the identical source literal is at +0xBB4. The final assertion literal shifts from +0xA6C to +0xBC4. The section is not byte-identical and remains unresolved; no invented virtual methods, suppressed tables, padding, or size truncation was used. + +tiKeyboard's complete 2696-byte target prefix is byte-identical to source, including every normalized relocation. Source appends two genuine pure-abstract 12-byte weak tables with only zeros and one real 24-byte EventHandler table with the four concrete relocation slots listed above. Therefore the entire section is not identical and the data goal remains unresolved. MyTiManager's complete 944-byte source prefix is byte-identical to target, with identical normalized relocations. The target-only 40-byte zero tail has no outgoing relocations and no incoming reference found in any extracted 43U object. Its actual source object/type cannot be recovered from this evidence; adding a zero filler would violate the task. Its .data goal remains unresolved. + +MyTiInputForm .data is 1616 bytes on both sides with identical raw bytes. Source's final weak EventHandler has real destructor/onEvent/setLatestEventCtrlNo/getLatestEventCtrlNo relocations at +0x640/+0x644/+0x648/+0x64C; original deduplicated weak extraction has zeros and no relocations there. Objdiff nonetheless reports 100% for the section. .rodata and .sdata2 are byte-identical, including normalized relocations. .sdata now has the genuine addressable float zero at +0x28, and its entire 67-byte source prefix equals target; target has five trailing zero alignment bytes. Objdiff reports every non-text section 100%, matched_data 3032/3032. No total_data value changed for any unit. + +Remaining objdiff nonmatching functions, all restored after three distinct source attempts: +- calcCursorPos__Q39textinput9inputform4BaseFff: 91.622696%, 326/326 instructions, float register allocation/scheduling differs; attempted right-before-bottom, separate scale components, aggregate line bounds. +- create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer: 95.02809%, 352/356 instructions, row/button loop allocation/codegen differs; attempted reload row owner, font branch direction, typed button index. +- setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language: 96.44726%, 237/237 instructions, visibility-loop register choices differ; attempted text-pane branch direction, pane query reload, split visibility counts. + +Final clean full gate over all four units: no regressions, no added forbidden patterns, no readability warnings; retail DOL SHA1 preserved. Code matched bytes and instruction-exact counts never dropped in the retained commits. This is partial data progress, with only MyTiInputForm reaching the full data goal. The symbols ownership corrections preserve all original split/section byte extents and require ordinary orchestrator evidence review. + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/keyboard/tiInputForm] pool: IDENTICAL +[src/keyboard/tiInputForm] objdiff: code 46980/50656 data 1036/3772 functions 218/221 fuzzy 99.5781 linked code 0 +[src/keyboard/tiInputForm] instruction-exact functions: 216/221 +[src/keyboard/tiInputForm] section .bss size 96 match 100.0 +[src/keyboard/tiInputForm] section .ctors size 4 match 100.0 +[src/keyboard/tiInputForm] section .data size 2736 match 65.68563 +[src/keyboard/tiInputForm] section .rodata size 760 match 100.0 +[src/keyboard/tiInputForm] section .sbss size 32 match 100.0 +[src/keyboard/tiInputForm] section .sdata size 40 match 100.0 +[src/keyboard/tiInputForm] section .sdata2 size 104 match 100.0 +[src/keyboard/tiInputForm] section .text size 50656 match 99.578094 +[src/keyboard/tiInputForm] below 100: calcCursorPos__Q39textinput9inputform4BaseFff 91.622696 +[src/keyboard/tiInputForm] below 100: create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 95.02809 +[src/keyboard/tiInputForm] below 100: setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language 96.44726 +[src/keyboard/tiInputForm] baseline: code 46980/50656 data 908 functions 218 fuzzy 99.5781 +[src/keyboard/tiKeyboard] pool: IDENTICAL +[src/keyboard/tiKeyboard] objdiff: code 8368/8368 data 12/2708 functions 62/62 fuzzy 100.0000 linked code 8368 +[src/keyboard/tiKeyboard] instruction-exact functions: 62/62 +[src/keyboard/tiKeyboard] section .ctors size 4 match 100.0 +[src/keyboard/tiKeyboard] section .data size 2696 match 99.117645 +[src/keyboard/tiKeyboard] section .sbss size 8 match 100.0 +[src/keyboard/tiKeyboard] section .text size 8368 match 100.0 +[src/keyboard/tiKeyboard] baseline: code 8368/8368 data 12 functions 62 fuzzy 100.0000 +[src/keyboard/MyTiManager] pool: IDENTICAL +[src/keyboard/MyTiManager] objdiff: code 20196/20196 data 148/1132 functions 91/91 fuzzy 100.0000 linked code 0 +[src/keyboard/MyTiManager] instruction-exact functions: 91/91 +[src/keyboard/MyTiManager] section .bss size 72 match 100.0 +[src/keyboard/MyTiManager] section .ctors size 4 match 100.0 +[src/keyboard/MyTiManager] section .data size 984 match 97.92531 +[src/keyboard/MyTiManager] section .sbss size 16 match 100.0 +[src/keyboard/MyTiManager] section .sdata size 24 match 100.0 +[src/keyboard/MyTiManager] section .sdata2 size 32 match 100.0 +[src/keyboard/MyTiManager] section .text size 20196 match 100.0 +[src/keyboard/MyTiManager] baseline: code 20196/20196 data 76 functions 91 fuzzy 100.0000 +[src/keyboard/MyTiInputForm] pool: IDENTICAL +[src/keyboard/MyTiInputForm] objdiff: code 14532/14532 data 3032/3032 functions 84/84 fuzzy 100.0000 linked code 0 +[src/keyboard/MyTiInputForm] instruction-exact functions: 84/84 +[src/keyboard/MyTiInputForm] section .data size 1616 match 100.0 +[src/keyboard/MyTiInputForm] section .rodata size 1288 match 100.0 +[src/keyboard/MyTiInputForm] section .sdata size 72 match 100.0 +[src/keyboard/MyTiInputForm] section .sdata2 size 56 match 100.0 +[src/keyboard/MyTiInputForm] section .text size 14532 match 100.0 +[src/keyboard/MyTiInputForm] baseline: code 14532/14532 data 2960 functions 84 fuzzy 100.0000 +regressions vs baseline: 0 +global matched_code_percent: 88.55724 -> 88.55724 +global fuzzy_match_percent: 99.45033 -> 99.45033 +global complete_code_percent: 62.98463 -> 62.98463 +global matched_data_percent: 96.82804 -> 96.84288 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS +``` + +Accepted improvement commits: 2348596d (real float-reference setter), fff3e072 (Color ownership), 8532b7bf (DestructorChain ownership). -- 2.49.1 From 6368cc44e987671b3e53c8bef46d58898f34fb5b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:20:46 +0000 Subject: [PATCH 45/63] docs: update progress [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40c5016a..54dba2af 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.69% | 63.21% | 98.51% | +| 99.47% | 88.69% | 63.21% | 98.53% | units 928/1027 complete, functions 12271/12563 matched. -- 2.49.1 From 767f393bf9b504184388ab8f93720b2af0e2d10e Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:22:15 -0500 Subject: [PATCH 46/63] data(iplESMisc data 100%), match(NHTTP_stdlib_RVL 11/14, data 100%) (near8g) (worker 2fc43755) (#766) --- config/43U/symbols.txt | 36 ++-- libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c | 16 +- .../decomp-assist/four-leaves-r11.attempts.md | 165 ++++++++++++++++++ .../four-leaves-r11.data-gate.txt | 45 +++++ .../four-leaves-r11.final-gate.txt | 44 +++++ tools/decomp-assist/four-leaves-r11.final.md | 47 +++++ .../four-leaves-r11.http-data-gate.txt | 45 +++++ .../four-leaves-r11.int-gate.txt | 44 +++++ 8 files changed, 417 insertions(+), 25 deletions(-) create mode 100644 tools/decomp-assist/four-leaves-r11.attempts.md create mode 100644 tools/decomp-assist/four-leaves-r11.data-gate.txt create mode 100644 tools/decomp-assist/four-leaves-r11.final-gate.txt create mode 100644 tools/decomp-assist/four-leaves-r11.final.md create mode 100644 tools/decomp-assist/four-leaves-r11.http-data-gate.txt create mode 100644 tools/decomp-assist/four-leaves-r11.int-gate.txt diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 72f44c16..4ddc047a 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -14067,7 +14067,7 @@ AESiRoundKeyRcon0 = .rodata:0x81618410; // type:object size:0x1E scope:local AESiEncryptTable = .rodata:0x81618430; // type:object size:0x400 scope:local AESiDecryptTable = .rodata:0x81618830; // type:object size:0x400 scope:local NHTTPi_strMultipartBound = .rodata:0x81618C30; // type:object size:0x18 -lbl_81618C48 = .rodata:0x81618C48; // type:object size:0x28 scope:local data:4byte +@237 = .rodata:0x81618C48; // type:object size:0x24 scope:local data:4byte STR_POST_DISPOS = .rodata:0x81618C70; // type:object size:0x27 scope:local data:string STR_POST_TYPE_BIN = .rodata:0x81618C98; // type:object size:0x4C scope:local data:string STR_POST_TYPE_URLENCODE = .rodata:0x81618CE4; // type:object size:0x32 scope:local data:string @@ -14801,18 +14801,18 @@ __vt__Q33ipl4math14HermiteIntp = .data:0x81641268; // type:object size:0x10 __vt__Q33ipl7utility14YoungBScroller = .data:0x81641278; // type:object size:0xC __vt__Q33ipl7utility9BScroller = .data:0x81641284; // type:object size:0xC __vt__Q33ipl7utility9ut_thread = .data:0x81641290; // type:object size:0x2C -lbl_816412C0 = .data:0x816412C0; // type:object size:0x2B data:string -lbl_816412EB = .data:0x816412EB; // type:object size:0x2B data:string -lbl_81641316 = .data:0x81641316; // type:object size:0x36 data:string -lbl_8164134C = .data:0x8164134C; // type:object size:0x36 data:string -lbl_81641382 = .data:0x81641382; // type:object size:0x29 data:string -lbl_816413AB = .data:0x816413AB; // type:object size:0x19 data:string -lbl_816413C4 = .data:0x816413C4; // type:object size:0x26 data:string -lbl_816413EA = .data:0x816413EA; // type:object size:0x3A data:string -lbl_81641424 = .data:0x81641424; // type:object size:0x491 -lbl_816418B5 = .data:0x816418B5; // type:object size:0xF0 -lbl_816419A5 = .data:0x816419A5; // type:object size:0x268 -lbl_81641C0D = .data:0x81641C0D; // type:object size:0x7CD +@17577 = .data:0x816412C0; // type:object size:0x2B scope:local data:string +@17578 = .data:0x816412EB; // type:object size:0x2B scope:local data:string +@17592 = .data:0x81641316; // type:object size:0x36 scope:local data:string +@17593 = .data:0x8164134C; // type:object size:0x36 scope:local data:string +@17606 = .data:0x81641382; // type:object size:0x29 scope:local data:string +@17613 = .data:0x816413AB; // type:object size:0x19 scope:local data:string +@17614 = .data:0x816413C4; // type:object size:0x26 scope:local data:string +@17630 = .data:0x816413EA; // type:object size:0x3A scope:local data:string +@17631 = .data:0x81641424; // type:object size:0x3A scope:local data:string +@17730 = .data:0x816418B5; // type:object size:0x11 scope:local data:string +@17780 = .data:0x816419A5; // type:object size:0x21 scope:local data:string +@17857 = .data:0x81641C0D; // type:object size:0x1A scope:local data:string @2386 = .data:0x816423E0; // type:object size:0x17 scope:local data:string ...data.0 = .data:0x816423E0; // type:label scope:local @2387 = .data:0x816423F7; // type:object size:0x3B scope:local data:string @@ -21792,11 +21792,11 @@ lbl_8169628C = .sdata:0x8169628C; // type:object size:0x4 lbl_81696290 = .sdata:0x81696290; // type:object size:0x4 lbl_81696294 = .sdata:0x81696294; // type:object size:0x4 lbl_81696298 = .sdata:0x81696298; // type:object size:0x4 -lbl_816962A0 = .sdata:0x816962A0; // type:object size:0x5 data:string -lbl_816962A5 = .sdata:0x816962A5; // type:object size:0x5 data:string -lbl_816962AA = .sdata:0x816962AA; // type:object size:0x6 data:string -lbl_816962B0 = .sdata:0x816962B0; // type:object size:0x7 data:string -lbl_816962B7 = .sdata:0x816962B7; // type:object size:0x9 data:string +@17940 = .sdata:0x816962A0; // type:object size:0x5 scope:local data:string +__FUNCTION__$16810 = .sdata:0x816962A5; // type:object size:0x5 scope:local data:string +__FUNCTION__$16845 = .sdata:0x816962AA; // type:object size:0x6 scope:local data:string +__FUNCTION__$16875 = .sdata:0x816962B0; // type:object size:0x7 scope:local data:string +__FUNCTION__$16927 = .sdata:0x816962B7; // type:object size:0x8 scope:local data:string @11572 = .sdata:0x816962C0; // type:object size:0x4 scope:local data:string lbl_816962C8 = .sdata:0x816962C8; // type:object size:0x5 data:string sProtocolName__Q23www9arcreader = .sdata:0x816962D0; // type:object size:0x4 data:4byte diff --git a/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c b/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c index d2b8daee..620e785b 100644 --- a/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c +++ b/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c @@ -102,23 +102,25 @@ s32 NHTTPi_strToInt(const char* string, s32 length) { return value; } +static inline u32 TakeDecimalDigit(u32* remaining, u32 scale) { + u32 digit = *remaining / scale; + *remaining -= digit * scale; + return digit; +} + s32 NHTTPi_intToStr(char* destination, u32 value) { u32 scales[9]={1000000000,100000000,10000000,1000000,100000,10000,1000,100,10}; - char* output; int digit; BOOL started; s32 length; - output = destination; length = 0; started = FALSE; for(digit=0; digit<9; ++digit) { if(value>=scales[digit]) { - u32 quotient=value/scales[digit]; + u32 quotient=TakeDecimalDigit(&value, scales[digit]); started=TRUE; - ++length; - *output++=quotient+'0'; - value-=quotient*scales[digit]; - } else if(started) { *output++='0'; ++length; } + destination[length++]=quotient+'0'; + } else if(started) { destination[length++]='0'; } } destination[length]=value+'0'; return length+1; diff --git a/tools/decomp-assist/four-leaves-r11.attempts.md b/tools/decomp-assist/four-leaves-r11.attempts.md new file mode 100644 index 00000000..3cce71c6 --- /dev/null +++ b/tools/decomp-assist/four-leaves-r11.attempts.md @@ -0,0 +1,165 @@ +MAX round; one worker, 43U matching and proven owned data identity/extent corrections. AGENTS read; origin fetched. +IPL_ES_DATA POOL FIRST: baseline divergence83,114 strings on each side; data first0xd3f bytes are identical, nonmatching unauthorized helper block causes later ordering mismatch. Target objects are extraction labels, ours anonymous literal and __FUNCTION__ compiler symbols. No source data added. +DATA PROOF lbl_816412C0 -> @17577: GetTmdView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP9ESTmdView+0x4E data relocation resolves .data+0x0 in both objects; NUL-terminated char[43] bytes identical; extent0x2B->0x2B, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816412EB -> @17578: GetTmdView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP9ESTmdView+0xC6 data relocation resolves .data+0x2B in both objects; NUL-terminated char[43] bytes identical; extent0x2B->0x2B, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_81641316 -> @17592: GetTicketViewList__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP12ESTicketViewPUl+0x52 data relocation resolves .data+0x56 in both objects; NUL-terminated char[54] bytes identical; extent0x36->0x36, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_8164134C -> @17593: GetTicketViewList__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP12ESTicketViewPUl+0xDE data relocation resolves .data+0x8C in both objects; NUL-terminated char[54] bytes identical; extent0x36->0x36, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_81641382 -> @17606: GetTicketView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxP12ESTicketViewi+0x4A data relocation resolves .data+0xC2 in both objects; NUL-terminated char[41] bytes identical; extent0x29->0x29, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816413AB -> @17613: PrivateContentsExist__Q33ipl7utility6ESMiscFUx+0x2A data relocation resolves .data+0xEB in both objects; NUL-terminated char[25] bytes identical; extent0x19->0x19, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816413C4 -> @17614: PrivateContentsExist__Q33ipl7utility6ESMiscFUx+0x86 data relocation resolves .data+0x104 in both objects; NUL-terminated char[38] bytes identical; extent0x26->0x26, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816413EA -> @17630: ContentExist__Q33ipl7utility6ESMiscFP9ESTmdViewUlPl+0xA2 data relocation resolves .data+0x12A in both objects; NUL-terminated char[58] bytes identical; extent0x3A->0x3A, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_81641424 -> @17631: ContentExist__Q33ipl7utility6ESMiscFP9ESTmdViewUlPl+0xEA data relocation resolves .data+0x164 in both objects; NUL-terminated char[58] bytes identical; extent0x491->0x3A, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816418B5 -> @17730: IsLastTicketExpired__Q33ipl7utility6ESMiscFPUx+0x32 data relocation resolves .data+0x5F5 in both objects; NUL-terminated char[17] bytes identical; extent0xF0->0x11, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816419A5 -> @17780: ChangeUid__Q33ipl7utility6ESMiscFUx+0x2E data relocation resolves .data+0x6E5 in both objects; NUL-terminated char[33] bytes identical; extent0x268->0x21, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_81641C0D -> @17857: DeleteMetaContent__Q33ipl7utility6ESMiscFUx+0x2E data relocation resolves .data+0x94D in both objects; NUL-terminated char[26] bytes identical; extent0x7CD->0x1A, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816962A0 -> @17940: DeleteSavedata__Q33ipl7utility6ESMiscFUxPQ23EGG4Heap+0x14C data relocation resolves .sdata+0x0 in both objects; NUL-terminated char[5] bytes identical; extent0x5->0x5, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816962A5 -> __FUNCTION__$16810: Open__Q33ipl7utility7TMDFileFPc+0x80 data relocation resolves .sdata+0x5 in both objects; NUL-terminated char[5] bytes identical; extent0x5->0x5, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816962AA -> __FUNCTION__$16845: Exist__Q33ipl7utility7TMDFileFUxPUlPUl+0x80 data relocation resolves .sdata+0xA in both objects; NUL-terminated char[6] bytes identical; extent0x6->0x6, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816962B0 -> __FUNCTION__$16875: Backup__Q33ipl7utility7TMDFileFUx+0x84 data relocation resolves .sdata+0x10 in both objects; NUL-terminated char[7] bytes identical; extent0x7->0x7, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA PROOF lbl_816962B7 -> __FUNCTION__$16927: Restore__Q33ipl7utility7TMDFileFUx+0x80 data relocation resolves .sdata+0x17 in both objects; NUL-terminated char[8] bytes identical; extent0x9->0x8, address and section totals unchanged, absorbed neighbours/alignment left unowned. +DATA RESULT iplESMisc quick gate PASS: matched_data0/4416->4416/4416; instruction-exact30/31 unchanged. All17 config changes have matched relocation + NUL/type proof; no raw section bytes, addresses, split totals, or production source changed. Pool83 remains a code-source issue in DeleteUnauthorizedData; objdiff100 is its owned-symbol pairing measure and does not assert identical raw pools. +DATA FULL GATE PASS: clean 43U build over all4 owned units; DOL SHA1 unchanged, regressions0, forbidden0, readability0. Commit proven data identity/extent recovery before code iteration. +BEGIN DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: origin=08923eda6ca98c9270567edcac967fe6d30868cf, fetch=0, source identical=True; Target449/ours434 instructions; aligned frame0x260, fileInfo at0x160 and ticket scratch at0x80. Target retains both ES_ListTitles results inr27 throughheapfree and returns r27 inr3. Previous proper helpers445/449 exposed four missing instructions: hoisted -1 versus per-iteration64 masks, ticket scratch pointer lifetime, and nonzero count branch form. Test wide masked formatting/field expression boundaries and caller scratch lifetime before declaration search; temporary return signature guarded only for this cpp. +POOL FIRST DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: FIRST DIVERGENCE at index 83 | 81 mine=0xcfe base=0xcfe | M '%s::%s: Could not read2 %s: %d\n' | B '%s::%s: Could not read2 %s: %d\n' | 82 mine=0xd1e base=0xd1e | M '%s::%s: Failed to delete %s: %d\n' | B '%s::%s: Failed to delete %s: %d\n' | * 83 mine=0xd3f base=0xd3f | M '%s::%s: Unable to allocate\n' | B 'verifySavedataZD' | * 84 mine=0xd5b base=0xd50 | M 'InitSavedata' | B 'DeleteTicketsForce' | * 85 mine=0xd68 base=0xd63 | M '/title/%08x/%08x/data/%s' | B 'InitSavedata' | * 86 mine=0xd81 base=0xd70 | M 'zeldaTp.dat' | B '%s::%s: Failed to ES_ListTitlesOnCard1: %d\n' | * 87 mine=0xd8d base=0xd9c | M '%s::%s: ChangeUid failed\n' | B '%s::%s: Unable to allocate\n' | | mine has 114 strings, base has 114 | +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: return-status helpers with caller-owned aligned file/ticket storage; source 93d28836cd1d; structural/exact,lengths ((32, 398), 444, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: format path from wide-masked title before extracting32-bit halves; source 5f9b66204c9b; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: fresh typed title reads at masked branch/helper/switch boundaries; source e573f03b2cf2; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: caller gives ticket scratch pointer an explicit lifetime across title loop; source 042fe84ed15c; BUILD FAIL 1 -DTARGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -MMD -c src/utility/iplESMisc.cpp -o build/43U/src/src/utility && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/utility/iplESMisc.d build/43U/src/src/utility/iplESMisc.d | ### mwcceppc.exe Compiler: | # In: include\utility\iplTree.h | # From: src\utility\iplESMisc.cpp | # ---------------------------------- | # 40: } | # Warning: ^ | # (10184) return value expected | # (included from: | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\scene\iplSceneBase.h:6 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\scene\iplSceneManager.h:14 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\include\system\iplSystem.h:15 | # Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix- | # board\src\utility\iplESMisc.cpp:5) | ### mwcceppc.exe Compiler: | # File: src\utility\iplESMisc.cpp | # ---------------------------------- | # 651: u8* ticketScratch = ticketViews; | # Error: ^^^^^^^^^^^ | # (10140) undefined identifier 'ticketViews' | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. | +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket scratch union gives actual byte-storage and ticket-view fields; source a138d0e32291; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: zero ticket count takes explicit cleanup edge as target branch pair; source 857f365c2fe6; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: InitSavedata scratch cursor declared only in its correct caller scope; source a1fd7d43b86a; structural/exact,lengths ((35, 260), 451, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: low formatting half narrows once after64-bit mask; source 81f2cef32440; structural/exact,lengths ((27, 400), 447, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: both formatting halves narrow once after64-bit mask; source bcd896bc3b59; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: zero ticket count returns from inline helper before allocation boundary; source 589297c67d3e; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: verify state declared before block offset and local loop counter; source d7cea452c335; structural/exact,lengths ((29, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket helper evaluates caller storage/count before title and heap; source 89bea13429bb; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: single narrowing masks combined with caller scratch pointer lifetime; source 421caf55932b; structural/exact,lengths ((30, 434), 450, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket helper returns its actual ES status at zero-count and cleanup exits; source 0b528f4f0a9f; structural/exact,lengths ((32, 434), 451, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: scratch cursor begins lifetime only after successful second title enumeration; source 4578a5a6f40b; structural/exact,lengths ((30, 396), 450, 449); POOL IDENTICAL up to 114 (mine=114 base=114) +DECLSEARCH DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: declaration block: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); | start (27, 400) | best (27, 400) after 36 builds; source restored; best order was: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); | +END DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap:at least3 distinct successful MAX source variants, 36 declaration builds; wide formatting boundaries recovered448/449, best narrowed half27struct400exact447/449; pointer lifetime and helper-return variants450/451. Proper helpers fixpool114 but no exact. Temporary guarded public status-return declaration and source restored; committed data identities/types retained. Target repeated -1 materialization, saved scratch cursor and branch pair remain structural differences. +NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment. +NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True +NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment. +NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True +NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment. +NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True +DATA PROOF lbl_81618C48 -> @231: NHTTPi_intToStr relocation offsets ['0x16', '0x1a'] resolve .rodata+0 in both objects; source initializer is u32[9] with identical36 bytes; extent0x28->0x24 leaves4 zero alignment bytes unowned, address0x81618C48 and target section total40/alignment8 unchanged; compiled section36/alignment8 was not changed. +NHTTP DATA FULL GATE PASS: matched_data72/112->112/112; .rodata extent is9 u32 elements, four zero alignment bytes left unowned; target section still40 bytes, compiled still36. Code counts unchanged; full43U/DOL/regression/forbidden/readability pass over all4 units. +BEGIN NHTTPi_strnicmp: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f, fetch=0, source identical=True; 51/51 instructions, frame0x10 identical. Only initial constants ordered A,zero,Z versus targetA,Z,zero; later instructions exactly identical. New operand direction and matching32-bit long predicates/upper-first helper formal order, then declaration order. Shared LowerCase remains untouched so exact functions cannot regress. +POOL FIRST NHTTPi_strnicmp: POOL IDENTICAL up to 1 (mine=1 base=1) | +ATTEMPT NHTTPi_strnicmp: constant first in lower bound; source dcccd0bb4449; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_strnicmp: constant first in upper bound; source 21d5e60ddd5e; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_strnicmp: both bound operands in constant-first source form; source 2be149ec0660; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_strnicmp: signed32-bit long formal and bounds have one arithmetic type; source dbf14de99b1b; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_strnicmp: named range predicates retain both compare values before branch; source 746233dd99d4; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_strnicmp: inline range formal order upper/lower/character; source 372f2c0c5a89; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1) +DECLSEARCH NHTTPi_strnicmp: declaration block: | int a; | int b; | start (2, 2) | best (2, 2) after 2 builds; source restored; best order was: | int a; | int b; | +END NHTTPi_strnicmp: six new real operand/type/boundary variants plus2 declaration orders, no exact; A/Z/zero materialization order persists. Baseline source and committed data retained. +BEGIN NHTTPi_intToStr: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f, fetch=0, source identical=True; 95/95, frame0x50. Baseline normalized0/exact53; indexed output already recovers target scratchr5 and15 exact differences. Target quotientr8/productr7/ASCIIr0; ours quotientr7/productr0/ASCIIr7. Array and branches identical. Test byte result type, native32-bit quotient/index types and real divide-result/remaining-value inline boundaries, then declaration search. +POOL FIRST NHTTPi_intToStr: POOL IDENTICAL up to 1 (mine=1 base=1) | +ATTEMPT NHTTPi_intToStr: indexed output confirms scratch cursor structural match; source 57cbcaead90e; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_intToStr: ASCII result stored from actual unsigned-byte local; source 2c1e8b51fa7c; BUILD FAIL e -Cpp_exceptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c -o build/43U/src/libs/RevoEX/src/nhttp && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d | ### mwcceppc.exe Compiler: | # File: libs\RevoEX\src\nhttp\NHTTP_stdlib_RVL.c | # ------------------------------------------------- | # 116: u8 character = quotient + '0'; | # Error: ^^ | # (10141) expression syntax error | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. | +ATTEMPT NHTTPi_intToStr: quotient uses native unsigned-int32 instead of SDK unsigned-long32; source 4f0d833d3eb7; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_intToStr: array position uses nonnegative unsigned32 index; source 6f5e01e9f05a; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_intToStr: real division helper returns decimal digit and remainder fields; source dff71c76e5cb; structural/exact,lengths ((31, 82), 107, 95); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_intToStr: division helper updates remaining value and returns quotient; source 253619c46678; structural/exact,lengths ((0, 0), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1) +DATA PROOF @231 -> @237 at0x81618C48: the new TakeDecimalDigit inline boundary changes the compiler anonymous-ID sequence; exact NHTTPi_intToStr still loads the same9-word initializer through relocation offsets0x16/0x1A, bytes/type u32[9] and extent0x24 unchanged. Update extracted symbol identity to the actual compiled name, no address/section change. +MATCH NHTTPi_intToStr: TakeDecimalDigit updates remaining value by reference and returns quotient; indexed output retains target scratch cursor; 95/95 instructions, ctxdiff0 and objdiff100.0, unit10/14->11/14/code1008->1388. Quick full gate over all4 leaves PASS, data4416/112/0/456 preserved; full clean gate before commit. +FULL MATCH GATE NHTTPi_intToStr PASS: clean43U over all4 units; exact95/95 ctxdiff0, objdiff100, NHTTP11/14 and data112/112; regressions0, DOL SHA1 correct, forbidden0, readability0. Retain only TakeDecimalDigit plus indexed output and verified @237 array identity update. +BEGIN NHTTPi_compareToken: origin=9ef60d674d871e9d936b6f608dc7392de529e97d, fetch=0, source identical=False; 44/45, frame0x10. Target right fold is a conditional value, left keeps raw and folded values; target rawleft inr31, baseline fold colors collide. Code match in previous helper-by-reference decimal conversion motivates real token read/normalize output argument boundaries. Inspect condition-entry loop and raw-left lifetime before declaration search. +POOL FIRST NHTTPi_compareToken: POOL IDENTICAL up to 1 (mine=1 base=1) | +REMOTE FUNCTION CHECK NHTTPi_compareToken: current public function equals origin/main=True; only local decimal match differs in unit; current ctxdiff24struct42exact proves token still open. +ATTEMPT NHTTPi_compareToken: left normalized return and raw output parameter in condition-entry loop; source 9fa26d9ce1c2; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: explicit right-first fold then left read in loop body; source 73b259bdd42d; structural/exact,lengths ((22, 43), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: left helper output parameter evaluated before input pointer; source 5b5e28b2320a; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: real raw/folded token pair returned across inline boundary; source 25d582834d5b; structural/exact,lengths ((29, 47), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: raw token out-parameter is signed byte, promoted for comparison; source 065198c55f86; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: helper returns raw while writing normalized value by reference; source 27910b42caf3; structural/exact,lengths ((22, 43), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +DECLSEARCH NHTTPi_compareToken: declaration block: | int rawLeft; | int leftCharacter; | int rightCharacter; | start (6, 16) | best (6, 16) after 6 builds; source restored; best order was: | int rawLeft; | int leftCharacter; | int rightCharacter; | +END NHTTPi_compareToken: six distinct by-reference/tuple/condition-order variations plus declaration search, no exact; baseline token restored and decimal match retained. +ATTEMPT NHTTPi_compareToken: right-first equality and inverse ternary preserve raw byte until stop test; source e02a80a88c49; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: right-first equality with original uppercase ternary; source 1d232b7e3c5c; structural/exact,lengths ((6, 15), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: right fold branch assigns shifted candidate before range rejection; source 6090da9c0edc; structural/exact,lengths ((6, 25), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: left signed-byte read output, right-first equality; source 33a8521f649e; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: right-first explicit int raw with byte stop comparison; source d9a8082f6e90; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: right bounds constant-first and shifted candidate before fallback; source 521755ff8e5c; structural/exact,lengths ((6, 25), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +END NHTTPi_compareToken: six further branch/equality/byte-lifetime attempts; best (6, 15); retained decimal-only exact source. +BEGIN NHTTPi_Base64Encode: origin=c9fb0697ca1af1a4934b8020b176d57068cf219e, fetch=0, source identical=False; 119/119 frame0x20; target snapshots three signed bytes and computes indices before table loads/stores; baseline interleaves source reloads and output stores. Target source-pointer increments by3 and output by4; consumed-length padding branch is signed. Diagnose alias boundaries and staged triplet arithmetic before register search. +POOL FIRST NHTTPi_Base64Encode: POOL IDENTICAL up to 1 (mine=1 base=1) | +REMOTE FUNCTION CHECK NHTTPi_Base64Encode: exact public function equals origin/main=True; main has unchanged open implementation. +ATTEMPT NHTTPi_Base64Encode: staged byte snapshots and first encoded temporary inside group helper; source 487e72dfdfaa; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: first encoded temporary inline in caller, signed padding length; source e387cd259d57; structural/exact,lengths ((42, 67), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: group helper owns real input and output cursor advancement; source a16ce970e996; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: cursor helper input evaluated before output by-reference; source 0ffd67926185; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: natural char triplet view with signed fragment before masked fragment; source d371bba56fde; structural/exact,lengths ((43, 57), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: paired alphabet lookup helper defines fragment lifetimes; source 73fac3ba455c; structural/exact,lengths ((43, 57), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +DECLSEARCH NHTTPi_Base64Encode: declaration block: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; | start (42, 63) | best (42, 63) after 13 builds; source restored; best order was: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; | +END NHTTPi_Base64Encode: six successful staged-byte/group/cursor/triplet/lookup attempts and declaration search; best (42, 63), no exact; signed source and production decimal match retained. +ATTEMPT NHTTPi_Base64Encode: staged signed snapshots with masked fragment added to table first; source d7cee83c12f4; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: first low fragment named before first alphabet lookup; source 08d3fbc6f935; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: both masked fragment lifetimes precede alphabet writes; source 174d85140e81; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_Base64Encode: triplet typed reads staged in alphabet lookup helper; source a6527088f3f3; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1) +DECLSEARCH staged helper NHTTPi_Base64Encode: declaration block: | s8 first; | s8 second; | s8 third; | char firstEncoded; | start (47, 63) | best (47, 63) after 13 builds; source restored; best order was: | s8 first; | s8 second; | s8 third; | char firstEncoded; | +END NHTTPi_Base64Encode: four masked-index/table operand and snapshot extent attempts, best (47, 63), no exact; additional helper declaration search exhausted. +BEGIN TMCJPEGDEC_IdctBlock_Lumi: origin=c9fb0697ca1af1a4934b8020b176d57068cf219e, fetch=0, source identical=True; 257/257 instructions; frame0x140, 64-word scratch and locals match in extent. Target schedules odd sum/difference pairs and even DC butterflies through separate live temporaries; baseline overwrites b1/b5, creating different multiplication/add lifetimes. In column pass target DC+bias and clamp temporaries differ. Diagnose operand order and by-reference butterfly helper boundaries before declaration search; preserve Col code. +POOL FIRST TMCJPEGDEC_IdctBlock_Lumi: POOL IDENTICAL up to 0 (mine=0 base=0) | +JPEG DATA AUDIT: target no owned data sections or data symbols, matched_data0/0; no identity or extent changes applicable. +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: odd butterfly by-reference outputs in row and column passes; source 64e03eee114e; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: row-only odd butterfly boundary; source 7f6a2e61fc08; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: column-only odd butterfly boundary; source 45f8f981bc1c; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: distinct odd difference temporaries preserve loaded coefficient lifetimes; source df52af3356b9; structural/exact,lengths ((43, 189), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: by-reference odd butterfly into separate sum/difference locals; source 708262fd7b95; structural/exact,lengths ((43, 189), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: DC even butterfly computes sum/difference through actual result pointers; source 801cb5f8ef06; structural/exact,lengths ((34, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: second even butterfly coupled with DC output boundary; source affef2da000e; structural/exact,lengths ((34, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: real scaled coefficient assignments cross by-reference inline boundary; source bfd3ccb1adeb; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0) +DECLSEARCH TMCJPEGDEC_IdctBlock_Lumi: declaration block: | s32* dst; | s32 done; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 d; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 t; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 q; | s32 w; | s32 x; | s32 b1; | start (34, 188) | improved (34, 187) | improved (31, 187) | best (31, 187) after 140 builds; kept in source: | s32 b5; | s32 t; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32* dst; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 d; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 done; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 q; | s32 w; | s32 x; | s32 b1; | +END TMCJPEGDEC_IdctBlock_Lumi: eight valid source-level butterfly/lifetime/scale helper variants, best (34, 188), no exact; source restored, Col unchanged. +BEGIN TMCJPEGDEC_IdctBlock_Col: origin=f78a686e3216ae4be40493a9fbc2c0b340eb6051, fetch=0, source identical=True; 454/454 frame0x130. DC path target materializes memset destination after range comparisons; ours materializes it early. Remaining full-transform differences are scheduling of coefficient butterfly sums/differences, clamp temporaries and operand association. Both passes use real separate odd differences. Test DC clamp/FIll helper boundaries and paired output stores before register allocation; retain Lumi unchanged. +POOL FIRST TMCJPEGDEC_IdctBlock_Col: POOL IDENTICAL up to 0 (mine=0 base=0) | +ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC signed clamp updates actual scalar through output pointer; source 8b59b5fed610; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC saturation and block fill share actual inline helper boundary; source a34ed3ee141a; structural/exact,lengths ((16, 276), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC helper passes unclamped value by value and saturation by reference; source 10e35c0ae81a; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Col: scaled sample saturation and byte store share helper output boundary; source 56a34bdf9ef8; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Col: odd coefficients paired by-reference in full row and column passes; source 3ff254193598; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Col: even DC sum/difference share result-pointer helper; source 8629e54d4393; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Col: symmetric low-frequency output pair stores inside real helper; source b6b84a108c27; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT TMCJPEGDEC_IdctBlock_Col: odd butterfly difference result assigned before sum; source 2c17ae806df6; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0) +DECLSEARCH TMCJPEGDEC_IdctBlock_Col: declaration block: | s32* dst; | s32 done; | s32 iter; | s32 d; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 w; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; | start (16, 276) | improved (14, 273) | best (14, 273) after 160 builds; kept in source: | s32* dst; | s32 done; | s32 iter; | s32 w; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 d; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; | +END TMCJPEGDEC_IdctBlock_Col: eight distinct helper/temporary/output-boundary attempts, best (16, 276), no exact; source restored, Lumi unchanged. +BEGIN ProcessBlock: origin=c44fbd720965dadcc282b8cea9f6fba352c2f559, fetch=0, source identical=True; 294/306 frame0x20. Baseline __lwbrx zero-first argument generates indexed loads from block base; target materializes each indexed address and uses zero RA. Target independently byte-swaps message twice for two rotation halves and adds four associated partial sums per step. Prior structurally honest helper/address version reaches306/306 with36struct150exact. Inspect sequential pointer advances and by-reference state/cursor helper boundaries before declaration search; preserve three exact public APIs and constant/index data. +POOL FIRST ProcessBlock: POOL IDENTICAL up to 0 (mine=0 base=0) | +MD5 DATA AUDIT: constants u32[64] and indices u32[48], target .data448 plus .sdata8; existing report456/456; no label/name or extent gap. No data/config change required. +ATTEMPT ProcessBlock: reference associated halves and real materialized indexed word addresses; source 281c3a5b98bf; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT ProcessBlock: rotation halves remain direct STEP macro expressions with shared state plus F; source 46b7f921d942; structural/exact,lengths ((56, 242), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT ProcessBlock: actual accumulator state updated by reference through full-step helper; source b463d05d0830; structural/exact,lengths ((233, 299), 304, 306); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT ProcessBlock: rotation helper owns actual sequential word cursor advancement; source 917c2cfc3ab1; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT ProcessBlock: round constant read and progression coupled through live pointer; source 12d8bb10252a; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT ProcessBlock: first two round Boolean functions have actual inline function parameters; source 2a5bd22badd4; structural/exact,lengths ((148, 187), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0) +ATTEMPT ProcessBlock: full-step helper exposes real accumulator and word cursor result pointers; source 5a3812f412c7; structural/exact,lengths ((233, 299), 304, 306); POOL IDENTICAL up to 0 (mine=0 base=0) +DECLSEARCH ProcessBlock: declaration block: | u32 a = context->a; | u32* word; | u32 b = context->b; | u32 c = context->c; | u32 d = context->d; | u32* block; | u32* index; | int round; | u32* constant; | start (36, 150) | best (36, 150) after 93 builds; source restored; best order was: | u32 a = context->a; | u32* word; | u32 b = context->b; | u32 c = context->c; | u32 d = context->d; | u32* block; | u32* index; | int round; | u32* constant; | +END ProcessBlock: seven associated-expression/state/cursor/constant/Boolean helper variants plus declaration search, best (36, 150), no exact; baseline restored and three public APIs retained. +BEGIN NHTTPi_compareToken: origin=d9cf3598fce3c7991cbc370ad84612a1294866cb, fetch=0, source identical=False; Revisit target raw r31 remains unsigned load while signed normalized value lives r11; body separately extsb raw into r0. Earlier signed-output helper extended raw in-place. Use an actual raw-u8 output and explicit signed interpretation, then stop test sign-extension; keep right conditional value boundary and examine equality operands. +POOL FIRST NHTTPi_compareToken: POOL IDENTICAL up to 1 (mine=1 base=1) | +REMOTE FUNCTION CHECK NHTTPi_compareToken: public function still equals origin/main=True; local intToStr is the only production code difference. +ATTEMPT NHTTPi_compareToken: raw unsigned byte survives left normalization; signed stop interpretation; source 76e97b65fd3f; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: raw unsigned byte with right normalized operand first; source f838a8ffa736; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: explicit right-first condition body with unsigned raw snapshot; source 33be55890ebf; structural/exact,lengths ((21, 38), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: right fold initializes shifted candidate before fallback assignment; source 682c2418dcbf; structural/exact,lengths ((28, 40), 47, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: right fold candidate before fallback in explicit condition body; source 9e2b7e7064eb; structural/exact,lengths ((21, 38), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: raw output formal precedes source input; source 620820d22197; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +ATTEMPT NHTTPi_compareToken: stop test signed char promotes from unsigned snapshot; source 06a4de5d0cb2; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1) +END NHTTPi_compareToken: seven raw-byte/sign-boundary variants; best (7, 34); no exact and baseline restored. +FINAL POOL src/utility/iplESMisc: FIRST DIVERGENCE at index 83 | 81 mine=0xcfe base=0xcfe | M '%s::%s: Could not read2 %s: %d\n' | B '%s::%s: Could not read2 %s: %d\n' | 82 mine=0xd1e base=0xd1e | M '%s::%s: Failed to delete %s: %d\n' | B '%s::%s: Failed to delete %s: %d\n' | * 83 mine=0xd3f base=0xd3f | M '%s::%s: Unable to allocate\n' | B 'verifySavedataZD' | * 84 mine=0xd5b base=0xd50 | M 'InitSavedata' | B 'DeleteTicketsForce' | * 85 mine=0xd68 base=0xd63 | M '/title/%08x/%08x/data/%s' | B 'InitSavedata' | * 86 mine=0xd81 base=0xd70 | M 'zeldaTp.dat' | B '%s::%s: Failed to ES_ListTitlesOnCard1: %d\n' | * 87 mine=0xd8d base=0xd9c | M '%s::%s: ChangeUid failed\n' | B '%s::%s: Unable to allocate\n' | | mine has 114 strings, base has 114 | +FINAL OPEN AUDIT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: objdiff=79.797325%, 14 distinct successful source hashes; structural/exact,lengths=((163, 436), 434, 449); Aligned ticket/file scratch lifetime, return-status preservation, masked title formatting and inline helper boundaries. Baseline pool first diverges at83. Proper helpers make all114 strings identical but best tested source still differs structurally. +FINAL POOL libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL: POOL IDENTICAL up to 1 (mine=1 base=1) | +FINAL OPEN AUDIT NHTTPi_strnicmp: objdiff=99.76471%, 6 distinct successful source hashes; structural/exact,lengths=((2, 2), 51, 51); 51/51 instructions; two initial constant materializations swap Z and zero. Every later instruction is exact. Six source predicate/operand/helper variations and two declaration orders leave the swap. +FINAL OPEN AUDIT NHTTPi_compareToken: objdiff=54.622223%, 19 distinct successful source hashes; structural/exact,lengths=((24, 42), 44, 45); 44/45 retained instructions. Raw signed character lifetime and right conditional normalization differ. By-reference helper reaches45/45 with6 structural differences; changed equality/branch form and unsigned raw snapshots do not match. +FINAL OPEN AUDIT NHTTPi_Base64Encode: objdiff=60.285713%, 10 distinct successful source hashes; structural/exact,lengths=((71, 58), 119, 119); 119/119 retained instructions. Source loads, masked fragment/table operand association and unrolled alphabet lookup/store scheduling differ. Staged byte helper reaches42 structural differences; cursor, triplet and declaration variants do not match. +FINAL POOL libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var: POOL IDENTICAL up to 0 (mine=0 base=0) | +FINAL OPEN AUDIT TMCJPEGDEC_IdctBlock_Lumi: objdiff=82.31518%, 8 distinct successful source hashes; structural/exact,lengths=((36, 188), 257, 257); 257/257 instructions, frame0x140. Row/column butterfly multiply/add scheduling, DC/stride temporary lifetimes and register allocation differ. Eight helper/temporary variants, then140 declaration builds leave31 structural differences at best. +FINAL OPEN AUDIT TMCJPEGDEC_IdctBlock_Col: objdiff=92.47577%, 8 distinct successful source hashes; structural/exact,lengths=((18, 290), 454, 454); 454/454 instructions, frame0x130. DC memset argument/clamp lifetime and full butterfly/store/clamp scheduling differ. Fill helper fixes the DC structural difference; eight variants then160 declaration builds leave14 structural differences at best. +FINAL POOL libs/RevoEX/src/net/md5: POOL IDENTICAL up to 0 (mine=0 base=0) | +FINAL OPEN AUDIT ProcessBlock: objdiff=43.290848%, 7 distinct successful source hashes; structural/exact,lengths=((225, 300), 294, 306); 294/306 retained instructions, frame0x20. Indexed addresses, duplicated swapped loads, associated rotation sums and sequential cursor scheduling differ. Honest typed helper/materialized addresses reach306/306; seven source variants and93 declaration builds leave36 structural differences. +COMPLETENESS AUDIT PASS: all 7 remaining functions have at least3 distinct successful source-level attempts logged in this MAX round; build failures excluded. No experimental source/header changes retained. No untried function remains. +FINAL FULL GATE PASS: all4 owned units, clean43U build, SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; exact30/31,11/14,0/2,3/4; matched_code9404,1388,0,600; matched_data4416,112,0,456. Regression0, forbidden0, readability0. NHTTPi_intToStr95/95 ctxdiff0 after clean build. Seven remaining functions audited14/6/19/10/8/8/7 distinct successful MAX source attempts, all at least3. No additional source changes after final gate. diff --git a/tools/decomp-assist/four-leaves-r11.data-gate.txt b/tools/decomp-assist/four-leaves-r11.data-gate.txt new file mode 100644 index 00000000..49d7be25 --- /dev/null +++ b/tools/decomp-assist/four-leaves-r11.data-gate.txt @@ -0,0 +1,45 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114) +[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0 +[src/utility/iplESMisc] instruction-exact functions: 30/31 +[src/utility/iplESMisc] section .data size 4384 match 100.0 +[src/utility/iplESMisc] section .sdata size 32 match 100.0 +[src/utility/iplESMisc] section .text size 11200 match 96.76036 +[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325 +[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 72/112 functions 10/14 fuzzy 87.1886 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 10/14 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 94.73685 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.188614 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_intToStr 95.57895 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031 +[libs/RevoEX/src/net/md5] pool: IDENTICAL +[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0 +[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4 +[libs/RevoEX/src/net/md5] section .data size 448 match 100.0 +[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0 +[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175 +[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848 +[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 97.79842 -> 98.03938 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS diff --git a/tools/decomp-assist/four-leaves-r11.final-gate.txt b/tools/decomp-assist/four-leaves-r11.final-gate.txt new file mode 100644 index 00000000..d7cfbd1d --- /dev/null +++ b/tools/decomp-assist/four-leaves-r11.final-gate.txt @@ -0,0 +1,44 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114) +[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0 +[src/utility/iplESMisc] instruction-exact functions: 30/31 +[src/utility/iplESMisc] section .data size 4384 match 100.0 +[src/utility/iplESMisc] section .sdata size 32 match 100.0 +[src/utility/iplESMisc] section .text size 11200 match 96.76036 +[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325 +[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 11/14 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.93594 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031 +[libs/RevoEX/src/net/md5] pool: IDENTICAL +[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0 +[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4 +[libs/RevoEX/src/net/md5] section .data size 448 match 100.0 +[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0 +[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175 +[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848 +[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.58676 +global fuzzy_match_percent: 99.45531 -> 99.45589 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 97.79842 -> 98.04156 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS diff --git a/tools/decomp-assist/four-leaves-r11.final.md b/tools/decomp-assist/four-leaves-r11.final.md new file mode 100644 index 00000000..8ecaa551 --- /dev/null +++ b/tools/decomp-assist/four-leaves-r11.final.md @@ -0,0 +1,47 @@ +MAX round, start d5cd4ca777677117f1e02f1124ffb375178c391d. + +| Unit | Instruction-exact before -> after | Matched code bytes before -> after | Matched data bytes before -> after | +| --- | --- | --- | --- | +| src/utility/iplESMisc | 30/31 -> 30/31 | 9404/11200 -> 9404/11200 | 0/4416 -> 4416/4416 | +| libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL | 10/14 -> 11/14 | 1008/2248 -> 1388/2248 | 72/112 -> 112/112 | +| libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var | 0/2 -> 0/2 | 0/2844 -> 0/2844 | 0/0 -> 0/0 | +| libs/RevoEX/src/net/md5 | 3/4 -> 3/4 | 600/1824 -> 600/1824 | 456/456 -> 456/456 | + +NHTTPi_intToStr is now exact, 95/95 instructions and ctxdiff0. TakeDecimalDigit updates the actual remaining value by reference and returns the quotient; indexed output keeps the target scratch cursor. No other production function changed. + +Remaining non-matching functions, one line each: + +- DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap, 79.797325%, Aligned ticket/file scratch lifetime, return-status preservation, masked title formatting and inline helper boundaries. Baseline pool first diverges at83. Proper helpers make all114 strings identical but best tested source still differs structurally. MAX successful distinct attempts 14. +- NHTTPi_strnicmp, 99.76471%, 51/51 instructions; two initial constant materializations swap Z and zero. Every later instruction is exact. Six source predicate/operand/helper variations and two declaration orders leave the swap. MAX successful distinct attempts 6. +- NHTTPi_compareToken, 54.622223%, 44/45 retained instructions. Raw signed character lifetime and right conditional normalization differ. By-reference helper reaches45/45 with6 structural differences; changed equality/branch form and unsigned raw snapshots do not match. MAX successful distinct attempts 19. +- NHTTPi_Base64Encode, 60.285713%, 119/119 retained instructions. Source loads, masked fragment/table operand association and unrolled alphabet lookup/store scheduling differ. Staged byte helper reaches42 structural differences; cursor, triplet and declaration variants do not match. MAX successful distinct attempts 10. +- TMCJPEGDEC_IdctBlock_Lumi, 82.31518%, 257/257 instructions, frame0x140. Row/column butterfly multiply/add scheduling, DC/stride temporary lifetimes and register allocation differ. Eight helper/temporary variants, then140 declaration builds leave31 structural differences at best. MAX successful distinct attempts 8. +- TMCJPEGDEC_IdctBlock_Col, 92.47577%, 454/454 instructions, frame0x130. DC memset argument/clamp lifetime and full butterfly/store/clamp scheduling differ. Fill helper fixes the DC structural difference; eight variants then160 declaration builds leave14 structural differences at best. MAX successful distinct attempts 8. +- ProcessBlock, 43.290848%, 294/306 retained instructions, frame0x20. Indexed addresses, duplicated swapped loads, associated rotation sums and sequential cursor scheduling differ. Honest typed helper/materialized addresses reach306/306; seven source variants and93 declaration builds leave36 structural differences. MAX successful distinct attempts 7. + +Data identity and extent proofs are recorded individually in four-leaves-r11.attempts.md. All18 config entries retain their addresses; target and source section totals remain unchanged. Anonymous literal names are taken from compiled symbols and matched function-relative relocations. NUL-terminated character array and nine-u32 initializer types prove the corrected extents. Absorbed neighbors and alignment remain unowned, as authorized. + +Uncertainty: iplESMisc objdiff matched_data4416/4416 measures paired owned objects. The raw114-string pool still diverges at83 in DeleteUnauthorizedData. This is recorded code work; data100 does not assert identical raw pools or complete linking. The target status-return lifetime and compiler scheduling still lack an exact readable source reconstruction. JPEG has no data sections, so None/None in the raw gate is0/0. + +Changed production files: config/43U/symbols.txt; libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c. + +Evidence files: tools/decomp-assist/four-leaves-r11.attempts.md; four-leaves-r11.data-gate.txt; four-leaves-r11.http-data-gate.txt; four-leaves-r11.int-gate.txt; four-leaves-r11.final-gate.txt; four-leaves-r11.final.md. + +Commits: 9b0b4dda recover es misc literal identities and extents; c2927e2a recover decimal scale initializer extent; 054e0b1f match decimal conversion inline boundary. + +Every open function had a fresh origin fetch and unchanged public source check before work. This branch has no push, merge, rebase, other-worktree edits, new assembly or uncommitted experimental code. + +Final full gate output, copied verbatim: + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0 +[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0 +regressions vs baseline: 0 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` diff --git a/tools/decomp-assist/four-leaves-r11.http-data-gate.txt b/tools/decomp-assist/four-leaves-r11.http-data-gate.txt new file mode 100644 index 00000000..65bd6c7d --- /dev/null +++ b/tools/decomp-assist/four-leaves-r11.http-data-gate.txt @@ -0,0 +1,45 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114) +[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0 +[src/utility/iplESMisc] instruction-exact functions: 30/31 +[src/utility/iplESMisc] section .data size 4384 match 100.0 +[src/utility/iplESMisc] section .sdata size 32 match 100.0 +[src/utility/iplESMisc] section .text size 11200 match 96.76036 +[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325 +[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 112/112 functions 10/14 fuzzy 87.1886 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 10/14 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.188614 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_intToStr 95.57895 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031 +[libs/RevoEX/src/net/md5] pool: IDENTICAL +[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0 +[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4 +[libs/RevoEX/src/net/md5] section .data size 448 match 100.0 +[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0 +[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175 +[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848 +[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.57407 +global fuzzy_match_percent: 99.45531 -> 99.45531 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 97.79842 -> 98.04156 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS diff --git a/tools/decomp-assist/four-leaves-r11.int-gate.txt b/tools/decomp-assist/four-leaves-r11.int-gate.txt new file mode 100644 index 00000000..d7cfbd1d --- /dev/null +++ b/tools/decomp-assist/four-leaves-r11.int-gate.txt @@ -0,0 +1,44 @@ +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114) +[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0 +[src/utility/iplESMisc] instruction-exact functions: 30/31 +[src/utility/iplESMisc] section .data size 4384 match 100.0 +[src/utility/iplESMisc] section .sdata size 32 match 100.0 +[src/utility/iplESMisc] section .text size 11200 match 96.76036 +[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325 +[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 11/14 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.93594 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713 +[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577 +[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031 +[libs/RevoEX/src/net/md5] pool: IDENTICAL +[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0 +[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4 +[libs/RevoEX/src/net/md5] section .data size 448 match 100.0 +[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0 +[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175 +[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848 +[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452 +regressions vs baseline: 0 +global matched_code_percent: 88.57407 -> 88.58676 +global fuzzy_match_percent: 99.45531 -> 99.45589 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 97.79842 -> 98.04156 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change) +GATE PASS -- 2.49.1 From 69c235ffc26b05c62153c43fdfbc90b34279216f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:23:27 +0000 Subject: [PATCH 47/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 54dba2af..dfb2283e 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.69% | 63.21% | 98.53% | +| 99.47% | 88.70% | 63.21% | 98.77% | -units 928/1027 complete, functions 12271/12563 matched. +units 928/1027 complete, functions 12272/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 6ebe56bc040530fe6d4dd2da6eadee9a6e047cb9 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:24:55 -0500 Subject: [PATCH 48/63] Emit GCWindow interpolation constructor in native order and link (#765) --- configure.py | 2 +- include/math/iplInterporation.h | 2 +- src/scene/memoryCard/iplGCWindow.cpp | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 5aeb3a1e..b1a4b385 100644 --- a/configure.py +++ b/configure.py @@ -816,7 +816,7 @@ config.libs = [ Object(Matching, "scene/memoryCard/iplMemoryCardBase.cpp"), Object(NonMatching, "scene/memoryCard/iplMemoryCardManager.cpp"), Object(Matching, "scene/memoryCard/iplGCSaveData.cpp"), - Object(NonMatching, "scene/memoryCard/iplGCWindow.cpp"), + Object(Matching, "scene/memoryCard/iplGCWindow.cpp"), ] ), IPLSection("textBalloon", [ diff --git a/include/math/iplInterporation.h b/include/math/iplInterporation.h index 8161157a..3f0be62a 100644 --- a/include/math/iplInterporation.h +++ b/include/math/iplInterporation.h @@ -96,7 +96,7 @@ namespace ipl { template <> class LinearIntp : public Interporation { public: - LinearIntp() {} + LinearIntp(); virtual ~LinearIntp(); VEC3 get() const; }; diff --git a/src/scene/memoryCard/iplGCWindow.cpp b/src/scene/memoryCard/iplGCWindow.cpp index 72de28b2..e1b32016 100644 --- a/src/scene/memoryCard/iplGCWindow.cpp +++ b/src/scene/memoryCard/iplGCWindow.cpp @@ -90,6 +90,12 @@ MemCardEventHandler::~MemCardEventHandler() {} MemoryBaseEvent::MemoryBaseEvent(MemoryBase* memoryBase) : mpBase(memoryBase) {} +} // namespace scene +namespace math { +inline LinearIntp::LinearIntp() {} +} +namespace scene { + void GCWindow::init(const math::VEC3& translate, MemoryCardManager* manager, u8 cardState, short cardIndex) { mActive = true; mFlags1[cardState] = 0; -- 2.49.1 From a4c84cbf537becd2cf9931d2406601a18312d0c5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:25:52 +0000 Subject: [PATCH 49/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dfb2283e..390a07ea 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.70% | 63.21% | 98.77% | +| 99.47% | 88.70% | 63.54% | 98.77% | -units 928/1027 complete, functions 12272/12563 matched. +units 929/1027 complete, functions 12272/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 8120309670f778044e6180c172130abb185a9115 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:27:48 -0500 Subject: [PATCH 50/63] Link matched SDK FAT12 and file units natively (#767) --- configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index b1a4b385..77a069a4 100644 --- a/configure.py +++ b/configure.py @@ -1697,11 +1697,11 @@ config.libs = [ Object(Matching, "fa/pf_entry.c"), Object(NonMatching, "fa/pf_entry_iterator.c"), Object(NonMatching, "fa/pf_fat.c"), - Object(NonMatching, "fa/pf_fat12.c"), + Object(Matching, "fa/pf_fat12.c"), Object(Matching, "fa/pf_fat16.c"), Object(Matching, "fa/pf_fat32.c"), Object(Matching, "fa/pf_fatfs.c"), - Object(NonMatching, "fa/pf_file.c"), + Object(Matching, "fa/pf_file.c"), Object(NonMatching, "fa/pf_path.c"), Object(Matching, "fa/pf_sector.c"), Object(NonMatching, "fa/pf_volume.c"), -- 2.49.1 From 3bdb663f099f2344a8311ed069a9e412da7fefd0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:28:48 +0000 Subject: [PATCH 51/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 390a07ea..a84fc61c 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.70% | 63.54% | 98.77% | +| 99.47% | 88.70% | 64.21% | 98.77% | -units 929/1027 complete, functions 12272/12563 matched. +units 931/1027 complete, functions 12272/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 6547b1fa10d5eafb367bcf29fea4c4f0f9b86c9e Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:32:54 -0500 Subject: [PATCH 52/63] Link memo input form natively after exact data restoration (#768) --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 77a069a4..c18dcec1 100644 --- a/configure.py +++ b/configure.py @@ -928,7 +928,7 @@ config.libs = [ Object(Matching, "keyboard/tiLanguageIndependentData.cpp", extra_cflags=["-O4,p"], shift_jis=False), Object(Matching, "keyboard/tiTextInputBase.cpp", extra_cflags=["-O4,p"]), Object(NonMatching, "keyboard/MyTiManager.cpp", extra_cflags=["-O4,p"]), - Object(NonMatching, "keyboard/MyTiInputForm.cpp", extra_cflags=["-O4,p"]), + Object(Matching, "keyboard/MyTiInputForm.cpp", extra_cflags=["-O4,p"]), Object(Matching, "keyboard/MyTiLetterForm.cpp", extra_cflags=["-O4,p"]), Object(Matching, "keyboard/MyTiBg.cpp", extra_cflags=["-O4,p"]), Object(Matching, "keyboard/tiDebug.cpp", extra_cflags=["-O4,p"]), -- 2.49.1 From 1d290fa12ab7ea9facb16b7e991964608c342cd3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:33:40 +0000 Subject: [PATCH 53/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a84fc61c..e7a21382 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.70% | 64.21% | 98.77% | +| 99.47% | 88.70% | 64.70% | 98.77% | -units 931/1027 complete, functions 12272/12563 matched. +units 932/1027 complete, functions 12272/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From c70816c7e164bbe29e9431f7a1b8fb6d945fd7e9 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:40:46 -0500 Subject: [PATCH 54/63] match(PFPATH_MatchFileNameWithPattern: fix overlapping symbol extent) (orchestrator) (worker 5f027758) (#769) --- config/43U/symbols.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 4ddc047a..93af972e 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -12954,7 +12954,7 @@ PFPATH_GetNextTokenOfPath = .text:0x815DD874; // type:function size:0x384 PFPATH_SplitPath = .text:0x815DDBF8; // type:function size:0x8 PFPATH_SplitPathPattern = .text:0x815DDC00; // type:function size:0x8 PFPATH_GetVolumeFromPath = .text:0x815DDC08; // type:function size:0x80 -PFPATH_MatchFileNameWithPattern = .text:0x815DDC88; // type:function size:0x31C +PFPATH_MatchFileNameWithPattern = .text:0x815DDC88; // type:function size:0x310 PFPATH_putShortName = .text:0x815DDF98; // type:function size:0x17C PFPATH_getShortName = .text:0x815DE114; // type:function size:0x250 PFPATH_getLongNameformShortName = .text:0x815DE364; // type:function size:0x1B0 -- 2.49.1 From de05797e1938b2ca4312173514126a713d2c6f65 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:43:17 +0000 Subject: [PATCH 55/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e7a21382..8395b30d 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.47% | 88.70% | 64.70% | 98.77% | +| 99.48% | 88.73% | 64.70% | 98.77% | -units 932/1027 complete, functions 12272/12563 matched. +units 932/1027 complete, functions 12273/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 950bb0dda6ba1980970a54d6f575670f4e07aee8 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:43:25 -0500 Subject: [PATCH 56/63] match(NHTTP_socket_RVL 8/10) (fz2c) (worker d651d6ad) (#770) --- libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c | 12 +- tools/decomp-assist/fz2.attempts.md | 173 +++++++++++++++++++++++ 2 files changed, 181 insertions(+), 4 deletions(-) diff --git a/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c b/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c index 249ce2c1..100d413f 100644 --- a/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c +++ b/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c @@ -135,10 +135,14 @@ s32 NHTTPi_SocSend_sub(s32 socket, const char* data, u32 length, s32 flags) { if(head>length) head=length; NHTTPi_memcpy(buffer,data,head); result=SOSend(socket,buffer,head,flags); - if(result<=0) return result; - sent=result; - if((u32)result 0) { + sent = result; + if ((u32)result < head) return result; + data += result; + length -= result; + } else { + return result; + } } if((s32)length>0) { head=length&~31; diff --git a/tools/decomp-assist/fz2.attempts.md b/tools/decomp-assist/fz2.attempts.md index e3c88408..4390d694 100644 --- a/tools/decomp-assist/fz2.attempts.md +++ b/tools/decomp-assist/fz2.attempts.md @@ -383,3 +383,176 @@ Instruction-exact functions / matched code bytes / matched data bytes, before -> - pf_file: 44->45 / 17368->17820 / no data symbols. - zconvert: 3->3 / 1380->1380 / 112->112. Commit ac0541dd contains the exact source improvement. Remaining eZiText compiler coloring fixes are unknown. + +# Round 3 expanded fuzzy lane +Baseline c44fbd720965dadcc282b8cea9f6fba352c2f559 +libs/RVLMiddleware/eZiText/src/clib/zmtkey: POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVLMiddleware/eZiText/src/clib/zconvert: POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RevoEX/src/nhttp/NHTTP_socket_RVL: POOL IDENTICAL up to 0 (mine=0 base=0) +src/scene/channelSelect/iplChannelObj: POOL IDENTICAL up to 20 (mine=20 base=20) +src/scene/board/iplBoard: POOL IDENTICAL up to 18 (mine=18 base=18) +libs/NW4R/src/lyt/lyt_window: POOL IDENTICAL up to 1 (mine=1 base=1) +- Zi8getKeyLayout / r3 byte pair index shift rather than multiply: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r3 sum offset explicitly grouped with key header: 182/182 instructions; structural 0, positional differences 16 +- Zi8getKeyLayout / r3 explicit mapped key failure comparison: 182/182 instructions; structural 0, positional differences 16 +- Zi8ConvertUC2Key / r3 separate entry value byte assembly: 207/207 instructions; structural 2, positional differences 22 +- Zi8ConvertUC2Key / r3 use shift for character stride: 207/207 instructions; structural 0, positional differences 18 +- Zi8ConvertUC2Key / r3 explicit braces around user key return: 207/207 instructions; structural 0, positional differences 18 +- NHTTPi_SocRecv_sub / r3 memcpy source offset evaluated into local: BUILD FAIL nclude/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c -o build/43U/src/libs/RevoEX/src/nhttp && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.d build/43U/src/libs/RevoEX/src/nhttp/NHTTP_socket_RVL.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nhttp\NHTTP_socket_RVL.c # ------------------------------------------------- # 99: u8* source = buffer + connection->recvBufOffset; # Error: ^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- NHTTPi_SocRecv_sub / r3 pass source offset plus buffer in opposite operand order: 67/67 instructions; structural 0, positional differences 4 +- NHTTPi_SocRecv_sub / r3 narrow unsigned count local reused for copy length: 67/67 instructions; structural 0, positional differences 4 +- NHTTPi_SocRecv_sub / r3 copy source local declared before body: 67/67 instructions; structural 0, positional differences 4 +- NHTTPi_SocRecv_sub / r3 copy offset local declared before body: 67/67 instructions; structural 0, positional differences 4 +- NHTTPi_SocRecv_sub / r3 inline received copy boundary: 67/67 instructions; structural 0, positional differences 4 +- NHTTPi_SocSend_sub / r3 leading send positive branch with negative else: 102/102 instructions; structural 0, positional differences 0; EXACT candidate retained +- NHTTPi_SocSend_sub / r3 leading send nested complete transfer branch: 102/102 instructions; structural 4, positional differences 5 +- NHTTPi_SocSend_sub / r3 leading send separate nonpositive and short branches: 102/102 instructions; structural 4, positional differences 5 + +Round 3 structural diagnosis: +- Zi8getKeyLayout: 182/182, unchanged frame and branches, language/count r26/r27 tie remains. +- Zi8ConvertUC2Key: 207/207, unchanged frame and branches, work/key r27/r28 tie remains. +- NHTTPi_SocRecv_sub: 67/67, identical 0x20 frame, only memcpy argument scheduling differs in four instructions. +- NHTTPi_SocSend_sub: 101/102, aligned frame identical, leading partial transfer uses early returns while target has a positive-result block and negative else, with two redundant branch boundaries. Positive block restored exact 102/102. +- NHTTPi_SocSend: 43/43, identical 0x10 frame, SSL id field load precedes register save in target but follows it in ours. +- setLangPane: 195/195, stack byte arrays misplaced and language code indexing uses byte stride where target has four-byte records; loop pointer temporaries differ. +- calcCursorAnim: objdiff 100%, three conditional CR1 branch operands in ctxdiff are misdecoded by odiff as absolute offsets. disasm_fn decodes real local relative branches; no source change needed. The instruction-exact gate count discrepancy is advisory-tool normalization, not a new unmatched function. +- appendRecord: 283/283, frame 0x90 vs target 0xa0; interrupt saves promoted to registers whereas target stores three flags beside the address-taken dataSize slot. +- DrawFrame: 376/376, instruction skeleton and float schedule identical; saved register allocation shifted, static texture-coordinate map placed in r31 instead of r21; data .sdata2 gap requires separate inspection. +- NHTTPi_SocSend / r3 direct SSL id field reads without saved local: 43/43 instructions; structural 2, positional differences 3 +- NHTTPi_SocSend / r3 SSL id initialization before result declaration: 43/43 instructions; structural 2, positional differences 3 +- NHTTPi_SocSend / r3 assignment in SSL comparison instead of initializer: 43/43 instructions; structural 2, positional differences 3 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 language code records represented as ten four-byte strings: 196/195 instructions; structural 16, positional differences 120 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 language records and uncached fallback group names: 196/195 instructions; structural 16, positional differences 120 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 language records and four-byte RSO name buffer: 196/195 instructions; structural 25, positional differences 126 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 record read state groups interrupt saves with address-taken size: BUILD FAIL :6 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\include\scene\iplSceneManager.h:14 # Z:\mnt\drive2\projects\wii-ipl-workers\data-d6\include\iplSceneUI.h:11 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\src\scene\board\iplBoard.cpp:4) ### mwcceppc.exe Compiler: # File: src\scene\board\iplBoard.cpp # ------------------------------------- # 508: if (!cdbManager->getDataSize(record, &interrupts.dataSize)) { # Error: ^^^^^^^^ # (10140) undefined identifier 'dataSize' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 record read state before metadata declarations: BUILD FAIL workers\data- # d6\include\scene\iplSceneBase.h:6 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\include\scene\iplSceneManager.h:14 # Z:\mnt\drive2\projects\wii-ipl-workers\data-d6\include\iplSceneUI.h:11 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\src\scene\board\iplBoard.cpp:4) ### mwcceppc.exe Compiler: # File: src\scene\board\iplBoard.cpp # ------------------------------------- # 449: struct RecordReadState { # Error: ^ # (10296) class 'ipl::scene::Board::RecordReadState' redefined # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 independent interrupt state locals instead of promotable struct: 283/283 instructions; structural 52, positional differences 48 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 four-byte language records and stop after fallback group: 196/195 instructions; structural 8, positional differences 54 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 records fallback stop and explicit current group pointer: 196/195 instructions; structural 8, positional differences 66 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 records fallback stop and uncached fallback group: 195/195 instructions; structural 4, positional differences 8 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 corrected read state with escaping data size: 283/283 instructions; structural 29, positional differences 29 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 corrected read state declared before metadata: 283/283 instructions; structural 38, positional differences 38 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 corrected read state reverse interrupt declaration order: 283/283 instructions; structural 29, positional differences 29 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 four-byte records with eight-byte RSO names: 195/195 instructions; structural 1, positional differences 5 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 four-byte records names8 and null-terminated fallback table: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 null-terminated fallback table preserving six-byte names: 195/195 instructions; structural 3, positional differences 7 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 shared group declaration: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 iterator initializer from group expression: 195/195 instructions; structural 3, positional differences 5 + +## lyt_window round3 +- Fetch origin: owned source unchanged; pool identical. DrawFrame 376/376, frame0xe0 identical; inlined texture helper allocation shifts preserved argument registers; inspect declaration lifetime before register search. +- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 declare colors before material setup: 372/376 instructions; structural 90, positional differences 374 +- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 declare geometry before texture coordinates: 376/376 instructions; structural 0, positional differences 119 +- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 draw quad use conditional colors temporary: 364/376 instructions; structural 188, positional differences 373 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group declared before language: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group declared before found flag: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group and outer iterator both explicit: 196/195 instructions; structural 4, positional differences 191 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane iterator declared before group pointers: BUILD FAIL \wii-ipl-workers\data- # d6\include\system\iplSystem.h:15 # Z:\mnt\drive2\projects\wii-ipl-workers\data-d6\include\iplSystem.h:9 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d6\src\scene\channelSelect\iplChannelObj.cpp:8) ### mwcceppc.exe Compiler: # File: src\scene\channelSelect\iplChannelObj.cpp # -------------------------------------------------- # 645: st().GetBeginIter(); it != layout->GetGroupList().GetEndIter(); paneIt++) { # Error: ^^^^^^ # (10140) undefined identifier 'paneIt' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane list reference instead of group pointer: 195/195 instructions; structural 6, positional differences 6 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 unified metadata and read state structure: 279/283 instructions; structural 18, positional differences 258 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 separate pane iterator declarations: 199/195 instructions; structural 9, positional differences 86 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 const group pointer: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane iterators prefix increment: 187/195 instructions; structural 51, positional differences 93 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 metadata zeroing loop: 284/283 instructions; structural 23, positional differences 249 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 read state constructor initializes type array: 277/283 instructions; structural 20, positional differences 265 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 shared inline visibility helper: 153/195 instructions; structural 77, positional differences 103 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group references instead of pointers: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 found flag integer boolean: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 group pointer declaration before assignment in each branch: 195/195 instructions; structural 0, positional differences 4 +- setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object / r3 pane iterator comparison reversed: 195/195 instructions; structural 14, positional differences 14 +- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 texture flip helper uses explicit selected entry pointer: 376/376 instructions; structural 0, positional differences 119 +- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 texture flip helper uses table pointer indexing: 376/376 instructions; structural 0, positional differences 119 +- DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc / r3 texture helper y index declaration first: 376/376 instructions; structural 0, positional differences 119 +- appendRecord__Q33ipl5scene5BoardFP10_CDBRecord / r3 read state owns interrupt flags and scalar metadata: 283/283 instructions; structural 59, positional differences 58 + +### Round 3 declaration search and data ownership audit +- Zi8getKeyLayout: 52 declaration orders after structural attempts, best (0,16), original restored. +- NHTTPi_SocRecv_sub: two leading declaration orders, best (0,4), original restored. +- NHTTPi_SocSend: two leading declaration orders, best (2,3), original restored; remaining three differences are SSL-id load scheduling, not a frame mismatch. +- setLangPane: two initialized language declarations and 23 expanded leading declaration orders, best (0,4); target still colors both group pointers r30 whereas compiler selects r28. The four-byte language records, eight-byte RSO name buffer and null-terminated/first-match fallback correct the structural skeleton; all fuzzy candidates restored because no exact function gained. +- appendRecord: grouping flags with escaping dataSize forces the target spills and frame; best structural experiment 29 stack-slot differences. Expanded declaration search 76 orders stopped at (45,57); all candidates restored because none exact. Unified metadata structures and their zero-initialization alternatives failed to reproduce the target local layout without extra initialization instructions. +- DrawFrame: 52 declaration orders, best (0,119); helper index declarations and explicit selected-entry/table pointers leave allocation unchanged. All candidates restored. +- Data: zmtkey 60/60, zconvert 112/112, ChannelObj 2216/2216, Board 896/896; NHTTP has no data symbols. No symbol-name or extent edit justified in these units. +- lyt_window relocation proof: target .sdata2 offsets0..19 are five distinct RGBA byte quartets used by GetVtxColorElement, SetVtxColorElement, DrawFrame4/8, GetVtxColor and SetVtxColor; target offsets40..43 are scLytFatalColorR/G/B/A used by GetFrameMaterial. Ours emits only the shared named quartet at0..3; this is a real 16-byte duplicate-constant emission gap, not a missing-name pair or weak vtable. No fake objects, labels or extent changes added. Target .sdata2 total48, source24; remaining float/double constants retain proper relocation uses. +- Audit: every objdiff-open function has at least three distinct successful source-level experiments in this round. NHTTPi_SocSend_sub is exact and committed; others remain open as documented. calcCursorAnim is already objdiff100 and is only an instruction-normalization artifact. + +- Advisory literal_reference_diff: 182 functions analyzed, 86 arguments checked, zero candidates/errors/skips. This checks actual string bytes at corresponding uses and does not claim complete data matching. +- Zi8ConvertUC2Key: final corrected leading-declarations range127..132, 36 orders, best(0,18); original restored. The preceding wider range accidentally included the first if statement and its invalid permutations were discarded. +- Final successful-attempt count audit: Zi8getKeyLayout=3, Zi8ConvertUC2Key=3, NHTTPi_SocRecv_sub=5, NHTTPi_SocSend_sub=3, NHTTPi_SocSend=3, setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object=23, appendRecord__Q33ipl5scene5BoardFP10_CDBRecord=8, DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc=6. + +## Round 3 final full gate (all six units) +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] objdiff: code 1488/2216 data 60/60 functions 3/4 fuzzy 99.8466 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] instruction-exact functions: 3/4 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section .text size 2216 match 99.84657 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extab size 24 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] section extabindex size 36 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] below 100: Zi8getKeyLayout 99.53297 +[libs/RVLMiddleware/eZiText/src/clib/zmtkey] baseline: code 1488/2216 data 60 functions 3 fuzzy 99.8466 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zconvert] objdiff: code 1380/2208 data 112/112 functions 3/4 fuzzy 99.8370 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] instruction-exact functions: 3/4 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .rodata size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section .text size 2208 match 99.83696 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extab size 32 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] section extabindex size 48 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] below 100: Zi8ConvertUC2Key 99.565216 +[libs/RVLMiddleware/eZiText/src/clib/zconvert] baseline: code 1380/2208 data 112 functions 3 fuzzy 99.8370 +[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] objdiff: code 1700/2140 data None/None functions 8/10 fuzzy 99.5701 linked code 0 +[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] instruction-exact functions: 8/10 +[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] section .text size 2140 match 99.57009 +[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] below 100: NHTTPi_SocRecv_sub 99.55224 +[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] below 100: NHTTPi_SocSend 95.34884 +[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] baseline: code 1292/2140 data None functions 7 fuzzy 98.9907 +[src/scene/channelSelect/iplChannelObj] pool: IDENTICAL +[src/scene/channelSelect/iplChannelObj] objdiff: code 10144/10924 data 2216/2216 functions 55/56 fuzzy 99.7993 linked code 0 +[src/scene/channelSelect/iplChannelObj] instruction-exact functions: 54/56 +[src/scene/channelSelect/iplChannelObj] section .data size 1240 match 100.0 +[src/scene/channelSelect/iplChannelObj] section .rodata size 784 match 100.0 +[src/scene/channelSelect/iplChannelObj] section .sdata size 120 match 100.0 +[src/scene/channelSelect/iplChannelObj] section .sdata2 size 72 match 100.0 +[src/scene/channelSelect/iplChannelObj] section .text size 10924 match 99.79934 +[src/scene/channelSelect/iplChannelObj] below 100: setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object 97.18974 +[src/scene/channelSelect/iplChannelObj] baseline: code 10144/10924 data 2216 functions 55 fuzzy 99.7993 +[src/scene/board/iplBoard] pool: IDENTICAL +[src/scene/board/iplBoard] objdiff: code 19144/20276 data 896/896 functions 93/94 fuzzy 99.8765 linked code 0 +[src/scene/board/iplBoard] instruction-exact functions: 93/94 +[src/scene/board/iplBoard] section .data size 744 match 100.0 +[src/scene/board/iplBoard] section .rodata size 104 match 100.0 +[src/scene/board/iplBoard] section .sdata size 40 match 100.0 +[src/scene/board/iplBoard] section .sdata2 size 8 match 100.0 +[src/scene/board/iplBoard] section .text size 20276 match 99.8765 +[src/scene/board/iplBoard] below 100: appendRecord__Q33ipl5scene5BoardFP10_CDBRecord 97.78799 +[src/scene/board/iplBoard] baseline: code 19144/20276 data 896 functions 93 fuzzy 99.8765 +[libs/NW4R/src/lyt/lyt_window] pool: IDENTICAL +[libs/NW4R/src/lyt/lyt_window] objdiff: code 9848/11352 data 268/316 functions 20/21 fuzzy 99.7586 linked code 0 +[libs/NW4R/src/lyt/lyt_window] instruction-exact functions: 20/21 +[libs/NW4R/src/lyt/lyt_window] section .ctors size 4 match 100.0 +[libs/NW4R/src/lyt/lyt_window] section .data size 256 match 100.0 +[libs/NW4R/src/lyt/lyt_window] section .sbss size 8 match 100.0 +[libs/NW4R/src/lyt/lyt_window] section .sdata2 size 48 match 66.66667 +[libs/NW4R/src/lyt/lyt_window] section .text size 11352 match 99.75864 +[libs/NW4R/src/lyt/lyt_window] below 100: DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc 98.17819 +[libs/NW4R/src/lyt/lyt_window] baseline: code 9848/11352 data 268 functions 20 fuzzy 99.7586 +regressions vs baseline: 0 +global matched_code_percent: 88.66222 -> 88.67584 +global fuzzy_match_percent: 99.47330 -> 99.47371 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.51344 -> 98.51344 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Before -> after instruction-exact functions / objdiff code bytes / matched data bytes: +- zmtkey: 3/4 -> 3/4; 1488 -> 1488; 60 -> 60. +- zconvert: 3/4 -> 3/4; 1380 -> 1380; 112 -> 112. +- NHTTP_socket_RVL: 7/10 -> 8/10; 1292 -> 1700; no data symbols. +- iplChannelObj: instruction gate 54/56 -> 54/56 (objdiff 55/56 unchanged, calcCursorAnim decoding artifact); 10144 -> 10144; 2216 -> 2216. +- iplBoard: 93/94 -> 93/94; 19144 -> 19144; 896 -> 896. +- lyt_window: 20/21 -> 20/21; 9848 -> 9848; 268 -> 268. +Final full gate passes, correct DOL SHA1, zero regressions, zero net forbidden patterns and zero readability warnings. NHTTPi_SocSend_sub has 102/102 instructions and ctxdiff diffs0 after the clean build. Remaining compiler allocation/local layout fixes and the lyt_window duplicate-constant emission are unresolved. Only NHTTP_socket_RVL.c and this attempts log differ from round3 baseline; source improvement commit bf69c042. -- 2.49.1 From b84b3c0d579c520be71051ce33d22965cab6965d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:45:02 +0000 Subject: [PATCH 57/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8395b30d..422f206b 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.48% | 88.73% | 64.70% | 98.77% | +| 99.48% | 88.74% | 64.70% | 98.77% | -units 932/1027 complete, functions 12273/12563 matched. +units 932/1027 complete, functions 12274/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 51d5dc519bb5dc87c2cd284a7d3a74a6b87d32da Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:57:20 -0500 Subject: [PATCH 58/63] Refresh completion code total after removing overlapping extent (#771) --- tools/check_decomp_complete.py | 2 +- tools/test_workflow_guards.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/check_decomp_complete.py b/tools/check_decomp_complete.py index 2f41cc5c..249869de 100644 --- a/tools/check_decomp_complete.py +++ b/tools/check_decomp_complete.py @@ -10,7 +10,7 @@ from pathlib import Path EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d" EXPECTED_TOTAL_UNITS = 1027 -EXPECTED_TOTAL_CODE = 2995188 +EXPECTED_TOTAL_CODE = 2995176 EXPECTED_TOTAL_DATA = 1832684 EXPECTED_TOTAL_FUNCTIONS = 12563 INTEGER_PATTERN = re.compile(r"-?(0|[1-9][0-9]*)\Z") diff --git a/tools/test_workflow_guards.py b/tools/test_workflow_guards.py index 078e581b..2aac76ef 100644 --- a/tools/test_workflow_guards.py +++ b/tools/test_workflow_guards.py @@ -21,6 +21,15 @@ class WorkflowGuardTests(unittest.TestCase): self.assertTrue(any("total_units" in failure for failure in failures)) self.assertTrue(any("missing categories" in failure for failure in failures)) + def test_obsolete_overlapping_code_total_is_rejected(self): + failures = check_report({ + "version": 2, + "measures": {"total_code": 2995188}, + "units": [], + "categories": [], + }) + self.assertIn("overall total_code: 2995188 != 2995176", failures) + def test_malformed_report_values_fail_without_crashing(self): failures = check_report( { -- 2.49.1 From 81325e667c42d5b7bb49ef4bc61aab10ec7d0ae9 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 03:00:54 -0500 Subject: [PATCH 59/63] Restore SDK path function emission order and native linking (#772) --- configure.py | 2 +- libs/RVL_SDK/src/fa/pf_path.c | 72 ++++++++++++++++++----------------- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/configure.py b/configure.py index c18dcec1..dd68182f 100644 --- a/configure.py +++ b/configure.py @@ -1702,7 +1702,7 @@ config.libs = [ Object(Matching, "fa/pf_fat32.c"), Object(Matching, "fa/pf_fatfs.c"), Object(Matching, "fa/pf_file.c"), - Object(NonMatching, "fa/pf_path.c"), + Object(Matching, "fa/pf_path.c"), Object(Matching, "fa/pf_sector.c"), Object(NonMatching, "fa/pf_volume.c"), Object(Matching, "fa/pf_volume_apiadd.c"), diff --git a/libs/RVL_SDK/src/fa/pf_path.c b/libs/RVL_SDK/src/fa/pf_path.c index c540f727..f9364d44 100644 --- a/libs/RVL_SDK/src/fa/pf_path.c +++ b/libs/RVL_SDK/src/fa/pf_path.c @@ -321,41 +321,7 @@ pf_u32 PFPATH_DoMatchFileNameWithPattern(pf_u16 c_name, PF_FILE_NAME_ITER* p_nam return 1; } -pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name) { - pf_u16 c_name; - pf_u16 c_pat; - PF_FILE_NAME_ITER name; - PF_STR pattern; - pf_bool result; - - result = PF_TRUE; - name.buf = file_name; - name.current = 0; - name.kind = is_long_name; - name.index = 0; - - pattern = *p_pattern; - - if (PFSTR_GetCodeMode(p_pattern) == 1) { - if (is_long_name == PF_FALSE && (pf_vol_set.setting & 0x02) == 0x02 && PFPATH_CheckExtShortNameSignature(&pattern) == 1) { - result = PFPATH_CheckExtShortNameSignature(&pattern); - if (result == 1) { - name.index += 2; - pattern.p_head += 2; - } - } - } else if ((pf_vol_set.setting & 0x02) == 0x02 && is_long_name == PF_FALSE && - PFSTR_StrNCmp(p_pattern, (pf_s8*)".", 1, 0, 1) != 0 && PFSTR_StrNCmp(p_pattern, (pf_s8*)"..", 1, 0, 2) != 0 && - PFPATH_CheckExtShortName(p_pattern, 1, PF_FALSE) == 0) { - result = PF_FALSE; - } - if (result == PF_TRUE) { - c_name = PFPATH_GetNextCharOfFileName(&name); - c_pat = PFPATH_GetNextCharOfPattern(&pattern, is_long_name); - result = PFPATH_DoMatchFileNameWithPattern(c_name, &name, c_pat, &pattern, is_long_name); - } - return result; -} +pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name); pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* matched_end) { pf_u32 read_char; @@ -577,6 +543,42 @@ PF_VOLUME* PFPATH_GetVolumeFromPath(PF_STR* p_path) { return p_vol; } +pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name) { + pf_u16 c_name; + pf_u16 c_pat; + PF_FILE_NAME_ITER name; + PF_STR pattern; + pf_bool result; + + result = PF_TRUE; + name.buf = file_name; + name.current = 0; + name.kind = is_long_name; + name.index = 0; + + pattern = *p_pattern; + + if (PFSTR_GetCodeMode(p_pattern) == 1) { + if (is_long_name == PF_FALSE && (pf_vol_set.setting & 0x02) == 0x02 && PFPATH_CheckExtShortNameSignature(&pattern) == 1) { + result = PFPATH_CheckExtShortNameSignature(&pattern); + if (result == 1) { + name.index += 2; + pattern.p_head += 2; + } + } + } else if ((pf_vol_set.setting & 0x02) == 0x02 && is_long_name == PF_FALSE && + PFSTR_StrNCmp(p_pattern, (pf_s8*)".", 1, 0, 1) != 0 && PFSTR_StrNCmp(p_pattern, (pf_s8*)"..", 1, 0, 2) != 0 && + PFPATH_CheckExtShortName(p_pattern, 1, PF_FALSE) == 0) { + result = PF_FALSE; + } + if (result == PF_TRUE) { + c_name = PFPATH_GetNextCharOfFileName(&name); + c_pat = PFPATH_GetNextCharOfPattern(&pattern, is_long_name); + result = PFPATH_DoMatchFileNameWithPattern(c_name, &name, c_pat, &pattern, is_long_name); + } + return result; +} + pf_s32 PFPATH_putShortName(pf_u8* pDirEntry, const pf_s8* short_name, pf_u8 attr) { pf_s32 i = 0; -- 2.49.1 From 9536177edd0689b0d2d2959125e67d66f2568ecf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 08:01:44 +0000 Subject: [PATCH 60/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 422f206b..3ae17cc0 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.48% | 88.74% | 64.70% | 98.77% | +| 99.48% | 88.74% | 65.09% | 98.77% | -units 932/1027 complete, functions 12274/12563 matched. +units 933/1027 complete, functions 12274/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 24b6645572330281f5b66628615f690af5edce31 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 03:06:10 -0500 Subject: [PATCH 61/63] match(SOOption 3/4, pf_volume 34/37) (fz3c) (worker f024666b) (#773) --- libs/RVL_SDK/src/fa/pf_volume.c | 12 +- libs/RevoEX/src/so/SOOption.c | 34 +++-- tools/decomp-assist/fz3.attempts.md | 228 ++++++++++++++++++++++++++++ 3 files changed, 254 insertions(+), 20 deletions(-) diff --git a/libs/RVL_SDK/src/fa/pf_volume.c b/libs/RVL_SDK/src/fa/pf_volume.c index bd91415b..b1038bb4 100644 --- a/libs/RVL_SDK/src/fa/pf_volume.c +++ b/libs/RVL_SDK/src/fa/pf_volume.c @@ -226,7 +226,6 @@ PFVOL_SET pf_vol_set; static s8 default_volume_label[12] = "NO NAME "; static const u8 deleted_entry_mark[8] = {0xE5}; - extern s32 PFDRV_mount(PFVOL_VOLUME* volume); extern s32 PFDRV_unmount(PFVOL_VOLUME* volume, u32 mode); extern s32 PFDRV_format(PFVOL_VOLUME* volume, const u8* format_options); @@ -372,8 +371,13 @@ static inline s32 finalize_volume(PFVOL_VOLUME* volume) { if (error != 0) { return error; } return 0; } -static inline s32 copy_codeset(const PFVOL_CHARCODE* code_set) { - pf_vol_set.codeset = *code_set; +static inline s32 copy_codeset(PFVOL_CHARCODE* code_set) { + pf_vol_set.codeset.oem2unicode = code_set->oem2unicode; + pf_vol_set.codeset.unicode2oem = code_set->unicode2oem; + pf_vol_set.codeset.oem_char_width = code_set->oem_char_width; + pf_vol_set.codeset.is_oem_mb_char = code_set->is_oem_mb_char; + pf_vol_set.codeset.unicode_char_width = code_set->unicode_char_width; + pf_vol_set.codeset.is_unicode_mb_char = code_set->is_unicode_mb_char; return 0; } s32 PFVOL_DoMountVolume(PFVOL_VOLUME* volume) { @@ -1458,7 +1462,7 @@ s32 PFVOL_getvolcfg(s8 drive, u32* config) { return 0; } -s32 PFVOL_setcode(const PFVOL_CHARCODE* code_set) { +s32 PFVOL_setcode(PFVOL_CHARCODE* code_set) { if (pf_vol_set.num_mounted_volumes > 0) { pf_vol_set.last_error = 36; return 36; diff --git a/libs/RevoEX/src/so/SOOption.c b/libs/RevoEX/src/so/SOOption.c index 3ed35bc5..9f97dfec 100644 --- a/libs/RevoEX/src/so/SOOption.c +++ b/libs/RevoEX/src/so/SOOption.c @@ -17,14 +17,19 @@ typedef struct SocketOption { u8 value[20]; } SocketOption; -typedef struct InterfaceCommand { int level; int option; } InterfaceCommand; +typedef union InterfaceCommand { + struct { int level; int option; }; + u8 bytes[32]; +} InterfaceCommand; + +typedef union InterfaceLength { + int length; + u8 bytes[32]; +} InterfaceLength; typedef struct InterfaceOption { IOSIoVector vectors[4]; - union { - InterfaceCommand command; - u8 commandBlock[32]; - }; + InterfaceCommand command; union { int length; u8 lengthBlock[32]; @@ -34,10 +39,7 @@ typedef struct InterfaceOption { typedef struct InterfaceSetting { IOSIoVector vectors[4]; - union { - InterfaceCommand command; - u8 commandBlock[32]; - }; + InterfaceCommand command; u8 value[1]; } InterfaceSetting; @@ -96,9 +98,9 @@ static int OptionLength(int* length) { int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int* length) { s32 rm; int temporary; - InterfaceOption* request; - int result; int size; + int result; + InterfaceOption* request; InterfaceCommand* command; int* returnedLength; u8* reply; @@ -111,8 +113,8 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int* else { command=&request->command; command->level=level; command->option=option; - returnedLength=&request->length; - reply=request->value; + returnedLength=&((InterfaceLength*)(command + 1))->length; + reply=(u8*)((InterfaceLength*)returnedLength + 1); *returnedLength=OptionLength(length); request->vectors[0].base=(u8*)command; request->vectors[0].length=8; @@ -138,9 +140,9 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int* int SOSetInterfaceOpt(void* interface, int level, int option, const void* value, int length) { s32 rm; int temporary; - InterfaceSetting* request; - int result; int size; + int result; + InterfaceSetting* request; InterfaceCommand* command; u8* reply; if ((result=SOiPrepareTempRm(NULL,&rm,&temporary))==0) { @@ -152,7 +154,7 @@ int SOSetInterfaceOpt(void* interface, int level, int option, const void* value, else { command=&request->command; command->level=level; command->option=option; - reply=request->value; + reply=(u8*)(command + 1); if(value) memcpy(reply,value,length); else memset(reply,0,length); request->vectors[0].base=(u8*)command; request->vectors[0].length=8; diff --git a/tools/decomp-assist/fz3.attempts.md b/tools/decomp-assist/fz3.attempts.md index 02be0c7d..bd86cca7 100644 --- a/tools/decomp-assist/fz3.attempts.md +++ b/tools/decomp-assist/fz3.attempts.md @@ -599,3 +599,231 @@ src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30) libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0) libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0) Fresh clean FAT ctxdiff155/155 diffs0. Code bytes1544->2164, exactfunctions3->4. Other exact counts unchanged. JPEG fuzzy99.03261->99.10507; declaration/direct-expression improvement remains partial. All owned data100%; no configuration/linking edits. Final full gate PASS, DOL correct, regressions0, forbidden0, readability0. Original JPEG inline-helper/copy layout remains uncertain. + +# Round 3 +HEAD c6c0b145f823573a643925eacc094af8547ff502 origin/main 5fe0a61af71d078b7b2da949b49a9cf30e81d66f +src/keyboard/tiSignWindow POOL IDENTICAL up to 30 (mine=30 base=30) +libs/RVL_SDK/src/fa/msc/puh_msc_blk POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVL_SDK/src/fa/pf_entry_iterator POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RevoEX/src/so/SOOption POOL IDENTICAL up to 0 (mine=0 base=0) +src/keyboard/tiString POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVL_SDK/src/fa/pf_volume POOL IDENTICAL up to 1 (mine=1 base=1) +Round 3 create diagnosis: frame 0x50 and 221 instructions equal; branch forms/helper inlining equal; all 34 differences register allocation, including hoisted vtables and loop state. origin source unchanged. +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 animation pointer temporary | BUILD FAIL i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -O4,p -MMD -c src/keyboard/tiSignWindow.cpp -o build/43U/src/src/keyboard && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/keyboard/tiSignWindow.d build/43U/src/src/keyboard/tiSignWindow.d +### mwcceppc.exe Compiler: +# File: src\keyboard\tiSignWindow.cpp +# -------------------------------------- +# 252: const Animation* animation = paneInfo.animations[animationIndex]; +# Warning: ^^^^^^^^^ +# (10349) implicit 'int' is no longer supported in C++ +### mwcceppc.exe Compiler: +# 252: const Animation* animation = paneInfo.animations[animationIndex]; +# Error: ^ +# (10224) 'const' or '&' variable needs initializer +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 move force/count into loop scope | 221/221 instructions; structural/exact differences (0, 61) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 outer for loop | 221/221 instructions; structural/exact differences (0, 34) +221/221 instructions; structural/exact differences (0, 34) +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | r3 corrected animation temporary | 219/221 instructions; structural/exact differences (9, 91) +Round 3 pread diagnosis: 129/129 instructions, frame 0x40 identical; 10 register differences transfer_blocks and byte product. No structural/operand-order differences; origin source unchanged. +uhf_msc_blk_pread | r3 conditional transfer selection | 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread | r3 byte product scoped to success | 129/129 instructions; structural/exact differences (0, 10) +uhf_msc_blk_pread | r3 count signed temporary | 129/129 instructions; structural/exact differences (0, 10) +Round 3 JPEG diagnosis: frame/instruction counts equal (276), 12 structural differences in returned Huffman aggregate stack slots; remaining coloring differences. origin source unchanged. +TMCJPEGDEC_decode_iquant | r3 shared entry aggregate | 276/276 instructions; structural/exact differences (10, 41) +TMCJPEGDEC_decode_iquant | r3 AC aggregate declared in AC scope | 276/276 instructions; structural/exact differences (12, 46) +TMCJPEGDEC_decode_iquant | r3 reverse returned entry declaration fields loads | 276/276 instructions; structural/exact differences (18, 47) +FindCluster diagnosis: same 0xb0 frame/237 instructions, all 8 differences constant-one vs shifted entries register allocation; no branch or helper boundary differences. origin source unchanged. +PFENT_ITER_FindCluster | initialize shifted entries before iterator fields | 238/237 instructions; structural/exact differences (13, 208) +PFENT_ITER_FindCluster | use iterator start cluster as shift operand | 237/237 instructions; structural/exact differences (0, 8) +PFENT_ITER_FindCluster | sector scalar state | 237/237 instructions; structural/exact differences (0, 11) +Last-register searches: create 6 permutations no change (0,34); pread40 no change (0,10); JPEG35 no change (12,46); FindCluster35 no change (0,8). +GetLFNEntryName diagnosis: 73/73, target loop uses i*13 index strengthened to byte offset; source carries an advancing pointer and independent character index. Target terminator uses reloaded num_entry_LFNs*13. Branch/helper forms equal. +PFENT_ITER_GetLFNEntryName | indexed 13 character fragments and reloaded terminator | 76/73 instructions; structural/exact differences (26, 75) +PFENT_ITER_GetLFNEntryName | typed LFN fragment array indexed by entry | 76/73 instructions; structural/exact differences (26, 75) +PFENT_ITER_GetLFNEntryName | fragment array typedef, loop-local base initialization | 76/73 instructions; structural/exact differences (26, 75) +PFENT_ITER_GetLFNEntryName | explicit byte offset for packed LFN copies; byte-size terminator | 76/73 instructions; structural/exact differences (24, 75) +PFENT_ITER_GetLFNEntryName | packed fragment inline helper boundary | 76/73 instructions; structural/exact differences (24, 75) +SOGetInterfaceOpt diagnosis: 119/119, frame equal, target computes command/reply/length from nested payload bases; source uses direct request bases. Also register assignment/scheduling. origin source unchanged. +SOGetInterfaceOpt | construct all buffer pointers before command assignments | 119/119 instructions; structural/exact differences (5, 16) +SOGetInterfaceOpt | command fields in opposite statement order | 119/119 instructions; structural/exact differences (10, 14) +SOGetInterfaceOpt | returned length after reply assignment | 119/119 instructions; structural/exact differences (5, 16) +SOSetInterfaceOpt diagnosis: 74/74 frame/calls/branches equal; payload pointer derived from command base target, direct request source. Source stores option after reply pointer, target before. origin source unchanged. +SOSetInterfaceOpt | reply pointer before stores | 74/74 instructions; structural/exact differences (4, 14) +SOSetInterfaceOpt | reverse command assignments | 74/74 instructions; structural/exact differences (6, 19) +SOSetInterfaceOpt | request and allocation size scalar state | 74/74 instructions; structural/exact differences (4, 15) +inputChar diagnosis: target136/source125 frame0x30 same; target translate mode3 uses indexed character append with count++ and trailing NUL, source direct scalar stores. Target dead newline comparison suggests converter helper boundary. origin source unchanged. +inputChar__Q39textinput8tistring9DecolatedFw | mode3 indexed append | 125/136 instructions; structural/exact differences (18, 73) +inputChar__Q39textinput8tistring9DecolatedFw | mode3 scan append index | 137/136 instructions; structural/exact differences (17, 74) +inputChar__Q39textinput8tistring9DecolatedFw | mode3 count as conversion state | 125/136 instructions; structural/exact differences (18, 73) +p_rmvvol diagnosis: 64/64 frame0x500 equal; constant target lbz SDA21 vs source folded li0xe5. Target indicates aggregate initialization from small constant template, investigate genuine local byte array. +PFVOL_p_rmvvol | one byte local deleted marker array initializer | 64/64 instructions; structural/exact differences (0, 0) +PFVOL_p_rmvvol | array initialized from existing constant object | BUILD FAIL -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RVL_SDK/src/fa/pf_volume.c -o build/43U/src/libs/RVL_SDK/src/fa && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/fa/pf_volume.d build/43U/src/libs/RVL_SDK/src/fa/pf_volume.d +### mwcceppc.exe Compiler: +# File: libs\RVL_SDK\src\fa\pf_volume.c +# ---------------------------------------- +# 588: u8 deleted[1] = {deleted_entry_mark[0]}; +# Error: ^ +# (10124) illegal constant expression +# Too many errors printed, aborting program + +User break, cancelled... +ninja: build stopped: subcommand failed. + +PFVOL_p_rmvvol | single field aggregate initializer | 64/64 instructions; structural/exact differences (0, 0) +p_rmvvol local byte-array yields exact instructions but .sdata2 is1byte versus target8byte padded extent; gate currently fails matched-data regression8. No commit until resolved. +PFVOL_p_rmvvol | read marker helper | 64/64 instructions; structural/exact differences (2, 4) +PFVOL_p_rmvvol | pointer local | 64/64 instructions; structural/exact differences (2, 4) +PFVOL_p_rmvvol | char aggregate through constant pointer | 64/64 instructions; structural/exact differences (2, 4) +attach diagnosis: 174/176 frame0x20 same. clear_mount return value allocation crosses inline boundary; target moves failure result to r0 and materializes success0 before checking. Shared helper must not regress other matched users. +PFVOL_attach | mount helper return variable declared separately | 174/176 instructions; structural/exact differences (10, 39) +PFVOL_attach | scope mount result into aggregate | 174/176 instructions; structural/exact differences (10, 39) +PFVOL_attach | error branch else form | 174/176 instructions; structural/exact differences (10, 39) +PFVOL_attach | success branch first in mount helper | 174/176 instructions; structural/exact differences (19, 39) +setcode diagnosis: 23/23 instructions; aggregate assignment loads all six pointers then stores, target alternates field load/store. Six real function pointer fields should copy individually. +PFVOL_setcode | explicit code conversion callback copies | 23/23 instructions; structural/exact differences (10, 17) +PFVOL_setcode | mutable callback table pointer with field copies | 23/23 instructions; structural/exact differences (0, 0) +setcode exact: mutable code_set pointer preserves potential alias between callback field reads and global field stores. + +SOOption register search: size-before-request declarations improve GetInterface16->10 differences and SetInterface14->4; source retained. setcode23/23 exact, volume33->34; quick gate PASS with regressions0/data unchanged. p_rmvvol exact local-array candidate abandoned because data regression; existing source/data restored. +regctx diagnosis: 75/75, frame0x10 same; 15 differences free_context_index vs masked status r5/r8 allocation in unrolled three-context loop. All branch/operand/helper boundaries identical; origin source unchanged except our setcode match. +PFVOL_regctx | status declared at function scope | 75/75 instructions; structural/exact differences (0, 15) +PFVOL_regctx | free and status typed state | 75/75 instructions; structural/exact differences (0, 25) +PFVOL_regctx | status tested through stored full flags | 75/75 instructions; structural/exact differences (0, 14) +SOOption | genuine nested IPC payload layout | 119/119 instructions; structural/exact differences (5, 10); set 74/74 instructions; structural/exact differences (4, 4) +PFVOL_regctx | search state free_context_index,context_index | 75/75 instructions; structural/exact differences (0, 25) +PFVOL_regctx | search state free_context_index,error | 75/75 instructions; structural/exact differences (0, 15) +PFVOL_regctx | search state free_context_index,stat | 75/75 instructions; structural/exact differences (0, 25) +PFVOL_regctx | search state context_index,error | 75/75 instructions; structural/exact differences (0, 20) +PFVOL_regctx | search state context_index,stat | 75/75 instructions; structural/exact differences (0, 16) +PFVOL_regctx | search state error,stat | 75/75 instructions; structural/exact differences (0, 14) +PFVOL_regctx | search state free_context_index,context_index,error | 75/75 instructions; structural/exact differences (0, 25) +PFVOL_regctx | search state free_context_index,context_index,stat | 75/75 instructions; structural/exact differences (0, 25) +PFVOL_regctx | search state free_context_index,error,stat | 75/75 instructions; structural/exact differences (0, 25) +PFVOL_regctx | search state context_index,error,stat | 75/75 instructions; structural/exact differences (0, 16) +PFVOL_regctx | search state free_context_index,context_index,error,stat | 75/75 instructions; structural/exact differences (0, 25) +SOOption | typed 32-byte IPC blocks with sequential payload addressing | 119/119 instructions; structural/exact differences (0, 5); set 74/74 instructions; structural/exact differences (0, 0) +IPC block proof: target command at request+32, length at command+32, value at length+32 (set value at command+32); existing storage already reserves these 32-byte IPC blocks. Typed pointer traversal preserves allocation/layout; SetInterface 74/74 diffs0, Get119/119 structural0/exact5. +PFENT_ITER_GetLFNEntryName | byte fragment state i,index | 76/73 instructions; structural/exact differences (24, 74) +PFENT_ITER_GetLFNEntryName | byte fragment state index,err | 76/73 instructions; structural/exact differences (24, 75) +PFENT_ITER_GetLFNEntryName | byte fragment state i,index,err | 76/73 instructions; structural/exact differences (24, 74) +SOGetInterfaceOpt | option input state level,option | 119/119 instructions; structural/exact differences (0, 5) +SOGetInterfaceOpt | option input state option,level | 119/119 instructions; structural/exact differences (0, 5) +SOGetInterfaceOpt | option input state level,option,length | 119/119 instructions; structural/exact differences (0, 5) +SOGetInterfaceOpt | option input state level,option,value | 119/119 instructions; structural/exact differences (0, 5) +SOGetInterfaceOpt | random permutations 50 | best remains (0, 5) +SOGetInterfaceOpt | random permutations 100 | best remains (0, 5) +SOGetInterfaceOpt | random permutations 150 | best remains (0, 5) +SOGetInterfaceOpt | random permutations 200 | best remains (0, 5) +SOGetInterfaceOpt | random permutations 250 | best remains (0, 5) +SOGetInterfaceOpt | random permutations 300 | best remains (0, 5) +SOGetInterfaceOpt | random permutations 350 | best remains (0, 5) +SOGetInterfaceOpt | random permutations 400 | best remains (0, 5) +PFVOL_attach | ignored mount status return zero | 174/176 instructions; structural/exact differences (10, 39) +PFVOL_attach | mount helper returns void | 174/176 instructions; structural/exact differences (10, 39) +PFVOL_attach | mount check distinct status result | 174/176 instructions; structural/exact differences (10, 39) +Structural frame correction: FindCluster is0xa0, not0xb0; JPEG0x50; GetLFN/GetInterface/SetInterface0x30. Registers and frame statements verified against fresh target disassembly. + +SOOption final quick gate PASS, regressions0, forbidden0/readability0, no data. SetInterface exact count2->3/code520->816; GetInterface remains99.78992 with five pure parameter-register differences after400 additional declaration permutations. + +Completeness audit: all10 remaining functions have at least3 distinct successful-build source attempts in Round3; no untried open function. All seven owned data sections100%, no symbol/configuration changes. Exact p_rmvvol local-byte-array candidate reverted because7 target alignment bytes caused data regression; initializer/extent uncertain. GetLFN induction shape, inputChar converter helper, attach return helper, JPEG aggregate stack scope remain uncertain. + +## Final full clean gate, Round3 +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/keyboard/tiSignWindow] pool: IDENTICAL +[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8914 linked code 0 +[src/keyboard/tiSignWindow] instruction-exact functions: 55/56 +[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0 +[src/keyboard/tiSignWindow] section .data size 2672 match 100.0 +[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0 +[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0 +[src/keyboard/tiSignWindow] section .text size 7184 match 99.891426 +[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.117645 +[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] pool: IDENTICAL +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] objdiff: code 1556/2072 data 424/424 functions 10/11 fuzzy 99.8938 linked code 0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] instruction-exact functions: 10/11 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .bss size 384 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .data size 32 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .sbss size 8 match 100.0 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] section .text size 2072 match 99.89382 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] below 100: uhf_msc_blk_pread 99.57365 +[libs/RVL_SDK/src/fa/msc/puh_msc_blk] baseline: code 1556/2072 data 424 functions 10 fuzzy 99.8938 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 99.1051 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 99.10507 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 99.10507 +[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 99.1051 +[libs/RVL_SDK/src/fa/pf_entry_iterator] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_entry_iterator] objdiff: code 6640/7880 data 24/24 functions 14/16 fuzzy 99.6264 linked code 0 +[libs/RVL_SDK/src/fa/pf_entry_iterator] instruction-exact functions: 14/16 +[libs/RVL_SDK/src/fa/pf_entry_iterator] section .sdata size 24 match 100.0 +[libs/RVL_SDK/src/fa/pf_entry_iterator] section .text size 7880 match 99.626396 +[libs/RVL_SDK/src/fa/pf_entry_iterator] below 100: PFENT_ITER_FindCluster 99.81013 +[libs/RVL_SDK/src/fa/pf_entry_iterator] below 100: PFENT_ITER_GetLFNEntryName 90.53425 +[libs/RVL_SDK/src/fa/pf_entry_iterator] baseline: code 6640/7880 data 24 functions 14 fuzzy 99.6264 +[libs/RevoEX/src/so/SOOption] pool: IDENTICAL +[libs/RevoEX/src/so/SOOption] objdiff: code 816/1292 data None/None functions 3/4 fuzzy 99.9226 linked code 0 +[libs/RevoEX/src/so/SOOption] instruction-exact functions: 3/4 +[libs/RevoEX/src/so/SOOption] section .text size 1292 match 99.9226 +[libs/RevoEX/src/so/SOOption] below 100: SOGetInterfaceOpt 99.78992 +[libs/RevoEX/src/so/SOOption] baseline: code 520/1292 data None functions 2 fuzzy 97.5759 +[src/keyboard/tiString] pool: IDENTICAL +[src/keyboard/tiString] objdiff: code 4632/5176 data 288/288 functions 41/42 fuzzy 98.9629 linked code 0 +[src/keyboard/tiString] instruction-exact functions: 41/42 +[src/keyboard/tiString] section .data size 288 match 100.0 +[src/keyboard/tiString] section .text size 5176 match 98.962906 +[src/keyboard/tiString] below 100: inputChar__Q39textinput8tistring9DecolatedFw 90.132355 +[src/keyboard/tiString] baseline: code 4632/5176 data 288 functions 41 fuzzy 98.9629 +[libs/RVL_SDK/src/fa/pf_volume] pool: IDENTICAL +[libs/RVL_SDK/src/fa/pf_volume] objdiff: code 16732/17992 data 210976/210976 functions 34/37 fuzzy 99.8755 linked code 0 +[libs/RVL_SDK/src/fa/pf_volume] instruction-exact functions: 34/37 +[libs/RVL_SDK/src/fa/pf_volume] section .bss size 210944 match 100.0 +[libs/RVL_SDK/src/fa/pf_volume] section .data size 16 match 100.0 +[libs/RVL_SDK/src/fa/pf_volume] section .sdata size 8 match 100.0 +[libs/RVL_SDK/src/fa/pf_volume] section .sdata2 size 8 match 100.0 +[libs/RVL_SDK/src/fa/pf_volume] section .text size 17992 match 99.8755 +[libs/RVL_SDK/src/fa/pf_volume] below 100: PFVOL_p_rmvvol 95.9375 +[libs/RVL_SDK/src/fa/pf_volume] below 100: PFVOL_attach 98.72159 +[libs/RVL_SDK/src/fa/pf_volume] below 100: PFVOL_regctx 99.0 +[libs/RVL_SDK/src/fa/pf_volume] baseline: code 16640/17992 data 210976 functions 33 fuzzy 99.6396 +regressions vs baseline: 0 +global matched_code_percent: 88.68973 -> 88.70268 +global fuzzy_match_percent: 99.47443 -> 99.47685 +global complete_code_percent: 63.16065 -> 63.16065 +global matched_data_percent: 98.51344 -> 98.51344 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Instruction exact functions; objdiff matched code bytes; matched data bytes, before -> after: +src/keyboard/tiSignWindow: functions 55/56 -> 55/56; code 6300 -> 6300 / 7184; data 3468 -> 3468 / 3468 +libs/RVL_SDK/src/fa/msc/puh_msc_blk: functions 10/11 -> 10/11; code 1556 -> 1556 / 2072; data 424 -> 424 / 424 +libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32: functions 0/1 -> 0/1; code 0 -> 0 / 1104; data 0 -> 0 / 0 +libs/RVL_SDK/src/fa/pf_entry_iterator: functions 14/16 -> 14/16; code 6640 -> 6640 / 7880; data 24 -> 24 / 24 +libs/RevoEX/src/so/SOOption: functions 2/4 -> 3/4; code 520 -> 816 / 1292; data 0 -> 0 / 0 +src/keyboard/tiString: functions 41/42 -> 41/42; code 4632 -> 4632 / 5176; data 288 -> 288 / 288 +libs/RVL_SDK/src/fa/pf_volume: functions 33/37 -> 34/37; code 16640 -> 16732 / 17992; data 210976 -> 210976 / 210976 + +Remaining unmatched functions, every one has >=3 distinct Round3 source experiments: +create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator: 99.117645%; 34 register-only differences; vtable/loop state coloring +uhf_msc_blk_pread: 99.57365%; 10 register-only count/product differences +TMCJPEGDEC_decode_iquant: 99.10507%; 12 structural stack-slot differences in Huffman aggregate returns, plus register coloring +PFENT_ITER_FindCluster: 99.81013%; 8 register-only shifted-entry vs constant-one differences +PFENT_ITER_GetLFNEntryName: 90.53425%; pointer induction vs target byte-index loop; terminator uses count reload +SOGetInterfaceOpt: 99.78992%; 5 parameter-register coloring differences; structure now exact +inputChar__Q39textinput8tistring9DecolatedFw: 90.132355%; 125/136 instructions; mode3 conversion append/helper boundary unresolved +PFVOL_p_rmvvol: 95.9375%; folded constant vs target byte-template load; exact candidate rejected for data regression +PFVOL_attach: 98.72159%; 174/176 instructions; inline clear_mount return boundary +PFVOL_regctx: 99.0%; 15 register-only status/free-index differences + +Changed source files: libs/RevoEX/src/so/SOOption.c and libs/RVL_SDK/src/fa/pf_volume.c; attempts log tools/decomp-assist/fz3.attempts.md. Commits43b95ca5/d4a8860d. No config/symbol edits. Full clean gate PASS; pool identical across7 units; regressions0, forbidden0, readability0, target DOL SHA1 preserved. -- 2.49.1 From 513c2a869e6ee0a1c3e1b7b3dce32eff09154c5d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 08:07:20 +0000 Subject: [PATCH 62/63] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ae17cc0..e7ca1a3c 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.48% | 88.74% | 65.09% | 98.77% | +| 99.48% | 88.76% | 65.09% | 98.77% | -units 933/1027 complete, functions 12274/12563 matched. +units 933/1027 complete, functions 12276/12563 matched. decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data -- 2.49.1 From 99cfc8a2d2f5109dc62348b9ad09a392604da4ec Mon Sep 17 00:00:00 2001 From: devin Date: Fri, 2 Oct 2026 08:21:20 +0000 Subject: [PATCH 63/63] Link bannerSound/AxAdpcmPlayer (clean subset) Co-authored-by: coah80 Co-Authored-By: wch --- config/43U/symbols.txt | 8 ++-- configure.py | 2 +- src/bannerSound/AxAdpcmPlayer.cpp | 64 ++++++++++++++----------------- 3 files changed, 34 insertions(+), 40 deletions(-) diff --git a/config/43U/symbols.txt b/config/43U/symbols.txt index 65e5daed..ba80ae56 100644 --- a/config/43U/symbols.txt +++ b/config/43U/symbols.txt @@ -20599,9 +20599,9 @@ lbl_81694C98 = .sdata2:0x81694C98; // type:object size:0x4 align:4 data:float lbl_81694C9C = .sdata2:0x81694C9C; // type:object size:0x4 align:4 data:float lbl_81694CA0 = .sdata2:0x81694CA0; // type:object size:0x4 align:4 data:float lbl_81694CA8 = .sdata2:0x81694CA8; // type:object size:0x8 align:8 data:double -lbl_81694CB0 = .sdata2:0x81694CB0; // type:object size:0x4 align:4 data:float -lbl_81694CB4 = .sdata2:0x81694CB4; // type:object size:0x4 align:4 data:float -lbl_81694CB8 = .sdata2:0x81694CB8; // type:object size:0x8 align:8 data:double +@4196 = .sdata2:0x81694CB0; // type:object size:0x4 align:4 data:float +@4197 = .sdata2:0x81694CB4; // type:object size:0x4 align:4 data:float +@4202 = .sdata2:0x81694CB8; // type:object size:0x8 align:8 data:double @3511 = .sdata2:0x81694CC0; // type:object size:0x4 scope:local align:4 data:float @3561 = .sdata2:0x81694CC4; // type:object size:0x4 scope:local align:4 data:float @3625 = .sdata2:0x81694CC8; // type:object size:0x8 scope:local align:8 data:double @@ -22239,7 +22239,7 @@ scBtnSoundType__Q23ipl5scene = .sdata:0x81697258; // type:object size:0x8 scope: @12749 = .sdata:0x8169727C; // type:object size:0x5 scope:local data:string lbl_81697288 = .sdata:0x81697288; // type:object size:0x2 lbl_8169728A = .sdata:0x8169728A; // type:object size:0x4 data:string -lbl_81697290 = .sdata:0x81697290; // type:object size:0x4 +voiceVe$3399 = .sdata:0x81697290; // type:object size:0x4 @4605 = .sdata:0x81697298; // type:object size:0x4 scope:local data:string lbl_816972A0 = .sdata:0x816972A0; // type:object size:0x8 lbl_816972A8 = .sdata:0x816972A8; // type:object size:0x8 data:wstring diff --git a/configure.py b/configure.py index 6396c6ee..8bcc0298 100644 --- a/configure.py +++ b/configure.py @@ -901,7 +901,7 @@ config.libs = [ ), IPLSection("bannerSound", [ Object(Matching, "bannerSound/AudioWavePlayer.cpp"), - Object(Equivalent, "bannerSound/AxAdpcmPlayer.cpp"), + Object(Matching, "bannerSound/AxAdpcmPlayer.cpp"), Object(Matching, "bannerSound/BannerSoundPlayer.cpp"), Object(Matching, "bannerSound/AudioWaveUtility.cpp"), ] diff --git a/src/bannerSound/AxAdpcmPlayer.cpp b/src/bannerSound/AxAdpcmPlayer.cpp index cb950649..2265e8c3 100644 --- a/src/bannerSound/AxAdpcmPlayer.cpp +++ b/src/bannerSound/AxAdpcmPlayer.cpp @@ -205,7 +205,7 @@ void AxAdpcmSimplePlayer::init() { } int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) { - Header* head = mpBNSBuffer = (Header*)data; + mpBNSBuffer = (Header*)data; sSysPauseFlag = false; @@ -224,7 +224,6 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) { ChannelInfo* chanInfoBufB[2]; ChannelInfo* chanInfoBufA[2]; - AdpcmCoeffs** pCoeffsBufB = NULL; int i; u32* channelStartOffsets; INFOBlock* infoBlock; @@ -240,13 +239,13 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) { int chanCount; { - if (head->byteOrder != 0xFEFF) { + if (((Header*)data)->byteOrder != 0xFEFF) { chanCount = 0; goto clean_up; } - infoBlock = ADD_OFFSET(INFOBlock, data, head->infoHead.offset); - dataBlock = ADD_OFFSET(DATABlock, data, head->dataHead.offset); + infoBlock = ADD_OFFSET(INFOBlock, data, ((Header*)data)->infoHead.offset); + dataBlock = ADD_OFFSET(DATABlock, data, ((Header*)data)->dataHead.offset); if (infoBlock->head.sig != 'INFO') { chanCount = 0; goto clean_up; @@ -268,8 +267,6 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) { pChanInfoBufB = chanInfoBufB; pChanDataBuf = chanDataBuf; pCoeffsBufA = coeffsBufA; - pCoeffsBufB = coeffsBufB; - pAxvpbBuf = axVoiceBuf; for (i = 0; chanCount = infoBlock->channelCount, i < chanCount; i++) { int chanStartOffs = channelStartOffsets[i]; ChannelInfo* chanInfo = ADD_OFFSET(ChannelInfo, infoBlockDataBase, chanStartOffs); @@ -278,8 +275,9 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) { pChanInfoBufB[i] = chanInfo; pChanDataBuf[i] = ADD_OFFSET(void, dataBlockDataBase, chanInfo->dataOff); pCoeffsBufA[i] = ADD_OFFSET(AdpcmCoeffs, infoBlockDataBase, chanInfo->coeffOff); - pCoeffsBufB[i] = ADD_OFFSET(AdpcmCoeffs, infoBlockDataBase, chanInfo->coeffOff); + coeffsBufB[i] = ADD_OFFSET(AdpcmCoeffs, infoBlockDataBase, chanInfo->coeffOff); + pAxvpbBuf = axVoiceBuf; pAxvpbBuf[i] = AXAcquireVoice(0x1f, VoiceCallback, 0); if (pAxvpbBuf[i] == NULL) { chanCount = 0; @@ -312,37 +310,33 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) { axAddr.currentAddressHi = (u32)currAddr >> 0x10; axAddr.currentAddressLo = (u32)currAddr & 0xFFFF; - axAdpcm.a[0][0] = pCoeffsBufB[i]->a[0][0]; - axAdpcm.a[0][1] = pCoeffsBufB[i]->a[0][1]; - axAdpcm.a[1][0] = pCoeffsBufB[i]->a[1][0]; - axAdpcm.a[1][1] = pCoeffsBufB[i]->a[1][1]; - axAdpcm.a[2][0] = pCoeffsBufB[i]->a[2][0]; - axAdpcm.a[2][1] = pCoeffsBufB[i]->a[2][1]; - axAdpcm.a[3][0] = pCoeffsBufB[i]->a[3][0]; - axAdpcm.a[3][1] = pCoeffsBufB[i]->a[3][1]; - axAdpcm.a[4][0] = pCoeffsBufB[i]->a[4][0]; - axAdpcm.a[4][1] = pCoeffsBufB[i]->a[4][1]; - axAdpcm.a[5][0] = pCoeffsBufB[i]->a[5][0]; - axAdpcm.a[5][1] = pCoeffsBufB[i]->a[5][1]; - axAdpcm.a[6][0] = pCoeffsBufB[i]->a[6][0]; - axAdpcm.a[6][1] = pCoeffsBufB[i]->a[6][1]; - axAdpcm.a[7][0] = pCoeffsBufB[i]->a[7][0]; - axAdpcm.a[7][1] = pCoeffsBufB[i]->a[7][1]; - axAdpcm.gain = pCoeffsBufB[i]->cfg.gain; - axAdpcm.pred_scale = pCoeffsBufB[i]->cfg.predScale; - axAdpcm.yn1 = pCoeffsBufB[i]->cfg.yn1; - axAdpcm.yn2 = pCoeffsBufB[i]->cfg.yn2; + axAdpcm.a[0][0] = coeffsBufB[i]->a[0][0]; + axAdpcm.a[0][1] = coeffsBufB[i]->a[0][1]; + axAdpcm.a[1][0] = coeffsBufB[i]->a[1][0]; + axAdpcm.a[1][1] = coeffsBufB[i]->a[1][1]; + axAdpcm.a[2][0] = coeffsBufB[i]->a[2][0]; + axAdpcm.a[2][1] = coeffsBufB[i]->a[2][1]; + axAdpcm.a[3][0] = coeffsBufB[i]->a[3][0]; + axAdpcm.a[3][1] = coeffsBufB[i]->a[3][1]; + axAdpcm.a[4][0] = coeffsBufB[i]->a[4][0]; + axAdpcm.a[4][1] = coeffsBufB[i]->a[4][1]; + axAdpcm.a[5][0] = coeffsBufB[i]->a[5][0]; + axAdpcm.a[5][1] = coeffsBufB[i]->a[5][1]; + axAdpcm.a[6][0] = coeffsBufB[i]->a[6][0]; + axAdpcm.a[6][1] = coeffsBufB[i]->a[6][1]; + axAdpcm.a[7][0] = coeffsBufB[i]->a[7][0]; + axAdpcm.a[7][1] = coeffsBufB[i]->a[7][1]; + axAdpcm.gain = coeffsBufB[i]->cfg.gain; + axAdpcm.pred_scale = coeffsBufB[i]->cfg.predScale; + axAdpcm.yn1 = coeffsBufB[i]->cfg.yn1; + axAdpcm.yn2 = coeffsBufB[i]->cfg.yn2; u32 ratio = infoBlock->sampleRate / 32000.0f * 65536.0f; axSrc.ratioHi = ratio >> 16; axSrc.ratioLo = ratio & 0xFFFF; - axSrc.currentAddressFrac = 0; - axSrc.last_samples[0] = 0; - axSrc.last_samples[1] = 0; - axSrc.last_samples[2] = 0; - axSrc.last_samples[3] = 0; + axSrc.last_samples[3] = axSrc.last_samples[2] = axSrc.last_samples[1] = axSrc.last_samples[0] = axSrc.currentAddressFrac = 0; - AXVPB* vpbA = axVoiceBuf[i]; + AXVPB* vpbA = pAxvpbBuf[i]; AXSetVoiceType(vpbA, 0); AXSetVoiceAddr(vpbA, &axAddr); AXSetVoiceAdpcm(vpbA, &axAdpcm); @@ -359,7 +353,7 @@ int AxAdpcmSimplePlayer::start(void* data, u32 length, AxAdpcmHandle* handle) { Voices[vpbA->index].getMix()->vL = 0; } } - AXVPB* vpbB = axVoiceBuf[i]; + AXVPB* vpbB = pAxvpbBuf[i]; AXSetVoiceMix(vpbB, Voices[vpbA->index].getMix()); static AXPBVE voiceVe = {32768, 0}; AXSetVoiceVe(vpbB, &voiceVe); -- 2.49.1