Compare commits

...

1 Commits

Author SHA1 Message Date
coah
55ba3ae60e tiCandidateBox 108/112, iplSDChannelSelect 117/129 (worker 993eabbf) 2026-10-01 10:06:22 +00:00
6 changed files with 352 additions and 164 deletions

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.32% | 86.76% | 60.61% | 91.12% |
| 99.32% | 86.85% | 60.61% | 91.12% |
units 911/1027 complete, functions 12176/12563 matched.
units 911/1027 complete, functions 12180/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
<!-- progress:end -->

View File

@@ -187,7 +187,19 @@ namespace textinput {
void SetFocusedText(s32 pane) { mnFocusedIdx = pane; }
s32 GetFocusedText() { return mnFocusedIdx; }
f32 GetWidthScale_() const { return 608.0f / mfScreenWidth; }
#ifdef TI_CANDIDATEBOX_IMPLEMENTATION
f32 GetMargin_() const {
f32 margin;
if (mfScreenWidth > 700.0f) {
margin = 10.0f;
} else {
margin = 20.0f;
}
return margin;
}
#else
f32 GetMargin_() const { return mfScreenWidth > 700.0f ? 10.0f : 20.0f; }
#endif
s32 GetNextPageIdx_(s32 page) const;
s32 GetPrevPageIdx_(s32 page) const;
s32 GetDispNum() const;

View File

@@ -1,3 +1,4 @@
#define TI_CANDIDATEBOX_IMPLEMENTATION
#include "keyboard/tiCandidateBox.h"
#include "keyboard/tiManager.h"
@@ -1280,157 +1281,32 @@ namespace textinput {
GXSetScissor(left, top, wd, ht);
}
extern "C" asm void GetNextPageIdx___Q39textinput12candidatebox10UITextAreaCFl() {
nofralloc
stwu r1, -0xc0(r1)
mflr r0
stw r0, 0xc4(r1)
stfd f31, 0xb0(r1)
psq_st f31, 0xb8(r1), 0, 0
stfd f30, 0xa0(r1)
psq_st f30, 0xa8(r1), 0, 0
stfd f29, 0x90(r1)
psq_st f29, 0x98(r1), 0, 0
stfd f28, 0x80(r1)
psq_st f28, 0x88(r1), 0, 0
stfd f27, 0x70(r1)
psq_st f27, 0x78(r1), 0, 0
stfd f26, 0x60(r1)
psq_st f26, 0x68(r1), 0, 0
stfd f25, 0x50(r1)
psq_st f25, 0x58(r1), 0, 0
stfd f24, 0x40(r1)
psq_st f24, 0x48(r1), 0, 0
stfd f23, 0x30(r1)
psq_st f23, 0x38(r1), 0, 0
addi r11, r1, 0x30
bl _savegpr_24
lfs f0, lbl_81694DA8(r2)
mr r24, r3
lfs f1, 0x1fc(r3)
mr r25, r4
lwz r5, 0xd8(r3)
fdivs f25, f0, f1
lfs f0, lbl_81694DB4(r2)
lwz r5, 0x9c(r5)
lwz r3, 0x38(r3)
lfs f31, 0x4c(r5)
lwz r27, 0x9c(r3)
fcmpo cr0, f1, f0
ble GetNextPageIdx_L1
lfs f28, lbl_81694DAC(r2)
b GetNextPageIdx_L2
GetNextPageIdx_L1:
lfs f28, lbl_81694DB0(r2)
GetNextPageIdx_L2:
fneg f23, f28
lfd f29, lbl_81694DC8(r2)
lfs f30, lbl_81694DBC(r2)
mr r26, r25
slwi r28, r4, 7
lis r31, 0x4330
b GetNextPageIdx_L3
GetNextPageIdx_L4:
lwz r0, 0x1e8(r24)
cmpw r26, r0
bne GetNextPageIdx_L5
li r3, -1
b GetNextPageIdx_L6
GetNextPageIdx_L5:
lwz r0, 0x204(r24)
add r0, r0, r28
addic. r30, r0, 4
bne GetNextPageIdx_L7
lfs f0, lbl_81694D90(r2)
b GetNextPageIdx_L8
GetNextPageIdx_L7:
mr r3, r27
bl GetFont__Q34nw4r3lyt8TextBoxCFv
lfs f26, 0xe4(r27)
mr r29, r3
lfs f24, 0xf0(r27)
lfs f27, lbl_81694D90(r2)
b GetNextPageIdx_L9
GetNextPageIdx_L10:
lwz r12, 0(r29)
fadds f27, f27, f24
mr r3, r29
lwz r12, 0x48(r12)
mtctr r12
bctrl
xoris r0, r3, 0x8000
stw r31, 8(r1)
addi r30, r30, 2
stw r0, 0xc(r1)
lfd f0, 8(r1)
fsubs f0, f0, f29
fadds f27, f27, f0
GetNextPageIdx_L9:
lhz r4, 0(r30)
cmpwi r4, 0
bne GetNextPageIdx_L10
lwz r12, 0(r29)
mr r3, r29
lwz r12, 0xc(r12)
mtctr r12
bctrl
xoris r0, r3, 0x8000
stw r31, 8(r1)
stw r0, 0xc(r1)
lfd f0, 8(r1)
fsubs f0, f0, f29
fdivs f0, f26, f0
fmuls f0, f27, f0
fadds f0, f30, f0
GetNextPageIdx_L8:
fmuls f0, f0, f25
addi r28, r28, 0x80
addi r26, r26, 1
fadds f0, f28, f0
fadds f23, f23, f0
GetNextPageIdx_L3:
fcmpo cr0, f23, f31
cror 2, 0, 2
beq GetNextPageIdx_L4
addi r0, r26, -1
cmpw r0, r25
bne GetNextPageIdx_L11
addi r26, r26, 1
GetNextPageIdx_L11:
addi r3, r26, -1
GetNextPageIdx_L6:
psq_l f31, 0xb8(r1), 0, 0
lfd f31, 0xb0(r1)
psq_l f30, 0xa8(r1), 0, 0
lfd f30, 0xa0(r1)
psq_l f29, 0x98(r1), 0, 0
lfd f29, 0x90(r1)
psq_l f28, 0x88(r1), 0, 0
lfd f28, 0x80(r1)
psq_l f27, 0x78(r1), 0, 0
lfd f27, 0x70(r1)
psq_l f26, 0x68(r1), 0, 0
lfd f26, 0x60(r1)
psq_l f25, 0x58(r1), 0, 0
lfd f25, 0x50(r1)
psq_l f24, 0x48(r1), 0, 0
lfd f24, 0x40(r1)
psq_l f23, 0x38(r1), 0, 0
addi r11, r1, 0x30
lfd f23, 0x30(r1)
bl _restgpr_24
lwz r0, 0xc4(r1)
mtlr r0
addi r1, r1, 0xc0
blr
s32 UITextArea::GetNextPageIdx_(s32 idx) const {
f32 areaPaneWidth = mpTextAreaPane->getPane()->GetSize().width;
nw4r::lyt::TextBox* textBox = mpTextBoxPane[0]->getTextPane();
f32 widthScale = GetWidthScale_();
f32 margin = GetMargin_();
f32 xOffset = -margin;
s32 candidateIndex = idx;
while (xOffset <= areaPaneWidth) {
if (candidateIndex == mnCandidateNum) {
return -1;
}
f32 textWidth = calcStringWidth(mpCandidates->szwcPredicted[candidateIndex], textBox);
xOffset += margin + textWidth * widthScale;
++candidateIndex;
}
if (candidateIndex - 1 == idx) {
++candidateIndex;
}
return candidateIndex - 1;
}
s32 UITextArea::GetPrevPageIdx_(s32 idx) const {
// NONMATCHING - only regswaps, hopefully
f32 areaPaneWidth = mpTextAreaPane->getPane()->GetSize().width;
nw4r::lyt::TextBox* textBox = mpTextBoxPane[0]->getTextPane();
f32 widthScale = 608.0f / mfScreenWidth;
f32 widthScale = GetWidthScale_();
f32 margin = GetMargin_();
f32 negMargin = -margin;
@@ -1450,7 +1326,6 @@ namespace textinput {
}
void UITextArea::StartScroll(s32 steps) {
// NONMATCHING - only regswaps, hopefully
f32 acc = 0.0f;
f32 widthScale = GetWidthScale_();
f32 margin = GetMargin_();
@@ -1468,7 +1343,7 @@ namespace textinput {
}
}
mScrollAnimation.startAnm(this, 0.0f, -acc, 15.0f, this);
mScrollAnimation.startAnm(this, 0.0f, -acc, 15.0f, reinterpret_cast<void*>(steps));
}
void UITextArea::StartScrollToIdx(s32 idx) {

View File

@@ -2076,13 +2076,11 @@ namespace ipl {
}
void SDChannelSelect::drawChannelTransitionObjects() {
int index;
int page;
SDChannelObj* channel = NULL;
while (channel = static_cast<SDChannelObj*>(nw4r::ut::List_GetNext(&mChannelObjects, channel)),
channel != NULL) {
page = channel->getPage();
index = channel->getIndex();
int page = channel->mPage;
int index = channel->mIndex;
if (!hasChannelObject(page, index) || !isChannelReady(channel)) {
continue;
}
@@ -2091,12 +2089,23 @@ namespace ipl {
iplSDChannelObj_813E32C8(channel);
if (iplSDChannelObj_813E3330(channel)) {
if (mState < 24 && mState >= 15 &&
(page != mSourcePage || index != mSourceIndex)) {
nw4r::math::VEC3 position(channel->getTranslate());
mpPageLayouts[0]->GetRootPane()->SetTranslate(position);
mpPageLayouts[0]->calcMtx();
mpPageLayouts[0]->draw();
switch (mState) {
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
if (page != mSourcePage || index != mSourceIndex) {
nw4r::math::VEC3 position(channel->getTranslate());
mpPageLayouts[0]->GetRootPane()->SetTranslate(position);
mpPageLayouts[0]->calcMtx();
mpPageLayouts[0]->draw();
}
break;
}
} else if (channel->mStateFlags == 2) {
nw4r::math::VEC3 position(channel->getTranslate());
@@ -2110,7 +2119,6 @@ namespace ipl {
case 16:
case 19:
case 20:
case 21:
case 22:
case 23:
if (page == mSourcePage && index == mSourceIndex) {
@@ -2122,10 +2130,15 @@ namespace ipl {
break;
}
if (mState < 22 && mState >= 19 &&
page == mDestinationPage && index == mDestinationIndex) {
mpPageLayouts[2]->draw();
mpPointerLayout->draw();
switch (mState) {
case 19:
case 20:
case 21:
if (page == mDestinationPage && index == mDestinationIndex) {
mpPageLayouts[2]->draw();
mpPointerLayout->draw();
}
break;
}
}
}

View File

@@ -0,0 +1,175 @@
# Structural round 4. Baseline /tmp/sol-baseline.json; all diagnostics saved under /tmp/sol-diag. No shared header guard removed.
SD create diagnosis: missing loop-body reload of BS2 manager, string-base and System-base register lifetime differ, 145/146 instructions.
src/scene/sdChannelSelect/iplSDChannelSelect | create__Q33ipl5scene15SDChannelSelectFv | 1-cache-bs2-for-condition | structural 7 positional 27 insns 148/146 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | create__Q33ipl5scene15SDChannelSelectFv | 2-do-loop-explicit-state-break | structural 9 positional 40 insns 145/146 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | create__Q33ipl5scene15SDChannelSelectFv | 3-reload-manager-local | structural 4 positional 39 insns 145/146 | POOL IDENTICAL up to 101 (mine=101 base=101)
handleSDTitleListResult diagnosis: early time guard branch is bne vs target beq+b; final-loop titleId/channelCount register lifetimes differ.
src/scene/sdChannelSelect/iplSDChannelSelect | handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv | 1-time-guard-inverted-body | structural 4 positional 143 insns 170/171 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv | 2-channel-count-declared-after-title-id | structural 4 positional 141 insns 170/171 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv | 3-explicit-next-channel-index | structural 4 positional 143 insns 170/171 | POOL IDENTICAL up to 101 (mine=101 base=101)
collectTitlesByUsage diagnosis: count increment uses r3 vs target r0 and threshold load is scheduled before stack usage reload. ChannelOrder also has page/order/titleId lifetimes and operand order differences.
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 1-threshold-operands | structural 6 positional 9 insns 101/101 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 2-compound-count-update | structural 2 positional 4 insns 101/101 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 3-postfix-count-update | structural 2 positional 4 insns 101/101 | POOL IDENTICAL up to 101 (mine=101 base=101)
collectTitlesFromNandUsage diagnosis: count increment uses r3 vs target r0 and threshold load is scheduled before stack usage reload. ChannelOrder also has page/order/titleId lifetimes and operand order differences.
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 1-threshold-operands | structural 6 positional 9 insns 102/102 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 2-compound-count-update | structural 2 positional 4 insns 102/102 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 3-postfix-count-update | structural 2 positional 4 insns 102/102 | POOL IDENTICAL up to 101 (mine=101 base=101)
collectTitlesByChannelOrder diagnosis: count increment uses r3 vs target r0 and threshold load is scheduled before stack usage reload. ChannelOrder also has page/order/titleId lifetimes and operand order differences.
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 1-threshold-operands | structural 6 positional 27 insns 126/126 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 2-compound-count-update | structural 2 positional 22 insns 126/126 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 3-postfix-count-update | structural 2 positional 22 insns 126/126 | POOL IDENTICAL up to 101 (mine=101 base=101)
collectTitlesBySpecialChannels diagnosis: count increment uses r3 vs target r0 and threshold load is scheduled before stack usage reload. ChannelOrder also has page/order/titleId lifetimes and operand order differences.
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 1-threshold-operands | structural 24 positional 36 insns 361/361 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 2-compound-count-update | structural 8 positional 16 insns 361/361 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 3-postfix-count-update | structural 8 positional 16 insns 361/361 | POOL IDENTICAL up to 101 (mine=101 base=101)
flushSaveDataAndMountSD diagnosis: same frame/count; only flushAsync heap/savedata argument load order differs.
src/scene/sdChannelSelect/iplSDChannelSelect | flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv | 1-evaluate-heap-before-save-data | structural 2 positional 2 insns 35/35 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv | 2-save-data-reference | BUILD FAILED
src/scene/sdChannelSelect/iplSDChannelSelect | flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv | 3-heap-then-save-data-locals | BUILD FAILED
drawChannelTransitionObjects diagnosis: target skips state 21, range guards bge+b, and page/index/channel register homes differ. Source currently incorrectly includes 21.
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 1-correct-state-21-and-lifetimes | structural 11 positional 139 insns 157/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 2-separate-guard-sides-and-ranges | structural 11 positional 139 insns 157/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 3-explicit-switch-exclusion | structural 11 positional 139 insns 157/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv | 4-save-data-then-heap-local | structural 2 positional 2 insns 35/35 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv | 5-heap-then-save-data-local | structural 2 positional 2 insns 35/35 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 4-state-switches-instead-of-range-conditions | structural 0 positional 21 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
calcCommon diagnosis: source materializes missing default optOutEvent r5=0; all other instructions match. Preserve real ABI and both event handler arguments.
src/scene/sdChannelSelect/iplSDChannelSelect | calcCommon__Q33ipl5scene15SDChannelSelectFv | 1-explicit-default-argument | structural 4 positional 89 insns 109/108 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | calcCommon__Q33ipl5scene15SDChannelSelectFv | 2-receiver-via-reference | structural 4 positional 89 insns 109/108 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | calcCommon__Q33ipl5scene15SDChannelSelectFv | 3-separate-event-handler-local | structural 4 positional 89 insns 109/108 | POOL IDENTICAL up to 101 (mine=101 base=101)
initializeNormalPage diagnosis: source materializes missing default optOutEvent r5=0; all other instructions match. Preserve real ABI and both event handler arguments.
src/scene/sdChannelSelect/iplSDChannelSelect | initializeNormalPage__Q33ipl5scene15SDChannelSelectFv | 1-explicit-default-argument | structural 3 positional 47 insns 95/94 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | initializeNormalPage__Q33ipl5scene15SDChannelSelectFv | 2-receiver-via-reference | structural 3 positional 47 insns 95/94 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | initializeNormalPage__Q33ipl5scene15SDChannelSelectFv | 3-separate-event-handler-local | structural 3 positional 47 insns 95/94 | POOL IDENTICAL up to 101 (mine=101 base=101)
selectChannel diagnosis: source materializes missing default optOutEvent r5=0; all other instructions match. Preserve real ABI and both event handler arguments.
src/scene/sdChannelSelect/iplSDChannelSelect | selectChannel__Q33ipl5scene15SDChannelSelectFii | 1-explicit-default-argument | structural 1 positional 19 insns 60/59 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | selectChannel__Q33ipl5scene15SDChannelSelectFii | 2-receiver-via-reference | structural 1 positional 19 insns 60/59 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | selectChannel__Q33ipl5scene15SDChannelSelectFii | 3-separate-event-handler-local | structural 1 positional 19 insns 60/59 | POOL IDENTICAL up to 101 (mine=101 base=101)
SDButton onEventDerived diagnosis: event branch is bne vs target beq+b, default r5 extra, net instruction counts coincide because of these opposite differences.
src/scene/sdChannelSelect/iplSDChannelSelect | onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface | 1-early-return-event-guard | structural 9 positional 57 insns 144/144 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface | 2-switch-event-dispatch | structural 9 positional 60 insns 145/144 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface | 3-explicit-default-with-state-lifetime | structural 9 positional 57 insns 144/144 | POOL IDENTICAL up to 101 (mine=101 base=101)
setChannelScissor diagnosis: same frame and instruction count; projection divisions, fb width/height conversion, and scissor axes order determine FP scheduling.
src/scene/sdChannelSelect/iplSDChannelSelect | setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj | 1-scissor-axis-declarations | structural 25 positional 76 insns 233/233 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj | 2-projection-temporary-declarations | structural 23 positional 68 insns 233/233 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj | 3-width-before-y-evaluation | structural 29 positional 64 insns 233/233 | POOL IDENTICAL up to 101 (mine=101 base=101)
drawChannelTransitionObjects attempt 5 declaration search after restoring switches: declaration block: | int index; | int page; | SDChannelObj* channel = NULL; | start (1000000, 1000000) | best (1000000, 1000000) after 6 builds; source restored; best order was: | int index; | int page; | SDChannelObj* channel = NULL; |
drawChannelTransitionObjects attempt 5 declaration search after restoring switches: declaration block: | int index; | int page; | SDChannelObj* channel = NULL; | start (0, 21) | best (0, 21) after 6 builds; source restored; best order was: | int index; | int page; | SDChannelObj* channel = NULL; |
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 6-page-and-index-loop-scope | structural 0 positional 21 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 7-channel-assignment-outside-condition | structural 18 positional 144 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 8-page-index-then-channel-local-binding | structural 0 positional 21 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 9-inline-list-iterator-for-loop | structural 9 positional 155 insns 162/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
CalcPaneLocate_ diagnosis: same frame and count, scale/margin FP homes differ, inline string-width helpers reserve later FP constants. CalcPaneLocate also has vector-y/coloring; StartScroll has callback receiver register difference.
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 1-margin-declaration-before-scale-with-same-evaluation | structural 0 positional 18 insns 435/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 2-margin-then-scale-declarations-and-assignments | structural 0 positional 18 insns 435/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 3-inline-margin-expression | structural 2 positional 404 insns 436/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
GetPrevPageIdx_ diagnosis: same frame and count, scale/margin FP homes differ, inline string-width helpers reserve later FP constants. CalcPaneLocate also has vector-y/coloring; StartScroll has callback receiver register difference.
src/keyboard/tiCandidateBox | GetPrevPageIdx___Q39textinput12candidatebox10UITextAreaCFl | 1-margin-declaration-before-scale-with-same-evaluation | structural 0 positional 11 insns 129/129 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | GetPrevPageIdx___Q39textinput12candidatebox10UITextAreaCFl | 2-margin-then-scale-declarations-and-assignments | structural 0 positional 11 insns 129/129 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | GetPrevPageIdx___Q39textinput12candidatebox10UITextAreaCFl | 3-inline-margin-expression | structural 0 positional 11 insns 129/129 | POOL IDENTICAL up to 57 (mine=57 base=57)
StartScroll diagnosis: same frame and count, scale/margin FP homes differ, inline string-width helpers reserve later FP constants. CalcPaneLocate also has vector-y/coloring; StartScroll has callback receiver register difference.
src/keyboard/tiCandidateBox | StartScroll__Q39textinput12candidatebox10UITextAreaFl | 1-margin-declaration-before-scale-with-same-evaluation | structural 0 positional 8 insns 185/185 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | StartScroll__Q39textinput12candidatebox10UITextAreaFl | 2-margin-then-scale-declarations-and-assignments | structural 0 positional 8 insns 185/185 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | StartScroll__Q39textinput12candidatebox10UITextAreaFl | 3-inline-margin-expression | structural 2 positional 161 insns 186/185 | POOL IDENTICAL up to 57 (mine=57 base=57)
StartScrollToIdx diagnosis: same frame and count, scale/margin FP homes differ, inline string-width helpers reserve later FP constants. CalcPaneLocate also has vector-y/coloring; StartScroll has callback receiver register difference.
src/keyboard/tiCandidateBox | StartScrollToIdx__Q39textinput12candidatebox10UITextAreaFl | 1-margin-declaration-before-scale-with-same-evaluation | structural 0 positional 7 insns 184/184 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | StartScrollToIdx__Q39textinput12candidatebox10UITextAreaFl | 2-margin-then-scale-declarations-and-assignments | structural 0 positional 7 insns 184/184 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | StartScrollToIdx__Q39textinput12candidatebox10UITextAreaFl | 3-inline-margin-expression | structural 2 positional 160 insns 185/184 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 4-helper-if-else-local | structural 0 positional 11 insns 435/435
src/keyboard/tiCandidateBox | GetPrevPageIdx___Q39textinput12candidatebox10UITextAreaCFl | 4-helper-if-else-local | structural 0 positional 17 insns 129/129
src/keyboard/tiCandidateBox | StartScroll__Q39textinput12candidatebox10UITextAreaFl | 4-helper-if-else-local | structural 0 positional 1 insns 185/185
src/keyboard/tiCandidateBox | StartScrollToIdx__Q39textinput12candidatebox10UITextAreaFl | 4-helper-if-else-local | structural 0 positional 0 insns 184/184
StartScroll callback diagnosis: target r31 is steps, source r30 is this. Callback onAnmEvent treats data as signed scroll displacement; source passed the wrong value.
src/keyboard/tiCandidateBox | StartScroll__Q39textinput12candidatebox10UITextAreaFl | 7-correct-callback-scroll-displacement | structural 0 positional 0 insns 185/185 | POOL IDENTICAL up to 57 (mine=57 base=57)
Candidate create diagnosis: inline UITextArea::Init loop uses offsets instead of cursor; UIButton::Create and UIOnOffButton::Create string-pointer lifetime boundaries differ; 351/352 instructions.
src/keyboard/tiCandidateBox | create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 1-combined-candidates-allocation-construction | structural 27 positional 239 insns 351/352 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 2-string-construction-local-reference | structural 27 positional 239 insns 351/352 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 3-pass-stored-allocator | structural 29 positional 242 insns 351/352 | POOL IDENTICAL up to 57 (mine=57 base=57)
Candidate createAnmPane diagnosis: target retains pane-record cursor through CreateAnimTransform then reloads animation ID from table; source retains animation record, eliminating two target loads.
src/keyboard/tiCandidateBox | createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 1-reload-animation-id-after-transform | structural 37 positional 170 insns 220/216 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 2-pane-local-inside-outer-loop | structural 9 positional 102 insns 214/216 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 3-animation-index-widened | structural 25 positional 153 insns 214/216 | POOL IDENTICAL up to 57 (mine=57 base=57)
GetNextPageIdx diagnosis: existing asm has nonzero r2 SDA base bits unlike target zero relocation bases; objdiff 100 but instruction-exact checker differs. Try readable C conversion, without editing existing asm.
src/keyboard/tiCandidateBox | GetNextPageIdx___Q39textinput12candidatebox10UITextAreaCFl | 1-readable-c-forward-width-loop | structural 0 positional 0 insns 130/130 | POOL IDENTICAL up to 57 (mine=57 base=57)
onGUIEvent diagnosis: objdiff 100%, 450/450 actual code matches. ctxdiff/odiff incorrectly uses CR operand as absolute branch target at two non-cr0 branches; do not alter tools or fake their score.
src/keyboard/tiCandidateBox | onGUIEvent__Q39textinput12candidatebox10UITextAreaFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 1-page-range-guard-split | structural 8 positional 19 insns 450/450 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | onGUIEvent__Q39textinput12candidatebox10UITextAreaFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 2-event-name-match-loop-index-u32 | structural 3 positional 3 insns 450/450 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | onGUIEvent__Q39textinput12candidatebox10UITextAreaFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 3-focus-guard-reference-temporary | structural 2 positional 33 insns 450/450 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | GetPrevPageIdx___Q39textinput12candidatebox10UITextAreaCFl | 7-scale-inline-helper-boundary | structural 0 positional 0 insns 129/129 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 7-string-height-local | structural 0 positional 11 insns 435/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 8-text-size-named-temporary | structural 12 positional 21 insns 435/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 9-inline-string-width-guard | structural 9 positional 164 insns 436/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 10-width-declared-before-height-read | structural 0 positional 11 insns 435/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 11-height-size-field-updated-in-place | structural 93 positional 311 insns 433/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 12-size-declaration-after-width-helper | structural 32 positional 314 insns 432/435 | POOL IDENTICAL up to 57 (mine=57 base=57)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 4-usage-threshold-inline-helper | structural 15 positional 40 insns 106/101 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 4-usage-threshold-inline-helper | structural 15 positional 39 insns 107/102 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 4-usage-threshold-inline-helper | structural 18 positional 63 insns 131/126 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 4-usage-threshold-inline-helper | structural 50 positional 224 insns 353/361 | POOL IDENTICAL up to 101 (mine=101 base=101)
CellPhone onKey diagnosis: frame and 682 instructions identical; paneName/state, inlined key-array cursor and offset register homes differ in multiple findKeyForPane expansions.
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 1-state-declared-before-pane-name | structural 0 positional 37 insns 682/682 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 2-trigger-name-scope | structural 0 positional 37 insns 682/682 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3-inline-keyset-boundary | structural 0 positional 37 insns 682/682 | POOL IDENTICAL up to 76 (mine=76 base=76)
CellPhone create diagnosis: same frame and 333 instructions; toggle-pane record and inner animation index saved-register homes are swapped, seven diffs.
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 1-toggle-key-declared-before-record | structural 0 positional 10 insns 333/333 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 2-toggle-animation-record-lifetime | structural 4 positional 9 insns 333/333 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3-toggle-record-before-pane-allocation | structural 14 positional 199 insns 331/333 | POOL IDENTICAL up to 76 (mine=76 base=76)
CellPhone init diagnosis: target keeps layout this in r27 versus ours r30, zero/T in r26 versus r29; pane cursor and keyset offset homes differ. Full frame and 536 instructions identical.
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1-name-loop-cursor | structural 0 positional 155 insns 536/536 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2-local-keyset-before-pane-lookups | structural 6 positional 166 insns 536/536 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3-text-name-buffer-before-source-name | structural 0 positional 155 insns 536/536 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/scene/sdChannelSelect/iplSDChannelSelect | handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv | 4-switch-time-condition | structural 5 positional 143 insns 173/171 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv | 5-title-id-local-outside-final-loop | structural 4 positional 143 insns 170/171 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv | 6-advance-count-after-array-store | structural 4 positional 143 insns 170/171 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 4-animation-id-inline-accessor | structural 0 positional 7 insns 333/333 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 5-animation-id-local-result | structural 0 positional 7 insns 333/333 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 6-animation-id-pointer-accessor | structural 0 positional 7 insns 333/333 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 13-box-width-return-local | structural 0 positional 11 insns 435/435
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 14-box-width-default-zero | structural 22 positional 318 insns 431/435
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 15-box-width-text-local | structural 0 positional 11 insns 435/435
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 5-signed-next-count-temporary | structural 2 positional 4 insns 101/101 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 6-value-copy-before-threshold-read | structural 2 positional 4 insns 101/101 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 7-separate-threshold-guard-sides | structural 2 positional 4 insns 101/101 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 5-signed-next-count-temporary | structural 2 positional 4 insns 102/102 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 6-value-copy-before-threshold-read | structural 2 positional 4 insns 102/102 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 7-separate-threshold-guard-sides | structural 2 positional 4 insns 102/102 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 5-signed-next-count-temporary | structural 2 positional 22 insns 126/126 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 6-value-copy-before-threshold-read | structural 2 positional 22 insns 126/126 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj | declaration-search-last | declaration block: | f32 scissorWidth; | f32 scissorY; | f32 scissorX; | f32 scissorHeight; | u16 framebufferWidth; | u16 framebufferHeight; | start (23, 68) | best (23, 68) after 36 builds; source restored; best order was: | f32 scissorWidth; | f32 scissorY; | f32 scissorX; | f32 scissorHeight; | u16 framebufferWidth; | u16 framebufferHeight; |
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | declaration-search-last | declaration block: | f32 widthScale = GetWidthScale_(); | f32 margin = GetMargin_(); | f32 xOffset = mfXOffset; | | f32 areaPaneXOffset = mpTextAreaPane->getPane()->GetTranslate().x; | f32 areaPaneWidth = mpTextAreaPane->getPane()->GetSize().width; | s32 selectedIdx = GetSelectedTextIdx(); | start (0, 11) | best (0, 11) after 48 builds; source restored; best order was: | f32 widthScale = GetWidthScale_(); | f32 margin = GetMargin_(); | f32 xOffset = mfXOffset; | | f32 areaPaneXOffset = mpTextAreaPane->getPane()->GetTranslate().x; | f32 areaPaneWidth = mpTextAreaPane->getPane()->GetSize().width; | s32 selectedIdx = GetSelectedTextIdx(); |
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 4-base-reset-inline-boundary | structural 0 positional 155 insns 536/536 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | declaration-search-last | declaration block: | u8 state = static_cast<KeyEvent*>(data)->state; | s32 controlKey = findCellPhoneControlKey(paneName); | start (0, 37) | best (0, 37) after 2 builds; source restored; best order was: | u8 state = static_cast<KeyEvent*>(data)->state; | s32 controlKey = findCellPhoneControlKey(paneName); |
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 10-direct-channel-location-fields | structural 0 positional 16 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 11-assignment-expression-condition | structural 0 positional 16 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 12-pointer-condition-for-loop | structural 0 positional 16 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 13-direct-channel-locations-loop-scope | structural 0 positional 0 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 14-channel-index-long-local | structural 0 positional 16 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/scene/sdChannelSelect/iplSDChannelSelect | drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv | 15-channel-page-and-index-long-locals | structural 0 positional 16 insns 159/159 | POOL IDENTICAL up to 101 (mine=101 base=101)
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 7-toggle-record-pointer-boundary | structural 0 positional 7 insns 333/333 | POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 5-control-key-record-reference | structural 3 positional 45 insns 682/682
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 6-character-key-record-reference | structural 9 positional 207 insns 682/682
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 7-control-key-unsigned-return | structural 1 positional 38 insns 682/682
## Final open-function audit
src/scene/sdChannelSelect/iplSDChannelSelect | create__Q33ipl5scene15SDChannelSelectFv | 3 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv | 6 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 7 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 7 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 6 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 4 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv | 3 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | calcCommon__Q33ipl5scene15SDChannelSelectFv | 3 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | initializeNormalPage__Q33ipl5scene15SDChannelSelectFv | 3 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | selectChannel__Q33ipl5scene15SDChannelSelectFii | 3 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj | 4 successful distinct source trials logged | OPEN
src/scene/sdChannelSelect/iplSDChannelSelect | onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface | 3 successful distinct source trials logged | OPEN
src/keyboard/tiCandidateBox | create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 3 successful distinct source trials logged | OPEN
src/keyboard/tiCandidateBox | createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator | 3 successful distinct source trials logged | OPEN
src/keyboard/tiCandidateBox | CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv | 14 successful distinct source trials logged | OPEN
src/keyboard/tiCandidateBox | onGUIEvent__Q39textinput12candidatebox10UITextAreaFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 3 successful distinct source trials logged | OPEN
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 7 successful distinct source trials logged | OPEN
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 7 successful distinct source trials logged | OPEN
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 4 successful distinct source trials logged | OPEN
Final clean full gate over all three units: GATE PASS; regressions 0; forbidden patterns 0; readability warnings 0; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.

View File

@@ -0,0 +1,113 @@
# Structural matching round 4
| Unit | Instruction-exact functions | Objdiff matched code bytes | Objdiff matched data bytes |
| --- | --- | --- | --- |
| `src/scene/sdChannelSelect/iplSDChannelSelect` | 116/129 -> 117/129 | 26472 -> 27108 / 33828 | 224 -> 224 / 2960 |
| `src/keyboard/tiCandidateBox` | 104/112 -> 108/112 | 17996 -> 19988 / 24000 | 1132 -> 1132 / 4652 |
| `src/keyboard/tiCellPhone` | 83/86 -> 83/86 | 12824 -> 12824 / 19028 | 3860 -> 3860 / 3860 |
## New exact functions
- `drawChannelTransitionObjects__Q33ipl5scene15SDChannelSelectFv`: objdiff 100.0%; src 0x27c base 0x27c insns 159/159; diffs 0: [].
- `GetNextPageIdx___Q39textinput12candidatebox10UITextAreaCFl`: objdiff 100.0%; src 0x208 base 0x208 insns 130/130; diffs 0: [].
- `GetPrevPageIdx___Q39textinput12candidatebox10UITextAreaCFl`: objdiff 100.0%; src 0x204 base 0x204 insns 129/129; diffs 0: [].
- `StartScroll__Q39textinput12candidatebox10UITextAreaFl`: objdiff 100.0%; src 0x2e4 base 0x2e4 insns 185/185; diffs 0: [].
- `StartScrollToIdx__Q39textinput12candidatebox10UITextAreaFl`: objdiff 100.0%; src 0x2e0 base 0x2e0 insns 184/184; diffs 0: [].
## Remaining functions, in unit and object order
| Function | Objdiff | Successful logged trials | Remaining difference |
| --- | --- | --- | --- |
| `create__Q33ipl5scene15SDChannelSelectFv` | 97.73972% | 3 | BS2 loop manager reload and data-base lifetime; 145/146 instructions. |
| `handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv` | 99.15205% | 6 | Time guard needs beq plus branch; titleId/channelCount homes differ; 170/171 instructions. |
| `collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` | 97.81188% | 7 | Count update and threshold/stack load scheduling, four differences. |
| `collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` | 97.833336% | 7 | Count update and threshold/stack load scheduling, four differences. |
| `collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` | 97.29365% | 6 | Count update scheduling plus title/page/index register homes, 22 differences. |
| `collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` | 97.55125% | 4 | Count update scheduling in four blocks, 16 differences. |
| `flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv` | 99.65714% | 3 | Heap and savedata argument loads reversed, two differences. |
| `calcCommon__Q33ipl5scene15SDChannelSelectFv` | 99.07407% | 3 | Target omits optOutEvent r5 default initialization; source preserves the declared ABI. |
| `initializeNormalPage__Q33ipl5scene15SDChannelSelectFv` | 98.93617% | 3 | Target omits optOutEvent r5 default initialization; source preserves the declared ABI. |
| `selectChannel__Q33ipl5scene15SDChannelSelectFii` | 98.305084% | 3 | Target omits optOutEvent r5 default initialization; source preserves the declared ABI. |
| `setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj` | 93.4721% | 4 | Projection/scissor FP operand ordering, conversion scheduling and register homes, 68 differences. |
| `onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface` | 98.541664% | 3 | Event branch form and missing target r5 default initialization. |
| `create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator` | 92.71023% | 3 | Inline pane initialization cursor, button helper string lifetimes; 351/352 instructions. |
| `createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator` | 96.56481% | 3 | Animation table reload boundaries and saved-register homes; 214/216 instructions. |
| `CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv` | 99.873566% | 14 | Inline string width versus height FP homes, 11 differences. |
| `onGUIEvent__Q39textinput12candidatebox10UITextAreaFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input` | 100.0% | 3 | Objdiff 100%; odiff incorrectly subtracts function address from CR operands on two branches. The gate instruction count is conservative. |
| `onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv` | 99.67009% | 7 | Inlined key search cursor/offset and pane/state saved-register homes, 37 differences. |
| `create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator` | 99.8949% | 7 | Toggle-pane record and inner-animation offset saved-register homes, seven differences. |
| `init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv` | 98.52612% | 4 | Layout this, zero/T and loop pointer/offset saved-register homes, 155 differences. |
## Validation
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/scene/sdChannelSelect/iplSDChannelSelect] pool: IDENTICAL
[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/sdChannelSelect/iplSDChannelSelect] section .data size 2736 match 35.06984
[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 26472/33828 data 224 functions 116 fuzzy 99.4179
[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.27954
[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 17996/24000 data 1132 functions 106 fuzzy 99.4112
[src/keyboard/tiCellPhone] pool: IDENTICAL
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7793 linked code 0
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
[src/keyboard/tiCellPhone] section .text size 19028 match 99.779274
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7793
regressions vs baseline: 0
global matched_code_percent: 86.74680 -> 86.83454
global fuzzy_match_percent: 99.31120 -> 99.31242
global complete_code_percent: 60.61288 -> 60.61288
global matched_data_percent: 91.11031 -> 91.11031
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
All existing shared keyboard header guard sides remain intact. The new CandidateBox helper is enabled only by its own translation unit. The units remain NonMatching; no configure, symbol-size, section-placement or other-unit source changes were made.
The onGUIEvent entry is a checker limitation, not an objdiff failure. The unchanged SD default-argument mismatch has no demonstrated readable C++ solution with the current ABI. The residual data bytes were preserved; identical string pools alone do not prove every data section exact.
## Source commits
c11d586e match candidate scroll margin helper
85c1e3ae pass scroll displacement to animation callback
b893fd2f replace forward page index assembly with c
bc0ac0c5 match backward page scale helper boundary
2d0b4e65 match sd channel transition state switches