From 400b2fa88b8e79c312ac0bacb86d8e0083c61852 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 11:22:40 +0000 Subject: [PATCH 1/2] match(iplAddressEdit 90/94) (fz16b) (worker 95d2a3ab) --- src/scene/address/iplAddressEdit.cpp | 26 +- tools/decomp-assist/fz16.attempts.md | 407 +++++++++++++++++++++++++++ 2 files changed, 425 insertions(+), 8 deletions(-) diff --git a/src/scene/address/iplAddressEdit.cpp b/src/scene/address/iplAddressEdit.cpp index a5d202a9..928a1b1c 100644 --- a/src/scene/address/iplAddressEdit.cpp +++ b/src/scene/address/iplAddressEdit.cpp @@ -2125,6 +2125,8 @@ state0: goto state0Common; case 3: goto state0Button3; + case 4: + goto done; default: goto done; } @@ -2156,11 +2158,14 @@ state0Button3: { nw4r::lyt::Pane* pane = layout->getNW4RLyt()->GetRootPane()->FindPaneByName(paneName, true); ipl::math::VEC3 position(0.0f, 0.0f, 0.0f); PSMTXMultVec(pane->GetGlobalMtx(), reinterpret_cast(&position), reinterpret_cast(&position)); - f32 xOffset = 15.0f; - f32 height = 50.0f; - f32 scale = 0.5f; + f32 xOffset; + f32 scale; + f32 height; + xOffset = 15.0f; + height = 50.0f; + scale = 0.5f; position.x = position.x + xOffset; - position.y = position.y + scale * height; + position.y = position.y + height * scale; (mpBalloon) ->setPos(position, false, 1); (mpBalloon)->fadein(); @@ -2197,11 +2202,14 @@ state22Button3: nw4r::lyt::Pane* pane = layout->getNW4RLyt()->GetRootPane()->FindPaneByName(paneName, true); ipl::math::VEC3 position(0.0f, 0.0f, 0.0f); PSMTXMultVec(pane->GetGlobalMtx(), reinterpret_cast(&position), reinterpret_cast(&position)); - f32 xOffset = 15.0f; - f32 height = 50.0f; - f32 scale = 0.5f; + f32 xOffset; + f32 scale; + f32 height; + xOffset = 15.0f; + height = 50.0f; + scale = 0.5f; position.x = position.x + xOffset; - position.y = position.y + scale * height; + position.y = position.y + height * scale; (mpBalloon) ->setPos(position, false, 1); (mpBalloon)->fadein(); @@ -2250,6 +2258,8 @@ void ipl::scene::AddressEdit::start_left_event(const char* paneName) { } break; } + case 4: + break; default: break; } diff --git a/tools/decomp-assist/fz16.attempts.md b/tools/decomp-assist/fz16.attempts.md index b8e5e36a..5f88196f 100644 --- a/tools/decomp-assist/fz16.attempts.md +++ b/tools/decomp-assist/fz16.attempts.md @@ -394,3 +394,410 @@ GATE PASS Before -> after instruction-exact: AddressEdit 87 -> 88; SDChannelSelect 117 -> 117; JPEG 4 -> 4; KPAD 19 -> 19. Before -> after matched code bytes: AddressEdit 21556 -> 21932; SDChannelSelect 27108 -> 27108; JPEG 712 -> 712; KPAD 5916 -> 5916. Data remains 2560/2560, 2960/2960, none, 8032/8032 respectively. Source commit: 7e34636b. + +# Round 2, proven source levers +Baseline 2daa6aedf69ed53f692092870c89b93d36b42f84 +src/scene/address/iplAddressEdit POOL IDENTICAL up to 57 (mine=57 base=57) +create__Q33ipl5scene11AddressEditFv adjacent stack store/reload [] +start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface adjacent stack store/reload [] +start_left_event__Q33ipl5scene11AddressEditFPCc adjacent stack store/reload [] +get_friendinfo__Q33ipl5scene11AddressEditFv adjacent stack store/reload [] +update_friendinfo__Q33ipl5scene11AddressEditFv adjacent stack store/reload [] +set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err adjacent stack store/reload [] +src/scene/sdChannelSelect/iplSDChannelSelect POOL IDENTICAL up to 101 (mine=101 base=101) +create__Q33ipl5scene15SDChannelSelectFv adjacent stack store/reload [] +handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv adjacent stack store/reload [] +collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl adjacent stack store/reload [] +collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl adjacent stack store/reload [] +collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl adjacent stack store/reload [] +collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl adjacent stack store/reload [] +flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv adjacent stack store/reload [] +calcCommon__Q33ipl5scene15SDChannelSelectFv adjacent stack store/reload [] +initializeNormalPage__Q33ipl5scene15SDChannelSelectFv adjacent stack store/reload [] +selectChannel__Q33ipl5scene15SDChannelSelectFii adjacent stack store/reload [] +setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj adjacent stack store/reload [] +onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface adjacent stack store/reload [] +libs/RVL_SDK/src/kpad/KPAD POOL IDENTICAL up to 0 (mine=0 base=0) +reset_kpad adjacent stack store/reload [] +KPADGetProjectionPos adjacent stack store/reload [] +KPADSetSensorHeight adjacent stack store/reload [] +calc_acc_horizon adjacent stack store/reload [] +read_kpad_acc adjacent stack store/reload [] +select_1obj_first adjacent stack store/reload [] +select_1obj_continue adjacent stack store/reload [] +calc_dpd_variable adjacent stack store/reload [] +KPADRead adjacent stack store/reload [] +KPADInit adjacent stack store/reload [] + +## src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv +Fetch origin/main 2daa6aedf69ed53f692092870c89b93d36b42f84. Initial assembly diagnosis: (19, 323) structural/positional differences; instructions 820/820 +- read-only board layout file view: build failed ^ # (10248) function call '[ipl::layout::Object].Object(EGG::Heap *, {lval} # const ipl::nand::LayoutFile *, {lval} const char[4], {lval} const # char[18])' does not match # 'ipl::layout::Object::Object(EGG::Heap *, void *, const char *, const char # *)' # 'ipl::layout::Object::Object(EGG::Heap *, ipl::nand::LayoutFile *, const # char *, const char *)' # 'ipl::layout::Object::Object(const ipl::layout::Object &)' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- const address-scene view for friend cache lookup: build failed ---------------- # 314: return; # Warning: ^ # (10184) return value expected ### mwcceppc.exe Compiler: # 317: } # Warning: ^ # (10184) return value expected ### mwcceppc.exe Compiler: # 499: mpFriendCache = address->getFriendCache(); # Error: ^ # (10248) function call '[const ipl::scene::Address].getFriendCache()' does # not match # 'ipl::scene::Address::getFriendCache()' (non-static) # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- use base event-handler views at manager construction: (19, 323) structural/positional; instructions 820/820; restored. + +## src/scene/address/iplAddressEdit start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +Fetch origin/main 2daa6aedf69ed53f692092870c89b93d36b42f84. Initial assembly diagnosis: (8, 166) structural/positional differences; instructions 181/182 +- place default dispatch before first button case: (8, 166) structural/positional; instructions 181/182; restored. +- cache read-only friend record reference for status: (8, 166) structural/positional; instructions 181/182; restored. +- base frame-controller view of pointed animator: (8, 166) structural/positional; instructions 181/182; restored. + +## src/scene/address/iplAddressEdit start_left_event__Q33ipl5scene11AddressEditFPCc +Fetch origin/main 2daa6aedf69ed53f692092870c89b93d36b42f84. Initial assembly diagnosis: (8, 82) structural/positional differences; instructions 95/96 +- place default dispatch before first button case: (8, 82) structural/positional; instructions 95/96; restored. +- cache read-only friend record reference for status: (8, 82) structural/positional; instructions 95/96; restored. +- base frame-controller view of pointed animator: (8, 82) structural/positional; instructions 95/96; restored. + +## src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv +Fetch origin/main 2daa6aedf69ed53f692092870c89b93d36b42f84. Initial assembly diagnosis: (10, 68) structural/positional differences; instructions 82/84 +- const cache view before copying friend record: (10, 68) structural/positional; instructions 82/84; restored. +- const String view when setting name and display panes: (10, 68) structural/positional; instructions 82/84; restored. +- store text arrays through named mutable String view: (10, 39) structural/positional; instructions 83/84; restored. + +## src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv +Fetch origin/main d195c16c86f407d4a2b7636ed3b210bb91083ce4. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 38/38 +- const create-id reference for memcpy input: (2, 2) structural/positional; instructions 38/38; restored. +- copy through create-id array field: (2, 2) structural/positional; instructions 38/38; restored. +- const address object view for source string and create-id: (2, 2) structural/positional; instructions 38/38; restored. + +## src/scene/address/iplAddressEdit set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err +Fetch origin/main d195c16c86f407d4a2b7636ed3b210bb91083ce4. Initial assembly diagnosis: (1, 30) structural/positional differences; instructions 76/75 +- read error code through const friend cache: (1, 30) structural/positional; instructions 76/75; restored. +- default message case before explicit server cases: (1, 30) structural/positional; instructions 76/75; restored. +- derive default message at final switch arm: (6, 28) structural/positional; instructions 73/75; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv +Fetch origin/main d195c16c86f407d4a2b7636ed3b210bb91083ce4. Initial assembly diagnosis: (4, 39) structural/positional differences; instructions 145/146 +- const BS2 manager view when polling state: build failed ile: src\scene\sdChannelSelect\iplSDChannelSelect.cpp # --------------------------------------------------------- # 243: const BS2Manager* manager = System::getBS2Manager(); # Warning: ^^^^^^^^^^ # (10349) implicit 'int' is no longer supported in C++ ### mwcceppc.exe Compiler: # 243: const BS2Manager* manager = System::getBS2Manager(); # Error: ^ # (10224) 'const' or '&' variable needs initializer # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- bind start tick read-only scalar and split elapsed conversion: (6, 20) structural/positional; instructions 146/146; restored. +- cache mem2 heap pointer before worker allocation: (4, 39) structural/positional; instructions 145/146; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv +Fetch origin/main d195c16c86f407d4a2b7636ed3b210bb91083ce4. Initial assembly diagnosis: (4, 143) structural/positional differences; instructions 170/171 +- use const worker view for asynchronous status reads: build failed \mnt\drive2\projects\wii-ipl-workers\data- # d5\src\scene\sdChannelSelect\iplSDChannelSelect.cpp:6) ### mwcceppc.exe Compiler: # File: src\scene\sdChannelSelect\iplSDChannelSelect.cpp # --------------------------------------------------------- # 724: if (worker->is_working()) { # Error: ^ # (10248) function call '[const ipl::NandSDWorker].is_working()' does not # match # 'ipl::NandSDWorker::is_working()' (non-static) # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- read-only title id view during bsearch: build failed d5\src\scene\sdChannelSelect\iplSDChannelSelect.cpp:6) ### mwcceppc.exe Compiler: # File: src\scene\sdChannelSelect\iplSDChannelSelect.cpp # --------------------------------------------------------- # 744: bsearch(static_cast(mpChannelTitleIds) + channelIndex, mpSDTitleInfo, # Error: ^ # (10247) illegal explicit conversion from 'unsigned long *' to # 'const unsigned long long *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- dispatch success result with switch labels and explicit default: (8, 143) structural/positional; instructions 172/171; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 101/101 +- read NAND title records through const array view: (23, 91) structural/positional; instructions 96/101; restored. +- increment output count from const counter view: (2, 4) structural/positional; instructions 101/101; restored. +- const threshold references for usage comparisons: (2, 4) structural/positional; instructions 101/101; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (2, 4) structural/positional differences; instructions 102/102 +- read NAND title records through const array view: (23, 92) structural/positional; instructions 97/102; restored. +- increment output count from const counter view: (2, 4) structural/positional; instructions 102/102; restored. +- const threshold references for usage comparisons: (2, 4) structural/positional; instructions 102/102; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (2, 22) structural/positional differences; instructions 126/126 +- read NAND title records through const array view: (19, 118) structural/positional; instructions 123/126; restored. +- increment output count from const counter view: (2, 22) structural/positional; instructions 126/126; restored. +- const threshold references for usage comparisons: (2, 22) structural/positional; instructions 126/126; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (8, 16) structural/positional differences; instructions 361/361 +- read NAND title records through const array view: (77, 353) structural/positional; instructions 343/361; restored. +- increment output count from const counter view: (8, 16) structural/positional; instructions 361/361; restored. +- const threshold references for usage comparisons: (8, 16) structural/positional; instructions 361/361; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 35/35 +- cache flush heap as const pointer before save manager call: (2, 2) structural/positional; instructions 35/35; restored. +- name save manager before calling flush: build failed t\drive2\projects\wii-ipl-workers\data-d5\include\iplSceneUI.h:11 # Z:\mnt\drive2\projects\wii-ipl-workers\data- # d5\src\scene\sdChannelSelect\iplSDChannelSelect.cpp:6) ### mwcceppc.exe Compiler: # File: src\scene\sdChannelSelect\iplSDChannelSelect.cpp # --------------------------------------------------------- # 1649: system::SaveDataManager* manager = System::getSaveData(); # Error: ^^^^^^ # (10140) undefined identifier 'system' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- move flush result through initialized local file pointer: (2, 2) structural/positional; instructions 35/35; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect calcCommon__Q33ipl5scene15SDChannelSelectFv +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (4, 89) structural/positional differences; instructions 109/108 +- read event handler through const scene view: (4, 89) structural/positional; instructions 109/108; restored. +- const initialized handler local at setter call: (4, 89) structural/positional; instructions 109/108; restored. +- base scene object view before button downcast: (4, 89) structural/positional; instructions 109/108; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect initializeNormalPage__Q33ipl5scene15SDChannelSelectFv +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (3, 47) structural/positional differences; instructions 95/94 +- read event handler through const scene view: (3, 47) structural/positional; instructions 95/94; restored. +- const initialized handler local at setter call: (3, 47) structural/positional; instructions 95/94; restored. +- base scene object view before button downcast: (3, 47) structural/positional; instructions 95/94; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect selectChannel__Q33ipl5scene15SDChannelSelectFii +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (1, 19) structural/positional differences; instructions 60/59 +- read event handler through const scene view: (1, 19) structural/positional; instructions 60/59; restored. +- const initialized handler local at setter call: (1, 19) structural/positional; instructions 60/59; restored. +- base scene object view before button downcast: (1, 19) structural/positional; instructions 60/59; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (23, 68) structural/positional differences; instructions 233/233 +- read-only render mode pointer: (23, 68) structural/positional; instructions 233/233; restored. +- const projection view after rect construction: (23, 68) structural/positional; instructions 233/233; restored. +- immutable translated position temporary: (23, 68) structural/positional; instructions 233/233; restored. + +## src/scene/sdChannelSelect/iplSDChannelSelect onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (9, 57) structural/positional differences; instructions 144/144 +- read-only scene view for button state tests: (17, 124) structural/positional; instructions 144/144; restored. +- switch event dispatch before normal-event block: (9, 60) structural/positional; instructions 145/144; restored. + +- const pane-name pointer binding: (9, 57) structural/positional; instructions 144/144; restored. + +## libs/RVL_SDK/src/kpad/KPAD reset_kpad +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (0, 10) structural/positional differences; instructions 117/117 +- read reset inputs through const inside-state view: build failed ng=c -MMD -c libs/RVL_SDK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kpad\KPAD.c # ------------------------------------- # 312: kpad->status.pos = input->status.vec = Vec2_0; # Error: ^ # (10179) illegal assignment to constant # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- use const pointer binding for reset input view: (0, 10) structural/positional; instructions 117/117; restored. +- reverse reusable constant declaration order: (0, 36) structural/positional; instructions 117/117; restored. + +## libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (0, 9) structural/positional differences; instructions 19/19 +- const input vector view for projection components: (0, 9) structural/positional; instructions 19/19; restored. +- const rectangle view for height calculation: (0, 9) structural/positional; instructions 19/19; restored. +- declare double scale after scalar variables before assignments: (0, 10) structural/positional; instructions 19/19; restored. + +## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (0, 7) structural/positional differences; instructions 52/52 +- readonly sensor center view for distance computation: (0, 7) structural/positional; instructions 52/52; restored. +- readonly center vector view after sensor position store: (0, 7) structural/positional; instructions 52/52; restored. +- declare diagonal square before width square: (0, 7) structural/positional; instructions 52/52; restored. + +## libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (2, 35) structural/positional differences; instructions 101/101 +- read horizon inputs through const state view: (8, 57) structural/positional; instructions 102/101; restored. +- cache acceleration vector through const pointer: (2, 35) structural/positional; instructions 101/101; restored. +- cache target-normal vector through const pointer: (2, 35) structural/positional; instructions 101/101; restored. + +## libs/RVL_SDK/src/kpad/KPAD read_kpad_acc +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (16, 66) structural/positional differences; instructions 400/400 +- read acceleration sample through const pointer view: (16, 66) structural/positional; instructions 400/400; restored. +- readonly sample then readonly smoothing inputs: (16, 66) structural/positional; instructions 400/400; restored. +- declare raw acceleration after previous vector: (32, 82) structural/positional; instructions 400/400; restored. + +## libs/RVL_SDK/src/kpad/KPAD select_1obj_first +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (2, 26) structural/positional differences; instructions 109/109 +- read sensor geometry through const state view: (2, 26) structural/positional; instructions 109/109; restored. +- readonly scan object while writing only candidates: (2, 26) structural/positional; instructions 109/109; restored. +- read-only geometry and read-only object scan: (2, 26) structural/positional; instructions 109/109; restored. + +## libs/RVL_SDK/src/kpad/KPAD select_1obj_continue +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (0, 17) structural/positional differences; instructions 93/93 +- read continuation geometry through const state view: (0, 17) structural/positional; instructions 93/93; restored. +- const matched source object during copy: (0, 17) structural/positional; instructions 93/93; restored. +- const source object and state input views: (0, 17) structural/positional; instructions 93/93; restored. + +## libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (14, 45) structural/positional differences; instructions 250/250 +- readonly state geometry for DPD smoothing: (14, 45) structural/positional; instructions 250/250; restored. +- readonly direction vector during horizon projection: (14, 45) structural/positional; instructions 250/250; restored. +- immutable saved smoothing input view: (14, 45) structural/positional; instructions 250/250; restored. + +## libs/RVL_SDK/src/kpad/KPAD KPADRead +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (11, 89) structural/positional differences; instructions 459/459 +- const inside-state view for polling condition reads: (11, 89) structural/positional; instructions 459/459; restored. +- const sample view for sampled button and format reads: build failed /libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kpad\KPAD.c # ------------------------------------- # 1468: read_kpad_stick(kpad, sample); # Error: ^ # (10209) illegal implicit conversion from 'const struct KPADSample *' to # 'struct KPADSample *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- swap state and output pointer declaration order: (11, 89) structural/positional; instructions 459/459; restored. + +## libs/RVL_SDK/src/kpad/KPAD KPADInit +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (9, 81) structural/positional differences; instructions 185/185 +- const initial center view in diagonal calculations: (9, 81) structural/positional; instructions 185/185; restored. +- const rotation matrix pointer binding while advancing row index: (9, 81) structural/positional; instructions 185/185; restored. +- declare distance before inside-array pointer: (9, 81) structural/positional; instructions 185/185; restored. + +## libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (0, 9) structural/positional differences; instructions 19/19 +- definition signature uses const input vector guarded to this unit: (0, 9) structural/positional; instructions 19/19; restored. + +## libs/RVL_SDK/src/kpad/KPAD read_kpad_acc +Fetch origin/main d542ace0eda57ae50c104c468234b3f15b8db15b. Initial assembly diagnosis: (16, 66) structural/positional differences; instructions 400/400 +- definition signature uses const sample pointer: (50, 118) structural/positional; instructions 400/400; restored. +- smoothing inline helper uses const inside-state pointer: (16, 66) structural/positional; instructions 400/400; restored. +- sample and smoothing helper both use const input pointers: (50, 118) structural/positional; instructions 400/400; restored. + +## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight +Fetch origin/main b5780879949e2436bce826f03a036e1afa63690b. Initial assembly diagnosis: (0, 7) structural/positional differences; instructions 52/52 +- name sensor center zero as a float local: (0, 7) structural/positional; instructions 52/52; restored. +- evaluate channel offset before inside-array base: (0, 7) structural/positional; instructions 52/52; restored. +- named zero with offset-first state pointer: (0, 7) structural/positional; instructions 52/52; candidate kept. + +## libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos +Fetch origin/main b5780879949e2436bce826f03a036e1afa63690b. Initial assembly diagnosis: (0, 9) structural/positional differences; instructions 19/19 +- name projection factors and put aspect before component: (7, 11) structural/positional; instructions 19/19; restored. +- compute aspect before scaled double factor with leading declarations: (0, 10) structural/positional; instructions 19/19; restored. +- use component product for half-height in direct output expressions: (0, 11) structural/positional; instructions 19/19; restored. + +Round 2 extent and data audit +main/src/scene/address/iplAddressEdit data 2560/2560. All data sections already 100%; no symbol edits. +create__Q33ipl5scene11AddressEditFv extent 0x81388490..0x81389160; next calcFadein__Q33ipl5scene11AddressEditFv 0x81389160; no overlap. +start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface extent 0x8138c6dc..0x8138c9b4; next start_left_event__Q33ipl5scene11AddressEditFPCc 0x8138c9b4; no overlap. +start_left_event__Q33ipl5scene11AddressEditFPCc extent 0x8138c9b4..0x8138cb34; next start_trig_event__Q33ipl5scene11AddressEditFPCc 0x8138cb34; no overlap. +get_friendinfo__Q33ipl5scene11AddressEditFv extent 0x8138d680..0x8138d7d0; next delete_friendinfo__Q33ipl5scene11AddressEditFv 0x8138d7d0; no overlap. +update_friendinfo__Q33ipl5scene11AddressEditFv extent 0x8138d814..0x8138d8ac; next utf16_wiiid__Q33ipl5scene11AddressEditFPCw 0x8138d8ac; no overlap. +set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err extent 0x8138e70c..0x8138e838; next onEvent__Q33ipl5scene16AddressEditEventFUlUlPv 0x8138e838; no overlap. +main/src/scene/sdChannelSelect/iplSDChannelSelect data 2960/2960. All data sections already 100%; no symbol edits. +create__Q33ipl5scene15SDChannelSelectFv extent 0x813daf80..0x813db1c8; next enqueueStartNotice__Q33ipl5scene15SDChannelSelectFv 0x813db1c8; no overlap. +handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv extent 0x813dbfe0..0x813dc28c; next handleSDMountComplete__Q33ipl5scene15SDChannelSelectFv 0x813dc28c; no overlap. +collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl extent 0x813dd0ac..0x813dd240; next collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 0x813dd240; no overlap. +collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl extent 0x813dd240..0x813dd3d8; next collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 0x813dd3d8; no overlap. +collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl extent 0x813dd3d8..0x813dd5d0; next collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 0x813dd5d0; no overlap. +collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl extent 0x813dd5d0..0x813ddb74; next collectTitlesForMode__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUli 0x813ddb74; no overlap. +flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv extent 0x813ddcd8..0x813ddd64; next handleThreePageDialog__Q33ipl5scene15SDChannelSelectFv 0x813ddd64; no overlap. +calcCommon__Q33ipl5scene15SDChannelSelectFv extent 0x813dde90..0x813de040; next calcFadein__Q33ipl5scene15SDChannelSelectFv 0x813de040; no overlap. +initializeNormalPage__Q33ipl5scene15SDChannelSelectFv extent 0x813df558..0x813df6d0; next refreshPageObjects__Q33ipl5scene15SDChannelSelectFiPQ33ipl5scene12SDChannelObji 0x813df6d0; no overlap. +selectChannel__Q33ipl5scene15SDChannelSelectFii extent 0x813e0450..0x813e053c; next tellStartingZoomAnm__Q33ipl5scene15SDChannelSelectFv 0x813e053c; no overlap. +setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj extent 0x813e0848..0x813e0bec; next initPageAnimations__Q33ipl5scene15SDChannelSelectFRCQ33ipl4math4VEC3i 0x813e0bec; no overlap. +onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface extent 0x813e2b54..0x813e2d94; next startResetting__Q33ipl5scene15SDChannelSelectFv 0x813e2d94; no overlap. +main/libs/RVL_SDK/src/kpad/KPAD data 8032/8032. All data sections already 100%; no symbol edits. +reset_kpad extent 0x815856cc..0x815858a0; next KPADGetProjectionPos 0x815858a0; no overlap. +KPADGetProjectionPos extent 0x815858a0..0x815858ec; next KPADSetSensorHeight 0x815858ec; no overlap. +KPADSetSensorHeight extent 0x815858ec..0x815859bc; next calc_button_repeat 0x815859bc; no overlap. +calc_acc_horizon extent 0x81585b50..0x81585ce4; next calc_acc_vertical 0x81585ce4; no overlap. +read_kpad_acc extent 0x81585e08..0x81586448; next select_2obj_first 0x81586448; no overlap. +select_1obj_first extent 0x81586858..0x81586a0c; next select_1obj_continue 0x81586a0c; no overlap. +select_1obj_continue extent 0x81586a0c..0x81586b80; next calc_dpd_variable 0x81586b80; no overlap. +calc_dpd_variable extent 0x81586b80..0x81586f68; next read_kpad_dpd 0x81586f68; no overlap. +KPADRead extent 0x81587984..0x815880b0; next KPADInit 0x815880b0; no overlap. +KPADInit extent 0x815880b0..0x81588394; next KPADDisableDPD 0x81588394; no overlap. +No owned open function has adjacent target stw/lwz to the same stack address. No definition-level volatile candidate was justified; no volatile changes made. + +## src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv +Fetch origin/main abb652bb85809c516c29c7cc9695c50f839d6ffe. Initial assembly diagnosis: (10, 68) structural/positional differences; instructions 82/84 +- reuse one mutable text pointer for both textbox calls: (10, 68) structural/positional; instructions 82/84; restored. +- reuse one const text pointer for both textbox calls: (10, 68) structural/positional; instructions 82/84; restored. +- bind textbox strings as constant pointer locals: (10, 68) structural/positional; instructions 82/84; restored. + +## src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv +Fetch origin/main abb652bb85809c516c29c7cc9695c50f839d6ffe. Initial assembly diagnosis: (2, 2) structural/positional differences; instructions 38/38 +- copy typed identifier through const array input: (2, 2) structural/positional; instructions 38/38; restored. + +## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight +Fetch origin/main abb652bb85809c516c29c7cc9695c50f839d6ffe. Initial assembly diagnosis: (0, 3) structural/positional differences; instructions 52/52 +- initialize inside-state pointer at declaration: (0, 3) structural/positional; instructions 52/52; restored. +- look up channel state before float constants: (0, 3) structural/positional; instructions 52/52; restored. +- cache array base in a typed pointer before lookup: (0, 3) structural/positional; instructions 52/52; restored. +- declare inside-state pointer after float locals: (0, 3) structural/positional; instructions 52/52; restored. + +Round 2 declaration search after const and structural trials: KPADSetSensorHeight 134 builds, structural 0 / positional 7 -> 3; only inside-array base r4/r3 allocation remains. Search used only initialized ordinary float inputs and a named zero. + +## libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight +Fetch origin/main abb652bb85809c516c29c7cc9695c50f839d6ffe. Initial assembly diagnosis: (0, 3) structural/positional differences; instructions 52/52 +- isolate typed channel lookup in an inline helper: (0, 3) structural/positional; instructions 52/52; restored. +- initialize state pointer with const binding: (0, 3) structural/positional; instructions 52/52; restored. +- advance typed channel pointer in a separate assignment: (4, 5) structural/positional; instructions 52/52; restored. + +## src/scene/address/iplAddressEdit start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +Fetch origin/main 8f920a08c21c6cf3dc96e8565ee89534277ad3ab. Initial assembly diagnosis: (8, 166) structural/positional differences; instructions 181/182 +- explicit no-op fifth button case supported by five-pane table: (0, 4) structural/positional; instructions 182/182; restored. + +Round 2 select_1obj_continue declaration search: 23 builds across five independent geometry inputs; best remained structural 0 / positional 17. KPAD height partial was restored after all lookup forms plateaued at three r3/r4 base-register differences. +set_err_msg target disassembly proves r4 message ID is assigned only on the named error cases. Its default path reaches getMessage without initialization. Keeping the safe initialized default; an uninitialized local would violate the worker contract. The unmatched SDButton setter call sites likewise lack r5 opt-out initialization in the target. +- explicit fifth button with implicit default behavior: (10, 160) structural/positional; instructions 184/182; restored. + +## src/scene/address/iplAddressEdit start_left_event__Q33ipl5scene11AddressEditFPCc +Fetch origin/main 6b80fd87f561c7582b8ffbac87dd7b111ba64bc2. Initial assembly diagnosis: (8, 82) structural/positional differences; instructions 95/96 +- explicit no-op fifth button case supported by five-pane table: (0, 0) structural/positional; instructions 96/96; candidate kept. +- explicit fifth button with implicit default behavior: build failed rs\data- # d5\src\scene\address\iplAddressEdit.cpp:2) ### mwcceppc.exe Compiler: # File: src\scene\address\iplAddressEdit.cpp # --------------------------------------------- # 314: return; # Warning: ^ # (10184) return value expected ### mwcceppc.exe Compiler: # 317: } # Warning: ^ # (10184) return value expected ### mwcceppc.exe Compiler: # 2255: case 4: # Error: ^ # (10172) case constant defined more than once # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. ; restored. +- retain supported fifth-button dispatch for focused register diff: (0, 4) structural/positional; instructions 182/182; candidate kept. +- height then scale multiplication operand order in balloon offset: (0, 6) structural/positional; instructions 182/182; restored. + +## src/scene/address/iplAddressEdit start_point_event__Q33ipl5scene11AddressEditFPCcPQ33ipl10controller9Interface +Fetch origin/main d6997b0cb9e97fbd2befc07a85c87c74d625f068. Initial assembly diagnosis: (0, 4) structural/positional differences; instructions 182/182 +- declare scale before height while preserving literal encounter order: (0, 2) structural/positional; instructions 182/182; restored. +- height-first product with scale-before-height declarations: (0, 0) structural/positional; instructions 182/182; candidate kept. +- read-only offset factors with height-first product: (0, 2) structural/positional; instructions 182/182; restored. + +Fifth-button dispatch proof: get_button_no iterates all five entries, so return value 4 is a real input. The target start_left_event includes a distinct no-op branch for that button before the first active block. An explicit case 4 reproduces the original 96 instructions exactly; default still handles invalid inputs. start_point_event requires the same structural case and then differs only in the registers loading 50.0 and 0.5 into the two balloon-offset blocks. Target relocation bytes establish 50.0 is loaded into f1 and 0.5 into f0. + +## Round 2 remaining-function audit +create__Q33ipl5scene11AddressEditFv 97.44634%; 3 round-2 source trials logged; structural diagnosis and results above. +get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571%; 6 round-2 source trials logged; structural diagnosis and results above. +update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105%; 4 round-2 source trials logged; structural diagnosis and results above. +set_err_msg__Q33ipl5scene11AddressEditFPwUl8NWC24Err 98.666664%; 3 round-2 source trials logged; structural diagnosis and results above. +create__Q33ipl5scene15SDChannelSelectFv 97.73972%; 3 round-2 source trials logged; structural diagnosis and results above. +handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv 99.15205%; 3 round-2 source trials logged; structural diagnosis and results above. +collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188%; 3 round-2 source trials logged; structural diagnosis and results above. +collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336%; 3 round-2 source trials logged; structural diagnosis and results above. +collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.29365%; 3 round-2 source trials logged; structural diagnosis and results above. +collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125%; 3 round-2 source trials logged; structural diagnosis and results above. +flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714%; 3 round-2 source trials logged; structural diagnosis and results above. +calcCommon__Q33ipl5scene15SDChannelSelectFv 99.07407%; 3 round-2 source trials logged; structural diagnosis and results above. +initializeNormalPage__Q33ipl5scene15SDChannelSelectFv 98.93617%; 3 round-2 source trials logged; structural diagnosis and results above. +selectChannel__Q33ipl5scene15SDChannelSelectFii 98.305084%; 3 round-2 source trials logged; structural diagnosis and results above. +setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj 93.4721%; 3 round-2 source trials logged; structural diagnosis and results above. +onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface 98.541664%; 3 round-2 source trials logged; structural diagnosis and results above. +reset_kpad 99.48718%; 3 round-2 source trials logged; structural diagnosis and results above. +KPADGetProjectionPos 96.57895%; 7 round-2 source trials logged; structural diagnosis and results above. +KPADSetSensorHeight 99.23077%; 13 round-2 source trials logged; structural diagnosis and results above. +calc_acc_horizon 97.27723%; 3 round-2 source trials logged; structural diagnosis and results above. +read_kpad_acc 98.15%; 6 round-2 source trials logged; structural diagnosis and results above. +select_1obj_first 98.348625%; 3 round-2 source trials logged; structural diagnosis and results above. +select_1obj_continue 98.49462%; 3 round-2 source trials logged; structural diagnosis and results above. +calc_dpd_variable 94.82%; 3 round-2 source trials logged; structural diagnosis and results above. +KPADRead 97.52723%; 3 round-2 source trials logged; structural diagnosis and results above. +KPADInit 96.51351%; 3 round-2 source trials logged; structural diagnosis and results above. +Both new matches use ordinary C++, with explicit handling of real button index 4 and ordinary ordered balloon-offset locals. No volatile declarations, symbol extent changes, data renames, assembly, header changes or unit-link changes survived. + +## Round 2 final full gate +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[src/scene/address/iplAddressEdit] pool: IDENTICAL +[src/scene/address/iplAddressEdit] objdiff: code 23044/27112 data 2560/2560 functions 90/94 fuzzy 99.5248 linked code 0 +[src/scene/address/iplAddressEdit] instruction-exact functions: 90/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.52479 +[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.44634 +[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 21932/27112 data 2560 functions 88 fuzzy 99.4923 +[src/scene/sdChannelSelect/iplSDChannelSelect] pool: IDENTICAL +[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/sdChannelSelect/iplSDChannelSelect] section .data size 2736 match 100.0 +[src/scene/sdChannelSelect/iplSDChannelSelect] section .rodata size 64 match 100.0 +[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata size 80 match 100.0 +[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata2 size 80 match 100.0 +[src/scene/sdChannelSelect/iplSDChannelSelect] section .text size 33828 match 99.50514 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: create__Q33ipl5scene15SDChannelSelectFv 97.73972 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv 99.15205 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.29365 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: calcCommon__Q33ipl5scene15SDChannelSelectFv 99.07407 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: initializeNormalPage__Q33ipl5scene15SDChannelSelectFv 98.93617 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: selectChannel__Q33ipl5scene15SDChannelSelectFii 98.305084 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj 93.4721 +[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface 98.541664 +[src/scene/sdChannelSelect/iplSDChannelSelect] baseline: code 27108/33828 data 2960 functions 117 fuzzy 99.5051 +[libs/RVL_SDK/src/kpad/KPAD] pool: IDENTICAL +[libs/RVL_SDK/src/kpad/KPAD] objdiff: code 5916/13056 data 8032/8032 functions 19/29 fuzzy 98.5983 linked code 0 +[libs/RVL_SDK/src/kpad/KPAD] instruction-exact functions: 19/29 +[libs/RVL_SDK/src/kpad/KPAD] section .bss size 7680 match 100.0 +[libs/RVL_SDK/src/kpad/KPAD] section .data size 88 match 100.0 +[libs/RVL_SDK/src/kpad/KPAD] section .sbss size 32 match 100.0 +[libs/RVL_SDK/src/kpad/KPAD] section .sdata size 112 match 100.0 +[libs/RVL_SDK/src/kpad/KPAD] section .sdata2 size 120 match 100.0 +[libs/RVL_SDK/src/kpad/KPAD] section .text size 13056 match 98.59834 +[libs/RVL_SDK/src/kpad/KPAD] below 100: reset_kpad 99.48718 +[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADGetProjectionPos 96.57895 +[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADSetSensorHeight 99.23077 +[libs/RVL_SDK/src/kpad/KPAD] below 100: calc_acc_horizon 97.27723 +[libs/RVL_SDK/src/kpad/KPAD] below 100: read_kpad_acc 98.15 +[libs/RVL_SDK/src/kpad/KPAD] below 100: select_1obj_first 98.348625 +[libs/RVL_SDK/src/kpad/KPAD] below 100: select_1obj_continue 98.49462 +[libs/RVL_SDK/src/kpad/KPAD] below 100: calc_dpd_variable 94.82 +[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADRead 97.52723 +[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADInit 96.51351 +[libs/RVL_SDK/src/kpad/KPAD] baseline: code 5916/13056 data 8032 functions 19 fuzzy 98.5983 +regressions vs baseline: 0 +global matched_code_percent: 89.30427 -> 89.34139 +global fuzzy_match_percent: 99.52654 -> 99.52685 +global complete_code_percent: 67.23291 -> 67.23291 +global matched_data_percent: 99.36508 -> 99.36508 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` +Fresh independent ctxdiff after the clean build: start_point_event 182/182 instructions, diffs 0; start_left_event 96/96 instructions, diffs 0. Both exact-name objdiff values are 100.0. Pool and every owned data section remain identical. +Before -> after: AddressEdit exact 88 -> 90, matched code 21932 -> 23044, matched data 2560 -> 2560; SDChannelSelect 117 -> 117, 27108 -> 27108, 2960 -> 2960; KPAD 19 -> 19, 5916 -> 5916, 8032 -> 8032. Every remaining open function has at least three distinct source-level round-2 trials. -- 2.49.1 From 2d0a4faa6ff7984a4c6ffc77bcc2db1686216178 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 11:22:42 +0000 Subject: [PATCH 2/2] docs: update progress [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f0752ce5..7b92e361 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Progress | Decompiled | Matched | Linked | Data | |:---:|:---:|:---:|:---:| -| 99.53% | 89.81% | 67.40% | 99.37% | +| 99.54% | 89.86% | 67.40% | 99.37% | -units 946/1027 complete, functions 12320/12563 matched. +units 946/1027 complete, functions 12323/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