Compare commits

...

23 Commits

Author SHA1 Message Date
devin
449fb9a66e Decode iplSDChannelTitle + ut_ArchiveFontBase (source-only, stays NonMatching)
- SDButton::setEventHandler was genuinely 1-arg in retail (dead second
  param): corrected decl/def/call sites + symbols.txt mangle. Fixes 5
  fns to instruction-identical and lifts iplSDChannelTitle data to
  .data/.rodata/.sdata/.sdata2 100% (was 12.1%).
- ut_ArchiveFontBase: reordered sheetOffsetsScratch decl/assign to
  match orig materialization.

Both units remain NonMatching — flip attempts verified to break the
linked DOL: iplSDChannelTitle's object emits 51 net-extra anonymous
literal objects (pool merge/order differs, fuzzy 99.94) plus two fns
+4B each (updateCopyStart, startCopyProgress); ut_ArchiveFontBase has
a ~0x380B content region differing (fuzzy 98.47). DOL sha1 stays
26116613f624061ba99c8d1a299aaa6efa85670d with them unlinked.

Co-authored-by: coah80 <usernamecole7@gmail.com>
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 14:50:59 +00:00
github-actions[bot]
b6687e9ff9 docs: update progress [skip ci] 2026-10-02 11:41:42 +00:00
coah
ff52d5235d Restore focus-object emission order and shared pane string for native linking (#814) 2026-10-02 06:40:57 -05:00
github-actions[bot]
7be7f1594e docs: update progress [skip ci] 2026-10-02 11:34:52 +00:00
coah
51b483cbb7 Restore FAT directory definition order and link directory/volume routines (#812) 2026-10-02 06:34:15 -05:00
github-actions[bot]
1bb1fb08be docs: update progress [skip ci] 2026-10-02 11:33:16 +00:00
coah
2f759f35f1 match(iplAddress 95/101) (fz10e) (worker 3c5ccd78) (#813) 2026-10-02 06:32:21 -05:00
github-actions[bot]
ed5c96bd85 docs: update progress [skip ci] 2026-10-02 11:24:46 +00:00
coah
3816427a3e match(iplAddressEdit 90/94) (fz16b) (worker 95d2a3ab) (#811) 2026-10-02 06:23:21 -05:00
github-actions[bot]
2d0a4faa6f docs: update progress [skip ci] 2026-10-02 11:22:42 +00:00
coah
a61a7cf140 match(pf_volume 37/37, idct_resolution_change_var 5/6) (fz3g) (worker fa51267c) (#810) 2026-10-02 06:21:42 -05:00
github-actions[bot]
dce9e0732d docs: update progress [skip ci] 2026-10-02 11:20:10 +00:00
coah
8121c71188 match(Texture_MCUtoY8U8V8 6/13, NWC24MsgCommit 16/18) (fz15c) (worker c264f4a8) (#809) 2026-10-02 06:18:58 -05:00
github-actions[bot]
d6997b0cb9 docs: update progress [skip ci] 2026-10-02 11:15:33 +00:00
github-actions[bot]
6b80fd87f5 docs: update progress [skip ci] 2026-10-02 11:13:58 +00:00
coah
8f920a08c2 match(pf_dir 38/38, iplFocusObject 89/89) (fz1e) (worker db809c39) (#808) 2026-10-02 06:13:48 -05:00
coah
9c81288c55 Link matched eZiText DAWG routines (#807) 2026-10-02 06:12:34 -05:00
github-actions[bot]
abb652bb85 docs: update progress [skip ci] 2026-10-02 11:09:26 +00:00
coah
b578087994 match(Zi8MatchUWDdata; zi8uwd 3/4) (data-d11g) (worker bd9a219c) (#806) 2026-10-02 06:07:57 -05:00
github-actions[bot]
d542ace0ed docs: update progress [skip ci] 2026-10-02 11:02:05 +00:00
coah
d195c16c86 match(zi8dawg 6/6) (fz10d) (worker 64753ac9) (#805) 2026-10-02 06:00:09 -05:00
github-actions[bot]
2daa6aedf6 docs: update progress [skip ci] 2026-10-02 10:55:47 +00:00
coah
9432f36a57 Link matched NWC24 message-reading routines (#804) 2026-10-02 05:54:37 -05:00
30 changed files with 13511 additions and 392 deletions

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.53% | 89.30% | 67.08% | 99.37% |
| 99.54% | 89.91% | 69.31% | 99.37% |
units 944/1027 complete, functions 12312/12563 matched.
units 949/1027 complete, functions 12326/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

@@ -4814,7 +4814,7 @@ reset_gui__Q33ipl5scene8SDButtonFv = .text:0x813E9BC0; // type:function size:0x1
startPointEvent__Q33ipl5scene8SDButtonFPCcPQ33ipl10controller9Interface = .text:0x813E9D08; // type:function size:0x258
startLeftEvent__Q33ipl5scene8SDButtonFPCc = .text:0x813E9F60; // type:function size:0x220
isActive__Q33ipl5scene8SDButtonCFv = .text:0x813EA180; // type:function size:0xC
setEventHandler__Q33ipl5scene8SDButtonFPQ23gui12EventHandlerPQ23gui12EventHandler = .text:0x813EA18C; // type:function size:0x14
setEventHandler__Q33ipl5scene8SDButtonFPQ23gui12EventHandler = .text:0x813EA18C; // type:function size:0x14
setText__Q33ipl5scene8SDButtonFPCcPCw = .text:0x813EA1A0; // type:function size:0xB4
animation__Q33ipl5scene8SDButtonFi = .text:0x813EA254; // type:function size:0x1C4
initArrowAppearance__Q33ipl5scene8SDButtonFib = .text:0x813EA418; // type:function size:0xD0

View File

@@ -742,7 +742,7 @@ config.libs = [
Object(Matching, "scene/board/iplBoardObject.cpp"),
Object(Matching, "scene/board/iplBoardSD.cpp"),
Object(Matching, "scene/board/iplUrlProcessor.cpp"),
Object(Equivalent, "scene/board/iplFocusObject.cpp"),
Object(Matching, "scene/board/iplFocusObject.cpp"),
]
),
IPLSection("button", [
@@ -989,7 +989,7 @@ config.libs = [
Object(NonMatching, "clib/zi8cgetc.c"),
Object(Matching, "clib/zi8cinfo.c"),
Object(Matching, "clib/zi8copy.c"),
Object(NonMatching, "clib/zi8dawg.c"),
Object(Matching, "clib/zi8dawg.c"),
Object(Matching, "clib/zi8getc.c"),
Object(NonMatching, "clib/zi8getc2.c"),
Object(Matching, "clib/zi8getSW.c"),
@@ -1080,7 +1080,7 @@ config.libs = [
Object(Matching, "nwc24/NWC24Stream.c"),
Object(Matching, "nwc24/NWC24Parser.c"),
Object(NonMatching, "nwc24/NWC24MsgCommit.c"),
Object(NonMatching, "nwc24/NWC24MsgRead.c"),
Object(Matching, "nwc24/NWC24MsgRead.c"),
Object(NonMatching, "nwc24/NWC24MsgSubject.c"),
Object(Matching, "nwc24/NWC24Schedule.c"),
Object(NonMatching, "nwc24/NWC24DateParser.c"),
@@ -1693,7 +1693,7 @@ config.libs = [
Object(NonMatching, "fa/pdm_partition.c"),
Object(NonMatching, "fa/pf_cache.c"),
Object(Matching, "fa/pf_cluster.c"),
Object(NonMatching, "fa/pf_dir.c"),
Object(Matching, "fa/pf_dir.c"),
Object(Matching, "fa/pf_entry.c"),
Object(NonMatching, "fa/pf_entry_iterator.c"),
Object(NonMatching, "fa/pf_fat.c"),
@@ -1704,7 +1704,7 @@ config.libs = [
Object(Matching, "fa/pf_file.c"),
Object(Matching, "fa/pf_path.c"),
Object(Matching, "fa/pf_sector.c"),
Object(NonMatching, "fa/pf_volume.c"),
Object(Matching, "fa/pf_volume.c"),
Object(Matching, "fa/pf_volume_apiadd.c"),
Object(Matching, "fa/pf_cp932.c"),
Object(Matching, "fa/pf_api_util.c"),

View File

@@ -143,7 +143,11 @@ namespace ipl {
#else
VEC3 operator-(const VEC3& rhs) const { return VEC3(x - rhs.x, y - rhs.y, z - rhs.z); }
#endif
#ifdef IPL_FOCUS_OBJECT_CPP
VEC3 operator*(f32 val) const;
#else
VEC3 operator*(f32 val) const { return VEC3(x * val, y * val, z * val); }
#endif
VEC3 operator*(f64 val) const {
nw4r::math::VEC3 vecOut;
VEC3Scale(&vecOut, this, (f32)val);

View File

@@ -53,24 +53,7 @@ namespace ipl {
mBScroller.init();
}
BOOL calc(bool canScroll) __attribute__((never_inline)) /*for now*/ {
BOOL result = FALSE;
if (canScroll) {
if (mBScroller.calc()) {
result = TRUE;
}
}
mScroller.calc();
f32 movable = mScroller.movable_pos(mBScroller.getSpeed());
mScroller.addScroll(movable);
mBScroller.addSoundFreq(movable);
return result;
}
BOOL calc(bool canScroll);
BOOL is_busy() const {
BOOL result = TRUE;

View File

@@ -102,12 +102,7 @@ namespace ipl {
static const char* getButtonName(int button) { return smButtonName[button]; }
#endif
#ifdef IPL_SD_CHANNEL_SELECT_CPP
void setEventHandler(::gui::EventHandler * event,
::gui::EventHandler * optOutEvent = NULL);
#else
void setEventHandler(::gui::EventHandler * event, ::gui::EventHandler * optOutEvent);
#endif
void setEventHandler(::gui::EventHandler * event);
void setText(const char* paneName, u32 msgId);
void setText(const char* paneName, const wchar_t* text);

View File

@@ -368,20 +368,20 @@ namespace nw4r {
u32 sheetOffsetsScratchSize;
dataBlockCount = font->hdr.dataBlocks; // 0x0E
sheetGlyphCount = font->glgr.inner.sheetGlyphCount; // 0x1C
dataBlockCount = font->hdr.dataBlocks; // 0x0E
// countName = font->glgr.inner.nameCount;
countSheet = font->glgr.inner.sheetCount;
// count0A = font->glgr.inner.smthCount_0x0a;
// count0C = font->glgr.inner.smthCount_0x0c;
sheetOffsetsSize = ROUNDUP(countSheet * sizeof(u16), 4);
sheetOffsetsScratch = (u16*)ROUNDDOWN((u32)((u8*)font + ctx->remWorkSpace()) - sheetOffsetsSize, 2);
stepSheetFlags = detail::CalcSizeFlagSet(countSheet);
flagsSheetsOff = detail::CalcOffsetSheetFlags(font->glgr.inner.nameCount, countSheet, font->glgr.inner.smthCount_0x0a,
font->glgr.inner.smthCount_0x0c);
flagsSheets = (const u32*)font + (flagsSheetsOff >> 2);
sheetOffsetsSize = ROUNDUP(countSheet * sizeof(u16), 4);
sheetOffsetsScratch = (u16*)ROUNDDOWN((u32)((u8*)font + ctx->remWorkSpace()) - sheetOffsetsSize, 2);
pGlgr = &font->glgr;
ENSURE_WORK_HAS_SIZE(ctx, glgrEnd - (u8*)font + sheetOffsetsSize);
// if (ctx->pWorkEnd - workCurr < fontSizeToEndOfGlgr + sheetOffsetsSize) {

View File

@@ -15,9 +15,13 @@ static s8 clampS8(s32 v) {
void TMCJPEGDEC_IdctBlock4x4(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigzag) {
s32 bd;
s32 d;
s32 c;
s32 a;
s32 cd;
s32 oddrot;
s32 evsum;
s32 rot;
s32 d;
s32 b;
s32* sp;
@@ -26,57 +30,42 @@ void TMCJPEGDEC_IdctBlock4x4(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigzag
s32 tmp[64];
s32 i;
s32 evsum, rot, oddrot, cd;
sp = block + 24;
dp = tmp + 24;
for (i = 0; i < 2; i++) {
a = sp[0]; // 0x0
b = sp[1]; // 0x4
c = sp[2]; // 0x8
d = sp[3]; // 0xc
for (i = 0; i < 4; i++) {
s32 a, b, c, d;
s32 odddiff, bd, evsum, cd, rot, oddrot;
a = sp[0];
b = sp[1];
c = sp[2];
d = sp[3];
odddiff = b - d;
bd = b + d;
evsum = a + c;
oddrot = (0xB5 * (sp[1] - sp[3]) >> 8) + bd;
rot = (0xB5 * (sp[1] - sp[3])) >> 8;
dp[1] = (a - c) + rot;
dp[2] = (a - c) - rot;
dp[3] = evsum - oddrot;
dp[0] = evsum + oddrot;
b = sp[-7]; // -0x1c
d = sp[-5]; // -0x14
bd = b + d;
rot = ((b - d) * 0xB5) >> 8;
cd = a - c;
rot = (odddiff * 0xB5) >> 8;
oddrot = rot + bd;
a = sp[-8]; // -0x20
c = sp[-6]; // -0x18
dp[-8] = (a + c) + oddrot;
dp[-7] = (a - c) + rot;
dp[-6] = (a - c) - rot;
dp[-5] = (a + c) - oddrot;
sp -= 16;
dp -= 16;
dp[0] = evsum + oddrot;
dp[1] = cd + rot;
dp[2] = cd - rot;
dp[3] = evsum - oddrot;
sp -= 8;
dp -= 8;
}
{
u32 idx = 3;
sp = tmp + 3;
s32* column = tmp + 3;
for (i = 0; i < 4; i++) {
u8* bp = conv_row_ptr + idx;
a = sp[0] + 0x40000;
b = sp[8];
d = sp[24];
c = sp[16];
a = column[0] + 0x40000;
b = column[8];
d = column[24];
c = column[16];
evsum = a + c;
cd = a - c;
@@ -90,7 +79,7 @@ void TMCJPEGDEC_IdctBlock4x4(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigzag
bp[pitch * 2] = clampU8((cd - rot) >> 11);
bp[pitch * 4 - pitch] = clampU8((evsum - oddrot) >> 11);
sp--;
column--;
idx -= 1;
}
}
@@ -131,41 +120,37 @@ void TMCJPEGDEC_IdctBlock4x4_Col(s32* sp, u8* conv_row_ptr, u16 pitch, s32 zigza
s32 a, b, c, d;
s32 evsum, evdiff, oddsum, odddiff, rot, oddrot;
for (i = 0; i < 2; i++) {
s32 a0 = src[0], b0 = src[1], c0 = src[2], d0 = src[3];
s32 a1 = src[-8], b1 = src[-7], c1 = src[-6], d1 = src[-5];
s32 odddiff0 = b0 - d0;
s32 oddsum0 = b0 + d0;
s32 evsum0 = a0 + c0;
s32 evdiff0 = a0 - c0;
s32 rot0 = (odddiff0 * 0xB5) >> 8;
s32 odddiff1 = b1 - d1;
s32 oddsum1 = b1 + d1;
s32 evsum1 = a1 + c1;
s32 evdiff1 = a1 - c1;
s32 rot1 = (odddiff1 * 0xB5) >> 8;
s32 oddrot0 = oddsum0 + rot0;
s32 oddrot1 = oddsum1 + rot1;
dst[0] = evsum0 + oddrot0;
dst[1] = evdiff0 + rot0;
dst[2] = evdiff0 - rot0;
dst[3] = evsum0 - oddrot0;
dst[-8] = evsum1 + oddrot1;
dst[-7] = evdiff1 + rot1;
dst[-6] = evdiff1 - rot1;
dst[-5] = evsum1 - oddrot1;
src -= 16;
dst -= 16;
for (i = 0; i < 4; i++) {
a = src[0];
b = src[1];
c = src[2];
d = src[3];
odddiff = b - d;
oddsum = b + d;
evsum = a + c;
evdiff = a - c;
rot = (odddiff * 0xB5) >> 8;
oddrot = rot + oddsum;
dst[0] = evsum + oddrot;
dst[1] = evdiff + rot;
dst[2] = evdiff - rot;
dst[3] = evsum - oddrot;
src -= 8;
dst -= 8;
}
src = tmp + 3;
for (i = 3; i >= 0; i--) {
s32 evdiff;
s32 a;
s32 c;
s32 b;
s32 evsum;
s32 d;
s32 oddsum;
s32 odddiff;
s32 rot;
s32 oddrot;
u8* out = conv_row_ptr + i;
a = src[0];
b = src[8];
@@ -173,7 +158,7 @@ void TMCJPEGDEC_IdctBlock4x4_Col(s32* sp, u8* conv_row_ptr, u16 pitch, s32 zigza
d = src[24];
odddiff = b - d;
oddsum = b + d;
oddsum = d + b;
evsum = a + c;
evdiff = a - c;
rot = odddiff * 0xB5 >> 8;

View File

@@ -428,21 +428,21 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 height;
s32 chromaYEnd;
s32 column;
u8* lumaTexture;
s32 chromaXEnd;
u8* luminance;
s32 chromaYEnd;
u8* lumaTexture;
s32 height;
u32 chromaTileWidth;
u8* luminance;
s32 column;
u8* cbTexture;
s32 width;
s32 xEnd;
u8* crTexture;
u32 tileWidth;
u8* cb;
TMCCJPEGDecState* state;
s32 yEnd;
s32 xEnd;
s32 width;
u8* cr;
s32 row;
@@ -554,9 +554,8 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
u32 chromaTileWidth;
TMCCJPEGDecState* state;
u8* lumaTexture;
TMCCJPEGDecState* state;
u8* luminance;
s32 column;
s32 row;
@@ -596,13 +595,13 @@ static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
luminance += 8 - width;
}
y = (u32)y >> 1;
chromaTileWidth = state->chromaWidth >> 3;
tileWidth = state->chromaWidth >> 3;
chromaEnd = y + 8 / state->scaleFactor;
for (; y < chromaEnd; y++) {
for (column = x; column < xEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128;
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128;
cb++;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128;
cr++;
}
cb += 8 - width;

View File

@@ -187,8 +187,7 @@ unsigned int Zi8MatchROMdata1(ziWChar *elements, ziU8 count, ziU8 language, ziWC
ZI_WORK->unk_0x1764 = (ziU8*)group;
if (ZI_WORK->unk_0x1764 == 0) {
if (Zi8GetTableSize(language & 0xff,0xb,ZI_WORK) != 0) {
tableAddress = Zi8GetTableAddress(language & 0xff,0xb,ZI_WORK);
ZI_WORK->unk_0x1764 = (ziU8*)tableAddress;
ZI_WORK->unk_0x1764 = (ziU8*)(tableAddress = Zi8GetTableAddress(language & 0xff,0xb,ZI_WORK));
}
}
if (ZI_WORK->unk_0x1764 != 0) {

View File

@@ -88,17 +88,18 @@ void Zi8_8148047C(ziPtr __zi8_work_data) {
ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16 currentLength, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
ziUserDictionary* dictionary;
ziU8* cursor;
int fallback = 0;
ziU8* begin;
ziU8* boundary;
ziU8* end;
ziUserWord* previous;
int firstSegment;
ziU32 size;
int entryLength;
int headerSize;
int entryLanguage;
volatile int entryLength;
int previousOffset;
int visited = 0;
ziU8* begin;
int fallback = 0;
ziWChar folded;
ziU8* text;
int position;
@@ -143,7 +144,7 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
ZI_WORK->unk_0x141[1] = language;
ZI_WORK->unk_0x141[2] = prefixLength;
previousOffset = 4;
for (; prefixLength > 0; prefixLength--, position++) {
while (prefixLength > 0) {
folded = currentWord[position];
ZI_WORK->unk_0x141[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
ZI_WORK->unk_0x184[previousOffset] = 0;
@@ -155,12 +156,14 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
ZI_WORK->unk_0x140 = 0;
break;
}
prefixLength--;
position++;
}
}
}
if (ZI_WORK->unk_0x140 == 0 && length == 0) return 0;
rescan:
begin = cursor = dictionary->entries + dictionary->current;
cursor = begin = dictionary->entries + dictionary->current;
boundary = (ziU8*)dictionary + dictionary->boundary + 7;
end = (ziU8*)dictionary + dictionary->end + 7;
if (begin < boundary) firstSegment = 1;
@@ -169,8 +172,7 @@ rescan:
size = *cursor;
if ((ziS32)ZI_WORK->unk_0x13C > visited++ || (((ziUserWord*)cursor)->size & 0xC0) != 0) {
next:
cursor += size;
if (cursor > end) {
if ((cursor += size) > end) {
if (firstSegment) break;
firstSegment = 1;
size = cursor - end - 1;
@@ -178,8 +180,9 @@ next:
}
} else {
previous = (ziUserWord*)(cursor + size);
if ((ziU8*)previous > end) previous = (ziUserWord*)(cursor + ((ziU8*)dictionary - end) + 7);
text = &((ziUserWord*)cursor)->language;
if ((ziU8*)previous > end) previous = (ziUserWord*)(dictionary->entries + (cursor - end - 1));
text = cursor;
headerSize = *text++;
entryLanguage = *text++;
entryLength = *text++;
text++;

View File

@@ -140,15 +140,19 @@ extern pf_s32 PFVOL_CheckCurrentDir(PF_VOLUME* volume, pf_u32 start_cluster);
extern pf_s32 PFENT_RemoveEntry(PF_DIR_ENT* entry, PF_ENT_ITER* iter);
extern pf_s32 PFFAT_FreeChain(PFDIR_FFD* ffd, pf_u32 start_cluster, pf_u32 chain_index, pf_u32 size);
static inline pf_u32 current_directory_is_open(PF_VOLUME* volume, pf_u32 cluster) {
static inline PF_CUR_DIR* current_directories(PFDIR_VOLUME_DIRS* state) {
return state->current_dirs;
}
static inline pf_u32 current_directory_is_open(PF_VOLUME* volume, const PF_DIR_ENT* entry) {
pf_u32 index;
for (index = 0; index < 4; index++) {
if (pf_vol_set.volume_state.volumes[index].p_vol == volume) {
PFDIR_VOLUME_DIRS* state = (PFDIR_VOLUME_DIRS*)volume;
PF_CUR_DIR* directory = state->current_dirs;
if (volume == pf_vol_set.volume_state.volumes[index].p_vol) {
PFDIR_VOLUME_DIRS* state = (PFDIR_VOLUME_DIRS*)pf_vol_set.volume_state.volumes[index].p_vol;
PF_CUR_DIR* directory = current_directories(state);
pf_u32 slot;
for (slot = 0; slot < 4; slot++, directory++) {
if ((directory->stat & 1) != 0 && directory->directory.start_cluster == cluster) { return 1; }
if ((directory->stat & 1) != 0 && directory->directory.start_cluster == entry->start_cluster) { return 1; }
}
}
}
@@ -381,7 +385,7 @@ pf_s32 PFDIR_p_readdir(PFDIR_DIR* dir, PFDIR_READ_RESULT* result) {
return 0;
}
extern pf_s32 PFENT_findEntry(PFDIR_FFD*, PF_DIR_ENT*, pf_u32, PFDIR_STR*, pf_u8, pf_u32*, pf_u32*);
extern pf_s32 PFENT_findEntry(PFDIR_FFD*, PF_DIR_ENT*, pf_u32, PFDIR_STR*, pf_u32, pf_u32);
extern pf_s32 PFFAT_GetSectorSpecified(PFDIR_FFD*, pf_u32, pf_u32, pf_u32*);
extern pf_s32 PFPATH_transformInUnicode(pf_u16*, const pf_s8*);
extern void PFPATH_SetSearchPattern(pf_s8*, pf_u16*, PFDIR_STR*);
@@ -408,17 +412,9 @@ extern void PFPATH_AdjustExtShortName(pf_s8* name, pf_u32 position);
extern pf_s32 PFCACHE_AllocateDataPage(PF_VOLUME* volume, pf_u32 sector, PF_CACHE_PAGE** page, pf_u32* size);
extern void PFCACHE_FreeDataPage(PF_VOLUME* volume, PF_CACHE_PAGE* page);
static inline void set_dot_entry(pf_u8* buffer) {
pf_u32 index;
buffer[0] = '.';
buffer[1] = ' ';
buffer[2] = ' ';
buffer[3] = ' ';
buffer[4] = ' ';
buffer[5] = ' ';
buffer[6] = ' ';
buffer[7] = ' ';
buffer[8] = ' ';
buffer[9] = ' ';
buffer[10] = ' ';
for (index = 1; index < 11; index++) { buffer[index] = ' '; }
}
static inline void set_dot_dot_entry(pf_u8* buffer) {
@@ -453,7 +449,7 @@ extern pf_s32 PFENT_ITER_GetEntryOfPattern(PF_ENT_ITER* iter, PF_DIR_ENT* entry,
extern pf_s32 PFENT_ITER_FindEntry(PF_ENT_ITER* iter, PF_DIR_ENT* entry, PFDIR_STR* pattern,
pf_u8 attributes, pf_u32 start, pf_u32* found);
extern pf_s32 PFENT_findEntry(PFDIR_FFD* ffd, PF_DIR_ENT* entry, pf_u32 start, PFDIR_STR* pattern,
pf_u8 attributes, pf_u32* logical_position, pf_u32* entry_position);
pf_u32 required_attributes, pf_u32 forbidden_attributes);
extern pf_u32 PFSTR_GetCodeMode(PFDIR_STR* path);
extern const pf_s8* PFSTR_GetStrPos(PFDIR_STR* path, pf_u32 target);
extern pf_s32 PFPATH_SplitPathPattern(PF_STR* path, PFDIR_STR* directory, PFDIR_STR* pattern);
@@ -467,6 +463,16 @@ extern pf_s32 PFFILE_FsexecOpenFile(PF_DIR_ENT* entry, PF_ENT_ITER* iter, pf_u32
extern pf_s32 PFPATH_cmpName(const pf_s8* short_name, PFDIR_STR* pattern, pf_u32 short_search);
extern pf_s32 PFPATH_cmpNameUni(const pf_u16* name, PFDIR_STR* pattern);
pf_s32 PFDIR_p_mkdir(PF_VOLUME* volume, PF_STR* path, pf_u32 option, PF_DTA* data) {
pf_u32 index;
pf_u32* next_sector;
pf_u16 filename_length;
pf_u16 original_offset;
pf_u8 checksum;
pf_u8 lfn_count = 0;
pf_u32 cluster;
pf_u32 lfn_index;
pf_u32 entry_sector;
pf_s32 error;
PF_DIR_ENT parent_entry;
PF_DIR_ENT entry;
pf_s8 normalized_name[512];
@@ -480,19 +486,9 @@ pf_s32 PFDIR_p_mkdir(PF_VOLUME* volume, PF_STR* path, pf_u32 option, PF_DTA* dat
pf_u32 found;
pf_u32 page_size;
PF_CACHE_PAGE* page;
pf_u8 lfn_count = 0;
pf_u32 sector = 0;
pf_u32 written;
pf_u32 position;
pf_u32 entry_sector;
pf_u16 filename_length;
pf_u16 original_offset;
pf_u8 checksum;
pf_u32 cluster;
pf_u32 index;
pf_u32 lfn_index;
pf_u32* next_sector;
pf_s32 error;
error = PFPATH_SplitPath((PFDIR_STR*)path, &directory, &filename);
if (error != 0) { return error; }
@@ -870,12 +866,15 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
pf_u32 found;
pf_u16 time;
pf_u8 deleted_marker[1] = {0xE5};
pf_u16 saved_initial_char = 0;
pf_u32 sector;
pf_u32* next_sector;
pf_s32 filename_length;
pf_s32 parse_error;
pf_u32* next_sector;
pf_s32 allocation_error = 0;
pf_u32 sector;
pf_u16 saved_initial_char = 0;
pf_s32 parse_error;
const pf_s8* filename;
pf_u32 remaining_lfns;
pf_u32 lfn_index;
pf_s32 error;
pf_u32 index;
PF_DIR_ENT* update_entry;
@@ -911,11 +910,11 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
}
PFSTR_SetLocalStr(&destination_name, (pf_u32)normalized_name);
if (PFSTR_GetCodeMode(&destination_name) == 1) {
const pf_s8* filename = PFSTR_GetStrPos(&destination_name, 1);
filename = PFSTR_GetStrPos(&destination_name, 1);
error = pf_strcmp(PFSTR_GetStrPos(&directory, 1), filename);
} else {
const pf_u16* filename = (const pf_u16*)PFSTR_GetStrPos(&destination_name, 1);
error = pf_w_strcmp((const pf_u16*)PFSTR_GetStrPos(&directory, 1), filename);
filename = PFSTR_GetStrPos(&destination_name, 1);
error = pf_w_strcmp((const pf_u16*)PFSTR_GetStrPos(&directory, 1), (const pf_u16*)filename);
}
if (error != 0) {
error = PFENT_ITER_GetEntryOfPath(&destination_iter, &destination_entry,
@@ -925,23 +924,24 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
}
destination_entry.start_cluster = source_parent.start_cluster;
PFFAT_InitFFD(&destination_iter.ffd, &destination_hint, volume, &destination_entry.start_cluster);
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0, 0);
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0);
if (error == 0) { return 8; }
if (error != 0 && error != 3) { return error; }
if ((source_entry.attr & 0x10) == 0) {
if (PFFILE_IsOpened(&source_entry) != 0) { return 0x13; }
} else {
if (directory_is_open(&source_entry) != 0) { return 0x13; }
if (current_directory_is_open(source_entry.p_vol, source_entry.start_cluster) != 0) { return 0x1C; }
if (current_directory_is_open(source_entry.p_vol, &source_entry) != 0) { return 0x1C; }
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)"..", 1, 0, 2) == 0) { return 0x1C; }
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)".", 1, 0, 1) == 0) { return 0x1C; }
{
pf_u32 directory_sector;
PFDIR_SFD* file = ((PFDIR_VOLUME_DIRS*)volume)->sfds;
pf_u32 directory_sector = volume->bpb.first_data_sector +
directory_sector = volume->bpb.first_data_sector +
((source_entry.start_cluster - 2) << volume->bpb.log2_sectors_per_cluster);
for (index = 0; index < 5; index++, file++) {
if ((file->stat & 1) != 0 && (file->stat & 2) != 0) {
if (file->dir_entry.p_vol == volume && file->dir_entry.entry_sector == directory_sector) { return 0x13; }
if (volume == file->dir_entry.p_vol && directory_sector == file->dir_entry.entry_sector) { return 0x13; }
found = 0;
error = PFENT_ITER_FindCluster(&file->dir_entry, source_entry.start_cluster, &found);
if (error != 0) { return error; }
@@ -961,12 +961,13 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
destination_entry.num_entry_LFNs = 0;
PFENT_getcurrentDateTimeForEnt(&destination_entry.access_date, &time);
error = PFENT_updateEntry(&destination_entry, 1);
goto finish_rename;
if (error != 0) { return error; }
goto return_allocation_error;
}
if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) {
saved_initial_char = source_entry.long_name[0];
source_entry.long_name[0] = 0;
for (index = 1; index <= source_entry.num_entry_LFNs; index++) {
for (lfn_index = 1; lfn_index <= source_entry.num_entry_LFNs; lfn_index++) {
error = PFENT_ITER_Retreat(&source_iter, 0);
if (error != 0) { return error; }
error = PFSEC_WriteData(volume, deleted_marker, source_iter.sector,
@@ -1004,7 +1005,7 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
if (allocation_error != 0) {
if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) {
source_entry.long_name[0] = saved_initial_char;
source_entry.entry_offset -= (pf_u16)(source_entry.num_entry_LFNs * 32);
source_entry.entry_offset -= ((pf_u32)source_entry.num_entry_LFNs << 5) & (0xffU << 5);
}
update_entry = &source_entry;
} else {
@@ -1013,13 +1014,13 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
PFENT_getcurrentDateTimeForEnt(&destination_entry.access_date, &time);
update_entry = &destination_entry;
}
index = update_entry->num_entry_LFNs;
if (index != 0 && (update_entry->small_letter_flag & 0x18) == 0) {
remaining_lfns = update_entry->num_entry_LFNs;
if (remaining_lfns != 0 && (update_entry->small_letter_flag & 0x18) == 0) {
sector = update_entry->entry_sector;
next_sector = previous_chain;
while (index >= 1) {
PFENT_storeLFNEntryFieldsToBuf(entry_buffer, update_entry, index,
update_entry->check_sum, index == update_entry->num_entry_LFNs);
while (remaining_lfns >= 1) {
PFENT_storeLFNEntryFieldsToBuf(entry_buffer, update_entry, remaining_lfns,
update_entry->check_sum, remaining_lfns == update_entry->num_entry_LFNs);
error = PFSEC_WriteData(volume, entry_buffer, sector, update_entry->entry_offset, 32, &written, 0);
if (error != 0) { return error; }
if (written != 32) { return 0x11; }
@@ -1028,13 +1029,13 @@ pf_s32 PFDIR_p_rename(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
update_entry->entry_offset = 0;
sector = *next_sector++;
}
index--;
remaining_lfns--;
}
update_entry->entry_sector = sector;
}
error = PFENT_updateEntry(update_entry, 1);
finish_rename:
if (error != 0) { allocation_error = error; }
if (error != 0) { return error; }
return_allocation_error:
return allocation_error;
}
pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
@@ -1057,15 +1058,16 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
pf_u32 found;
pf_u16 time;
pf_u8 deleted_marker[1] = {0xE5};
pf_u16 saved_initial_char = 0;
pf_u32 sector;
pf_u32* next_sector;
pf_s32 filename_length;
pf_u32* next_sector;
pf_u32 parent_cluster;
pf_u32 sector;
pf_s32 parse_error;
pf_s32 allocation_error;
pf_s32 error;
pf_u32 index;
pf_u16 saved_initial_char = 0;
pf_u32 lfn_index;
pf_u32 index;
PF_DIR_ENT* update_entry;
error = PFENT_ITER_GetEntryOfPath(&source_iter, &source_entry, volume, (PFDIR_STR*)old_path, 0);
@@ -1083,7 +1085,7 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
if (error != 0) { return error; }
destination_entry.start_cluster = destination_parent.start_cluster;
PFFAT_InitFFD(&destination_iter.ffd, &destination_hint, volume, &destination_entry.start_cluster);
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0, 0);
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &destination_name, 0x7F, 0);
if (error == 0) {
if (destination_entry.entry_sector == source_entry.entry_sector &&
destination_entry.entry_offset == source_entry.entry_offset) { return 0; }
@@ -1094,18 +1096,19 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
if (PFFILE_IsOpened(&source_entry) != 0) { return 0x13; }
} else {
if (directory_is_open(&source_entry) != 0) { return 0x13; }
if (current_directory_is_open(source_entry.p_vol, source_entry.start_cluster) != 0) { return 0x1C; }
if (current_directory_is_open(source_entry.p_vol, &source_entry) != 0) { return 0x1C; }
error = PFPATH_SplitPath((PFDIR_STR*)old_path, &directory, &source_name);
if (error != 0) { return error; }
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)"..", 1, 0, 2) == 0) { return 10; }
if (PFSTR_StrNCmp(&source_name, (const pf_s8*)".", 1, 0, 1) == 0) { return 10; }
{
pf_u32 directory_sector;
PFDIR_SFD* file = ((PFDIR_VOLUME_DIRS*)volume)->sfds;
pf_u32 directory_sector = volume->bpb.first_data_sector +
directory_sector = volume->bpb.first_data_sector +
((source_entry.start_cluster - 2) << volume->bpb.log2_sectors_per_cluster);
for (index = 0; index < 5; index++, file++) {
if ((file->stat & 1) != 0 && (file->stat & 2) != 0) {
if (file->dir_entry.p_vol == volume && file->dir_entry.entry_sector == directory_sector) { return 0x13; }
if (volume == file->dir_entry.p_vol && directory_sector == file->dir_entry.entry_sector) { return 0x13; }
found = 0;
error = PFENT_ITER_FindCluster(&file->dir_entry, source_entry.start_cluster, &found);
if (error != 0) { return error; }
@@ -1115,12 +1118,11 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
}
destination_entry.start_cluster = destination_parent.start_cluster;
for (;;) {
pf_u32 parent_cluster;
if (destination_entry.start_cluster == 1 || destination_entry.start_cluster == 0) { break; }
PFFAT_InitFFD(&destination_iter.ffd, &destination_hint, volume, &destination_entry.start_cluster);
PFSTR_InitStr(&parent_name, (const pf_s8*)"..", 1);
PFSTR_SetLocalStr(&parent_name, 0);
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &parent_name, 0x7F, 0, 0);
error = PFENT_findEntry(&destination_iter.ffd, &destination_entry, 0, &parent_name, 0x7F, 0);
if (error != 0) { return error; }
parent_cluster = destination_entry.start_cluster;
if (parent_cluster == 1 || parent_cluster == 0) { break; }
@@ -1140,9 +1142,10 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
parse_error = PFPATH_parseShortName(destination_entry.short_name, &destination_name);
if (destination_entry.short_name[0] == 0) { return 2; }
if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) {
pf_u32 entry_index;
saved_initial_char = source_entry.long_name[0];
source_entry.long_name[0] = 0;
for (index = 1; index <= source_entry.num_entry_LFNs; index++) {
for (entry_index = 1; entry_index <= source_entry.num_entry_LFNs; entry_index++) {
error = PFENT_ITER_Retreat(&source_iter, 0);
if (error != 0) { return error; }
error = PFSEC_WriteData(volume, deleted_marker, source_iter.sector,
@@ -1180,7 +1183,7 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
if (allocation_error != 0) {
if (source_entry.num_entry_LFNs != 0 && (source_entry.small_letter_flag & 0x18) == 0) {
source_entry.long_name[0] = saved_initial_char;
source_entry.entry_offset -= (source_entry.num_entry_LFNs & 0xff) * 32;
source_entry.entry_offset -= ((pf_u32)source_entry.num_entry_LFNs << 5) & (0xffU << 5);
}
update_entry = &source_entry;
} else {
@@ -1192,7 +1195,7 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
PFFAT_InitFFD(&source_iter.ffd, &source_hint, volume, &source_entry.start_cluster);
PFSTR_InitStr(&parent_name, (const pf_s8*)"..", 1);
PFSTR_SetLocalStr(&parent_name, 0);
error = PFENT_findEntry(&source_iter.ffd, &source_entry, 0, &parent_name, 0x7F, 0, 0);
error = PFENT_findEntry(&source_iter.ffd, &source_entry, 0, &parent_name, 0x7F, 0);
if (error != 0) { return error; }
if (destination_parent.start_cluster == 1 || destination_parent.start_cluster == 0 ||
(destination_parent.start_cluster == 2 && volume->bpb.fat_type == FAT_32)) {
@@ -1230,6 +1233,164 @@ pf_s32 PFDIR_p_move(PF_VOLUME* volume, PF_STR* old_path, PF_STR* new_path) {
return allocation_error;
}
pf_s32 PFDIR_p_fsnext(PF_DTA* data) {
PFDIR_FFD ffd;
PFDIR_FAT_HINT hint;
PF_DIR_ENT entry;
PFDIR_STR pattern;
pf_u32 logical_position = 0;
pf_u32 entry_position = 0;
pf_u32 code_mode;
pf_s32 index = 0;
pf_s32 error;
if ((data->status & 1) == 1) {
code_mode = 1;
error = PFSTR_InitStr(&pattern, data->reg_exp, code_mode);
} else {
code_mode = 2;
error = PFSTR_InitStr(&pattern, (const pf_s8*)((PF_DTAW*)data)->reg_expW, code_mode);
}
if (error != 0) {
return error;
}
PFSTR_SetLocalStr(&pattern, (pf_u32)data->reg_exp);
while (entry_position < 999999) {
if (data->parent_pos >= 999999) { return 10; }
entry.start_cluster = data->parent_start_cluster;
PFFAT_InitFFD(&ffd, &hint, data->p_vol, &entry.start_cluster);
error = PFENT_findEntryPos(&ffd, &entry, data->parent_pos, &pattern, data->attr, 0,
&logical_position, &entry_position);
if (error != 0) { return error; }
data->parent_pos = entry_position + 1;
if (entry_position == 999999) { return 3; }
else { break; }
}
pf_strcpy(data->FileName, entry.short_name);
if ((data->status & 2) == 2) {
PFPATH_transformInUnicode(((PF_DTAW*)data)->FileNameW, data->FileName);
}
if (entry.long_name[0] != 0) {
if ((pf_vol_set.setting & 2) == 2) {
pf_vol_set.setting &= 0xFFFFFFFC;
pf_vol_set.setting |= 1;
PFPATH_transformFromUnicodeToNormal(data->LongName, entry.long_name);
pf_vol_set.setting &= 0xFFFFFFFC;
pf_vol_set.setting |= 2;
} else {
PFPATH_transformFromUnicodeToNormal(data->LongName, entry.long_name);
}
if ((data->status & 2) == 2) {
pf_w_strcpy(((PF_DTAW*)data)->LongNameW, entry.long_name);
}
} else {
data->LongName[0] = 0;
if ((data->status & 2) == 2) {
((PF_DTAW*)data)->LongNameW[0] = 0;
}
}
if (((PFDIR_VOLUME_DIRS*)data->p_vol)->num_opened_files != 0) {
for (index = 0; index < 5; index++) {
if ((((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].stat & 1) != 0 && (((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].stat & 2) != 0 &&
entry.p_vol == ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.p_vol &&
((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.entry_sector == entry.entry_sector &&
((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.entry_offset == entry.entry_offset) {
data->FileSize = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.file_size;
data->Time = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.modify_time;
data->Date = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.modify_date;
data->Attribute = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.attr;
data->num_entry_LFNs = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.num_entry_LFNs;
data->ordinal = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.ordinal;
data->check_sum = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.check_sum;
break;
}
}
}
if (((PFDIR_VOLUME_DIRS*)data->p_vol)->num_opened_files == 0 || index == 5) {
data->FileSize = entry.file_size;
data->Time = entry.modify_time;
data->Date = entry.modify_date;
data->Attribute = entry.attr;
data->num_entry_LFNs = entry.num_entry_LFNs;
data->ordinal = entry.ordinal;
data->check_sum = entry.check_sum;
}
return 0;
}
pf_s32 PFDIR_p_fsfirst(PF_VOLUME* volume, PF_STR* path, pf_u8 attributes, PF_DTA* data) {
PFDIR_STR directory;
PFDIR_STR pattern;
PF_DIR_ENT entry;
PF_ENT_ITER iter;
pf_s32 error;
error = PFPATH_SplitPathPattern(path, &directory, &pattern);
if (error != 0) {
return error;
}
error = PFENT_ITER_GetEntryOfPattern(&iter, &entry, volume, &directory);
if (error != 0) {
return error;
}
if ((entry.attr & 0x10) == 0) {
return 0x14;
}
data->parent_start_cluster = entry.start_cluster;
data->parent_pos = 0;
data->p_vol = entry.p_vol;
data->attr = attributes;
data->status = 0;
if (PFSTR_GetCodeMode(&pattern) == 1) {
PFPATH_SetSearchPattern(data->reg_exp, 0, &pattern);
data->status |= 1;
} else {
PFPATH_SetSearchPattern(data->reg_exp, ((PF_DTAW*)data)->reg_expW, &pattern);
data->status |= 2;
}
return PFDIR_p_fsnext(data);
}
pf_s32 PFDIR_p_fsexec_chmod(PF_DTA* data, PF_DIR_ENT* entry, pf_u32 mode, pf_u32 attributes) {
PFDIR_VOLUME_DIRS* volume_dirs = (PFDIR_VOLUME_DIRS*)entry->p_vol;
pf_u16 date;
pf_u16 time;
pf_u8 create_time_ms;
pf_s32 index = 0;
pf_s32 error;
if ((attributes & 0x40) != 0) {
attributes = (pf_u8)(attributes & ~0x40);
}
if ((entry->attr & 0x10) != 0) {
if ((attributes & 4) != 0) {
return 10;
}
if (directory_is_open(entry) != 0) { return 0x13; }
entry->attr = attributes | 0x10;
} else {
if ((attributes & 0x10) != 0) {
return 10;
}
if (PFFILE_IsOpened(entry) != 0) {
return 0x13;
}
entry->attr = attributes;
}
PFENT_getcurrentDateTimeForEnt(&entry->access_date, &time);
error = PFENT_updateEntry(entry, 0);
if (error != 0) {
return error;
}
if ((mode & 0x80000000) == 0) {
data->Attribute = entry->attr;
}
error = PFCACHE_FlushDataCacheSpecific(entry->p_vol, 0);
if (error != 0) { return error; }
return 0;
}
pf_s32 PFDIR_p_fsexec_remove(PF_DTA* data, PF_DIR_ENT* entry, PF_ENT_ITER* iter) {
PFDIR_VOLUME_DIRS* volume_dirs = (PFDIR_VOLUME_DIRS*)entry->p_vol;
PFDIR_FAT_HINT hint;
@@ -1283,47 +1444,6 @@ pf_s32 PFDIR_p_fsexec_remove(PF_DTA* data, PF_DIR_ENT* entry, PF_ENT_ITER* iter)
return release_directory_chain(&iter->ffd, start_cluster, chain_size);
}
pf_s32 PFDIR_p_fsexec_chmod(PF_DTA* data, PF_DIR_ENT* entry, pf_u32 mode, pf_u32 attributes) {
PFDIR_VOLUME_DIRS* volume_dirs = (PFDIR_VOLUME_DIRS*)entry->p_vol;
pf_u16 date;
pf_u16 time;
pf_u8 create_time_ms;
pf_s32 index = 0;
pf_s32 error;
if ((attributes & 0x40) != 0) {
attributes = (pf_u8)(attributes & ~0x40);
}
if ((entry->attr & 0x10) != 0) {
if ((attributes & 4) != 0) {
return 10;
}
if (directory_is_open(entry) != 0) { return 0x13; }
entry->attr = attributes | 0x10;
} else {
if ((attributes & 0x10) != 0) {
return 10;
}
if (PFFILE_IsOpened(entry) != 0) {
return 0x13;
}
entry->attr = attributes;
}
PFENT_getcurrentDateTimeForEnt(&entry->access_date, &time);
error = PFENT_updateEntry(entry, 0);
if (error != 0) {
return error;
}
if ((mode & 0x80000000) == 0) {
data->Attribute = entry->attr;
}
error = PFCACHE_FlushDataCacheSpecific(entry->p_vol, 0);
if (error != 0) { return error; }
return 0;
}
pf_s32 PFDIR_p_fsexec_fopen(PF_DTA* data, PF_DIR_ENT* entry, PF_ENT_ITER* iter, pf_u32 flags,
pf_u32 mode) {
pf_s8 long_name[13];
@@ -1910,121 +2030,3 @@ void PFDIR_chdmod(PF_STR* path, pf_u8 attributes) {
}
volume_dirs->cache.signature = 0;
}
pf_s32 PFDIR_p_fsnext(PF_DTA* data) {
PFDIR_FFD ffd;
PFDIR_FAT_HINT hint;
PF_DIR_ENT entry;
PFDIR_STR pattern;
pf_u32 logical_position = 0;
pf_u32 entry_position = 0;
pf_u32 code_mode;
pf_s32 index = 0;
pf_s32 error;
if ((data->status & 1) == 1) {
code_mode = 1;
error = PFSTR_InitStr(&pattern, data->reg_exp, code_mode);
} else {
code_mode = 2;
error = PFSTR_InitStr(&pattern, (const pf_s8*)((PF_DTAW*)data)->reg_expW, code_mode);
}
if (error != 0) {
return error;
}
PFSTR_SetLocalStr(&pattern, (pf_u32)data->reg_exp);
while (entry_position < 999999) {
if (data->parent_pos >= 999999) { return 10; }
entry.start_cluster = data->parent_start_cluster;
PFFAT_InitFFD(&ffd, &hint, data->p_vol, &entry.start_cluster);
error = PFENT_findEntryPos(&ffd, &entry, data->parent_pos, &pattern, data->attr, 0,
&logical_position, &entry_position);
if (error != 0) { return error; }
data->parent_pos = entry_position + 1;
if (entry_position == 999999) { return 3; }
else { break; }
}
pf_strcpy(data->FileName, entry.short_name);
if ((data->status & 2) == 2) {
PFPATH_transformInUnicode(((PF_DTAW*)data)->FileNameW, data->FileName);
}
if (entry.long_name[0] != 0) {
if ((pf_vol_set.setting & 2) == 2) {
pf_vol_set.setting &= 0xFFFFFFFC;
pf_vol_set.setting |= 1;
PFPATH_transformFromUnicodeToNormal(data->LongName, entry.long_name);
pf_vol_set.setting &= 0xFFFFFFFC;
pf_vol_set.setting |= 2;
} else {
PFPATH_transformFromUnicodeToNormal(data->LongName, entry.long_name);
}
if ((data->status & 2) == 2) {
pf_w_strcpy(((PF_DTAW*)data)->LongNameW, entry.long_name);
}
} else {
data->LongName[0] = 0;
if ((data->status & 2) == 2) {
((PF_DTAW*)data)->LongNameW[0] = 0;
}
}
if (((PFDIR_VOLUME_DIRS*)data->p_vol)->num_opened_files != 0) {
for (index = 0; index < 5; index++) {
if ((((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].stat & 1) != 0 && (((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].stat & 2) != 0 &&
entry.p_vol == ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.p_vol &&
((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.entry_sector == entry.entry_sector &&
((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.entry_offset == entry.entry_offset) {
data->FileSize = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.file_size;
data->Time = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.modify_time;
data->Date = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.modify_date;
data->Attribute = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.attr;
data->num_entry_LFNs = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.num_entry_LFNs;
data->ordinal = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.ordinal;
data->check_sum = ((PFDIR_VOLUME_DIRS*)data->p_vol)->sfds[index].dir_entry.check_sum;
break;
}
}
}
if (((PFDIR_VOLUME_DIRS*)data->p_vol)->num_opened_files == 0 || index == 5) {
data->FileSize = entry.file_size;
data->Time = entry.modify_time;
data->Date = entry.modify_date;
data->Attribute = entry.attr;
data->num_entry_LFNs = entry.num_entry_LFNs;
data->ordinal = entry.ordinal;
data->check_sum = entry.check_sum;
}
return 0;
}
pf_s32 PFDIR_p_fsfirst(PF_VOLUME* volume, PF_STR* path, pf_u8 attributes, PF_DTA* data) {
PFDIR_STR directory;
PFDIR_STR pattern;
PF_DIR_ENT entry;
PF_ENT_ITER iter;
pf_s32 error;
error = PFPATH_SplitPathPattern(path, &directory, &pattern);
if (error != 0) {
return error;
}
error = PFENT_ITER_GetEntryOfPattern(&iter, &entry, volume, &directory);
if (error != 0) {
return error;
}
if ((entry.attr & 0x10) == 0) {
return 0x14;
}
data->parent_start_cluster = entry.start_cluster;
data->parent_pos = 0;
data->p_vol = entry.p_vol;
data->attr = attributes;
data->status = 0;
if (PFSTR_GetCodeMode(&pattern) == 1) {
PFPATH_SetSearchPattern(data->reg_exp, 0, &pattern);
data->status |= 1;
} else {
PFPATH_SetSearchPattern(data->reg_exp, ((PF_DTAW*)data)->reg_expW, &pattern);
data->status |= 2;
}
return PFDIR_p_fsnext(data);
}

View File

@@ -1105,7 +1105,13 @@ s32 PFVOL_attach(PFVOL_DRIVER* driver, s32 notify_command, void* callback_data)
pf_vol_set.num_attached_drives++;
if (PFDRV_IsInserted(volume) != 0) {
driver->stat |= 0x10;
attach_mount(volume, driver);
error = clear_mount(volume);
if (error != 0) {
pf_vol_set.last_error = error;
volume->last_error = error;
return 0;
}
driver->stat |= 2;
}
return 0;
}
@@ -1469,17 +1475,21 @@ s32 PFVOL_setcode(PFVOL_CHARCODE* code_set) {
return copy_codeset(code_set);
}
static inline u32 ContextStatus(const PFVOL_CONTEXT* context) {
return context->stat & 1;
}
s32 PFVOL_regctx(void) {
s32 context_id;
s32 free_context_index;
u32 context_index;
s32 free_context_index;
s32 context_id;
s32 error;
error = PFSYS_GetCurrentContextID(&context_id);
if (error != 0) { pf_vol_set.last_error = 26; return 26; }
free_context_index = 0;
for (context_index = 1; context_index < 4; context_index++) {
u32 stat;
stat = pf_vol_set.context[context_index - 1].stat & 1;
stat = ContextStatus(&pf_vol_set.context[context_index - 1]);
if (stat != 0 && pf_vol_set.context[context_index - 1].context_id == context_id) { break; }
if (stat == 0 && free_context_index == 0) { free_context_index = context_index; }
}

View File

@@ -562,11 +562,13 @@ static inline u32 kbdChannelFlags(u32 channel) {
}
static void kbd_led_handler(BOOL success, void* callbackArg) {
const KBDLEDCallbackData* callback;
u32 index;
u32 err;
index = (u32)callbackArg;
callback = &kbdLCBuf[index];
kbdCmdBuf[index].device = 0;
if (kbdLCBuf[index].callbackAddress == (USBKBDCmdLEDCallback)(u32)kbdCmdBuf[index].device) {
if (callback->callbackAddress == (USBKBDCmdLEDCallback)(u32)kbdCmdBuf[index].device) {
return;
}
switch (success) {

View File

@@ -202,33 +202,40 @@ static inline NWC24Err WriteMBNoReplyField(NWC24MsgObjPrivate* msg) {
return err;
}
static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg, u32 flags) {
typedef struct {
u32 flags;
char* buffer;
} MBFieldWork;
static inline NWC24Err WriteMBRegDateField(NWC24MsgObjPrivate* msg) {
MBFieldWork field;
NWC24Err err;
s32 length;
char* buffer;
if (!flags)
field.flags = msg->msgBoardFlags.raw & 0xFFFF;
if (!field.flags)
return NWC24_OK;
buffer = NWC24WorkP->stringWork;
Mail_memset(buffer, 0, 1024);
Mail_sprintf(buffer, "X-Wii-MB-RegDate: %04X\r\n", flags);
length = STD_strnlen(buffer, 1024);
err = NWC24FWrite(buffer, length, m_pFile);
field.buffer = NWC24WorkP->stringWork;
Mail_memset(field.buffer, 0, 1024);
Mail_sprintf(field.buffer, "X-Wii-MB-RegDate: %04X\r\n", field.flags);
length = STD_strnlen(field.buffer, 1024);
err = NWC24FWrite(field.buffer, length, m_pFile);
if (err == NWC24_OK)
msg->length += length;
return err;
}
static inline NWC24Err WriteMBDelayField(NWC24MsgObjPrivate* msg, u32 flags) {
static inline NWC24Err WriteMBDelayField(NWC24MsgObjPrivate* msg) {
MBFieldWork field;
NWC24Err err;
s32 length;
char* buffer;
if (!flags)
field.flags = msg->msgBoardFlags.raw & 0xFF0000;
if (!field.flags)
return NWC24_OK;
buffer = NWC24WorkP->stringWork;
Mail_memset(buffer, 0, 1024);
Mail_sprintf(buffer, "X-Wii-MB-Delay: %02X\r\n", flags >> 16);
length = STD_strnlen(buffer, 1024);
err = NWC24FWrite(buffer, length, m_pFile);
field.buffer = NWC24WorkP->stringWork;
Mail_memset(field.buffer, 0, 1024);
Mail_sprintf(field.buffer, "X-Wii-MB-Delay: %02X\r\n", field.flags >> 16);
length = STD_strnlen(field.buffer, 1024);
err = NWC24FWrite(field.buffer, length, m_pFile);
if (err == NWC24_OK)
msg->length += length;
return err;
@@ -306,8 +313,8 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty
CHECK_WRITE(WriteIconNewField(msg));
if (msg->msgBoardFlags.raw != 0) {
CHECK_WRITE(WriteMBNoReplyField(msg));
{ u16 dateFlags = msg->msgBoardFlags.raw; CHECK_WRITE(WriteMBRegDateField(msg, dateFlags)); }
CHECK_WRITE(WriteMBDelayField(msg, msg->msgBoardFlags.raw & 0xFF0000));
CHECK_WRITE(WriteMBRegDateField(msg));
CHECK_WRITE(WriteMBDelayField(msg));
}
}
CHECK_WRITE(WriteExtraFields(msg));

View File

@@ -220,12 +220,13 @@ void LayoutByNW4R::create(MEMAllocator* allocator) {
mpPaneManager->setAllComponentTriggerTarget(false);
mpPaneManager->setAllBoundingBoxComponentTriggerTarget(true);
const PaneAnimation* paneTable = csPaneToAnimationInSign;
const char* forceName;
u32 animationCount;
u32 paneIndex = 0;
do {
AnmPane* pane = NULL;
const PaneAnimation& paneInfo = csPaneToAnimationInSign[paneIndex & 0xFFFF];
const PaneAnimation& paneInfo = paneTable[paneIndex & 0xFFFF];
switch (paneInfo.type) {
case 2: {
void* paneBuffer = MEMAllocFromAllocator(allocator, sizeof(CellPhoneSignButtonPane));

View File

@@ -1607,8 +1607,12 @@ namespace ipl {
void Address::set_err_msg(wchar_t* errMsg, u32 errMsgLen, NWC24Err err) {
memset(errMsg, 0, errMsgLen * sizeof(wchar_t));
wcsncat(errMsg, System::getMessage(MESG_ERROR_CODE), errMsgLen - wcslen(errMsg));
u32 msgId = MESG_ERROR_CODE;
union MessageValue {
const wchar_t* text;
u32 id;
} message;
message.text = System::getMessage(MESG_ERROR_CODE);
wcsncat(errMsg, message.text, errMsgLen - wcslen(errMsg));
wchar_t errCode[32];
memset(errCode, 0, sizeof(errCode));
@@ -1617,17 +1621,22 @@ namespace ipl {
switch (err) {
case NWC24_ERR_NETWORK: {
msgId = MESG_ERROR_NWC24_NETWORK;
message.id = MESG_ERROR_NWC24_NETWORK;
break;
}
case NWC24_ERR_SERVER:
case NWC24_ERR_FULL: {
msgId = MESG_ERROR_NWC24_SERVER;
message.id = MESG_ERROR_NWC24_SERVER;
break;
}
default: {
message.id = reinterpret_cast<u32>(message.text);
break;
}
}
wcsncat(errMsg, System::getMessage(msgId), errMsgLen - wcslen(errMsg));
message.text = System::getMessage(message.id);
wcsncat(errMsg, message.text, errMsgLen - wcslen(errMsg));
}
void Address::entry_friend() {

View File

@@ -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<Vec*>(&position), reinterpret_cast<Vec*>(&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<Vec*>(&position), reinterpret_cast<Vec*>(&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;
}

View File

@@ -1,3 +1,4 @@
#define IPL_FOCUS_OBJECT_CPP
#include "scene/board/iplFocusObject.h"
#include "scene/parentalDialog/iplParentalDialog.h"
@@ -11,6 +12,28 @@
#include <revolution/cx.h>
#include <revolution/enc.h>
extern char scPaneName_B_Stop[];
namespace ipl {
namespace math {
static inline VEC3 addWeightedVectors(const VEC3& start, const VEC3& end) {
VEC3 sum;
nw4r::math::VEC3Add(&sum, &start, &end);
return sum;
}
static inline void normalizeVector(nw4r::math::VEC3* result, const VEC3& sum, f32 frames) {
nw4r::math::VEC3Scale(result, &sum, 1.0f / frames);
}
template <>
VEC3 LinearIntp<VEC3>::get() const {
nw4r::math::VEC3 result;
VEC3 sum = addWeightedVectors(mStart * (mMaxFrame - mFrame), mEnd * getCurrentFrame());
normalizeVector(&result, sum, getMaxFrame());
return result;
}
}
}
namespace ipl {
namespace scene {
// clang-format off
@@ -337,6 +360,13 @@ namespace ipl {
}
}
}
namespace math {
inline VEC3 VEC3::operator*(f32 val) const {
return VEC3(x * val, y * val, z * val);
}
}
namespace scene {
void focus_object::stt_normal() {
Button* button = get_button();
@@ -2091,7 +2121,7 @@ namespace ipl {
if (event == ::gui::EventHandler::ON_TRIG) {
if (con->downTrg(controller::BTN_INTERACT)) {
if (strcmp(paneName, "B_Stop") == 0) {
if (strcmp(paneName, scPaneName_B_Stop) == 0) {
if (mpInstance->mState == focus_object::STATE_NORMAL) {
focus_object::get_button()->animation(Button::IDANIM_OPTOUT_SELECT);
@@ -2112,3 +2142,24 @@ namespace ipl {
}
} // namespace scene
} // namespace ipl
char scPaneName_B_Stop[] = "B_Stop";
BOOL ipl::scene::scroller::calc(bool canScroll) {
BOOL result = FALSE;
if (canScroll) {
if (mBScroller.calc()) {
result = TRUE;
}
}
mScroller.calc();
f32 movable = mScroller.movable_pos(mBScroller.getSpeed());
mScroller.addScroll(movable);
mBScroller.addSoundFreq(movable);
return result;
}

View File

@@ -328,7 +328,7 @@ namespace ipl {
return isSceneCreated();
}
void SDButton::setEventHandler(::gui::EventHandler* event, ::gui::EventHandler* optOutEvent) {
void SDButton::setEventHandler(::gui::EventHandler* event) {
mpGui->setEventHandler(event);
}

View File

@@ -282,7 +282,7 @@ FaderSceneCommand SDChannelTitle::calcFadein() {
if (!mpFade->isPlaying()) {
iplSDChannelTitle_playBannerIntro(this);
SDButton* button = static_cast<SDButton*>(System::getScene(0x24));
button->setEventHandler(mpButtonEventHandler, NULL);
button->setEventHandler(mpButtonEventHandler);
button->animation(13);
button->animation(14);
mState = 1;
@@ -344,7 +344,7 @@ void SDChannelTitle::initCalcFadeout() {
button->animation(15);
button->animation(16);
}
button->setEventHandler(NULL, NULL);
button->setEventHandler(NULL);
}
FaderSceneCommand SDChannelTitle::calcFadeout() {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVL_SDK/src/fa/api/FAAttach] pool: IDENTICAL
[libs/RVL_SDK/src/fa/api/FAAttach] objdiff: code None/500 data 240/240 functions 0/1 fuzzy 99.3600 linked code 0
[libs/RVL_SDK/src/fa/api/FAAttach] instruction-exact functions: 0/1
[libs/RVL_SDK/src/fa/api/FAAttach] section .bss size 208 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .data size 24 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .sdata size 8 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .text size 500 match 99.36
[libs/RVL_SDK/src/fa/api/FAAttach] below 100: FAAttach 99.36
[libs/RVL_SDK/src/fa/api/FAAttach] baseline: code None/500 data 240 functions 0 fuzzy 99.3600
[src/bannerSound/AxAdpcmPlayer] pool: IDENTICAL
[src/bannerSound/AxAdpcmPlayer] objdiff: code 3088/3088 data 6476/6476 functions 13/13 fuzzy 100.0000 linked code 3088
[src/bannerSound/AxAdpcmPlayer] instruction-exact functions: 12/13
[src/bannerSound/AxAdpcmPlayer] section .bss size 6400 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .ctors size 4 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .data size 32 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .sbss size 16 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .sdata size 8 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .sdata2 size 16 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .text size 3088 match 100.0
[src/bannerSound/AxAdpcmPlayer] baseline: code 3088/3088 data 6476 functions 13 fuzzy 100.0000
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 96/180 functions 1/7 fuzzy 98.6539 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .data size 40 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 98.65385
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.3586
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 97.96712
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data 96 functions 1 fuzzy 98.6539
[src/scene/board/iplFocusObject] pool: IDENTICAL
[src/scene/board/iplFocusObject] objdiff: code 20332/20332 data 2576/2576 functions 89/89 fuzzy 100.0000 linked code 0
[src/scene/board/iplFocusObject] instruction-exact functions: 89/89
[src/scene/board/iplFocusObject] section .data size 2168 match 100.0
[src/scene/board/iplFocusObject] section .rodata size 176 match 100.0
[src/scene/board/iplFocusObject] section .sdata size 176 match 100.0
[src/scene/board/iplFocusObject] section .sdata2 size 56 match 100.0
[src/scene/board/iplFocusObject] section .text size 20332 match 100.0
[src/scene/board/iplFocusObject] baseline: code 19772/20332 data 2576 functions 88 fuzzy 99.6471
[src/system/iplKeyboard] pool: IDENTICAL
[src/system/iplKeyboard] objdiff: code 4752/6024 data 1184/1184 functions 31/32 fuzzy 98.7351 linked code 0
[src/system/iplKeyboard] instruction-exact functions: 31/32
[src/system/iplKeyboard] section .data size 1168 match 100.0
[src/system/iplKeyboard] section .sdata size 8 match 100.0
[src/system/iplKeyboard] section .sdata2 size 8 match 100.0
[src/system/iplKeyboard] section .text size 6024 match 98.73506
[src/system/iplKeyboard] below 100: create__Q33ipl8keyboard7ManagerFPQ33ipl4nand4FilePQ23EGG4Heap 94.00944
[src/system/iplKeyboard] baseline: code 4752/6024 data 1184 functions 31 fuzzy 98.7351
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 18976/18976 data 40/40 functions 38/38 fuzzy 100.0000 linked code 0
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 38/38
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 100.0
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11704/18976 data 40 functions 35 fuzzy 99.5432
regressions vs baseline: 0
global matched_code_percent: 88.93407 -> 89.19556
global fuzzy_match_percent: 99.50078 -> 99.50607
global complete_code_percent: 65.19670 -> 65.19670
global matched_data_percent: 99.07044 -> 99.07044
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS

View File

@@ -0,0 +1,126 @@
# Fuzzy lane continuation
Baseline: `711ee737f98c1febb2e3d9580bec9be423fd3b19`. Four new exact functions; AxAdpcmPlayer was already matched and linked after origin/main #774.
| Unit | Instruction-exact before → after | Objdiff functions before → after | Code bytes before → after / total | Data bytes before → after / total |
| --- | --- | --- | --- | --- |
| `libs/RVL_SDK/src/fa/api/FAAttach` | 0/1 → 0/1 | 0/1 → 0/1 | 0 → 0 / 500 | 240 → 240 / 240 |
| `src/bannerSound/AxAdpcmPlayer` | 12/13 → 12/13 | 13/13 → 13/13 | 3088 → 3088 / 3088 | 6476 → 6476 / 6476 |
| `libs/RVLMiddleware/eZiText/src/clib/zkokeyp` | 1/7 → 1/7 | 1/7 → 1/7 | 332 → 332 / 5200 | 96 → 96 / 180 |
| `src/scene/board/iplFocusObject` | 88/89 → 89/89 | 88/89 → 89/89 | 19772 → 20332 / 20332 | 2576 → 2576 / 2576 |
| `src/system/iplKeyboard` | 31/32 → 31/32 | 31/32 → 31/32 | 4752 → 4752 / 6024 | 1184 → 1184 / 1184 |
| `libs/RVL_SDK/src/fa/pf_dir` | 35/38 → 38/38 | 35/38 → 38/38 | 11704 → 18976 / 18976 | 40 → 40 / 40 |
Instruction-exact counts above reproduce the gate. Ax reports 12/13 there despite objdiff 13/13; the existing CR1 branch-disassembly normalization issue is independently proven: `checkFile__19AxAdpcmSimplePlayerFPvUl` has all 372 encoded function bytes identical, while odiff displays two different CR1 branch targets. It contributes no new gain.
## Remaining functions
- `FAAttach` 99.36% — 125/125 instructions; ten index/scaled-index/table-base register differences. 3 distinct compiled source forms; attempts lines 3166–3168.
- `Zi8_8148302C` 99.49152% — 59/59 instructions; six work-pointer/value register differences. 4 distinct compiled source forms; attempts lines 3173–3176.
- `Zi8_81483264` 98.902435% — 41/41 instructions; eight metadata/index register differences. 9 distinct compiled source forms; attempts lines 3180–3190.
- `Zi8_81483308` 99.13793% — 58/58 instructions; nine count-pointer/index register differences. 7 distinct compiled source forms; attempts lines 3194–3200.
- `Zi8_814833F0` 99.04256% — 47/47 instructions; eight key/index register differences. 5 distinct compiled source forms; attempts lines 3205–3209.
- `Zi8_814834AC` 99.3586% — 344/343 instructions; extra narrowing in initialized-byte chain, operand scheduling and register differences. 21 distinct compiled source forms; attempts lines 3213–3235.
- `Zi8GetKOcandidates` 97.96712% — 673/669 instructions; extra zero load, helper-return narrowing, final postincrement copy, addressing/condition scheduling. 14 distinct compiled source forms; attempts lines 3241–3257.
- `create__Q33ipl8keyboard7ManagerFPQ33ipl4nand4FilePQ23EGG4Heap` 94.00944% — 318/318 instructions; allocation-result moves across null constructors, dictionary index scheduling and MemoSetting stack-temporary order. 24 distinct compiled source forms; attempts lines 3293–3318.
## Matched functions and source review
`focus_object::cmn_calc`: added a real VEC3 sum and result temporary, with reciprocal evaluation inside normalization; frame 0x60 → 0x70, 140/140 instructions, zero differences.
`PFDIR_p_move`: corrected the six-argument entry-search prototype, used the matching table entry as the current-directory base, moved the actual cluster read inside that helper, separated LFN traversal lifetimes; 631/631 instructions, zero differences.
`PFDIR_p_rename`: shared the typed filename cursor and separated the file, retreat and remaining-LFN counters; corrected error-return branches and count mask; 625/625 instructions, zero differences.
`PFDIR_p_mkdir`: ordinary 11-byte short-name loop and full real scalar declaration order, preserving addressable local order; 562/562 instructions, zero differences.
## Data proof
FAAttach 240/240, Ax 6476/6476, focus 2576/2576, keyboard 1184/1184, PF 40/40 already have all data matched. No config/symbol rename or extent edit was justified.
zkokeyp .data 40-byte ten-entry switch table is byte-identical and each relocation names the exact Zi8_81483118 at the same offset/addend. extab 56 bytes match. extabindex 84 bytes differ only at length words offset64 (1376 versus1372 for Zi8_814834AC) and offset76 (2692 versus2676 for Zi8GetKOcandidates). Exception relocations resolve to identical extab offsets0,8,16,24,32,40,48; anonymous compiler symbol names differ as expected. The candidate function begins four bytes later in our .text because the previous function has an extra instruction. The remaining data differences follow these two code lengths.
## Files and local commits
- `libs/RVL_SDK/src/fa/pf_dir.c`
- `src/scene/board/iplFocusObject.cpp`
- `tools/decomp-assist/fz1.attempts.md`
- `tools/decomp-assist/fz1.next.final-gate.txt`
- `tools/decomp-assist/fz1.next.report.md`
- d4976af8 match focus vector interpolation
- 0035e899 match directory move and correct entry prototype
- d5de7189 match directory rename traversal
- 9170cd3e match directory creation locals
The final evidence commit is identified in the final reply. Matching phase only; the gate retains the existing linked status.
## Final clean gate, verbatim
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVL_SDK/src/fa/api/FAAttach] pool: IDENTICAL
[libs/RVL_SDK/src/fa/api/FAAttach] objdiff: code None/500 data 240/240 functions 0/1 fuzzy 99.3600 linked code 0
[libs/RVL_SDK/src/fa/api/FAAttach] instruction-exact functions: 0/1
[libs/RVL_SDK/src/fa/api/FAAttach] section .bss size 208 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .data size 24 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .sdata size 8 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .text size 500 match 99.36
[libs/RVL_SDK/src/fa/api/FAAttach] below 100: FAAttach 99.36
[libs/RVL_SDK/src/fa/api/FAAttach] baseline: code None/500 data 240 functions 0 fuzzy 99.3600
[src/bannerSound/AxAdpcmPlayer] pool: IDENTICAL
[src/bannerSound/AxAdpcmPlayer] objdiff: code 3088/3088 data 6476/6476 functions 13/13 fuzzy 100.0000 linked code 3088
[src/bannerSound/AxAdpcmPlayer] instruction-exact functions: 12/13
[src/bannerSound/AxAdpcmPlayer] section .bss size 6400 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .ctors size 4 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .data size 32 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .sbss size 16 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .sdata size 8 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .sdata2 size 16 match 100.0
[src/bannerSound/AxAdpcmPlayer] section .text size 3088 match 100.0
[src/bannerSound/AxAdpcmPlayer] baseline: code 3088/3088 data 6476 functions 13 fuzzy 100.0000
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 96/180 functions 1/7 fuzzy 98.6539 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .data size 40 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 98.65385
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.3586
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 97.96712
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data 96 functions 1 fuzzy 98.6539
[src/scene/board/iplFocusObject] pool: IDENTICAL
[src/scene/board/iplFocusObject] objdiff: code 20332/20332 data 2576/2576 functions 89/89 fuzzy 100.0000 linked code 0
[src/scene/board/iplFocusObject] instruction-exact functions: 89/89
[src/scene/board/iplFocusObject] section .data size 2168 match 100.0
[src/scene/board/iplFocusObject] section .rodata size 176 match 100.0
[src/scene/board/iplFocusObject] section .sdata size 176 match 100.0
[src/scene/board/iplFocusObject] section .sdata2 size 56 match 100.0
[src/scene/board/iplFocusObject] section .text size 20332 match 100.0
[src/scene/board/iplFocusObject] baseline: code 19772/20332 data 2576 functions 88 fuzzy 99.6471
[src/system/iplKeyboard] pool: IDENTICAL
[src/system/iplKeyboard] objdiff: code 4752/6024 data 1184/1184 functions 31/32 fuzzy 98.7351 linked code 0
[src/system/iplKeyboard] instruction-exact functions: 31/32
[src/system/iplKeyboard] section .data size 1168 match 100.0
[src/system/iplKeyboard] section .sdata size 8 match 100.0
[src/system/iplKeyboard] section .sdata2 size 8 match 100.0
[src/system/iplKeyboard] section .text size 6024 match 98.73506
[src/system/iplKeyboard] below 100: create__Q33ipl8keyboard7ManagerFPQ33ipl4nand4FilePQ23EGG4Heap 94.00944
[src/system/iplKeyboard] baseline: code 4752/6024 data 1184 functions 31 fuzzy 98.7351
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 18976/18976 data 40/40 functions 38/38 fuzzy 100.0000 linked code 0
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 38/38
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 100.0
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11704/18976 data 40 functions 35 fuzzy 99.5432
regressions vs baseline: 0
global matched_code_percent: 88.93407 -> 89.19556
global fuzzy_match_percent: 99.50078 -> 99.50607
global complete_code_percent: 65.19670 -> 65.19670
global matched_data_percent: 99.07044 -> 99.07044
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -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<const ESTitleId*>(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.

View File

@@ -1344,3 +1344,221 @@ OPEN TMCJPEGDEC_IdctBlock4x4_Col 83.89781% | 3 distinct compiledR6trials | 137/1
Finalclean ctxdiff:PFVOL_p_rmvvol64/64diffs0;PFENT_ITER_GetLFNEntryName73/73diffs0;uhf_msc_blk_pread129/129diffs0. No code/data/regression failures. No untried remaining function.
R6 files: config/43U/symbols.txt;libs/RVL_SDK/src/fa/pf_volume.c;libs/RVL_SDK/src/fa/pf_entry_iterator.c;libs/RVL_SDK/src/fa/msc/puh_msc_blk.c;tools/decomp-assist/fz3.attempts.md. Commits:2f84a3fe exactvolume+markerextent;5ce59884 iteratorstructuralimprovement;78c76f31 exactMSC;673020e0 exactiterator. HIGH650cc87e/98cb7171 predateR6 retained.
Uncertainty: original mode3 Hangul converter source/inline boundary is unavailable; dynamiccounter and dead newline comparison are proven targetinstructions, generic helper/class attempts constant-fold. Marker1-byteextent proof recorded above; no otherdataownership changes.
# Round7 XHIGH, fresh branch HEAD72cf3991. Each trial logs first differing instruction and source construct, with original always restored until accepted by gate.
libs/RevoEX/src/so/SOOption | R7 pool run before tuning; current source alreadyorigin/main; data ownership audit starts with target extents and relocation names.
libs/RVL_SDK/src/fa/pf_volume | R7 pool run before tuning; current source alreadyorigin/main; data ownership audit starts with target extents and relocation names.
libs/RVL_SDK/src/fa/pf_entry_iterator | R7 pool run before tuning; current source alreadyorigin/main; data ownership audit starts with target extents and relocation names.
src/keyboard/tiString | R7 pool run before tuning; current source alreadyorigin/main; data ownership audit starts with target extents and relocation names.
src/keyboard/tiSignWindow | R7 pool run before tuning; current source alreadyorigin/main; data ownership audit starts with target extents and relocation names.
libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var | R7 pool run before tuning; current source alreadyorigin/main; data ownership audit starts with target extents and relocation names.
libs/RevoEX/src/so/SOOption | R7 data 0/0; no unpaired owned data indicated.
SOGetInterfaceOpt | R7 extent 0x814b476c+0x1dc=0x814b4948; next SOSetInterfaceOpt 0x814b4948; overlap False
SOGetInterfaceOpt | R7 immediate stack store/reload evidence []; no unsupported volatile changes authorized.
libs/RVL_SDK/src/fa/pf_volume | R7 data 210976/210976; no unpaired owned data indicated.
PFVOL_attach | R7 extent 0x815e2364+0x2c0=0x815e2624; next PFVOL_detach 0x815e2624; overlap False
PFVOL_attach | R7 immediate stack store/reload evidence []; no unsupported volatile changes authorized.
PFVOL_regctx | R7 extent 0x815e4220+0x12c=0x815e434c; next PFVOL_unregctx 0x815e434c; overlap False
PFVOL_regctx | R7 immediate stack store/reload evidence []; no unsupported volatile changes authorized.
libs/RVL_SDK/src/fa/pf_entry_iterator | R7 data 24/24; no unpaired owned data indicated.
PFENT_ITER_FindCluster | R7 extent 0x815d3414+0x3b4=0x815d37c8; next PFENT_ITER_Retreat 0x815d37c8; overlap False
PFENT_ITER_FindCluster | R7 immediate stack store/reload evidence [(144, ('stw', 'r0, 0x20(r1)'), ('lwz', 'r0, 0x20(r1)'))]; no unsupported volatile changes authorized.
src/keyboard/tiString | R7 data 288/288; no unpaired owned data indicated.
inputChar__Q39textinput8tistring9DecolatedFw | R7 extent 0x81432ce4+0x220=0x81432f04; next confirmKana__Q39textinput8tistring9DecolatedFv 0x81432f04; overlap False
inputChar__Q39textinput8tistring9DecolatedFw | R7 immediate stack store/reload evidence []; no unsupported volatile changes authorized.
src/keyboard/tiSignWindow | R7 data 3468/3468; no unpaired owned data indicated.
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 extent 0x81430e50+0x374=0x814311c4; next __dt__Q49textinput8keyboard10signwindow7AnmPaneFv 0x814311c4; overlap False
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 immediate stack store/reload evidence []; no unsupported volatile changes authorized.
libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var | R7 data 0/0; no unpaired owned data indicated.
TMCJPEGDEC_IdctBlock4x4 | R7 extent 0x814ef490+0x220=0x814ef6b0; next TMCJPEGDEC_IdctBlock2x2 0x814ef6b0; overlap False
TMCJPEGDEC_IdctBlock4x4 | R7 immediate stack store/reload evidence []; no unsupported volatile changes authorized.
TMCJPEGDEC_IdctBlock4x4_Col | R7 extent 0x814ef810+0x224=0x814efa34; next TMCJPEGDEC_IdctBlock2x2_Col 0x814efa34; overlap False
TMCJPEGDEC_IdctBlock4x4_Col | R7 immediate stack store/reload evidence []; no unsupported volatile changes authorized.
SOGetInterfaceOpt | R7 fresh fetch origin source identical; first5 level parameter r25 vstarget26 and optionr28 vstarget25;119instructions/frame0x30/branchforms andstoresotherwiseidentical. No overlappingextent or adjacentstackstore/reload. Const input helper and response views before declaration search.
SOGetInterfaceOpt | R7 const length input in OptionLength inline boundary | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R7 read-only view of typed selection object | objdiff 89.31933; 122/119 instructions; structural/exact (21, 116); first (0, ('stwu', 'r1, -0x40(r1)'), ('stwu', 'r1, -0x30(r1)'))
SOGetInterfaceOpt | R7 const selectors and returned response read view | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
PFVOL_attach | R7 fresh fetch origin unchanged; true first142 beq distance differs because target143 mr0,r3 gives mountstatus distinct from public return0r3.174/176 frame0x20. Successful source li3,0 afterClearMount vs targetli0,0. Inline helper/public early return boundary first, novolatileproof or extentoverlap.
PFVOL_attach | R7 public zero-return on mount error instead of discarded helper result | objdiff 100.0; 176/176 instructions; structural/exact (0, 0); first None
EXACT CANDIDATE /tmp/fz3-r7-candidates/PFVOL_attach_public_zero_return_on_mount_error_instead_of_discarded_helper_result.txt
PFVOL_attach | R7 exact candidate preserves s32 mount error separately from public zero return; no artificial data or volatile; attach inline helper not called bythispath.176/176differences0.
PFVOL_attach | R7 quick GATE PASS,0regressions forbidden readability,36/37vs35/37 exact code17692/17992vs16988 data210976/210976, ctxdiff176/176diffs0. DOL26116613f624061ba99c8d1a299aaa6efa85670d.
PFVOL_regctx | R7 fresh origin unchanged; first16 free slotr5 vsr8, statusr8 vsr5,75/75/frame0x10, nobranchformdifferences/noadjacentstackreloadproof. Const context table view and inline slot boundary next.
PFVOL_regctx | R7 const context array view for registration scan | objdiff 99.0; 75/75 instructions; structural/exact (0, 15); first (16, ('li', 'r5, 0'), ('li', 'r8, 0'))
PFVOL_regctx | R7 const single context input helper for active status | objdiff 99.066666; 75/75 instructions; structural/exact (0, 14); first (16, ('li', 'r7, 0'), ('li', 'r8, 0'))
PFVOL_regctx | R7 const context helper plus declaration order index free id error | objdiff 100.0; 75/75 instructions; structural/exact (0, 0); first None
EXACT CANDIDATE /tmp/fz3-r7-candidates/PFVOL_regctx_const_context_helper_plus_declaration_order_index_free_id_error.txt
PFVOL_regctx | R7 exact from real const input helper boundary ContextStatus, then declaration order context_index/free_context_index/context_id/error. Targetfree_slotr8 statusr5;75/75diffs0. const pointer selected load/temporary allocation; no volatile.
PFVOL_regctx | R7 quick GATE PASS volume37/37vs35/37, allcode17992/17992 alldata210976/210976,0regressions forbidden readability; targetDOLhash. ctxdiff75/75diffs0.
PFENT_ITER_FindCluster | R7 first39 sharedconstantone r7 vstarget8, shifted entriesr8 vstarget7,237/237/frame0xA0. Definitionvolatile evidence is iter.index, not current_cluster: iterator beginsstack0x20; target144 stw r0,0x20(r1) immediately145 lwz r0,0x20(r1), thencmp. Test private struct fieldqualifier with laterunitregressionaudit.
PFENT_ITER_FindCluster | R7 volatile iterator index field proven by immediate stack reload | objdiff 96.8903; 240/237 instructions; structural/exact (16, 202); first (18, ('b', '856'), ('b', '844'))
PFENT_ITER_FindCluster | R7 const iterator input helper returns sector entry count | objdiff 99.81013; 237/237 instructions; structural/exact (0, 8); first (39, ('li', 'r7, 1'), ('li', 'r8, 1'))
PFENT_ITER_FindCluster | R7 const directory entry input parameter | objdiff 85.27426; 227/237 instructions; structural/exact (47, 233); first (2, ('li', 'r9, 0'), ('li', 'r6, 0'))
PFENT_ITER_FindCluster | R7 const entry view only for initial iterator setup | objdiff 99.81013; 237/237 instructions; structural/exact (0, 8); first (39, ('li', 'r7, 1'), ('li', 'r8, 1'))
PFENT_ITER_FindCluster | R7 const cluster input in hint initialization boundary | objdiff 99.81013; 237/237 instructions; structural/exact (0, 8); first (39, ('li', 'r7, 1'), ('li', 'r8, 1'))
PFENT_ITER_FindCluster | R7 reuse initial cluster field for hint sentinel assignments | objdiff 99.81013; 237/237 instructions; structural/exact (0, 8); first (39, ('li', 'r7, 1'), ('li', 'r8, 1'))
inputChar__Q39textinput8tistring9DecolatedFw | R7 fresh origin unchanged; first65mode3branch size125/136frame0x30. Missing dynamicappend, initialNUL, deadnewlinecmp and countmask; no localvolatile evidence or symboloverlap. Constinput character and builder views test missing helper boundary honestly.
inputChar__Q39textinput8tistring9DecolatedFw | R7 const character pointer in mode3 inline append boundary | objdiff 90.132355; 125/136 instructions; structural/exact (18, 73); first (10, ('beq', '428'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R7 const stream view for mode3 termination and length | objdiff 90.757355; 126/136 instructions; structural/exact (17, 73); first (10, ('beq', '432'), ('beq', '472'))
inputChar__Q39textinput8tistring9DecolatedFw | R7 const stream reference preserves builder termination boundary | objdiff 90.757355; 126/136 instructions; structural/exact (17, 73); first (10, ('beq', '432'), ('beq', '472'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 fresh origin unchanged221/frame0x50, first48 vtableconstantr26 vstarget25,34operand-only diffs constructor/table/counter registers. Const pane metadata helper before declaration permutations; no adjacentstack reload or extent overlap.
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 const pane metadata in complete construction helper | objdiff 98.07692; 221/221 instructions; structural/exact (0, 61); first (48, ('lis', 'r26, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 const pane metadata reference in construction boundary | objdiff 98.07692; 221/221 instructions; structural/exact (0, 61); first (48, ('lis', 'r26, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 animation bound read directly through const pane metadata | objdiff 96.47059; 221/221 instructions; structural/exact (3, 128); first (5, ('li', 'r19, 0'), ('li', 'r14, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 readonly pane table base as named loop input | objdiff 99.162895; 221/221 instructions; structural/exact (0, 32); first (48, ('lis', 'r26, 0'), ('lis', 'r25, 0'))
TMCJPEGDEC_IdctBlock4x4 | R7 fresh origin unchanged136/frame0x120. First2 sourceptrr3 vsr8;19form/93operanddiffs, rowstores1,2,3,0 vtarget0,1,2,3 andload/mathoperand ordering. disasm_fn fails no.rela.text; ctxdiff/Capstone andtarget.s authoritative. Noextentoverlap orstackreloadproof. Const coefficient view first.
TMCJPEGDEC_IdctBlock4x4 | R7 const source pointer for both IDCT passes | objdiff 85.44118; 136/136 instructions; structural/exact (19, 93); first (2, ('addi', 'r3, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 const transform input behind full inline boundary | objdiff 78.338234; 130/136 instructions; structural/exact (47, 133); first (2, ('addi', 'r10, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 const public coefficient input with unit-guarded prototype | objdiff 85.44118; 136/136 instructions; structural/exact (19, 93); first (2, ('addi', 'r3, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 readonly source with first-row stores0 1 2 3 and shared rotation | objdiff 78.492645; 136/136 instructions; structural/exact (39, 93); first (2, ('addi', 'r3, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 read-only transform descriptor includes output pointer and stride | objdiff 85.588234; 136/136 instructions; structural/exact (19, 93); first (2, ('addi', 'r7, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 fresh origin unchanged137/frame0x120; first8 coefficientb r5 vsr10,31form/48operand differences, math operand d+b/rot+sum and load/store scheduling firstpass. Pointers7/8alreadytarget. Const source view then inline row boundary; no volatile/extentproof.
TMCJPEGDEC_IdctBlock4x4_Col | R7 const coefficient source pointer for signed IDCT passes | objdiff 83.89781; 137/137 instructions; structural/exact (31, 48); first (8, ('lwz', 'r5, 4(r7)'), ('lwz', 'r10, 4(r7)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 const signed transform input behind full inline boundary | objdiff 79.9927; 139/137 instructions; structural/exact (35, 135); first (1, ('addi', 'r5, r3, 0x60'), ('li', 'r0, 2'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 readonly source and target d+b rotation+sum operand order | objdiff 83.86131; 137/137 instructions; structural/exact (31, 48); first (8, ('lwz', 'r5, 4(r7)'), ('lwz', 'r10, 4(r7)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 odd coefficient recombination inside inline arithmetic boundary | objdiff 79.55474; 137/137 instructions; structural/exact (33, 81); first (2, ('addi', 'r8, r3, 0x60'), ('addi', 'r7, r3, 0x60'))
signcreate | R7 retain candidate readonly named pane table input reduces34to32operand differences221/221structural0,99.117645->99.162895. declsearch13builds nofurtherchange. Actual table remainsmutabledata withsameaddress andextent; view only const, dataowned100.
signcreate | R7 quick GATE PASS,99.162895vs99.117645,55/56 unchanged code6300/7184 data3468/3468;0regressions forbidden readability andtargetDOL. ctxdiff32operands. Constructor-vtable/table relocation load ordering also remains; lis/addi placeholders hide symbol ordering, so not all32differences are onlyregister choices.
SOGetInterfaceOpt | R7 success-scoped immutable command and response pointer bases | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R7 response immutable pointers scoped after selector stores | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R7 unsigned local selector with public API preserved | objdiff 99.78992; 119/119 instructions; structural/exact (0, 5); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
SOGetInterfaceOpt | R7 unsigned selector check in inline boundary | objdiff 94.94118; 124/119 instructions; structural/exact (9, 112); first (5, ('mr', 'r25, r4'), ('mr', 'r26, r4'))
TMCJPEGDEC_IdctBlock4x4 | R7 readonly eight-coefficient row view for first pass | objdiff 85.661766; 136/136 instructions; structural/exact (19, 89); first (2, ('addi', 'r3, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 descending paired-row index derives both pass pointers | objdiff 74.94853; 131/136 instructions; structural/exact (42, 134); first (2, ('li', 'r7, 0x60'), ('addi', 'r8, r3, 0x60'))
IDCT R7 new structural hypothesis: target firstpass paired rows may be automatic unrolling of four single-row iterations, ratherthan hand-written pairedsource. Next test restores natural4-rowloop withsource/destination stride8; no pragmas.
TMCJPEGDEC_IdctBlock4x4 | R7 natural four-row loop lets compiler unroll paired rows | objdiff 78.213234; 130/136 instructions; structural/exact (36, 134); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
IDCT R7 natural4rowloop IS auto-unrolled2 as target, but savesr27..31 withstmw/lmw ratherthan4individualsave/restore, explaining exactly130vs136. Firstpass body40instructions matches targetcount. Scope evdiff separately from columnphase before moretuning.
TMCJPEGDEC_IdctBlock4x4 | R7 auto unrolled loop with row-local even difference | objdiff 78.213234; 130/136 instructions; structural/exact (36, 134); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 auto unrolled rows with all arithmetic temporaries scoped to row | objdiff 78.58088; 130/136 instructions; structural/exact (36, 131); first (3, ('stmw', 'r27, 0x10c(r1)'), ('stw', 'r31, 0x11c(r1)'))
TMCJPEGDEC_IdctBlock4x4 | R7 auto unrolled rows with const coefficient source | objdiff 78.213234; 130/136 instructions; structural/exact (36, 134); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 auto unrolled rows preserve b plus d subtree | objdiff 78.26471; 130/136 instructions; structural/exact (33, 134); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 auto unrolled rows recombine odd sum before rotation | objdiff 78.26471; 130/136 instructions; structural/exact (33, 134); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 auto unrolled rows compute even difference inside output expressions | objdiff 76.85294; 130/136 instructions; structural/exact (37, 134); first (2, ('stmw', 'r27, 0x10c(r1)'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 auto unrolled rows rotate before adding odd coefficient pair | objdiff 78.213234; 130/136 instructions; structural/exact (36, 134); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 natural four-row signed IDCT loop with shared temporaries | objdiff 99.48905; 137/137 instructions; structural/exact (0, 12); first (53, ('lwz', 'r9, 0x20(r6)'), ('lwz', 'r10, 0x20(r6)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 natural signed rows with scoped coefficient and butterfly locals | objdiff 99.48905; 137/137 instructions; structural/exact (0, 12); first (53, ('lwz', 'r9, 0x20(r6)'), ('lwz', 'r10, 0x20(r6)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 natural signed rows retain sum plus rotation expression | objdiff 99.34306; 137/137 instructions; structural/exact (0, 14); first (12, ('add', 'r3, r10, r12'), ('add', 'r3, r12, r10'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 natural signed rows declare immutable coefficient values in body | objdiff 97.44526; 137/137 instructions; structural/exact (0, 41); first (8, ('lwz', 'r30, 4(r7)'), ('lwz', 'r10, 4(r7)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 natural signed IDCT with second-pass d plus b operand tree | objdiff 99.52555; 137/137 instructions; structural/exact (0, 12); first (53, ('lwz', 'r9, 0x20(r6)'), ('lwz', 'r10, 0x20(r6)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 natural signed IDCT second-pass b c declaration lifetimes | objdiff 98.868614; 137/137 instructions; structural/exact (0, 28); first (8, ('lwz', 'r11, 4(r7)'), ('lwz', 'r10, 4(r7)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 scoped column coefficients | objdiff 99.30657; 137/137 instructions; structural/exact (0, 13); first (53, ('lwz', 'r8, 0x20(r6)'), ('lwz', 'r10, 0x20(r6)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 scoped column coefficients c before b | objdiff 99.30657; 137/137 instructions; structural/exact (0, 13); first (53, ('lwz', 'r8, 0x20(r6)'), ('lwz', 'r10, 0x20(r6)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 scoped column butterfly terms | objdiff 99.52555; 137/137 instructions; structural/exact (0, 12); first (53, ('lwz', 'r9, 0x20(r6)'), ('lwz', 'r10, 0x20(r6)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 scoped column butterfly terms reversed sums | objdiff 99.52555; 137/137 instructions; structural/exact (0, 12); first (53, ('lwz', 'r9, 0x20(r6)'), ('lwz', 'r10, 0x20(r6)'))
TMCJPEGDEC_IdctBlock4x4_Col | R7 EXACT: natural four-row loop auto-unrolls two rows with target load/store scheduling, first53 instructions exact; second-pass scoped coefficient/butterfly locals and d+b operand order reduce remaining12registerdiffs. declsearch28builds gives137/137 anddiffs0, objdiff100. Quick GATE PASS5/6code1260/1804 versus4/6code712; poolidentical, global0regressions forbidden readability, correctDOL. No data symbols or extents changed.
TMCJPEGDEC_IdctBlock4x4 | R7 fresh fetch origin still unchanged136/85.625; transfer proven natural signed-row odddiff/oddsum/even difference before rotation order, then tune unsigned column phase independently.
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned rows with odd and even differences before rotation | objdiff 94.30147; 136/136 instructions; structural/exact (2, 86); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned rows with target d plus b addition subtree | objdiff 94.22794; 136/136 instructions; structural/exact (2, 86); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned rows use expression for odd difference | objdiff 94.30147; 136/136 instructions; structural/exact (2, 86); first (2, ('addi', 'r12, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned rows share scoped butterfly locals | objdiff 97.09559; 136/136 instructions; structural/exact (0, 51); first (50, ('rlwinm', 'r6, r5, 2, 0xe, 0x1d'), ('rlwinm', 'r3, r5, 2, 0xe, 0x1d'))
TMCJPEGDEC_IdctBlock4x4 | R7 scoped natural row arithmetic reproduces first50instructions exactly136/frame0x120. Remaining unsigned-column operands51; leading5scalar declsearch32builds reduces to49; no structural differences, now separate column lifetimes and pointer declarations.
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns scoped butterfly coefficients | objdiff 96.13971; 136/136 instructions; structural/exact (0, 71); first (10, ('lwz', 'r31, 0xc(r8)'), ('lwz', 'r28, 0xc(r8)'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns have distinct input pointer lifetime | objdiff 97.64706; 136/136 instructions; structural/exact (0, 45); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns distinct pointer and scoped math | objdiff 96.36029; 136/136 instructions; structural/exact (0, 67); first (10, ('lwz', 'r31, 0xc(r8)'), ('lwz', 'r28, 0xc(r8)'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns reorder source and index declarations | objdiff 97.42647; 136/136 instructions; structural/exact (0, 49); first (50, ('rlwinm', 'r6, r5, 2, 0xe, 0x1d'), ('rlwinm', 'r3, r5, 2, 0xe, 0x1d'))
TMCJPEGDEC_IdctBlock4x4 | R7 all9column scalar declaration search146builds reduces45to42operand differences,136/136forms0. Firstpass remains exact; source,clamp temp,coefficients and index register choices in columnpass remain. Scoped column pointer distinguishes pass lifetimes.
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns readonly temporary-buffer pointer | objdiff 98.01471; 136/136 instructions; structural/exact (0, 42); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns use target descending loop index | objdiff 98.01471; 136/136 instructions; structural/exact (0, 42); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns signed index preserves four iteration counter | objdiff 98.01471; 136/136 instructions; structural/exact (0, 42); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 natural unsigned columns output pointer declared outside row body | objdiff 96.39706; 136/136 instructions; structural/exact (2, 46); first (52, ('addi', 'r7, r1, 0x14'), ('subf', 'r31, r5, r3'))
TMCJPEGDEC_IdctBlock4x4 | R7 source pointer before coefficient declarations | objdiff 97.79412; 136/136 instructions; structural/exact (0, 46); first (50, ('rlwinm', 'r6, r5, 2, 0xe, 0x1d'), ('rlwinm', 'r3, r5, 2, 0xe, 0x1d'))
TMCJPEGDEC_IdctBlock4x4 | R7 source pointer after coefficient declarations | objdiff 97.79412; 136/136 instructions; structural/exact (0, 46); first (50, ('rlwinm', 'r6, r5, 2, 0xe, 0x1d'), ('rlwinm', 'r3, r5, 2, 0xe, 0x1d'))
TMCJPEGDEC_IdctBlock4x4 | R7 source pointer after buffer and loop variables | objdiff 97.79412; 136/136 instructions; structural/exact (0, 46); first (50, ('rlwinm', 'r6, r5, 2, 0xe, 0x1d'), ('rlwinm', 'r3, r5, 2, 0xe, 0x1d'))
TMCJPEGDEC_IdctBlock4x4 | R7 unsigned column transform isolated in readonly inline phase | objdiff 90.07353; 130/136 instructions; structural/exact (10, 132); first (3, ('stmw', 'r27, 0x10c(r1)'), ('stw', 'r31, 0x11c(r1)'))
TMCJPEGDEC_IdctBlock4x4 | R7 column phase block owns coefficient and math locals | objdiff 96.47059; 136/136 instructions; structural/exact (0, 67); first (10, ('lwz', 'r31, 0xc(r8)'), ('lwz', 'r28, 0xc(r8)'))
TMCJPEGDEC_IdctBlock4x4 | R7 column phase block owns only output address and coefficients | objdiff 97.79412; 136/136 instructions; structural/exact (0, 44); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 column phase block owns only rotation and sums | objdiff 97.42647; 136/136 instructions; structural/exact (0, 47); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 column phase declares index and pointer before assignment | objdiff 98.01471; 136/136 instructions; structural/exact (0, 42); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 column phase initializes index before source after separate declarations | objdiff 98.01471; 136/136 instructions; structural/exact (0, 42); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 reuse sp for temporary-buffer column input | objdiff 97.79412; 136/136 instructions; structural/exact (0, 46); first (50, ('rlwinm', 'r6, r5, 2, 0xe, 0x1d'), ('rlwinm', 'r3, r5, 2, 0xe, 0x1d'))
TMCJPEGDEC_IdctBlock4x4 | R7 reuse dp for temporary-buffer column input | objdiff 97.79412; 136/136 instructions; structural/exact (0, 46); first (50, ('rlwinm', 'r6, r5, 2, 0xe, 0x1d'), ('rlwinm', 'r3, r5, 2, 0xe, 0x1d'))
TMCJPEGDEC_IdctBlock4x4 | R7 column index shares u16 output coordinate type | objdiff 96.83088; 137/136 instructions; structural/exact (6, 51); first (53, ('addi', 'r6, r1, 0x14'), ('addi', 'r11, r1, 0x14'))
TMCJPEGDEC_IdctBlock4x4 | R7 column traversal expressed by source end pointer | objdiff 71.92647; 131/136 instructions; structural/exact (51, 134); first (2, ('addi', 'r7, r3, 0x60'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 readonly column butterfly helper with named result references | objdiff 87.94118; 130/136 instructions; structural/exact (12, 132); first (3, ('stmw', 'r27, 0x10c(r1)'), ('stw', 'r31, 0x11c(r1)'))
TMCJPEGDEC_IdctBlock4x4 | R7 mutable column butterfly helper input for retail alias assumptions | objdiff 87.94118; 130/136 instructions; structural/exact (12, 132); first (3, ('stmw', 'r27, 0x10c(r1)'), ('stw', 'r31, 0x11c(r1)'))
TMCJPEGDEC_IdctBlock4x4 | R7 readonly column butterfly helper with rotation output first | objdiff 87.94118; 130/136 instructions; structural/exact (12, 132); first (3, ('stmw', 'r27, 0x10c(r1)'), ('stw', 'r31, 0x11c(r1)'))
TMCJPEGDEC_IdctBlock4x4 | R7 full natural unsigned transform with readonly inline input boundary | objdiff 87.463234; 130/136 instructions; structural/exact (11, 134); first (2, ('stmw', 'r27, 0x10c(r1)'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 full natural unsigned transform with mutable inline input boundary | objdiff 87.463234; 130/136 instructions; structural/exact (11, 134); first (2, ('stmw', 'r27, 0x10c(r1)'), ('addi', 'r8, r3, 0x60'))
TMCJPEGDEC_IdctBlock4x4 | R7 retain natural four-row unsigned pass:85.625->98.01471,136/136 identical instruction forms, first50instructions exact. Remaining42operands are cyclic r6-r11 allocation in column input/output/clamp temporaries; saved coefficients, pitch/index and arithmetic order now exact. Tested const input, scoped phase/math helpers, natural descending loop, source lifetime/assignment/decl permutations; helpers add fifth saved register and130vs136, rejected. Quick GATE PASS with signed4x4still100,0regressions forbidden/readability andcorrectDOL. Both target.extents exact, novolatile proof ordatachanges.
signcreate | R7 fresh fetch origin remains99.117645, our acceptedreadonlytable99.162895. Inspect constructor constant-hoist relocation order explicitly; next isolate metadata lookup and immutable localpointer forms.
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 immutable pane metadata pointer instead of readonly reference | objdiff 99.162895; 221/221 instructions; structural/exact (0, 32); first (48, ('lis', 'r26, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 readonly pane metadata lookup inline boundary | objdiff 98.77828; 221/221 instructions; structural/exact (0, 44); first (48, ('lis', 'r26, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 immutable allocated pane buffer inputs to constructors | objdiff 98.30317; 221/221 instructions; structural/exact (0, 54); first (48, ('lis', 'r26, 0'), ('lis', 'r25, 0'))
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | R7 immutable readonly pane table base declaration | objdiff 99.162895; 221/221 instructions; structural/exact (0, 32); first (48, ('lis', 'r26, 0'), ('lis', 'r25, 0'))
R7 pre-final completeness audit | SOGetInterfaceOpt | 7 successfully compiled distinct source-attempt log entries; remaining function re-listed for full gate.
R7 pre-final completeness audit | PFENT_ITER_FindCluster | 6 successfully compiled distinct source-attempt log entries; remaining function re-listed for full gate.
R7 pre-final completeness audit | inputChar__Q39textinput8tistring9DecolatedFw | 3 successfully compiled distinct source-attempt log entries; remaining function re-listed for full gate.
R7 pre-final completeness audit | create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | 8 successfully compiled distinct source-attempt log entries; remaining function re-listed for full gate.
R7 pre-final completeness audit | TMCJPEGDEC_IdctBlock4x4 | 45 successfully compiled distinct source-attempt log entries; remaining function re-listed for full gate.
R7 data audit | all six owned target data objects paired at100 percent; SOOption/IDCT own no data, pf_volume210976, entry_iterator24, tiString288, tiSignWindow3468. No rename, extent, address or section-total changes required this round. Weak deduplicated extras untouched. Prior extent audit proves no overlapping open function sizes.
# R7 final clean full gate over all six owned units (non --quick)
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RevoEX/src/so/SOOption] pool: IDENTICAL
[libs/RevoEX/src/so/SOOption] objdiff: code 816/1292 data None/None functions 3/4 fuzzy 99.9226 linked code 0
[libs/RevoEX/src/so/SOOption] instruction-exact functions: 3/4
[libs/RevoEX/src/so/SOOption] section .text size 1292 match 99.9226
[libs/RevoEX/src/so/SOOption] below 100: SOGetInterfaceOpt 99.78992
[libs/RevoEX/src/so/SOOption] baseline: code 816/1292 data None functions 3 fuzzy 99.9226
[libs/RVL_SDK/src/fa/pf_volume] pool: IDENTICAL
[libs/RVL_SDK/src/fa/pf_volume] objdiff: code 17992/17992 data 210976/210976 functions 37/37 fuzzy 100.0000 linked code 0
[libs/RVL_SDK/src/fa/pf_volume] instruction-exact functions: 37/37
[libs/RVL_SDK/src/fa/pf_volume] section .bss size 210944 match 100.0
[libs/RVL_SDK/src/fa/pf_volume] section .data size 16 match 100.0
[libs/RVL_SDK/src/fa/pf_volume] section .sdata size 8 match 100.0
[libs/RVL_SDK/src/fa/pf_volume] section .sdata2 size 8 match 100.0
[libs/RVL_SDK/src/fa/pf_volume] section .text size 17992 match 100.0
[libs/RVL_SDK/src/fa/pf_volume] baseline: code 16988/17992 data 210976 functions 35 fuzzy 99.9333
[libs/RVL_SDK/src/fa/pf_entry_iterator] pool: IDENTICAL
[libs/RVL_SDK/src/fa/pf_entry_iterator] objdiff: code 6932/7880 data 24/24 functions 15/16 fuzzy 99.9772 linked code 0
[libs/RVL_SDK/src/fa/pf_entry_iterator] instruction-exact functions: 15/16
[libs/RVL_SDK/src/fa/pf_entry_iterator] section .sdata size 24 match 100.0
[libs/RVL_SDK/src/fa/pf_entry_iterator] section .text size 7880 match 99.97716
[libs/RVL_SDK/src/fa/pf_entry_iterator] below 100: PFENT_ITER_FindCluster 99.81013
[libs/RVL_SDK/src/fa/pf_entry_iterator] baseline: code 6932/7880 data 24 functions 15 fuzzy 99.9772
[src/keyboard/tiString] pool: IDENTICAL
[src/keyboard/tiString] objdiff: code 4632/5176 data 288/288 functions 41/42 fuzzy 98.9629 linked code 0
[src/keyboard/tiString] instruction-exact functions: 41/42
[src/keyboard/tiString] section .data size 288 match 100.0
[src/keyboard/tiString] section .text size 5176 match 98.962906
[src/keyboard/tiString] below 100: inputChar__Q39textinput8tistring9DecolatedFw 90.132355
[src/keyboard/tiString] baseline: code 4632/5176 data 288 functions 41 fuzzy 98.9629
[src/keyboard/tiSignWindow] pool: IDENTICAL
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.8970 linked code 0
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
[src/keyboard/tiSignWindow] section .text size 7184 match 99.896996
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.162895
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.8914
[libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var] objdiff: code 1260/1804 data None/None functions 5/6 fuzzy 99.4013 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var] instruction-exact functions: 5/6
[libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var] section .text size 1804 match 99.40133
[libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var] below 100: TMCJPEGDEC_IdctBlock4x4 98.01471
[libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var] baseline: code 712/1804 data None functions 4 fuzzy 90.7738
regressions vs baseline: 0
global matched_code_percent: 89.19062 -> 89.24243
global fuzzy_match_percent: 99.52355 -> 99.52917
global complete_code_percent: 66.23504 -> 66.23504
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
```
libs/RevoEX/src/so/SOOption | exact 3/4 -> 3/4 | code bytes 816 -> 816/1292 | data bytes 0 -> 0/0
R7 remaining | SOGetInterfaceOpt | 99.78992% | 119/119 identical instruction forms; five callee-saved selector/level register operands differ, first instruction5 mr r25,r4 vsr26. | 7 distinct successful source trials this round; no untried functions.
libs/RVL_SDK/src/fa/pf_volume | exact 35/37 -> 37/37 | code bytes 16988 -> 17992/17992 | data bytes 210976 -> 210976/210976
libs/RVL_SDK/src/fa/pf_entry_iterator | exact 15/16 -> 15/16 | code bytes 6932 -> 6932/7880 | data bytes 24 -> 24/24
R7 remaining | PFENT_ITER_FindCluster | 99.81013% | 237/237 identical forms; eight sector-mask and entries-per-sector register operands differ, first shared1 value r7 vsr8. Volatile iterator-index trial adds three reloads, rejected. | 6 distinct successful source trials this round; no untried functions.
src/keyboard/tiString | exact 41/42 -> 41/42 | code bytes 4632 -> 4632/5176 | data bytes 288 -> 288/288
R7 remaining | inputChar__Q39textinput8tistring9DecolatedFw | 90.132355% | 125/136; Hangul-mode append path optimized to constant index/count; target dynamic append, newline comparison and final count mask remain. No adjacent-stack reload or extent proof supports volatility or resizing. | 3 distinct successful source trials this round; no untried functions.
src/keyboard/tiSignWindow | exact 55/56 -> 55/56 | code bytes 6300 -> 6300/7184 | data bytes 3468 -> 3468/3468
R7 remaining | create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator | 99.162895% | 221/221 identical forms;32 operands remain, including constructor/table relocation hoist order and loop/register allocation. First lis AnmPane r26 vsr25. | 8 distinct successful source trials this round; no untried functions.
libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var | exact 4/6 -> 5/6 | code bytes 712 -> 1260/1804 | data bytes 0 -> 0/0
R7 remaining | TMCJPEGDEC_IdctBlock4x4 | 98.01471% | 136/136 identical forms;42 operands, first column pointer r6 vsr11 at instruction53. First50 instructions exact; remaining unsigned column/clamp registers cycle r6-r11. | 45 distinct successful source trials this round; no untried functions.
R7 final files: libs/RVL_SDK/src/fa/pf_volume.c; src/keyboard/tiSignWindow.cpp; libs/RVLMiddleware/TMC_JPEG/src/reschange/idct_resolution_change_var.c; tools/decomp-assist/fz3.attempts.md. Source commits451eaff8,becfba47,5058e494,4cd94ca2,8a89a5ba. Three new exact functions,1552 newly matched code bytes; all data unchanged100%, all six poolsidentical, correctDOL,0globalregressions/forbidden/readability. No remaining proof uncertainty for accepted changes; original Hangul helper boundary and remaining compiler allocation are unresolved as logged. No source/header/config changes after clean full gate; final commit is log only.

View File

@@ -0,0 +1,57 @@
# mslmisc leaf attempts
Owned units: `src/scene/sdChannelTitle/iplSDChannelTitle.cpp`, `libs/NW4R/src/ut/ut_ArchiveFontBase.cpp`.
MSL checked via live report: only `MSL_Common/wprintf` incomplete — stays in misc1b's notes.
## DECODE: SDButton::setEventHandler retail dead-param (SOLVED)
orig's real decl was **1-arg** `setEventHandler(EventHandler*)`. Evidence:
- Every orig call site (title ×2, select ×4) emits a bare `bl` with only r3/r4 — never `li r5,0`.
- The 5-insn DEF (`lwz r3,0x60; lwz r12,0; lwz r12,0x38; mtctr; bctr`) forwards to `Manager::setEventHandler`, a 1-arg weak virtual — `optOut` was never consumed.
- `Button::setEventHandler` (a DIFFERENT class, genuine 2-arg impl at 0x8139C93C) DOES emit `li r5,0` in iplFocusObject — MWCC materializes default args, so SDButton's missing r5 means the decl never had it.
- The 2-arg mangle in symbols.txt was an author mislabel inherited from `Button`'s real 2-arg.
Fix (all kept): `iplSDButton.h` decl → `void setEventHandler(::gui::EventHandler* event);`; `iplSDButton.cpp` def → 1-arg; call sites in sdChannelTitle/sdChannelSelect → 1-arg; `config/43U/symbols.txt` line 4817 renamed `...8SDButtonFPQ23gui12EventHandlerPQ23gui12EventHandler` → `...8SDButtonFPQ23gui12EventHandler`. Flipped 5 fns to instruction-identical + all sdChannelTitle data sections to 100%.
Mechanism note: renaming a `.text` address in symbols.txt propagates through the splitter into orig's DEF name AND every caller's UND reloc name — the legit rename lever.
## UNSOLVED: enqueue*Notice leading dead-arg (r4)
`SDChannelSelect::enqueueChannelNotice(u32 controller, u32 page, u32 index, u32 value)` and
`enqueueStateNotice(u32 controller, u32 state, u32 type, u32)` (4×u32 each; defs build
`command.titleId = ((u64)page << 32) | index` — proven 4×u32, not u64).
orig call sites marshal r5/r6/r7 but **never write r4** (arg1 `controller` — dead param the
def bodies ignore; iplSDMemory callers DO materialize it). Same dead-arg family as
setEventHandler but on a LEADING arg — no decl form reproduces it:
- arg-count reduction shifts the marshal left (breaks r5/r6/r7 positions)
- defaulted params must be trailing
- `(u32,u64,u32)` still needs `li r4,0` for arg1
- `scene->mPage`/`mIndex`/`channel` as arg1 all emit real loads (`lwz`/`mr`) — orig has none
- r4 is call-clobbered at both sites (`bl findChannelObject`, `bl isReceiveScheduleStopped`)
so no "value already in r4" source expr exists
Residual = `+li r4,0` plus marshal-order (orig emits r6-before-r5 / addi-first) — scheduler family.
## TIE: flushSaveBeforeExit eval-order (98.59)
Insn+reloc-identical except a 6-word window: orig `lis r3` (smArg base→r3), `lwz r4,0x94` (stw-mgr),
`stw`, `lwz r4,0x28` (heap), `lwz r3,0x94` (flush receiver — reloaded LAST). Mine: base→r4,
receiver-load before heap-load. Orig evaluated the `flushAsync` ARG before the receiver reload.
Tried: `saveHeap` local (before/after stw, decl-init, separate assign — emits at-birth or at-use,
never between), `saveData`/`mgr` local (caches receiver → 5-insn form, wrong), nested
`flushAsync(System::getMem2App())` (same as original). All ~6-word identical or regression.
## TIE: ConstructOpAnalyzeGLGR 20-diff window (91.79)
239/239 insns — orig interleaves `lhz r31,0x1c` (sheetGlyphCount) + `lhz r23,0xe` (dataBlockCount)
mid-flag-chain (issued at birth, deep-callee homes); mine emits both at-use (`lhz r26/r25`,
~8 insns later). Same callee-web rotation family. Kept: flags-first reorder (24→20 diffs) +
the second `pGlgr = &font->glgr` assignment (removing it = 113 diffs). Decl-init variant no-op.
## Status
- iplSDChannelTitle: .text 99.9, all data sections 100% (baseline was data 12.1%). Three
sub-100 fns — all at the anomalies/ties above.
- ut_ArchiveFontBase: .text 98.5 — the 20-diff window.
- DOL sha1 `26116613f624061ba99c8d1a299aaa6efa85670d` verified. No shims; both units stay NonMatching.