diff --git a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c index 962a58ce..fbe9e4cd 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c @@ -171,9 +171,7 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) { static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) { s32 rowSkip; u8* output; - s32 chromaXEnd; u32 tileRow; - u32 chromaTileWidth; s32 chromaYEnd; u8* lumaTexture; TMCCJPEGDecState* state; @@ -216,17 +214,17 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) { } luminance += rowSkip; } - chromaTileWidth = state->chromaWidth >> 3; + tileWidth = state->chromaWidth >> 3; x = (u32)x >> 2; width = 8 / state->scaleFactor; height = 8 / state->scaleFactor; - chromaXEnd = x + width; + xEnd = x + width; chromaYEnd = y + height; for (; y < chromaYEnd; y++) { - for (column = x; column < chromaXEnd; column += 1) { - (cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128; + for (column = x; column < xEnd; column += 1) { + (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; @@ -235,7 +233,6 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) { } static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) { - u32 chromaTileWidth; TMCCJPEGDecState* state; u8* lumaTexture; u8* luminance; @@ -250,9 +247,9 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) { u8* output; u8* cb; u8* cr; - s32 xEnd; - s32 tileOffset; s32 width; + s32 tileOffset; + s32 xEnd; u32 tileWidth; luminance = work->convBuf + 4; @@ -287,13 +284,13 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) { x = (u32)x >> 2; width = (width + 3) >> 2; xEnd = x + width; - chromaTileWidth = state->chromaWidth >> 3; + tileWidth = state->chromaWidth >> 3; chromaEnd = y + height; 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; @@ -361,7 +358,6 @@ static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) { } static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) { - u32 chromaTileWidth; TMCCJPEGDecState* state; u8* lumaTexture; u8* luminance; @@ -376,9 +372,9 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) { u8* output; u8* cb; u8* cr; - s32 xEnd; - s32 tileOffset; s32 width; + s32 tileOffset; + s32 xEnd; u32 tileWidth; luminance = work->convBuf + 4; @@ -413,13 +409,13 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) { x = (u32)x >> 1; width = (width + 1) >> 1; xEnd = x + width; - chromaTileWidth = state->chromaWidth >> 3; + tileWidth = state->chromaWidth >> 3; chromaEnd = y + height; 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; @@ -428,23 +424,21 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) { } static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) { - s32 chromaXEnd; s32 chromaYEnd; u8* lumaTexture; s32 height; - u32 chromaTileWidth; u8* luminance; s32 column; u8* cbTexture; - s32 xEnd; + s32 row; u8* crTexture; - u32 tileWidth; + s32 xEnd; u8* cb; TMCCJPEGDecState* state; s32 yEnd; s32 width; u8* cr; - s32 row; + u32 tileWidth; row = y; luminance = work->convBuf + 4; @@ -470,14 +464,14 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) { y = (u32)y >> 1; width = 8 / state->scaleFactor; height = 8 / state->scaleFactor; - chromaXEnd = x + width; + xEnd = x + width; chromaYEnd = y + height; - chromaTileWidth = state->chromaWidth >> 3; + tileWidth = state->chromaWidth >> 3; for (; y < chromaYEnd; y++) { - for (column = x; column < chromaXEnd; column += 1) { - (cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128; + for (column = x; column < xEnd; column += 1) { + (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; @@ -486,7 +480,6 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) { } static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) { - u32 chromaTileWidth; TMCCJPEGDecState* state; u8* lumaTexture; u8* luminance; @@ -497,13 +490,13 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) { u8* crTexture; u32 tileRow; s32 height; - s32 yEnd; + s32 width; u8* output; u8* cb; u8* cr; s32 xEnd; s32 tileOffset; - s32 width; + s32 yEnd; u32 tileWidth; luminance = work->convBuf + 4; @@ -539,13 +532,13 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) { x = (u32)x >> 1; width = (width + 1) >> 1; xEnd = x + width; - chromaTileWidth = state->chromaWidth >> 3; + tileWidth = state->chromaWidth >> 3; chromaEnd = y + ((height + 1) >> 1); 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; diff --git a/tools/decomp-assist/fz15.attempts.md b/tools/decomp-assist/fz15.attempts.md index bf232340..b35624ff 100644 --- a/tools/decomp-assist/fz15.attempts.md +++ b/tools/decomp-assist/fz15.attempts.md @@ -1377,7 +1377,7 @@ First differing instruction 426 (target offset 0x770): clrlwi. r23,r0,16 versus - flatten WriteMBRegDateField: structural/exact (2, 24) instructions 827/827 - flatten WriteMBDelayField: structural/exact (2, 24) instructions 827/827 - flatten WriteMBRegDateField and WriteMBDelayField: structural/exact (4, 34) instructions 827/827 -- generic formatted MB writer inline boundary: structural/exact (99999, 99999)3U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 213: Mail_sprintf(buffer, format, value); # Error: ^ # (10209) illegal implicit conversion from 'const char *' to # 'char *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- generic formatted MB writer inline boundary: structural/exact (99999, 99999)3U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 213: Mail_sprintf(buffer, format, value); # Error: ^ # (10209) illegal implicit conversion from 'const char *' to # 'char *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. - bounded string flush helper boundary: structural/exact (0, 14) instructions 827/827 - registration helper takes u16 field: structural/exact (0, 14) instructions 827/827 - signed board formatting flags: structural/exact (0, 14) instructions 827/827 @@ -1398,17 +1398,17 @@ Aggregate flags+buffer ownership fixes all seven registration-field differences ## Xhigh NWC24CommitMsgInternal: functional aggregate scratch layout - baseline: structural/exact (0, 14) instructions 827/827 -- header aggregate flags,buffer,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 219: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate flags,buffer,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 219: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. - header aggregate flags,buffer,err: structural/exact (54, 94) instructions 827/827 -- header aggregate flags,buffer,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 218: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. -- header aggregate buffer,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 218: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. -- header aggregate buffer,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 217: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. -- header aggregate flags,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 220: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate flags,buffer,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 218: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate buffer,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 218: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate buffer,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 217: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate flags,length: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 220: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. - header aggregate flags,err: structural/exact (76, 110) instructions 827/827 -- header aggregate flags,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 219: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. -- separate delay scratch type flags,buffer,length: structural/exact (99999, 99999)24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 235: field.length = STD_strnlen(field.buffer, 1024); # Error: ^ # (10393) 'length' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. -- separate delay scratch type flags,length: structural/exact (99999, 99999)X/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 216: field.buffer = NWC24WorkP->stringWork; # Error: ^ # (10393) 'buffer' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. -- separate delay scratch type buffer,length,err: structural/exact (99999, 99999) -c libs/RevoEX/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 213: field.flags = field.flags; # Error: ^ # (10393) 'flags' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- header aggregate flags,length,err: structural/exact (99999, 99999)sgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 219: msg->field.length += field.length; # Error: ^ # (10393) 'field' is not a member of class 'struct NWC24MsgObjPrivate' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- separate delay scratch type flags,buffer,length: structural/exact (99999, 99999)24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 235: field.length = STD_strnlen(field.buffer, 1024); # Error: ^ # (10393) 'length' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- separate delay scratch type flags,length: structural/exact (99999, 99999)X/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 216: field.buffer = NWC24WorkP->stringWork; # Error: ^ # (10393) 'buffer' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- separate delay scratch type buffer,length,err: structural/exact (99999, 99999) -c libs/RevoEX/src/nwc24/NWC24MsgCommit.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d build/43U/src/libs/RevoEX/src/nwc24/NWC24MsgCommit.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24MsgCommit.c # ----------------------------------------------- # 213: field.flags = field.flags; # Error: ^ # (10393) 'flags' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. - scratch aggregate reads flags from message: structural/exact (26, 414) instructions 825/827 - signed flag aggregate with unsigned delay extraction: structural/exact (26, 414) instructions 825/827 @@ -1786,3 +1786,1387 @@ forbidden patterns added (net, per file): 0 readability warnings (net, per file; must be 0 in the final result): 0 GATE PASS ``` + +# Xhigh continuation fz15e +Fresh branch agent/w1002/sol-fz15e-xhigh at dce9e073; previously matched NWC24CommitMsgInternal and TMCJPEG_814F2570 landed. Fetch origin/main and owned-file comparison unchanged. Retry all remaining functions in object order; retain only gate-passing improvements. +libs/RVL_SDK/src/kbd/kbd_lib: POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8: POOL IDENTICAL up to 0 (mine=0 base=0) +libs/RevoEX/src/nwc24/NWC24MsgCommit: POOL IDENTICAL up to 9 (mine=9 base=9) +libs/RVLMiddleware/eZiText/src/clib/zprepare: POOL IDENTICAL up to 0 (mine=0 base=0) + +## fz15e kbdEventHandler and kbdProcMod diagnosis +Event handler remains 186/186 instructions, frame 0x20, five differences beginning at index 35: status uses r3 and array base r30 rather than r5 and r3. Modifier processor remains 256/256, frame 0x20, four differences beginning at 245: inlined setter address and prior word swap r4/r5. Standalone KBDSetModState repeats the same four differences at 30..33. Extents have no overlap. Target has no adjacent store/reload in these mismatch regions proving volatility. Prior round exhausted 46 structural variants each, including const views and helper boundaries. Last-stage declsearch on actual nested declaration blocks: setter 842..844 six orders, best (0,4); handler 234..236 six orders, result recorded next. + +## fz15e TMCJPEG_814EFEAC +Origin source unchanged for function. Pool already identical. Structural diagnosis: +``` +src 0x590 base 0x590 insns 356/356 +diffs 20: [147, 160, 161, 169, 208, 216, 218, 225, 229, 240, 246, 255, 301, 313, 324, 325, 329, 332, 334, 336] + 147 M srwi r25, r6, 3 + B srwi r27, r6, 3 + 160 M mr r27, r4 + B mr r25, r4 + 161 M bge -1411 + B bge -1415 + 169 M bgt -1443 + B bgt -1447 + 208 M mullw r9, r9, r25 + B mullw r9, r9, r27 + 216 M clrlwi r3, r27, 0x1d + B clrlwi r3, r25, 0x1d + 218 M addi r15, r27, 1 + B addi r15, r25, 1 + 225 M addi r17, r27, 2 + B addi r17, r25, 2 + 229 M addi r15, r27, 3 + B addi r15, r25, 3 + 240 M addi r15, r27, 4 + B addi r15, r25, 4 + 246 M addi r20, r27, 5 + B addi r20, r25, 5 + 255 M addi r28, r27, 6 + B addi r28, r25, 6 + 301 M addi r3, r27, 7 + B addi r3, r25, 7 + 313 M addi r27, r27, 8 + B addi r25, r25, 8 + 324 M mullw r10, r3, r25 + B mullw r10, r3, r27 + 325 M subf r3, r27, r26 + B subf r3, r25, r26 + 329 M cmpw r27, r26 + B cmpw r25, r26 + 332 M srawi r7, r27, 3 + B srawi r7, r25, 3 + 334 M clrlwi r12, r27, 0x1d + B clrlwi r12, r25, 0x1d + 336 M addi r27, r27, 1 + B addi r25, r25, 1 +``` + +## Xhigh TMCJPEG_814EFEAC: fz15e sequential plane lifetime +- baseline: structural/exact (0, 18) instructions 356/356 +- reuse tile width between sequential output planes: structural/exact (0, 21) instructions 356/356 +- const plane source sample pointers: structural/exact (0, 18) instructions 356/356 + +## fz15e TMCJPEG_814F043C +Origin source unchanged for function. Pool already identical. Structural diagnosis: +``` +src 0x61c base 0x61c insns 391/391 +diffs 40: [14, 18, 27, 29, 33, 35, 38, 40, 42, 48, 50, 158, 161, 177, 181, 183, 184, 187, 194, 195] + 14 M lbz r25, 0x16(r15) + B lbz r20, 0x16(r15) + 18 M divw r25, r3, r0 + B divw r20, r3, r0 + 27 M add r20, r4, r25 + B add r25, r4, r20 + 29 M subf r0, r4, r20 + B subf r0, r4, r25 + 33 M rlwinm r7, r20, 0, 0, 0 + B rlwinm r7, r25, 0, 0, 0 + 35 M subfic r9, r25, 0x20 + B subfic r9, r20, 0x20 + 38 M cmpw cr1, r4, r20 + B cmpw cr1, r4, r25 + 40 M bge -2351 + B bge -2355 + 42 M addi r27, r20, -8 + B addi r27, r25, -8 + 48 M bgt -2383 + B bgt -2387 + 50 M cmpw r20, r11 + B cmpw r25, r11 + 158 M subf r14, r18, r20 + B subf r14, r18, r25 + 161 M cmpw r18, r20 + B cmpw r18, r25 + 177 M addi r0, r25, 3 + B addi r0, r20, 3 + 181 M add r27, r4, r7 + B add r26, r4, r7 + 183 M subf r0, r4, r27 + B subf r0, r4, r26 + 184 M srwi r25, r6, 3 + B srwi r27, r6, 3 + 187 M rlwinm r14, r27, 0, 0, 0 + B rlwinm r14, r26, 0, 0, 0 + 194 M cmpw cr1, r4, r27 + B cmpw cr1, r4, r26 + 195 M mr r26, r4 + B mr r25, r4 + 196 M bge -2975 + B bge -2979 + 198 M addi r11, r27, -8 + B addi r11, r26, -8 + 205 M bgt -3011 + B bgt -3015 + 208 M cmpw r27, r3 + B cmpw r26, r3 + 244 M mullw r8, r8, r25 + B mullw r8, r8, r27 + 252 M clrlwi r3, r26, 0x1d + B clrlwi r3, r25, 0x1d + 254 M addi r15, r26, 1 + B addi r15, r25, 1 + 261 M addi r17, r26, 2 + B addi r17, r25, 2 + 265 M addi r15, r26, 3 + B addi r15, r25, 3 + 276 M addi r15, r26, 4 + B addi r15, r25, 4 + 282 M addi r20, r26, 5 + B addi r20, r25, 5 + 291 M addi r28, r26, 6 + B addi r28, r25, 6 + 337 M addi r3, r26, 7 + B addi r3, r25, 7 + 349 M addi r26, r26, 8 + B addi r25, r25, 8 + 360 M mullw r9, r3, r25 + B mullw r9, r3, r27 + 361 M subf r3, r26, r27 + B subf r3, r25, r26 + 365 M cmpw r26, r27 + B cmpw r25, r26 + 368 M srawi r6, r26, 3 + B srawi r6, r25, 3 + 370 M clrlwi r12, r26, 0x1d + B clrlwi r12, r25, 0x1d + 372 M addi r26, r26, 1 + B addi r25, r25, 1 +``` + +## Xhigh TMCJPEG_814F043C: fz15e sequential plane lifetime +- baseline: structural/exact (0, 36) instructions 391/391 +- reuse tile width between sequential output planes: structural/exact (0, 12) instructions 391/391 +- const plane source sample pointers: structural/exact (0, 36) instructions 391/391 + +## fz15e TMCJPEG_814F0A58 +Origin source unchanged for function. Pool already identical. Structural diagnosis: +``` +src 0x76c base 0x76c insns 475/475 +diffs 81: [36, 45, 266, 274, 279, 280, 284, 285, 286, 287, 288, 293, 294, 300, 301, 306, 307, 310, 316, 317] + 36 M bge -3899 + B bge -3903 + 45 M bgt -3935 + B bgt -3939 + 266 M srwi r25, r3, 3 + B srwi r27, r3, 3 + 274 M subfic r10, r6, 8 + B subfic r6, r6, 8 + 279 M mr r27, r4 + B mr r25, r4 + 280 M bge -4875 + B bge -4879 + 284 M li r6, 0 + B li r7, 0 + 285 M li r7, 0 + B li r8, 0 + 286 M li r8, 0 + B li r9, 0 + 287 M li r9, 0 + B li r10, 0 + 288 M bgt -4907 + B bgt -4911 + 293 M li r9, 1 + B li r10, 1 + 294 M cmpwi r9, 0 + B cmpwi r10, 0 + 300 M li r8, 1 + B li r9, 1 + 301 M cmpwi r8, 0 + B cmpwi r9, 0 + 306 M li r7, 1 + B li r8, 1 + 307 M cmpwi r7, 0 + B cmpwi r8, 0 + 310 M li r7, 1 + B li r8, 1 + 316 M li r7, 0 + B li r8, 0 + 317 M cmpwi r7, 0 + B cmpwi r8, 0 + 319 M li r6, 1 + B li r7, 1 + 320 M cmpwi r6, 0 + B cmpwi r7, 0 + 322 M srawi r6, r4, 3 + B srawi r7, r4, 3 + 324 M srawi r8, r5, 2 + B srawi r9, r5, 2 + 325 M rlwinm r9, r5, 3, 0x1b, 0x1c + B rlwinm r10, r5, 3, 0x1b, 0x1c + 327 M mullw r8, r8, r25 + B mullw r9, r9, r27 + 328 M add r7, r24, r9 + B add r8, r24, r10 + 330 M add r9, r23, r9 + B add r10, r23, r10 + 335 M clrlwi r3, r27, 0x1d + B clrlwi r3, r25, 0x1d + 336 M add r11, r6, r8 + B add r11, r7, r9 + 337 M addi r15, r27, 1 + B addi r15, r25, 1 + 339 M add r16, r7, r3 + B add r16, r8, r3 + 344 M addi r17, r27, 2 + B addi r17, r25, 2 + 345 M add r19, r9, r3 + B add r19, r10, r3 + 347 M add r18, r18, r8 + B add r18, r18, r9 + 348 M addi r15, r27, 3 + B addi r15, r25, 3 + 353 M add r11, r16, r8 + B add r11, r16, r9 + 355 M add r18, r7, r12 + B add r18, r8, r12 + 359 M addi r15, r27, 4 + B addi r15, r25, 4 + 361 M add r12, r9, r12 + B add r12, r10, r12 + 365 M addi r20, r27, 5 + B addi r20, r25, 5 + 369 M add r16, r16, r8 + B add r16, r16, r9 + 373 M add r19, r15, r8 + B add r19, r15, r9 + 374 M addi r28, r27, 6 + B addi r28, r25, 6 + 375 M add r15, r7, r3 + B add r15, r8, r3 + 378 M add r18, r18, r8 + B add r18, r18, r9 + 381 M add r20, r12, r8 + B add r20, r12, r9 + 383 M add r15, r9, r3 + B add r15, r10, r3 + 385 M add r16, r7, r17 + B add r16, r8, r17 + 388 M add r18, r7, r31 + B add r18, r8, r31 + 389 M add r17, r9, r17 + B add r17, r10, r17 + 391 M add r31, r9, r31 + B add r31, r10, r31 + 394 M add r15, r7, r29 + B add r15, r8, r29 + 395 M add r11, r9, r29 + B add r11, r10, r29 + 398 M add r29, r7, r28 + B add r29, r8, r28 + 420 M addi r3, r27, 7 + B addi r3, r25, 7 + 422 M add r11, r9, r28 + B add r11, r10, r28 + 426 M add r3, r3, r8 + B add r3, r3, r9 + 428 M add r11, r7, r15 + B add r11, r8, r15 + 430 M add r3, r9, r15 + B add r3, r10, r15 + 431 M addi r6, r6, 1 + B addi r7, r7, 1 + 432 M addi r27, r27, 8 + B addi r25, r25, 8 + 442 M rlwinm r6, r5, 3, 0x1b, 0x1c + B rlwinm r7, r5, 3, 0x1b, 0x1c + 443 M mullw r9, r3, r25 + B mullw r10, r3, r27 + 444 M subf r3, r27, r26 + B subf r3, r25, r26 + 445 M add r8, r24, r6 + B add r9, r24, r7 + 446 M add r11, r23, r6 + B add r11, r23, r7 + 448 M cmpw r27, r26 + B cmpw r25, r26 + 451 M srawi r6, r27, 3 + B srawi r7, r25, 3 + 452 M add r7, r6, r9 + B add r8, r7, r10 + 453 M clrlwi r12, r27, 0x1d + B clrlwi r12, r25, 0x1d + 454 M addi r6, r3, 0x80 + B addi r7, r3, 0x80 + 455 M addi r27, r27, 1 + B addi r25, r25, 1 + 456 M slwi r7, r7, 5 + B slwi r8, r8, 5 + 457 M add r3, r8, r12 + B add r3, r9, r12 + 458 M stbx r6, r7, r3 + B stbx r7, r8, r3 + 461 M lbz r6, 0(r21) + B lbz r7, 0(r21) + 463 M addi r6, r6, 0x80 + B addi r7, r7, 0x80 + 464 M stbx r6, r7, r3 + B stbx r7, r8, r3 + 466 M add r22, r22, r10 + B add r22, r22, r6 + 467 M add r21, r21, r10 + B add r21, r21, r6 +``` + +## Xhigh TMCJPEG_814F0A58: fz15e sequential plane lifetime +- baseline: structural/exact (0, 77) instructions 475/475 +- reuse tile width between sequential output planes: structural/exact (0, 82) instructions 475/475 +- const plane source sample pointers: structural/exact (19, 107) instructions 475/475 + +## fz15e TMCJPEG_814F11C4 +Origin source unchanged for function. Pool already identical. Structural diagnosis: +``` +src 0x61c base 0x61c insns 391/391 +diffs 40: [14, 18, 27, 29, 33, 35, 38, 40, 42, 48, 50, 158, 161, 177, 181, 183, 184, 187, 194, 195] + 14 M lbz r25, 0x16(r15) + B lbz r20, 0x16(r15) + 18 M divw r25, r3, r0 + B divw r20, r3, r0 + 27 M add r20, r4, r25 + B add r25, r4, r20 + 29 M subf r0, r4, r20 + B subf r0, r4, r25 + 33 M rlwinm r7, r20, 0, 0, 0 + B rlwinm r7, r25, 0, 0, 0 + 35 M subfic r9, r25, 0x10 + B subfic r9, r20, 0x10 + 38 M cmpw cr1, r4, r20 + B cmpw cr1, r4, r25 + 40 M bge -5815 + B bge -5819 + 42 M addi r27, r20, -8 + B addi r27, r25, -8 + 48 M bgt -5847 + B bgt -5851 + 50 M cmpw r20, r11 + B cmpw r25, r11 + 158 M subf r14, r18, r20 + B subf r14, r18, r25 + 161 M cmpw r18, r20 + B cmpw r18, r25 + 177 M addi r0, r25, 1 + B addi r0, r20, 1 + 181 M add r27, r4, r7 + B add r26, r4, r7 + 183 M subf r0, r4, r27 + B subf r0, r4, r26 + 184 M srwi r25, r6, 3 + B srwi r27, r6, 3 + 187 M rlwinm r14, r27, 0, 0, 0 + B rlwinm r14, r26, 0, 0, 0 + 194 M cmpw cr1, r4, r27 + B cmpw cr1, r4, r26 + 195 M mr r26, r4 + B mr r25, r4 + 196 M bge -6439 + B bge -6443 + 198 M addi r11, r27, -8 + B addi r11, r26, -8 + 205 M bgt -6475 + B bgt -6479 + 208 M cmpw r27, r3 + B cmpw r26, r3 + 244 M mullw r8, r8, r25 + B mullw r8, r8, r27 + 252 M clrlwi r3, r26, 0x1d + B clrlwi r3, r25, 0x1d + 254 M addi r15, r26, 1 + B addi r15, r25, 1 + 261 M addi r17, r26, 2 + B addi r17, r25, 2 + 265 M addi r15, r26, 3 + B addi r15, r25, 3 + 276 M addi r15, r26, 4 + B addi r15, r25, 4 + 282 M addi r20, r26, 5 + B addi r20, r25, 5 + 291 M addi r28, r26, 6 + B addi r28, r25, 6 + 337 M addi r3, r26, 7 + B addi r3, r25, 7 + 349 M addi r26, r26, 8 + B addi r25, r25, 8 + 360 M mullw r9, r3, r25 + B mullw r9, r3, r27 + 361 M subf r3, r26, r27 + B subf r3, r25, r26 + 365 M cmpw r26, r27 + B cmpw r25, r26 + 368 M srawi r6, r26, 3 + B srawi r6, r25, 3 + 370 M clrlwi r12, r26, 0x1d + B clrlwi r12, r25, 0x1d + 372 M addi r26, r26, 1 + B addi r25, r25, 1 +``` + +## Xhigh TMCJPEG_814F11C4: fz15e sequential plane lifetime +- baseline: structural/exact (0, 36) instructions 391/391 +- reuse tile width between sequential output planes: structural/exact (0, 12) instructions 391/391 +- const plane source sample pointers: structural/exact (0, 36) instructions 391/391 + +## fz15e TMCJPEG_814F17E0 +Origin source unchanged for function. Pool already identical. Structural diagnosis: +``` +src 0x768 base 0x768 insns 474/474 +diffs 40: [6, 18, 20, 21, 29, 32, 34, 36, 43, 45, 86, 87, 89, 225, 226, 228, 229, 233, 254, 255] + 6 M mr r20, r5 + B mr r17, r5 + 18 M srwi r18, r9, 3 + B srwi r20, r9, 3 + 20 M add r17, r4, r10 + B add r18, r4, r10 + 21 M subf r7, r4, r17 + B subf r7, r4, r18 + 29 M rlwinm r6, r17, 0, 0, 0 + B rlwinm r6, r18, 0, 0, 0 + 32 M cmpw cr1, r4, r17 + B cmpw cr1, r4, r18 + 34 M bge -7355 + B bge -7359 + 36 M addi r21, r17, -0x10 + B addi r21, r18, -0x10 + 43 M bgt -7391 + B bgt -7395 + 45 M cmpw r17, r10 + B cmpw r18, r10 + 86 M srawi r11, r20, 2 + B srawi r11, r17, 2 + 87 M rlwinm r27, r20, 3, 0x1b, 0x1c + B rlwinm r27, r17, 3, 0x1b, 0x1c + 89 M mullw r12, r11, r18 + B mullw r12, r11, r20 + 225 M srawi r11, r20, 2 + B srawi r11, r17, 2 + 226 M addi r10, r17, 1 + B addi r10, r18, 1 + 228 M rlwinm r12, r20, 3, 0x1b, 0x1c + B rlwinm r12, r17, 3, 0x1b, 0x1c + 229 M mullw r26, r11, r18 + B mullw r26, r11, r20 + 233 M cmpw r16, r17 + B cmpw r16, r18 + 254 M addi r20, r20, 1 + B addi r17, r17, 1 + 255 M cmpw r20, r19 + B cmpw r17, r19 + 265 M srwi r26, r3, 3 + B srwi r28, r3, 3 + 278 M mr r28, r4 + B mr r26, r4 + 279 M bge -8335 + B bge -8339 + 287 M bgt -8367 + B bgt -8371 + 326 M mullw r8, r8, r26 + B mullw r8, r8, r28 + 334 M clrlwi r3, r28, 0x1d + B clrlwi r3, r26, 0x1d + 336 M addi r12, r28, 1 + B addi r12, r26, 1 + 342 M addi r16, r28, 2 + B addi r16, r26, 2 + 348 M addi r12, r28, 3 + B addi r12, r26, 3 + 358 M addi r15, r28, 4 + B addi r15, r26, 4 + 364 M addi r20, r28, 5 + B addi r20, r26, 5 + 373 M addi r29, r28, 6 + B addi r29, r26, 6 + 419 M addi r3, r28, 7 + B addi r3, r26, 7 + 431 M addi r28, r28, 8 + B addi r26, r26, 8 + 442 M mullw r9, r3, r26 + B mullw r9, r3, r28 + 443 M subf r3, r28, r27 + B subf r3, r26, r27 + 447 M cmpw r28, r27 + B cmpw r26, r27 + 450 M srawi r6, r28, 3 + B srawi r6, r26, 3 + 452 M clrlwi r11, r28, 0x1d + B clrlwi r11, r26, 0x1d + 454 M addi r28, r28, 1 + B addi r26, r26, 1 +``` + +## Xhigh TMCJPEG_814F17E0: fz15e sequential plane lifetime +- baseline: structural/exact (0, 36) instructions 474/474 +- reuse tile width between sequential output planes: structural/exact (0, 39) instructions 474/474 +- reuse row local across luma and chroma traversal: structural/exact (19, 300) instructions 473/474 +- const plane source sample pointers: structural/exact (19, 66) instructions 474/474 + +## fz15e TMCJPEG_814F1F48 +Origin source unchanged for function. Pool already identical. Structural diagnosis: +``` +src 0x628 base 0x628 insns 394/394 +diffs 35: [14, 18, 27, 32, 35, 40, 48, 175, 177, 183, 186, 188, 194, 197, 198, 199, 201, 207, 210, 246] + 14 M lbz r25, 0x16(r14) + B lbz r19, 0x16(r14) + 18 M divw r25, r3, r0 + B divw r19, r3, r0 + 27 M add r20, r4, r25 + B add r20, r4, r19 + 32 M add r19, r5, r31 + B add r25, r5, r31 + 35 M subfic r9, r25, 0x10 + B subfic r9, r19, 0x10 + 40 M bge -9275 + B bge -9279 + 48 M bgt -9307 + B bgt -9311 + 175 M cmpw r18, r19 + B cmpw r18, r25 + 177 M addi r0, r25, 1 + B addi r0, r19, 1 + 183 M add r27, r4, r7 + B add r26, r4, r7 + 186 M srwi r25, r6, 3 + B srwi r27, r6, 3 + 188 M subf r14, r4, r27 + B subf r14, r4, r26 + 194 M rlwinm r0, r27, 0, 0, 0 + B rlwinm r0, r26, 0, 0, 0 + 197 M cmpw cr1, r4, r27 + B cmpw cr1, r4, r26 + 198 M mr r26, r4 + B mr r25, r4 + 199 M bge -9911 + B bge -9915 + 201 M addi r11, r27, -8 + B addi r11, r26, -8 + 207 M bgt -9943 + B bgt -9947 + 210 M cmpw r27, r3 + B cmpw r26, r3 + 246 M mullw r9, r9, r25 + B mullw r9, r9, r27 + 254 M clrlwi r3, r26, 0x1d + B clrlwi r3, r25, 0x1d + 256 M addi r15, r26, 1 + B addi r15, r25, 1 + 263 M addi r17, r26, 2 + B addi r17, r25, 2 + 267 M addi r15, r26, 3 + B addi r15, r25, 3 + 278 M addi r15, r26, 4 + B addi r15, r25, 4 + 284 M addi r20, r26, 5 + B addi r20, r25, 5 + 293 M addi r28, r26, 6 + B addi r28, r25, 6 + 339 M addi r3, r26, 7 + B addi r3, r25, 7 + 351 M addi r26, r26, 8 + B addi r25, r25, 8 + 362 M mullw r10, r3, r25 + B mullw r10, r3, r27 + 363 M subf r3, r26, r27 + B subf r3, r25, r26 + 367 M cmpw r26, r27 + B cmpw r25, r26 + 370 M srawi r7, r26, 3 + B srawi r7, r25, 3 + 372 M clrlwi r12, r26, 0x1d + B clrlwi r12, r25, 0x1d + 374 M addi r26, r26, 1 + B addi r25, r25, 1 +``` + +## Xhigh TMCJPEG_814F1F48: fz15e sequential plane lifetime +- baseline: structural/exact (0, 31) instructions 394/394 +- reuse tile width between sequential output planes: structural/exact (0, 7) instructions 394/394 +- reuse row local across luma and chroma traversal: structural/exact (4, 218) instructions 393/394 +- const plane source sample pointers: structural/exact (0, 31) instructions 394/394 + +## Xhigh TMCJPEG_814EFEAC: fz15e phase lifetime and loop form +- baseline: structural/exact (0, 18) instructions 356/356 + +Correction: initial event declsearch range 234..236 included a statement; repeated with the true declaration block 233..235, six orders, best (0,5), source restored. Two initial row-reuse generators changed only the assignment and omitted later row uses; those invalid variants are discarded, not evidence of a valid source attempt. Corrected complete row-lifetime transformations follow. +- reuse vertical bound between output planes: structural/exact (0, 18) instructions 356/356 +- reuse horizontal bound between output planes: structural/exact (0, 24) instructions 356/356 +- shared tile width and vertical bound: structural/exact (0, 21) instructions 356/356 +- shared tile width and horizontal bound: structural/exact (0, 0) instructions 356/356 + +## Xhigh TMCJPEG_814F043C: fz15e phase lifetime and loop form +- baseline: structural/exact (0, 36) instructions 391/391 +- reuse vertical bound between output planes: structural/exact (0, 36) instructions 391/391 +- chroma and luma single-step while loops: structural/exact (0, 36) instructions 391/391 +- shared tile width and vertical bound: structural/exact (0, 12) instructions 391/391 +- shared tile width and horizontal bound: structural/exact (0, 12) instructions 391/391 +- shared tile width and row induction: structural/exact (0, 12) instructions 391/391 + +## Xhigh TMCJPEG_814F0A58: fz15e phase lifetime and loop form +- baseline: structural/exact (0, 77) instructions 475/475 +- reuse vertical bound between output planes: structural/exact (0, 77) instructions 475/475 +- reuse horizontal bound between output planes: structural/exact (0, 83) instructions 475/475 +- shared tile width and vertical bound: structural/exact (0, 82) instructions 475/475 +- shared tile width and horizontal bound: structural/exact (0, 62) instructions 475/475 +- shared tile width and row induction: structural/exact (0, 82) instructions 475/475 + +## Xhigh TMCJPEG_814F11C4: fz15e phase lifetime and loop form +- baseline: structural/exact (0, 36) instructions 391/391 +- reuse vertical bound between output planes: structural/exact (0, 36) instructions 391/391 +- chroma and luma single-step while loops: structural/exact (0, 36) instructions 391/391 +- shared tile width and vertical bound: structural/exact (0, 12) instructions 391/391 +- shared tile width and horizontal bound: structural/exact (0, 12) instructions 391/391 +- shared tile width and row induction: structural/exact (0, 12) instructions 391/391 + +## Xhigh TMCJPEG_814F17E0: fz15e phase lifetime and loop form +- baseline: structural/exact (0, 36) instructions 474/474 +- reuse vertical bound between output planes: structural/exact (0, 36) instructions 474/474 +- reuse horizontal bound between output planes: structural/exact (0, 42) instructions 474/474 +- reuse row induction between output planes: structural/exact (0, 146) instructions 474/474 +- shared tile width and vertical bound: structural/exact (0, 39) instructions 474/474 +- shared tile width and horizontal bound: structural/exact (0, 18) instructions 474/474 +- shared tile width and row induction: structural/exact (0, 133) instructions 474/474 + +## Xhigh TMCJPEG_814F1F48: fz15e phase lifetime and loop form +- baseline: structural/exact (0, 31) instructions 394/394 +- reuse vertical bound between output planes: structural/exact (0, 31) instructions 394/394 +- reuse row induction between output planes: structural/exact (31, 157) instructions 394/394 +- chroma and luma single-step while loops: structural/exact (0, 31) instructions 394/394 +- shared tile width and vertical bound: structural/exact (0, 7) instructions 394/394 +- shared tile width and horizontal bound: structural/exact (0, 7) instructions 394/394 +- shared tile width and row induction: structural/exact (31, 150) instructions 394/394 + +## fz15e keyboard LED storage diagnosis +Target callback loads callback first, then stores command device zero, and compares callback with zero; current guard compares it to a read of the device field. Target asynchronous slot loop uses unsigned index, byte offset, CTR loop and indexed word loads/stores. Synchronous loop has the same CTR shape. Existing custom KBDLEDCommand layout is 0x20 but loses SDK USBKBDCmdLEDAsync base.device and base.ledBits volatility. SDK header revolution/usbkbd.h explicitly declares those fields vu32/vu8; using that actual type is authorized definition-level volatility evidence, not a use-site cast. Test native SDK record and ordinary callback-null guard. + +kbd_led_handler initial diff: src 0x60 base 0x64 insns 24/25 +--- replace mine 1:2 base 1:4 + M 1 slwi r8, r4, 3 + B 1 lis r6, 0 + B 2 slwi r0, r4, 3 + B 3 li r8, 0 +--- replace mine 3:10 base 5:10 + M 3 lis r7, 0 + M 4 lwzx r0, r5, r8 + M 5 li r6, 0 + M 6 slwi r4, r4, 5 + M 7 addi r7, r7, 0 + M 8 cmplw r0, r6 + M 9 stwx r6, r7, r4 + B 5 slwi r7, r4, 5 + B 6 lwzx r0, r5, r0 + B 7 addi r6, r6, 0 + B 8 stwx r8, r6, r7 + B 9 cmplw r0, r8 +--- replace mine 12:13 base 12:15 + M 12 beq 12 + B 12 bne 12 + B 13 li r3, 0 + B 14 b 8 +--- replace mine 14:20 base 16:21 + M 14 b 8 + M 15 li r3, 0 + M 16 lis r4, 0 + M 17 addi r4, r4, 0 + M 18 lwzx r12, r4, r8 + M 19 add r4, r4, r8 + B 16 lis r5, 0 + B 17 slwi r0, r4, 3 + B 18 addi r5, r5, 0 + B 19 lwzx r12, r5, r0 + B 20 add r4, r5, r0 + + +## Xhigh kbd_led_handler: fz15e SDK command field qualification and loop shape +- baseline: structural/exact (13, 21) instructions 24/25 +- native SDK volatile command base fields: structural/exact (13, 21) instructions 25/25 +- native SDK fields and callback null guard: structural/exact (13, 21) instructions 24/25 +- callback read before SDK command release: structural/exact (13, 21) instructions 24/25 + +KBDSetLedsAsync initial diff: src 0x140 base 0x144 insns 80/81 +--- replace mine 7:9 base 7:9 + M 7 mr r26, r5 + M 8 mr r27, r6 + B 7 mr r26, r3 + B 8 mr r27, r5 +--- insert mine 10:10 base 10:11 + B 10 mr r28, r6 +--- replace mine 18:19 base 19:20 + M 18 mulli r30, r3, 0x268 + B 19 mulli r3, r3, 0x268 +--- replace mine 20:21 base 21:22 + M 20 add r3, r0, r30 + B 21 add r3, r0, r3 +--- replace mine 28:29 base 29:30 + M 28 clrlwi r28, r4, 0x18 + B 29 clrlwi r30, r4, 0x18 +--- replace mine 31:32 base 32:33 + M 31 addi r4, r31, 0x400 + B 32 addi r6, r31, 0x400 +--- replace mine 33:34 base 34:35 + M 33 li r6, 0 + B 34 li r4, 0 +--- replace mine 35:36 base 36:37 + M 35 lwz r0, 0(r4) + B 36 lwzx r0, r6, r4 +--- insert mine 38:38 base 39:40 + B 39 mulli r5, r26, 0x268 +--- replace mine 39:41 base 41:42 + M 39 addi r4, r31, 0x400 + M 40 add r5, r0, r30 + B 41 add r5, r0, r5 +--- replace mine 42:44 base 43:45 + M 42 stwx r0, r4, r6 + M 43 b 20 + B 43 stwx r0, r6, r4 + B 44 b 16 +--- replace mine 46:48 base 47:48 + M 46 addi r6, r6, 0x20 + M 47 bdnz -48 + B 47 bdnz -44 +--- replace mine 49:50 base 49:50 + M 49 cmpwi r29, 0xc + B 49 cmplwi r29, 0xc +--- replace mine 52:56 base 52:54 + M 52 b 88 + M 53 slwi r4, r29, 3 + M 54 addi r3, r31, 0xf20 + M 55 stwx r26, r3, r4 + B 52 b 92 + B 53 mulli r3, r26, 0x268 +--- replace mine 57:58 base 55:60 + M 57 add r4, + +## Xhigh KBDSetLedsAsync: fz15e SDK command field qualification and loop shape +- baseline: structural/exact (14, 70) instructions 80/81 +- native SDK volatile command base fields: structural/exact (14, 70) instructions 80/81 +- native SDK fields and callback null guard: structural/exact (14, 70) instructions 80/81 +- unsigned async slot index: structural/exact (13, 69) instructions 80/81 +- native SDK command loop with typed slot view: structural/exact (20, 72) instructions 79/81 + +KBDSetLeds initial diff: src 0x12c base 0x13c insns 75/79 +--- insert mine 4:4 base 4:5 + B 4 mr r31, r3 +--- replace mine 10:11 base 11:12 + M 10 b 232 + B 11 b 244 +--- replace mine 14:16 base 15:17 + M 14 b 216 + M 15 mulli r30, r3, 0x268 + B 15 b 228 + B 16 mulli r0, r3, 0x268 +--- replace mine 18:19 base 19:20 + M 18 add r3, r3, r30 + B 19 add r3, r3, r0 +--- replace mine 25:27 base 26:28 + M 25 b 172 + M 26 clrlwi r31, r4, 0x18 + B 26 b 184 + B 27 clrlwi r30, r4, 0x18 +--- replace mine 28:29 base 29:30 + M 28 lis r5, 0 + B 29 lis r6, 0 +--- insert mine 31:31 base 32:40 + B 32 li r4, 0 + B 33 addi r6, r6, 0 + B 34 mtctr r0 + B 35 lwzx r0, r6, r4 + B 36 cmpwi r0, 0 + B 37 bne 32 + B 38 mulli r0, r31, 0x268 + B 39 lis r5, 0 +--- replace mine 32:41 base 41:44 + M 32 mtctr r0 + M 33 lwz r0, 0(r5) + M 34 cmpwi r0, 0 + M 35 bne 28 + M 36 lis r4, 0 + M 37 addi r4, r4, 0 + M 38 add r4, r4, r30 + M 39 lwz r0, 0xc(r4) + M 40 stw r0, 0(r5) + B 41 add r5, r5, r0 + B 42 lwz r0, 0xc(r5) + B 43 stwx r0, r6, r4 +--- replace mine 43:45 base 46:48 + M 43 addi r5, r5, 0x20 + M 44 bdnz -44 + B 46 addi r4, r4, 0x20 + B 47 bdnz -48 +--- replace mine 49:50 base 52:54 + M 49 b 76 + B 52 b 80 + B 53 mulli r0, r31, 0x268 +--- replace mine 51:52 base 55:56 + M 51 lis r5, 0 + B 55 lis r31, 0 +--- insert mine 53:53 base 57:59 + B 57 add r3, r3, r0 + + +## Xhigh KBDSetLeds: fz15e SDK command field qualification and loop shape +- baseline: structural/exact (19, 75) instructions 75/79 +- native SDK volatile command base fields: structural/exact (19, 75) instructions 75/79 +- native SDK fields and callback null guard: structural/exact (19, 75) instructions 75/79 +- native SDK command slot and fixed-count for loop: structural/exact (19, 75) instructions 75/79 + +TMCJPEG_814EFEAC exact with tileWidth and xEnd reused between sequential output planes; 1424/1424 bytes identical, normalized instructions 0, objdiff 100. Two ctxdiff CR1 branch artifacts remain from its faulty normalization. Quick gate passed, no regression; final full gate will cover every unit. +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 6664/15948 data None/None functions 7/13 fuzzy 99.3318 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.331825 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 5240/15948 data None functions 6 fuzzy 99.3067 +regressions vs baseline: 0 +global matched_code_percent: 89.80975 -> 89.85729 +global fuzzy_match_percent: 99.53358 -> 99.53371 +global complete_code_percent: 67.39544 -> 67.39544 +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 +``` + +## fz15e TMCJPEG_814F043C final register-only search +After phase lifetime fixes, remaining 12 differences exchange width r20/r25 and horizontal bound. Run declsearch on real xEnd..tileWidth declaration span. +``` +declaration block: + s32 xEnd; + s32 tileOffset; + s32 width; + u32 tileWidth; +start (0, 12) +improved (0, 0) +best (0, 0) after 3 builds; kept in source: + s32 width; + s32 tileOffset; + s32 xEnd; + u32 tileWidth; +``` + +## fz15e CheckMsgBoxSpace diagnosis +Origin function unchanged; pool identical. src 0x37c base 0x37c insns 223/223 +diffs 73: [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51] + 32 M lwz r26, 0x78(r7) + B lwz r25, 0x78(r7) + 33 M lwz r12, 0x7c(r7) + B lwz r8, 0x7c(r7) + 34 M mulhwu r24, r0, r26 + B mulhwu r23, r0, r25 + 35 M slwi r5, r26, 2 + B slwi r5, r25, 2 + 36 M lwz r9, 0x88(r7) + B lwz r11, 0x88(r7) + 37 M addi r23, r5, 2 + B addi r22, r5, 2 + 38 M lwz r11, 0x80(r7) + B lwz r9, 0x80(r7) + 39 M slwi r5, r12, 2 + B slwi r5, r8, 2 + 40 M mulhwu r27, r0, r12 + B mulhwu r26, r0, r8 + 41 M addi r25, r5, 2 + B addi r24, r5, 2 + 42 M slwi r29, r9, 2 + B slwi r28, r11, 2 + 43 M lwz r10, 0x84(r7) + B lwz r12, 0x8c(r7) + 44 M slwi r5, r11, 2 + B slwi r5, r9, 2 + 45 M lwz r8, 0x8c(r7) + B lwz r10, 0x84(r7) + 46 M mulhwu r28, r6, r23 + B mulhwu r27, r6, r22 + 47 M subf r23, r24, r26 + B subf r22, r23, r25 + 48 M addi r26, r5, 2 + B addi r25, r5, 2 + 49 M srwi r23, r23, 1 + B srwi r22, r22, 1 + 50 M subf r12, r27, r12 + B subf r8, r26, r8 + 51 M add r23, r23, r24 + B add r22, r22, r23 + 52 M mulhwu r24, r6, r25 + B srwi r5, r27, 1 + 53 M srwi r25, r12, 1 + B slwi r27, r10, 2 + 54 M srwi r5, r28, 1 + B mulhwu r23, r6, r24 + 55 M add r25, r25, r27 + B srwi r24, r8, 1 + 56 M slwi r28, r10, 2 + B slwi r8, r12, 2 + 57 M rlwinm r23, r23, 0x1c, 4, 0x1e + B add r24, r24, r26 + 58 M add r5, r31, r5 + B addi r29, r8, 2 + 59 M addi r28, r28, 2 + B addi r27, r27, 2 + 60 M add r31, r5, r23 + B mulhwu r26, r0, r9 + 61 M srwi r24, r24, 1 + B rlwinm r22, r22, 0x1c, 4, 0x1e + 62 M mulhwu r27, r0, r11 + B add r5, r31, r5 + 63 M r +First difference is unrolled attachment-size load at 32: target r25 vs source r26. Frame 0x30, 223 instructions equal; load/arithmetic dependency schedule differs throughout eight unrolled entries. Pointer is already const. Test helper boundaries and separate encoded versus line estimates. + +## Xhigh CheckMsgBoxSpace: fz15e estimate ownership and local measurement types +- baseline: structural/exact (67, 73) instructions 223/223 +- base64 estimate inline helper inline: structural/exact (67, 73) instructions 223/223 +- base64 estimate inline helper separate: structural/exact (99, 136) instructions 223/223 +- base64 estimate inline helper aggregate: structural/exact (99, 136) instructions 223/223 +- attachment pointer advances with loop index: structural/exact (79, 210) instructions 221/223 + +## fz15e WriteMIMEAttachHeader diagnosis +Origin function unchanged; pool identical. src 0x170 base 0x170 insns 92/92 +diffs 5: [25, 28, 30, 32, 33] + 25 M mr r29, r3 + B mr r30, r3 + 28 M mr r30, r3 + B mr r29, r3 + 30 M add r28, r29, r28 + B add r30, r30, r28 + 32 M add r0, r3, r30 + B add r0, r29, r30 + 33 M add r3, r0, r28 + B add r3, r3, r0 + +First difference 25: type-format length result target r30 vs ours r29, disposition target r29 vs ours r30. Partial length sum at 30 coalesces into type r30 in target vs encoding r28 in source. Frame 0x30 and 92 instructions equal. Test measurements as a header work object and estimate helper; no volatile evidence in this region. + +## Xhigh WriteMIMEAttachHeader: fz15e estimate ownership and local measurement types +- baseline: structural/exact (0, 5) instructions 92/92 +- header measurement aggregate typeLength,dispositionLength: structural/exact (0, 5) instructions 92/92 +- header measurement aggregate typeLength,encodingLength: structural/exact (0, 5) instructions 92/92 +- header measurement aggregate typeLength,encodingLength,dispositionLength,mimeLength: structural/exact (0, 5) instructions 92/92 +- MIME measurement inline helper boundary: structural/exact (0, 4) instructions 92/92 + +## fz15e TMCJPEG_814F043C promotion +Reused tileWidth across sequential planes; final declsearch swapped width and xEnd. Raw object bytes identical for all 1564 bytes. Pool identical. ctxdiff retains only two known CR1 address-normalization artifacts. Quick gate: +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 8228/15948 data None/None functions 8/13 fuzzy 99.3833 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.38325 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 99.4757 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 5240/15948 data None functions 6 fuzzy 99.3067 +regressions vs baseline: 0 +global matched_code_percent: 89.80975 -> 89.90951 +global fuzzy_match_percent: 99.53358 -> 99.53398 +global complete_code_percent: 67.39544 -> 67.39544 +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 +``` + +## fz15e TMCJPEG_814F11C4 inherited edge structure +Fresh origin function identical to starting body; prior structural tests showed tileWidth lifetime reuse leaves only the same width/xEnd register coloring as 043C. Apply the proven shared lifetime, then declaration swap, preserving the 16/2 sampling constants. +Result: all 1564 symbol bytes identical, declsearch normalized score (0,0). Initial score-only invocation lacked NINJA; repeated with the supplied executable. Quick gate: +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 9792/15948 data None/None functions 9/13 fuzzy 99.4347 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.43466 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 99.55584 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 5240/15948 data None functions 6 fuzzy 99.3067 +regressions vs baseline: 0 +global matched_code_percent: 89.80975 -> 89.96172 +global fuzzy_match_percent: 99.53358 -> 99.53424 +global complete_code_percent: 67.39544 -> 67.39544 +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 +``` + +## fz15e TMCJPEG_814F1F48 register-only finish +Origin body unchanged. TileWidth reuse leaves seven width/yEnd register differences (previous diagnosis). Full leading-declaration search 100 builds exhausted before relevant pair, unchanged (0,7). Restrict search to yEnd through width to test the observed pair. +Discarded two declaration searches: first used 488..494 instead of printed 495..501; second was inadvertently started before first completed. Both searches had finished before the interrupt signals arrived (kill reported no such process); discarded their scores, restored this function alone from HEAD, and reapplied tileWidth reuse. No trial scores from overlapping mutation accepted. + +## Xhigh kbdEventHandler: fz15e lookup scope and status branch structural retries +- baseline: structural/exact (0, 5) instructions 186/186 +- channel rejection exits before report processing: structural/exact (0, 5) instructions 186/186 +- report byte address declared with channel lookup: structural/exact (0, 5) instructions 186/186 +- status classification uses exact report error enum: structural/exact (0, 6) instructions 186/186 + +## Xhigh KBDSetModState: fz15e modifier read-only view and bit ownership +- baseline: structural/exact (0, 4) instructions 42/42 +- new modifier union aggregate initialization: structural/exact (99999, 99999)-c libs/RVL_SDK/src/kbd/kbd_lib.c -o build/43U/src/libs/RVL_SDK/src/kbd && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kbd/kbd_lib.d build/43U/src/libs/RVL_SDK/src/kbd/kbd_lib.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kbd\kbd_lib.c # --------------------------------------- # 844: KBDModifierState newState = {value & 0xfc0}; # Error: ^ # (10124) illegal constant expression # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- read physical flags through const channel view: structural/exact (0, 7) instructions 42/42 +- modifier scalar fields combine without bitfield union: structural/exact (3, 7) instructions 42/42 + +## Xhigh kbdProcMod: fz15e inline modifier read-only view and bit ownership +- baseline: structural/exact (0, 4) instructions 256/256 +- new modifier union aggregate initialization: structural/exact (99999, 99999)-c libs/RVL_SDK/src/kbd/kbd_lib.c -o build/43U/src/libs/RVL_SDK/src/kbd && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kbd/kbd_lib.d build/43U/src/libs/RVL_SDK/src/kbd/kbd_lib.d ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\kbd\kbd_lib.c # --------------------------------------- # 844: KBDModifierState newState = {value & 0xfc0}; # Error: ^ # (10124) illegal constant expression # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- read physical flags through const channel view: structural/exact (0, 4) instructions 256/256 +- modifier scalar fields combine without bitfield union: structural/exact (3, 5) instructions 256/256 +Clean non-overlapping retry 495..501: seven builds, width/yEnd swap reaches (0,0); all 1576 symbol bytes identical. Earlier overlapping scores discarded. +TMCJPEG_814F1F48 quick gate: +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 11368/15948 data None/None functions 10/13 fuzzy 99.4785 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.47855 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 99.58861 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 5240/15948 data None functions 6 fuzzy 99.3067 +regressions vs baseline: 0 +global matched_code_percent: 89.80975 -> 90.01434 +global fuzzy_match_percent: 99.53358 -> 99.53447 +global complete_code_percent: 67.39544 -> 67.39544 +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 +``` + +## Xhigh KBDSetModState: fz15e third compiled modifier structure (runtime C aggregate initializer unsupported) +- baseline: structural/exact (0, 4) instructions 42/42 +- copy previous union then replace lock field: structural/exact (2, 6) instructions 42/42 + +## Xhigh kbdProcMod: fz15e third compiled modifier structure (runtime C aggregate initializer unsupported) +- baseline: structural/exact (0, 4) instructions 256/256 +- copy previous union then replace lock field: structural/exact (2, 7) instructions 256/256 + +## fz15e TMCJPEG_814F17E0 final register search +TileWidth and xEnd shared across sequential planes removed chroma differences, leaving row/tileWidth/xEnd register cycle in luma. Frame and 474 instructions unchanged. Final declsearch 433..441, ten builds reaches (0,0), moving row, xEnd and tileWidth into observed lifetime ordering. All 1896 raw bytes identical. +TMCJPEG_814F17E0 quick gate: +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 13264/15948 data None/None functions 11/13 fuzzy 99.5275 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.527466 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 5240/15948 data None functions 6 fuzzy 99.3067 +regressions vs baseline: 0 +global matched_code_percent: 89.80975 -> 90.07764 +global fuzzy_match_percent: 99.53358 -> 99.53475 +global complete_code_percent: 67.39544 -> 67.39544 +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 +``` + +## fz15e TMCJPEG_814F0A58 residual structure +Shared tileWidth/xEnd leaves 62 register differences; first actual difference 274 is target subfic r6,r6,8 versus source r10,r6,8. Maps to chroma row padding, currently a separate chromaRowSkip while width remains alive for the Cr increment. Target reuses consumed width as both source-row advances. No volatile needed. + +## Xhigh TMCJPEG_814F0A58: fz15e post-bound row-stride lifetime +- baseline: structural/exact (0, 62) instructions 475/475 +- consume width for both chroma row advances: structural/exact (21, 126) instructions 475/475 +- consume height for both chroma row advances: structural/exact (21, 140) instructions 475/475 +- single row-skip lifetime serves both chroma planes: structural/exact (21, 220) instructions 475/475 + +## fz15e Zi8PrepareMatch structure +Origin function unchanged, pool identical. First real difference contextMask initialization at target instruction 11 uses r0 versus source r3. Frame 0x50 and 939/940 instructions; original has two component-presence stores to stack byte 0xf with no later load. No dummy or unused component flag added. Prefix copying and halfword indexing are additional semantic expression boundaries. +src 0xeac base 0xeb0 insns 939/940 +--- replace mine 11:13 base 11:13 + M 11 li r3, 0x20 + M 12 stb r3, 0xb(r1) + B 11 li r0, 0x20 + B 12 stb r0, 0xb(r1) +--- insert mine 17:17 base 17:19 + B 17 li r0, 0 + B 18 stb r0, 0xf(r1) +--- replace mine 26:28 base 28:30 + M 26 slwi r0, r0, 1 + M 27 lhzx r0, r4, r0 + B 28 slwi r3, r0, 1 + B 29 lhzx r0, r4, r3 +--- replace mine 30:33 base 32:35 + M 30 lbz r3, 0xe(r1) + M 31 addi r0, r3, -1 + M 32 stb r0, 0xe(r1) + B 32 lbz r4, 0xe(r1) + B 33 addi r3, r4, -1 + B 34 stb r3, 0xe(r1) +--- replace mine 43:45 base 45:47 + M 43 lhzx r4, r3, r0 + M 44 cmplwi r4, 0xef00 + B 45 lhzx r0, r3, r0 + B 46 cmplwi r0, 0xef00 +--- replace mine 50:51 base 52:56 + M 50 clrlwi r3, r29, 0x18 + B 52 clrlwi r0, r29, 0x18 + B 53 lbz r3, 0xe(r1) + B 54 cmplw r0, r3 + B 55 blt -52 +--- replace mine 52:57 base 57:59 + M 52 cmplw r3, r0 + M 53 blt -52 + M 54 lbz r3, 0xe(r1) + M 55 cmpwi r3, 0 + M 56 beq 572 + B 57 cmpwi r0, 0 + B 58 beq 580 +--- replace mine 64:67 base 66:69 + M 64 clrlwi r0, r3, 0x18 + M 65 cmpwi r0, 0 + M 66 beq 532 + B 66 clrlwi r4, r3, 0x18 + B 67 cmpwi r4, 0 + B 68 beq 540 +--- replace mine 68:70 base 70:74 + M 68 addi r0, r4, 1 + M 69 stb r0, 0xd(r1) + B 70 addi r3, r4, 1 + B 71 stb r3, 0xd(r1) + B 72 li r0, 1 + B 73 stb r0, 0xf(r1) +--- replace mine 84:87 base 88:91 + M 84 lwz r6, 0x38(r1) + M 85 lhz r5, 0x26(r1) + M 86 addis r4, r5, -1 + B 88 lwz r5, 0x38(r1) + B 89 lhz r4, 0x26(r1) + B 90 addis r4, r4, -1 +--- replace mine 89:93 base 93:97 + M 89 add r3, r6, r0 + M 90 stw r3, 0x38(r1) + M 91 lwz r3, 0x38(r1) + M 92 lbz r0, 1(r3) + B 93 ad + +## Xhigh Zi8PrepareMatch: fz15e stack scalars, readonly view and prefix boundaries +- baseline: structural/exact (36, 889) instructions 939/940 +- stroke and context scalar definition initialization: structural/exact (36, 889) instructions 939/940 +- read-only request view for input classification: structural/exact (43, 688) instructions 944/940 +- component index lookup uses const table base and element index: structural/exact (36, 896) instructions 936/940 +- array prefix copies as paired byte snapshots: structural/exact (50, 879) instructions 927/940 + +## fz15e WriteMIMEAttachHeader final helper declaration search +Removed superseded scalar declarations in caller, kept the measured-header helper; first three helper measurements own the remaining result register choices. Search their declaration/initialization order last; this also changes order of pure Mail_strlen calls, so verify gate/pool independently. +declaration block: + s32 encodingLength = Mail_strlen(ContentTxEncA); + s32 typeLength = Mail_strlen(ContentTypeA); + s32 dispositionLength = Mail_strlen(ContentDispA); +start (0, 4) +best (0, 4) after 6 builds; source restored; best order was: + s32 encodingLength = Mail_strlen(ContentTxEncA); + s32 typeLength = Mail_strlen(ContentTypeA); + s32 dispositionLength = Mail_strlen(ContentDispA); + + +## fz15e converter setup structure +Origin unchanged. First target instruction after frame creation computes shared convBuf base into r4. Source folds that base into work at each case, losing one instruction and allocating state to r4. Frame 0x10; 195/196 instructions. No store/reload proof for volatile. Test ownership of buffer/state and row metadata as initialized work structures before register permutations. + +## Xhigh TMCJPEGDEC_set_converterY8U8V8: fz15e setup work and read-only alias ownership +- baseline: structural/exact (41, 195) instructions 195/196 +- converter setup aggregate buffer: structural/exact (99999, 99999)r/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c # -------------------------------------------------------------------------- # 22: setup.buffer = work->convBuf; # Error: ^^^^^ # (10140) undefined identifier 'setup' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- converter setup aggregate buffer,state: structural/exact (99999, 99999)r/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c # -------------------------------------------------------------------------- # 22: setup.buffer = work->convBuf; # Error: ^^^^^ # (10140) undefined identifier 'setup' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- converter setup aggregate buffer,state,componentCount: structural/exact (99999, 99999)r/bin/python3" tools/transform_dep.py build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c # -------------------------------------------------------------------------- # 22: setup.buffer = work->convBuf; # Error: ^^^^^ # (10140) undefined identifier 'setup' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- rows stored in planar block layout scratch: structural/exact (41, 195) instructions 195/196 +- const decoder input view for buffer and switch fields: structural/exact (41, 195) instructions 195/196 +Correction: aggregate generator inserted setup at first case brace instead of function scope because body_range excludes braces; three compile failures discarded. Retest scoped work declarations. Rows and const-view trials were valid. + +## fz15e converter setup structure +Origin unchanged. First target instruction after frame creation computes shared convBuf base into r4. Source folds that base into work at each case, losing one instruction and allocating state to r4. Frame 0x10; 195/196 instructions. No store/reload proof for volatile. Test ownership of buffer/state and row metadata as initialized work structures before register permutations. + +## Xhigh TMCJPEGDEC_set_converterY8U8V8: fz15e setup work and read-only alias ownership +- baseline: structural/exact (41, 195) instructions 195/196 +- converter setup aggregate buffer: structural/exact (41, 195) instructions 195/196 +- converter setup aggregate buffer,state: structural/exact (41, 195) instructions 195/196 +- converter setup aggregate buffer,state,componentCount: structural/exact (99999, 99999)c/texturecvtr/Texture_MCUtoY8U8V8.d build/43U/src/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c # -------------------------------------------------------------------------- # 24: setup.componentCount = work->setup.componentCount; # Error: ^ # (10393) 'setup' is not a member of class 'struct TMCCJPEGDecWork_t' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed. +- const decoder input view for buffer and switch fields: structural/exact (41, 195) instructions 195/196 + +## Xhigh kbd_led_handler: fz15e release value ownership and success branch +- baseline: structural/exact (13, 21) instructions 24/25 +- success branch puts true result before failure: structural/exact (30, 23) instructions 23/25 +- released device value shared with callback presence test: structural/exact (30, 23) instructions 23/25 +- signed released device value shared with callback presence test: structural/exact (30, 23) instructions 23/25 + +## Xhigh TMCJPEG_814F0A58: fz15e stride type and value reuse +- baseline: structural/exact (0, 62) instructions 475/475 +- row source advance declared unsigned: structural/exact (0, 62) instructions 475/475 +- unsigned row source advance shared by both planes: structural/exact (21, 220) instructions 475/475 +- width definition owns final source stride using unsigned view: structural/exact (21, 126) instructions 475/475 + +## fz15e TMCJPEG_814F0A58 final scoped declarations +First search inadvertently omitted width and included a blank line (height..chromaRowSkip plus blank), 70 builds unchanged. Dynamic width..chromaRowSkip range retry: +declaration block: + s32 width; + s32 height; + u8* cbTexture; + s32 xEnd; + u8* crTexture; + s32 yEnd; + u8* cb; + u32 tileWidth; + u8* cr; + s32 chromaRowSkip; +start (0, 62) +best (0, 62) after 65 builds; source restored; best order was: + s32 width; + s32 height; + u8* cbTexture; + s32 xEnd; + u8* crTexture; + s32 yEnd; + u8* cb; + u32 tileWidth; + u8* cr; + s32 chromaRowSkip; + + +## Xhigh KBDSetLedsAsync: fz15e typed slot traversal and reservation helper +- baseline: structural/exact (14, 70) instructions 80/81 +- reserve slots with typed command array index: structural/exact (19, 72) instructions 79/81 +- reserve LED command in inline allocation helper: structural/exact (22, 71) instructions 76/81 +- mutable channel pointer view for LED device acquisition: structural/exact (20, 74) instructions 76/81 + +## Xhigh KBDSetLeds: fz15e typed slot traversal and reservation helper +- baseline: structural/exact (19, 75) instructions 75/79 +- reserve slots with typed command array index: structural/exact (19, 68) instructions 78/79 +- reserve LED command in inline allocation helper: structural/exact (42, 72) instructions 73/79 +- mutable channel pointer view for LED device acquisition: structural/exact (27, 75) instructions 69/79 +Discarded setup aggregate counter qualification error work->setup.componentCount; fixed regex excludes existing member access and re-tested only this variant. + +## fz15e converter setup structure +Origin unchanged. First target instruction after frame creation computes shared convBuf base into r4. Source folds that base into work at each case, losing one instruction and allocating state to r4. Frame 0x10; 195/196 instructions. No store/reload proof for volatile. Test ownership of buffer/state and row metadata as initialized work structures before register permutations. + +## Xhigh TMCJPEGDEC_set_converterY8U8V8: fz15e scoped setup fix for member qualification +- baseline: structural/exact (41, 195) instructions 195/196 +- converter setup aggregate componentCount with buffer and state: structural/exact (41, 195) instructions 195/196 + +## Xhigh WriteMIMEAttachHeader: fz15e measurement scope and definition qualifiers +- baseline: structural/exact (0, 5) instructions 92/92 +- header measurements scoped before formatting: structural/exact (0, 5) instructions 92/92 +- immutable measured encoding and disposition lengths: structural/exact (0, 5) instructions 92/92 +- unsigned measured header overhead with signed capacity: structural/exact (0, 5) instructions 92/92 + +TMCJPEG_814F0A58 closure: shared tileWidth/xEnd improved register-only score 77 to 62; stride lifetime/type changes altered register coloring throughout both loops, and the final width..chromaRowSkip declaration search and initial width-omitting search produced no exact. Restored this unmatched body from HEAD, retaining all five new exact functions. Data remains absent. + +## fz15e WriteMIMEAttachHeader actual scalar declaration search +Previous automatic six-order search only covered three leading pointer declarations. Split the four measurement declarations and try those permutations last. +declaration block: + s32 typeLength; + s32 encodingLength; + s32 dispositionLength; + s32 mimeLength; +start (0, 5) +best (0, 5) after 13 builds; source restored; best order was: + s32 typeLength; + s32 encodingLength; + s32 dispositionLength; + s32 mimeLength; + + +## fz15e final completeness and ownership audit +libs/RVL_SDK/src/kbd/kbd_lib: objdiff 15 -> 15; code 3088 -> 3088/5764; data 5296 -> 5296/5296 +kbdEventHandler 99.83871%: at least 3 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +kbdProcMod 99.90234%: at least 3 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +kbd_led_handler 64.12%: at least 3 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +KBDSetLedsAsync 86.234566%: at least 3 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +KBDSetLeds 84.6076%: at least 3 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +KBDSetModState 99.40476%: at least 3 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8: objdiff 6 -> 11; code 5240 -> 13264/15948; data 0 -> 0/0 +TMCJPEGDEC_set_converterY8U8V8 92.78571%: at least 5 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +TMCJPEG_814F0A58 99.01053%: at least 9 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +libs/RevoEX/src/nwc24/NWC24MsgCommit: objdiff 16 -> 16; code 7272 -> 7272/8532; data 904 -> 904/904 +CheckMsgBoxSpace 85.57399%: at least 4 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +WriteMIMEAttachHeader 99.61957%: at least 7 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +libs/RVLMiddleware/eZiText/src/clib/zprepare: objdiff 0 -> 0; code 0 -> 0/3760; data 8 -> 8/68 +Zi8PrepareMatch 96.319145%: at least 4 distinct compiled source-level variants this round, plus documented declaration searches; rejected generators excluded. +TMCJPEG_814EFEAC: 1424 raw instruction bytes equal; SHA1 caf6da243ad73965c0c35e05bda2e1e832c67ad3. +TMCJPEG_814F043C: 1564 raw instruction bytes equal; SHA1 3860a45842b6457a143c2534d5f63b9400b8fba6. +TMCJPEG_814F11C4: 1564 raw instruction bytes equal; SHA1 290aa56e7d4d3f23264568101bf227f35e0a8a89. +TMCJPEG_814F17E0: 1896 raw instruction bytes equal; SHA1 031b10873910a210350e166db34aa926ee011db0. +TMCJPEG_814F1F48: 1576 raw instruction bytes equal; SHA1 6c9764e18245f8ce49a2c730d2c2e0ae081866e8. +No data renames/extents changed: JPEG has no owned data, NWC24 904/904 and keyboard 5296/5296 remain exact. Zi8 target jumptable_8166B3D0 (48 bytes) versus emitted @230: all twelve relocations point inside non-exact Zi8PrepareMatch, and target/source addends differ with code layout; no legitimate named source object to rename. extab 8/8 exact, extabindex encodes mismatched function size. These are code gaps. +All experimental source in keyboard, NWC24, zprepare and the two open JPEG functions restored; only five exact converter changes retained. + +## fz15e final full clean gate +``` +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVL_SDK/src/kbd/kbd_lib] pool: IDENTICAL +[libs/RVL_SDK/src/kbd/kbd_lib] objdiff: code 3088/5764 data 5296/5296 functions 15/21 fuzzy 97.7044 linked code 0 +[libs/RVL_SDK/src/kbd/kbd_lib] instruction-exact functions: 14/21 +[libs/RVL_SDK/src/kbd/kbd_lib] section .bss size 3968 match 100.0 +[libs/RVL_SDK/src/kbd/kbd_lib] section .data size 1304 match 100.0 +[libs/RVL_SDK/src/kbd/kbd_lib] section .sbss size 16 match 100.0 +[libs/RVL_SDK/src/kbd/kbd_lib] section .sdata size 8 match 100.0 +[libs/RVL_SDK/src/kbd/kbd_lib] section .text size 5764 match 97.70437 +[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdEventHandler 99.83871 +[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdProcMod 99.90234 +[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbd_led_handler 64.12 +[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLedsAsync 86.234566 +[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLeds 84.6076 +[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetModState 99.40476 +[libs/RVL_SDK/src/kbd/kbd_lib] baseline: code 3088/5764 data 5296 functions 15 fuzzy 97.7044 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 13264/15948 data None/None functions 11/13 fuzzy 99.5275 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.527466 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 99.01053 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 5240/15948 data None functions 6 fuzzy 99.3067 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 7272/8532 data 904/904 functions 16/18 fuzzy 98.4754 linked code 0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 16/18 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 100.0 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 98.47539 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 7272/8532 data 904 functions 16 fuzzy 98.4754 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL +[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 96.3191 linked code 0 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 96.319145 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 91.66667 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 96.319145 +[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 96.3191 +regressions vs baseline: 0 +global matched_code_percent: 89.80975 -> 90.07764 +global fuzzy_match_percent: 99.53358 -> 99.53475 +global complete_code_percent: 67.39544 -> 67.39544 +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 +``` +Gate instruction-exact counts are 14/21, 2/13, 16/18, 0/1 (unchanged). JPEG objdiff exact count is 6 -> 11 and exact code is 5240 -> 13264 (+8024) /15948; all eleven 100% JPEG functions have identical raw symbol bytes after the clean rebuild. The five new converter functions contain no relocations. Gate/ctxdiff retains its known CR1 branch normalization false positives when extracted/source function addresses differ by the unmatched setup function's four-byte size gap. No gate/tool changes made. Other unit counts, code bytes and all data bytes unchanged. + +Remaining open functions, all with at least three distinct compiled source attempts this round: +kbdEventHandler 99.83871%: report status and channel base register allocation; 5 instruction operands differ. +kbdProcMod 99.90234%: inlined modifier-state address/value register swap; 4 operands differ. +kbd_led_handler 64.12%: callback/release scheduling, success branch direction and missing repeated index shift. +KBDSetLedsAsync 86.234566%: slot loop index/address construction and call scheduling. +KBDSetLeds 84.6076%: slot loop pointer induction versus target indexed CTR loop. +KBDSetModState 99.40476%: modifier-state address/value register swap; 4 operands differ. +TMCJPEGDEC_set_converterY8U8V8 92.78571%: convBuf shared base folds into work per case, 195/196 instructions. +TMCJPEG_814F0A58 99.01053%: chroma tile/column and row-stride register allocation; 475/475 instructions. +CheckMsgBoxSpace 85.57399%: unrolled base64 size arithmetic dependency schedule; 223/223 instructions. +WriteMIMEAttachHeader 99.61957%: type/disposition measurement coloring and sum coalescing; 5 operands differ. +Zi8PrepareMatch 96.319145%: original component-presence dead stores plus unoptimized expression scheduling; 939/940 instructions. +Uncertainty: the gate reports fewer instruction-exact functions than raw-byte equality in JPEG because of CR1 normalization. Keyboard's existing 14 instruction-exact versus 15 objdiff exact count is unchanged. No data symbol evidence supports a rename/extent change in these four units.