Compare commits
18 Commits
agent/rea/
...
agent/bitt
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e64b93e1b3 | ||
|
|
bfbaf84f16 | ||
|
|
f7cc4a45a5 | ||
|
|
21c5ceda39 | ||
|
|
f22468d1e8 | ||
|
|
7b29f284c1 | ||
|
|
78046280f4 | ||
|
|
66ff3a4331 | ||
|
|
0aa16c0792 | ||
|
|
f8957ca95b | ||
|
|
02fe1755d2 | ||
|
|
5e7b5ad045 | ||
|
|
ca031bd8ff | ||
|
|
b276099f02 | ||
|
|
6bf8283ef1 | ||
|
|
b7a912ce02 | ||
|
|
60341ca483 | ||
|
|
7aa71d2930 |
@@ -16049,7 +16049,7 @@ mscClockPaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DCA8; // type:objec
|
||||
@23740 = .data:0x8164DE49; // type:object size:0x1B scope:local data:string
|
||||
scPaneName_N_GCIcon = .data:0x8164DE64; // type:object size:0x9 data:string
|
||||
scPaneName_N_DiscUpdateIcon = .data:0x8164DE6D; // type:object size:0x11 data:string
|
||||
updateDiskState_jumptable = .data:0x8164DE80; // type:object size:0x1C scope:local
|
||||
@24295 = .data:0x8164DE80; // type:object size:0x1C scope:local
|
||||
scSE_WSD_SELECT = .data:0x8164DE9C; // type:object size:0xB data:string
|
||||
@24254 = .data:0x8164DEA7; // type:object size:0x10 scope:local data:string
|
||||
@24282 = .data:0x8164DEB7; // type:object size:0x12 scope:local data:string
|
||||
|
||||
@@ -727,7 +727,7 @@ config.libs = [
|
||||
]
|
||||
),
|
||||
IPLSection("address", [
|
||||
Object(NonMatching, "scene/address/iplAddress.cpp"),
|
||||
Object(Matching, "scene/address/iplAddress.cpp"),
|
||||
Object(Matching, "scene/address/iplAddressAddSel.cpp"),
|
||||
Object(NonMatching, "scene/address/iplAddressEdit.cpp"),
|
||||
]
|
||||
@@ -1043,7 +1043,7 @@ config.libs = [
|
||||
RevoEXLib("net", [
|
||||
Object(Matching, "net/nettime.c"),
|
||||
Object(Matching, "net/crc.c"),
|
||||
Object(NonMatching, "net/md5.c"),
|
||||
Object(Matching, "net/md5.c"),
|
||||
Object(Matching, "net/sha1.c"),
|
||||
Object(Matching, "net/hmac.c"),
|
||||
Object(Matching, "net/neterrorcode.c"),
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace ipl {
|
||||
namespace memorycard {
|
||||
typedef struct FileInfo {
|
||||
u16 fileNo; // 0x00
|
||||
u16 size; // 0x02
|
||||
volatile u16 size; // 0x02
|
||||
u8 canCopy; // 0x04
|
||||
u8 canMove; // 0x05
|
||||
u16 unk_0x06; // 0x06
|
||||
@@ -28,7 +28,7 @@ namespace ipl {
|
||||
} CardState; // 0x14
|
||||
|
||||
typedef struct IconState {
|
||||
u8 bannerEnable; // 0x00
|
||||
volatile u8 bannerEnable; // 0x00
|
||||
u8 unk_0x01; // 0x01
|
||||
u8 unk_0x02; // 0x02
|
||||
u8 bannerType; // 0x03
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
namespace ipl {
|
||||
namespace scene {
|
||||
extern "C" BOOL push_button_queue(void*, const void*);
|
||||
class ButtonEventHandlerBase;
|
||||
class OptOutButtonEventHandlerBase;
|
||||
class SDMenuEventHandlerBase;
|
||||
@@ -314,6 +315,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
protected:
|
||||
friend BOOL push_button_queue(void*, const void*);
|
||||
typedef struct Command {
|
||||
enum {
|
||||
TYPE_ANIM = 0,
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace ipl {
|
||||
STATE_FINISHED,
|
||||
};
|
||||
|
||||
bool mbDoneProcess; // 0x00
|
||||
volatile bool mbDoneProcess; // 0x00
|
||||
int mCDBResult; // 0x04
|
||||
|
||||
int mPrevFreeSize; // 0x08
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace nw4r {
|
||||
PaneList& GetChildList() { return mChildList; }
|
||||
|
||||
const math::VEC3& GetTranslate() { return mTranslate; }
|
||||
#ifdef IPL_SDMEMORY_SET_TRANSLATE_OUT_OF_LINE
|
||||
#if defined(IPL_SDMEMORY_SET_TRANSLATE_OUT_OF_LINE) || defined(IPL_ADDRESS_MATCHING)
|
||||
void SetTranslate(const math::VEC3& translate);
|
||||
#else
|
||||
void SetTranslate(const math::VEC3& translate) { mTranslate = translate; }
|
||||
|
||||
@@ -1,79 +1,35 @@
|
||||
#include <stddef.h>
|
||||
#include <tmc_jpeg_internal.h>
|
||||
|
||||
#ifdef __MWERKS__
|
||||
asm s32 TMCJPEGDEC_init_buff_thumbnail(register TMCCJPEGDecWork* work, register u8* dst, register u8* src) {
|
||||
nofralloc
|
||||
|
||||
lwz r0, 4(r5)
|
||||
cmpwi r0, 0
|
||||
bne _init_buff_thumbnail_have_src1
|
||||
li r3, -1
|
||||
blr
|
||||
|
||||
_init_buff_thumbnail_have_src1:
|
||||
lwz r0, 8(r5)
|
||||
cmpwi r0, 0
|
||||
bne _init_buff_thumbnail_have_src2
|
||||
li r3, -1
|
||||
blr
|
||||
|
||||
_init_buff_thumbnail_have_src2:
|
||||
lwz r7, 0(r5)
|
||||
li r0, 0
|
||||
stw r7, 0x18(r4)
|
||||
lwz r6, 4(r5)
|
||||
stw r6, 0x1c(r4)
|
||||
lwz r6, 8(r5)
|
||||
stw r6, 0x20(r4)
|
||||
lwz r6, 0xc(r5)
|
||||
stw r6, 0x24(r4)
|
||||
lwz r5, 0x10(r5)
|
||||
stw r5, 0x28(r4)
|
||||
stw r7, 8(r4)
|
||||
lwz r6, 0x674(r3)
|
||||
lwz r5, 0x66c(r3)
|
||||
add r5, r6, r5
|
||||
stw r5, 0xc(r4)
|
||||
lwz r6, 0x670(r3)
|
||||
li r3, 0
|
||||
add r5, r5, r6
|
||||
stw r0, 0x20(r4)
|
||||
subi r0, r5, 0x22
|
||||
stw r5, 0x10(r4)
|
||||
stw r0, 0x14(r4)
|
||||
blr
|
||||
}
|
||||
#else
|
||||
s32 TMCJPEGDEC_init_buff_thumbnail(TMCCJPEGDecWork* work, u8* dst, u8* src) {
|
||||
u32* src32;
|
||||
u32* dst32;
|
||||
u32 tmp;
|
||||
TMCCJPEGDecWork* buffer = (TMCCJPEGDecWork*)dst;
|
||||
const TMCCJPEGDecInitParam* input = (const TMCCJPEGDecInitParam*)(src - offsetof(TMCCJPEGDecInitParam, pBuf2));
|
||||
s32 endAddress;
|
||||
u8* start;
|
||||
const TMCCJPEGDecExifData* exif = (const TMCCJPEGDecExifData*)work;
|
||||
|
||||
src32 = (u32*)src;
|
||||
dst32 = (u32*)dst;
|
||||
|
||||
if (src32[1] == 0) {
|
||||
if (input->buf2Size == 0) {
|
||||
return -1;
|
||||
}
|
||||
if (src32[2] == 0) {
|
||||
if (input->dataSize == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
tmp = src32[0];
|
||||
dst32[6] = src32[0];
|
||||
dst32[7] = src32[1];
|
||||
dst32[8] = src32[2];
|
||||
dst32[9] = src32[3];
|
||||
dst32[10] = src32[4];
|
||||
|
||||
dst32[2] = tmp;
|
||||
dst32[3] = work->thumbHuffSize[2] + work->thumbHuffSize[0];
|
||||
dst32[4] = work->thumbHuffSize[1] + dst32[3];
|
||||
dst32[5] = dst32[4] - 0x22;
|
||||
dst32[8] = 0;
|
||||
start = input->pBuf2;
|
||||
buffer->pBufOrg = start;
|
||||
buffer->bufLen = input->buf2Size;
|
||||
buffer->remaining = input->dataSize;
|
||||
buffer->pCallback = input->pCallback;
|
||||
buffer->pCbCtx = input->pContext;
|
||||
buffer->pBufStart = start;
|
||||
buffer->pBufCur = exif->thumbnailData + exif->thumbnailOffset;
|
||||
endAddress = exif->thumbnailLength;
|
||||
endAddress = (u32)buffer->pBufCur + endAddress;
|
||||
buffer->remaining = 0;
|
||||
buffer->pBufEnd = (u8*)endAddress;
|
||||
buffer->pBufMark = (u8*)((u32)endAddress - 0x22);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
s32 TMCJPEGDEC_init_buff(TMCCJPEGDecWork* work) {
|
||||
work->bitBuf = 0;
|
||||
|
||||
@@ -106,192 +106,43 @@ s32 TMCJPEGDEC_decompmcu(u32 maxMCU, u32 mcuCount, TMCCJPEGDecWork* work, void*
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
asm s32 TMCJPEGDEC_imagestart(register TMCCJPEGDecWork* work) {
|
||||
nofralloc
|
||||
static inline void initZigzag(TMCCJPEGDecWork* work) {
|
||||
const u8* zigzag = TMCJPEGDEC_Zigzag_data;
|
||||
s32 i;
|
||||
work->restartInterval = 0;
|
||||
work->scanCount = 0;
|
||||
for (i = 0; i < 64; i++) {
|
||||
work->zigzagData[i] = *zigzag++ << 2;
|
||||
}
|
||||
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
lis r8, TMCJPEGDEC_Zigzag_data@ha
|
||||
li r4, 0
|
||||
stw r0, 0x24(r1)
|
||||
li r0, 4
|
||||
addi r8, r8, TMCJPEGDEC_Zigzag_data@l
|
||||
li r7, 0
|
||||
stw r31, 0x1c(r1)
|
||||
mr r31, r3
|
||||
sth r4, 0x181a(r3)
|
||||
stb r4, 0x181c(r3)
|
||||
mtctr r0
|
||||
|
||||
_imagestart_loop:
|
||||
lbz r6, 0(r8)
|
||||
add r9, r3, r7
|
||||
lbz r5, 1(r8)
|
||||
addi r7, r7, 8
|
||||
rlwinm r6, r6, 2, 0x18, 0x1d
|
||||
lbz r4, 2(r8)
|
||||
stb r6, 0x458(r9)
|
||||
rlwinm r5, r5, 2, 0x18, 0x1d
|
||||
rlwinm r6, r4, 2, 0x18, 0x1d
|
||||
lbz r0, 3(r8)
|
||||
stb r5, 0x459(r9)
|
||||
rlwinm r5, r0, 2, 0x18, 0x1d
|
||||
lbz r4, 4(r8)
|
||||
stb r6, 0x45a(r9)
|
||||
rlwinm r6, r4, 2, 0x18, 0x1d
|
||||
lbz r4, 6(r8)
|
||||
stb r5, 0x45b(r9)
|
||||
lbz r0, 5(r8)
|
||||
rlwinm r4, r4, 2, 0x18, 0x1d
|
||||
stb r6, 0x45c(r9)
|
||||
rlwinm r5, r0, 2, 0x18, 0x1d
|
||||
lbz r0, 7(r8)
|
||||
stb r5, 0x45d(r9)
|
||||
lbz r6, 8(r8)
|
||||
rlwinm r0, r0, 2, 0x18, 0x1d
|
||||
stb r4, 0x45e(r9)
|
||||
lbz r5, 9(r8)
|
||||
rlwinm r6, r6, 2, 0x18, 0x1d
|
||||
stb r0, 0x45f(r9)
|
||||
add r9, r3, r7
|
||||
lbz r4, 0xa(r8)
|
||||
rlwinm r5, r5, 2, 0x18, 0x1d
|
||||
stb r6, 0x458(r9)
|
||||
addi r7, r7, 8
|
||||
rlwinm r6, r4, 2, 0x18, 0x1d
|
||||
lbz r0, 0xb(r8)
|
||||
stb r5, 0x459(r9)
|
||||
rlwinm r5, r0, 2, 0x18, 0x1d
|
||||
lbz r4, 0xc(r8)
|
||||
stb r6, 0x45a(r9)
|
||||
rlwinm r6, r4, 2, 0x18, 0x1d
|
||||
lbz r4, 0xe(r8)
|
||||
stb r5, 0x45b(r9)
|
||||
lbz r0, 0xd(r8)
|
||||
rlwinm r4, r4, 2, 0x18, 0x1d
|
||||
stb r6, 0x45c(r9)
|
||||
rlwinm r5, r0, 2, 0x18, 0x1d
|
||||
lbz r0, 0xf(r8)
|
||||
stb r5, 0x45d(r9)
|
||||
addi r8, r8, 0x10
|
||||
rlwinm r0, r0, 2, 0x18, 0x1d
|
||||
stb r4, 0x45e(r9)
|
||||
stb r0, 0x45f(r9)
|
||||
bdnz _imagestart_loop
|
||||
|
||||
mr r4, r31
|
||||
addi r3, r1, 8
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _imagestart_have_marker
|
||||
b _imagestart_return
|
||||
|
||||
_imagestart_have_marker:
|
||||
lhz r0, 8(r1)
|
||||
cmplwi r0, 0xffd8
|
||||
beq _imagestart_parse
|
||||
li r3, -0x20
|
||||
b _imagestart_return
|
||||
|
||||
_imagestart_parse:
|
||||
li r0, 0
|
||||
mr r4, r31
|
||||
sth r0, 8(r1)
|
||||
addi r3, r1, 8
|
||||
bl TMCJPEGDEC_parse_para
|
||||
cmpwi r3, 0
|
||||
bge _imagestart_check_sof
|
||||
b _imagestart_return
|
||||
|
||||
_imagestart_check_sof:
|
||||
lhz r0, 8(r1)
|
||||
cmplwi r0, 0xffc0
|
||||
beq _imagestart_parse_sof
|
||||
li r3, -0x10
|
||||
b _imagestart_return
|
||||
|
||||
_imagestart_parse_sof:
|
||||
mr r3, r31
|
||||
bl TMCJPEGDEC_parse_sof
|
||||
srawi r0, r3, 0x1f
|
||||
and r3, r3, r0
|
||||
|
||||
_imagestart_return:
|
||||
lwz r0, 0x24(r1)
|
||||
lwz r31, 0x1c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
}
|
||||
#else
|
||||
|
||||
s32 TMCJPEGDEC_imagestart(TMCCJPEGDecWork* work) {
|
||||
u16 marker;
|
||||
s32 r;
|
||||
u32 off;
|
||||
u8* p;
|
||||
int i;
|
||||
const u8* zigzag;
|
||||
|
||||
zigzag = TMCJPEGDEC_Zigzag_data;
|
||||
work->restartInterval = 0;
|
||||
work->scanCount = 0;
|
||||
off = 0;
|
||||
i = 4;
|
||||
|
||||
do {
|
||||
p = (u8*)work + off;
|
||||
off += 8;
|
||||
p[0x458] = (zigzag[0] & 0x3F) << 2;
|
||||
p[0x459] = (zigzag[1] & 0x3F) << 2;
|
||||
p[0x45a] = (zigzag[2] & 0x3F) << 2;
|
||||
p[0x45b] = (zigzag[3] & 0x3F) << 2;
|
||||
p[0x45c] = (zigzag[4] & 0x3F) << 2;
|
||||
p[0x45e] = (zigzag[6] & 0x3F) << 2;
|
||||
p[0x45d] = (zigzag[5] & 0x3F) << 2;
|
||||
p[0x45f] = (zigzag[7] & 0x3F) << 2;
|
||||
|
||||
p = (u8*)work + off;
|
||||
off += 8;
|
||||
p[0x458] = (zigzag[8] & 0x3F) << 2;
|
||||
p[0x459] = (zigzag[9] & 0x3F) << 2;
|
||||
p[0x45a] = (zigzag[10] & 0x3F) << 2;
|
||||
p[0x45b] = (zigzag[11] & 0x3F) << 2;
|
||||
p[0x45c] = (zigzag[12] & 0x3F) << 2;
|
||||
p[0x45d] = (zigzag[13] & 0x3F) << 2;
|
||||
p[0x45e] = (zigzag[14] & 0x3F) << 2;
|
||||
p[0x45f] = (zigzag[15] & 0x3F) << 2;
|
||||
|
||||
zigzag += 16;
|
||||
} while (--i != 0);
|
||||
initZigzag(work);
|
||||
|
||||
r = TMCJPEGDEC_get_wbyte(&marker, work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
|
||||
if (marker != 0xFFD8) {
|
||||
return -0x20;
|
||||
}
|
||||
|
||||
marker = 0;
|
||||
r = TMCJPEGDEC_parse_para(&marker, work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
|
||||
if (marker != 0xFFC0) {
|
||||
return -0x10;
|
||||
}
|
||||
|
||||
r = TMCJPEGDEC_parse_sof(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
s32 TMCJPEGDEC_imageend(TMCCJPEGDecWork* work) {
|
||||
if (work->pState->unk_0x21 == 1)
|
||||
@@ -783,266 +634,85 @@ s32 TMCJPEGDEC_restart_interval(TMCCJPEGDecWork* work, u32 maxMCU, u32 mcuCount)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __MWERKS__
|
||||
static asm s32 TMCJPEGDEC_parse_para(register u16* marker, register TMCCJPEGDecWork* work) {
|
||||
nofralloc
|
||||
|
||||
stwu r1, -0x30(r1)
|
||||
mflr r0
|
||||
stw r0, 0x34(r1)
|
||||
stmw r26, 0x18(r1)
|
||||
mr r28, r3
|
||||
mr r29, r4
|
||||
li r31, 0
|
||||
lis r26, 1
|
||||
li r27, 1
|
||||
lhz r30, 0(r3)
|
||||
|
||||
_parse_para_loop:
|
||||
mr r4, r29
|
||||
addi r3, r1, 0x12
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_marker_loaded
|
||||
cmpwi r3, -0x90
|
||||
bne _parse_para_return
|
||||
lhz r0, 0x12(r1)
|
||||
cmplwi r0, 0xffd9
|
||||
bne _parse_para_return
|
||||
li r3, 0
|
||||
b _parse_para_marker_loaded
|
||||
b _parse_para_return
|
||||
|
||||
_parse_para_marker_loaded:
|
||||
lhz r0, 0x12(r1)
|
||||
b _parse_para_marker_condition
|
||||
|
||||
_parse_para_marker_byte:
|
||||
mr r4, r29
|
||||
addi r3, r1, 8
|
||||
bl TMCJPEGDEC_get_byte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_marker_byte_loaded
|
||||
b _parse_para_return
|
||||
|
||||
_parse_para_marker_byte_loaded:
|
||||
lbz r0, 8(r1)
|
||||
ori r0, r0, 0xff00
|
||||
sth r0, 0x12(r1)
|
||||
|
||||
_parse_para_marker_condition:
|
||||
clrlwi r4, r0, 0x10
|
||||
cmplwi r4, 0xffff
|
||||
beq _parse_para_marker_byte
|
||||
cmplwi r4, 0xffe0
|
||||
blt _parse_para_switch
|
||||
cmplwi r4, 0xffef
|
||||
bgt _parse_para_switch
|
||||
mr r4, r29
|
||||
addi r3, r1, 0x10
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_app_length
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_app_length:
|
||||
lhz r3, 0x10(r1)
|
||||
cmplwi r3, 2
|
||||
bge _parse_para_app_move
|
||||
li r3, -0x45
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_app_move:
|
||||
addi r0, r3, -2
|
||||
mr r4, r29
|
||||
sth r0, 0x10(r1)
|
||||
clrlwi r3, r0, 0x10
|
||||
bl TMCJPEGDEC_move_ptr
|
||||
srawi r0, r3, 0x1f
|
||||
and r3, r3, r0
|
||||
srawi r0, r3, 0x1f
|
||||
and r3, r3, r0
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_switch:
|
||||
addi r0, r26, -0x27
|
||||
cmpw r4, r0
|
||||
beq _parse_para_eoi
|
||||
bge _parse_para_switch_ge_ffc2
|
||||
addi r0, r26, -0x3e
|
||||
cmpw r4, r0
|
||||
beq _parse_para_sos
|
||||
bge _parse_para_switch_ge_ffc4
|
||||
addi r0, r26, -0x40
|
||||
cmpw r4, r0
|
||||
beq _parse_para_sof
|
||||
b _parse_para_unknown
|
||||
|
||||
_parse_para_switch_ge_ffc4:
|
||||
addi r0, r26, -0x3c
|
||||
cmpw r4, r0
|
||||
beq _parse_para_dht
|
||||
b _parse_para_unknown
|
||||
|
||||
_parse_para_switch_ge_ffc2:
|
||||
addi r0, r26, -0x23
|
||||
cmpw r4, r0
|
||||
beq _parse_para_dri
|
||||
bge _parse_para_switch_ge_ffdc
|
||||
addi r0, r26, -0x25
|
||||
cmpw r4, r0
|
||||
beq _parse_para_dqt
|
||||
bge _parse_para_dnl
|
||||
b _parse_para_com_marker
|
||||
|
||||
_parse_para_switch_ge_ffdc:
|
||||
addi r0, r26, -2
|
||||
cmpw r4, r0
|
||||
beq _parse_para_com
|
||||
b _parse_para_unknown
|
||||
|
||||
_parse_para_dht:
|
||||
mr r3, r30
|
||||
mr r4, r29
|
||||
bl TMCJPEGDEC_parse_dht
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dqt:
|
||||
mr r3, r29
|
||||
bl TMCJPEGDEC_parse_dqt
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dri:
|
||||
mr r4, r29
|
||||
addi r3, r1, 0xe
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_dri_length
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dri_length:
|
||||
lhz r0, 0xe(r1)
|
||||
cmplwi r0, 4
|
||||
beq _parse_para_dri_value
|
||||
li r3, -0x42
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dri_value:
|
||||
mr r4, r29
|
||||
addi r3, r1, 0xe
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_dri_store
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dri_store:
|
||||
lhz r0, 0xe(r1)
|
||||
li r3, 0
|
||||
sth r0, 0x181a(r29)
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dnl:
|
||||
mr r4, r29
|
||||
addi r3, r1, 0xc
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_dnl_length
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dnl_length:
|
||||
lhz r0, 0xc(r1)
|
||||
cmplwi r0, 4
|
||||
beq _parse_para_dnl_value
|
||||
li r3, -0x43
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dnl_value:
|
||||
mr r4, r29
|
||||
addi r3, r1, 0xc
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_dnl_store
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_dnl_store:
|
||||
lhz r0, 0xc(r1)
|
||||
li r3, 0
|
||||
sth r0, 0x17f2(r29)
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_com:
|
||||
mr r4, r29
|
||||
addi r3, r1, 0xa
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_com_length
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_com_length:
|
||||
lhz r3, 0xa(r1)
|
||||
cmplwi r3, 2
|
||||
bge _parse_para_com_move
|
||||
li r3, -0x44
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_com_move:
|
||||
addi r0, r3, -2
|
||||
mr r4, r29
|
||||
sth r0, 0xa(r1)
|
||||
clrlwi r3, r0, 0x10
|
||||
bl TMCJPEGDEC_move_ptr
|
||||
srawi r0, r3, 0x1f
|
||||
and r3, r3, r0
|
||||
srawi r0, r3, 0x1f
|
||||
and r3, r3, r0
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_sof:
|
||||
li r31, 1
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_sos:
|
||||
li r31, 1
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_com_marker:
|
||||
li r31, 1
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_eoi:
|
||||
stb r27, 0x181c(r29)
|
||||
li r31, 1
|
||||
b _parse_para_check_result
|
||||
|
||||
_parse_para_unknown:
|
||||
li r3, -0x2f
|
||||
|
||||
_parse_para_check_result:
|
||||
cmpwi r3, 0
|
||||
bge _parse_para_keep_going
|
||||
li r31, 1
|
||||
|
||||
_parse_para_keep_going:
|
||||
cmpwi r31, 0
|
||||
beq _parse_para_loop
|
||||
lhz r0, 0x12(r1)
|
||||
sth r0, 0(r28)
|
||||
|
||||
_parse_para_return:
|
||||
lmw r26, 0x18(r1)
|
||||
lwz r0, 0x34(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x30
|
||||
blr
|
||||
static inline s32 skipSegmentData(u16 length, TMCCJPEGDecWork* work) {
|
||||
s32 result = TMCJPEGDEC_move_ptr(length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
|
||||
static inline s32 parseApplication(TMCCJPEGDecWork* work) {
|
||||
u16 length;
|
||||
s32 result = TMCJPEGDEC_get_wbyte(&length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
if (length < 2) {
|
||||
return -0x45;
|
||||
}
|
||||
length -= 2;
|
||||
result = skipSegmentData(length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline s32 parseRestartInterval(TMCCJPEGDecWork* work) {
|
||||
u16 length;
|
||||
s32 result = TMCJPEGDEC_get_wbyte(&length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
if (length != 4) {
|
||||
return -0x42;
|
||||
}
|
||||
result = TMCJPEGDEC_get_wbyte(&length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
work->restartInterval = length;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline s32 parseNumberOfLines(TMCCJPEGDecWork* work) {
|
||||
u16 length;
|
||||
s32 result = TMCJPEGDEC_get_wbyte(&length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
if (length != 4) {
|
||||
return -0x43;
|
||||
}
|
||||
result = TMCJPEGDEC_get_wbyte(&length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
work->frameHeight = length;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline s32 parseComment(TMCCJPEGDecWork* work) {
|
||||
u16 length;
|
||||
s32 result = TMCJPEGDEC_get_wbyte(&length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
if (length < 2) {
|
||||
return -0x44;
|
||||
}
|
||||
length -= 2;
|
||||
result = skipSegmentData(length, work);
|
||||
if (result < 0) {
|
||||
return result;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static s32 TMCJPEGDEC_parse_para(u16* marker, TMCCJPEGDecWork* work) {
|
||||
u8 byte;
|
||||
u16 local;
|
||||
u16 appSize;
|
||||
u16 driSize;
|
||||
u16 dnlSize;
|
||||
u16 comSize;
|
||||
s32 result;
|
||||
|
||||
u32 keepGoing = 0;
|
||||
@@ -1067,18 +737,7 @@ static s32 TMCJPEGDEC_parse_para(u16* marker, TMCCJPEGDecWork* work) {
|
||||
}
|
||||
|
||||
if (local >= 0xFFE0 && local <= 0xFFEF) {
|
||||
result = TMCJPEGDEC_get_wbyte(&appSize, work);
|
||||
if (result < 0) {
|
||||
goto _check;
|
||||
}
|
||||
if (appSize < 2) {
|
||||
result = -0x45;
|
||||
goto _check;
|
||||
}
|
||||
appSize -= 2;
|
||||
result = TMCJPEGDEC_move_ptr(appSize, work);
|
||||
result = result & (result >> 31);
|
||||
result = result & (result >> 31);
|
||||
result = parseApplication(work);
|
||||
} else {
|
||||
switch ((s32)local) {
|
||||
case 0xFFC4: {
|
||||
@@ -1090,48 +749,15 @@ static s32 TMCJPEGDEC_parse_para(u16* marker, TMCCJPEGDecWork* work) {
|
||||
break;
|
||||
}
|
||||
case 0xFFDD: {
|
||||
result = TMCJPEGDEC_get_wbyte(&driSize, work);
|
||||
if (result >= 0) {
|
||||
if (driSize != 4) {
|
||||
result = -0x42;
|
||||
} else {
|
||||
result = TMCJPEGDEC_get_wbyte(&driSize, work);
|
||||
if (result < 0) {
|
||||
goto _check;
|
||||
}
|
||||
work->restartInterval = driSize;
|
||||
result = 0;
|
||||
}
|
||||
}
|
||||
result = parseRestartInterval(work);
|
||||
break;
|
||||
}
|
||||
case 0xFFDC: {
|
||||
result = TMCJPEGDEC_get_wbyte(&dnlSize, work);
|
||||
if (result >= 0) {
|
||||
if (dnlSize != 4) {
|
||||
result = -0x43;
|
||||
} else {
|
||||
result = TMCJPEGDEC_get_wbyte(&dnlSize, work);
|
||||
if (result >= 0) {
|
||||
work->frameHeight = dnlSize;
|
||||
result = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
result = parseNumberOfLines(work);
|
||||
break;
|
||||
}
|
||||
case 0xFFFE: {
|
||||
result = TMCJPEGDEC_get_wbyte(&comSize, work);
|
||||
if (result >= 0) {
|
||||
if (comSize < 2) {
|
||||
result = -0x44;
|
||||
} else {
|
||||
comSize -= 2;
|
||||
result = TMCJPEGDEC_move_ptr(comSize, work);
|
||||
result = result & result >> 31;
|
||||
result = result & result >> 31;
|
||||
}
|
||||
}
|
||||
result = parseComment(work);
|
||||
break;
|
||||
}
|
||||
case 0xFFC0: {
|
||||
@@ -1158,7 +784,6 @@ static s32 TMCJPEGDEC_parse_para(u16* marker, TMCCJPEGDecWork* work) {
|
||||
}
|
||||
}
|
||||
|
||||
_check:
|
||||
if (result < 0) {
|
||||
keepGoing = 1;
|
||||
}
|
||||
@@ -1167,7 +792,6 @@ static s32 TMCJPEGDEC_parse_para(u16* marker, TMCCJPEGDecWork* work) {
|
||||
*marker = local;
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __MWERKS__
|
||||
static asm s32 TMCJPEGDEC_parse_dht(register s32 first, register TMCCJPEGDecWork* work) {
|
||||
@@ -1959,167 +1583,19 @@ static s32 TMCJPEGDEC_parse_sof(TMCCJPEGDecWork* work) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __MWERKS__
|
||||
static asm s32 TMCJPEGDEC_parse_sos(register TMCCJPEGDecWork* work) {
|
||||
nofralloc
|
||||
|
||||
stwu r1, -0x30(r1)
|
||||
mflr r0
|
||||
stw r0, 0x34(r1)
|
||||
stmw r27, 0x1c(r1)
|
||||
mr r28, r3
|
||||
addi r30, r3, 0x2c
|
||||
addi r29, r3, 0x58
|
||||
addi r3, r1, 0xa
|
||||
mr r4, r28
|
||||
bl TMCJPEGDEC_get_wbyte
|
||||
cmpwi r3, 0
|
||||
bge _parse_sos_have_length
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_have_length:
|
||||
lhz r0, 0xa(r1)
|
||||
cmplwi r0, 2
|
||||
bge _parse_sos_have_count
|
||||
li r3, -0x51
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_have_count:
|
||||
mr r4, r28
|
||||
addi r3, r1, 8
|
||||
bl TMCJPEGDEC_get_byte
|
||||
cmpwi r3, 0
|
||||
bge _parse_sos_store_count
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_store_count:
|
||||
lbz r3, 8(r1)
|
||||
cmplwi r3, 4
|
||||
stb r3, 0x180b(r28)
|
||||
bgt _parse_sos_bad_count
|
||||
lbz r0, 0x180a(r28)
|
||||
cmplw r3, r0
|
||||
beq _parse_sos_count_valid
|
||||
|
||||
_parse_sos_bad_count:
|
||||
li r3, -0x51
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_count_valid:
|
||||
li r31, 0
|
||||
b _parse_sos_loop_condition
|
||||
|
||||
_parse_sos_loop:
|
||||
mr r4, r28
|
||||
addi r3, r1, 8
|
||||
bl TMCJPEGDEC_get_byte
|
||||
cmpwi r3, 0
|
||||
bge _parse_sos_have_component
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_have_component:
|
||||
lbz r0, 0x180a(r28)
|
||||
li r5, 0
|
||||
lbz r4, 8(r1)
|
||||
mtctr r0
|
||||
cmpwi r0, 0
|
||||
ble _parse_sos_bad_component
|
||||
|
||||
_parse_sos_find_component:
|
||||
add r3, r30, r5
|
||||
lbz r0, 0x14(r3)
|
||||
cmpw r4, r0
|
||||
bne _parse_sos_next_component
|
||||
stbx r5, r30, r31
|
||||
add r27, r30, r31
|
||||
b _parse_sos_found_component
|
||||
|
||||
_parse_sos_next_component:
|
||||
addi r5, r5, 1
|
||||
bdnz _parse_sos_find_component
|
||||
|
||||
_parse_sos_bad_component:
|
||||
li r3, -0x51
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_found_component:
|
||||
mr r4, r28
|
||||
addi r3, r1, 8
|
||||
bl TMCJPEGDEC_get_byte
|
||||
cmpwi r3, 0
|
||||
bge _parse_sos_have_tables
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_have_tables:
|
||||
lbz r0, 8(r1)
|
||||
srawi r5, r0, 4
|
||||
clrlwi r6, r0, 0x1c
|
||||
cmpwi r5, 1
|
||||
bgt _parse_sos_bad_tables
|
||||
cmpwi r6, 1
|
||||
ble _parse_sos_tables_valid
|
||||
|
||||
_parse_sos_bad_tables:
|
||||
li r3, -0x51
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_tables_valid:
|
||||
lbz r0, 0(r27)
|
||||
add r3, r29, r5
|
||||
add r4, r30, r0
|
||||
stb r5, 0x1c(r4)
|
||||
lbz r0, 0(r27)
|
||||
add r4, r30, r0
|
||||
stb r6, 0x20(r4)
|
||||
lbz r0, 0x1794(r3)
|
||||
cmplwi r0, 1
|
||||
beq _parse_sos_ac_valid
|
||||
li r3, -0x40
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_ac_valid:
|
||||
add r3, r29, r6
|
||||
lbz r0, 0x1796(r3)
|
||||
cmplwi r0, 1
|
||||
beq _parse_sos_quant_valid
|
||||
li r3, -0x40
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_quant_valid:
|
||||
lbz r0, 0x18(r27)
|
||||
add r3, r29, r0
|
||||
lbz r0, 0x1790(r3)
|
||||
cmplwi r0, 1
|
||||
beq _parse_sos_next
|
||||
li r3, -0x41
|
||||
b _parse_sos_return
|
||||
|
||||
_parse_sos_next:
|
||||
addi r31, r31, 1
|
||||
|
||||
_parse_sos_loop_condition:
|
||||
lbz r0, 0x180b(r28)
|
||||
cmpw r31, r0
|
||||
blt _parse_sos_loop
|
||||
mr r4, r28
|
||||
li r3, 3
|
||||
bl TMCJPEGDEC_move_ptr
|
||||
srawi r0, r3, 0x1f
|
||||
and r3, r3, r0
|
||||
|
||||
_parse_sos_return:
|
||||
lmw r27, 0x1c(r1)
|
||||
lwz r0, 0x34(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x30
|
||||
blr
|
||||
}
|
||||
#else
|
||||
static s32 TMCJPEGDEC_parse_sos(TMCCJPEGDecWork* work) {
|
||||
typedef struct {
|
||||
u8 map[4];
|
||||
u32 dcPredict[4];
|
||||
u8 id[4];
|
||||
u8 quantTable[4];
|
||||
u8 dcTable[4];
|
||||
u8 acTable[4];
|
||||
} TMCComponentInfo;
|
||||
s32 idx;
|
||||
u8* compPtr;
|
||||
TMCComponentInfo* components;
|
||||
TMCUnknownInfo* scalePtr;
|
||||
u8* mapPtr;
|
||||
TMCComponentInfo* mapPtr;
|
||||
|
||||
s32 dcTbl;
|
||||
s32 acTbl;
|
||||
@@ -2130,7 +1606,7 @@ static s32 TMCJPEGDEC_parse_sos(TMCCJPEGDecWork* work) {
|
||||
s32 ci;
|
||||
u8 scanByte;
|
||||
|
||||
compPtr = (u8*)work->compMap;
|
||||
components = (TMCComponentInfo*)work->compMap;
|
||||
scalePtr = (TMCUnknownInfo*)&work->scaleFlag;
|
||||
|
||||
r = TMCJPEGDEC_get_wbyte(&len, work);
|
||||
@@ -2146,12 +1622,12 @@ static s32 TMCJPEGDEC_parse_sos(TMCCJPEGDecWork* work) {
|
||||
return r;
|
||||
}
|
||||
|
||||
if (scanByte > 4 || scanByte != work->compCount) {
|
||||
work->scanCompCount = scanByte;
|
||||
|
||||
if (work->scanCompCount > 4 || work->scanCompCount != work->compCount) {
|
||||
return -0x51;
|
||||
}
|
||||
|
||||
work->scanCompCount = scanByte;
|
||||
|
||||
for (idx = 0; idx < (s32)work->scanCompCount; idx++) {
|
||||
r = TMCJPEGDEC_get_byte(&scanByte, work);
|
||||
if (r < 0) {
|
||||
@@ -2159,18 +1635,15 @@ static s32 TMCJPEGDEC_parse_sos(TMCCJPEGDecWork* work) {
|
||||
}
|
||||
|
||||
for (ci = 0; ci < (s32)work->compCount; ci++) {
|
||||
if ((s32)compPtr[ci + 0x14] == (s32)scanByte) {
|
||||
compPtr[idx] = ci;
|
||||
mapPtr = compPtr + idx;
|
||||
break;
|
||||
if ((s32)scanByte == (s32)components->id[ci]) {
|
||||
components->map[idx] = ci;
|
||||
mapPtr = (TMCComponentInfo*)&components->map[idx];
|
||||
goto componentFound;
|
||||
}
|
||||
}
|
||||
return -0x51;
|
||||
|
||||
// TODO: This isn't right...
|
||||
if (ci >= (s32)work->compCount) {
|
||||
return -0x51;
|
||||
}
|
||||
|
||||
componentFound:
|
||||
r = TMCJPEGDEC_get_byte(&scanByte, work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
@@ -2183,8 +1656,8 @@ static s32 TMCJPEGDEC_parse_sos(TMCCJPEGDecWork* work) {
|
||||
return -0x51;
|
||||
}
|
||||
|
||||
compPtr[*mapPtr + 0x1c] = dcTbl;
|
||||
compPtr[*mapPtr + 0x20] = acTbl;
|
||||
components->dcTable[mapPtr->map[0]] = dcTbl;
|
||||
components->acTable[mapPtr->map[0]] = acTbl;
|
||||
|
||||
if (scalePtr->dcTblFlag[dcTbl] != 1) {
|
||||
return -0x40;
|
||||
@@ -2194,15 +1667,17 @@ static s32 TMCJPEGDEC_parse_sos(TMCCJPEGDecWork* work) {
|
||||
return -0x40;
|
||||
}
|
||||
|
||||
if (scalePtr->quantTblFlag[mapPtr[0x18]] != 1) {
|
||||
if (scalePtr->quantTblFlag[mapPtr->quantTable[0]] != 1) {
|
||||
return -0x41;
|
||||
}
|
||||
}
|
||||
|
||||
moveResult = TMCJPEGDEC_move_ptr(3, work);
|
||||
return moveResult & (moveResult >> 31);
|
||||
if (moveResult < 0) {
|
||||
return moveResult;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __MWERKS__
|
||||
asm s32 TMCJPEGDEC_err_restart(register TMCCJPEGDecWork* work) {
|
||||
|
||||
@@ -4,219 +4,21 @@ extern void* memset(void* dest, int value, unsigned long size);
|
||||
|
||||
static s32 TMCJPEGDEC_vl_decode_rc(u32* huff_tbl, u8* huff_sym, TMCCJPEGDecWork* work);
|
||||
|
||||
#ifdef __MWERKS__
|
||||
asm s32 TMCJPEGDEC_decode_iquant_rc(register s32* block, register u8* conv_row_ptr, register u32* dc_predict_row_ptr, register TMCCJPEGDecWork* work) {
|
||||
nofralloc
|
||||
static inline s32 readCoefficientBits(TMCCJPEGDecWork* work, s32 count) {
|
||||
u32 range = 1UL << count;
|
||||
u32 mask = range - 1;
|
||||
s32 value;
|
||||
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
stmw r21, 0x14(r1)
|
||||
mr r22, r3
|
||||
mr r23, r4
|
||||
mr r25, r5
|
||||
mr r24, r6
|
||||
lwz r0, 4(r6)
|
||||
lwz r21, 0x498(r6)
|
||||
cmpwi r0, 8
|
||||
bgt _decode_iquant_rc_have_dc_bits
|
||||
mr r3, r24
|
||||
bl TMCJPEGDEC_load_buff
|
||||
cmpwi r3, 0
|
||||
bge _decode_iquant_rc_have_dc_bits
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_have_dc_bits:
|
||||
lwz r4, 4(r24)
|
||||
lwz r3, 0(r24)
|
||||
addi r0, r4, -8
|
||||
srw r0, r3, r0
|
||||
rlwinm r0, r0, 2, 0x16, 0x1d
|
||||
lhzx r5, r21, r0
|
||||
cmpwi r5, 0
|
||||
beq _decode_iquant_rc_decode_dc
|
||||
add r3, r21, r0
|
||||
subf r0, r5, r4
|
||||
lhz r21, 2(r3)
|
||||
stw r0, 4(r24)
|
||||
b _decode_iquant_rc_have_dc_value
|
||||
|
||||
_decode_iquant_rc_decode_dc:
|
||||
lwz r3, 0x49c(r24)
|
||||
mr r5, r24
|
||||
lwz r4, 0x4a0(r24)
|
||||
bl TMCJPEGDEC_vl_decode_rc
|
||||
cmpwi r3, 0
|
||||
mr r21, r3
|
||||
bge _decode_iquant_rc_have_dc_value
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_have_dc_value:
|
||||
cmpwi r21, 0
|
||||
beq _decode_iquant_rc_store_dc
|
||||
lwz r0, 4(r24)
|
||||
cmpw r0, r21
|
||||
bgt _decode_iquant_rc_read_dc_bits
|
||||
mr r3, r24
|
||||
bl TMCJPEGDEC_load_buff
|
||||
cmpwi r3, 0
|
||||
bge _decode_iquant_rc_read_dc_bits
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_read_dc_bits:
|
||||
lwz r0, 4(r24)
|
||||
li r4, 1
|
||||
lwz r3, 0(r24)
|
||||
slw r6, r4, r21
|
||||
subf r4, r21, r0
|
||||
addi r5, r6, -1
|
||||
srwi r0, r6, 1
|
||||
srw r3, r3, r4
|
||||
stw r4, 4(r24)
|
||||
and r3, r5, r3
|
||||
cmplw r0, r3
|
||||
ble _decode_iquant_rc_store_dc_bits
|
||||
subf r3, r5, r3
|
||||
|
||||
_decode_iquant_rc_store_dc_bits:
|
||||
lwz r0, 0(r25)
|
||||
add r0, r0, r3
|
||||
stw r0, 0(r25)
|
||||
|
||||
_decode_iquant_rc_store_dc:
|
||||
lwz r5, 0(r25)
|
||||
addi r3, r22, 4
|
||||
lwz r0, 0(r23)
|
||||
li r4, 0
|
||||
mullw r0, r5, r0
|
||||
stw r0, 0(r22)
|
||||
lwz r30, 0x4a8(r24)
|
||||
lwz r26, 0x4ac(r24)
|
||||
lwz r25, 0x4b0(r24)
|
||||
lwz r27, 0x1834(r24)
|
||||
lwz r5, 0x1838(r24)
|
||||
bl memset
|
||||
lis r21, TMCJPEGDEC_Zigzag_data@ha
|
||||
li r28, 1
|
||||
addi r21, r21, TMCJPEGDEC_Zigzag_data@l
|
||||
li r31, 1
|
||||
|
||||
_decode_iquant_rc_ac_loop:
|
||||
lwz r0, 4(r24)
|
||||
cmpwi r0, 8
|
||||
bgt _decode_iquant_rc_have_ac_bits
|
||||
mr r3, r24
|
||||
bl TMCJPEGDEC_load_buff
|
||||
cmpwi r3, 0
|
||||
bge _decode_iquant_rc_have_ac_bits
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_have_ac_bits:
|
||||
lwz r4, 4(r24)
|
||||
lwz r3, 0(r24)
|
||||
addi r0, r4, -8
|
||||
srw r0, r3, r0
|
||||
rlwinm r0, r0, 2, 0x16, 0x1d
|
||||
add r3, r30, r0
|
||||
lhzx r0, r30, r0
|
||||
cmpwi r0, 0
|
||||
beq _decode_iquant_rc_decode_ac
|
||||
lhz r3, 2(r3)
|
||||
subf r0, r0, r4
|
||||
stw r0, 4(r24)
|
||||
b _decode_iquant_rc_have_ac_value
|
||||
|
||||
_decode_iquant_rc_decode_ac:
|
||||
mr r3, r26
|
||||
mr r4, r25
|
||||
mr r5, r24
|
||||
bl TMCJPEGDEC_vl_decode_rc
|
||||
cmpwi r3, 0
|
||||
bge _decode_iquant_rc_have_ac_value
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_have_ac_value:
|
||||
clrlwi. r29, r3, 0x1c
|
||||
beq _decode_iquant_rc_no_ac_bits
|
||||
lwz r0, 4(r24)
|
||||
srawi r3, r3, 4
|
||||
add r28, r28, r3
|
||||
cmpw r0, r29
|
||||
bgt _decode_iquant_rc_read_ac_bits
|
||||
mr r3, r24
|
||||
bl TMCJPEGDEC_load_buff
|
||||
cmpwi r3, 0
|
||||
bge _decode_iquant_rc_read_ac_bits
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_read_ac_bits:
|
||||
cmpw r28, r27
|
||||
ble _decode_iquant_rc_store_ac
|
||||
lwz r0, 4(r24)
|
||||
cmpwi r28, 0x40
|
||||
subf r0, r29, r0
|
||||
stw r0, 4(r24)
|
||||
blt _decode_iquant_rc_increment
|
||||
li r3, -0x64
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_increment:
|
||||
addi r28, r28, 1
|
||||
b _decode_iquant_rc_loop_check
|
||||
|
||||
_decode_iquant_rc_store_ac:
|
||||
lwz r0, 4(r24)
|
||||
slw r6, r31, r29
|
||||
lwz r3, 0(r24)
|
||||
addi r5, r6, -1
|
||||
subf r4, r29, r0
|
||||
srwi r0, r6, 1
|
||||
srw r3, r3, r4
|
||||
stw r4, 4(r24)
|
||||
and r4, r5, r3
|
||||
cmplw r0, r4
|
||||
ble _decode_iquant_rc_have_extra
|
||||
subf r4, r5, r4
|
||||
|
||||
_decode_iquant_rc_have_extra:
|
||||
cmpwi r28, 0x40
|
||||
blt _decode_iquant_rc_store_coeff
|
||||
li r3, -0x64
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_store_coeff:
|
||||
lbzx r0, r21, r28
|
||||
addi r28, r28, 1
|
||||
slwi r3, r0, 2
|
||||
lwzx r0, r23, r3
|
||||
mullw r0, r4, r0
|
||||
stwx r0, r22, r3
|
||||
b _decode_iquant_rc_loop_check
|
||||
|
||||
_decode_iquant_rc_no_ac_bits:
|
||||
cmpwi r3, 0
|
||||
bne _decode_iquant_rc_zrl
|
||||
li r3, 0
|
||||
b _decode_iquant_rc_return
|
||||
|
||||
_decode_iquant_rc_zrl:
|
||||
addi r28, r28, 0x10
|
||||
|
||||
_decode_iquant_rc_loop_check:
|
||||
cmpwi r28, 0x40
|
||||
blt _decode_iquant_rc_ac_loop
|
||||
li r3, 0
|
||||
|
||||
_decode_iquant_rc_return:
|
||||
lmw r21, 0x14(r1)
|
||||
lwz r0, 0x44(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
value = work->bitCount - count;
|
||||
work->bitCount = value;
|
||||
value = (work->bitBuf >> value) & mask;
|
||||
if (range >> 1 > (u32)value) {
|
||||
value -= mask;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
#else
|
||||
|
||||
s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) {
|
||||
const u8* zztbl;
|
||||
u16* ac_fast;
|
||||
s32 t;
|
||||
s32 idx;
|
||||
@@ -231,7 +33,6 @@ s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_ro
|
||||
|
||||
s32 blk_mul;
|
||||
s32 bit_pos;
|
||||
u32 bit_data;
|
||||
|
||||
u16* dcf;
|
||||
s32* conv_row;
|
||||
@@ -248,7 +49,7 @@ s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_ro
|
||||
tmp = (work->bitBuf >> (bit_pos - 8) & 0xFF) << 2;
|
||||
val = dcf[tmp >> 1];
|
||||
if (val != 0) {
|
||||
tmp = *(u16*)((u8*)dcf + tmp + 2);
|
||||
tmp = dcf[(tmp >> 1) + 1];
|
||||
work->bitCount -= val;
|
||||
val = tmp;
|
||||
} else {
|
||||
@@ -264,16 +65,7 @@ s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_ro
|
||||
return r;
|
||||
}
|
||||
}
|
||||
tmp = 1UL << val;
|
||||
bit_pos = work->bitCount - val;
|
||||
work->bitCount = bit_pos;
|
||||
bit_data = work->bitBuf;
|
||||
|
||||
extra = tmp - 1;
|
||||
extra = extra & (bit_data >> bit_pos);
|
||||
if (tmp >> 1 > (u32)extra) {
|
||||
extra -= (tmp - 1);
|
||||
}
|
||||
extra = readCoefficientBits(work, val);
|
||||
dc_predict_row_ptr[0] += extra;
|
||||
}
|
||||
|
||||
@@ -285,9 +77,8 @@ s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_ro
|
||||
blk_size = work->blockSize;
|
||||
blk_mul = work->blockSizeMul;
|
||||
|
||||
memset((u8*)block + 4, 0, blk_mul);
|
||||
memset(block + 1, 0, blk_mul);
|
||||
|
||||
zztbl = TMCJPEGDEC_Zigzag_data;
|
||||
idx = 1;
|
||||
do {
|
||||
if (work->bitCount <= 8) {
|
||||
@@ -297,7 +88,7 @@ s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_ro
|
||||
}
|
||||
|
||||
{
|
||||
u16* ac_entry = (u16*)((u8*)ac_fast + ((work->bitBuf >> (work->bitCount - 8) & 0xFF) << 2));
|
||||
u16* ac_entry = &ac_fast[(work->bitBuf >> (work->bitCount - 8) & 0xFF) * 2];
|
||||
val = *ac_entry;
|
||||
if (val != 0) {
|
||||
tmp = val;
|
||||
@@ -328,21 +119,12 @@ s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_ro
|
||||
}
|
||||
idx++;
|
||||
} else {
|
||||
bit_pos = work->bitCount - t;
|
||||
work->bitCount = bit_pos;
|
||||
bit_data = work->bitBuf;
|
||||
|
||||
tmp = 1UL << t;
|
||||
extra = tmp - 1;
|
||||
extra = extra & (bit_data >> bit_pos);
|
||||
if (tmp >> 1 > extra) {
|
||||
extra -= tmp - 1;
|
||||
}
|
||||
extra = readCoefficientBits(work, t);
|
||||
|
||||
if (idx >= 64) {
|
||||
return TMCC_ERROR_OVERFLOW;
|
||||
}
|
||||
*(s32*)((u8*)block + zztbl[idx] * 4) = extra * conv_row[zztbl[idx]];
|
||||
block[TMCJPEGDEC_Zigzag_data[idx]] = extra * conv_row[TMCJPEGDEC_Zigzag_data[idx]];
|
||||
idx++;
|
||||
}
|
||||
} else {
|
||||
@@ -355,7 +137,6 @@ s32 TMCJPEGDEC_decode_iquant_rc(s32* block, u8* conv_row_ptr, u32* dc_predict_ro
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static s32 TMCJPEGDEC_vl_decode_rc(u32* huff_tbl, u8* huff_sym, TMCCJPEGDecWork* work) {
|
||||
s32 bit_pos;
|
||||
|
||||
@@ -242,61 +242,25 @@ L_2b0:
|
||||
blr
|
||||
}
|
||||
|
||||
asm void _CNTCACHEDeleteTitle() {
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
li r3, 0
|
||||
la r4, scCntCacheSpaceNl
|
||||
stw r0, 0x24(r1)
|
||||
stw r31, 0x1c(r1)
|
||||
stw r30, 0x18(r1)
|
||||
stw r29, 0x14(r1)
|
||||
stw r28, 0x10(r1)
|
||||
bl strtok
|
||||
li r30, 0
|
||||
li r31, -1
|
||||
b L_370
|
||||
L_304:
|
||||
stw r30, errno(r0)
|
||||
li r4, 0
|
||||
li r5, 0x10
|
||||
bl strtoull
|
||||
lwz r0, errno(r0)
|
||||
mr r28, r4
|
||||
mr r29, r3
|
||||
cmpwi r0, 0
|
||||
bne L_364
|
||||
and r0, r3, r31
|
||||
cmplwi r0, 1
|
||||
beq L_364
|
||||
bl _CNTCACHEIsTitleRemovable
|
||||
cmpwi r3, 1
|
||||
bne L_350
|
||||
mr r4, r28
|
||||
mr r3, r29
|
||||
bl ES_DeleteTitle
|
||||
b L_364
|
||||
L_350:
|
||||
cmpwi r3, 0
|
||||
bne L_364
|
||||
mr r4, r28
|
||||
mr r3, r29
|
||||
bl ES_DeleteTitleContent
|
||||
L_364:
|
||||
li r3, 0
|
||||
la r4, scCntCacheSpaceNl
|
||||
bl strtok
|
||||
L_370:
|
||||
cmpwi r3, 0
|
||||
bne L_304
|
||||
lwz r0, 0x24(r1)
|
||||
lwz r31, 0x1c(r1)
|
||||
lwz r30, 0x18(r1)
|
||||
lwz r29, 0x14(r1)
|
||||
lwz r28, 0x10(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
void _CNTCACHEDeleteTitle() {
|
||||
char* token = strtok(NULL, scCntCacheSpaceNl);
|
||||
|
||||
while (token != NULL) {
|
||||
ESTitleId titleId;
|
||||
int removable;
|
||||
|
||||
errno = 0;
|
||||
titleId = strtoull(token, NULL, 16);
|
||||
if (errno == 0 && (u32)ES_TITLE_TYPE(titleId) != 1) {
|
||||
removable = _CNTCACHEIsTitleRemovable(titleId);
|
||||
if (removable == 1) {
|
||||
ES_DeleteTitle(titleId);
|
||||
} else if (removable == 0) {
|
||||
ES_DeleteTitleContent(titleId);
|
||||
}
|
||||
}
|
||||
token = strtok(NULL, scCntCacheSpaceNl);
|
||||
}
|
||||
}
|
||||
|
||||
asm int _CNTCACHEIsTitleRemovable(ESTitleId titleId) {
|
||||
|
||||
@@ -781,114 +781,11 @@ static ISD_Error sduGetOCR(SDDev* dev, u32* data) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
asm ISD_Error ISD_GetCardSize(register SDDev* dev, register u32* outSize, register u32* outSize2, register u32* outSectorSize) {
|
||||
nofralloc
|
||||
|
||||
stwu r1, -0x30(r1)
|
||||
mflr r0
|
||||
stw r0, 0x34(r1)
|
||||
stw r31, 0x2c(r1)
|
||||
mr r31, r6
|
||||
stw r30, 0x28(r1)
|
||||
mr r30, r5
|
||||
li r5, 0x10
|
||||
stw r29, 0x24(r1)
|
||||
mr r29, r4
|
||||
li r4, 0
|
||||
stw r28, 0x20(r1)
|
||||
mr r28, r3
|
||||
addi r3, r1, 8
|
||||
bl memset
|
||||
mr r3, r28
|
||||
addi r5, r1, 8
|
||||
li r4, 9
|
||||
li r6, 0x10
|
||||
bl ISD_ReadCardRegister
|
||||
cmpwi r3, 0
|
||||
beq ISD_GetCardSize_success
|
||||
b ISD_GetCardSize_return
|
||||
|
||||
ISD_GetCardSize_success:
|
||||
lwz r0, 0x14(r1)
|
||||
rlwinm. r0, r0, 0xa, 0x1e, 0x1f
|
||||
beq ISD_GetCardSize_standard
|
||||
lwz r0, 0xc(r1)
|
||||
li r5, 0x80
|
||||
rlwinm r3, r0, 0x18, 0xa, 0x1f
|
||||
addi r0, r3, 1
|
||||
slwi r3, r0, 0xa
|
||||
rlwinm r0, r0, 3, 7, 0x1c
|
||||
b ISD_GetCardSize_store
|
||||
|
||||
ISD_GetCardSize_standard:
|
||||
lwz r3, 0x10(r1)
|
||||
li r0, 9
|
||||
lwz r7, 0xc(r1)
|
||||
rlwinm r4, r3, 0x18, 0x1c, 0x1f
|
||||
cmplwi r4, 9
|
||||
srwi r6, r7, 0x16
|
||||
rlwimi r6, r3, 0xa, 0x14, 0x15
|
||||
rlwinm r3, r7, 0x19, 0x1d, 0x1f
|
||||
blt ISD_GetCardSize_clamp_high
|
||||
mr r0, r4
|
||||
ISD_GetCardSize_clamp_high:
|
||||
cmplwi r0, 0xb
|
||||
li r4, 0xb
|
||||
bgt ISD_GetCardSize_clamp_done
|
||||
mr r4, r0
|
||||
ISD_GetCardSize_clamp_done:
|
||||
addi r0, r3, 2
|
||||
li r5, 1
|
||||
addi r3, r6, 1
|
||||
addi r4, r4, -9
|
||||
slw r0, r5, r0
|
||||
lwz r6, 8(r1)
|
||||
mullw r0, r3, r0
|
||||
slw r3, r5, r4
|
||||
srwi r5, r6, 0x1f
|
||||
rlwimi r5, r7, 1, 0x19, 0x1e
|
||||
mullw r3, r3, r0
|
||||
addi r5, r5, 1
|
||||
slwi r0, r3, 9
|
||||
divwu r0, r0, r5
|
||||
srw r0, r0, r4
|
||||
|
||||
ISD_GetCardSize_store:
|
||||
cmpwi r29, 0
|
||||
stw r5, 0x18(r28)
|
||||
stw r0, 0x1c(r28)
|
||||
stw r3, 0x20(r28)
|
||||
beq ISD_GetCardSize_no_outSize
|
||||
stw r3, 0(r29)
|
||||
ISD_GetCardSize_no_outSize:
|
||||
cmpwi r30, 0
|
||||
beq ISD_GetCardSize_no_outSize2
|
||||
stw r3, 0(r30)
|
||||
ISD_GetCardSize_no_outSize2:
|
||||
cmpwi r31, 0
|
||||
beq ISD_GetCardSize_success_return
|
||||
li r0, 0x200
|
||||
stw r0, 0(r31)
|
||||
ISD_GetCardSize_success_return:
|
||||
li r3, 0
|
||||
|
||||
ISD_GetCardSize_return:
|
||||
lwz r0, 0x34(r1)
|
||||
lwz r31, 0x2c(r1)
|
||||
lwz r30, 0x28(r1)
|
||||
lwz r29, 0x24(r1)
|
||||
lwz r28, 0x20(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x30
|
||||
blr
|
||||
}
|
||||
#else
|
||||
ISD_Error ISD_GetCardSize(SDDev* dev, u32* outSize, u32* outSize2, u32* outSectorSize) {
|
||||
ISD_Error ret;
|
||||
u32 out0;
|
||||
u32 out1;
|
||||
u32 out2;
|
||||
u32 eraseBlockCount;
|
||||
u32 sectorCount;
|
||||
u32 eraseBlockSize;
|
||||
|
||||
u32 resp[4];
|
||||
memset(resp, 0, sizeof(resp));
|
||||
@@ -899,27 +796,33 @@ ISD_Error ISD_GetCardSize(SDDev* dev, u32* outSize, u32* outSize2, u32* outSecto
|
||||
}
|
||||
|
||||
if ((resp[3] >> 0x16) & 3) {
|
||||
out0 = 0x80;
|
||||
out2 = (((resp[1] >> 8) & 0x3FFFFF) + 1) * 512;
|
||||
out1 = ((((resp[1] >> 8) & 0x3FFFFF) + 1) * 8) & 0x01FFFFF8;
|
||||
eraseBlockSize = 0x80;
|
||||
sectorCount = (((resp[1] >> 8) & 0x3FFFFF) + 1) * 1024;
|
||||
eraseBlockCount = ((((resp[1] >> 8) & 0x3FFFFF) + 1) * 8) & 0x01FFFFF8;
|
||||
} else {
|
||||
u32 tmp = (((resp[2] >> 8) & 0xF) >= 9 ? ((resp[2] >> 8) & 0xF) : 9);
|
||||
tmp = tmp <= 11 ? tmp : 11;
|
||||
u32 readBlockLength = (resp[2] >> 8) & 0xF;
|
||||
u32 capacity = ((resp[2] & 3) << 10) | (resp[1] >> 22);
|
||||
u32 blockScale;
|
||||
u32 sizeMultiplier = (resp[1] >> 7) & 7;
|
||||
|
||||
out2 = (1 << (tmp - 9)) * (((((resp[1] >> 0x16) & ~0xC00) | ((resp[2] << 10) & 0xC00)) + 1) * (1 << (((resp[1] >> 7) & 7) + 2)));
|
||||
out0 = (((resp[0] >> 0x1F) & ~0x7E) | ((resp[1] << 1) & 0x7E)) + 1;
|
||||
out1 = ((out2 << 9) / out0) >> (tmp - 9);
|
||||
readBlockLength = readBlockLength >= 9 ? readBlockLength : 9;
|
||||
readBlockLength = readBlockLength <= 11 ? readBlockLength : 11;
|
||||
|
||||
eraseBlockSize = (((resp[1] & 0x3F) << 1) | (resp[0] >> 31)) + 1;
|
||||
blockScale = 1 << (readBlockLength - 9);
|
||||
sectorCount = ((capacity + 1) * (1 << (sizeMultiplier + 2))) * blockScale;
|
||||
eraseBlockCount = ((sectorCount << 9) / eraseBlockSize) >> (readBlockLength - 9);
|
||||
}
|
||||
|
||||
dev->SDSectorSize = out0;
|
||||
dev->SDSectorNum = out1;
|
||||
dev->SDDevSize = out2;
|
||||
dev->SDSectorSize = eraseBlockSize;
|
||||
dev->SDSectorNum = eraseBlockCount;
|
||||
dev->SDDevSize = sectorCount;
|
||||
|
||||
if (outSize != NULL) {
|
||||
*outSize = out2;
|
||||
*outSize = sectorCount;
|
||||
}
|
||||
if (outSize2 != NULL) {
|
||||
*outSize2 = out2;
|
||||
*outSize2 = sectorCount;
|
||||
}
|
||||
if (outSectorSize != NULL) {
|
||||
*outSectorSize = 512;
|
||||
@@ -927,7 +830,6 @@ ISD_Error ISD_GetCardSize(SDDev* dev, u32* outSize, u32* outSize2, u32* outSecto
|
||||
|
||||
return SD_ERROR_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
ISD_Error ISD_RegisterDeviceIntrHandler(SDDev* dev, SDDevIntrCallback intCB, void* arg) {
|
||||
u32 state;
|
||||
|
||||
@@ -563,6 +563,17 @@ static void WPADiGetScSettings() {
|
||||
_scSetting = FALSE;
|
||||
}
|
||||
|
||||
static void __reconnect(BOOL exec) {
|
||||
DEBUGPrint("Reconnect Start!!\n");
|
||||
|
||||
BTA_DmSendHciReset();
|
||||
|
||||
OSCancelAlarm(&_managerAlarm);
|
||||
|
||||
WUDSetHidRecvCallback(NULL);
|
||||
WUDShutdown(exec);
|
||||
}
|
||||
|
||||
static void WPADiAfh() {
|
||||
BOOL enabled;
|
||||
u8* pWifiChannel;
|
||||
@@ -606,550 +617,6 @@ static void WPADiRumbleMotor(s32 chan, BOOL prevSuccess) {
|
||||
_rumbleCnt[chan] = _wpdcb[chan]->motorBusy ? _rumbleCnt[chan] + 1 : 0;
|
||||
}
|
||||
|
||||
static void __reconnect(BOOL exec) {
|
||||
DEBUGPrint("Reconnect Start!!\n");
|
||||
|
||||
BTA_DmSendHciReset();
|
||||
|
||||
OSCancelAlarm(&_managerAlarm);
|
||||
|
||||
WUDSetHidRecvCallback(NULL);
|
||||
WUDShutdown(exec);
|
||||
}
|
||||
#ifdef __MWERKS__
|
||||
char scWpadManageStrs[0x58] = "Reconnect Start!!\n\0\0\0\0\0\0"
|
||||
"Check the update of WiFi using channel\n\0"
|
||||
"WiFi uses channel = %d\n";
|
||||
extern void _savegpr_19();
|
||||
extern void _restgpr_19();
|
||||
static asm void WPADiManageHandler(OSAlarm* pAlarm, OSContext* pContext) {
|
||||
nofralloc
|
||||
stwu r1, -0x160(r1)
|
||||
mflr r0
|
||||
stw r0, 0x164(r1)
|
||||
addi r11, r1, 0x160
|
||||
bl _savegpr_19
|
||||
lis r28, scWpadVersionStr@ha
|
||||
addi r28, r28, scWpadVersionStr@l
|
||||
bl WUDGetStatus
|
||||
cmpwi r3, 0x3
|
||||
beq WPADiManageHandler_8AC8
|
||||
cmpwi r3, 0x2
|
||||
bne WPADiManageHandler_91D8
|
||||
lwz r0, _initialized(r0)
|
||||
cmpwi r0, 0x0
|
||||
bne WPADiManageHandler_91D8
|
||||
li r0, 0x1
|
||||
lis r3, WPADiConnCallback@ha
|
||||
stw r0, _initialized(r0)
|
||||
addi r3, r3, WPADiConnCallback@l
|
||||
bl WUDSetHidConnCallback
|
||||
lis r3, WPADiRecvCallback@ha
|
||||
addi r3, r3, WPADiRecvCallback@l
|
||||
bl WUDSetHidRecvCallback
|
||||
li r0, 0x32
|
||||
stw r0, _recCnt(r0)
|
||||
b WPADiManageHandler_91D8
|
||||
WPADiManageHandler_8AC8:
|
||||
lwz r4, _recCnt(r0)
|
||||
lwz r19, _recFlag(r0)
|
||||
cntlzw r3, r4
|
||||
subi r0, r4, 0x1
|
||||
extrwi r3, r3, 1, 26
|
||||
cmpwi r19, 0x0
|
||||
neg r3, r3
|
||||
andc r0, r0, r3
|
||||
stw r0, _recCnt(r0)
|
||||
blt WPADiManageHandler_8B28
|
||||
cmpwi r0, 0x0
|
||||
bne WPADiManageHandler_91D8
|
||||
addi r3, r28, 0xf0
|
||||
crclr 4*cr1+eq
|
||||
bl DEBUGPrint
|
||||
bl BTA_DmSendHciReset
|
||||
lis r3, _managerAlarm@ha
|
||||
addi r3, r3, _managerAlarm@l
|
||||
bl OSCancelAlarm
|
||||
li r3, 0x0
|
||||
bl WUDSetHidRecvCallback
|
||||
mr r3, r19
|
||||
bl WUDShutdown
|
||||
b WPADiManageHandler_91D8
|
||||
WPADiManageHandler_8B28:
|
||||
lis r24, _wpdcb@ha
|
||||
li r22, 0x0
|
||||
addi r24, r24, _wpdcb@l
|
||||
la r25, _extCnt
|
||||
la r23, _rumbleCnt
|
||||
li r29, 0x0
|
||||
li r30, 0x10
|
||||
li r31, 0x1
|
||||
WPADiManageHandler_8B48:
|
||||
lbz r0, 0x0(r25)
|
||||
li r21, 0x0
|
||||
cmplwi r0, 0x5
|
||||
bne WPADiManageHandler_8D20
|
||||
lwz r26, 0x0(r24)
|
||||
lwz r0, 0x8d8(r26)
|
||||
cmpwi r0, 0x0
|
||||
beq WPADiManageHandler_8D10
|
||||
bl OSDisableInterrupts
|
||||
mr r27, r3
|
||||
bl OSDisableInterrupts
|
||||
lbz r4, 0x5ec(r26)
|
||||
lbz r0, 0x5ed(r26)
|
||||
subf r0, r4, r0
|
||||
extsb. r19, r0
|
||||
bge WPADiManageHandler_8B94
|
||||
lwz r0, 0x5f4(r26)
|
||||
add r0, r19, r0
|
||||
extsb r19, r0
|
||||
WPADiManageHandler_8B94:
|
||||
bl OSRestoreInterrupts
|
||||
cmpwi r19, 0x0
|
||||
bne WPADiManageHandler_8BB0
|
||||
mr r3, r27
|
||||
bl OSRestoreInterrupts
|
||||
li r0, 0x0
|
||||
b WPADiManageHandler_8BDC
|
||||
WPADiManageHandler_8BB0:
|
||||
lbz r0, 0x5ec(r26)
|
||||
addi r3, r1, 0xc8
|
||||
lwz r4, 0x5f0(r26)
|
||||
li r5, 0x30
|
||||
extsb r0, r0
|
||||
mulli r0, r0, 0x30
|
||||
add r4, r4, r0
|
||||
bl memcpy
|
||||
mr r3, r27
|
||||
bl OSRestoreInterrupts
|
||||
li r0, 0x1
|
||||
WPADiManageHandler_8BDC:
|
||||
cmpwi r0, 0x0
|
||||
beq WPADiManageHandler_8D10
|
||||
lwz r0, 0xc8(r1)
|
||||
cmplwi r0, 0x12
|
||||
beq WPADiManageHandler_8BFC
|
||||
lwz r0, 0x840(r26)
|
||||
cmpwi r0, 0x0
|
||||
beq WPADiManageHandler_8D10
|
||||
WPADiManageHandler_8BFC:
|
||||
lwz r21, 0xc8(r1)
|
||||
mr r3, r22
|
||||
lwz r20, 0xcc(r1)
|
||||
addi r4, r1, 0xf8
|
||||
lwz r19, 0xd0(r1)
|
||||
lwz r12, 0xd4(r1)
|
||||
lwz r11, 0xd8(r1)
|
||||
lwz r10, 0xdc(r1)
|
||||
lwz r9, 0xe0(r1)
|
||||
lwz r8, 0xe4(r1)
|
||||
lwz r7, 0xe8(r1)
|
||||
lwz r6, 0xec(r1)
|
||||
lwz r5, 0xf0(r1)
|
||||
lwz r0, 0xf4(r1)
|
||||
stw r21, 0xf8(r1)
|
||||
stw r20, 0xfc(r1)
|
||||
stw r19, 0x100(r1)
|
||||
stw r12, 0x104(r1)
|
||||
stw r11, 0x108(r1)
|
||||
stw r10, 0x10c(r1)
|
||||
stw r9, 0x110(r1)
|
||||
stw r8, 0x114(r1)
|
||||
stw r7, 0x118(r1)
|
||||
stw r6, 0x11c(r1)
|
||||
stw r5, 0x120(r1)
|
||||
stw r0, 0x124(r1)
|
||||
bl WPADiSendData
|
||||
cmpwi r3, 0x0
|
||||
bne WPADiManageHandler_8D10
|
||||
bl OSDisableInterrupts
|
||||
mr r27, r3
|
||||
bl OSDisableInterrupts
|
||||
lbz r4, 0x5ec(r26)
|
||||
lbz r0, 0x5ed(r26)
|
||||
subf r0, r4, r0
|
||||
extsb. r19, r0
|
||||
bge WPADiManageHandler_8C9C
|
||||
lwz r0, 0x5f4(r26)
|
||||
add r0, r19, r0
|
||||
extsb r19, r0
|
||||
WPADiManageHandler_8C9C:
|
||||
bl OSRestoreInterrupts
|
||||
cmpwi r19, 0x0
|
||||
bne WPADiManageHandler_8CB4
|
||||
mr r3, r27
|
||||
bl OSRestoreInterrupts
|
||||
b WPADiManageHandler_8D08
|
||||
WPADiManageHandler_8CB4:
|
||||
lbz r0, 0x5ec(r26)
|
||||
li r4, 0x0
|
||||
lwz r3, 0x5f0(r26)
|
||||
li r5, 0x30
|
||||
extsb r0, r0
|
||||
mulli r0, r0, 0x30
|
||||
add r3, r3, r0
|
||||
bl memset
|
||||
lbz r0, 0x5ec(r26)
|
||||
mr r3, r27
|
||||
lwz r4, 0x5f4(r26)
|
||||
extsb r6, r0
|
||||
subi r4, r4, 0x1
|
||||
subf r5, r4, r6
|
||||
addi r0, r6, 0x1
|
||||
subf r4, r6, r4
|
||||
nor r4, r5, r4
|
||||
srawi r4, r4, 31
|
||||
andc r0, r0, r4
|
||||
stb r0, 0x5ec(r26)
|
||||
bl OSRestoreInterrupts
|
||||
WPADiManageHandler_8D08:
|
||||
li r21, 0x1
|
||||
b WPADiManageHandler_8D14
|
||||
WPADiManageHandler_8D10:
|
||||
li r21, 0x0
|
||||
WPADiManageHandler_8D14:
|
||||
cmpwi r21, 0x0
|
||||
beq WPADiManageHandler_8D20
|
||||
stb r29, 0x0(r25)
|
||||
WPADiManageHandler_8D20:
|
||||
cmpwi r21, 0x0
|
||||
bne WPADiManageHandler_8ED0
|
||||
lwz r27, 0x0(r24)
|
||||
lwz r0, 0x8d8(r27)
|
||||
cmpwi r0, 0x0
|
||||
beq WPADiManageHandler_8EC8
|
||||
bl OSDisableInterrupts
|
||||
mr r26, r3
|
||||
bl OSDisableInterrupts
|
||||
lbz r4, 0x160(r27)
|
||||
lbz r0, 0x161(r27)
|
||||
subf r0, r4, r0
|
||||
extsb. r19, r0
|
||||
bge WPADiManageHandler_8D64
|
||||
lwz r0, 0x168(r27)
|
||||
add r0, r19, r0
|
||||
extsb r19, r0
|
||||
WPADiManageHandler_8D64:
|
||||
bl OSRestoreInterrupts
|
||||
cmpwi r19, 0x0
|
||||
bne WPADiManageHandler_8D80
|
||||
mr r3, r26
|
||||
bl OSRestoreInterrupts
|
||||
li r0, 0x0
|
||||
b WPADiManageHandler_8DAC
|
||||
WPADiManageHandler_8D80:
|
||||
lbz r0, 0x160(r27)
|
||||
addi r3, r1, 0x68
|
||||
lwz r4, 0x164(r27)
|
||||
li r5, 0x30
|
||||
extsb r0, r0
|
||||
mulli r0, r0, 0x30
|
||||
add r4, r4, r0
|
||||
bl memcpy
|
||||
mr r3, r26
|
||||
bl OSRestoreInterrupts
|
||||
li r0, 0x1
|
||||
WPADiManageHandler_8DAC:
|
||||
cmpwi r0, 0x0
|
||||
beq WPADiManageHandler_8EC8
|
||||
lwz r19, 0x68(r1)
|
||||
mr r3, r22
|
||||
lwz r20, 0x6c(r1)
|
||||
addi r4, r1, 0x98
|
||||
lwz r26, 0x70(r1)
|
||||
lwz r12, 0x74(r1)
|
||||
lwz r11, 0x78(r1)
|
||||
lwz r10, 0x7c(r1)
|
||||
lwz r9, 0x80(r1)
|
||||
lwz r8, 0x84(r1)
|
||||
lwz r7, 0x88(r1)
|
||||
lwz r6, 0x8c(r1)
|
||||
lwz r5, 0x90(r1)
|
||||
lwz r0, 0x94(r1)
|
||||
stw r19, 0x98(r1)
|
||||
stw r20, 0x9c(r1)
|
||||
stw r26, 0xa0(r1)
|
||||
stw r12, 0xa4(r1)
|
||||
stw r11, 0xa8(r1)
|
||||
stw r10, 0xac(r1)
|
||||
stw r9, 0xb0(r1)
|
||||
stw r8, 0xb4(r1)
|
||||
stw r7, 0xb8(r1)
|
||||
stw r6, 0xbc(r1)
|
||||
stw r5, 0xc0(r1)
|
||||
stw r0, 0xc4(r1)
|
||||
bl WPADiSendData
|
||||
cmpwi r3, 0x0
|
||||
bne WPADiManageHandler_8EC8
|
||||
bl OSDisableInterrupts
|
||||
mr r26, r3
|
||||
bl OSDisableInterrupts
|
||||
lbz r4, 0x160(r27)
|
||||
lbz r0, 0x161(r27)
|
||||
subf r0, r4, r0
|
||||
extsb. r19, r0
|
||||
bge WPADiManageHandler_8E54
|
||||
lwz r0, 0x168(r27)
|
||||
add r0, r19, r0
|
||||
extsb r19, r0
|
||||
WPADiManageHandler_8E54:
|
||||
bl OSRestoreInterrupts
|
||||
cmpwi r19, 0x0
|
||||
bne WPADiManageHandler_8E6C
|
||||
mr r3, r26
|
||||
bl OSRestoreInterrupts
|
||||
b WPADiManageHandler_8EC0
|
||||
WPADiManageHandler_8E6C:
|
||||
lbz r0, 0x160(r27)
|
||||
li r4, 0x0
|
||||
lwz r3, 0x164(r27)
|
||||
li r5, 0x30
|
||||
extsb r0, r0
|
||||
mulli r0, r0, 0x30
|
||||
add r3, r3, r0
|
||||
bl memset
|
||||
lbz r0, 0x160(r27)
|
||||
mr r3, r26
|
||||
lwz r4, 0x168(r27)
|
||||
extsb r6, r0
|
||||
subi r4, r4, 0x1
|
||||
subf r5, r4, r6
|
||||
addi r0, r6, 0x1
|
||||
subf r4, r6, r4
|
||||
nor r4, r5, r4
|
||||
srawi r4, r4, 31
|
||||
andc r0, r0, r4
|
||||
stb r0, 0x160(r27)
|
||||
bl OSRestoreInterrupts
|
||||
WPADiManageHandler_8EC0:
|
||||
li r0, 0x1
|
||||
b WPADiManageHandler_8ECC
|
||||
WPADiManageHandler_8EC8:
|
||||
li r0, 0x0
|
||||
WPADiManageHandler_8ECC:
|
||||
or r21, r21, r0
|
||||
WPADiManageHandler_8ED0:
|
||||
lwz r20, 0x0(r24)
|
||||
lwz r0, 0x8bc(r20)
|
||||
cmpwi r0, -0x1
|
||||
beq WPADiManageHandler_8FD0
|
||||
cmpwi r21, 0x1
|
||||
beq WPADiManageHandler_8F18
|
||||
bl OSDisableInterrupts
|
||||
lbz r4, 0x160(r20)
|
||||
lbz r0, 0x161(r20)
|
||||
subf r0, r4, r0
|
||||
extsb. r19, r0
|
||||
bge WPADiManageHandler_8F0C
|
||||
lwz r0, 0x168(r20)
|
||||
add r0, r19, r0
|
||||
extsb r19, r0
|
||||
WPADiManageHandler_8F0C:
|
||||
bl OSRestoreInterrupts
|
||||
cmpwi r19, 0x0
|
||||
ble WPADiManageHandler_8F24
|
||||
WPADiManageHandler_8F18:
|
||||
lwz r3, 0x0(r24)
|
||||
stw r29, 0x8d0(r3)
|
||||
b WPADiManageHandler_8FAC
|
||||
WPADiManageHandler_8F24:
|
||||
lbz r0, 0x0(r23)
|
||||
cmplwi r0, 0x5
|
||||
bne WPADiManageHandler_8FAC
|
||||
sth r31, 0x22(r1)
|
||||
mr r3, r22
|
||||
lwz r5, 0x0(r24)
|
||||
addi r4, r1, 0x38
|
||||
stb r29, 0xc(r1)
|
||||
lwz r12, 0x10(r1)
|
||||
stw r29, 0x8d0(r5)
|
||||
lwz r21, 0xc(r1)
|
||||
lwz r11, 0x14(r1)
|
||||
lwz r10, 0x18(r1)
|
||||
lwz r9, 0x1c(r1)
|
||||
lwz r8, 0x20(r1)
|
||||
lwz r7, 0x24(r1)
|
||||
lwz r6, 0x28(r1)
|
||||
lwz r5, 0x2c(r1)
|
||||
lwz r0, 0x30(r1)
|
||||
stw r30, 0x8(r1)
|
||||
stw r29, 0x34(r1)
|
||||
stw r30, 0x38(r1)
|
||||
stw r21, 0x3c(r1)
|
||||
stw r12, 0x40(r1)
|
||||
stw r11, 0x44(r1)
|
||||
stw r10, 0x48(r1)
|
||||
stw r9, 0x4c(r1)
|
||||
stw r8, 0x50(r1)
|
||||
stw r7, 0x54(r1)
|
||||
stw r6, 0x58(r1)
|
||||
stw r5, 0x5c(r1)
|
||||
stw r0, 0x60(r1)
|
||||
stw r29, 0x64(r1)
|
||||
bl __SendData
|
||||
WPADiManageHandler_8FAC:
|
||||
lwz r3, 0x0(r24)
|
||||
lwz r0, 0x8d0(r3)
|
||||
cmpwi r0, 0x0
|
||||
beq WPADiManageHandler_8FC8
|
||||
lbz r3, 0x0(r23)
|
||||
addi r0, r3, 0x1
|
||||
b WPADiManageHandler_8FCC
|
||||
WPADiManageHandler_8FC8:
|
||||
li r0, 0x0
|
||||
WPADiManageHandler_8FCC:
|
||||
stb r0, 0x0(r23)
|
||||
WPADiManageHandler_8FD0:
|
||||
lbz r0, _checkCnt(r0)
|
||||
cmplwi r0, 0x5
|
||||
bne WPADiManageHandler_8FE4
|
||||
mr r3, r22
|
||||
bl WPADiCheckContInputs
|
||||
WPADiManageHandler_8FE4:
|
||||
lhz r0, _senseCnt(r0)
|
||||
cmplwi r0, 0xa
|
||||
bne WPADiManageHandler_8FF8
|
||||
mr r3, r22
|
||||
bl WPADiRadioSensitivity
|
||||
WPADiManageHandler_8FF8:
|
||||
lbz r3, 0x0(r25)
|
||||
cmplwi r3, 0x5
|
||||
addi r0, r3, 0x1
|
||||
bne WPADiManageHandler_900C
|
||||
mr r0, r3
|
||||
WPADiManageHandler_900C:
|
||||
addi r22, r22, 0x1
|
||||
stb r0, 0x0(r25)
|
||||
cmpwi r22, 0x4
|
||||
addi r25, r25, 0x1
|
||||
addi r24, r24, 0x4
|
||||
addi r23, r23, 0x1
|
||||
blt WPADiManageHandler_8B48
|
||||
lhz r0, _afhCnt(r0)
|
||||
cmplwi r0, 0xea60
|
||||
bne WPADiManageHandler_9090
|
||||
lis r21, 0x8000
|
||||
li r4, 0x1
|
||||
addi r3, r21, 0x31a2
|
||||
bl DCInvalidateRange
|
||||
addi r3, r28, 0x108
|
||||
crclr 4*cr1+eq
|
||||
bl DEBUGPrint
|
||||
lbz r3, _afhChannel(r0)
|
||||
lbz r0, 0x31a2(r21)
|
||||
extsb r3, r3
|
||||
cmpw r3, r0
|
||||
beq WPADiManageHandler_9090
|
||||
bl OSDisableInterrupts
|
||||
lbz r0, 0x31a2(r21)
|
||||
stb r0, _afhChannel(r0)
|
||||
bl OSRestoreInterrupts
|
||||
lbz r4, 0x31a2(r21)
|
||||
addi r3, r28, 0x130
|
||||
crclr 4*cr1+eq
|
||||
bl DEBUGPrint
|
||||
lbz r0, _afhChannel(r0)
|
||||
extsb r3, r0
|
||||
bl WUDSetDisableChannel
|
||||
WPADiManageHandler_9090:
|
||||
lhz r6, _senseCnt(r0)
|
||||
lis r3, 0x1
|
||||
subi r0, r3, 0x15a0
|
||||
lbz r9, _checkCnt(r0)
|
||||
subi r4, r6, 0xa
|
||||
subfic r3, r6, 0xa
|
||||
nor r3, r4, r3
|
||||
lhz r10, _afhCnt(r0)
|
||||
srawi r8, r3, 31
|
||||
addi r7, r6, 0x1
|
||||
clrlwi r0, r0, 16
|
||||
subi r4, r9, 0x5
|
||||
subfic r3, r9, 0x5
|
||||
andc r7, r7, r8
|
||||
nor r5, r4, r3
|
||||
subf r4, r0, r10
|
||||
subf r3, r10, r0
|
||||
lbz r0, _scFlush(r0)
|
||||
srawi r6, r5, 31
|
||||
addi r5, r9, 0x1
|
||||
nor r4, r4, r3
|
||||
addi r3, r10, 0x1
|
||||
srawi r4, r4, 31
|
||||
andc r5, r5, r6
|
||||
andc r3, r3, r4
|
||||
cmpwi r0, 0x0
|
||||
sth r7, _senseCnt(r0)
|
||||
stb r5, _checkCnt(r0)
|
||||
sth r3, _afhCnt(r0)
|
||||
beq WPADiManageHandler_9138
|
||||
bl SCCheckStatus
|
||||
cmpwi r3, 0x0
|
||||
bne WPADiManageHandler_9138
|
||||
lis r3, _scArray@ha
|
||||
addi r3, r3, _scArray@l
|
||||
bl SCSetBtDeviceInfoArray
|
||||
cmpwi r3, 0x1
|
||||
bne WPADiManageHandler_9138
|
||||
li r3, 0x0
|
||||
bl SCFlushAsync
|
||||
li r0, 0x0
|
||||
stb r0, _scFlush(r0)
|
||||
WPADiManageHandler_9138:
|
||||
lbz r0, _scSetting(r0)
|
||||
cmpwi r0, 0x0
|
||||
beq WPADiManageHandler_91D4
|
||||
bl SCCheckStatus
|
||||
cmpwi r3, 0x0
|
||||
bne WPADiManageHandler_91D4
|
||||
bl SCGetBtDpdSensibility
|
||||
clrlwi r0, r3, 24
|
||||
cmplwi r0, 0x1
|
||||
bge WPADiManageHandler_9164
|
||||
li r0, 0x1
|
||||
WPADiManageHandler_9164:
|
||||
cmplwi r0, 0x5
|
||||
ble WPADiManageHandler_9170
|
||||
li r0, 0x5
|
||||
WPADiManageHandler_9170:
|
||||
stb r0, _dpdSensitivity(r0)
|
||||
bl SCGetWpadSensorBarPosition
|
||||
clrlwi r3, r3, 24
|
||||
subi r0, r3, 0x1
|
||||
cntlzw r0, r0
|
||||
extrwi r0, r0, 8, 19
|
||||
stb r0, _sensorBarPos(r0)
|
||||
bl SCGetWpadMotorMode
|
||||
clrlwi r3, r3, 24
|
||||
subi r0, r3, 0x1
|
||||
cntlzw r0, r0
|
||||
srwi r0, r0, 5
|
||||
stw r0, _rumble(r0)
|
||||
bl SCGetWpadSpeakerVolume
|
||||
clrlwi. r0, r3, 24
|
||||
mr r4, r3
|
||||
bne WPADiManageHandler_91B8
|
||||
li r4, 0x0
|
||||
WPADiManageHandler_91B8:
|
||||
clrlwi r0, r3, 24
|
||||
cmplwi r0, 0x7f
|
||||
blt WPADiManageHandler_91C8
|
||||
li r4, 0x7f
|
||||
WPADiManageHandler_91C8:
|
||||
li r0, 0x0
|
||||
stb r4, _speakerVolume(r0)
|
||||
stb r0, _scSetting(r0)
|
||||
WPADiManageHandler_91D4:
|
||||
bl BTA_HhGetAclQueueInfo
|
||||
WPADiManageHandler_91D8:
|
||||
addi r11, r1, 0x160
|
||||
bl _restgpr_19
|
||||
lwz r0, 0x164(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x160
|
||||
blr
|
||||
}
|
||||
#else
|
||||
static void WPADiManageHandler(OSAlarm* pAlarm, OSContext* pContext) {
|
||||
s32 status = WPADGetStatus();
|
||||
s32 chan;
|
||||
@@ -1168,8 +635,10 @@ static void WPADiManageHandler(OSAlarm* pAlarm, OSContext* pContext) {
|
||||
return;
|
||||
}
|
||||
|
||||
_recCnt = _recCnt == 0 ? 0 : _recCnt - 1;
|
||||
|
||||
if (_recFlag >= 0) {
|
||||
if (--_recCnt <= 0) {
|
||||
if (_recCnt == 0) {
|
||||
__reconnect(_recFlag);
|
||||
}
|
||||
return;
|
||||
@@ -1216,9 +685,6 @@ static void WPADiManageHandler(OSAlarm* pAlarm, OSContext* pContext) {
|
||||
|
||||
BTA_HhGetAclQueueInfo();
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
static void WPADiManageHandler0(OSAlarm* pAlarm, OSContext* pContext) {
|
||||
OSSwitchFiberEx((u32)pAlarm, (u32)pContext, 0, 0, WPADiManageHandler, __WPADiManageHandlerStack + sizeof(__WPADiManageHandlerStack));
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ void CDBConvTypeStrToFullPath(char* fullPath, char* yearStr, char* monthStr, cha
|
||||
void CDBConvFileNameStrToFullPath(char* fullPath, char* yearStr, char* monthStr, char* dayStr, char* hourStr, char* minuteStr, char* codeStr,
|
||||
char* typeStr, char* fileStr, CDBLocation location, u64* wiiId);
|
||||
|
||||
CDBDate CDBConvDirStrToCDBDate(char* yearStr, char* monthStr, char* dayStr, char* hourStr, char* minuteStr, CDBLocation location, u64* wiiId);
|
||||
CDBDate CDBConvDirStrToCDBDate(char* yearStr, char* monthStr, char* dayStr, char* hourStr, char* minuteStr);
|
||||
|
||||
void CDBConvGCStrToGCValue(char* gcStr, u32* gcValue);
|
||||
void CDBConvGCValueToGCStr(u32 gcValue, char* gcStr);
|
||||
|
||||
@@ -13,12 +13,12 @@ void CDBClampCDBDate(CDBDate* cdbDate);
|
||||
|
||||
CDBDate CDBMakeCDBDate(int year, int month, int day, int hour, int min, int sec);
|
||||
|
||||
CDBDate CDBMakeCDBDateDayBegin(int year, int month, int day, int hour, int min, int sec);
|
||||
CDBDate CDBMakeCDBDateDayEnd(int year, int month, int day, int hour, int min, int sec);
|
||||
CDBDate CDBMakeCDBDateMonthBegin(int year, int month, int day, int hour, int min, int sec);
|
||||
CDBDate CDBMakeCDBDateMonthEnd(int year, int month, int day, int hour, int min, int sec);
|
||||
CDBDate CDBMakeCDBDateYearBegin(int year, int month, int day, int hour, int min, int sec);
|
||||
CDBDate CDBMakeCDBDateYearEnd(int year, int month, int day, int hour, int min, int sec);
|
||||
CDBDate CDBMakeCDBDateDayBegin(int year, int month, int day);
|
||||
CDBDate CDBMakeCDBDateDayEnd(int year, int month, int day);
|
||||
CDBDate CDBMakeCDBDateMonthBegin(int year, int month);
|
||||
CDBDate CDBMakeCDBDateMonthEnd(int year, int month);
|
||||
CDBDate CDBMakeCDBDateYearBegin(int year);
|
||||
CDBDate CDBMakeCDBDateYearEnd(int year);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -58,19 +58,21 @@ CDBDate CDBMakeCDBDate(int year, int month, int day, int hour, int min, int sec)
|
||||
return OSTicksToSeconds(OSCalendarTimeToTicks(&calendar));
|
||||
}
|
||||
|
||||
CDBDate CDBMakeCDBDateDayBegin(int year, int month, int day, int hour, int min, int sec) {
|
||||
CDBDate CDBMakeCDBDateDayBegin(int year, int month, int day) {
|
||||
return CDBMakeCDBDate(year, month, day, MIN_HOUR, MIN_MINUTE, MIN_SECOND);
|
||||
}
|
||||
|
||||
CDBDate CDBMakeCDBDateDayEnd(int year, int month, int day, int hour, int min, int sec) {
|
||||
CDBDate CDBMakeCDBDateDayEnd(int year, int month, int day) {
|
||||
return CDBMakeCDBDate(year, month, day, MAX_HOUR, MAX_MINUTE, MAX_SECOND);
|
||||
}
|
||||
|
||||
CDBDate CDBMakeCDBDateMonthBegin(int year, int month, int day, int hour, int min, int sec) {
|
||||
CDBDate CDBMakeCDBDateMonthBegin(int year, int month) {
|
||||
return CDBMakeCDBDate(year, month, MIN_DAY, MIN_HOUR, MIN_MINUTE, MIN_SECOND);
|
||||
}
|
||||
|
||||
CDBDate CDBMakeCDBDateMonthEnd(int year, int month, int day, int hour, int min, int sec) {
|
||||
CDBDate CDBMakeCDBDateMonthEnd(int year, int month) {
|
||||
int day;
|
||||
|
||||
switch (month) {
|
||||
case 1: {
|
||||
day = 28;
|
||||
@@ -101,11 +103,11 @@ CDBDate CDBMakeCDBDateMonthEnd(int year, int month, int day, int hour, int min,
|
||||
return CDBMakeCDBDate(year, month, day, MAX_HOUR, MAX_MINUTE, MAX_SECOND);
|
||||
}
|
||||
|
||||
CDBDate CDBMakeCDBDateYearBegin(int year, int month, int day, int hour, int min, int sec) {
|
||||
CDBDate CDBMakeCDBDateYearBegin(int year) {
|
||||
return CDBMakeCDBDate(year, MIN_MONTH - 1, MIN_DAY, MIN_HOUR, MIN_MINUTE, MIN_SECOND);
|
||||
}
|
||||
|
||||
CDBDate CDBMakeCDBDateYearEnd(int year, int month, int day, int hour, int min, int sec) {
|
||||
CDBDate CDBMakeCDBDateYearEnd(int year) {
|
||||
return CDBMakeCDBDate(year, MAX_MONTH - 1, MAX_DAY, MAX_HOUR, MAX_MINUTE, MAX_SECOND);
|
||||
}
|
||||
|
||||
@@ -231,7 +233,7 @@ void CDBConvFileNameStrToFullPath(char* fullPath, char* yearStr, char* monthStr,
|
||||
CDBFSConcatenatePath(fullPath, fileNameStr);
|
||||
}
|
||||
|
||||
CDBDate CDBConvDirStrToCDBDate(char* yearStr, char* monthStr, char* dayStr, char* hourStr, char* minuteStr, CDBLocation location, u64* wiiId) {
|
||||
CDBDate CDBConvDirStrToCDBDate(char* yearStr, char* monthStr, char* dayStr, char* hourStr, char* minuteStr) {
|
||||
return CDBMakeCDBDate(atoi(yearStr), atoi(monthStr), atoi(dayStr), atoi(hourStr), atoi(minuteStr), 0);
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -68,18 +68,20 @@ void NETMD5GetDigest(NETMD5Context* context, void* digest) {
|
||||
memset(context, 0, sizeof(*context));
|
||||
}
|
||||
|
||||
static inline u32 ReadMessageWord(const u32* data) {
|
||||
return __lwbrx((void*)data, 0);
|
||||
}
|
||||
|
||||
static inline u32 rotateSum(u32 state, const u32* word, u32 constant, int shift) {
|
||||
// Each rotation half reads its own byte-reversed message word.
|
||||
u32 right = __lwbrx((void*)word, 0);
|
||||
u32 left = __lwbrx((void*)word, 0);
|
||||
u32 right = ReadMessageWord(word);
|
||||
u32 left = ReadMessageWord(word);
|
||||
return ((state + (constant + left)) << shift) | ((constant + (state + right)) >> (32 - shift));
|
||||
}
|
||||
|
||||
static inline u32 rotateNextSum(u32 state, u32** cursor, u32 constant, int shift) {
|
||||
const u32* word = *cursor;
|
||||
u32 right = __lwbrx((void*)word, 0);
|
||||
u32 left = __lwbrx((void*)word, 0);
|
||||
++*cursor;
|
||||
u32 right = ReadMessageWord(*cursor);
|
||||
u32 left = ReadMessageWord((*cursor)++);
|
||||
return ((state + (constant + left)) << shift) | ((constant + (state + right)) >> (32 - shift));
|
||||
}
|
||||
|
||||
@@ -90,38 +92,37 @@ static void ProcessBlock(NETMD5Context* context) {
|
||||
static u32 constants[64] = {0xD76AA478, 0xE8C7B756, 0x242070DB, 0xC1BDCEEE, 0xF57C0FAF, 0x4787C62A, 0xA8304613, 0xFD469501, 0x698098D8, 0x8B44F7AF, 0xFFFF5BB1, 0x895CD7BE, 0x6B901122, 0xFD987193, 0xA679438E, 0x49B40821, 0xF61E2562, 0xC040B340, 0x265E5A51, 0xE9B6C7AA, 0xD62F105D, 0x02441453, 0xD8A1E681, 0xE7D3FBC8, 0x21E1CDE6, 0xC33707D6, 0xF4D50D87, 0x455A14ED, 0xA9E3E905, 0xFCEFA3F8, 0x676F02D9, 0x8D2A4C8A, 0xFFFA3942, 0x8771F681, 0x6D9D6122, 0xFDE5380C, 0xA4BEEA44, 0x4BDECFA9, 0xF6BB4B60, 0xBEBFBC70, 0x289B7EC6, 0xEAA127FA, 0xD4EF3085, 0x04881D05, 0xD9D4D039, 0xE6DB99E5, 0x1FA27CF8, 0xC4AC5665, 0xF4292244, 0x432AFF97, 0xAB9423A7, 0xFC93A039, 0x655B59C3, 0x8F0CCC92, 0xFFEFF47D, 0x85845DD1, 0x6FA87E4F, 0xFE2CE6E0, 0xA3014314, 0x4E0811A1, 0xF7537E82, 0xBD3AF235, 0x2AD7D2BB, 0xEB86D391};
|
||||
static u32 indices[48] = {0x00000001, 0x00000006, 0x0000000B, 0x00000000, 0x00000005, 0x0000000A, 0x0000000F, 0x00000004, 0x00000009, 0x0000000E, 0x00000003, 0x00000008, 0x0000000D, 0x00000002, 0x00000007, 0x0000000C, 0x00000005, 0x00000008, 0x0000000B, 0x0000000E, 0x00000001, 0x00000004, 0x00000007, 0x0000000A, 0x0000000D, 0x00000000, 0x00000003, 0x00000006, 0x00000009, 0x0000000C, 0x0000000F, 0x00000002, 0x00000000, 0x00000007, 0x0000000E, 0x00000005, 0x0000000C, 0x00000003, 0x0000000A, 0x00000001, 0x00000008, 0x0000000F, 0x00000006, 0x0000000D, 0x00000004, 0x0000000B, 0x00000002, 0x00000009};
|
||||
u32 a = context->a, b = context->b, c = context->c, d = context->d;
|
||||
u32* index;
|
||||
u32* cursor;
|
||||
u32* block;
|
||||
u32* constant;
|
||||
int round;
|
||||
u32* word;
|
||||
block = context->buffer32;
|
||||
word = block;
|
||||
cursor = block;
|
||||
constant = constants;
|
||||
for (round = 0; round < 4; ++round) {
|
||||
STEP_NEXT(a,b,c,d,(b & c) | (~b & d),word,7); ++constant;
|
||||
STEP_NEXT(d,a,b,c,(a & b) | (~a & c),word,12); ++constant;
|
||||
STEP_NEXT(c,d,a,b,(d & a) | (~d & b),word,17); ++constant;
|
||||
STEP_NEXT(b,c,d,a,(c & d) | (~c & a),word,22); ++constant;
|
||||
STEP_NEXT(a,b,c,d,(b & c) | (~b & d),cursor,7); ++constant;
|
||||
STEP_NEXT(d,a,b,c,(a & b) | (~a & c),cursor,12); ++constant;
|
||||
STEP_NEXT(c,d,a,b,(d & a) | (~d & b),cursor,17); ++constant;
|
||||
STEP_NEXT(b,c,d,a,(c & d) | (~c & a),cursor,22); ++constant;
|
||||
}
|
||||
index = indices;
|
||||
cursor = indices;
|
||||
for (round = 0; round < 4; ++round) {
|
||||
STEP(a,b,c,d,(b & d) | (c & ~d),block + *index,5); ++index; ++constant;
|
||||
STEP(d,a,b,c,(a & c) | (b & ~c),block + *index,9); ++index; ++constant;
|
||||
STEP(c,d,a,b,(d & b) | (a & ~b),block + *index,14); ++index; ++constant;
|
||||
STEP(b,c,d,a,(c & a) | (d & ~a),block + *index,20); ++index; ++constant;
|
||||
STEP(a,b,c,d,(b & d) | (c & ~d),block + *cursor,5); ++constant; ++cursor;
|
||||
STEP(d,a,b,c,(a & c) | (b & ~c),block + *cursor,9); ++constant; ++cursor;
|
||||
STEP(c,d,a,b,(d & b) | (a & ~b),block + *cursor,14); ++constant; ++cursor;
|
||||
STEP(b,c,d,a,(c & a) | (d & ~a),block + *cursor,20); ++constant; ++cursor;
|
||||
}
|
||||
for (round = 0; round < 4; ++round) {
|
||||
STEP(a,b,c,d,d ^ b ^ c,block + *index,4); ++index; ++constant;
|
||||
STEP(d,a,b,c,c ^ a ^ b,block + *index,11); ++index; ++constant;
|
||||
STEP(c,d,a,b,b ^ d ^ a,block + *index,16); ++index; ++constant;
|
||||
STEP(b,c,d,a,a ^ c ^ d,block + *index,23); ++index; ++constant;
|
||||
STEP(a,b,c,d,b ^ c ^ d,block + *cursor,4); ++constant; ++cursor;
|
||||
STEP(d,a,b,c,a ^ b ^ c,block + *cursor,11); ++constant; ++cursor;
|
||||
STEP(c,d,a,b,d ^ a ^ b,block + *cursor,16); ++constant; ++cursor;
|
||||
STEP(b,c,d,a,c ^ d ^ a,block + *cursor,23); ++constant; ++cursor;
|
||||
}
|
||||
for (round = 0; round < 4; ++round) {
|
||||
STEP(a,b,c,d,c ^ (b | ~d),block + *index,6); ++index; ++constant;
|
||||
STEP(d,a,b,c,b ^ (a | ~c),block + *index,10); ++index; ++constant;
|
||||
STEP(c,d,a,b,a ^ (d | ~b),block + *index,15); ++index; ++constant;
|
||||
STEP(b,c,d,a,d ^ (c | ~a),block + *index,21); ++index; ++constant;
|
||||
STEP(a,b,c,d,c ^ (b | ~d),block + *cursor,6); ++constant; ++cursor;
|
||||
STEP(d,a,b,c,b ^ (a | ~c),block + *cursor,10); ++constant; ++cursor;
|
||||
STEP(c,d,a,b,a ^ (d | ~b),block + *cursor,15); ++constant; ++cursor;
|
||||
STEP(b,c,d,a,d ^ (c | ~a),block + *cursor,21); ++constant; ++cursor;
|
||||
}
|
||||
context->a += a;
|
||||
context->b += b;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
#include <revolution/nwc24.h>
|
||||
|
||||
#include <revolution/os.h>
|
||||
#include <revolution/sc.h>
|
||||
#include <revolution/ncd.h>
|
||||
#include <revolution/verdefs.h>
|
||||
|
||||
#define MANAGE_ERROR_CODE_BASE 109000
|
||||
@@ -290,166 +292,104 @@ NWC24Err NWC24GetSchedulerError(s32* numErrors, s32* errorCode) {
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
extern void _savegpr_27();
|
||||
extern void _restgpr_27();
|
||||
extern void NCDiGetEnabledConfigList();
|
||||
extern NWC24Err AnalyzeScdErrors(s32* errorCode, u32 usage);
|
||||
extern void NWC24iMBoxCheck();
|
||||
extern void SCCheckStatus();
|
||||
extern void SCGetWCFlags();
|
||||
extern void SCGetEULA();
|
||||
extern void SCGetNetContentRestrictions();
|
||||
extern void SCGetParentalControl();
|
||||
extern NCDErr NCDiGetEnabledConfigList(u32* wiredList, u32* wirelessList, u32* aossList);
|
||||
extern NWC24Err NWC24iMBoxCheck(NWC24MBoxType type, u32 size);
|
||||
NWC24Err AnalyzeScdErrors(s32* errorCode, u32 usage);
|
||||
|
||||
asm NWC24Err NWC24Check(register u32 usage) {
|
||||
nofralloc
|
||||
NWC24Err NWC24Check(u32 usage) {
|
||||
NWC24Err result;
|
||||
NWC24Err err;
|
||||
SCParentalControlsInfo pcInfo;
|
||||
u32 wiredList;
|
||||
u32 wirelessList;
|
||||
u32 aossList;
|
||||
NWC24IdCreationStage stage;
|
||||
s32 errorCode;
|
||||
u32 status;
|
||||
u32 wcFlags;
|
||||
BOOL eula;
|
||||
u32 restrictions;
|
||||
|
||||
stwu r1, -0x80(r1)
|
||||
mflr r0
|
||||
stw r0, 0x84(r1)
|
||||
addi r11, r1, 0x80
|
||||
bl _savegpr_27
|
||||
lwz r0, Opened(r0)
|
||||
li r4, 0
|
||||
stw r4, GlobalErrorCode(r0)
|
||||
mr r27, r3
|
||||
cmpwi r0, 1
|
||||
beq _NWC24Check_open
|
||||
li r31, -9
|
||||
b _NWC24Check_return
|
||||
GlobalErrorCode = 0;
|
||||
|
||||
_NWC24Check_open:
|
||||
li r31, -0x27
|
||||
if (Opened != NWC24_LIB_OPENED) {
|
||||
result = NWC24_ERR_LIB_NOT_OPENED;
|
||||
} else {
|
||||
result = NWC24_ERR_DISABLED;
|
||||
|
||||
_NWC24Check_status:
|
||||
bl SCCheckStatus
|
||||
cmplwi r3, 1
|
||||
beq _NWC24Check_status
|
||||
cmplwi r3, 2
|
||||
bne _NWC24Check_status_ok
|
||||
lis r3, -2
|
||||
addi r0, r3, 0x55c8
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
do {
|
||||
do {
|
||||
status = SCCheckStatus();
|
||||
} while (status == SC_STATUS_BUSY);
|
||||
|
||||
_NWC24Check_status_ok:
|
||||
bl SCGetWCFlags
|
||||
clrlwi r29, r3, 0x1f
|
||||
bl SCGetEULA
|
||||
mr r30, r3
|
||||
bl SCGetNetContentRestrictions
|
||||
rlwinm r28, r3, 0, 0x1e, 0x1e
|
||||
addi r3, r1, 0x1c
|
||||
bl SCGetParentalControl
|
||||
cmpwi r29, 0
|
||||
bne _NWC24Check_eula
|
||||
lis r3, -2
|
||||
addi r0, r3, 0x55ad
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
if (status == SC_STATUS_FATAL) {
|
||||
GlobalErrorCode = -109112;
|
||||
break;
|
||||
}
|
||||
|
||||
_NWC24Check_eula:
|
||||
cmpwi r30, 0
|
||||
bne _NWC24Check_restrictions
|
||||
lis r3, -2
|
||||
addi r0, r3, 0x55cd
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
wcFlags = SCGetWCFlags() & SC_WC_FLAGS_ENABLED;
|
||||
eula = SCGetEULA();
|
||||
restrictions =
|
||||
SCGetNetContentRestrictions() & SC_NET_RESTRICTIONS_MSG_BOARD;
|
||||
SCGetParentalControl(&pcInfo);
|
||||
|
||||
_NWC24Check_restrictions:
|
||||
clrlwi. r30, r27, 0x1f
|
||||
beq _NWC24Check_config
|
||||
lbz r0, 0x1c(r1)
|
||||
rlwinm. r0, r0, 0, 0x18, 0x18
|
||||
beq _NWC24Check_config
|
||||
cmpwi r28, 0
|
||||
beq _NWC24Check_config
|
||||
lis r3, -2
|
||||
addi r0, r3, 0x55cd
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
if (!wcFlags) {
|
||||
GlobalErrorCode = -109139;
|
||||
break;
|
||||
}
|
||||
|
||||
_NWC24Check_config:
|
||||
addi r3, r1, 0x18
|
||||
addi r4, r1, 0x14
|
||||
addi r5, r1, 0x10
|
||||
li r31, -0x1f
|
||||
bl NCDiGetEnabledConfigList
|
||||
cmpwi r3, 0
|
||||
bge _NWC24Check_config_ok
|
||||
lis r3, -2
|
||||
addi r0, r3, 0x55b3
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
if (!eula) {
|
||||
GlobalErrorCode = -109107;
|
||||
break;
|
||||
}
|
||||
|
||||
_NWC24Check_config_ok:
|
||||
lwz r0, 0x18(r1)
|
||||
cmpwi r0, 0
|
||||
bne _NWC24Check_id
|
||||
lwz r0, 0x14(r1)
|
||||
cmpwi r0, 0
|
||||
bne _NWC24Check_id
|
||||
lwz r0, 0x10(r1)
|
||||
cmpwi r0, 0
|
||||
bne _NWC24Check_id
|
||||
lis r3, -1
|
||||
addi r0, r3, 0x3b85
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
if ((usage & 1) && (pcInfo.enable & SC_PARENTAL_FLAG_ENABLED) &&
|
||||
restrictions) {
|
||||
GlobalErrorCode = -109107;
|
||||
break;
|
||||
}
|
||||
|
||||
_NWC24Check_id:
|
||||
cmpwi r30, 0
|
||||
beq _NWC24Check_scheduler
|
||||
addi r3, r1, 0xc
|
||||
bl NWC24GetIdCreationStage
|
||||
lwz r0, 0xc(r1)
|
||||
cmpwi r0, 2
|
||||
beq _NWC24Check_scheduler
|
||||
lis r3, -2
|
||||
addi r0, r3, 0x55a8
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
result = NWC24_ERR_NETWORK;
|
||||
if (NCDiGetEnabledConfigList(&wiredList, &wirelessList,
|
||||
&aossList) < 0) {
|
||||
GlobalErrorCode = -109133;
|
||||
break;
|
||||
}
|
||||
|
||||
_NWC24Check_scheduler:
|
||||
li r0, 0
|
||||
mr r4, r27
|
||||
stw r0, 8(r1)
|
||||
addi r3, r1, 8
|
||||
bl AnalyzeScdErrors
|
||||
cmpwi r3, 0
|
||||
bge _NWC24Check_mbox
|
||||
lwz r0, 8(r1)
|
||||
mr r31, r3
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
b _NWC24Check_return
|
||||
if (wiredList == 0 && wirelessList == 0 && aossList == 0) {
|
||||
GlobalErrorCode = -50299;
|
||||
break;
|
||||
}
|
||||
|
||||
_NWC24Check_mbox:
|
||||
li r3, 0
|
||||
li r4, 0
|
||||
bl NWC24iMBoxCheck
|
||||
cmpwi r3, -6
|
||||
mr r31, r3
|
||||
bne _NWC24Check_mbox_done
|
||||
lis r4, -2
|
||||
addi r0, r4, 0x55ce
|
||||
stw r0, GlobalErrorCode(r0)
|
||||
if (usage & 1) {
|
||||
NWC24GetIdCreationStage(&stage);
|
||||
if (stage != NWC24_IDCS_REGISTERED) {
|
||||
GlobalErrorCode = -109144;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_NWC24Check_mbox_done:
|
||||
cmpwi r3, -6
|
||||
beq _NWC24Check_return
|
||||
li r31, 0
|
||||
errorCode = 0;
|
||||
err = AnalyzeScdErrors(&errorCode, usage);
|
||||
if (err < 0) {
|
||||
result = err;
|
||||
GlobalErrorCode = errorCode;
|
||||
break;
|
||||
}
|
||||
|
||||
_NWC24Check_return:
|
||||
addi r11, r1, 0x80
|
||||
mr r3, r31
|
||||
bl _restgpr_27
|
||||
lwz r0, 0x84(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x80
|
||||
blr
|
||||
result = NWC24iMBoxCheck(NWC24_MBOX_TYPE_SEND, 0);
|
||||
if (result == NWC24_ERR_FULL) {
|
||||
GlobalErrorCode = -109106;
|
||||
}
|
||||
if (result != NWC24_ERR_FULL) {
|
||||
result = NWC24_OK;
|
||||
}
|
||||
} while (0);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
s32 NWC24GetErrorCode() {
|
||||
return GlobalErrorCode;
|
||||
|
||||
@@ -8,74 +8,35 @@ extern void __shr2u(void);
|
||||
extern void __shl2i(void);
|
||||
|
||||
static NWC24UserId getUnScrambleId(NWC24UserId id);
|
||||
asm NWC24Err NWC24CheckUserId(register NWC24UserId id) {
|
||||
stwu r1,-0x30(r1)
|
||||
mfspr r0,LR
|
||||
stw r0,0x34(r1)
|
||||
addi r11,r1,0x30
|
||||
bl _savegpr_27
|
||||
or r28,r3,r3
|
||||
or r27,r4,r4
|
||||
addi r3,r1,0x8
|
||||
bl NWC24GetMyUserId
|
||||
lwz r3,0x8(r1)
|
||||
lwz r4,0xc(r1)
|
||||
xor r0,r3,r28
|
||||
xor r5,r4,r27
|
||||
or. r0,r5,r0
|
||||
bne NWC24CheckUserId_not_same
|
||||
li r3,-0x23
|
||||
b NWC24CheckUserId_return
|
||||
NWC24CheckUserId_not_same:
|
||||
bl getUnScrambleId
|
||||
or r4,r27,r27
|
||||
rlwinm r27,r3,0x11,0x1d,0x1f
|
||||
or r3,r28,r28
|
||||
bl getUnScrambleId
|
||||
or r30,r4,r4
|
||||
or r31,r3,r3
|
||||
rlwinm r28,r3,0x11,0x1d,0x1f
|
||||
li r29,0
|
||||
NWC24CheckUserId_crc_loop:
|
||||
addi r0,r29,1
|
||||
or r3,r31,r31
|
||||
or r4,r30,r30
|
||||
subfic r5,r0,0x35
|
||||
bl __shr2u
|
||||
rlwinm. r0,r4,0,0x1f,0x1f
|
||||
beq NWC24CheckUserId_crc_next
|
||||
subfic r5,r29,0x2a
|
||||
li r4,0x635
|
||||
li r3,0
|
||||
bl __shl2i
|
||||
xor r30,r30,r4
|
||||
xor r31,r31,r3
|
||||
NWC24CheckUserId_crc_next:
|
||||
addi r29,r29,1
|
||||
cmpwi r29,0x2b
|
||||
blt NWC24CheckUserId_crc_loop
|
||||
or. r0,r30,r31
|
||||
beq NWC24CheckUserId_crc_ok
|
||||
li r3,-0x25
|
||||
b NWC24CheckUserId_return
|
||||
NWC24CheckUserId_crc_ok:
|
||||
cmpwi r27,0
|
||||
bne NWC24CheckUserId_return_ok
|
||||
cmpwi r28,0
|
||||
beq NWC24CheckUserId_return_ok
|
||||
li r3,-0x7
|
||||
b NWC24CheckUserId_return
|
||||
NWC24CheckUserId_return_ok:
|
||||
li r3,0
|
||||
NWC24CheckUserId_return:
|
||||
addi r11,r1,0x30
|
||||
bl _restgpr_27
|
||||
lwz r0,0x34(r1)
|
||||
mtspr LR,r0
|
||||
addi r1,r1,0x30
|
||||
blr
|
||||
NWC24Err NWC24CheckUserId(NWC24UserId id) {
|
||||
NWC24UserId myId;
|
||||
u64 value;
|
||||
int i;
|
||||
u32 area;
|
||||
u32 myArea;
|
||||
|
||||
NWC24GetMyUserId(&myId);
|
||||
if (myId == id) {
|
||||
return NWC24_ERR_ID_GENERATED;
|
||||
}
|
||||
myArea = (getUnScrambleId(myId) >> 47) & 7;
|
||||
value = getUnScrambleId(id);
|
||||
area = (value >> 47) & 7;
|
||||
for (i = 0; i < 0x2B; i++) {
|
||||
if ((value >> (0x35 - (i + 1))) & 1) {
|
||||
value ^= (u64)0x635 << (0x2A - i);
|
||||
}
|
||||
}
|
||||
if (value != 0) {
|
||||
return NWC24_ERR_ID_CRC;
|
||||
}
|
||||
if (myArea == 0 && area != 0) {
|
||||
return NWC24_ERR_PROTECTED;
|
||||
}
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
|
||||
NWC24Err NWC24iCheckUserIdCRC(NWC24UserId id) {
|
||||
u64 value = getUnScrambleId(id);
|
||||
int i;
|
||||
|
||||
@@ -414,503 +414,27 @@ s32 VFi_NandFlushNANDFromHandleIdx(s32 i_handleIdx, BOOL i_setLastDeviceError) {
|
||||
return NAND_RESULT_OK;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
extern void _savegpr_23();
|
||||
extern void _restgpr_23();
|
||||
static asm s32 _MountPrfFile(register PDM_DISK* p_disk, register char* i_fullpath_p) {
|
||||
nofralloc
|
||||
|
||||
clrlwi r11, r1, 26
|
||||
mr r12, r1
|
||||
subfic r11, r11, -0xc0
|
||||
stwux r1, r1, r11
|
||||
mflr r0
|
||||
mr r11, r12
|
||||
stw r0, 0x4(r12)
|
||||
bl _savegpr_23
|
||||
mr r26, r3
|
||||
mr r27, r4
|
||||
bl VFSysPDMDisk2DriveP
|
||||
mr r23, r3
|
||||
mr r3, r26
|
||||
bl dCommon_getHandleIdxFromDisk
|
||||
cmpwi r23, 0x0
|
||||
mr r31, r3
|
||||
bne _MountPrfFile_L_814D7C0C
|
||||
li r3, -0x14
|
||||
b _MountPrfFile_L_814D824C
|
||||
_MountPrfFile_L_814D7C0C:
|
||||
cmplwi r3, 0x1a
|
||||
lwz r28, 0x0(r23)
|
||||
bge _MountPrfFile_L_814D7CD8
|
||||
lis r4, l_nandFunc@ha
|
||||
slwi r0, r3, 4
|
||||
addi r4, r4, l_nandFunc@l
|
||||
add r3, r4, r0
|
||||
lwz r12, 0x4(r3)
|
||||
cmpwi r12, 0x0
|
||||
beq _MountPrfFile_L_814D7C50
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x1
|
||||
mtctr r12
|
||||
bctrl
|
||||
mr r29, r3
|
||||
b _MountPrfFile_L_814D7DF0
|
||||
_MountPrfFile_L_814D7C50:
|
||||
lis r3, 0x1062
|
||||
lwz r30, VF_nand_retry_max(r0)
|
||||
addi r25, r3, 0x4dd3
|
||||
li r29, 0x0
|
||||
lis r24, 0x8000
|
||||
li r23, 0x0
|
||||
b _MountPrfFile_L_814D7CC8
|
||||
_MountPrfFile_L_814D7C6C:
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x1
|
||||
bl NANDOpen
|
||||
cmpwi r3, -0x3
|
||||
mr r29, r3
|
||||
beq _MountPrfFile_L_814D7C94
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D7C94
|
||||
b _MountPrfFile_L_814D7DF0
|
||||
_MountPrfFile_L_814D7C94:
|
||||
lwz r0, 0xf8(r24)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r25, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r23, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D7CC8:
|
||||
cmpwi r30, 0x0
|
||||
subi r30, r30, 0x1
|
||||
bgt _MountPrfFile_L_814D7C6C
|
||||
b _MountPrfFile_L_814D7DF0
|
||||
_MountPrfFile_L_814D7CD8:
|
||||
addis r0, r3, 0x1
|
||||
cmplwi r0, 0xfff6
|
||||
bne _MountPrfFile_L_814D7D6C
|
||||
lis r3, 0x1062
|
||||
lwz r30, VF_nand_retry_max(r0)
|
||||
addi r25, r3, 0x4dd3
|
||||
li r29, 0x0
|
||||
lis r24, 0x8000
|
||||
li r23, 0x0
|
||||
b _MountPrfFile_L_814D7D5C
|
||||
_MountPrfFile_L_814D7D00:
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x1
|
||||
bl NANDOpen
|
||||
cmpwi r3, -0x3
|
||||
mr r29, r3
|
||||
beq _MountPrfFile_L_814D7D28
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D7D28
|
||||
b _MountPrfFile_L_814D7DF0
|
||||
_MountPrfFile_L_814D7D28:
|
||||
lwz r0, 0xf8(r24)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r25, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r23, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D7D5C:
|
||||
cmpwi r30, 0x0
|
||||
subi r30, r30, 0x1
|
||||
bgt _MountPrfFile_L_814D7D00
|
||||
b _MountPrfFile_L_814D7DF0
|
||||
_MountPrfFile_L_814D7D6C:
|
||||
lis r3, 0x1062
|
||||
lwz r30, VF_nand_retry_max(r0)
|
||||
addi r23, r3, 0x4dd3
|
||||
li r29, 0x0
|
||||
lis r25, 0x8000
|
||||
li r24, 0x0
|
||||
b _MountPrfFile_L_814D7DE4
|
||||
_MountPrfFile_L_814D7D88:
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x1
|
||||
bl NANDPrivateOpen
|
||||
cmpwi r3, -0x3
|
||||
mr r29, r3
|
||||
beq _MountPrfFile_L_814D7DB0
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D7DB0
|
||||
b _MountPrfFile_L_814D7DF0
|
||||
_MountPrfFile_L_814D7DB0:
|
||||
lwz r0, 0xf8(r25)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r23, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r24, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D7DE4:
|
||||
cmpwi r30, 0x0
|
||||
subi r30, r30, 0x1
|
||||
bgt _MountPrfFile_L_814D7D88
|
||||
_MountPrfFile_L_814D7DF0:
|
||||
cmpwi r29, 0x0
|
||||
bne _MountPrfFile_L_814D8038
|
||||
addi r3, r1, 0x40
|
||||
li r4, 0x0
|
||||
li r5, 0x20
|
||||
bl VFipf_memset
|
||||
mr r3, r28
|
||||
addi r4, r1, 0x40
|
||||
li r5, 0x20
|
||||
bl A32_NANDRead
|
||||
cmpwi r3, 0x0
|
||||
mr r30, r3
|
||||
bge _MountPrfFile_L_814D7EAC
|
||||
lis r3, 0x1062
|
||||
lwz r29, VF_nand_retry_max(r0)
|
||||
addi r27, r3, 0x4dd3
|
||||
lis r25, 0x8000
|
||||
li r24, 0x0
|
||||
b _MountPrfFile_L_814D7E8C
|
||||
_MountPrfFile_L_814D7E3C:
|
||||
mr r3, r28
|
||||
bl NANDClose
|
||||
cmpwi r3, -0x3
|
||||
beq _MountPrfFile_L_814D7E58
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D7E58
|
||||
b _MountPrfFile_L_814D7E98
|
||||
_MountPrfFile_L_814D7E58:
|
||||
lwz r0, 0xf8(r25)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r27, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r24, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D7E8C:
|
||||
cmpwi r29, 0x0
|
||||
subi r29, r29, 0x1
|
||||
bgt _MountPrfFile_L_814D7E3C
|
||||
_MountPrfFile_L_814D7E98:
|
||||
mr r3, r26
|
||||
mr r4, r30
|
||||
bl dCommon_setLastDeviceErrorToDisk
|
||||
mr r3, r30
|
||||
b _MountPrfFile_L_814D824C
|
||||
_MountPrfFile_L_814D7EAC:
|
||||
addi r3, r1, 0x40
|
||||
bl dCommon_PrintSignature
|
||||
addi r3, r1, 0x40
|
||||
bl dCommon_IsPrfFile
|
||||
cmpwi r3, 0x0
|
||||
bne _MountPrfFile_L_814D7F40
|
||||
lis r3, 0x1062
|
||||
lwz r23, VF_nand_retry_max(r0)
|
||||
addi r26, r3, 0x4dd3
|
||||
lis r25, 0x8000
|
||||
li r24, 0x0
|
||||
b _MountPrfFile_L_814D7F2C
|
||||
_MountPrfFile_L_814D7EDC:
|
||||
mr r3, r28
|
||||
bl NANDClose
|
||||
cmpwi r3, -0x3
|
||||
beq _MountPrfFile_L_814D7EF8
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D7EF8
|
||||
b _MountPrfFile_L_814D7F38
|
||||
_MountPrfFile_L_814D7EF8:
|
||||
lwz r0, 0xf8(r25)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r26, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r24, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D7F2C:
|
||||
cmpwi r23, 0x0
|
||||
subi r23, r23, 0x1
|
||||
bgt _MountPrfFile_L_814D7EDC
|
||||
_MountPrfFile_L_814D7F38:
|
||||
li r3, -0x1
|
||||
b _MountPrfFile_L_814D824C
|
||||
_MountPrfFile_L_814D7F40:
|
||||
lbz r0, 0x49(r1)
|
||||
mr r3, r26
|
||||
lbz r6, 0x4a(r1)
|
||||
lbz r5, 0x4b(r1)
|
||||
slwi r0, r0, 16
|
||||
lbz r4, 0x48(r1)
|
||||
rlwimi r5, r6, 8, 16, 23
|
||||
rlwimi r0, r4, 24, 0, 7
|
||||
or r4, r5, r0
|
||||
bl dCommon_setFileSizeToDisk
|
||||
mr r3, r26
|
||||
bl dCommon_getFileSizeFromDisk
|
||||
subi r0, r3, 0x1f
|
||||
li r3, 0x0
|
||||
srwi r4, r0, 9
|
||||
li r5, 0x1
|
||||
li r6, 0x200
|
||||
bl dCommon_GetNiceFatType
|
||||
mr r23, r3
|
||||
mr r3, r26
|
||||
mr r4, r23
|
||||
bl dCommon_setFatTypeToDisk
|
||||
mr r3, r23
|
||||
bl dCommon_GetReservedSecFromFatType
|
||||
mr r4, r3
|
||||
mr r3, r26
|
||||
bl dCommon_setResvSecNumToDisk
|
||||
mr r3, r23
|
||||
bl dCommon_GetRootEntNumFromFatType
|
||||
mr r4, r3
|
||||
mr r3, r26
|
||||
bl dCommon_setRootEntNumToDisk
|
||||
lis r3, 0x1062
|
||||
lwz r29, VF_nand_retry_max(r0)
|
||||
addi r30, r3, 0x4dd3
|
||||
lis r25, 0x8000
|
||||
li r24, 0x0
|
||||
b _MountPrfFile_L_814D8028
|
||||
_MountPrfFile_L_814D7FD8:
|
||||
mr r3, r28
|
||||
bl NANDClose
|
||||
cmpwi r3, -0x3
|
||||
beq _MountPrfFile_L_814D7FF4
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D7FF4
|
||||
b _MountPrfFile_L_814D804C
|
||||
_MountPrfFile_L_814D7FF4:
|
||||
lwz r0, 0xf8(r25)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r30, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r24, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D8028:
|
||||
cmpwi r29, 0x0
|
||||
subi r29, r29, 0x1
|
||||
bgt _MountPrfFile_L_814D7FD8
|
||||
b _MountPrfFile_L_814D804C
|
||||
_MountPrfFile_L_814D8038:
|
||||
mr r3, r26
|
||||
mr r4, r29
|
||||
bl dCommon_setLastDeviceErrorToDisk
|
||||
mr r3, r29
|
||||
b _MountPrfFile_L_814D824C
|
||||
_MountPrfFile_L_814D804C:
|
||||
cmplwi r31, 0x1a
|
||||
bge _MountPrfFile_L_814D8114
|
||||
lis r3, l_nandFunc@ha
|
||||
slwi r0, r31, 4
|
||||
addi r3, r3, l_nandFunc@l
|
||||
add r3, r3, r0
|
||||
lwz r12, 0x4(r3)
|
||||
cmpwi r12, 0x0
|
||||
beq _MountPrfFile_L_814D808C
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x3
|
||||
mtctr r12
|
||||
bctrl
|
||||
mr r30, r3
|
||||
b _MountPrfFile_L_814D822C
|
||||
_MountPrfFile_L_814D808C:
|
||||
lis r3, 0x1062
|
||||
lwz r29, VF_nand_retry_max(r0)
|
||||
addi r31, r3, 0x4dd3
|
||||
li r30, 0x0
|
||||
lis r25, 0x8000
|
||||
li r24, 0x0
|
||||
b _MountPrfFile_L_814D8104
|
||||
_MountPrfFile_L_814D80A8:
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x3
|
||||
bl NANDOpen
|
||||
cmpwi r3, -0x3
|
||||
mr r30, r3
|
||||
beq _MountPrfFile_L_814D80D0
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D80D0
|
||||
b _MountPrfFile_L_814D822C
|
||||
_MountPrfFile_L_814D80D0:
|
||||
lwz r0, 0xf8(r25)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r31, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r24, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D8104:
|
||||
cmpwi r29, 0x0
|
||||
subi r29, r29, 0x1
|
||||
bgt _MountPrfFile_L_814D80A8
|
||||
b _MountPrfFile_L_814D822C
|
||||
_MountPrfFile_L_814D8114:
|
||||
addis r0, r31, 0x1
|
||||
cmplwi r0, 0xfff6
|
||||
bne _MountPrfFile_L_814D81A8
|
||||
lis r3, 0x1062
|
||||
lwz r29, VF_nand_retry_max(r0)
|
||||
addi r31, r3, 0x4dd3
|
||||
li r30, 0x0
|
||||
lis r25, 0x8000
|
||||
li r24, 0x0
|
||||
b _MountPrfFile_L_814D8198
|
||||
_MountPrfFile_L_814D813C:
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x3
|
||||
bl NANDOpen
|
||||
cmpwi r3, -0x3
|
||||
mr r30, r3
|
||||
beq _MountPrfFile_L_814D8164
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D8164
|
||||
b _MountPrfFile_L_814D822C
|
||||
_MountPrfFile_L_814D8164:
|
||||
lwz r0, 0xf8(r25)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r31, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r24, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D8198:
|
||||
cmpwi r29, 0x0
|
||||
subi r29, r29, 0x1
|
||||
bgt _MountPrfFile_L_814D813C
|
||||
b _MountPrfFile_L_814D822C
|
||||
_MountPrfFile_L_814D81A8:
|
||||
lis r3, 0x1062
|
||||
lwz r29, VF_nand_retry_max(r0)
|
||||
addi r24, r3, 0x4dd3
|
||||
li r30, 0x0
|
||||
lis r25, 0x8000
|
||||
li r31, 0x0
|
||||
b _MountPrfFile_L_814D8220
|
||||
_MountPrfFile_L_814D81C4:
|
||||
mr r3, r27
|
||||
mr r4, r28
|
||||
li r5, 0x3
|
||||
bl NANDPrivateOpen
|
||||
cmpwi r3, -0x3
|
||||
mr r30, r3
|
||||
beq _MountPrfFile_L_814D81EC
|
||||
cmpwi r3, -0x2
|
||||
beq _MountPrfFile_L_814D81EC
|
||||
b _MountPrfFile_L_814D822C
|
||||
_MountPrfFile_L_814D81EC:
|
||||
lwz r0, 0xf8(r25)
|
||||
lwz r6, VF_nand_sleep_msec(r0)
|
||||
srwi r0, r0, 2
|
||||
mulhwu r3, r24, r0
|
||||
srawi r0, r6, 31
|
||||
mullw r4, r31, r6
|
||||
srwi r5, r3, 6
|
||||
mulhwu r3, r5, r6
|
||||
mullw r0, r5, r0
|
||||
add r3, r3, r4
|
||||
mullw r4, r5, r6
|
||||
add r3, r3, r0
|
||||
bl OSSleepTicks
|
||||
_MountPrfFile_L_814D8220:
|
||||
cmpwi r29, 0x0
|
||||
subi r29, r29, 0x1
|
||||
bgt _MountPrfFile_L_814D81C4
|
||||
_MountPrfFile_L_814D822C:
|
||||
cmpwi r30, 0x0
|
||||
bne _MountPrfFile_L_814D823C
|
||||
li r3, 0x0
|
||||
b _MountPrfFile_L_814D824C
|
||||
_MountPrfFile_L_814D823C:
|
||||
mr r3, r26
|
||||
mr r4, r30
|
||||
bl dCommon_setLastDeviceErrorToDisk
|
||||
mr r3, r30
|
||||
_MountPrfFile_L_814D824C:
|
||||
lwz r10, 0x0(r1)
|
||||
mr r11, r10
|
||||
bl _restgpr_23
|
||||
lwz r0, 0x4(r10)
|
||||
mtlr r0
|
||||
mr r1, r10
|
||||
blr
|
||||
}
|
||||
#else
|
||||
static s32 _MountPrfFile(PDM_DISK* p_disk, char* i_fullpath_p) {
|
||||
PR_BINHEADER header ALIGN64;
|
||||
VFSys_drive* drive_p = VFSysPDMDisk2DriveP(p_disk);
|
||||
NANDFileInfo* fileInfo_p = NULL;
|
||||
s32 nandError = NAND_RESULT_OK;
|
||||
NANDFileInfo* fileInfo_p;
|
||||
s32 nandError;
|
||||
u32 handleIdx = dCommon_getHandleIdxFromDisk(p_disk);
|
||||
|
||||
if (drive_p == NULL) {
|
||||
if (!drive_p) {
|
||||
return -20;
|
||||
}
|
||||
fileInfo_p = drive_p->file_p;
|
||||
nandError = VFi_NandOpenSp(i_fullpath_p, fileInfo_p, NAND_ACCESS_READ, handleIdx);
|
||||
if (nandError == 0) {
|
||||
s32 readResult;
|
||||
|
||||
VFipf_memset(&header, 0, 32);
|
||||
nandError = A32_NANDRead(fileInfo_p, &header, 32);
|
||||
if (nandError < NAND_RESULT_OK) {
|
||||
readResult = A32_NANDRead(fileInfo_p, &header, 32);
|
||||
if (readResult < NAND_RESULT_OK) {
|
||||
VFi_NandClose(fileInfo_p);
|
||||
dCommon_setLastDeviceErrorToDisk(p_disk, nandError);
|
||||
return nandError;
|
||||
dCommon_setLastDeviceErrorToDisk(p_disk, readResult);
|
||||
return readResult;
|
||||
}
|
||||
dCommon_PrintSignature(&header);
|
||||
if (!dCommon_IsPrfFile(&header)) {
|
||||
@@ -923,7 +447,7 @@ static s32 _MountPrfFile(PDM_DISK* p_disk, char* i_fullpath_p) {
|
||||
u32 fatType;
|
||||
|
||||
dCommon_setFileSizeToDisk(p_disk,
|
||||
((header.fileSize[0] << 24) | (header.fileSize[1] << 16) | (header.fileSize[2] << 8) | (header.fileSize[3])));
|
||||
((header.fileSize[2] << 8) | header.fileSize[3]) | ((header.fileSize[0] << 24) | (header.fileSize[1] << 16)));
|
||||
fileSize = dCommon_getFileSizeFromDisk(p_disk);
|
||||
dataSize = (fileSize - 0x20);
|
||||
SPU = ((dataSize + 1) >> 9);
|
||||
@@ -946,7 +470,6 @@ static s32 _MountPrfFile(PDM_DISK* p_disk, char* i_fullpath_p) {
|
||||
return nandError;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static u16 _UnmountPrfFile(PDM_DISK* p_disk) {
|
||||
VFSys_drive* drive_p = VFSysPDMDisk2DriveP(p_disk);
|
||||
|
||||
@@ -40,8 +40,6 @@ const u8 scWpaFindOuiPad4 = 0;
|
||||
#define scWpaFindOui0 (*((volatile const u8*)&scWpaFindOui0))
|
||||
#define scWpaFindOui1 (*((volatile const u8*)&scWpaFindOui1))
|
||||
#define scWpaFindOui2 (*((volatile const u8*)&scWpaFindOui2))
|
||||
extern void _savegpr_21();
|
||||
extern void _restgpr_21();
|
||||
|
||||
#define WAIT_FOR_OPERATION(...) \
|
||||
do { \
|
||||
@@ -310,80 +308,45 @@ BOOL WDFindInformationElement(WDInfoElement** outIE, u32* outIELength, WDBssDesc
|
||||
return found;
|
||||
}
|
||||
|
||||
asm BOOL WDiFindVendorSpecificIE(WDVendorInfoElement** outIE, u32* outIELength, WDBssDesc* bssDesc, int id, u8* data, u8 mode) {
|
||||
nofralloc
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
addi r11, r1, 0x40
|
||||
bl _savegpr_21
|
||||
cmpwi r5, 0
|
||||
mr r30, r3
|
||||
mr r31, r4
|
||||
mr r21, r6
|
||||
mr r22, r7
|
||||
mr r23, r8
|
||||
li r28, 0
|
||||
beq WDiFindVendorSpecificIE_done
|
||||
addi r26, r5, 0x3e
|
||||
lhz r29, 0x3c(r5)
|
||||
mr r25, r26
|
||||
li r27, 0
|
||||
b WDiFindVendorSpecificIE_loop_check
|
||||
WDiFindVendorSpecificIE_loop:
|
||||
lbzx r0, r26, r27
|
||||
add r25, r26, r27
|
||||
cmplw r0, r21
|
||||
bne WDiFindVendorSpecificIE_next
|
||||
lbz r24, 5(r25)
|
||||
mr r4, r22
|
||||
addi r3, r25, 2
|
||||
li r5, 3
|
||||
bl memcmp
|
||||
cmpwi r3, 0
|
||||
bne WDiFindVendorSpecificIE_next
|
||||
cmplw r24, r23
|
||||
beq WDiFindVendorSpecificIE_found
|
||||
WDiFindVendorSpecificIE_next:
|
||||
lbz r0, 1(r25)
|
||||
add r3, r0, r27
|
||||
addi r27, r3, 2
|
||||
WDiFindVendorSpecificIE_loop_check:
|
||||
cmpw r27, r29
|
||||
blt WDiFindVendorSpecificIE_loop
|
||||
WDiFindVendorSpecificIE_found:
|
||||
cmpw r27, r29
|
||||
bge WDiFindVendorSpecificIE_done
|
||||
cmpwi r30, 0
|
||||
beq WDiFindVendorSpecificIE_no_out
|
||||
addi r0, r25, 6
|
||||
stw r0, 0(r30)
|
||||
WDiFindVendorSpecificIE_no_out:
|
||||
cmpwi r31, 0
|
||||
beq WDiFindVendorSpecificIE_set_found
|
||||
lbz r3, 1(r25)
|
||||
addi r0, r3, -4
|
||||
stw r0, 0(r31)
|
||||
WDiFindVendorSpecificIE_set_found:
|
||||
li r28, 1
|
||||
WDiFindVendorSpecificIE_done:
|
||||
cmpwi r28, 0
|
||||
bne WDiFindVendorSpecificIE_return
|
||||
cmpwi r30, 0
|
||||
beq WDiFindVendorSpecificIE_no_out_null
|
||||
li r0, 0
|
||||
stw r0, 0(r30)
|
||||
WDiFindVendorSpecificIE_no_out_null:
|
||||
cmpwi r31, 0
|
||||
beq WDiFindVendorSpecificIE_return
|
||||
li r0, 0
|
||||
stw r0, 0(r31)
|
||||
WDiFindVendorSpecificIE_return:
|
||||
addi r11, r1, 0x40
|
||||
mr r3, r28
|
||||
bl _restgpr_21
|
||||
lwz r0, 0x44(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
BOOL WDiFindVendorSpecificIE(WDVendorInfoElement** outIE, u32* outIELength, WDBssDesc* bssDesc, int id, u8* data, u8 mode) {
|
||||
u32* lengthResult = outIELength;
|
||||
WDVendorInfoElement** elementResult = outIE;
|
||||
int length;
|
||||
BOOL found = FALSE;
|
||||
|
||||
if (bssDesc != NULL) {
|
||||
s32 offset;
|
||||
u8* ptr = (u8*)(bssDesc + 1);
|
||||
WDVendorInfoElement* infoElement = (WDVendorInfoElement*)ptr;
|
||||
|
||||
length = bssDesc->ieLength;
|
||||
|
||||
for (offset = 0; offset < length; offset += infoElement->length + 2) {
|
||||
infoElement = (WDVendorInfoElement*)(ptr + offset);
|
||||
if (infoElement->id == (u32)id) {
|
||||
u8 elementMode = infoElement->mode;
|
||||
if (memcmp(infoElement->data, data, WD_VENDOR_LENGTH) == 0 && elementMode == mode) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (offset < length) {
|
||||
if (elementResult != NULL) {
|
||||
*elementResult = infoElement + 1;
|
||||
}
|
||||
if (lengthResult != NULL) {
|
||||
*lengthResult = infoElement->length - (sizeof(WDVendorInfoElement) - sizeof(WDInfoElement));
|
||||
}
|
||||
found = TRUE;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
if (elementResult != NULL) {
|
||||
*elementResult = NULL;
|
||||
}
|
||||
if (lengthResult != NULL) {
|
||||
*lengthResult = 0;
|
||||
}
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
@@ -6505,144 +6505,12 @@ notFound:
|
||||
return vmNull;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
extern void _savegpr_24();
|
||||
extern void _restgpr_24();
|
||||
|
||||
asm CHANSVmErr VmPushFuncReturnInfo(register CHANSVm* vm, register u32 argCount, register u32 totalSlots, register u32 headerCount) {
|
||||
nofralloc
|
||||
|
||||
stwu r1, -0x30(r1)
|
||||
mflr r0
|
||||
stw r0, 0x34(r1)
|
||||
addi r11, r1, 0x30
|
||||
bl _savegpr_24
|
||||
lwz r7, 0x60(r3)
|
||||
mr r25, r3
|
||||
mr r26, r4
|
||||
mr r27, r5
|
||||
cmpwi r7, 0
|
||||
mr r28, r6
|
||||
li r30, -0x3c2
|
||||
beq VmPushFuncReturnInfo_active
|
||||
lwz r0, 0xc(r7)
|
||||
cmplw r0, r4
|
||||
bge VmPushFuncReturnInfo_active
|
||||
li r3, -0x3c2
|
||||
b VmPushFuncReturnInfo_return
|
||||
|
||||
VmPushFuncReturnInfo_active:
|
||||
cmplwi r6, 0xff
|
||||
bgt VmPushFuncReturnInfo_return_result
|
||||
lwz r29, 0x2c(r3)
|
||||
li r31, -1
|
||||
b VmPushFuncReturnInfo_after_loop
|
||||
|
||||
VmPushFuncReturnInfo_loop:
|
||||
lwz r0, 0x28(r25)
|
||||
addi r29, r29, -0x10
|
||||
cmplw r0, r29
|
||||
ble VmPushFuncReturnInfo_clear_stack
|
||||
li r3, -0x3e6
|
||||
b VmPushFuncReturnInfo_return
|
||||
|
||||
VmPushFuncReturnInfo_clear_stack:
|
||||
mr r3, r29
|
||||
li r4, 0
|
||||
li r5, 0x10
|
||||
bl memset
|
||||
lwz r4, 0x60(r25)
|
||||
addi r26, r26, 1
|
||||
lwz r3, 0xc(r4)
|
||||
cmplw r3, r31
|
||||
bge VmPushFuncReturnInfo_after_stack
|
||||
addi r0, r3, 1
|
||||
stw r0, 0xc(r4)
|
||||
b VmPushFuncReturnInfo_after_loop
|
||||
|
||||
VmPushFuncReturnInfo_after_stack:
|
||||
li r3, -0x3c2
|
||||
b VmPushFuncReturnInfo_return
|
||||
|
||||
VmPushFuncReturnInfo_after_loop:
|
||||
cmplw r26, r27
|
||||
blt VmPushFuncReturnInfo_loop
|
||||
stw r29, 0x2c(r25)
|
||||
mr r3, r25
|
||||
bl CHANSVmUpdateSmallestFreeHeapSize
|
||||
slwi r0, r28, 4
|
||||
li r31, 0
|
||||
addic. r24, r0, 0x20
|
||||
beq VmPushFuncReturnInfo_no_block
|
||||
clrlwi. r0, r24, 0x1d
|
||||
bne VmPushFuncReturnInfo_no_block
|
||||
lwz r0, 0x28(r25)
|
||||
lwz r3, 0x2c(r25)
|
||||
subf r0, r0, r3
|
||||
cmplw r0, r24
|
||||
blt VmPushFuncReturnInfo_no_block
|
||||
subf r31, r24, r3
|
||||
mr r3, r25
|
||||
stw r31, 0x2c(r25)
|
||||
bl CHANSVmUpdateSmallestFreeHeapSize
|
||||
mr r3, r31
|
||||
mr r5, r24
|
||||
li r4, 0
|
||||
bl memset
|
||||
|
||||
VmPushFuncReturnInfo_no_block:
|
||||
cmpwi r31, 0
|
||||
beq VmPushFuncReturnInfo_return_result
|
||||
lwz r3, 0x60(r25)
|
||||
cmpwi r3, 0
|
||||
beq VmPushFuncReturnInfo_set_active
|
||||
lwz r0, 4(r3)
|
||||
stw r0, 4(r31)
|
||||
lwz r3, 0x60(r25)
|
||||
lwz r0, 0x10(r3)
|
||||
stw r0, 0x10(r31)
|
||||
lwz r0, 0x60(r25)
|
||||
stw r0, 0(r31)
|
||||
|
||||
VmPushFuncReturnInfo_set_active:
|
||||
stw r31, 0x60(r25)
|
||||
add r0, r28, r27
|
||||
subfic r0, r0, 0x2000
|
||||
li r24, 0
|
||||
stw r29, 8(r31)
|
||||
li r25, 0
|
||||
sth r26, 0x14(r31)
|
||||
sth r27, 0x16(r31)
|
||||
stb r28, 0x1a(r31)
|
||||
sth r0, 0x18(r31)
|
||||
b VmPushFuncReturnInfo_header_loop_check
|
||||
|
||||
VmPushFuncReturnInfo_header_loop:
|
||||
add r3, r31, r25
|
||||
li r4, 0
|
||||
addi r3, r3, 0x20
|
||||
li r5, 0x10
|
||||
bl memset
|
||||
addi r24, r24, 1
|
||||
addi r25, r25, 0x10
|
||||
|
||||
VmPushFuncReturnInfo_header_loop_check:
|
||||
cmplw r24, r28
|
||||
blt VmPushFuncReturnInfo_header_loop
|
||||
li r30, 0
|
||||
|
||||
VmPushFuncReturnInfo_return_result:
|
||||
mr r3, r30
|
||||
|
||||
VmPushFuncReturnInfo_return:
|
||||
addi r11, r1, 0x30
|
||||
bl _restgpr_24
|
||||
lwz r0, 0x34(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x30
|
||||
blr
|
||||
static inline vmU32 VmStackSpace(CHANSVmPrivate* pVm) {
|
||||
vmU32 space = (vmU32)pVm->pFreeExeBuf;
|
||||
space = (vmU32)pVm->pObjStackTopBuf - space;
|
||||
return space;
|
||||
}
|
||||
#else
|
||||
|
||||
static CHANSVmErr VmPushFuncReturnInfo(CHANSVm* vm, u32 argCount, u32 totalSlots, u32 headerCount) {
|
||||
CHANSVmPrivate* pVm = (CHANSVmPrivate*)vm;
|
||||
CHANSVmExecutionCtx* block;
|
||||
@@ -6681,7 +6549,7 @@ static CHANSVmErr VmPushFuncReturnInfo(CHANSVm* vm, u32 argCount, u32 totalSlots
|
||||
block = vmNull;
|
||||
|
||||
if (size != 0 && (size & 7) == 0) {
|
||||
if ((vmU32)pVm->pObjStackTopBuf - (vmU32)pVm->pFreeExeBuf >= size) {
|
||||
if (VmStackSpace(pVm) >= size) {
|
||||
block = (CHANSVmExecutionCtx*)(pVm->pObjStackTopBuf - size);
|
||||
pVm->pObjStackTopBuf = (vmU8*)block;
|
||||
CHANSVmUpdateSmallestFreeHeapSize(vm);
|
||||
@@ -6715,7 +6583,6 @@ static CHANSVmErr VmPushFuncReturnInfo(CHANSVm* vm, u32 argCount, u32 totalSlots
|
||||
return_result:
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
static CHANSVmErr VmReturnWithValue(CHANSVm* vm, u32 val) {
|
||||
CHANSVmPrivate* pVm = (CHANSVmPrivate*)vm;
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
namespace textinput {
|
||||
namespace gui {
|
||||
extern "C" void drawLine___Q29textinput3guiFfffffUcR8_GXColor();
|
||||
extern "C" const f32 scGuiZeroF;
|
||||
|
||||
void drawLine_(f32 x0, f32 y0, f32 x1, f32 y1, f32 z, u8 width, GXColor& color) {
|
||||
GXClearVtxDesc();
|
||||
@@ -31,7 +30,7 @@ namespace textinput {
|
||||
GXSetBlendMode(GX_BM_NONE, GX_BL_ZERO, GX_BL_ZERO, GX_LO_NOOP);
|
||||
|
||||
Mtx mtx;
|
||||
MTXTrans(mtx, scGuiZeroF, scGuiZeroF, scGuiZeroF);
|
||||
MTXTrans(mtx, 0.0f, 0.0f, 0.0f);
|
||||
GXLoadPosMtxImm(mtx, 0);
|
||||
|
||||
GXSetLineWidth(width, GX_TO_ZERO);
|
||||
@@ -334,7 +333,7 @@ namespace textinput {
|
||||
MTXInverse(mpPane->GetGlobalMtx(), globalMtx);
|
||||
|
||||
nw4r::math::VEC3 pos;
|
||||
MTXMultVec(globalMtx, nw4r::math::VEC3(x, y, scGuiZeroF), pos);
|
||||
MTXMultVec(globalMtx, nw4r::math::VEC3(x, y, 0.0f), pos);
|
||||
|
||||
nw4r::ut::Rect rect = mpPane->GetPaneRect(*drawInfo);
|
||||
|
||||
@@ -346,124 +345,27 @@ namespace textinput {
|
||||
}
|
||||
}
|
||||
|
||||
#pragma push
|
||||
#pragma section sconst_type ".sdata2"
|
||||
extern "C" const f32 scGuiZeroF = 0.0f;
|
||||
extern "C" const u8 scGuiLineColorR = 0xFF;
|
||||
extern "C" const u8 scGuiLineColorG = 0x00;
|
||||
extern "C" const u8 scGuiLineColorB = 0x00;
|
||||
extern "C" const u8 scGuiLineColorA = 0xFF;
|
||||
extern "C" const f32 scGuiHalfF = 0.5f;
|
||||
#pragma pop
|
||||
|
||||
extern "C" asm void draw__Q39textinput3gui13PaneComponentFv() {
|
||||
nofralloc
|
||||
stwu r1, -0x40(r1)
|
||||
mflr r0
|
||||
stw r0, 0x44(r1)
|
||||
stfd f31, 0x30(r1)
|
||||
psq_st f31, 0x38(r1), 0, 0
|
||||
stfd f30, 0x20(r1)
|
||||
psq_st f30, 0x28(r1), 0, 0
|
||||
stw r31, 0x1c(r1)
|
||||
mr r31, r3
|
||||
lwz r3, 0x94(r3)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x50(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
beq pane_component_draw_done
|
||||
lwz r5, 0x9c(r31)
|
||||
mr r3, r31
|
||||
lbz r7, scGuiLineColorR
|
||||
li r4, 0
|
||||
lfs f1, 0x4c(r5)
|
||||
lfs f0, 0x50(r5)
|
||||
lfs f31, 0x90(r5)
|
||||
lfs f30, 0xa0(r5)
|
||||
lbz r6, scGuiLineColorG
|
||||
lbz r5, scGuiLineColorB
|
||||
lbz r0, scGuiLineColorA
|
||||
stb r7, 8(r1)
|
||||
stb r6, 9(r1)
|
||||
stb r5, 0xa(r1)
|
||||
stb r0, 0xb(r1)
|
||||
lwz r12, 0(r31)
|
||||
stfs f1, 0x10(r1)
|
||||
lwz r12, 0x24(r12)
|
||||
stfs f0, 0x14(r1)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
beq pane_component_draw_lines
|
||||
li r3, 0
|
||||
li r0, 0xff
|
||||
stb r3, 8(r1)
|
||||
stb r0, 0xa(r1)
|
||||
pane_component_draw_lines:
|
||||
lfs f1, scGuiHalfF
|
||||
addi r4, r1, 8
|
||||
lfs f0, 0x14(r1)
|
||||
li r3, 8
|
||||
lfs f2, 0x10(r1)
|
||||
fmuls f0, f0, f1
|
||||
lfs f5, scGuiZeroF
|
||||
fmuls f3, f2, f1
|
||||
fsubs f2, f30, f0
|
||||
fsubs f1, f31, f3
|
||||
fadds f3, f31, f3
|
||||
fmr f4, f2
|
||||
bl drawLine___Q29textinput3guiFfffffUcR8_GXColor
|
||||
lfs f1, 0x10(r1)
|
||||
addi r4, r1, 8
|
||||
lfs f2, scGuiHalfF
|
||||
li r3, 8
|
||||
lfs f0, 0x14(r1)
|
||||
fmuls f1, f1, f2
|
||||
lfs f5, scGuiZeroF
|
||||
fmuls f0, f0, f2
|
||||
fadds f1, f31, f1
|
||||
fsubs f2, f30, f0
|
||||
fadds f4, f30, f0
|
||||
fmr f3, f1
|
||||
bl drawLine___Q29textinput3guiFfffffUcR8_GXColor
|
||||
lfs f1, scGuiHalfF
|
||||
addi r4, r1, 8
|
||||
lfs f0, 0x14(r1)
|
||||
li r3, 8
|
||||
lfs f2, 0x10(r1)
|
||||
fmuls f0, f0, f1
|
||||
lfs f5, scGuiZeroF
|
||||
fmuls f3, f2, f1
|
||||
fadds f2, f30, f0
|
||||
fadds f1, f31, f3
|
||||
fsubs f3, f31, f3
|
||||
fmr f4, f2
|
||||
bl drawLine___Q29textinput3guiFfffffUcR8_GXColor
|
||||
lfs f1, 0x10(r1)
|
||||
addi r4, r1, 8
|
||||
lfs f2, scGuiHalfF
|
||||
li r3, 8
|
||||
lfs f0, 0x14(r1)
|
||||
fmuls f1, f1, f2
|
||||
lfs f5, scGuiZeroF
|
||||
fmuls f0, f0, f2
|
||||
fsubs f1, f31, f1
|
||||
fadds f2, f30, f0
|
||||
fsubs f4, f30, f0
|
||||
fmr f3, f1
|
||||
bl drawLine___Q29textinput3guiFfffffUcR8_GXColor
|
||||
pane_component_draw_done:
|
||||
psq_l f31, 0x38(r1), 0, 0
|
||||
lfd f31, 0x30(r1)
|
||||
psq_l f30, 0x28(r1), 0, 0
|
||||
lfd f30, 0x20(r1)
|
||||
lwz r0, 0x44(r1)
|
||||
lwz r31, 0x1c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
void PaneComponent::draw() {
|
||||
if (static_cast<PaneManager*>(mpManager)->getDrawInfo() == NULL) {
|
||||
return;
|
||||
}
|
||||
nw4r::lyt::Size size = mpPane->GetSize();
|
||||
f32 x = mpPane->GetGlobalMtx()._03;
|
||||
f32 y = mpPane->GetGlobalMtx()._13;
|
||||
GXColor color = {255, 0, 0, 255};
|
||||
if (isPointed(0)) {
|
||||
color.r = 0;
|
||||
color.b = 255;
|
||||
}
|
||||
drawLine_(x - size.width / 2.0f, y - size.height / 2.0f,
|
||||
x + size.width / 2.0f, y - size.height / 2.0f, 0.0f, 8, color);
|
||||
drawLine_(x + size.width / 2.0f, y - size.height / 2.0f,
|
||||
x + size.width / 2.0f, y + size.height / 2.0f, 0.0f, 8, color);
|
||||
drawLine_(x + size.width / 2.0f, y + size.height / 2.0f,
|
||||
x - size.width / 2.0f, y + size.height / 2.0f, 0.0f, 8, color);
|
||||
drawLine_(x - size.width / 2.0f, y + size.height / 2.0f,
|
||||
x - size.width / 2.0f, y - size.height / 2.0f, 0.0f, 8, color);
|
||||
}
|
||||
|
||||
static bool is_visible(nw4r::lyt::Pane* pane) {
|
||||
|
||||
@@ -1597,81 +1597,37 @@ void Base::init() {
|
||||
mfDrawScrollY = mfScrollY;
|
||||
}
|
||||
|
||||
extern "C" asm void create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer() {
|
||||
nofralloc
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
stw r0, 0x24(r1)
|
||||
stw r31, 0x1c(r1)
|
||||
mr r31, r3
|
||||
stw r30, 0x18(r1)
|
||||
mr r30, r5
|
||||
stw r29, 0x14(r1)
|
||||
mr r29, r4
|
||||
stw r4, 0x1d0(r3)
|
||||
addi r3, r3, 0x10
|
||||
bl create__Q39textinput10textdrawer4BaseFP12MEMAllocator
|
||||
lwz r0, 4(r30)
|
||||
mr r3, r29
|
||||
lhz r4, 0x1fc(r31)
|
||||
stw r0, 0x164(r31)
|
||||
addi r0, r4, 2
|
||||
lwz r5, 8(r30)
|
||||
slwi r4, r0, 3
|
||||
stw r5, 0x168(r31)
|
||||
lwz r0, 0xc(r30)
|
||||
stw r0, 0x16c(r31)
|
||||
stw r29, 0x200(r31)
|
||||
bl MEMAllocFromAllocator
|
||||
stw r3, 0x1f8(r31)
|
||||
addi r3, r31, 0x1f8
|
||||
bl init__Q49textinput9inputform4Base14RowInfoManagerFv
|
||||
lhz r0, 0x1fc(r31)
|
||||
lwz r6, 0x1f8(r31)
|
||||
slwi r0, r0, 3
|
||||
add r3, r6, r0
|
||||
lhz r0, 2(r3)
|
||||
slwi r0, r0, 3
|
||||
add r5, r6, r0
|
||||
lhzx r8, r6, r0
|
||||
lhz r7, 2(r5)
|
||||
slwi r0, r8, 3
|
||||
slwi r4, r7, 3
|
||||
lhzx r9, r6, r4
|
||||
add r3, r6, r0
|
||||
sthx r8, r6, r4
|
||||
cmplw r9, r9
|
||||
sth r7, 2(r3)
|
||||
sth r9, 0(r5)
|
||||
sth r9, 2(r5)
|
||||
lhz r3, 0x1fc(r31)
|
||||
lwz r6, 0x1f8(r31)
|
||||
addi r0, r3, 1
|
||||
clrlslwi r0, r0, 16, 3
|
||||
lhzx r0, r6, r0
|
||||
slwi r0, r0, 3
|
||||
add r4, r6, r0
|
||||
bne create_L1
|
||||
lhz r7, 2(r4)
|
||||
slwi r3, r7, 3
|
||||
lhzx r0, r6, r3
|
||||
sth r0, 0(r5)
|
||||
sth r7, 2(r5)
|
||||
sth r9, 2(r4)
|
||||
sthx r9, r6, r3
|
||||
create_L1:
|
||||
li r3, 0
|
||||
li r0, 1
|
||||
sth r3, 4(r5)
|
||||
sth r0, 6(r5)
|
||||
stw r5, 0x204(r31)
|
||||
lwz r31, 0x1c(r1)
|
||||
lwz r30, 0x18(r1)
|
||||
lwz r29, 0x14(r1)
|
||||
lwz r0, 0x24(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
void Base::create(MEMAllocator* allocator, EditBuffer* editBuffer) {
|
||||
mpAllocator = allocator;
|
||||
textdrawer::Base::create(allocator);
|
||||
mpString = static_cast<tistring::Decolated*>(editBuffer->mpString);
|
||||
mpUnfixString = static_cast<tistring::WithAtok*>(editBuffer->mpUnfixString);
|
||||
mpZiString = static_cast<tistring::WithZi*>(editBuffer->mpZiString);
|
||||
mriManager.mpAllocator = allocator;
|
||||
mriManager.mpInfo = static_cast<Info_*>(MEMAllocFromAllocator(allocator, (mriManager.mMaxLength + 2) * sizeof(Info_)));
|
||||
mriManager.init();
|
||||
Info_* rows = mriManager.mpInfo;
|
||||
struct RowCursor { Info_* row; };
|
||||
RowCursor cursor = { &rows[rows[mriManager.mMaxLength].Next] };
|
||||
u16 next = cursor.row->Next;
|
||||
u16 previous = cursor.row->Back;
|
||||
u16 selectedIndex = rows[next].Back;
|
||||
rows[next].Back = previous;
|
||||
rows[previous].Next = next;
|
||||
cursor.row->Back = selectedIndex;
|
||||
cursor.row->Next = selectedIndex;
|
||||
RowCursor listEnd = { &mriManager.mpInfo[mriManager.mpInfo[static_cast<u16>(mriManager.mMaxLength + 1)].Back] };
|
||||
rows = mriManager.mpInfo;
|
||||
if (cursor.row->Back == cursor.row->Next) {
|
||||
next = listEnd.row->Next;
|
||||
cursor.row->Back = rows[next].Back;
|
||||
cursor.row->Next = next;
|
||||
listEnd.row->Next = selectedIndex;
|
||||
rows[next].Back = selectedIndex;
|
||||
}
|
||||
cursor.row->StrCount = 0;
|
||||
cursor.row->DispRowCount = 1;
|
||||
mpCursorLine = cursor.row;
|
||||
}
|
||||
|
||||
tistring::Decolated* Base::getCurrentString(bool inputting) {
|
||||
|
||||
@@ -413,6 +413,15 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
inline void nw4r::lyt::Pane::SetTranslate(const nw4r::math::VEC3& translate) {
|
||||
mTranslate = translate;
|
||||
}
|
||||
|
||||
namespace ipl {
|
||||
namespace scene {
|
||||
void Address::destroy() {
|
||||
mpFriendCache->fin();
|
||||
}
|
||||
@@ -1416,6 +1425,10 @@ namespace ipl {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static inline Button* getEventButton() {
|
||||
return static_cast<Button*>(System::getScene(SCENE_BUTTON));
|
||||
}
|
||||
|
||||
void Address::onEventDerived(u32 compId, u32 event, const controller::Interface* con) {
|
||||
const char* paneName = static_cast<gui::PaneComponent*>(mpManager->getComponent(compId))->getPane()->GetName();
|
||||
|
||||
@@ -1426,7 +1439,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (con->downTrg(controller::BTN_INTERACT)) {
|
||||
Button* button = static_cast<Button*>(System::getScene(SCENE_BUTTON));
|
||||
Button* button = getEventButton();
|
||||
if (mState == STATE_COVER_NORMAL || mState == STATE_NORMAL) {
|
||||
if (Button::cmpButtonName(paneName, Button::BTN_EXIT) == 0) {
|
||||
MailAddressSelect* mailAddrSel = static_cast<MailAddressSelect*>(System::getScene(SCENE_MAIL_ADDRESS_SELECT));
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#define IPL_BUTTON_IMPLEMENTATION
|
||||
#include "scene/button/iplButton.h"
|
||||
|
||||
#include "iplSceneUI.h"
|
||||
@@ -968,38 +969,19 @@ namespace ipl {
|
||||
void OptOutButtonEventHandlerBase::onEventDerived(u32 compId, u32 event, const controller::Interface* con) {
|
||||
}
|
||||
|
||||
extern "C" asm void push_button_queue() {
|
||||
nofralloc
|
||||
lwz r5, 0x60(r3)
|
||||
lwz r0, 0x64(r3)
|
||||
cmpw r5, r0
|
||||
bne push_not_full
|
||||
li r3, 0
|
||||
blr
|
||||
push_not_full:
|
||||
lwz r0, 0x6C(r3)
|
||||
lwz r6, 0(r4)
|
||||
mulli r7, r0, 0xC
|
||||
lwz r5, 4(r4)
|
||||
lwz r0, 8(r4)
|
||||
stwx r6, r3, r7
|
||||
add r4, r3, r7
|
||||
stw r5, 4(r4)
|
||||
stw r0, 8(r4)
|
||||
lwz r4, 0x6C(r3)
|
||||
lwz r0, 0x60(r3)
|
||||
addi r4, r4, 1
|
||||
cmpw r4, r0
|
||||
stw r4, 0x6C(r3)
|
||||
blt push_pushed
|
||||
li r0, 0
|
||||
stw r0, 0x6C(r3)
|
||||
push_pushed:
|
||||
lwz r4, 0x64(r3)
|
||||
addi r0, r4, 1
|
||||
stw r0, 0x64(r3)
|
||||
li r3, 1
|
||||
blr
|
||||
extern "C" BOOL push_button_queue(void* storage, const void* item) {
|
||||
typedef utility::Queue<Button::Command, 8> CommandQueue;
|
||||
CommandQueue* queue = static_cast<CommandQueue*>(storage);
|
||||
const Button::Command* command = static_cast<const Button::Command*>(item);
|
||||
if (queue->count == queue->current) {
|
||||
return FALSE;
|
||||
}
|
||||
queue->items[queue->pushed] = *command;
|
||||
if (++queue->pushed >= queue->count) {
|
||||
queue->pushed = 0;
|
||||
}
|
||||
queue->current++;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
} // namespace scene
|
||||
|
||||
@@ -93,7 +93,6 @@ namespace ipl {
|
||||
extern "C" void List_GetNth__Q24nw4r2utFPCQ34nw4r2ut4ListUs();
|
||||
extern "C" void getChannelBasePane__Q33ipl5scene13ChannelSelectFi();
|
||||
extern "C" void initPane__Q33ipl3gui11PaneManagerFPQ34nw4r3lyt4Pane();
|
||||
extern "C" void* updateDiskState_jumptable[];
|
||||
extern "C" void getCurrentChannel__Q33ipl7channel7ManagerFPiPi();
|
||||
extern "C" void calcNormalRestart__Q33ipl5scene13ChannelSelectFv();
|
||||
extern "C" void _savegpr_28();
|
||||
@@ -108,7 +107,6 @@ namespace ipl {
|
||||
extern "C" void animation__Q33ipl5scene6ButtonFi();
|
||||
extern "C" void toggle_insert__Q33ipl5scene12SDMenuButtonFi();
|
||||
extern "C" void calc__Q33ipl6layout6ObjectFv();
|
||||
extern "C" void updateDiskState__Q33ipl5scene13ChannelSelectFv();
|
||||
extern "C" void calcChannelModules__Q33ipl5scene13ChannelSelectFv();
|
||||
extern "C" void calcChannelThumbnails__Q33ipl5scene13ChannelSelectFv();
|
||||
extern "C" asm void calc__Q33ipl5scene5clockFv();
|
||||
@@ -858,15 +856,7 @@ namespace ipl {
|
||||
|
||||
extern "C" char scPaneName_N_GCIcon[] = "N_GCIcon";
|
||||
extern "C" char scPaneName_N_DiscUpdateIcon[] = "N_DiscUpdateIcon";
|
||||
extern "C" void* updateDiskState_jumptable[7] = {
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x4C),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x21C),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x284),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x2C8),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x30C),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x328),
|
||||
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x358)
|
||||
};
|
||||
|
||||
|
||||
void ChannelSelect::createChannelThumbnails() {
|
||||
ChannelObj* chanObj = NULL;
|
||||
@@ -1333,258 +1323,98 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" asm void updateDiskState__Q33ipl5scene13ChannelSelectFv() {
|
||||
nofralloc
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
stw r0, 0x24(r1)
|
||||
addi r11, r1, 0x20
|
||||
bl _savegpr_27
|
||||
lis r28, smArg__Q23ipl6System@ha
|
||||
lwz r0, 0xf0(r3)
|
||||
addi r28, r28, smArg__Q23ipl6System@l
|
||||
mr r31, r3
|
||||
lwz r4, 0xa8(r28)
|
||||
cmplwi r0, 0x6
|
||||
lwz r27, 0x4(r4)
|
||||
bgt updateDiskState_done
|
||||
lis r4, updateDiskState_jumptable@ha
|
||||
slwi r0, r0, 2
|
||||
addi r4, r4, updateDiskState_jumptable@l
|
||||
lwzx r4, r4, r0
|
||||
mtctr r4
|
||||
bctr
|
||||
updateDiskState_case0:
|
||||
lwz r4, 0xa4(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
lwz r3, 0x94(r3)
|
||||
lis r29, scPaneName_N_GCIcon@ha
|
||||
addi r4, r29, scPaneName_N_GCIcon@l
|
||||
li r5, 0x1
|
||||
lwz r3, 0x14(r3)
|
||||
lwz r12, 0x0(r3)
|
||||
lwz r12, 0x3c(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
li r4, 0x1
|
||||
bl SetVisible__Q34nw4r3lyt4PaneFb
|
||||
lwz r3, 0x94(r31)
|
||||
lis r30, scPaneName_N_DiscUpdateIcon@ha
|
||||
addi r4, r30, scPaneName_N_DiscUpdateIcon@l
|
||||
li r5, 0x1
|
||||
lwz r3, 0x14(r3)
|
||||
lwz r12, 0x0(r3)
|
||||
lwz r12, 0x3c(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
li r4, 0x0
|
||||
bl SetVisible__Q34nw4r3lyt4PaneFb
|
||||
cmpwi r27, 0x5
|
||||
bne updateDiskState_case0_diskState3
|
||||
lwz r4, 0xc0(r31)
|
||||
lwz r3, 0x84(r28)
|
||||
subi r4, r4, 0xf
|
||||
subic r0, r4, 0x1
|
||||
subfe r4, r0, r4
|
||||
bl getDiskThumbnail__Q33ipl7channel7ManagerFb
|
||||
lwz r0, 0xc0(r31)
|
||||
mr r27, r3
|
||||
cmpwi r0, 0xf
|
||||
bne updateDiskState_case0_afterThumb
|
||||
lwz r3, 0xa8(r28)
|
||||
addi r4, r31, 0xf8
|
||||
addi r5, r31, 0xfc
|
||||
bl getDiskInfo__Q33ipl3bs27ManagerFPPcPPc
|
||||
updateDiskState_case0_afterThumb:
|
||||
cmpwi r27, 0x0
|
||||
beq updateDiskState_case0_afterLayout
|
||||
lwz r3, 0x90(r31)
|
||||
mr r4, r27
|
||||
bl createDiskLayout__Q33ipl5scene10ChannelObjFPv
|
||||
updateDiskState_case0_afterLayout:
|
||||
lbz r0, 0xf4(r31)
|
||||
cmpwi r0, 0x0
|
||||
bne updateDiskState_case0_afterDiskIn
|
||||
mr r3, r31
|
||||
bl startDiskInEvent__Q33ipl5scene13ChannelSelectFv
|
||||
updateDiskState_case0_afterDiskIn:
|
||||
li r3, 0x0
|
||||
li r0, 0x1
|
||||
stb r3, 0xf4(r31)
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case0_diskState3:
|
||||
cmpwi r27, 0x3
|
||||
bne updateDiskState_case0_diskState6
|
||||
lwz r3, 0x84(r28)
|
||||
li r0, 0x0
|
||||
addi r4, r29, scPaneName_N_GCIcon@l
|
||||
li r5, 0x1
|
||||
stb r0, 0x1b81(r3)
|
||||
lwz r3, 0x94(r31)
|
||||
lwz r3, 0x14(r3)
|
||||
lwz r12, 0x0(r3)
|
||||
lwz r12, 0x3c(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
li r4, 0x0
|
||||
bl SetVisible__Q34nw4r3lyt4PaneFb
|
||||
lwz r3, 0x94(r31)
|
||||
addi r4, r30, scPaneName_N_DiscUpdateIcon@l
|
||||
li r5, 0x1
|
||||
lwz r3, 0x14(r3)
|
||||
lwz r12, 0x0(r3)
|
||||
lwz r12, 0x3c(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
li r4, 0x1
|
||||
bl SetVisible__Q34nw4r3lyt4PaneFb
|
||||
lwz r3, 0x94(r31)
|
||||
bl setLangPane__Q33ipl5scene10ChannelObjFPCQ33ipl6layout6Object
|
||||
lwz r3, 0x98(r31)
|
||||
cmpwi r3, 0x0
|
||||
beq updateDiskState_case0_state3_afterAnim
|
||||
li r0, 0x2
|
||||
stw r0, 0x18(r3)
|
||||
lwz r28, 0x98(r31)
|
||||
mr r3, r28
|
||||
bl initFrame__Q33ipl7utility15FrameControllerFv
|
||||
li r0, 0x1
|
||||
stw r0, 0x14(r28)
|
||||
updateDiskState_case0_state3_afterAnim:
|
||||
lbz r0, 0xf4(r31)
|
||||
cmpwi r0, 0x0
|
||||
bne updateDiskState_case0_state3_afterDiskIn
|
||||
mr r3, r31
|
||||
bl startDiskInEvent__Q33ipl5scene13ChannelSelectFv
|
||||
updateDiskState_case0_state3_afterDiskIn:
|
||||
li r3, 0x0
|
||||
li r0, 0x1
|
||||
stb r3, 0xf4(r31)
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case0_diskState6:
|
||||
cmpwi r27, 0x6
|
||||
bne updateDiskState_done
|
||||
lbz r0, 0xf4(r31)
|
||||
cmpwi r0, 0x0
|
||||
bne updateDiskState_case0_state6_afterDiskIn
|
||||
mr r3, r31
|
||||
bl startDiskInEvent__Q33ipl5scene13ChannelSelectFv
|
||||
updateDiskState_case0_state6_afterDiskIn:
|
||||
li r3, 0x0
|
||||
li r0, 0x4
|
||||
stb r3, 0xf4(r31)
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case1:
|
||||
lwz r4, 0x8c(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
lwz r3, 0x90(r3)
|
||||
bl resetDiskTitleName__Q33ipl5scene10ChannelObjFv
|
||||
cmpwi r27, 0x5
|
||||
bne updateDiskState_case1_setState3
|
||||
lwz r3, 0x90(r31)
|
||||
lwz r3, 0x34(r3)
|
||||
cmpwi r3, 0x0
|
||||
beq updateDiskState_case1_setState2
|
||||
li r0, 0x2
|
||||
stw r0, 0x18(r3)
|
||||
lwz r3, 0x90(r31)
|
||||
lwz r27, 0x34(r3)
|
||||
mr r3, r27
|
||||
bl initFrame__Q33ipl7utility15FrameControllerFv
|
||||
li r0, 0x1
|
||||
stw r0, 0x14(r27)
|
||||
updateDiskState_case1_setState2:
|
||||
li r0, 0x2
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case1_setState3:
|
||||
li r0, 0x3
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case2:
|
||||
cmpwi r27, 0x5
|
||||
bne updateDiskState_case2_doOut
|
||||
lwz r4, 0x84(r28)
|
||||
lbz r0, 0x1b81(r4)
|
||||
cmpwi r0, 0x0
|
||||
beq updateDiskState_done
|
||||
updateDiskState_case2_doOut:
|
||||
lwz r3, 0xa0(r3)
|
||||
lwz r0, 0x14(r3)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
mr r3, r31
|
||||
bl startDiskOutEvent__Q33ipl5scene13ChannelSelectFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl changeDisk__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x6
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case3:
|
||||
cmpwi r27, 0x3
|
||||
bne updateDiskState_case3_doOut
|
||||
lwz r4, 0x84(r28)
|
||||
lbz r0, 0x1b81(r4)
|
||||
cmpwi r0, 0x0
|
||||
beq updateDiskState_done
|
||||
updateDiskState_case3_doOut:
|
||||
lwz r3, 0xa0(r3)
|
||||
lwz r0, 0x14(r3)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
mr r3, r31
|
||||
bl startDiskOutEvent__Q33ipl5scene13ChannelSelectFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl changeDisk__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x6
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case4:
|
||||
lwz r4, 0x8c(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
li r0, 0x5
|
||||
stw r0, 0xf0(r3)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case5:
|
||||
cmpwi r27, 0x6
|
||||
beq updateDiskState_done
|
||||
lwz r4, 0xa0(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
bl startDiskOutEvent__Q33ipl5scene13ChannelSelectFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl changeDisk__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x6
|
||||
stw r0, 0xf0(r31)
|
||||
b updateDiskState_done
|
||||
updateDiskState_case6:
|
||||
lwz r4, 0x8c(r3)
|
||||
lwz r0, 0x14(r4)
|
||||
cmpwi r0, 0x1
|
||||
beq updateDiskState_done
|
||||
lwz r3, 0x90(r3)
|
||||
bl destroyDiskLayout__Q33ipl5scene10ChannelObjFv
|
||||
lwz r3, 0x90(r31)
|
||||
bl resetDiskTitleName__Q33ipl5scene10ChannelObjFv
|
||||
li r0, 0x0
|
||||
stw r0, 0xf0(r31)
|
||||
updateDiskState_done:
|
||||
addi r11, r1, 0x20
|
||||
bl _restgpr_27
|
||||
lwz r0, 0x24(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
void ChannelSelect::updateDiskState() {
|
||||
int diskState = System::getBS2Manager()->getIPLState();
|
||||
switch (mDiskState) {
|
||||
case DISK_STATE_READ:
|
||||
if (!mpDiskOutAnim->isPlaying()) {
|
||||
mpDiskLayout->FindPaneByName(scPaneName_N_GCIcon)->SetVisible(true);
|
||||
mpDiskLayout->FindPaneByName(scPaneName_N_DiscUpdateIcon)->SetVisible(false);
|
||||
if (diskState == bs2::IPL_STATE_RVL_GAME) {
|
||||
void* thumbnail = System::getChannelManager()->getDiskThumbnail(mState != STATE_INACTIVE);
|
||||
if (mState == STATE_INACTIVE) {
|
||||
System::getBS2Manager()->getDiskInfo(&mspDiskID, &mspDiskMaker);
|
||||
}
|
||||
if (thumbnail != NULL) {
|
||||
mpDiskChanObj->createDiskLayout(thumbnail);
|
||||
}
|
||||
if (!mbDiskInserted) {
|
||||
startDiskInEvent();
|
||||
}
|
||||
mbDiskInserted = false;
|
||||
mDiskState = DISK_STATE_PLAY_THUMB;
|
||||
} else if (diskState == bs2::IPL_STATE_DISK_UPDATE) {
|
||||
System::getChannelManager()->setDiskChannelReady(false);
|
||||
mpDiskLayout->FindPaneByName(scPaneName_N_GCIcon)->SetVisible(false);
|
||||
mpDiskLayout->FindPaneByName(scPaneName_N_DiscUpdateIcon)->SetVisible(true);
|
||||
ChannelObj::setLangPane(mpDiskLayout);
|
||||
if (mpDiskAnim != NULL) {
|
||||
mpDiskAnim->setAnmType(ANIM_TYPE_LOOP);
|
||||
mpDiskAnim->play();
|
||||
}
|
||||
if (!mbDiskInserted) {
|
||||
startDiskInEvent();
|
||||
}
|
||||
mbDiskInserted = false;
|
||||
mDiskState = DISK_STATE_PLAY_THUMB;
|
||||
} else if (diskState == bs2::IPL_STATE_GC_GAME) {
|
||||
if (!mbDiskInserted) {
|
||||
startDiskInEvent();
|
||||
}
|
||||
mbDiskInserted = false;
|
||||
mDiskState = DISK_STATE_GC_GAME_WAIT;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DISK_STATE_PLAY_THUMB:
|
||||
if (!mpDiskFadeAnim->isPlaying()) {
|
||||
mpDiskChanObj->resetDiskTitleName();
|
||||
if (diskState == bs2::IPL_STATE_RVL_GAME) {
|
||||
if (mpDiskChanObj->mpThumbAnim != NULL) {
|
||||
mpDiskChanObj->mpThumbAnim->setAnmType(ANIM_TYPE_LOOP);
|
||||
layout::Animator* thumbnailAnim = mpDiskChanObj->mpThumbAnim;
|
||||
thumbnailAnim->play();
|
||||
}
|
||||
mDiskState = DISK_STATE_RVL_GAME;
|
||||
} else {
|
||||
mDiskState = DISK_STATE_DISK_UPDATE;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DISK_STATE_RVL_GAME:
|
||||
if ((diskState != bs2::IPL_STATE_RVL_GAME || System::getChannelManager()->isDiskChannelReady()) && !mpDiskInAnim->isPlaying()) {
|
||||
startDiskOutEvent();
|
||||
mpDiskChanObj->changeDisk();
|
||||
mDiskState = DISK_STATE_DESTROY;
|
||||
}
|
||||
break;
|
||||
case DISK_STATE_DISK_UPDATE:
|
||||
if ((diskState != bs2::IPL_STATE_DISK_UPDATE || System::getChannelManager()->isDiskChannelReady()) && !mpDiskInAnim->isPlaying()) {
|
||||
startDiskOutEvent();
|
||||
mpDiskChanObj->changeDisk();
|
||||
mDiskState = DISK_STATE_DESTROY;
|
||||
}
|
||||
break;
|
||||
case DISK_STATE_GC_GAME_WAIT:
|
||||
if (!mpDiskFadeAnim->isPlaying()) {
|
||||
mDiskState = DISK_STATE_GC_GAME;
|
||||
}
|
||||
break;
|
||||
case DISK_STATE_GC_GAME:
|
||||
if (diskState != bs2::IPL_STATE_GC_GAME && !mpDiskInAnim->isPlaying()) {
|
||||
startDiskOutEvent();
|
||||
mpDiskChanObj->changeDisk();
|
||||
mDiskState = DISK_STATE_DESTROY;
|
||||
}
|
||||
break;
|
||||
case DISK_STATE_DESTROY:
|
||||
if (!mpDiskFadeAnim->isPlaying()) {
|
||||
mpDiskChanObj->destroyDiskLayout();
|
||||
mpDiskChanObj->resetDiskTitleName();
|
||||
mDiskState = DISK_STATE_READ;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ bool MemoryCardManager::isMoveEnable(u8 slot, u32 index, long* code) {
|
||||
CardDirectory* dirs = reinterpret_cast<CardDirectory*>(memorycard::getCardDirState());
|
||||
memorycard::CardState* states = memorycard::getCardSlotState();
|
||||
u32 file = mFile[slot][index].fileNo;
|
||||
long result;
|
||||
long result = file;
|
||||
bool enabled = false;
|
||||
if (isDistSlot(slot, NULL) &&
|
||||
dirs[slot][file].canMove != 0 &&
|
||||
@@ -186,7 +186,7 @@ bool MemoryCardManager::isCopyEnable(u8 slot, u32 index, long* code) {
|
||||
CardDirectory* dirs = reinterpret_cast<CardDirectory*>(memorycard::getCardDirState());
|
||||
memorycard::CardState* states = memorycard::getCardSlotState();
|
||||
u32 file = mFile[slot][index].fileNo;
|
||||
long result;
|
||||
long result = file;
|
||||
bool enabled = false;
|
||||
if (isDistSlot(slot, NULL) &&
|
||||
dirs[slot][file].canCopy != 0 &&
|
||||
|
||||
@@ -338,79 +338,24 @@ namespace ipl {
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, frame);
|
||||
}
|
||||
|
||||
extern "C" asm void resetAllSound__Q33ipl3snd6SystemFv() {
|
||||
nofralloc
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
stw r0, 0x24(r1)
|
||||
addi r11, r1, 0x20
|
||||
bl _savegpr_26
|
||||
li r26, 0
|
||||
lis r28, _seBlk__Q23ipl3snd@ha
|
||||
lis r3, 1
|
||||
li r31, 0
|
||||
mr r29, r26
|
||||
addi r28, r28, _seBlk__Q23ipl3snd@l
|
||||
subi r30, r3, 1
|
||||
resetAllSound_loop:
|
||||
lwzx r3, r28, r31
|
||||
add r27, r28, r31
|
||||
cmpwi r3, 0
|
||||
beq resetAllSound_clear
|
||||
lwz r12, 0(r3)
|
||||
li r4, 0
|
||||
lwz r12, 0x18(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
resetAllSound_clear:
|
||||
stw r29, 0x4(r27)
|
||||
addi r26, r26, 1
|
||||
cmpwi r26, 0x10
|
||||
addi r31, r31, 0xc
|
||||
stw r30, 0x8(r27)
|
||||
blt resetAllSound_loop
|
||||
lwz r3, _mainBGMHandle__Q23ipl3snd
|
||||
cmpwi r3, 0
|
||||
beq resetAllSound_banner
|
||||
lwz r0, 0(r3)
|
||||
cmpwi r0, 0
|
||||
beq resetAllSound_banner
|
||||
lwz r3, 0(r3)
|
||||
li r4, 0
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x18(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
resetAllSound_banner:
|
||||
lis r31, sBannerSoundPlayer__Q23ipl3snd@ha
|
||||
li r4, 0
|
||||
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
|
||||
bl stop__17BannerSoundPlayerFUl
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 0
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 1
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
li r4, 2
|
||||
li r5, 0
|
||||
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
|
||||
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
|
||||
lfs f1, scSoundZeroF
|
||||
li r4, 0
|
||||
bl SetMasterVolume__Q44nw4r3snd6detail9AxManagerFfi
|
||||
lfs f1, scSoundZeroF
|
||||
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
|
||||
bl setMasterVolume__17BannerSoundPlayerFf
|
||||
addi r11, r1, 0x20
|
||||
bl _restgpr_26
|
||||
lwz r0, 0x24(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
int System::resetAllSound() {
|
||||
tagSSeInfo* block;
|
||||
int i = 0;
|
||||
for (; i < 16; i++) {
|
||||
block = &_seBlk[i];
|
||||
block->handle.Stop(0);
|
||||
block->name = NULL;
|
||||
block->id = 0xFFFF;
|
||||
}
|
||||
if (_mainBGMHandle != NULL && _mainBGMHandle->IsAttachedSound()) {
|
||||
_mainBGMHandle->detail_GetAttachedSound()->Stop(0);
|
||||
}
|
||||
sBannerSoundPlayer.stop(0);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_A, 0);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_B, 0);
|
||||
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, 0);
|
||||
nw4r::snd::detail::AxManager::GetInstance().SetMasterVolume(scSoundZeroF, 0);
|
||||
sBannerSoundPlayer.setMasterVolume(scSoundZeroF);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -433,138 +433,47 @@ TVRCSendStartAsync_exit:
|
||||
blr
|
||||
}
|
||||
|
||||
extern "C" asm void __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext() {
|
||||
nofralloc
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 0x8(r1)
|
||||
mr r30, r3
|
||||
lwz r0, _isActive__7LibTVRC
|
||||
cmpwi r0, 0
|
||||
bne TVRCLoop0_active
|
||||
li r0, 2
|
||||
stw r0, _func0state__7LibTVRC
|
||||
TVRCLoop0_active:
|
||||
lwz r0, _func0state__7LibTVRC
|
||||
cmpwi r0, 1
|
||||
bne TVRCLoop0_check_state
|
||||
li r0, 0
|
||||
stw r0, _func0state__7LibTVRC
|
||||
b TVRCLoop0_prepare
|
||||
TVRCLoop0_check_state:
|
||||
cmpwi r0, 0
|
||||
bne TVRCLoop0_check_stop
|
||||
lwz r4, _loop0count__7LibTVRC
|
||||
li r0, 0
|
||||
lwz r3, _isOnOff__7LibTVRC
|
||||
addi r4, r4, 1
|
||||
stw r0, _func0state__7LibTVRC
|
||||
stw r4, _loop0count__7LibTVRC
|
||||
stw r3, _isLastOnOff__7LibTVRC
|
||||
b TVRCLoop0_prepare
|
||||
TVRCLoop0_check_stop:
|
||||
cmpwi r0, 2
|
||||
bne TVRCLoop0_prepare
|
||||
lwz r0, _isReserveDeactive__7LibTVRC
|
||||
cmpwi r0, 0
|
||||
bne TVRCLoop0_stop
|
||||
bl OSGetTime
|
||||
lis r5, 0x8000
|
||||
lwz r6, _totalStartTime__7LibTVRC+4
|
||||
lwz r5, 0xf8(r5)
|
||||
li r0, 0x3e8
|
||||
subfc r4, r6, r4
|
||||
lwz r7, _totalStartTime__7LibTVRC
|
||||
srwi r6, r5, 2
|
||||
li r5, 0
|
||||
divwu r6, r6, r0
|
||||
subfe r3, r7, r3
|
||||
bl __div2i
|
||||
lwz r7, _limitMilli__7LibTVRC
|
||||
li r6, 0
|
||||
xoris r5, r3, 0x8000
|
||||
xoris r0, r6, 0x8000
|
||||
subfc r3, r4, r7
|
||||
subfe r5, r5, r0
|
||||
subfe r5, r0, r0
|
||||
neg. r5, r5
|
||||
beq TVRCLoop0_continue
|
||||
TVRCLoop0_stop:
|
||||
li r3, 1
|
||||
bl WPADSetSensorBarPower
|
||||
li r0, 0
|
||||
stw r0, _isActive__7LibTVRC
|
||||
b TVRCLoop0_exit
|
||||
TVRCLoop0_continue:
|
||||
lwz r4, _isUseRepeatCode__7LibTVRC
|
||||
lwz r3, _repeatBitLength__7LibTVRC
|
||||
lwz r0, _repeatBitArray__7LibTVRC
|
||||
stw r4, _isRepeatActive__7LibTVRC
|
||||
stw r3, _bitLength__7LibTVRC
|
||||
stw r0, _bitArray__7LibTVRC
|
||||
stw r6, _isOnOff__7LibTVRC
|
||||
stw r6, _isLastOnOff__7LibTVRC
|
||||
stw r6, _func0state__7LibTVRC
|
||||
stw r6, _loop0count__7LibTVRC
|
||||
TVRCLoop0_prepare:
|
||||
li r3, 0
|
||||
lwz r7, _bitArray__7LibTVRC
|
||||
stw r3, _ctCombo__7LibTVRC
|
||||
lwz r8, _bitLength__7LibTVRC
|
||||
lwz r4, _loop0count__7LibTVRC
|
||||
lwz r0, _isLastOnOff__7LibTVRC
|
||||
b TVRCLoop0_check_bits
|
||||
TVRCLoop0_bit_loop:
|
||||
srawi r5, r4, 3
|
||||
addi r3, r3, 1
|
||||
addze r6, r5
|
||||
srawi r5, r4, 3
|
||||
lbzx r6, r7, r6
|
||||
addze r5, r5
|
||||
slwi r5, r5, 3
|
||||
stw r3, _ctCombo__7LibTVRC
|
||||
subf r5, r5, r4
|
||||
subfic r5, r5, 7
|
||||
sraw r5, r6, r5
|
||||
clrlwi r5, r5, 31
|
||||
cmpw r0, r5
|
||||
stw r5, _isOnOff__7LibTVRC
|
||||
beq TVRCLoop0_bit_match
|
||||
li r3, -1
|
||||
li r0, 0
|
||||
stw r3, _func1state__7LibTVRC
|
||||
mr r3, r30
|
||||
mr r4, r31
|
||||
stw r0, _func0state__7LibTVRC
|
||||
bl __FTVRCLoop1Handler__7LibTVRCFP7OSAlarmP9OSContext
|
||||
b TVRCLoop0_exit
|
||||
TVRCLoop0_bit_match:
|
||||
addi r4, r4, 1
|
||||
stw r5, _isLastOnOff__7LibTVRC
|
||||
mr r0, r5
|
||||
stw r4, _loop0count__7LibTVRC
|
||||
TVRCLoop0_check_bits:
|
||||
cmpw r4, r8
|
||||
blt TVRCLoop0_bit_loop
|
||||
addi r3, r3, 1
|
||||
li r5, -1
|
||||
li r0, 2
|
||||
stw r3, _ctCombo__7LibTVRC
|
||||
mr r3, r30
|
||||
mr r4, r31
|
||||
stw r5, _func1state__7LibTVRC
|
||||
stw r0, _func0state__7LibTVRC
|
||||
bl __FTVRCLoop1Handler__7LibTVRCFP7OSAlarmP9OSContext
|
||||
TVRCLoop0_exit:
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 0x8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
void LibTVRC::__FTVRCLoop0Handler(OSAlarm* alarm, OSContext* ctx) {
|
||||
if (!_isActive) {
|
||||
_func0state = 2;
|
||||
}
|
||||
if (_func0state == 1) {
|
||||
_func0state = 0;
|
||||
} else if (_func0state == 0) {
|
||||
_loop0count++;
|
||||
_isLastOnOff = _isOnOff;
|
||||
_func0state = 0;
|
||||
} else if (_func0state == 2) {
|
||||
if (_isReserveDeactive || OSTicksToMilliseconds(OSGetTime() - _totalStartTime) > _limitMilli) {
|
||||
WPADSetSensorBarPower(TRUE);
|
||||
_isActive = FALSE;
|
||||
return;
|
||||
}
|
||||
_isRepeatActive = _isUseRepeatCode;
|
||||
_bitLength = _repeatBitLength;
|
||||
_bitArray = _repeatBitArray;
|
||||
_isOnOff = FALSE;
|
||||
_isLastOnOff = FALSE;
|
||||
_func0state = 0;
|
||||
_loop0count = 0;
|
||||
}
|
||||
_ctCombo = 0;
|
||||
while (_loop0count < (int)_bitLength) {
|
||||
_isOnOff = (((u8*)_bitArray)[_loop0count / 8] >> (7 - _loop0count % 8)) & 1;
|
||||
_ctCombo++;
|
||||
if (_isLastOnOff != _isOnOff) {
|
||||
_func1state = -1;
|
||||
_func0state = 0;
|
||||
__FTVRCLoop1Handler(alarm, ctx);
|
||||
return;
|
||||
}
|
||||
_loop0count++;
|
||||
_isLastOnOff = _isOnOff;
|
||||
}
|
||||
_ctCombo++;
|
||||
_func1state = -1;
|
||||
_func0state = 2;
|
||||
__FTVRCLoop1Handler(alarm, ctx);
|
||||
}
|
||||
|
||||
namespace LibTVRC {
|
||||
|
||||
@@ -383,83 +383,10 @@ namespace ipl {
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
extern "C" System::Arg smArg__Q23ipl6System;
|
||||
extern "C" void cdb_backup_delete_search_cb___3iplFPvP10_CDBRecord();
|
||||
extern "C" void cdb_backup_move_search_cb___3iplFPvP10_CDBRecord();
|
||||
extern "C" void getFreeSize__Q33ipl3cdb7ManagerFPUl();
|
||||
extern "C" void search__Q33ipl3cdb7ManagerFRCUlRCUl18CDBSearchDirection17CDBRecordLocationiPFPvP10_CDBRecord_iPv();
|
||||
extern "C" void cleanUpEmptyDirectories__Q33ipl3cdb7ManagerF17CDBRecordLocation();
|
||||
|
||||
asm void cdb_backup_delete_task_(register void* work) {
|
||||
nofralloc
|
||||
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
li r4, 0
|
||||
li r5, 1
|
||||
stw r0, 0x24(r1)
|
||||
li r6, 0
|
||||
li r7, 0
|
||||
li r8, 0
|
||||
stw r31, 0x1c(r1)
|
||||
mr r31, r3
|
||||
li r3, 0x7d0
|
||||
bl CDBMakeCDBDate
|
||||
stw r3, 0xc(r1)
|
||||
li r3, 0x7f3
|
||||
li r4, 0xc
|
||||
li r5, 0x1f
|
||||
li r6, 0x17
|
||||
li r7, 0x3b
|
||||
li r8, 0x3b
|
||||
bl CDBMakeCDBDate
|
||||
lis r4, smArg__Q23ipl6System@ha
|
||||
stw r3, 0x8(r1)
|
||||
addi r4, r4, smArg__Q23ipl6System@l
|
||||
lbz r0, 0x2bc(r4)
|
||||
cmpwi r0, 0
|
||||
beq cdb_backup_delete_task_L1
|
||||
li r3, 0
|
||||
b cdb_backup_delete_task_L2
|
||||
cdb_backup_delete_task_L1:
|
||||
lwz r3, 0x7c(r4)
|
||||
cdb_backup_delete_task_L2:
|
||||
lis r9, cdb_backup_delete_search_cb___3iplFPvP10_CDBRecord@ha
|
||||
mr r10, r31
|
||||
addi r4, r1, 0xc
|
||||
addi r5, r1, 0x8
|
||||
addi r9, r9, cdb_backup_delete_search_cb___3iplFPvP10_CDBRecord@l
|
||||
li r6, 1
|
||||
li r7, 1
|
||||
li r8, 0
|
||||
bl search__Q33ipl3cdb7ManagerFRCUlRCUl18CDBSearchDirection17CDBRecordLocationiPFPvP10_CDBRecord_iPv
|
||||
lis r3, smArg__Q23ipl6System@ha
|
||||
addi r3, r3, smArg__Q23ipl6System@l
|
||||
lbz r0, 0x2bc(r3)
|
||||
cmpwi r0, 0
|
||||
beq cdb_backup_delete_task_L3
|
||||
li r3, 0
|
||||
b cdb_backup_delete_task_L4
|
||||
cdb_backup_delete_task_L3:
|
||||
lwz r3, 0x7c(r3)
|
||||
cdb_backup_delete_task_L4:
|
||||
li r4, 1
|
||||
bl cleanUpEmptyDirectories__Q33ipl3cdb7ManagerF17CDBRecordLocation
|
||||
li r0, 1
|
||||
stb r0, 0(r31)
|
||||
lwz r0, 0x24(r1)
|
||||
lwz r31, 0x1c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
}
|
||||
#else
|
||||
void cdb_backup_delete_task_(void* work) {
|
||||
CdbBackup* cdbBackup = reinterpret_cast<CdbBackup*>(work);
|
||||
CdbBackup* cdbBackup = static_cast<CdbBackup*>(work);
|
||||
|
||||
CDBDate beginDate = CDBMakeCDBDate(MIN_YEAR, MIN_MONTH - 1, MIN_DAY, MIN_HOUR, MIN_MINUTE, MIN_SECOND);
|
||||
// @Bug should be MAX_MONTH-1
|
||||
CDBDate endDate = CDBMakeCDBDate(MAX_YEAR, MAX_MONTH, MAX_DAY, MAX_HOUR, MAX_MINUTE, MAX_SECOND);
|
||||
|
||||
System::getCdbManager()->search(beginDate, endDate, CDB_SEARCH_DIRECTION_RIGHT, CDB_RECORD_LOCATION_NAND, 0, cdb_backup_delete_search_cb_,
|
||||
@@ -469,7 +396,6 @@ namespace ipl {
|
||||
|
||||
cdbBackup->set_done_process(true);
|
||||
}
|
||||
#endif
|
||||
|
||||
BOOL cdb_backup_move_search_cb_(void* work, CDBRecord* record) {
|
||||
CdbBackup* cdbBackup = reinterpret_cast<CdbBackup*>(work);
|
||||
@@ -498,87 +424,6 @@ namespace ipl {
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef __MWERKS__
|
||||
asm void cdb_backup_move_task_(register void* work) {
|
||||
nofralloc
|
||||
|
||||
stwu r1, -0x20(r1)
|
||||
mflr r0
|
||||
li r4, 0
|
||||
li r5, 1
|
||||
stw r0, 0x24(r1)
|
||||
li r6, 0
|
||||
li r7, 0
|
||||
li r8, 0
|
||||
stw r31, 0x1c(r1)
|
||||
mr r31, r3
|
||||
li r3, 0x7d0
|
||||
bl CDBMakeCDBDate
|
||||
stw r3, 0x10(r1)
|
||||
li r3, 0x7f3
|
||||
li r4, 0xc
|
||||
li r5, 0x1f
|
||||
li r6, 0x17
|
||||
li r7, 0x3b
|
||||
li r8, 0x3b
|
||||
bl CDBMakeCDBDate
|
||||
lis r4, smArg__Q23ipl6System@ha
|
||||
stw r3, 0xc(r1)
|
||||
addi r4, r4, smArg__Q23ipl6System@l
|
||||
lbz r0, 0x2bc(r4)
|
||||
cmpwi r0, 0
|
||||
beq cdb_backup_move_task_L1
|
||||
li r3, 0
|
||||
b cdb_backup_move_task_L2
|
||||
cdb_backup_move_task_L1:
|
||||
lwz r3, 0x7c(r4)
|
||||
cdb_backup_move_task_L2:
|
||||
addi r4, r1, 0x8
|
||||
bl getFreeSize__Q33ipl3cdb7ManagerFPUl
|
||||
lwz r0, 0x8(r1)
|
||||
lis r3, smArg__Q23ipl6System@ha
|
||||
addi r3, r3, smArg__Q23ipl6System@l
|
||||
stw r0, 0x8(r31)
|
||||
lwz r0, 0x8(r1)
|
||||
stw r0, 0xc(r31)
|
||||
lbz r0, 0x2bc(r3)
|
||||
cmpwi r0, 0
|
||||
beq cdb_backup_move_task_L3
|
||||
li r3, 0
|
||||
b cdb_backup_move_task_L4
|
||||
cdb_backup_move_task_L3:
|
||||
lwz r3, 0x7c(r3)
|
||||
cdb_backup_move_task_L4:
|
||||
lis r9, cdb_backup_move_search_cb___3iplFPvP10_CDBRecord@ha
|
||||
mr r10, r31
|
||||
addi r4, r1, 0x10
|
||||
addi r5, r1, 0xc
|
||||
addi r9, r9, cdb_backup_move_search_cb___3iplFPvP10_CDBRecord@l
|
||||
li r6, 1
|
||||
li r7, 1
|
||||
li r8, 1
|
||||
bl search__Q33ipl3cdb7ManagerFRCUlRCUl18CDBSearchDirection17CDBRecordLocationiPFPvP10_CDBRecord_iPv
|
||||
lis r3, smArg__Q23ipl6System@ha
|
||||
addi r3, r3, smArg__Q23ipl6System@l
|
||||
lbz r0, 0x2bc(r3)
|
||||
cmpwi r0, 0
|
||||
beq cdb_backup_move_task_L5
|
||||
li r3, 0
|
||||
b cdb_backup_move_task_L6
|
||||
cdb_backup_move_task_L5:
|
||||
lwz r3, 0x7c(r3)
|
||||
cdb_backup_move_task_L6:
|
||||
li r4, 1
|
||||
bl cleanUpEmptyDirectories__Q33ipl3cdb7ManagerF17CDBRecordLocation
|
||||
li r0, 1
|
||||
stb r0, 0(r31)
|
||||
lwz r0, 0x24(r1)
|
||||
lwz r31, 0x1c(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
}
|
||||
#else
|
||||
void cdb_backup_move_task_(void* work) {
|
||||
CdbBackup* cdbBackup = reinterpret_cast<CdbBackup*>(work);
|
||||
|
||||
@@ -599,5 +444,4 @@ namespace ipl {
|
||||
|
||||
cdbBackup->set_done_process(true);
|
||||
}
|
||||
#endif
|
||||
} // namespace ipl
|
||||
|
||||
@@ -84,171 +84,51 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef __MWERKS__
|
||||
extern "C" void _savegpr_23();
|
||||
extern "C" void key_input__Q23ipl9ExceptionFv();
|
||||
extern "C" void wait__Q23ipl9ExceptionFUl();
|
||||
extern "C" s32 Console_GetTotalLines__Q24nw4r2dbFPQ44nw4r2db6detail11ConsoleHead();
|
||||
extern "C" void Console_DrawDirect__Q24nw4r2dbFPQ44nw4r2db6detail11ConsoleHead();
|
||||
|
||||
asm void Exception::exception_callback(register nw4r::db::ConsoleHandle console) {
|
||||
nofralloc
|
||||
|
||||
stwu r1, -0x240(r1)
|
||||
mflr r0
|
||||
stw r0, 0x244(r1)
|
||||
addi r11, r1, 0x240
|
||||
bl _savegpr_23
|
||||
li r0, 1
|
||||
mr r28, r3
|
||||
stb r0, 0x22(r4)
|
||||
lwz r3, 0(r3)
|
||||
lwz r26, 0x14(r3)
|
||||
bl Console_GetTotalLines__Q24nw4r2dbFPQ44nw4r2db6detail11ConsoleHead
|
||||
subi r30, r3, 0x12
|
||||
mr r3, r28
|
||||
bl key_input__Q23ipl9ExceptionFv
|
||||
b Exception_exception_callback_L1
|
||||
Exception_exception_callback_L2:
|
||||
lwz r3, 0(r28)
|
||||
stw r26, 0x18(r3)
|
||||
lwz r3, 0(r28)
|
||||
bl Console_DrawDirect__Q24nw4r2dbFPQ44nw4r2db6detail11ConsoleHead
|
||||
mr r3, r28
|
||||
li r4, 0xfa
|
||||
bl wait__Q23ipl9ExceptionFUl
|
||||
addi r26, r26, 1
|
||||
Exception_exception_callback_L1:
|
||||
cmpw r26, r30
|
||||
ble Exception_exception_callback_L2
|
||||
lwz r3, 0(r28)
|
||||
li r31, 0
|
||||
stw r31, 0x18(r3)
|
||||
lwz r3, 0(r28)
|
||||
bl Console_DrawDirect__Q24nw4r2dbFPQ44nw4r2db6detail11ConsoleHead
|
||||
bl OSEnableInterrupts
|
||||
addi r3, r1, 8
|
||||
li r4, 0
|
||||
li r5, 0x210
|
||||
bl memset
|
||||
li r27, 4
|
||||
Exception_exception_callback_L3:
|
||||
lwz r3, 0(r28)
|
||||
mr r25, r31
|
||||
li r23, 0
|
||||
li r26, 0
|
||||
lha r29, 0x1c(r3)
|
||||
mr r24, r29
|
||||
Exception_exception_callback_L4:
|
||||
addi r4, r1, 8
|
||||
mr r3, r23
|
||||
add r4, r4, r26
|
||||
li r5, 1
|
||||
bl KPADRead
|
||||
addi r23, r23, 1
|
||||
addi r26, r26, 0x84
|
||||
cmpwi r23, 4
|
||||
blt Exception_exception_callback_L4
|
||||
mr r3, r28
|
||||
li r4, 0x32
|
||||
bl wait__Q23ipl9ExceptionFUl
|
||||
li r3, 0
|
||||
mtctr r27
|
||||
Exception_exception_callback_L5:
|
||||
addi r4, r1, 8
|
||||
add r4, r4, r3
|
||||
lbz r0, 0x5d(r4)
|
||||
extsb. r0, r0
|
||||
bne Exception_exception_callback_L6
|
||||
lwz r4, 0(r4)
|
||||
rlwinm. r0, r4, 0, 28, 28
|
||||
beq Exception_exception_callback_L7
|
||||
cmpwi r31, 0
|
||||
ble Exception_exception_callback_L7
|
||||
subi r31, r31, 1
|
||||
b Exception_exception_callback_L6
|
||||
Exception_exception_callback_L7:
|
||||
rlwinm. r0, r4, 0, 29, 29
|
||||
beq Exception_exception_callback_L8
|
||||
cmpw r31, r30
|
||||
bge Exception_exception_callback_L8
|
||||
addi r31, r31, 1
|
||||
b Exception_exception_callback_L6
|
||||
Exception_exception_callback_L8:
|
||||
rlwinm. r0, r4, 0, 30, 30
|
||||
beq Exception_exception_callback_L9
|
||||
cmpwi r29, 4
|
||||
ble Exception_exception_callback_L9
|
||||
subi r29, r29, 2
|
||||
b Exception_exception_callback_L6
|
||||
Exception_exception_callback_L9:
|
||||
clrlwi. r0, r4, 31
|
||||
beq Exception_exception_callback_L6
|
||||
cmpwi r29, 0x18
|
||||
bge Exception_exception_callback_L6
|
||||
addi r29, r29, 2
|
||||
Exception_exception_callback_L6:
|
||||
addi r3, r3, 0x84
|
||||
bdnz Exception_exception_callback_L5
|
||||
cmpw r31, r25
|
||||
bne Exception_exception_callback_L10
|
||||
cmpw r29, r24
|
||||
beq Exception_exception_callback_L3
|
||||
Exception_exception_callback_L10:
|
||||
lwz r3, 0(r28)
|
||||
sth r29, 0x1c(r3)
|
||||
lwz r3, 0(r28)
|
||||
stw r31, 0x18(r3)
|
||||
lwz r3, 0(r28)
|
||||
bl Console_DrawDirect__Q24nw4r2dbFPQ44nw4r2db6detail11ConsoleHead
|
||||
b Exception_exception_callback_L3
|
||||
}
|
||||
#else
|
||||
void Exception::exception_callback(nw4r::db::ConsoleHandle console) {
|
||||
int yCur;
|
||||
nw4r::db::Console_SetVisible(console, true);
|
||||
|
||||
s32 line = nw4r::db::Console_GetBufferHeadLine(mConsole);
|
||||
s32 lineScrollMax = nw4r::db::Console_GetTotalLines(mConsole) - LINES_ON_SCREEN_HEIGHT;
|
||||
|
||||
key_input(); // Wait until they pressed key input
|
||||
key_input();
|
||||
|
||||
// Scroll through the exception.
|
||||
for (; line <= lineScrollMax; line++) {
|
||||
nw4r::db::Console_SetViewBaseLine(mConsole, line);
|
||||
nw4r::db::Console_DrawDirect(mConsole);
|
||||
wait(250);
|
||||
}
|
||||
|
||||
// Go back to the first line
|
||||
int yCur = 0;
|
||||
yCur = 0;
|
||||
nw4r::db::Console_SetViewBaseLine(mConsole, 0);
|
||||
nw4r::db::Console_DrawDirect(mConsole);
|
||||
|
||||
OSEnableInterrupts();
|
||||
|
||||
// Setup controllers
|
||||
KPADStatus cons[WPAD_MAX_CONTROLLERS];
|
||||
memset(cons, 0, sizeof(cons));
|
||||
|
||||
int yPrevCur;
|
||||
int xPrevCur;
|
||||
int readChannel;
|
||||
int chan;
|
||||
int xCur;
|
||||
u32 held;
|
||||
while (true) {
|
||||
int xCur = nw4r::db::Console_GetPositionX(mConsole);
|
||||
int yPrevCur = yCur;
|
||||
int xPrevCur = xCur;
|
||||
xCur = nw4r::db::Console_GetPositionX(mConsole);
|
||||
yPrevCur = yCur;
|
||||
xPrevCur = xCur;
|
||||
|
||||
// Read controllers
|
||||
for (int i = 0; i < WPAD_MAX_CONTROLLERS; i++) {
|
||||
KPADRead(i, &cons[i], 1);
|
||||
for (readChannel = 0; readChannel < WPAD_MAX_CONTROLLERS; readChannel++) {
|
||||
KPADRead(readChannel, &cons[readChannel], 1);
|
||||
}
|
||||
|
||||
wait(50);
|
||||
|
||||
int chan = 0;
|
||||
for (int i = WPAD_MAX_CONTROLLERS; i != 0; i--) {
|
||||
for (chan = 0; chan < WPAD_MAX_CONTROLLERS; chan++) {
|
||||
if (cons[chan].wpad_err == 0) {
|
||||
u32 held = cons[chan].hold;
|
||||
held = cons[chan].hold;
|
||||
|
||||
// Scroll depending on what the user presses
|
||||
if ((held & WPAD_BUTTON_UP) && yCur > 0) {
|
||||
yCur--;
|
||||
} else if ((held & WPAD_BUTTON_DOWN) && yCur < lineScrollMax) {
|
||||
@@ -259,18 +139,15 @@ namespace ipl {
|
||||
xCur += 2;
|
||||
}
|
||||
}
|
||||
chan++;
|
||||
}
|
||||
|
||||
// Refresh screen
|
||||
if (yCur != yPrevCur || xCur != xPrevCur) {
|
||||
nw4r::db::Console_SetPosition(mConsole, xCur, nw4r::db::Console_GetPositionY(mConsole));
|
||||
mConsole->viewPosX = xCur;
|
||||
nw4r::db::Console_SetViewBaseLine(mConsole, yCur);
|
||||
nw4r::db::Console_DrawDirect(mConsole);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void Exception::wait(u32 tick) {
|
||||
OSTick prevTick = OSGetTick();
|
||||
|
||||
225
tools/decomp-assist/asm-inventory.md
Normal file
225
tools/decomp-assist/asm-inventory.md
Normal file
@@ -0,0 +1,225 @@
|
||||
# Assembly inventory
|
||||
|
||||
Snapshot: `agent/w1005/da5` after the WPADiManageHandler and _CNTCACHEDeleteTitle C conversions, based on `7aa71d29`.
|
||||
|
||||
Scope: every `asm` function body, `asm` block, and `__asm` block in C/C++ sources and headers under `src/` and `libs/`, including inactive platform branches. Each block gets its own row. Declarations, comments, and standalone assembly files are outside this scan.
|
||||
|
||||
Count: 209 bodies/blocks, 160 ORIGINAL-ASM and 49 PLACEHOLDER. The scan also excluded 65 asm declarations.
|
||||
|
||||
ORIGINAL-ASM requires a matching asm function in the ogws reference or a concrete hardware/runtime register convention. An ordinary prologue, `nofralloc`, or a call to `_savegpr_*` does not establish that a function was originally assembly. PLACEHOLDER means the logic belongs in C/C++, even when the current assembly matches exactly.
|
||||
|
||||
`ogws_sdk/` references resolve under `/mnt/drive2/projects/wii-ipl-workers/_refs/prior/ogws_sdk/`. Linked ogws files supplement those copies for runtime and NW4R routines. The remote files were read on 2026-10-05. The local reference versions can differ from the 2010 target.
|
||||
|
||||
This inventory classifies the other workers' files without modifying them. It records this branch's contents, including placeholders another worker may have already converted elsewhere.
|
||||
|
||||
| File and line | Function | Form | Verdict | Evidence |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `src/BS2/BS2Init.c:22` | `ClearOtherBATs` | body | ORIGINAL-ASM | isync and direct IBAT/DBAT register writes. |
|
||||
| `src/BS2/BS2Mach.c:246` | `Run` | body | ORIGINAL-ASM | Clears ABI registers, replaces r1, uses dcbz/dcbf, and jumps via LR. |
|
||||
| `src/BS2/BS2Start.c:22` | `__start` | body | ORIGINAL-ASM | Runs before the C stack and ABI registers exist; constructs the initial stack. |
|
||||
| `src/BS2/BS2Start.c:97` | `__init_registers` | body | ORIGINAL-ASM | Initializes GPRs, r1, r2, and r13 for the C runtime. |
|
||||
| `src/channelScript/CHANSVm.c:6512` | `VmPushFuncReturnInfo` | body | PLACEHOLDER | VM frame bookkeeping with ordinary loads, stores, and calls. |
|
||||
| `src/keyboard/tiGUIManager.cpp:359` | `draw__Q39textinput3gui13PaneComponentFv` | body | PLACEHOLDER | GUI pane traversal and drawing calls. |
|
||||
| `src/keyboard/tiInputForm.cpp:1600` | `create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer` | body | PLACEHOLDER | Input-form allocation and initialization. |
|
||||
| `src/scene/button/iplButton.cpp:971` | `push_button_queue` | body | PLACEHOLDER | Button queue traversal and updates. |
|
||||
| `src/scene/channelSelect/iplChannelSelect.cpp:1336` | `updateDiskState__Q33ipl5scene13ChannelSelectFv` | body | PLACEHOLDER | Disc-state updates and scene calls. |
|
||||
| `src/scene/nakamuraTest/gamespy/common/gsPlatformUtil.c:474` | `GetTicks` | block 1 | ORIGINAL-ASM | Inactive PS2 branch reads the CP0 Count register with mfc0 $9. |
|
||||
| `src/sound/iplSound.cpp:341` | `resetAllSound__Q33ipl3snd6SystemFv` | body | PLACEHOLDER | Sound-system reset calls and state writes. |
|
||||
| `src/system/TVRC.cpp:224` | `TVRCSendStartAsync` | body | PLACEHOLDER | IR send setup and ordinary SDK calls. |
|
||||
| `src/system/TVRC.cpp:436` | `__FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext` | body | PLACEHOLDER | Timer callback logic and SDK calls. |
|
||||
| `src/system/iplCdbBackup.cpp:394` | `cdb_backup_delete_task_` | body | PLACEHOLDER | Database deletion task control flow. |
|
||||
| `src/system/iplCdbBackup.cpp:502` | `cdb_backup_move_task_` | body | PLACEHOLDER | Database move task control flow. |
|
||||
| `src/system/iplChannelManager.cpp:472` | `getTitleName__Q33ipl7channel7ManagerCFiii` | body | PLACEHOLDER | Channel-title selection and string copying. |
|
||||
| `src/system/iplException.cpp:95` | `Exception::exception_callback` | body | PLACEHOLDER | Console drawing, key polling, and scrolling logic. |
|
||||
| `src/system/iplSaveDataManager.cpp:149` | `Manager::hasChannel` | body | PLACEHOLDER | Title-ID comparisons and channel-slot search. |
|
||||
| `src/system/iplSaveDataManager.cpp:599` | `Manager::makePriorTitleIDList` | body | PLACEHOLDER | Title-ID filtering and ordering. |
|
||||
| `src/system/iplSaveDataManager.cpp:807` | `Manager::doUpdateChanInfos` | body | PLACEHOLDER | Channel metadata validation and updates. |
|
||||
| `src/system/iplSystem.cpp:1089` | `System::warning_run` | body | PLACEHOLDER | Warning-scene control flow and calls. |
|
||||
| `src/system/rvl_dec.c:17` | `Rvl_decode` | block 1 | PLACEHOLDER | Compression signature dispatch, expressible as C branches. |
|
||||
| `src/system/rvl_dec.c:72` | `Rvl_decode_szs` | body | PLACEHOLDER | Yaz/SZS byte-copy decompression loops. |
|
||||
| `src/system/rvl_dec.c:233` | `Rvl_decode_ash` | body | PLACEHOLDER | ASH bitstream and Huffman decoding. |
|
||||
| `src/system/rvl_dec.c:717` | `Rvl_decode_asr` | body | PLACEHOLDER | ASR decompression control flow and buffer writes. |
|
||||
| `libs/MetroTRK/src/Export/targsupp.c:12` | `TRKAccessFile` | body | ORIGINAL-ASM | twi 31,r0,0 is the debugger file-service trap, with debugger-controlled return registers. |
|
||||
| `libs/MetroTRK/src/Export/targsupp.c:22` | `TRKOpenFile` | body | ORIGINAL-ASM | twi 31,r0,0 is the debugger file-service trap, with debugger-controlled return registers. |
|
||||
| `libs/MetroTRK/src/Export/targsupp.c:30` | `TRKCloseFile` | body | ORIGINAL-ASM | twi 31,r0,0 is the debugger file-service trap, with debugger-controlled return registers. |
|
||||
| `libs/MetroTRK/src/Export/targsupp.c:38` | `TRKPositionFile` | body | ORIGINAL-ASM | twi 31,r0,0 is the debugger file-service trap, with debugger-controlled return registers. |
|
||||
| `libs/NW4R/include/nw4r/math/arithmetic.h:30` | `FSelect` | block 1 | ORIGINAL-ASM | Same function contains ASM in [ogws math_arithmetic.h](https://github.com/doldecomp/ogws/blob/master/include/nw4r/math/math_arithmetic.h#L91). |
|
||||
| `libs/NW4R/include/nw4r/math/arithmetic.h:38` | `FAbs` | block 1 | ORIGINAL-ASM | Same function contains ASM in [ogws math_arithmetic.h](https://github.com/doldecomp/ogws/blob/master/include/nw4r/math/math_arithmetic.h#L30). |
|
||||
| `libs/NW4R/include/nw4r/math/types.h:230` | `VEC3Add` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st and ps_* vector or matrix operations. |
|
||||
| `libs/NW4R/include/nw4r/math/types.h:258` | `VEC3Sub` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st and ps_* vector or matrix operations. |
|
||||
| `libs/NW4R/include/nw4r/math/types.h:287` | `VEC3Scale` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st and ps_* vector or matrix operations. |
|
||||
| `libs/NW4R/src/math/math_arithmetic.cpp:11` | `FrSqrt` | block 1 | ORIGINAL-ASM | frsqrte and fixed floating-point refinement; same function uses ASM in [ogws math_arithmetic.cpp](https://github.com/doldecomp/ogws/blob/master/src/nw4r/math/math_arithmetic.cpp#L65). |
|
||||
| `libs/NW4R/src/math/math_types.cpp:11` | `MTX44Identity` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st and ps_* vector or matrix operations. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode.c:4` | `TMCJPEGDEC_init_buff_thumbnail` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3.c:7` | `TMCJPEGDEC_make_huffdec` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:110` | `TMCJPEGDEC_imagestart` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:366` | `TMCJPEGDEC_scan_varinit` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:594` | `TMCJPEGDEC_restart_interval` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:787` | `TMCJPEGDEC_parse_para` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:1173` | `TMCJPEGDEC_parse_dht` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:1484` | `TMCJPEGDEC_parse_sof` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:1963` | `TMCJPEGDEC_parse_sos` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c:2208` | `TMCJPEGDEC_err_restart` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3.c:8` | `TMCJPEGDEC_decode_iquant_rc` | body | PLACEHOLDER | JPEG parsing, table construction, or decode arithmetic using ordinary integer operations and calls. |
|
||||
| `libs/RVL_SDK/include/revolution/os/OSFastCast.h:13` | `OSInitFastCast` | block 1 | ORIGINAL-ASM | mtspr programs the GQR quantization registers. |
|
||||
| `libs/RVL_SDK/include/revolution/os/OSFastCast.h:40` | `__OSu16tof32` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/include/revolution/os/OSFastCast.h:58` | `__OSf32tou8` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/include/revolution/os/OSFastCast.h:77` | `__OSf32tou16` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/include/revolution/os/OSFastCast.h:92` | `__OSs16tof32` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/include/revolution/os/OSFastCast.h:108` | `__OSf32tos16` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/ai/ai.c:154` | `__AICallbackStackSwitch` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/AI_ai.c:146. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:6` | `PPCMfmsr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfmsr r3`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:14` | `PPCMtmsr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtmsr newMSR`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:22` | `PPCOrMsr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfmsr r4`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:31` | `PPCAndMsr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfmsr r4`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:40` | `PPCAndCMsr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfmsr r4`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:49` | `PPCMfhid0` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, HID0`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:57` | `PPCMthid0` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr HID0, newHID0`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:65` | `PPCMfhid1` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, HID1`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:73` | `PPCMfl2cr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, L2CR`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:81` | `PPCMtl2cr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr L2CR, newL2cr`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:89` | `PPCMtdec` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtdec newDec`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:97` | `PPCMfdec` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfdec r3`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:105` | `PPCSync` | body | ORIGINAL-ASM | Special-register or synchronization operation: `sc`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:113` | `PPCEieio` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfmsr r5`, `mtmsr r6`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:133` | `PPCHalt` | body | ORIGINAL-ASM | Special-register or synchronization operation: `sync`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:145` | `PPCMfmmcr0` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, MMCR0`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:153` | `PPCMtmmcr0` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr MMCR0, newMmcr0`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:161` | `PPCMfmmcr1` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, MMCR1`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:169` | `PPCMtmmcr1` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr MMCR1, newMmcr1`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:177` | `PPCMfpmc1` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, PMC1`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:185` | `PPCMtpmc1` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr PMC1, newPmc1`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:193` | `PPCMfpmc2` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, PMC2`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:201` | `PPCMtpmc2` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr PMC2, newPmc2`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:209` | `PPCMfpmc3` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, PMC3`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:217` | `PPCMtpmc3` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr PMC3, newPmc3`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:225` | `PPCMfpmc4` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, PMC4`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:233` | `PPCMtpmc4` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr PMC4, newPmc4`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:244` | `PPCMffpscr` | block 1 | ORIGINAL-ASM | Special-register or synchronization operation: `mffs fp31`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:252` | `PPCMfsia` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, SIA`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:260` | `PPCMtsia` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr SIA, newSia`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:272` | `PPCMtfpscr` | block 1 | ORIGINAL-ASM | Special-register or synchronization operation: `mtfsf 0xff, fp31`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:282` | `PPCMfhid2` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, HID2`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:290` | `PPCMthid2` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr HID2, newhid2`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:298` | `PPCMfwpar` | body | ORIGINAL-ASM | Special-register or synchronization operation: `sync`, `mfspr r3, WPAR`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:307` | `PPCMtwpar` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr WPAR, newwpar`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:315` | `PPCMfdmaU` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, DMA_U`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:323` | `PPCMfdmaL` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, DMA_L`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:331` | `PPCMtdmaU` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr DMA_U, newdmau`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:339` | `PPCMtdmaL` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr DMA_L, newdmal`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:347` | `PPCMfpvr` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mfspr r3, PVR`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:363` | `PPCSetFpIEEEMode` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtfsb0 FPSCR_NI_BIT`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:371` | `PPCSetFpNonIEEEMode` | body | ORIGINAL-ASM | Special-register or synchronization operation: `mtfsb1 FPSCR_NI_BIT`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:382` | `PPCMthid4` | block 1 | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr HID4, val`. |
|
||||
| `libs/RVL_SDK/src/base/PPCArch.c:389` | `PPCMthid4` | block 2 | ORIGINAL-ASM | Special-register or synchronization operation: `mtspr HID4, val`. |
|
||||
| `libs/RVL_SDK/src/cntcache/cntcache.c:66` | `CNTCACHEClear` | body | PLACEHOLDER | NAND reads and token dispatch; live-literal reconstruction still lacks four retained pool entries. |
|
||||
| `libs/RVL_SDK/src/cntcache/cntcache.c:266` | `_CNTCACHEIsTitleRemovable` | body | PLACEHOLDER | NAND usage and typed TMD checks; C trials still differ in return copies and scheduling. |
|
||||
| `libs/RVL_SDK/src/cntcache/cntcache.c:360` | `_CNTCACHEDeleteContent` | body | PLACEHOLDER | Token parsing, typed content traversal, and ES deletion calls. |
|
||||
| `libs/RVL_SDK/src/db/db.c:27` | `__DBExceptionDestination` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/DB_db.c:23. |
|
||||
| `libs/RVL_SDK/src/gx/GXLight.c:20` | `PushLight` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/gx/GXTransform.c:19` | `WriteProjPS` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/gx/GXTransform.c:36` | `Copy6Floats` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/gx/GXTransform.c:58` | `WriteMTXPS4x3` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/gx/GXTransform.c:86` | `WriteMTXPS3x3from3x4` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/gx/GXTransform.c:112` | `WriteMTXPS4x2` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:36` | `PSMTXIdentity` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:65` | `PSMTXCopy` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:111` | `PSMTXConcat` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:209` | `PSMTXInverse` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:317` | `PSMTXInvXpose` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:449` | `PSMTXRotTrig` | block 1 | ORIGINAL-ASM | frsp prepares the operands for the paired-single rotation block in this same SDK function. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:457` | `PSMTXRotTrig` | block 2 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:527` | `PSMTXTrans` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:560` | `PSMTXTransApply` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:601` | `PSMTXScale` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtx.c:629` | `PSMTXScaleApply` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/mtxvec.c:16` | `PSMTXMultVec` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/vec.c:29` | `PSVECNormalize` | block 1 | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/mtx/vec.c:58` | `PSVECCrossProduct` | body | ORIGINAL-ASM | Paired-single psq_l/psq_st or ps_* operations; fast-cast variants also use GQR conversion formats. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:86` | `__OSFPRInit` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OS.c:52. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:582` | `OSInit` | block 1 | PLACEHOLDER | This block only pins __ArenaLo with lis/addi; ogws OS_OS.c uses the C linker-symbol pointer. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:617` | `OSInit` | block 2 | PLACEHOLDER | This block only pins __ArenaLo with lis/addi; ogws OS_OS.c uses the C linker-symbol pointer. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:771` | `__OSDBIntegrator` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OS.c:699. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:794` | `__OSDBJump` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OS.c:729. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:816` | `OSExceptionVector` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OS.c:752. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:876` | `OSDefaultExceptionHandler` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OS.c:817. |
|
||||
| `libs/RVL_SDK/src/os/OS.c:917` | `__OSPSInit` | block 1 | ORIGINAL-ASM | mtspr resets GQR0 through GQR7 for paired-single operations. |
|
||||
| `libs/RVL_SDK/src/os/OSAlarm.c:195` | `DecrementerExceptionHandler` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSAlarm.c:193. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:13` | `DCEnable` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:5. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:28` | `DCInvalidateRange` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:18. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:50` | `DCFlushRange` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:40. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:73` | `DCStoreRange` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:63. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:96` | `DCFlushRangeNoSync` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:86. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:118` | `DCZeroRange` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:130. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:140` | `ICInvalidateRange` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:152. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:165` | `ICFlashInvalidate` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:177. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:177` | `ICEnable` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:189. |
|
||||
| `libs/RVL_SDK/src/os/OSCache.c:192` | `LCDisable` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSCache.c:275. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:11` | `__OSLoadFPUContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:5. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:97` | `__OSSaveFPUContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:91. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:184` | `OSLoadFPUContext` | body | ORIGINAL-ASM | Transfers control directly into the FPU context loader, which restores caller-visible FPRs. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:192` | `OSSaveFPUContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:178. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:200` | `OSSetCurrentContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:187. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:240` | `OSSaveContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:227. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:280` | `OSLoadContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:275. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:353` | `OSGetStackPointer` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:351. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:361` | `OSSwitchStack` | body | ORIGINAL-ASM | Returns the old r1 and installs the supplied stack pointer directly. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:371` | `OSSwitchFiber` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:360. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:389` | `OSSwitchFiberEx` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:384. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:421` | `OSInitContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:418. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:534` | `OSSwitchFPUContext` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSContext.c:537. |
|
||||
| `libs/RVL_SDK/src/os/OSContext.c:583` | `OSFillFPUContext` | body | ORIGINAL-ASM | mfmsr/mtmsr/isync enable the FPU before saving all floating-point registers. |
|
||||
| `libs/RVL_SDK/src/os/OSInterrupt.c:40` | `OSDisableInterrupts` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSInterrupt.c:21. |
|
||||
| `libs/RVL_SDK/src/os/OSInterrupt.c:55` | `OSEnableInterrupts` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSInterrupt.c:40. |
|
||||
| `libs/RVL_SDK/src/os/OSInterrupt.c:69` | `OSRestoreInterrupts` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSInterrupt.c:55. |
|
||||
| `libs/RVL_SDK/src/os/OSInterrupt.c:479` | `ExternalInterruptHandler` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSInterrupt.c:534. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:89` | `ConfigMEM1_24MB` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:50. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:136` | `ConfigMEM1_48MB` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:89. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:184` | `ConfigMEM2_52MB` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:128. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:266` | `ConfigMEM2_56MB` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:191. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:348` | `ConfigMEM2_64MB` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:254. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:412` | `ConfigMEM2_112MB` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:304. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:493` | `ConfigMEM2_128MB` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:367. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:557` | `ConfigMEM_ES1_0` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:417. |
|
||||
| `libs/RVL_SDK/src/os/OSMemory.c:590` | `RealMode` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSMemory.c:444. |
|
||||
| `libs/RVL_SDK/src/os/OSSync.c:6` | `SystemCallVector` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSSync.c:11. |
|
||||
| `libs/RVL_SDK/src/os/OSTime.c:22` | `OSGetTime` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSTime.c:23. |
|
||||
| `libs/RVL_SDK/src/os/OSTime.c:38` | `OSGetTick` | body | ORIGINAL-ASM | Same function is asm in ogws_sdk/OS_OSTime.c:39. |
|
||||
| `libs/RVL_SDK/src/os/OSTime.c:48` | `__SetTime` | body | ORIGINAL-ASM | mttbl/mttbu/mttbl update the hardware time base in a fixed sequence. |
|
||||
| `libs/RVL_SDK/src/os/__ppc_eabi_init.cpp:33` | `__init_hardware` | body | ORIGINAL-ASM | Same function is asm in [ogws __ppc_eabi_init.c](https://github.com/doldecomp/ogws/blob/master/src/revolution/OS/__ppc_eabi_init.c#L9). |
|
||||
| `libs/RVL_SDK/src/os/__ppc_eabi_init.cpp:55` | `__flush_cache` | body | ORIGINAL-ASM | Same function is asm in [ogws __ppc_eabi_init.c](https://github.com/doldecomp/ogws/blob/master/src/revolution/OS/__ppc_eabi_init.c#L31). |
|
||||
| `libs/RVL_SDK/src/os/__ppc_eabi_init.cpp:85` | `__init_user` | body | ORIGINAL-ASM | Same function is asm in [ogws __ppc_eabi_init.c](https://github.com/doldecomp/ogws/blob/master/src/revolution/OS/__ppc_eabi_init.c#L55). |
|
||||
| `libs/RVL_SDK/src/sdi/sdi_api.c:785` | `ISD_GetCardSize` | body | PLACEHOLDER | CSD bitfield decoding and arithmetic; no special-register operation. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:399` | `CDBDatabaseSearchRecordLayer` | body | PLACEHOLDER | Database traversal or filename checks with ordinary data access and calls. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:892` | `CDBDatabaseSearchMinuteLayer` | body | PLACEHOLDER | Database traversal or filename checks with ordinary data access and calls. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:1154` | `CDBDatabaseSearchHourLayer` | body | PLACEHOLDER | Database traversal or filename checks with ordinary data access and calls. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:1411` | `CDBDatabaseSearchDayLayer` | body | PLACEHOLDER | Database traversal or filename checks with ordinary data access and calls. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:1693` | `CDBDatabaseSearchMonthLayer` | body | PLACEHOLDER | Database traversal or filename checks with ordinary data access and calls. |
|
||||
| `libs/RevoEX/src/cdb/CDBDatabase.c:1963` | `CDBDatabaseSearchYearLayer` | body | PLACEHOLDER | Database traversal or filename checks with ordinary data access and calls. |
|
||||
| `libs/RevoEX/src/cdb/CDBFileSystemUtils.c:112` | `CDBFSIsCDBFileOnSD` | body | PLACEHOLDER | Database traversal or filename checks with ordinary data access and calls. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24Manage.c:305` | `NWC24Check` | body | PLACEHOLDER | Account validation and integer bit operations, expressible in C. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24UserId.c:11` | `NWC24CheckUserId` | body | PLACEHOLDER | Account validation and integer bit operations, expressible in C. |
|
||||
| `libs/RevoEX/src/nwc24/NWC24UserId.c:95` | `getUnScrambleId` | body | PLACEHOLDER | Account validation and integer bit operations, expressible in C. |
|
||||
| `libs/RevoEX/src/vf/develop/nand_drv.c:420` | `_MountPrfFile` | body | PLACEHOLDER | Profile-file mounting and error-handling control flow. |
|
||||
| `libs/RevoEX/src/wd/WDScan.c:313` | `WDiFindVendorSpecificIE` | body | PLACEHOLDER | Vendor information-element search and byte comparisons. |
|
||||
| `libs/Runtime/src/Gecko_setjmp.c:30` | `__setjmp` | body | ORIGINAL-ASM | Saves or restores caller GPRs/FPRs, LR, CR, and stack state across nonlocal returns. |
|
||||
| `libs/Runtime/src/Gecko_setjmp.c:79` | `longjmp` | body | ORIGINAL-ASM | Saves or restores caller GPRs/FPRs, LR, CR, and stack state across nonlocal returns. |
|
||||
| `libs/Runtime/src/__init_cpp_exceptions.cpp:23` | `__exception_info_constants` | block 1 | ORIGINAL-ASM | Reads the caller ABI TOC register r2 directly for exception registration. |
|
||||
| `libs/Runtime/src/ptmf.c:13` | `__ptmf_scall` | body | ORIGINAL-ASM | Same function is asm in [ogws ptmf.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/ptmf.c#L37). |
|
||||
| `libs/Runtime/src/runtime.c:101` | `__cvt_fp2unsigned` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L9). |
|
||||
| `libs/Runtime/src/runtime.c:138` | `__save_fpr` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L82). |
|
||||
| `libs/Runtime/src/runtime.c:182` | `__restore_fpr` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L95). |
|
||||
| `libs/Runtime/src/runtime.c:225` | `__save_gpr` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L108). |
|
||||
| `libs/Runtime/src/runtime.c:268` | `__restore_gpr` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L121). |
|
||||
| `libs/Runtime/src/runtime.c:311` | `__div2u` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L130). |
|
||||
| `libs/Runtime/src/runtime.c:384` | `__div2i` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L214). |
|
||||
| `libs/Runtime/src/runtime.c:480` | `__mod2u` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L325). |
|
||||
| `libs/Runtime/src/runtime.c:551` | `__mod2i` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L407). |
|
||||
| `libs/Runtime/src/runtime.c:635` | `__shl2i` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L505). |
|
||||
| `libs/Runtime/src/runtime.c:649` | `__shr2u` | body | ORIGINAL-ASM | Compiler shift-helper register convention: r3:r4 is the 64-bit operand/result and r5 is the shift count. |
|
||||
| `libs/Runtime/src/runtime.c:663` | `__shr2i` | body | ORIGINAL-ASM | Compiler shift-helper register convention: r3:r4 is the 64-bit operand/result and r5 is the shift count. |
|
||||
| `libs/Runtime/src/runtime.c:679` | `__cvt_sll_dbl` | body | ORIGINAL-ASM | Compiler conversion-helper register convention: r3:r4 input, f1 result, and explicit carry/rounding operations. |
|
||||
| `libs/Runtime/src/runtime.c:732` | `__cvt_ull_dbl` | body | ORIGINAL-ASM | Compiler conversion-helper register convention: r3:r4 input, f1 result, and explicit carry/rounding operations. |
|
||||
| `libs/Runtime/src/runtime.c:779` | `__cvt_ull_flt` | body | ORIGINAL-ASM | Compiler conversion-helper register convention: r3:r4 input, f1 result, and explicit carry/rounding operations. |
|
||||
| `libs/Runtime/src/runtime.c:827` | `__cvt_dbl_usll` | body | ORIGINAL-ASM | Compiler conversion-helper register convention: f1 input and r3:r4 integer result without a recursive compiler conversion call. |
|
||||
| `libs/Runtime/src/runtime.c:889` | `__cvt_dbl_ull` | body | ORIGINAL-ASM | Same function is asm in [ogws runtime.c](https://github.com/doldecomp/ogws/blob/master/src/runtime/runtime.c#L523). |
|
||||
59
tools/decomp-assist/button-friend-declaration.attempts.md
Normal file
59
tools/decomp-assist/button-friend-declaration.attempts.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# Button friend declaration consistency
|
||||
|
||||
2026-10-05; base `7b29f284c1c864222e88e5e83418ee7b0c50bb1d`.
|
||||
Leaf: `agent/fix/button-friend-declaration`.
|
||||
|
||||
The implementation-only friend introduced in PR1176 made the `Button` class
|
||||
definition differ across translation units. Remove only the four conditional
|
||||
directives around its existing namespace forward declaration and friend.
|
||||
Both declarations now appear consistently; the function remains the existing
|
||||
`ipl::scene` C-linkage `BOOL push_button_queue(void*, const void*)`.
|
||||
No definition, export, layout, function body, symbol configuration, compiler
|
||||
flag, or linkage changes. The unused source macro is deliberately untouched.
|
||||
|
||||
## Independent trial
|
||||
|
||||
Preserved all 1,027 source objects, the complete report, and the linked DOL
|
||||
before editing. Configured 43U from this leaf with the recovered local tool
|
||||
paths, then ran `ninja -j4` and
|
||||
`ninja -j4 progress build/43U/report.json build/43U/ok`.
|
||||
The build log records all 1,027 MWCC compilations.
|
||||
|
||||
- All 1,027 rebuilt **entire ELF files** are byte-identical to the baseline,
|
||||
including debug information and all 22 header-dependent objects
|
||||
- Separately compared 2,717 allocated sections, 117,545 allocated-section
|
||||
relocations, and 15,880 defined-function entries and their symbol order:
|
||||
zero differences
|
||||
- The relocation comparison resolves section/symbol table indices to their
|
||||
exact identities; it does not mask instruction bytes, rename anonymous
|
||||
symbols, ignore addends, or reorder symbols
|
||||
- The complete 1,027-unit report is byte-identical, including every function,
|
||||
section, exact sibling, and link measure. Report SHA256:
|
||||
`9d3c9a79796a042508e6dba0ba26db6e153ad7ffa44deef7eb95900a048cde38`
|
||||
- Queue wrapper versus the original `Queue<Command,8>::push`: 28/28
|
||||
instructions, zero diagnostic differences, zero relocations; string pool
|
||||
32/32 identical
|
||||
- DOL bytes unchanged; SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`
|
||||
- `git diff --check` passes. The global completion checker still reports the
|
||||
unchanged pre-existing incomplete project; this is not a completion claim
|
||||
|
||||
The 22 dependencies are `src/system/RsoSystem.cpp`, and these scene units:
|
||||
`address/{iplAddress,iplAddressAddSel,iplAddressEdit}`,
|
||||
`board/{iplBoard,iplBoardObject,iplFocusObject}`, `button/{iplButton,iplArrow}`,
|
||||
`calendar/{iplCalendar,iplDate}`, `channelSelect/iplChannelSelect`,
|
||||
`channelTitle/iplChannelTitle`, `faceSelect/iplFaceSelect`,
|
||||
`letterWriter/iplLetterWriter`, `mailAddSel/iplMailAddressSelect`,
|
||||
`sceneMisc/iplReboot`, `sceneSystem/iplSceneCreator`, `sdButton/iplSDMenuButton`,
|
||||
`sdChannelMemory/iplSDMemory`, `sdChannelTitle/iplSDChannelTitle`, and
|
||||
`textWriter/iplTextWriter` (all `.cpp`). The fresh dependency records agree.
|
||||
|
||||
Local evidence: `build/button-friend-review/` contains the preserved baseline,
|
||||
`configure.log`, `build.log`, `audit.py`, `audit-results.json`,
|
||||
`audit-summary.json`, and completion/status output. Audit script SHA256:
|
||||
`ede148cf70ac05d0e7a5be5a257311b786293969d6fb2ff404ae5f654e070c90`.
|
||||
The audit script uses installed pyelftools; the focused instruction diagnostic
|
||||
uses the separately restored local helper, not a claimed recovery of the
|
||||
historical helper. Raw ELF equality is the stronger neutrality evidence here.
|
||||
|
||||
GATE PASS: bounded binary-neutral declaration repair. No runtime execution,
|
||||
new matching gain, upstream contact, push, PR, merge, or main-worktree edit.
|
||||
53
tools/decomp-assist/card-result-initialization-audit.md
Normal file
53
tools/decomp-assist/card-result-initialization-audit.md
Normal file
@@ -0,0 +1,53 @@
|
||||
# MemoryCardManager result initialization
|
||||
|
||||
Base: `f8957ca9`. Branch: `agent/fix/card-result-initialization`.
|
||||
One bounded source trial: initialize `result` from the existing `file` value in
|
||||
`isMoveEnable` and `isCopyEnable`. No conditions, shared reads, error priorities,
|
||||
headers, compiler flags, or Matching classifications changed.
|
||||
|
||||
## Target evidence
|
||||
|
||||
Both original functions are 0x1D8 bytes / 118 instructions. At function offset
|
||||
0x4C, `lwz r29,8(r5)` loads `mFile[slot][index].fileNo`. Each ordinary result
|
||||
branch replaces r29 with its error/success code. If the initial eligibility test
|
||||
fails but the second pass finds every condition favorable, the final test at
|
||||
0x1A8 branches directly to the output check without replacing r29; the store at
|
||||
0x1B8 writes that retained file number through `code`.
|
||||
|
||||
That path is relevant because card state is shared with the card thread. For
|
||||
example, the first `isDistSlot` can observe a non-ready slot, and the second can
|
||||
observe a ready slot with otherwise favorable conditions. The old C++ left
|
||||
`result` uninitialized on this path. The target retained the file value.
|
||||
`file` is `u32` (`unsigned long`); the output is `long`, both 32-bit for this
|
||||
target. Valid directory indices are representable in both types. The retained
|
||||
`long result = file;` expresses the target's existing value lifetime.
|
||||
|
||||
## Independent leaf verification
|
||||
|
||||
Configured 43U with explicit local compiler/tool paths. Rebuilt the unmodified
|
||||
baseline in this leaf before editing and preserved its report, object, DOL,
|
||||
all-source-object hashes, and original-function disassembly. The sole candidate
|
||||
was then compiled and the full 43U build, report, and `build/43U/ok` rerun.
|
||||
|
||||
- The complete MemoryCardManager object is byte-identical to the fresh baseline
|
||||
(SHA256 `aa01d4ef861b2dd2e796ee3ffc1853de63dc0e7bed1245b46375aa51a3b62d4f`).
|
||||
- All 1027 source-object SHA256 values are unchanged.
|
||||
- Every report unit entry and all global measures are unchanged.
|
||||
- Both edited functions remain objdiff 100%, 118/118 instructions, zero decoded
|
||||
instruction differences against the original objects.
|
||||
- All 23 previously exact functions in the 26-function unit retain zero
|
||||
instruction differences. Code remains 4080/5396 bytes exact, with unchanged
|
||||
fuzzy score 98.22832%. The unit remains NonMatching and has no owned data.
|
||||
- Pool audit passes (0/0 strings). Literal-reference audit analyzes all 23 exact
|
||||
functions with zero candidates, skips, or errors; there are no string
|
||||
arguments to compare.
|
||||
- Full 43U build passes. DOL bytes equal the baseline and SHA1 is
|
||||
`26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
- `git diff --check` passes. No additional source trial was attempted.
|
||||
|
||||
Local evidence is preserved under `build/card-result-review/`: baseline and
|
||||
candidate reports/objects/DOLs, object hashes, build logs, target disassembly,
|
||||
`target-result-dataflow.json`, `pool.txt`, `literals.txt`, and `validation.json`.
|
||||
|
||||
GATE PASS: binary-neutral source-defined initialization; exact siblings,
|
||||
code/data/link measures, all source-object bytes, and full-build/DOL preserved.
|
||||
67
tools/decomp-assist/cdb-unify-arity.attempts.md
Normal file
67
tools/decomp-assist/cdb-unify-arity.attempts.md
Normal file
@@ -0,0 +1,67 @@
|
||||
# Unify CDB helper signatures
|
||||
|
||||
Base: f8957ca95be0ca4b35a281fa9a5d59f7f1787a41.
|
||||
Branch: agent/fix/cdb-unify-arity.
|
||||
Scope: CDBDate.h, CDBConv.h, CDBConv.c, CDBDatabase.c.
|
||||
|
||||
## Reason and consumer audit
|
||||
|
||||
PR #1167 introduced shorter declarations visible only to CDBDatabase.c while
|
||||
CDBConv.c retained the old, longer definitions. Unused trailing machine
|
||||
arguments do not make these incompatible C function types valid.
|
||||
|
||||
Unify declarations and definitions around the arguments used by the target:
|
||||
DayBegin/DayEnd take three ints, MonthBegin/MonthEnd two, YearBegin/YearEnd
|
||||
one, and CDBConvDirStrToCDBDate five character pointers. Remove the
|
||||
CDB_DATABASE_IMPLEMENTATION guard. MonthEnd's former day parameter becomes
|
||||
a local assigned in every switch arm, including default, before any read.
|
||||
All seven external names, linkage, return types, and linked bytes are retained.
|
||||
|
||||
The complete original 43U object relocation audit found 13 call relocations,
|
||||
all in CDBDatabase: one directory conversion and two calls to each of the six
|
||||
date boundary helpers. The only additional 12 relocations were MonthEnd's
|
||||
internal switch destinations. Decoding direct branches throughout the original
|
||||
DOL confirmed the same 13 calls. No literal entry-address references, dynamic
|
||||
ELF sections, relevant export list, or REL/RSO modules were found. These checks
|
||||
cover observed 43U consumers, not hypothetical external fixed-address callers.
|
||||
None of the removed trailing arguments is read by the helper implementations.
|
||||
|
||||
## One bounded source attempt
|
||||
|
||||
Applied the four-file signature correction directly, with no code-generation
|
||||
tuning, new assembly, volatile casts, dummy arguments, or unrelated source edits.
|
||||
Configured only 43U with the existing local compiler, binutils and wrapper paths.
|
||||
Ran the complete default build, then progress, report and build/43U/ok targets.
|
||||
|
||||
Fresh results:
|
||||
|
||||
- CDBConv: 39/39 original functions, 4676/4676 code bytes, 232/232 data bytes;
|
||||
matched and linked code/data all 100%.
|
||||
- CDBDatabase: 33/33 original functions, 12152/12152 code bytes, 312/312 data
|
||||
bytes; matched and linked code/data all 100%.
|
||||
- All 72 exact-name original functions have identical raw instruction bytes,
|
||||
position-normalized Capstone instructions and normalized relocation targets.
|
||||
- Every allocated section and compiled function body is identical to the
|
||||
pre-edit source-object baseline. Existing line-number-derived FORCEACTIVE
|
||||
helper names move from 132/313 to 134/315; their bodies do not change.
|
||||
- String pools: CDBConv 5/5, CDBDatabase 7/7, both identical.
|
||||
- Literal audit: 31 arguments, 72 functions, zero skipped functions, candidates
|
||||
or errors.
|
||||
- MonthEnd jump table: 12/12 destinations identical.
|
||||
- All 1027 report units retain identical measures and section results versus
|
||||
the preserved baseline; global measures are identical.
|
||||
- Full build and build/43U/ok pass.
|
||||
- Original and rebuilt DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
- git diff --check passes.
|
||||
|
||||
Global completion was also checked. It still fails the pre-existing incomplete
|
||||
project totals (2778928/2995176 matched code, 2312404/2995176 linked code,
|
||||
1832576/1832684 matched data, 1545364/1832684 linked data). This correction
|
||||
makes no new decompilation or completion-percentage claim.
|
||||
|
||||
GATE PASS: bounded signature correction; no exact, data, function or link
|
||||
regression. Independent parent verification is still required before landing.
|
||||
|
||||
Transient validation evidence is in build/cdb-arity-review/: the preserved
|
||||
baseline report/objects, full-build.log, final-gates.log, check_objects.py,
|
||||
object-gates.log, status.json, status.md and completion.log.
|
||||
451
tools/decomp-assist/da2-deasm.attempts.md
Normal file
451
tools/decomp-assist/da2-deasm.attempts.md
Normal file
@@ -0,0 +1,451 @@
|
||||
# da2 de-asm attempts
|
||||
|
||||
Base: 9d40859ee8f4ee37dc692e444727d17367bfcbeb, agent/w1005/da2.
|
||||
Scope: CDBDatabase, CDBFileSystemUtils, NWC24Manage, NWC24UserId, vf/develop/nand_drv, WDScan.
|
||||
All six units begin linked with every function, code byte and data byte exact.
|
||||
Initial DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
Each conversion starts from the original-object Ghidra export, uses typed C, and requires identical pools, exact objdiff, zero ctxdiff differences and a full gate before its own commit.
|
||||
Evidence files live in build/da2 while this run is active. Rejected conversions restore the existing asm before final verification.
|
||||
|
||||
CDBDatabaseSearchCallCallback / callback-1: Ghidra callback branch with typed instance flags and success nesting. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0xf4 base 0xf4 insns 61/61; diffs 0: []
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
CDBDatabaseSearchRecordLayer / record-1: Ghidra traversal with typed search buffer and record key array, current directory date prototype. objdiff 97.76286%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x704 base 0x6fc insns 449/447; --- replace mine 6:7 base 6:9
|
||||
|
||||
CDBDatabaseSearchRecordLayer / record-2: Separate dictionary result to preserve call order, finished local before path bounds. objdiff 98.85906%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x704 base 0x6fc insns 449/447; --- replace mine 6:7 base 6:9
|
||||
|
||||
CDBDatabaseSearchRecordLayer / record-3: Repair five-argument target call through guarded header declaration; other translation units retain existing prototype. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x6fc base 0x6fc insns 447/447; diffs 0: []
|
||||
|
||||
Record-layer evidence: the target only prepares r3-r7 for CDBConvDirStrToCDBDate, and CDBConv.c only consumes the five directory strings. The header currently advertises two unused trailing arguments. CDB_DATABASE_IMPLEMENTATION scopes the accurate five-argument declaration to this unit; no other source or output changes. The key storage starts at instance+8 because CDBRecordKey has 8-byte alignment; a typed prefix view replaces byte-offset casts.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
CDBDatabaseSearchMinuteLayer / minute-1: Ghidra two-location directory batching with typed integer array and separate dictionary result. objdiff 99.82758%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3a0 base 0x3a0 insns 232/232; diffs 7: [154, 156, 159, 161, 180, 183, 186]
|
||||
|
||||
CDBDatabaseSearchMinuteLayer / minute-2: Branch-local forward iterator and current pointer declarations. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3a0 base 0x3a0 insns 232/232; diffs 0: []
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
CDBDatabaseSearchHourLayer / hour-1: Ghidra hour search with branch-local forward iterator. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x38c base 0x38c insns 227/227; diffs 0: []
|
||||
|
||||
CDBDatabaseSearchDayLayer / day-1: Ghidra day filter and traversal using earlier branch-local iterator fix. COMPILE FAILED.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
CDBDatabaseSearchDayLayer / day-2: Scoped date-boundary signatures now match actual used arguments, Ghidra day traversal. objdiff 98.63095%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3f0 base 0x3f0 insns 252/252; diffs 63: [12, 13, 15, 19, 34, 39, 41, 47, 48, 52, 56, 61, 75, 79, 81, 85, 89, 95, 96, 100]
|
||||
|
||||
CDBDatabaseSearchDayLayer / day-3: Date predicates follow target compare operand order. objdiff 98.86905%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3f0 base 0x3f0 insns 252/252; diffs 55: [12, 13, 15, 19, 34, 39, 41, 47, 48, 52, 56, 61, 75, 79, 81, 85, 89, 95, 96, 100]
|
||||
|
||||
CDBDatabaseSearchDayLayer / day-4: Outer typed iterator locals precede directory state. objdiff 99.80159%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3f0 base 0x3f0 insns 252/252; diffs 9: [150, 152, 155, 157, 163, 170, 188, 191, 194]
|
||||
|
||||
CDBDatabaseSearchDayLayer / day-5: Forward and reverse loop counters are distinct outer locals. objdiff 99.60317%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3f0 base 0x3f0 insns 252/252; diffs 18: [150, 152, 155, 157, 163, 170, 188, 191, 194, 199, 201, 204, 206, 212, 219, 237, 240, 241]
|
||||
|
||||
CDBDatabaseSearchDayLayer / day-6: Outer reverse locals plus branch-local forward iterator pair. objdiff 99.60317%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3f0 base 0x3f0 insns 252/252; diffs 18: [150, 152, 155, 157, 163, 170, 188, 191, 194, 199, 201, 204, 206, 212, 219, 237, 240, 241]
|
||||
|
||||
CDBDatabaseSearchDayLayer / day-7: Iterator index declared before the pointer in each scope. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3f0 base 0x3f0 insns 252/252; diffs 0: []
|
||||
|
||||
Day-layer signature proof: CDBConv.c's DayBegin/DayEnd ignore the final three declared parameters; MonthBegin/MonthEnd ignore four, and YearBegin/YearEnd ignore five. Target calls pass only the calendar components used. The accurate declarations use the existing CDB_DATABASE_IMPLEMENTATION guard to leave every other translation unit unchanged. Day comparisons now use the target's operand order. All remaining day differences were resolved by iterator declaration scope and order.
|
||||
|
||||
CDBDatabaseSearchMonthLayer / month-1: Ghidra month traversal with corrected signatures and iterator order. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); insns 240/240; positional diffs 0.
|
||||
|
||||
NWC24CheckUserId / usercheck-1: Ghidra area checks and CRC loop in existing file style. objdiff 95.50848%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 59/59; positional diffs 13.
|
||||
|
||||
_MountPrfFile / nand-1: Existing C fallback checked against Ghidra using native retry helpers. objdiff 97.511734%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 424/426; positional diffs 386.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-1: Ghidra traversal using WD vendor element fields and cached mode. objdiff 96.53846%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 35.
|
||||
|
||||
NWC24Check / manage-1: Original-object Ghidra flow with News Channel prior C and current SDK type names. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 119/119; positional diffs 0.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
NWC24CheckUserId / usercheck-2: CRC iterator declared before area fields in lifetime order. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 59/59; positional diffs 0.
|
||||
|
||||
CDBDatabaseSearchMonthLayer / month-live: Fresh worktree object confirms isolated exact candidate. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x3c0 base 0x3c0 insns 240/240; diffs 0: []
|
||||
|
||||
CDBDatabaseSearchYearLayer / year-1: Ghidra root search with date boundary helpers and typed iterator scopes. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); insns 222/222; positional diffs 0.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-1: Ghidra hexadecimal digit pairs agree with existing C fallback. objdiff 98.85827%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 20.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-2: Declare hexadecimal loop counters before character pointer. objdiff 98.74016%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 22.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-2: Typed output locals and signed two-byte IE header increment. objdiff 98.53846%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 14.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-3: Length local precedes found state; compound offset increment. COMPILE FAILED.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-3: Explicit pair validation avoids inner-loop induction temporary. objdiff 97.20473%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 125/127; positional diffs 104.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
WDiFindVendorSpecificIE / vendor-4: C89 declaration order for length and signed compound offset. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
CDBDatabaseSearchYearLayer / year-live: Fresh object verifies exact root traversal. objdiff 100.0%; POOL IDENTICAL up to 7 (mine=7 base=7); src 0x378 base 0x378 insns 222/222; diffs 0: []
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-4: Static inline character validation helper around ctype conversion. objdiff 93.97638%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 132/127; positional diffs 112.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-5: Direct filename indexing removes cached element pointer. objdiff 97.125984%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 128/127; positional diffs 117.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-6: Function-scope pointer and loop counters, assignment after length check. objdiff 98.85827%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 20.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
NWC24Check / manage-live: Prior C adapted to local SDK declarations, isolated exact candidate verified in worktree. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); src 0x1dc base 0x1dc insns 119/119; diffs 0: []
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-5: Unsigned IE length gives target addition operand order. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-6: Offset-first source sum leaves loaded length first in target instruction. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-7: Inline helper for the information-element offset step. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
NWC24Check prior source: https://raw.githubusercontent.com/hotlandsoftware/wii-news-channel/main/src/revolution/NWC24/NWC24Manage.c . The original-object Ghidra control flow agrees with that C implementation. SDK names adapted locally; exact 119/119 instructions.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] objdiff: code 3784/3784 data 336/336 functions 21/21 fuzzy 100.0000 linked code 3784
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] instruction-exact functions: 21/21
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .bss size 32 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .data size 272 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .sbss size 24 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .text size 3784 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] baseline: code 3784/3784 data 336 functions 21 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
NWC24CheckUserId / usercheck-live: Verify area and CRC checks in the live object. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); src 0xec base 0xec insns 59/59; diffs 0: []
|
||||
|
||||
_MountPrfFile / nand-2: Remove dead initial values and separate read result from open result. objdiff 97.511734%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 424/426; positional diffs 386.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-7: Inline helper owns prefix walker and nested hexadecimal loops. objdiff 95.03937%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 132/127; positional diffs 87.
|
||||
|
||||
getUnScrambleId / unscramble-1: Ghidra permutation reconstructed as 53-bit rotate, byte permutation, inverse nibble substitution. objdiff 50.298138%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 162/161; positional diffs 157.
|
||||
|
||||
getUnScrambleId / unscramble-2: 64-bit byte helper values preserve masks across inline boundaries. objdiff 49.826088%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 164/161; positional diffs 160.
|
||||
|
||||
getUnScrambleId / unscramble-3: Mask the rotated 53-bit result after the left shift. objdiff 40.51553%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 165/161; positional diffs 161.
|
||||
|
||||
_MountPrfFile / nand-3: Natural null test and grouped big-endian header words. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 426/426; positional diffs 0.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] objdiff: code 1032/1032 data 16/16 functions 3/3 fuzzy 100.0000 linked code 1032
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] instruction-exact functions: 3/3
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] section .rodata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] section .text size 1032 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] baseline: code 1032/1032 data 16 functions 3 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
_MountPrfFile / nand-live: Verify native C mount with grouped header decoding. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); src 0x6a8 base 0x6a8 insns 426/426; diffs 0: []
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-8: Simplify source-search result to output local declaration order only. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
getUnScrambleId / unscramble-4: Byte replacement helper mutates a typed 64-bit value in place. objdiff 39.62733%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 169/161; positional diffs 159.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-min-0: Single null-check operand reversal: element-success. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-min-1: Single null-check operand reversal: length-success. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-min-2: Single null-check operand reversal: element-failure. objdiff 99.84615%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 1.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-8: Integer loop counters for the four pairs and extension. objdiff 97.28346%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 125/127; positional diffs 116.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-9: Signed SDK width for offset without reordered null tests. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 65/65; positional diffs 0.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-type-signed: Counter types s8 i, j;. objdiff 98.85827%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 20.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-type-unsigned: Counter types u8 i, j;. objdiff 98.85827%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 20.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-type-mixed: Counter types char i; int j;. objdiff 98.85827%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 20.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-type-long: Counter types char i; s32 j;. objdiff 98.85827%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 20.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] objdiff: code 12144/12144 data 464/464 functions 33/33 fuzzy 100.0000 linked code 12144
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .bss size 424 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .rodata size 32 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .text size 12144 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] baseline: code 12144/12144 data 464 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
getUnScrambleId / unscramble-5: Unsigned byte positions and explicit ten-bit wraparound mask. objdiff 50.701862%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 161/161; positional diffs 155.
|
||||
|
||||
WDiFindVendorSpecificIE / vendor-live: Minimal C body uses s32 offset, existing neighboring functions unchanged. objdiff 100.0%; POOL IDENTICAL up to 0 (mine=0 base=0); src 0x104 base 0x104 insns 65/65; diffs 0: []
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-9: One-field cursor struct changes pointer temporary ownership. objdiff 99.09449%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 17.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-10: Inline helper separates filename format validation from bounded length check. objdiff 98.74016%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 127/127; positional diffs 22.
|
||||
|
||||
CDBFSIsCDBFileOnSD / fsutils-11: Advance parameter as the prefix walker and preserve the filename for extension checks. objdiff 95.15748%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 129/127; positional diffs 122.
|
||||
|
||||
Wireless source search: stock srcsearch.py initially selected an earlier call site. A worktree-local copy anchors its function matcher to a definition; shared tools were not changed. Seed 25 found 100% after 11 trials. Removing unnecessary reordered null tests retained 100% when offset is s32. The SDK defines s32 as signed long, distinct from int for MWCC's expression lowering. Only the owned WDiFindVendorSpecificIE body and its now-unused asm helper declarations are changed.
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/wd/WDScan] pool: IDENTICAL
|
||||
[libs/RevoEX/src/wd/WDScan] objdiff: code 2180/2180 data 16/16 functions 5/5 fuzzy 100.0000 linked code 2180
|
||||
[libs/RevoEX/src/wd/WDScan] instruction-exact functions: 5/5
|
||||
[libs/RevoEX/src/wd/WDScan] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] section .sdata2 size 8 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] section .text size 2180 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] baseline: code 2180/2180 data 16 functions 5 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
getUnScrambleId / unscramble-6: Repeated trial 5; the intended edit did not run because git diff --check caught an EOF blank line. Superseded by trial 6b. objdiff 50.701862%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 161/161; positional diffs 155.
|
||||
|
||||
getUnScrambleId / unscramble-6b: Corrected trial: SDK u32 byte access helpers with explicit byte-width mask. objdiff 48.714287%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 161/161; positional diffs 155.
|
||||
getUnScrambleId / unscramble-7b: Keep the target out-of-line boundary while factoring the byte permutation. objdiff 50.701862%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 161/161; positional diffs 155.
|
||||
|
||||
getUnScrambleId / unscramble-8: Direct byte expressions through macros instead of inline argument temporaries. objdiff 41.142857%; POOL IDENTICAL up to 0 (mine=0 base=0); insns 161/161; positional diffs 157.
|
||||
|
||||
|
||||
## Retained assembly and remaining work
|
||||
|
||||
CDBFSIsCDBFileOnSD remains the original exact asm. The best readable C trial, fsutils-9, has 127/127 instructions and 99.09449% objdiff, with 17 differences in registers r3/r4/r5 around ctype map access and the prefix walker. Tried nested and explicit paired loops, counters with char/s8/u8/int/s32 types, function and block scopes, typed helpers, direct indexing, a one-field cursor, and advancing the input parameter. A 120-second source search tried 217 variants from fsutils-1 without improvement. No C trial was retained. Best source and detailed diff: build/da2/fsutils-9/.
|
||||
|
||||
getUnScrambleId remains the original exact asm. The best C trial, unscramble-5, reaches 161/161 instructions but only 50.701862% objdiff and 155 positional differences, including instruction scheduling through byte permutation and register allocation. Tried u8/u32/u64 byte helpers, return-value and pointer setters, explicit rotation masks, a separate permutation helper, and direct macro expressions. A 180-second source search tried 292 variants with no improvement. Trial 7 inlined away the function; trial 7b restored its original call boundary with NO_INLINE and remained non-exact. No experimental helper, macro, attribute or C body was retained. Best source and detailed diff: build/da2/unscramble-5/. Neither remaining function is claimed to require assembly.
|
||||
|
||||
Both retained functions have more than three distinct compiled source attempts. No untried assignment remains. The two helper-signature header changes are scoped to CDB_DATABASE_IMPLEMENTATION; all other units keep their existing declarations.
|
||||
|
||||
## Converted functions and commits
|
||||
|
||||
143785b0 decomp(cdb): convert search callback to c
|
||||
ea8cd532 decomp(cdb): convert record search layer to c
|
||||
e5989e5e decomp(cdb): convert minute search layer to c
|
||||
4a653bb3 decomp(cdb): convert hour search layer to c
|
||||
952dd221 decomp(cdb): convert day search layer to c
|
||||
b72b9d27 decomp(cdb): convert month search layer to c
|
||||
88082111 decomp(cdb): convert year search layer to c
|
||||
0743c6da decomp(nwc24): convert library check to c
|
||||
a1d0e162 decomp(nwc24): convert user id validation to c
|
||||
19410104 decomp(vf): convert nand prf mount to c
|
||||
d612eee9 decomp(wd): convert vendor element search to c
|
||||
|
||||
## Baseline and final comparison
|
||||
|
||||
Unit | Exact functions | Matched code | Matched data | Asm bodies before -> after
|
||||
--- | --- | --- | --- | ---
|
||||
libs/RevoEX/src/cdb/CDBDatabase | 33 -> 33 | 12152 -> 12152 | 312 -> 312 | 7 -> 0
|
||||
libs/RevoEX/src/cdb/CDBFileSystemUtils | 11 -> 11 | 2480 -> 2480 | 8 -> 8 | 1 -> 1
|
||||
libs/RevoEX/src/nwc24/NWC24Manage | 21 -> 21 | 3784 -> 3784 | 336 -> 336 | 1 -> 0
|
||||
libs/RevoEX/src/nwc24/NWC24UserId | 3 -> 3 | 1032 -> 1032 | 16 -> 16 | 2 -> 1
|
||||
libs/RevoEX/src/vf/develop/nand_drv | 33 -> 33 | 12144 -> 12144 | 464 -> 464 | 1 -> 0
|
||||
libs/RevoEX/src/wd/WDScan | 5 -> 5 | 2180 -> 2180 | 16 -> 16 | 1 -> 0
|
||||
|
||||
Final full gate: clean 4.3U rebuild of all six units passed. The fresh report, object diffs, and DOL agree. Eleven assigned asm bodies are now exact C; the other two remain original asm with the failed C trials recorded above.
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
[libs/RevoEX/src/cdb/CDBFileSystemUtils] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBFileSystemUtils] objdiff: code 2480/2480 data 8/8 functions 11/11 fuzzy 100.0000 linked code 2480
|
||||
[libs/RevoEX/src/cdb/CDBFileSystemUtils] instruction-exact functions: 11/11
|
||||
[libs/RevoEX/src/cdb/CDBFileSystemUtils] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBFileSystemUtils] section .text size 2480 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBFileSystemUtils] baseline: code 2480/2480 data 8 functions 11 fuzzy 100.0000
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] objdiff: code 3784/3784 data 336/336 functions 21/21 fuzzy 100.0000 linked code 3784
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] instruction-exact functions: 21/21
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .bss size 32 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .data size 272 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .sbss size 24 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] section .text size 3784 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Manage] baseline: code 3784/3784 data 336 functions 21 fuzzy 100.0000
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] objdiff: code 1032/1032 data 16/16 functions 3/3 fuzzy 100.0000 linked code 1032
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] instruction-exact functions: 3/3
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] section .rodata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] section .text size 1032 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24UserId] baseline: code 1032/1032 data 16 functions 3 fuzzy 100.0000
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] pool: IDENTICAL
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] objdiff: code 12144/12144 data 464/464 functions 33/33 fuzzy 100.0000 linked code 12144
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .bss size 424 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .rodata size 32 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] section .text size 12144 match 100.0
|
||||
[libs/RevoEX/src/vf/develop/nand_drv] baseline: code 12144/12144 data 464 functions 33 fuzzy 100.0000
|
||||
[libs/RevoEX/src/wd/WDScan] pool: IDENTICAL
|
||||
[libs/RevoEX/src/wd/WDScan] objdiff: code 2180/2180 data 16/16 functions 5/5 fuzzy 100.0000 linked code 2180
|
||||
[libs/RevoEX/src/wd/WDScan] instruction-exact functions: 5/5
|
||||
[libs/RevoEX/src/wd/WDScan] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] section .sdata2 size 8 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] section .text size 2180 match 100.0
|
||||
[libs/RevoEX/src/wd/WDScan] baseline: code 2180/2180 data 16 functions 5 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Fresh function verification
|
||||
|
||||
```text
|
||||
libs/RevoEX/src/cdb/CDBDatabase: POOL IDENTICAL up to 7 (mine=7 base=7)
|
||||
CDBDatabaseSearchCallCallback: objdiff 100.0%; src 0xf4 base 0xf4 insns 61/61; diffs 0: []
|
||||
CDBDatabaseSearchRecordLayer: objdiff 100.0%; src 0x6fc base 0x6fc insns 447/447; diffs 0: []
|
||||
CDBDatabaseSearchMinuteLayer: objdiff 100.0%; src 0x3a0 base 0x3a0 insns 232/232; diffs 0: []
|
||||
CDBDatabaseSearchHourLayer: objdiff 100.0%; src 0x38c base 0x38c insns 227/227; diffs 0: []
|
||||
CDBDatabaseSearchDayLayer: objdiff 100.0%; src 0x3f0 base 0x3f0 insns 252/252; diffs 0: []
|
||||
CDBDatabaseSearchMonthLayer: objdiff 100.0%; src 0x3c0 base 0x3c0 insns 240/240; diffs 0: []
|
||||
CDBDatabaseSearchYearLayer: objdiff 100.0%; src 0x378 base 0x378 insns 222/222; diffs 0: []
|
||||
|
||||
libs/RevoEX/src/cdb/CDBFileSystemUtils: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
CDBFSIsCDBFileOnSD: objdiff 100.0%; src 0x1fc base 0x1fc insns 127/127; diffs 0: []
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24Manage: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
NWC24Check: objdiff 100.0%; src 0x1dc base 0x1dc insns 119/119; diffs 0: []
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24UserId: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
NWC24CheckUserId: objdiff 100.0%; src 0xec base 0xec insns 59/59; diffs 0: []
|
||||
getUnScrambleId: objdiff 100.0%; src 0x284 base 0x284 insns 161/161; diffs 0: []
|
||||
|
||||
libs/RevoEX/src/vf/develop/nand_drv: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
_MountPrfFile: objdiff 100.0%; src 0x6a8 base 0x6a8 insns 426/426; diffs 0: []
|
||||
|
||||
libs/RevoEX/src/wd/WDScan: POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
WDiFindVendorSpecificIE: objdiff 100.0%; src 0x104 base 0x104 insns 65/65; diffs 0: []
|
||||
|
||||
Owned totals: {"matched_functions": 106, "total_functions": 106, "matched_code": 33772, "total_code": 33772, "matched_data": 1152, "total_data": 1152}
|
||||
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
GATE PASS: final clean six-unit gate, pools, exact-name objdiff, ctxdiff, fully linked code/data, and DOL hash.
|
||||
```
|
||||
|
||||
`ninja -C . progress build/43U/report.json build/43U/ok` also passed after the clean gate. Each unit retains 100% matched and linked code/data, totaling 106 exact functions, 33772 code bytes and 1152 data bytes. The only remaining assigned asm bodies are CDBFSIsCDBFileOnSD and getUnScrambleId. No rejected source-search change was retained.
|
||||
229
tools/decomp-assist/da3.attempts.md
Normal file
229
tools/decomp-assist/da3.attempts.md
Normal file
@@ -0,0 +1,229 @@
|
||||
# da3 asm conversion evidence
|
||||
|
||||
Scope: agent/w1005/da3, base 9d40859e. Only the six assigned source files are in scope. Original objects and Ghidra exports are the conversion reference. Sources, reports and rejected trials are retained locally under build/da3.
|
||||
|
||||
## Baseline
|
||||
|
||||
Fresh source objects and report: BS2Start 3/3 functions, 472/472 code; BS2Init 2/2, 272/272; BS2Mach 25/29, 5112/16980 code, 158528/158528 data; rvl_dec 4/4, 2600/2600 code, 36872/36872 data; CHANSVm 224/233, 39908/53564 code, 6904/6904 data. Every assigned asm function starts at objdiff 100%. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
|
||||
## Architectural assembly retained under deasm rule 1
|
||||
|
||||
- BS2Init::ClearOtherBATs: target has isync, zeroes DBAT2/3 and IBAT1/2/3 lower and upper SPRs, then isync/blr. Ghidra drops every BAT write and shows only the synchronizations. These writes change memory mappings; translating that output would delete required effects. Inspect repository intrinsics before deciding whether C can preserve the exact sequence.
|
||||
- BS2Mach::Run: target starts mtctr r5 / mtlr r3, clears r2/r13 and nonvolatile r14-r31, replaces r1 with 0x81600000, then dcbz/dcbf every 32-byte block and blr to the supplied entry point. C cannot promise a no-return handoff with cleared ABI base registers and a replacement stack. Ghidra loses the stack/register setup. Keep unchanged.
|
||||
- BS2Start::__start and __init_registers: both are in .init. __start calls __init_registers before establishing an 8-byte stack record, then transfers to main/exit. __init_registers initializes r1, r2 and r13 from linker symbols and clears every other required GPR. An ordinary C prologue would use an uninitialized stack and SDA bases. Ghidra reduces __init_registers to return 0 and omits startup stack effects. Keep both unchanged; the assignment counted one but the file contains two.
|
||||
- gsPlatformUtil::GetTicks: mfc0 reads MIPS CP0 register 9 under #ifdef _PS2. It is excluded from the RVL build and has no 43U target symbol or Ghidra export. Hardware counter access requires its platform instruction; keep unchanged. Verify the enclosing preprocessor branch against the included nonport source.
|
||||
|
||||
## VmPushFuncReturnInfo
|
||||
|
||||
1. Compared the original-object Ghidra control flow with the existing portable body, then compiled that body without the asm conditional. Pool identical, 107/107 instructions, only two differences at indices 54/55: heap-end and heap-start loads are reversed. No control-flow or register-allocation differences.
|
||||
2. Read the free executable-buffer boundary into a named block-local before subtracting it from the object stack top. The compiler still schedules the same two loads in the wrong order.
|
||||
6. space helper vmU8* start, vmU8* end: 107/107 instructions, 2 differences: [54, 55].
|
||||
7. space helper vmU8* end, vmU8* start: 107/107 instructions, 2 differences: [54, 55].
|
||||
8. space helper CHANSVmPrivate* pVm: 107/107 instructions, 2 differences: [54, 55].
|
||||
9. space helper const vmU8* start, vmU8* end: 107/107 instructions, 2 differences: [54, 55].
|
||||
10. space helper const vmU8* end, vmU8* start: 107/107 instructions, 2 differences: [54, 55].
|
||||
11. space helper const CHANSVmPrivate* pVm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
12. right-hand size comparison: 107/107 instructions, 4 differences: [54, 55, 57, 58].
|
||||
13. named pointer before stack end: 107/107 instructions, 2 differences: [54, 55].
|
||||
14. signed negative gap then negate: 108/107 instructions, 60 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 57].
|
||||
15. explicit typed end pointer: 107/107 instructions, 2 differences: [54, 55].
|
||||
3. Pointer subtraction before unsigned conversion: same two load-order differences.
|
||||
4. Negated start address plus end address: same two differences.
|
||||
5. Extracted a stack allocator with its own typed VM pointer and free-buffer local: same two differences.
|
||||
ClearOtherBATs intrinsic audit: repository provides __sync but no __isync or __mtspr declarations/usages. PPCArch wrappers are asm functions; none exposes the required BAT writes. Retained under rule 1.
|
||||
GameSpy audit: nonport.c includes gsPlatformUtil.c. Its 43U report has 18/18 exact functions and no GetTicks symbol. The _PS2 branch ends at gsPlatformUtil.c:541.
|
||||
16. allocator CHANSVm* vm, size, vmPtr, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
17. allocator CHANSVm* vm, size, vmPtr, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
18. allocator CHANSVm* vm, size, CHANSVmExecutionCtx*, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
19. allocator CHANSVm* vm, size, CHANSVmExecutionCtx*, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
20. allocator CHANSVm* vm, const size, vmPtr, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
21. allocator CHANSVm* vm, const size, vmPtr, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
22. allocator CHANSVm* vm, const size, CHANSVmExecutionCtx*, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
23. allocator CHANSVm* vm, const size, CHANSVmExecutionCtx*, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
24. allocator CHANSVmPrivate* pVm, size, vmPtr, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
25. allocator CHANSVmPrivate* pVm, size, vmPtr, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
26. allocator CHANSVmPrivate* pVm, size, CHANSVmExecutionCtx*, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
27. allocator CHANSVmPrivate* pVm, size, CHANSVmExecutionCtx*, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
28. allocator CHANSVmPrivate* pVm, const size, vmPtr, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
29. allocator CHANSVmPrivate* pVm, const size, vmPtr, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
30. allocator CHANSVmPrivate* pVm, const size, CHANSVmExecutionCtx*, expression argument False: 107/107 instructions, 2 differences: [54, 55].
|
||||
31. allocator CHANSVmPrivate* pVm, const size, CHANSVmExecutionCtx*, expression argument True: 107/107 instructions, 2 differences: [54, 55].
|
||||
|
||||
Rvl_decode_szs, szs-1: Ghidra control flow with typed header and no register annotations. objdiff 64.26087%, 71/69 instructions, 69 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/szs-1/.
|
||||
|
||||
Rvl_decode_szs, szs-2: Use the input parameter as the stream cursor and a separate backreference pointer; signed remaining count controls literal and copy exits. objdiff 64.82609%, 71/69 instructions, 66 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/szs-2/.
|
||||
|
||||
Rvl_decode_szs, szs-3: Byte-wide header and inline helper decode the distance before advancing input. objdiff 55.855072%, 70/69 instructions, 64 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/szs-3/.
|
||||
|
||||
Rvl_decode_szs, szs-4: Byte flags and counted tail loop with independent copy cursor. objdiff 64.82609%, 71/69 instructions, 66 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/szs-4/.
|
||||
32. vmSize gap with start assigned first: 107/107 instructions, 5 differences: [54, 55, 56, 57, 59].
|
||||
33. vmSize gap with end assigned first: 107/107 instructions, 2 differences: [54, 55].
|
||||
34. vmS32 gap with start assigned first: 107/107 instructions, 5 differences: [54, 55, 56, 57, 59].
|
||||
35. vmS32 gap with end assigned first: 107/107 instructions, 2 differences: [54, 55].
|
||||
36. unsigned int gap with start assigned first: 107/107 instructions, 5 differences: [54, 55, 56, 57, 59].
|
||||
37. unsigned int gap with end assigned first: 107/107 instructions, 2 differences: [54, 55].
|
||||
38. int gap with start assigned first: 107/107 instructions, 5 differences: [54, 55, 56, 57, 59].
|
||||
39. int gap with end assigned first: 107/107 instructions, 2 differences: [54, 55].
|
||||
40. vmU32 gap with start assigned first: 107/107 instructions, 5 differences: [54, 55, 56, 57, 59].
|
||||
41. vmU32 gap with end assigned first: 107/107 instructions, 2 differences: [54, 55].
|
||||
42. vmSize separately bound boundaries in helper CHANSVm* vm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
43. vmSize separately bound boundaries in helper const CHANSVmPrivate* pVm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
44. vmU32 separately bound boundaries in helper CHANSVm* vm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
45. vmU32 separately bound boundaries in helper const CHANSVmPrivate* pVm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
46. int separately bound boundaries in helper CHANSVm* vm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
47. int separately bound boundaries in helper const CHANSVmPrivate* pVm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
|
||||
Rvl_decode_ash, ash-1: Original Ghidra tree-building control flow rewritten with typed header and separate literal/distance trees. objdiff 27.4%, 251/220 instructions, 251 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/ash-1/.
|
||||
48. vmS32 separately bound boundaries in helper CHANSVm* vm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
|
||||
Rvl_decode_ash, ash-2: Word-wide node counters preserve the target addi arithmetic; offsets unsigned. objdiff 31.568182%, 247/220 instructions, 247 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/ash-2/.
|
||||
|
||||
Rvl_decode_ash, ash-3: Inline aligned word-reader owns stream offset arithmetic. objdiff 31.568182%, 247/220 instructions, 247 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/ash-3/.
|
||||
49. vmS32 separately bound boundaries in helper const CHANSVmPrivate* pVm: 108/107 instructions, 58 differences: [17, 19, 28, 42, 51, 53, 54, 55, 56, 58].
|
||||
|
||||
Rvl_decode_asr, asr-1: Ghidra range decoder with named literal/distance state, typed frequency tables and eight-byte backreference copies. objdiff 49.872463%, 373/345 instructions, 372 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/asr-1/.
|
||||
|
||||
Rvl_decode_asr, asr-2: Counted initialization loops follow the original CTR loops and independently track cumulative totals. objdiff 46.008698%, 377/345 instructions, 376 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/asr-2/.
|
||||
|
||||
Rvl_decode_asr, asr-3: Inline midpoint helper changes search-expression temporary ownership. objdiff 46.008698%, 377/345 instructions, 376 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/asr-3/.
|
||||
50. Assign free-size twice and bind stack-end to a separate pointer for allocation; 107/107 instructions, 35 register differences; the two loads have the correct order. Evidence build/da3/vm-50.ctx.
|
||||
51. reused space helper CHANSVmPrivate* pVm, start, const return '': 107/107 instructions, 0 differences: [].
|
||||
63. result before CHANSVmPrivate* pVm, initialized False: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
64. result before CHANSVmPrivate* pVm, initialized True: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
65. result before CHANSVmExecutionCtx* block;, initialized False: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
66. result before CHANSVmExecutionCtx* block;, initialized True: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
67. result before vmU8* objStackTopBuf;, initialized False: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
68. result before vmU8* objStackTopBuf;, initialized True: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
69. result before u32 size;, initialized False: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
70. result before u32 size;, initialized True: 107/107 instructions, 35 differences: [6, 7, 8, 10, 11, 20, 23, 24, 25, 29].
|
||||
71. result before u32 i;, initialized False: 107/107 instructions, 9 differences: [11, 20, 24, 25, 29, 45, 83, 99, 100].
|
||||
72. result before u32 i;, initialized True: 107/107 instructions, 9 differences: [11, 20, 24, 25, 29, 45, 83, 99, 100].
|
||||
73. result before result = CHANS_VM_ERR_PUSH_FUNC_RETURN_INFO;, initialized False: 107/107 instructions, 9 differences: [11, 20, 24, 25, 29, 45, 83, 99, 100].
|
||||
74. stack allocation locals before CHANSVmPrivate* pVm: 107/107 instructions, 0 differences: [].
|
||||
|
||||
## Exact VM candidate
|
||||
|
||||
Trial 51 is instruction-exact: the stack-space inline helper reads the free-buffer address into one local, replaces that local with the available byte count, then returns it. Moving the twice-assigned value across the inline boundary preserves the target register allocation and the free-buffer/top-buffer load order. No assembly, volatile casts, uninitialized values or layout changes. Trial 74 independently reaches the same 107/107 instructions by declaring the two allocation locals first; trial 51 is the selected implementation.
|
||||
|
||||
Source search uses a private copy under build/da3 because the shared script otherwise locates the earlier VmPushFuncReturnInfo prototype and mutates the next function. The local copy requires a function definition. Seed 31 completed 77 search trials at 99.88785% with no improvement. Seed 32 started after a CPU slot became available and was stopped once manual trial 51 was exact. No shared tooling was edited.
|
||||
|
||||
Decoder first-round conclusions: SZS remains 70-71 instructions versus 69; ASH remains 247-251 versus 220; ASR remains 373-377 versus 345. Each has at least three compiled, distinct source-level trials. The C candidates are not accepted and the original source is restored before the VM full gate. No decoder is claimed to be a legitimate-assembly exception based only on a failed conversion.
|
||||
|
||||
VmPushFuncReturnInfo accepted locally after clean full gate: GATE PASS; objdiff 100.0%, ctxdiff 107/107 and diffs 0; pool 125/125 identical; unit still 224/233 functions, 39908/53564 matched code, 6904/6904 data; global regressions 0; forbidden/readability 0. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
|
||||
Rvl_decode_ash, ash-4: Typed encoded-word views preserve byte-offset lwzx reads without index scaling. objdiff 29.263636%, 248/220 instructions, 248 positional differences; POOL IDENTICAL up to 0 (mine=0 base=0). Evidence build/da3/ash-4/.
|
||||
|
||||
## Decoder provenance and constraints
|
||||
|
||||
The local history introduced the SZS/ASH/ASR asm bodies in 94bc16ef, 50fc7d26 and ae79db87 on 2026-09-19. These commits replaced TODOs with retail instruction listings. They do not establish that assembly is required by the API. Treat all three as unresolved conversions.
|
||||
|
||||
The SZS target holds decodedSize in r0 for the entire decode while its C versions allocate a normal GPR; its source/input cursor copies also add instructions. ASH and ASR targets materialize work with lis @h plus ori @l, whereas normal C emits compiler-owned addressing. ASH also preserves the return size in r0 after building both trees. These are concrete code-generation differences, not grounds for asserting a completed decompilation.
|
||||
|
||||
Applicable levers tried: Ghidra reference; typed input/table views; signed/unsigned and byte/word locals; const inputs; separate value lifetimes; local declaration/initialization placement; block scopes; counted loops; inline expressions and allocator boundaries; automatic source mutations. No eZiText optimization-off spelling, thunk-order, data split, compiler version, flags sweep, uninitialized-local or volatile workaround is justified here. No shared header or source unit was changed.
|
||||
|
||||
VmPushFuncReturnInfo conversion commit: e539a6e8. All failed decoder candidates remain outside the source tree.
|
||||
|
||||
## Automatic decoder searches
|
||||
|
||||
- SZS seed 33: 392 search trials in the 180-second search. Best unaccepted C candidate: 65.55073%, 70/69 instructions. The target stores the preserved result in r0 while the C result uses a different register; stream advancement and backreference scheduling also differ.
|
||||
- ASH seed 34: 364 search trials. Best unaccepted C candidate: 33.47273%, 247/220 instructions. Typed tree reconstruction still adds register saves, indexing and branch instructions.
|
||||
- ASR seed 35: 349 search trials. No improvement over the initial 49.872463%, 373/345-instruction C candidate. Table initialization/search/update control flow and register allocation remain different.
|
||||
- Search output is diagnostic only. No automatically mutated C was copied into the source tree. Original rvl_dec.c is restored byte-for-byte. Additional wrapper Rvl_decode asm was observed; the assignment names the three decoder bodies, so the wrapper is unchanged.
|
||||
- The three decoder conversions remain open after the required distinct compiled attempts and searches. Retained architectural routines have separate rule-1 evidence above. They are not conflated with failed decoder conversions.
|
||||
|
||||
BS2Start verification accounts for .init explicitly: __start is 168/168 raw bytes with zero differences; __init_registers is 144/144 raw bytes with zero differences. gate.py and the supplied ctxdiff helper inspect .text only, so gate.py reports 0/0 instruction functions for this .init unit; the live objdiff report and the direct section-byte comparison establish its actual 3/3 exact functions.
|
||||
|
||||
## Final clean validation
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/BS2/BS2Init] pool: IDENTICAL
|
||||
[src/BS2/BS2Init] objdiff: code 272/272 data None/None functions 2/2 fuzzy 100.0000 linked code 272
|
||||
[src/BS2/BS2Init] instruction-exact functions: 2/2
|
||||
[src/BS2/BS2Init] section .text size 272 match 100.0
|
||||
[src/BS2/BS2Init] baseline: code 272/272 data None functions 2 fuzzy 100.0000
|
||||
[src/BS2/BS2Mach] pool: IDENTICAL
|
||||
[src/BS2/BS2Mach] objdiff: code 5112/16980 data 158528/158528 functions 25/29 fuzzy 99.1698 linked code 0
|
||||
[src/BS2/BS2Mach] instruction-exact functions: 25/29
|
||||
[src/BS2/BS2Mach] section .bss size 155232 match 100.0
|
||||
[src/BS2/BS2Mach] section .data size 3024 match 100.0
|
||||
[src/BS2/BS2Mach] section .sbss size 240 match 100.0
|
||||
[src/BS2/BS2Mach] section .sdata size 32 match 100.0
|
||||
[src/BS2/BS2Mach] section .text size 16980 match 99.169846
|
||||
[src/BS2/BS2Mach] below 100: BS2StartGame 98.72774
|
||||
[src/BS2/BS2Mach] below 100: BS2StartGCGame 97.82895
|
||||
[src/BS2/BS2Mach] below 100: CheckBS2CommandStatus 99.50739
|
||||
[src/BS2/BS2Mach] below 100: BS2Tick 98.799484
|
||||
[src/BS2/BS2Mach] baseline: code 5112/16980 data 158528 functions 25 fuzzy 99.1698
|
||||
[src/BS2/BS2Start] pool: IDENTICAL
|
||||
[src/BS2/BS2Start] objdiff: code 472/472 data None/None functions 3/3 fuzzy 100.0000 linked code 472
|
||||
[src/BS2/BS2Start] instruction-exact functions: 0/0
|
||||
[src/BS2/BS2Start] section .init size 472 match 100.0
|
||||
[src/BS2/BS2Start] baseline: code 472/472 data None functions 3 fuzzy 100.0000
|
||||
[src/system/rvl_dec] pool: IDENTICAL
|
||||
[src/system/rvl_dec] objdiff: code 2600/2600 data 36872/36872 functions 4/4 fuzzy 100.0000 linked code 2600
|
||||
[src/system/rvl_dec] instruction-exact functions: 4/4
|
||||
[src/system/rvl_dec] section .bss size 36872 match 100.0
|
||||
[src/system/rvl_dec] section .text size 2600 match 100.0
|
||||
[src/system/rvl_dec] baseline: code 2600/2600 data 36872 functions 4 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/gamespy/nonport] pool: DIVERGES at string 0 (mine=4 orig=1)
|
||||
[src/scene/nakamuraTest/gamespy/nonport] objdiff: code 1352/1352 data 56/56 functions 18/18 fuzzy 100.0000 linked code 1352
|
||||
[src/scene/nakamuraTest/gamespy/nonport] instruction-exact functions: 18/18
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .bss size 16 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .data size 32 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .sbss size 8 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .text size 1352 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] baseline: code 1352/1352 data 56 functions 18 fuzzy 100.0000
|
||||
[src/channelScript/CHANSVm] pool: IDENTICAL
|
||||
[src/channelScript/CHANSVm] objdiff: code 39908/53564 data 6904/6904 functions 224/233 fuzzy 99.4673 linked code 0
|
||||
[src/channelScript/CHANSVm] instruction-exact functions: 224/233
|
||||
[src/channelScript/CHANSVm] section .data size 4672 match 100.0
|
||||
[src/channelScript/CHANSVm] section .rodata size 1432 match 100.0
|
||||
[src/channelScript/CHANSVm] section .sbss size 16 match 100.0
|
||||
[src/channelScript/CHANSVm] section .sdata size 600 match 100.0
|
||||
[src/channelScript/CHANSVm] section .sdata2 size 184 match 100.0
|
||||
[src/channelScript/CHANSVm] section .text size 53564 match 99.46733
|
||||
[src/channelScript/CHANSVm] below 100: CHANSVmConvertToFloatFromStr 97.59036
|
||||
[src/channelScript/CHANSVm] below 100: VmDateDtor 94.96703
|
||||
[src/channelScript/CHANSVm] below 100: VmStringSplit 98.04054
|
||||
[src/channelScript/CHANSVm] below 100: CHANSVmFormatString 99.84919
|
||||
[src/channelScript/CHANSVm] below 100: VmBlobGetHexString 98.71951
|
||||
[src/channelScript/CHANSVm] below 100: VmBlobPackCommon 98.0988
|
||||
[src/channelScript/CHANSVm] below 100: VmBlobUnpack 98.452614
|
||||
[src/channelScript/CHANSVm] below 100: VmWinEmuWrite 99.62687
|
||||
[src/channelScript/CHANSVm] below 100: CHANSVmStep 96.98723
|
||||
[src/channelScript/CHANSVm] baseline: code 39908/53564 data 6904 functions 224 fuzzy 99.4673
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
src/BS2/BS2Init: functions 2 -> 2/2; code 272 -> 272/272; data 0 -> 0/0
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
ClearOtherBATs: objdiff 100.0%; src 0x38 base 0x38 insns 14/14; diffs 0: []
|
||||
src/BS2/BS2Mach: functions 25 -> 25/29; code 5112 -> 5112/16980; data 158528 -> 158528/158528
|
||||
POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
Run: objdiff 100.0%; src 0xac base 0xac insns 43/43; diffs 0: []
|
||||
src/BS2/BS2Start: functions 3 -> 3/3; code 472 -> 472/472; data 0 -> 0/0
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
__start: objdiff 100.0%, .init 42/42 instructions, raw bytes identical
|
||||
__init_registers: objdiff 100.0%, .init 36/36 instructions, raw bytes identical
|
||||
src/system/rvl_dec: functions 4 -> 4/4; code 2600 -> 2600/2600; data 36872 -> 36872/36872
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Rvl_decode_szs: objdiff 100.0%; src 0x114 base 0x114 insns 69/69; diffs 0: []
|
||||
Rvl_decode_ash: objdiff 100.0%; src 0x370 base 0x370 insns 220/220; diffs 0: []
|
||||
Rvl_decode_asr: objdiff 100.0%; src 0x564 base 0x564 insns 345/345; diffs 0: []
|
||||
src/scene/nakamuraTest/gamespy/nonport: functions 18 -> 18/18; code 1352 -> 1352/1352; data 56 -> 56/56
|
||||
GameSpy pool baseline discrepancy: source .data 260 bytes / four strings, target .data 32 bytes / one string. First source string gsAssert.c, target localhost. Unit inputs are unchanged from 9d40859e, objdiff remains 18/18 and data 56/56, linked DOL is exact. No GameSpy conversion is submitted. The gate prints the pool difference but does not reject it.
|
||||
src/channelScript/CHANSVm: functions 224 -> 224/233; code 39908 -> 39908/53564; data 6904 -> 6904/6904
|
||||
POOL IDENTICAL up to 125 (mine=125 base=125)
|
||||
VmPushFuncReturnInfo: objdiff 100.0%; src 0x1ac base 0x1ac insns 107/107; diffs 0: []
|
||||
DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
|
||||
Final progress/report regeneration and build/43U/ok passed. tools/decomp_status.py wrote build/da3/final-status.json. tools/check_decomp_complete.py returns DECOMPLETE_FAIL for the existing incomplete project. No full-project completion is claimed. Details: build/da3/completion-check.log.
|
||||
|
||||
Result: one exact asm-to-C conversion, five architectural or excluded-platform routines retained with evidence, three decoder conversions still open. The six owned units remain at 276/289 objdiff-exact functions, 49716/75240 matched code bytes and 202360/202360 matched data bytes. All owned function scores and linked measures are unchanged.
|
||||
455
tools/decomp-assist/da4.attempts.md
Normal file
455
tools/decomp-assist/da4.attempts.md
Normal file
@@ -0,0 +1,455 @@
|
||||
# da4 de-asm attempts
|
||||
|
||||
Scope: jdec_main, getcode, mkhdec3, iqdec_resolution_change_a3 in this worktree only.
|
||||
Baseline: 7aa71d2930ed6d903fa00eff756f97f75a11a82d; origin/main 7aa71d2930ed6d903fa00eff756f97f75a11a82d.
|
||||
Acceptance: readable C, exact-name objdiff 100%, ctxdiff zero differences, identical pool, full gate and retail DOL SHA1. Each converted function gets a separate commit.
|
||||
Prior trials: tools/decomp-assist/asm-conversions.attempts.md, lines 450-538.
|
||||
|
||||
|
||||
TMCJPEGDEC_init_buff_thumbnail / getcode1: Existing array C baseline, compare to Ghidra before rewriting typed input.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x88 base 0x88 insns 34/34; diffs 3: [24, 25, 26]; objdiff 99.55882. Evidence: /tmp/da4/getcode1.
|
||||
|
||||
TMCJPEGDEC_init_buff_thumbnail / getcode2: Typed input buffer, destination work and EXIF fields. Ghidra stores remaining before end and mark.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x88 base 0x88 insns 34/34; diffs 4: [24, 25, 26, 28]; objdiff 99.26471. Evidence: /tmp/da4/getcode2.
|
||||
|
||||
TMCJPEGDEC_init_buff_thumbnail / getcode3: Separate current pointer, preserving buffer assignment and subsequent pointer lifetime.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x88 base 0x88 insns 34/34; diffs 4: [24, 25, 26, 28]; objdiff 99.26471. Evidence: /tmp/da4/getcode3.
|
||||
|
||||
TMCJPEGDEC_imagestart / imagestart1: Natural 64-element zigzag loop with shared result exit matching Ghidra branches.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x18c base 0x190 insns 99/100; --- replace mine 2:3 base 2:3; objdiff 93.3. Evidence: /tmp/da4/imagestart1.
|
||||
|
||||
TMCJPEGDEC_imagestart / imagestart2: Named zigzag walker and explicit else branches as in matched buffer_system.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x188 base 0x190 insns 98/100; --- replace mine 2:3 base 2:3; objdiff 95.5. Evidence: /tmp/da4/imagestart2.
|
||||
|
||||
TMCJPEGDEC_init_buff_thumbnail / getcode4: Reuse pointer for thumbnail start and end, allocator lever 18b.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x88 base 0x88 insns 34/34; diffs 6: [24, 25, 26, 28, 30, 31]; objdiff 98.82353. Evidence: /tmp/da4/getcode4.
|
||||
|
||||
TMCJPEGDEC_imagestart / imagestart3: Ghidra nested successful parse paths; named walker before index declaration.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x18c base 0x190 insns 99/100; --- replace mine 7:8 base 7:8; objdiff 94.35. Evidence: /tmp/da4/imagestart3.
|
||||
|
||||
TMCJPEGDEC_init_buff_thumbnail / getcode5: Commuted thumbnail offset/length addition.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x88 base 0x88 insns 34/34; diffs 4: [24, 25, 26, 28]; objdiff 99.26471. Evidence: /tmp/da4/getcode5.
|
||||
TMCJPEGDEC_imagestart / image-l0-f0: Named/indexed zigzag loop; error exit form 0; instructions 100/100, aligned differences 40.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-0-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_imagestart / image-l0-f1: Named/indexed zigzag loop; error exit form 1; instructions 98/100, aligned differences 67.
|
||||
TMCJPEGDEC_imagestart / image-l0-f2: Named/indexed zigzag loop; error exit form 2; instructions 98/100, aligned differences 67.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-0-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_imagestart / image-l0-f3: Named/indexed zigzag loop; error exit form 3; instructions 100/100, aligned differences 40.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-1-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_imagestart / image-l1-f0: Named/indexed zigzag loop; error exit form 0; instructions 100/100, aligned differences 40.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-1-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_imagestart / image-l1-f1: Named/indexed zigzag loop; error exit form 1; instructions 98/100, aligned differences 67.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-2-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_imagestart / image-l1-f2: Named/indexed zigzag loop; error exit form 2; instructions 98/100, aligned differences 67.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-2-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-3-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_imagestart / image-l1-f3: Named/indexed zigzag loop; error exit form 3; instructions 100/100, aligned differences 40.
|
||||
TMCJPEGDEC_imagestart / image-l2-f0: Named/indexed zigzag loop; error exit form 0; instructions 100/100, aligned differences 21.
|
||||
TMCJPEGDEC_imagestart / image-l2-f1: Named/indexed zigzag loop; error exit form 1; instructions 98/100, aligned differences 48.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-3-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_imagestart / image-l2-f2: Named/indexed zigzag loop; error exit form 2; instructions 98/100, aligned differences 48.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-4-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_imagestart / image-l2-f3: Named/indexed zigzag loop; error exit form 3; instructions 100/100, aligned differences 21.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-False-4-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-0-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_imagestart / image-l3-f0: Named/indexed zigzag loop; error exit form 0; instructions 100/100, aligned differences 40.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-0-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-1-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_imagestart / image-l3-f1: Named/indexed zigzag loop; error exit form 1; instructions 98/100, aligned differences 67.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-1-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_imagestart / image-l3-f2: Named/indexed zigzag loop; error exit form 2; instructions 98/100, aligned differences 67.
|
||||
TMCJPEGDEC_imagestart / image-l3-f3: Named/indexed zigzag loop; error exit form 3; instructions 100/100, aligned differences 40.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-2-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-2-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-3-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-3-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-4-False: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-True-4-True: Typed pointer/integer source arithmetic and named length; instructions 34/34, aligned differences 4.
|
||||
|
||||
TMCJPEGDEC_scan_varinit / scan1: Frame member view and direct sampling array access, lever 16.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x204 base 0x204 insns 129/129; diffs 9: [8, 9, 10, 11, 12, 13, 15, 20, 21]; objdiff 99.496124. Evidence: /tmp/da4/scan1.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-0: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-1: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-2: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-3: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-4: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-5: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-6: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-decls-7: Sample/scale/table/index role declaration order; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-inline: Inline boundary for single-component geometry; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-direct-0: Remove sample temporaries and test arithmetic width; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-direct-1: Remove sample temporaries and test arithmetic width; instructions 129/129, aligned differences 9.
|
||||
|
||||
TMCJPEGDEC_imagestart / imagestart4: Minimal named walker loop with direct error returns.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x190 base 0x190 insns 100/100; diffs 21: [7, 14, 16, 19, 23, 26, 29, 32, 35, 38, 41, 42, 45, 46, 49, 52, 55, 58, 61, 64]; objdiff 98.75. Evidence: /tmp/da4/imagestart4.
|
||||
TMCJPEGDEC_scan_varinit / scan-direct-2: Remove sample temporaries and test arithmetic width; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-0: Named offset reused as thumbnail address; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-1: Named offset reused as thumbnail address; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-2: Named offset reused as thumbnail address; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-3: Named offset reused as thumbnail address; instructions 34/34, aligned differences 8.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-4: Named offset reused as thumbnail address; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-5: Named offset reused as thumbnail address; instructions 34/34, aligned differences 8.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-inline: Inline EXIF start calculation; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_imagestart / image-inline-0: Inline zigzag initialization; instructions 100/100, aligned differences 0.
|
||||
TMCJPEGDEC_restart_interval / restart-0: Direct error returns, Ghidra integer-width truncation and coordinate order; instructions 93/93, aligned differences 26.
|
||||
TMCJPEGDEC_restart_interval / restart-1: Direct error returns, Ghidra integer-width truncation and coordinate order; instructions 93/93, aligned differences 26.
|
||||
TMCJPEGDEC_restart_interval / restart-2: Direct error returns, Ghidra integer-width truncation and coordinate order; instructions 94/93, aligned differences 44.
|
||||
TMCJPEGDEC_restart_interval / restart-3: Direct error returns, Ghidra integer-width truncation and coordinate order; instructions 94/93, aligned differences 45.
|
||||
|
||||
Accepted TMCJPEGDEC_imagestart: inline initialization of zigzag bytes removes the iterator/base register swap; plain C loop, no forced instructions. ctxdiff 100/100 instructions, diffs 0; exact-name objdiff 100.0; .text 5604/5604, .rodata 256/256, functions 13/13. Full clean gate passed, 0 regressions, 0 forbidden patterns, 0 readability warnings. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Gate evidence /tmp/da4/imagestart-gate.log.
|
||||
TMCJPEGDEC_parse_para / para-nested: Nested underflow/EOI error paths as target; instructions 178/183, aligned differences 116.
|
||||
TMCJPEGDEC_parse_para / para-helpers-0: Inline segment parsers, nested successful byte-reader returns; instructions 184/183, aligned differences 165.
|
||||
TMCJPEGDEC_parse_para / para-helpers-1: Inline segment parsers, nested successful byte-reader returns; instructions 184/183, aligned differences 165.
|
||||
TMCJPEGDEC_parse_para / para-helpers-2: Inline segment parsers, nested successful byte-reader returns; instructions 184/183, aligned differences 165.
|
||||
TMCJPEGDEC_parse_para / para-helpers-3: Inline segment parsers, nested successful byte-reader returns; instructions 184/183, aligned differences 165.
|
||||
TMCJPEGDEC_parse_dht / dht-0: Count loop, typed header fields, or inline symbol-count helper; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-1: Count loop, typed header fields, or inline symbol-count helper; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-2: Count loop, typed header fields, or inline symbol-count helper; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-3: Count loop, typed header fields, or inline symbol-count helper; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-4: Count loop, typed header fields, or inline symbol-count helper; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-5: Count loop, typed header fields, or inline symbol-count helper; instructions 120/120, aligned differences 34.
|
||||
|
||||
TMCJPEGDEC_parse_para / para-current: Inline segment-parser candidate after nested error checks.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x2e0 base 0x2dc insns 184/183; --- replace mine 14:15 base 14:15; objdiff 99.45355. Evidence: /tmp/da4/para-current.
|
||||
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant1: Typed coefficient/Huffman indexing follows target Ghidra data flow.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x29c base 0x29c insns 167/167; diffs 15: [51, 52, 53, 54, 55, 56, 76, 78, 79, 132, 134, 136, 139, 142, 147]; objdiff 99.461075. Evidence: /tmp/da4/iquant1.
|
||||
|
||||
TMCJPEGDEC_parse_para / para2: Inline segment parsers with combined underflow and EOI exception.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x2dc base 0x2dc insns 183/183; diffs 0: []; objdiff 100.0. Evidence: /tmp/da4/para2.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-0: Direct zigzag access, pointer declaration lifetime, bit-position width or shift type; instructions 167/167, aligned differences 73.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-1: Direct zigzag access, pointer declaration lifetime, bit-position width or shift type; instructions 167/167, aligned differences 36.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-2: Direct zigzag access, pointer declaration lifetime, bit-position width or shift type; instructions 167/167, aligned differences 15.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-3: Direct zigzag access, pointer declaration lifetime, bit-position width or shift type; instructions 167/167, aligned differences 15.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-inline-0: Inline coefficient sign-extension helper; instructions 167/167, aligned differences 77.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-inline-1: Inline coefficient sign-extension helper; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_parse_sos / sos-0: Typed component view, mapping stored after successful search and early scan count store; instructions 114/112, aligned differences 90.
|
||||
TMCJPEGDEC_parse_sos / sos-1: Typed component view, mapping stored after successful search and early scan count store; instructions 114/112, aligned differences 90.
|
||||
TMCJPEGDEC_parse_sos / sos-2: Typed component view, mapping stored after successful search and early scan count store; instructions 114/112, aligned differences 90.
|
||||
TMCJPEGDEC_parse_sos / sos-3: Typed component view, mapping stored after successful search and early scan count store; instructions 112/112, aligned differences 56.
|
||||
TMCJPEGDEC_scan_varinit / scan-more-0: Sampling pair aggregate, arithmetic inline boundary, or coefficient row view; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-more-1: Sampling pair aggregate, arithmetic inline boundary, or coefficient row view; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-more-2: Sampling pair aggregate, arithmetic inline boundary, or coefficient row view; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-more-3: Sampling pair aggregate, arithmetic inline boundary, or coefficient row view; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-more-4: Sampling pair aggregate, arithmetic inline boundary, or coefficient row view; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_err_restart / err-0: Unsigned next-position division and target final posX subtraction; coordinate arithmetic forms; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-0: Ghidra canonical Huffman sizes/codes, typed halfword entries, signed counter loop forms; instructions 193/200, aligned differences 177.
|
||||
TMCJPEGDEC_err_restart / err-1: Unsigned next-position division and target final posX subtraction; coordinate arithmetic forms; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-1: Ghidra canonical Huffman sizes/codes, typed halfword entries, signed counter loop forms; instructions 195/200, aligned differences 174.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-2: Ghidra canonical Huffman sizes/codes, typed halfword entries, signed counter loop forms; instructions 193/200, aligned differences 177.
|
||||
TMCJPEGDEC_err_restart / err-2: Unsigned next-position division and target final posX subtraction; coordinate arithmetic forms; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_err_restart / err-3: Unsigned next-position division and target final posX subtraction; coordinate arithmetic forms; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-3: Ghidra canonical Huffman sizes/codes, typed halfword entries, signed counter loop forms; instructions 193/200, aligned differences 177.
|
||||
TMCJPEGDEC_err_restart / err-4: Unsigned next-position division and target final posX subtraction; coordinate arithmetic forms; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-4: Ghidra canonical Huffman sizes/codes, typed halfword entries, signed counter loop forms; instructions 193/200, aligned differences 177.
|
||||
TMCJPEGDEC_parse_sos / sos-corrected-0: Correct target component-found branch and re-read stored scan count; instructions 112/112, aligned differences 0.
|
||||
|
||||
Accepted TMCJPEGDEC_parse_para: inline helpers for APP, DRI, DNL and COM parsing recreate separate stack locals and error-return paths. Segment-skip helper provides the two nested success clamps without bitwise result tricks. Combined underflow/EOI exception matches the final branch. Exact-name objdiff 100.0; ctxdiff 183/183, diffs 0. Full clean GATE PASS, 0 regressions/patterns/readability warnings, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Evidence /tmp/da4/para-gate.log.
|
||||
|
||||
TMCJPEGDEC_parse_sos / sos-exact: Matched typed component table and component-found control flow.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x1c0 base 0x1c0 insns 112/112; diffs 0: []; objdiff 100.0. Evidence: /tmp/da4/sos-exact.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-more-0: Independent AC value lifetime, signedness, inline parameter const or indexed product form; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-more-1: Independent AC value lifetime, signedness, inline parameter const or indexed product form; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-more-2: Independent AC value lifetime, signedness, inline parameter const or indexed product form; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-more-3: Independent AC value lifetime, signedness, inline parameter const or indexed product form; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-more-4: Independent AC value lifetime, signedness, inline parameter const or indexed product form; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-more-5: Independent AC value lifetime, signedness, inline parameter const or indexed product form; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_err_restart / err-corrected-0: Marker loop exits before recovery; 16-bit position locals and target grouped sum; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-more-6: Independent AC value lifetime, signedness, inline parameter const or indexed product form; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_err_restart / err-corrected-1: Marker loop exits before recovery; 16-bit position locals and target grouped sum; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-corrected-2: Marker loop exits before recovery; 16-bit position locals and target grouped sum; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_err_restart / err-corrected-3: Marker loop exits before recovery; 16-bit position locals and target grouped sum; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_parse_sof / sof-0: Ghidra reused byte/word inputs, full sampling search, and inferred coordinate widths; instructions 219/223, aligned differences 203.
|
||||
TMCJPEGDEC_parse_sof / sof-1: Ghidra reused byte/word inputs, full sampling search, and inferred coordinate widths; instructions 219/223, aligned differences 203.
|
||||
TMCJPEGDEC_parse_sof / sof-2: Ghidra reused byte/word inputs, full sampling search, and inferred coordinate widths; instructions 221/223, aligned differences 205.
|
||||
TMCJPEGDEC_parse_sof / sof-3: Ghidra reused byte/word inputs, full sampling search, and inferred coordinate widths; instructions 219/223, aligned differences 203.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-final-0: AC store inline, output-reference value, reused coefficient, mask width or explicit AC block; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-final-1: AC store inline, output-reference value, reused coefficient, mask width or explicit AC block; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-final-2: AC store inline, output-reference value, reused coefficient, mask width or explicit AC block; instructions 167/167, aligned differences 8.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-final-3: AC store inline, output-reference value, reused coefficient, mask width or explicit AC block; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-final-4: AC store inline, output-reference value, reused coefficient, mask width or explicit AC block; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-final-5: AC store inline, output-reference value, reused coefficient, mask width or explicit AC block; instructions 167/167, aligned differences 71.
|
||||
TMCJPEGDEC_parse_dht / dht-more-0: Header-local lifetime, narrowed table ID or inline nibble extraction; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-more-1: Header-local lifetime, narrowed table ID or inline nibble extraction; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-more-2: Header-local lifetime, narrowed table ID or inline nibble extraction; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-more-3: Header-local lifetime, narrowed table ID or inline nibble extraction; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-more-4: Header-local lifetime, narrowed table ID or inline nibble extraction; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-more-5: Header-local lifetime, narrowed table ID or inline nibble extraction; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_restart_interval / restart-more-0: Natural marker local and inline position update; instructions 93/93, aligned differences 23.
|
||||
TMCJPEGDEC_restart_interval / restart-more-1: Natural marker local and inline position update; instructions 93/93, aligned differences 26.
|
||||
TMCJPEGDEC_restart_interval / restart-more-2: Natural marker local and inline position update; instructions 93/93, aligned differences 26.
|
||||
TMCJPEGDEC_restart_interval / restart-more-3: Natural marker local and inline position update; instructions 93/93, aligned differences 20.
|
||||
TMCJPEGDEC_restart_interval / restart-more-4: Natural marker local and inline position update; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-more-5: Natural marker local and inline position update; instructions 93/93, aligned differences 20.
|
||||
|
||||
Accepted TMCJPEGDEC_parse_sos: reused stored scan count, typed component-table view, and explicit component-found error path. Ghidra mapping loop checks were verified against original instructions. Exact-name objdiff 100.0, ctxdiff 112/112 diffs 0. Full clean GATE PASS; 0 regressions/patterns/readability warnings; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Evidence /tmp/da4/sos-gate.log.
|
||||
TMCJPEGDEC_parse_dht / dht-final-0: Header scalar versus walker lifetime and grouped decoded table fields; instructions 120/120, aligned differences 30.
|
||||
TMCJPEGDEC_parse_dht / dht-final-1: Header scalar versus walker lifetime and grouped decoded table fields; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-final-2: Header scalar versus walker lifetime and grouped decoded table fields; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-final-3: Header scalar versus walker lifetime and grouped decoded table fields; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-scopes-0: Independent locals per Huffman sizes, codes, valptr and lookup phases; instructions 195/200, aligned differences 174.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-scopes-1: Independent locals per Huffman sizes, codes, valptr and lookup phases; instructions 198/200, aligned differences 136.
|
||||
TMCJPEGDEC_parse_dht / dht-final-4: Header scalar versus walker lifetime and grouped decoded table fields; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-scopes-2: Independent locals per Huffman sizes, codes, valptr and lookup phases; instructions 195/200, aligned differences 171.
|
||||
TMCJPEGDEC_parse_dht / dht-final-5: Header scalar versus walker lifetime and grouped decoded table fields; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-scopes-3: Independent locals per Huffman sizes, codes, valptr and lookup phases; instructions 195/200, aligned differences 174.
|
||||
TMCJPEGDEC_parse_dht / dht-final-6: Header scalar versus walker lifetime and grouped decoded table fields; instructions 121/120, aligned differences 107.
|
||||
TMCJPEGDEC_parse_dht / dht-final-7: Header scalar versus walker lifetime and grouped decoded table fields; instructions 120/120, aligned differences 9.
|
||||
|
||||
TMCJPEGDEC_parse_sof / sof-current: Shared byte/word temporaries and 16-bit MCU counts, full sampling search.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x374 base 0x37c insns 221/223; --- replace mine 3:6 base 3:7; objdiff 82.28251. Evidence: /tmp/da4/sof-current.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-final-0: Reuse source/start pointer parameter or group thumbnail pointers; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-final-1: Reuse source/start pointer parameter or group thumbnail pointers; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-final-2: Reuse source/start pointer parameter or group thumbnail pointers; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-final-3: Reuse source/start pointer parameter or group thumbnail pointers; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-final-4: Reuse source/start pointer parameter or group thumbnail pointers; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-final-5: Reuse source/start pointer parameter or group thumbnail pointers; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_parse_sof / sof-corrected-0: Typed component base, 16-bit maximum sampling, shared scalar input, inline validation; instructions 220/223, aligned differences 140.
|
||||
TMCJPEGDEC_parse_sof / sof-corrected-1: Typed component base, 16-bit maximum sampling, shared scalar input, inline validation; instructions 222/223, aligned differences 142.
|
||||
TMCJPEGDEC_parse_sof / sof-corrected-2: Typed component base, 16-bit maximum sampling, shared scalar input, inline validation; instructions 222/223, aligned differences 142.
|
||||
TMCJPEGDEC_parse_sof / sof-corrected-3: Typed component base, 16-bit maximum sampling, shared scalar input, inline validation; instructions 222/223, aligned differences 142.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-final-0: Huffman phase declaration order and indexed versus walking table entries; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-final-1: Huffman phase declaration order and indexed versus walking table entries; instructions 198/200, aligned differences 136.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-final-2: Huffman phase declaration order and indexed versus walking table entries; instructions 175/200, aligned differences 115.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-final-3: Huffman phase declaration order and indexed versus walking table entries; instructions 196/200, aligned differences 134.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-final-4: Huffman phase declaration order and indexed versus walking table entries; instructions 196/200, aligned differences 134.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-0: Inline input copy/validation or thumbnail-buffer initialization; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-1: Inline input copy/validation or thumbnail-buffer initialization; instructions 39/34, aligned differences 25.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-2: Inline input copy/validation or thumbnail-buffer initialization; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_parse_sof / sof-last-0: Explicit quotient arithmetic or inline sampling-layout search; instructions 222/223, aligned differences 142.
|
||||
TMCJPEGDEC_parse_sof / sof-last-1: Explicit quotient arithmetic or inline sampling-layout search; instructions 222/223, aligned differences 143.
|
||||
TMCJPEGDEC_parse_sof / sof-last-2: Explicit quotient arithmetic or inline sampling-layout search; instructions 222/223, aligned differences 143.
|
||||
TMCJPEGDEC_parse_sof / sof-last-3: Explicit quotient arithmetic or inline sampling-layout search; instructions 222/223, aligned differences 143.
|
||||
TMCJPEGDEC_scan_varinit / scan-pair-0: Named promoted horizontal/vertical scales, direct coefficient access; instructions 129/129, aligned differences 11.
|
||||
TMCJPEGDEC_scan_varinit / scan-pair-1: Named promoted horizontal/vertical scales, direct coefficient access; instructions 129/129, aligned differences 14.
|
||||
TMCJPEGDEC_scan_varinit / scan-width-0: Sampling scale width or direct component index; instructions 129/129, aligned differences 14.
|
||||
TMCJPEGDEC_scan_varinit / scan-width-1: Sampling scale width or direct component index; instructions 131/129, aligned differences 122.
|
||||
|
||||
TMCJPEGDEC_parse_sof / sof2-current: Typed component base, constrained sampling maxima, and inline validation.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x378 base 0x37c insns 222/223; --- replace mine 5:7 base 5:7; objdiff 93.34529. Evidence: /tmp/da4/sof2-current.
|
||||
TMCJPEGDEC_scan_varinit / scan-width-2: Sampling scale width or direct component index; instructions 129/129, aligned differences 11.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-helper-0: Halfword arrays, countdown condition, or size-table inline helper; instructions 198/200, aligned differences 136.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-helper-1: Halfword arrays, countdown condition, or size-table inline helper; instructions 196/200, aligned differences 134.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-helper-2: Halfword arrays, countdown condition, or size-table inline helper; instructions 158/200, aligned differences 98.
|
||||
TMCJPEGDEC_make_huffdec / mkhdec-helper-3: Halfword arrays, countdown condition, or size-table inline helper; instructions 204/200, aligned differences 177.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-typed-0: Typed EXIF/input buffer helper behind existing public ABI; instructions 35/34, aligned differences 25.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-typed-1: Typed EXIF/input buffer helper behind existing public ABI; instructions 35/34, aligned differences 25.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-typed-2: Typed EXIF/input buffer helper behind existing public ABI; instructions 35/34, aligned differences 25.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-typed-3: Typed EXIF/input buffer helper behind existing public ABI; instructions 35/34, aligned differences 25.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-typed-4: Typed EXIF/input buffer helper behind existing public ABI; instructions 35/34, aligned differences 25.
|
||||
TMCJPEGDEC_parse_dht / dht-boundary-0: Count-read inline boundary, decoded header outputs or typed internal table parser; instructions 124/120, aligned differences 79.
|
||||
TMCJPEGDEC_parse_dht / dht-boundary-1: Count-read inline boundary, decoded header outputs or typed internal table parser; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_err_restart / err-final-0: Independent full-width division/remainder and narrowed restart-step/position lifetimes; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-final-1: Independent full-width division/remainder and narrowed restart-step/position lifetimes; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-final-2: Independent full-width division/remainder and narrowed restart-step/position lifetimes; instructions 115/115, aligned differences 39.
|
||||
TMCJPEGDEC_err_restart / err-final-3: Independent full-width division/remainder and narrowed restart-step/position lifetimes; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-arith-0: Address assignment expression or independent length/current/end values; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-arith-1: Address assignment expression or independent length/current/end values; instructions 34/34, aligned differences 8.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-arith-2: Address assignment expression or independent length/current/end values; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-arith-3: Address assignment expression or independent length/current/end values; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-arith-4: Address assignment expression or independent length/current/end values; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-arith-5: Address assignment expression or independent length/current/end values; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-0: Narrowed inline return, count-array start inline or direct indexing; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-1: Narrowed inline return, count-array start inline or direct indexing; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-2: Narrowed inline return, count-array start inline or direct indexing; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-3: Narrowed inline return, count-array start inline or direct indexing; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-4: Narrowed inline return, count-array start inline or direct indexing; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-view-0: EXIF triple array view or explicit current address with existing word-buffer representation; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-view-1: EXIF triple array view or explicit current address with existing word-buffer representation; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-view-2: EXIF triple array view or explicit current address with existing word-buffer representation; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-view-3: EXIF triple array view or explicit current address with existing word-buffer representation; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_restart_interval / restart-final-0: Original block-scoped marker reset and field loads with corrected truncation points; instructions 94/93, aligned differences 42.
|
||||
TMCJPEGDEC_restart_interval / restart-final-1: Original block-scoped marker reset and field loads with corrected truncation points; instructions 93/93, aligned differences 23.
|
||||
|
||||
Search tooling: copied srcsearch.py to /tmp/da4/srcsearch.py with definition-only function discovery. Stock finder could select a forward declaration or call before the definition. Shared source-search concurrency limit retained. Initial thumbnail search completed 154 trials with no gain; scan_varinit search completed 239 trials with no gain. Later searches queued behind all 24 shared slots, rather than increasing the limiter.
|
||||
TMCJPEGDEC_restart_interval / restart-final-2: Original block-scoped marker reset and field loads with corrected truncation points; instructions 93/93, aligned differences 23.
|
||||
TMCJPEGDEC_restart_interval / restart-final-3: Original block-scoped marker reset and field loads with corrected truncation points; instructions 94/93, aligned differences 53.
|
||||
TMCJPEGDEC_parse_sof / sof-types-0: Sampling maxima declared before persistent pointers; zero checks narrow as target proves; instructions 222/223, aligned differences 129.
|
||||
TMCJPEGDEC_parse_sof / sof-types-1: Sampling maxima declared before persistent pointers; zero checks narrow as target proves; instructions 222/223, aligned differences 135.
|
||||
TMCJPEGDEC_parse_sof / sof-types-2: Sampling maxima declared before persistent pointers; zero checks narrow as target proves; instructions 222/223, aligned differences 143.
|
||||
TMCJPEGDEC_parse_dht / dht-types-0: Decoded class/ID order and walker lifetime around count summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_sof / sof-types-3: Sampling maxima declared before persistent pointers; zero checks narrow as target proves; instructions 222/223, aligned differences 129.
|
||||
TMCJPEGDEC_parse_dht / dht-types-1: Decoded class/ID order and walker lifetime around count summation; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-types-2: Decoded class/ID order and walker lifetime around count summation; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-types-3: Decoded class/ID order and walker lifetime around count summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-types-4: Decoded class/ID order and walker lifetime around count summation; instructions 120/120, aligned differences 6.
|
||||
|
||||
TMCJPEGDEC_parse_sof / sof-unsized: Unsized local extern declaration, target materializes sample-count table with lis/addi.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x378 base 0x37c insns 222/223; --- replace mine 12:13 base 12:13; objdiff 94.37668. Evidence: /tmp/da4/sof-unsized.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-fields-0: Explicit current/end pointer fields or indexed thumbnail offset; instructions 35/34, aligned differences 11.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-fields-1: Explicit current/end pointer fields or indexed thumbnail offset; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-fields-2: Explicit current/end pointer fields or indexed thumbnail offset; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-fields-3: Explicit current/end pointer fields or indexed thumbnail offset; instructions 35/34, aligned differences 12.
|
||||
|
||||
Restored all unaccepted worktree C candidates to the last validated commits while searches continue from isolated snapshots. No source change is being kept at a fuzzy-only score. The failed whole-parser inline trial removed the static parse_dht symbol and was rejected immediately.
|
||||
TMCJPEGDEC_parse_sof / sof-incomplete-array: Diagnostic: incomplete SampleComps extern declaration matches target lis/addi instead of SDA reference; isolated temporary header; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_init_buff_thumbnail / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_scan_varinit / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_restart_interval / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_parse_dht / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_sof / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 222/223, aligned differences 129.
|
||||
TMCJPEGDEC_err_restart / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 115/115, aligned differences 39.
|
||||
TMCJPEGDEC_make_huffdec / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_decode_iquant_rc / handoff-evidence: Representative rejected C candidate for persistent-worker handoff; instructions 167/167, aligned differences 7.
|
||||
|
||||
Unconverted function handoff evidence, all candidates rejected and original asm retained:
|
||||
- TMCJPEGDEC_init_buff_thumbnail: C objdiff 99.55882; instruction delta 0, aligned differences 3; source /tmp/da4/TMCJPEGDEC_init_buff_thumbnail-variants/get-view-0.c.
|
||||
- TMCJPEGDEC_scan_varinit: C objdiff 99.496124; instruction delta 0, aligned differences 9; source /tmp/da4/TMCJPEGDEC_scan_varinit-variants/scan-decls-0.c.
|
||||
- TMCJPEGDEC_restart_interval: C objdiff 96.77419; instruction delta 0, aligned differences 17; source /tmp/da4/TMCJPEGDEC_restart_interval-variants/restart-more-4.c.
|
||||
- TMCJPEGDEC_parse_dht: C objdiff 99.708336; instruction delta 0, aligned differences 6; source /tmp/da4/TMCJPEGDEC_parse_dht-variants/dht-types-0.c.
|
||||
- TMCJPEGDEC_parse_sof: C objdiff 94.37668; instruction delta -1, aligned differences 129; source /tmp/da4/TMCJPEGDEC_parse_sof-variants/sof-types-0.c.
|
||||
- TMCJPEGDEC_err_restart: C objdiff 78.33044; instruction delta 0, aligned differences 39; source /tmp/da4/TMCJPEGDEC_err_restart-variants/err-final-2.c.
|
||||
- TMCJPEGDEC_make_huffdec: C objdiff 78.43; instruction delta -2, aligned differences 133; source /tmp/da4/TMCJPEGDEC_make_huffdec-variants/mkhdec-final-0.c.
|
||||
- TMCJPEGDEC_decode_iquant_rc: C objdiff 99.76048; instruction delta 0, aligned differences 7; source /tmp/da4/TMCJPEGDEC_decode_iquant_rc-variants/iquant-inline-1.c.
|
||||
|
||||
Final retained state
|
||||
|
||||
Converted: TMCJPEGDEC_imagestart (014a5167), TMCJPEGDEC_parse_para (f518779c), TMCJPEGDEC_parse_sos (a6b74133). Each received an independent clean gate before its separate commit.
|
||||
Every other assigned function remains original assembly, unresolved rather than classified as legitimate vendor assembly. No target instruction requires retaining assembly; the remaining problem is reproducing compiler output in C.
|
||||
Compiled source trials by function: TMCJPEGDEC_init_buff_thumbnail=61, TMCJPEGDEC_imagestart=21, TMCJPEGDEC_scan_varinit=24, TMCJPEGDEC_restart_interval=15, TMCJPEGDEC_parse_para=7, TMCJPEGDEC_parse_dht=33, TMCJPEGDEC_decode_iquant_rc=21, TMCJPEGDEC_parse_sos=6, TMCJPEGDEC_err_restart=14, TMCJPEGDEC_make_huffdec=19, TMCJPEGDEC_parse_sof=21. All eight unconverted functions have at least three distinct compiled source attempts.
|
||||
Useful continuation findings: init_buff_thumbnail receives EXIF data through its legacy work pointer. make_huffdec valptr contains 16-bit code/index pairs; its fallback byte stores are wrong. parse_sof reuses one byte and one word input variable, scans all sample layouts, and materializes SampleComps with lis/addi. An isolated unsized-extern header diagnostic restores 223 instructions but leaves 84 register/order differences, so no header change was retained. err_restart final subtraction reads posX, not posY, and original division is signed despite Ghidra guessing unsigned.
|
||||
Applicable levers covered: inline helpers; signedness and widths; const pointers/parameters; separate or reused locals; declaration order; block scopes; counted loops; source search; direct array access; Ghidra and allocator/copy-lifetime hypotheses. eZiText-only spellings, thunk ordering and aggregate/global section boundaries do not apply to these functions. Prior-art gh search was excluded by the worker no-gh contract. No compiler/version flag sweep, new asm, use-site volatile, register keyword, pinned label or shared-layout trick was retained.
|
||||
|
||||
Final clean verification
|
||||
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] objdiff: code 5604/5604 data 256/256 functions 13/13 fuzzy 100.0000 linked code 5604
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] instruction-exact functions: 13/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] section .rodata size 256 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] section .text size 5604 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] baseline: code 5604/5604 data 256 functions 13 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] objdiff: code 316/316 data None/None functions 3/3 fuzzy 100.0000 linked code 316
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] section .text size 316 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] baseline: code 316/316 data None functions 3 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] objdiff: code 1228/1228 data None/None functions 2/2 fuzzy 100.0000 linked code 1228
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] section .text size 1228 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] baseline: code 1228/1228 data None functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] objdiff: code 908/908 data None/None functions 2/2 fuzzy 100.0000 linked code 908
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] section .text size 908 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] baseline: code 908/908 data None functions 2 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Search completion and resource limit
|
||||
|
||||
getcode-search:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_init_buff_thumbnail': 34} start {'TMCJPEGDEC_init_buff_thumbnail': 34} {'TMCJPEGDEC_init_buff_thumbnail': 99.26471}
|
||||
done 154 trials; best-nodrop energy -99.2647
|
||||
```
|
||||
scan-search:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_scan_varinit': 129} start {'TMCJPEGDEC_scan_varinit': 129} {'TMCJPEGDEC_scan_varinit': 99.496124}
|
||||
done 239 trials; best-nodrop energy -99.4961
|
||||
```
|
||||
getcode-search2:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_init_buff_thumbnail': 34} start {'TMCJPEGDEC_init_buff_thumbnail': 34} {'TMCJPEGDEC_init_buff_thumbnail': 99.55882}
|
||||
done 57 trials; best-nodrop energy -99.5588
|
||||
```
|
||||
iquant-search:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_decode_iquant_rc': 167} start {'TMCJPEGDEC_decode_iquant_rc': 167} {'TMCJPEGDEC_decode_iquant_rc': 99.76048}
|
||||
done 70 trials; best-nodrop energy -99.7605
|
||||
```
|
||||
sof-search:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_parse_sof': 223} start {'TMCJPEGDEC_parse_sof': 222} {'TMCJPEGDEC_parse_sof': 93.34529}
|
||||
done 79 trials; best-nodrop energy -91.3453
|
||||
```
|
||||
err-search:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_err_restart': 115} start {'TMCJPEGDEC_err_restart': 115} {'TMCJPEGDEC_err_restart': 78.33044}
|
||||
it 10 best-nodrop -78.4174 cnt {'TMCJPEGDEC_err_restart': 115} score [78.41739]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [78.41739]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [78.41739]
|
||||
it 26 best-nodrop -79.6957 cnt {'TMCJPEGDEC_err_restart': 115} score [79.695656]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.695656]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.695656]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.695656]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.695656]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.608696]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.608696]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.608696]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.608696]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.608696]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [79.608696]
|
||||
it 39 best-nodrop -85.0435 cnt {'TMCJPEGDEC_err_restart': 115} score [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.95652]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [84.91304]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
it 80 best-nodrop -85.1304 cnt {'TMCJPEGDEC_err_restart': 115} score [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.13043]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
SOLUTION {'TMCJPEGDEC_err_restart': 115} [85.04348]
|
||||
done 106 trials; best-nodrop energy -85.1304
|
||||
```
|
||||
restart-search: cancelled own queued process after 1093 seconds without acquiring a shared search slot; zero trials ran.
|
||||
dht-search: cancelled own queued process after 948 seconds without acquiring a shared search slot; zero trials ran.
|
||||
mkhdec-search: cancelled own queued process after 828 seconds without acquiring a shared search slot; zero trials ran.
|
||||
dht-search2: cancelled own queued process after 383 seconds without acquiring a shared search slot; zero trials ran.
|
||||
The stopped jobs wrote only temporary search snapshots. No other worker process or shared limiter was changed. Source search completed on thumbnail initialization, scan geometry, coefficient decoding, frame-header parsing and restart error recovery. Huffman-table building, Huffman-header parsing and restart-interval search remained resource-blocked after their manual C trials.
|
||||
|
||||
Final audit: 11 assigned functions, 242 logged compiled trials. Every unconverted function has at least three distinct source-level trials. Retained exact count 20 -> 20, matched code 8056 -> 8056 bytes, matched data 256 -> 256 bytes; asm bodies 11 -> 8. Eight conversions remain unresolved. No push, PR, merge, rebase, worktree switch or outside-worktree edit occurred.
|
||||
577
tools/decomp-assist/da4b.attempts.md
Normal file
577
tools/decomp-assist/da4b.attempts.md
Normal file
@@ -0,0 +1,577 @@
|
||||
# da4b de-asm attempts
|
||||
|
||||
Base f8957ca95be0ca4b35a281fa9a5d59f7f1787a41, branch agent/w1005/da4b, worktree data-d3. Parent prepared the fresh branch before this turn. Read AGENTS.md, deasm-round.md, common.md, levers.md, prior da4 log, and original Gekko Ghidra exports.
|
||||
|
||||
Scope: init_buff_thumbnail, parse_dht, make_huffdec, decode_iquant_rc, scan_varinit, restart_interval, parse_sof, err_restart. Previous three conversions are present in #1172. Preserve exact bytes, section data, symbols and DOL SHA1; commit each new exact C conversion separately.
|
||||
|
||||
Lever 19 audit: TMC_JPEG contains no OSThread creation or polling loop. The read callback is called synchronously by buffer_system.c. The owned register differences involve addresses, Huffman counters, coefficient values and scan geometry, not a demonstrated shared completion flag. No field is made volatile without target and call-site evidence.
|
||||
|
||||
Lever 18a: record the first differing definition in assignment order, then move that variable across a helper boundary, name a compiler temporary, share one local for non-overlapping values, or use a one-field struct. Use the allocator ordering model as a hypothesis, and compare emitted instructions after every trial.
|
||||
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-baseline: 18a first diff at instruction 24: current address result r6, target r5; next length load target r6. The address and length live ranges interfere.; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-start-0: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-start-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-start-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-end-0: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-end-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-end-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-src-0: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-src-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-src-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-named-current-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-named-current-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-struct-current-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-struct-current-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-named-offset-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-named-offset-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-named-length-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-named-length-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-offset-1: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 8.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-reuse-offset-2: 18a named address, one-field aggregate, or value reuse adjusts current-address numbering/interference; instructions 34/34, aligned differences 8.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-0: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-1: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-2: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-3: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-4: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-5: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-6: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u32-7: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-0: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-1: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-2: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-3: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-4: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-5: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-6: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-helper-u8p-7: 18a current-address computation across inline boundary with named return/const scalar arguments; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_parse_dht / baseline: First-difference evidence before lever 18a; Ghidra export read; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_make_huffdec / baseline: First-difference evidence before lever 18a; Ghidra export read; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_decode_iquant_rc / baseline: First-difference evidence before lever 18a; Ghidra export read; instructions 167/167, aligned differences 7.
|
||||
TMCJPEGDEC_scan_varinit / baseline: First-difference evidence before lever 18a; Ghidra export read; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_restart_interval / baseline: First-difference evidence before lever 18a; Ghidra export read; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_parse_sof / baseline: First-difference evidence before lever 18a; Ghidra export read; instructions 222/223, aligned differences 129.
|
||||
TMCJPEGDEC_err_restart / baseline: First-difference evidence before lever 18a; Ghidra export read; instructions 115/115, aligned differences 39.
|
||||
TMCJPEGDEC_parse_dht / dht-start: 18a first differing definition tblID: r28 instead of r26; count walker r26 instead of r28. tblClass r27 and idx/totalCodes r25 already correct.; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-0: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-number-1: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-2: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-3: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-4: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-5: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-6: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-number-7: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-number-8: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-9: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-number-10: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-number-11: 18a move ID/walker declaration, aggregate or type to swap their relative vreg priority; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-0: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 75.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-1: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 68.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-2: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 75.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-3: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 68.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-4: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 75.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-5: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 68.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-6: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 75.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-inline-7: 18a put count walker and loop index in inline helper to shift their virtual numbers; instructions 124/120, aligned differences 68.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bas-0: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bas-1: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bas-2: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bas-3: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bsa-0: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bsa-1: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bsa-2: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-bsa-3: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-abs-0: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-abs-1: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-abs-2: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-abs-3: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-asb-0: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-asb-1: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-asb-2: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-asb-3: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sba-0: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sba-1: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sba-2: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sba-3: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sab-0: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sab-1: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sab-2: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-lived-sab-3: 18a name both add inputs and reuse dead base for length to alter neighbor counts; instructions 34/34, aligned differences 6.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-0: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-1: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-2: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-3: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-4: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-5: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-6: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-7: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-8: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-9: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-10: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-range-11: 18a current/end range variables move across one inline boundary; instructions 34/34, aligned differences 4.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-diagnostic-opt_propagation: 18e diagnostic only, not retained; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-diagnostic-opt_common_subs: 18e diagnostic only, not retained; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-diagnostic-scheduling: 18e diagnostic only, not retained; instructions 34/34, aligned differences 23.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-diagnostic-opt_dead_assignments: 18e diagnostic only, not retained; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-0-1: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-0-2: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-0-3: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-0-4: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-0-5: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-1-0: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-1-2: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-1-3: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-1-4: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-1-5: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-2-0: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-2-1: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-2-3: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-2-4: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-2-5: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-3-0: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-3-1: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-3-2: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-3-4: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-3-5: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-4-0: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-4-1: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-4-2: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-4-3: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-4-5: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-5-0: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-5-1: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-5-2: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-5-3: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-priority-5-4: 18a hold other declarations fixed and move only differing tblID/count-walker numbers; instructions 120/120, aligned differences 27.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-0: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-1: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-2: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-3: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-4: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-5: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-6: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-7: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 123/120, aligned differences 105.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-8: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 119/120, aligned differences 75.
|
||||
TMCJPEGDEC_parse_dht / dht-interference-9: 18a aggregate field numbering or extend/reuse actual walker over summation; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-0-0-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-0-0-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-0-1-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-0-1-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-0-2-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-0-2-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 16.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-1-0-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-1-0-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-1-1-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-1-1-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-1-2-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-1-2-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-2-0-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-2-0-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 13.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-2-1-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-2-1-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-2-2-0: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-inline-params-2-2-1: 18a/18c ID or class creation in caller/helper with const primitive parameter; instructions 120/120, aligned differences 9.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-0: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-1: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-2: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-3: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-4: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-5: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-6: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-7: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-8: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-9: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-10: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-11: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-12: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-13: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-14: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-alias-count-15: 18a first bits walker r6 versus target r3; first restore countdown fast-table loop and character-alias reloads to recover target interference; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-0: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 186.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-1: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 187.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-2: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 186.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-3: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 187.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-4: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 187.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-5: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 187.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-6: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 187.
|
||||
TMCJPEGDEC_make_huffdec / mkh-sizes-inline-7: 18a shift the first bits walker and count local into one inline boundary; instructions 204/200, aligned differences 187.
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-reuse-position-0-0: 18a first coefficient value definition should reuse dead bit-position r4 instead of bit-buffer r3; instructions 167/167, aligned differences 0.
|
||||
|
||||
TMCJPEGDEC_decode_iquant_rc / iquant-exact: 18a exact: reuse the bit-position local for the coefficient value, changing its virtual register neighbours. Both DC and AC use the same readable helper.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0); src 0x29c base 0x29c insns 167/167; diffs 0: []; objdiff 100.0. Evidence: /tmp/da4b/iquant-exact.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-0: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-1: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-2: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-3: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-4: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-5: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-6: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-7: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-8: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-9: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-10: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-input-boundary-11: 18a first differing hSamp load target r6, source r4; move sampling inputs and scaled result across inline boundary; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-0: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-1: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 13.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-2: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-3: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 13.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-4: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-5: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-6: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-7: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 10.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-8: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-live-range-9: 18a reuse dead sampling/scale/divisor locals or name component preheader address; instructions 129/129, aligned differences 9.
|
||||
|
||||
## Accepted decode_iquant_rc C conversion
|
||||
|
||||
First differing assignment was AC coefficient value: source and r3, target and r4. The previous bit position occupied r4 and died at the store. Reusing the same local for the consumed bit position and decoded coefficient changed its interference/coalescing; both DC and AC now match. Removed unused bit_data. Exact-name objdiff 100.0, ctxdiff 167/167 instructions and diffs 0, empty pool identical.
|
||||
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] objdiff: code 908/908 data None/None functions 2/2 fuzzy 100.0000 linked code 908
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] section .text size 908 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] baseline: code 908/908 data None functions 2 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.78013 -> 92.78013
|
||||
global fuzzy_match_percent: 99.78155 -> 99.78155
|
||||
global complete_code_percent: 77.20428 -> 77.20428
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-0: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-1: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-2: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-3: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-4: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-5: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-6: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 22.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-7: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 22.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-8: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-9: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-10: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-marker-reuse-11: 18a first mismatch is zero constant r5 vs r0 because marker result takes r0; reuse marker result in later position/divisor local; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-0: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-1: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 22.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-2: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 32.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-3: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 35.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-4: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-5: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-6: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / restart-boundary-7: 18a marker value local numbering and range initialization inside the same helper; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-0: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-1: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-2: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-3: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-4: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-5: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-6: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-7: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-8: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 70.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-9: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 70.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-10: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 71.
|
||||
TMCJPEGDEC_err_restart / err-marker-reuse-11: 18a first marker byte target r6 versus r5; name/reuse marker and MCU position. Remove unnecessary assignment back into address-taken input byte per Ghidra.; instructions 114/115, aligned differences 71.
|
||||
TMCJPEGDEC_err_restart / err-handler-scope-0: Ghidra successful marker path nested in reader loop; preserve target double exit branch; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-handler-scope-1: Ghidra successful marker path nested in reader loop; preserve target double exit branch; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-handler-scope-2: Ghidra successful marker path nested in reader loop; preserve target double exit branch; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-handler-scope-3: Ghidra successful marker path nested in reader loop; preserve target double exit branch; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_parse_sof / sof-unsized-extern: Incomplete extern diagnostic, actual array definition remains 6 bytes; missing instruction is lis for SampleComps. Header changes remain temporary.; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-0: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-1: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-2: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-3: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-4: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-5: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-6: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-7: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 84.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-8: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 224/223, aligned differences 154.
|
||||
TMCJPEGDEC_parse_sof / sof-hsample-9: 18a first differing named value hSamp source r4 target r3, opposite frame component address; reuse call result or move value creation boundary; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-unpack-inline-0: 18a component address and decoded horizontal value formed inside inline store helper; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-unpack-inline-1: 18a component address and decoded horizontal value formed inside inline store helper; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-unpack-inline-2: 18a component address and decoded horizontal value formed inside inline store helper; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-unpack-inline-3: 18a component address and decoded horizontal value formed inside inline store helper; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-0: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-1: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 120/120, aligned differences 24.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-2: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 120/120, aligned differences 38.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-3: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 120/120, aligned differences 35.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-4: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 97/120, aligned differences 85.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-5: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 97/120, aligned differences 85.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-6: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 120/120, aligned differences 35.
|
||||
TMCJPEGDEC_parse_dht / dht-count-degree-7: 18a reduce tblID interference degree: reuse one count local for 16-byte reader index and total symbol count instead of two coalesced vregs; instructions 120/120, aligned differences 35.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-number-0: 18a local walker in pointer-returning inline; combine with count-local degree reduction; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-number-1: 18a local walker in pointer-returning inline; combine with count-local degree reduction; instructions 121/120, aligned differences 108.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-number-2: 18a local walker in pointer-returning inline; combine with count-local degree reduction; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-number-4: 18a local walker in pointer-returning inline; combine with count-local degree reduction; instructions 120/120, aligned differences 35.
|
||||
TMCJPEGDEC_parse_dht / dht-walker-number-5: 18a local walker in pointer-returning inline; combine with count-local degree reduction; instructions 121/120, aligned differences 108.
|
||||
|
||||
Queued searches receive refreshed best C before lock acquisition. SOF: incomplete-extern diagnostic plus inline sampling unpack gives 223 instructions and 77 differences, fixing the first hSamp/component-address swap. No shared header edit retained. Restart recovery: prior 85% search candidate preserved in /tmp/da4b/err-best.c, next MCU value is bounded by 255*65535+255+65535 = 16777215, so its unsigned temporary changes compiler division selection without changing defined arithmetic for nonzero pitch; this remains a non-exact trial.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-0: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-1: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 198/200, aligned differences 142.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-2: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-3: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 196/200, aligned differences 140.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-4: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 195/200, aligned differences 171.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-5: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 195/200, aligned differences 176.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-6: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 193/200, aligned differences 174.
|
||||
TMCJPEGDEC_make_huffdec / mkh-param-walker-7: 18a use original dht parameter for first walk, retaining original pointer for table phase; target walker r3 rather than r6; instructions 193/200, aligned differences 179.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-0: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_make_huffdec / mkh-fill-walker-1: 18a named parameter walker plus natural countdown/index endpoints matching target Ghidra remaining counter; instructions 196/200, aligned differences 140.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-1: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_make_huffdec / mkh-fill-walker-2: 18a named parameter walker plus natural countdown/index endpoints matching target Ghidra remaining counter; instructions 208/200, aligned differences 147.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-2: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 114/115, aligned differences 67.
|
||||
TMCJPEGDEC_make_huffdec / mkh-fill-walker-3: 18a named parameter walker plus natural countdown/index endpoints matching target Ghidra remaining counter; instructions 158/200, aligned differences 98.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-3: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 113/115, aligned differences 66.
|
||||
TMCJPEGDEC_make_huffdec / mkh-fill-walker-4: 18a named parameter walker plus natural countdown/index endpoints matching target Ghidra remaining counter; instructions 216/200, aligned differences 144.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-4: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_make_huffdec / mkh-fill-walker-5: 18a named parameter walker plus natural countdown/index endpoints matching target Ghidra remaining counter; instructions 159/200, aligned differences 99.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-5: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-6: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 114/115, aligned differences 67.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-7: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 113/115, aligned differences 66.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-8: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 114/115, aligned differences 72.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-9: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 113/115, aligned differences 71.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-10: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 114/115, aligned differences 67.
|
||||
TMCJPEGDEC_err_restart / err-full-quotient-11: Target computes remainder with full signed quotient before narrowing; moving restart-span product before position store follows Ghidra; instructions 113/115, aligned differences 66.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-0: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-1: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-2: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-3: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-4: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-5: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-6: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-7: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-8: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-9: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-10: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-copy-value-11: 18a extend existing copied input word lifetime into thumbnail offset/current pointer; target reuses r5 from final context copy; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-0: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-1: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-2: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-3: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-4: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-5: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-6: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_init_buff_thumbnail / get-offset-helper-7: 18a first offset local across helper, reuse dead source/start parameter for thumbnail base; instructions 34/34, aligned differences 5.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-0: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-1: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-2: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 78.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-3: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 78.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-4: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-5: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-6: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-7: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-8: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 73.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-9: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 73.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-10: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 74.
|
||||
TMCJPEGDEC_parse_sof / sof-table-locals-11: 18a next first difference counts base r5 vs target r6: name loop count or move walkers into inline selector to change temporary numbering; instructions 223/223, aligned differences 74.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-0: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 223/223, aligned differences 54.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-1: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 221/223, aligned differences 106.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-2: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 223/223, aligned differences 58.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-3: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 221/223, aligned differences 106.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-4: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 223/223, aligned differences 54.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-5: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 221/223, aligned differences 106.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-6: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 223/223, aligned differences 58.
|
||||
TMCJPEGDEC_parse_sof / sof-geometry-boundary-7: 18a geometry names cross inline boundary; full-width quotient reused for remainder before narrowing; instructions 221/223, aligned differences 106.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-char-0: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-char-1: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-char-2: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-char-3: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-signed-char-0: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-signed-char-1: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-signed-char-2: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-signed-char-3: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-0: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 54.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-unsigned-char-0: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-1: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 50.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-unsigned-char-1: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-2: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 49.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-unsigned-char-2: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-3: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 45.
|
||||
TMCJPEGDEC_make_huffdec / mkh-character-unsigned-char-3: 19 excluded: reloads follow table writes, so test actual alias types, not volatile; target has 8 symbol loads in unrolled body, current CSE has 1; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-4: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 54.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-0: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-5: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 50.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-1: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-6: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 49.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-2: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-7: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 45.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-3: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-8: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 49.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-9: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 45.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-10: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 49.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-4: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_parse_sof / sof-validation-priority-11: 18a target validation frame base r3 and index r4; reverse only these local numbers, preserve geometry helper and no volatile; instructions 223/223, aligned differences 45.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-5: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-6: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-entry-inline-7: 18a/19 alias audit: move table and source-byte access through entry helper without volatile or extra stores; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-0: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-1: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-2: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-3: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-4: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-5: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-6: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-7: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-8: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-9: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-10: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-match-boundary-11: 18a target inner table pointers in r4/r3 look like inline helper parameters; isolate validation with void early return so no artificial result branch; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / sof-walker-order-chv: 18a reverse declaration number of first differing count pointer; preserve target global relocation order; instructions 223/223, aligned differences 49.
|
||||
TMCJPEGDEC_parse_sof / sof-walker-order-cvh: 18a reverse declaration number of first differing count pointer; preserve target global relocation order; instructions 223/223, aligned differences 48.
|
||||
TMCJPEGDEC_parse_sof / sof-walker-order-hcv: 18a reverse declaration number of first differing count pointer; preserve target global relocation order; instructions 223/223, aligned differences 46.
|
||||
TMCJPEGDEC_parse_sof / sof-walker-order-hvc: 18a reverse declaration number of first differing count pointer; preserve target global relocation order; instructions 223/223, aligned differences 50.
|
||||
TMCJPEGDEC_parse_sof / sof-walker-order-vch: 18a reverse declaration number of first differing count pointer; preserve target global relocation order; instructions 223/223, aligned differences 45.
|
||||
TMCJPEGDEC_parse_sof / sof-walker-order-vhc: 18a reverse declaration number of first differing count pointer; preserve target global relocation order; instructions 223/223, aligned differences 50.
|
||||
TMCJPEGDEC_make_huffdec / mkh-diagnostic-opt_common_subs: 18e diagnostic only: identify whether source symbol reload difference is CSE or copy propagation; instructions 199/200, aligned differences 158.
|
||||
TMCJPEGDEC_make_huffdec / mkh-diagnostic-opt_propagation: 18e diagnostic only: identify whether source symbol reload difference is CSE or copy propagation; instructions 193/200, aligned differences 137.
|
||||
TMCJPEGDEC_make_huffdec / mkh-pair-table-0: Typed halfword pair array and explicit symbol index width as target alias/CSE diagnostic; no volatile; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / mkh-pair-table-1: Typed halfword pair array and explicit symbol index width as target alias/CSE diagnostic; no volatile; instructions 196/200, aligned differences 131.
|
||||
TMCJPEGDEC_make_huffdec / mkh-pair-table-2: Typed halfword pair array and explicit symbol index width as target alias/CSE diagnostic; no volatile; instructions 198/200, aligned differences 143.
|
||||
TMCJPEGDEC_make_huffdec / mkh-pair-table-3: Typed halfword pair array and explicit symbol index width as target alias/CSE diagnostic; no volatile; instructions 196/200, aligned differences 141.
|
||||
|
||||
Source-search slot starvation: three later searches completed, but four older jobs had empty logs and no held slot. Stopped only own still-waiting jobs after verifying /proc cwd and command. In the local /tmp copy, changed fixed 5-second retries to random 0.1-0.6-second retries, keeping SLOTS=24 and flock acquisition unchanged. No other worker or shared tool/limiter was modified. Restart from refreshed best C.
|
||||
/tmp/da4b/get-search-18: requeued after 1651 seconds without a trial.
|
||||
/tmp/da4b/mkh-search-18: requeued after 1488 seconds without a trial.
|
||||
/tmp/da4b/sof-search-18: requeued after 802 seconds without a trial.
|
||||
/tmp/da4b/err-search-18: requeued after 801 seconds without a trial.
|
||||
TMCJPEGDEC_parse_sof / score-sof-unpack-inline-0: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 223/223, aligned differences 77.
|
||||
TMCJPEGDEC_parse_sof / score-sof-unpack-inline-0: objdiff 96.260086; instruction delta 0, aligned differences 77; source /tmp/da4b/TMCJPEGDEC_parse_sof-variants/sof-unpack-inline-0.c.
|
||||
TMCJPEGDEC_parse_sof / score-sof-geometry-boundary-0: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 223/223, aligned differences 54.
|
||||
TMCJPEGDEC_parse_sof / score-sof-geometry-boundary-0: objdiff 97.44843; instruction delta 0, aligned differences 54; source /tmp/da4b/TMCJPEGDEC_parse_sof-variants/sof-geometry-boundary-0.c.
|
||||
TMCJPEGDEC_parse_sof / score-sof-validation-priority-2: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 223/223, aligned differences 49.
|
||||
TMCJPEGDEC_parse_sof / score-sof-validation-priority-2: objdiff 97.605385; instruction delta 0, aligned differences 49; source /tmp/da4b/TMCJPEGDEC_parse_sof-variants/sof-validation-priority-2.c.
|
||||
TMCJPEGDEC_parse_sof / score-sof-validation-priority-3: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 223/223, aligned differences 45.
|
||||
TMCJPEGDEC_parse_sof / score-sof-validation-priority-3: objdiff 97.739914; instruction delta 0, aligned differences 45; source /tmp/da4b/TMCJPEGDEC_parse_sof-variants/sof-validation-priority-3.c.
|
||||
TMCJPEGDEC_parse_sof / score-sof-walker-order-vch: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 223/223, aligned differences 45.
|
||||
TMCJPEGDEC_parse_sof / score-sof-walker-order-vch: objdiff 97.69507; instruction delta 0, aligned differences 45; source /tmp/da4b/TMCJPEGDEC_parse_sof-variants/sof-walker-order-vch.c.
|
||||
TMCJPEGDEC_parse_sof / score-sof-match-boundary-0: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 223/223, aligned differences 51.
|
||||
TMCJPEGDEC_parse_sof / score-sof-match-boundary-0: objdiff 97.53812; instruction delta 0, aligned differences 51; source /tmp/da4b/TMCJPEGDEC_parse_sof-variants/sof-match-boundary-0.c.
|
||||
TMCJPEGDEC_init_buff_thumbnail / handoff-measure: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 34/34, aligned differences 3.
|
||||
TMCJPEGDEC_init_buff_thumbnail / handoff-measure: objdiff 99.55882; instruction delta 0, aligned differences 3; source /tmp/da4b/TMCJPEGDEC_init_buff_thumbnail-variants/get-baseline.c.
|
||||
TMCJPEGDEC_parse_dht / handoff-measure: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 120/120, aligned differences 6.
|
||||
TMCJPEGDEC_parse_dht / handoff-measure: objdiff 99.708336; instruction delta 0, aligned differences 6; source /tmp/da4/TMCJPEGDEC_parse_dht-variants/dht-types-0.c.
|
||||
TMCJPEGDEC_make_huffdec / handoff-measure: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 198/200, aligned differences 133.
|
||||
TMCJPEGDEC_make_huffdec / handoff-measure: objdiff 78.43; instruction delta -2, aligned differences 133; source /tmp/da4/TMCJPEGDEC_make_huffdec-variants/mkhdec-final-0.c.
|
||||
TMCJPEGDEC_scan_varinit / handoff-measure: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / handoff-measure: objdiff 99.496124; instruction delta 0, aligned differences 9; source /tmp/da4/TMCJPEGDEC_scan_varinit-variants/scan-decls-0.c.
|
||||
TMCJPEGDEC_restart_interval / handoff-measure: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 93/93, aligned differences 17.
|
||||
TMCJPEGDEC_restart_interval / handoff-measure: objdiff 96.77419; instruction delta 0, aligned differences 17; source /tmp/da4/TMCJPEGDEC_restart_interval-variants/restart-more-4.c.
|
||||
TMCJPEGDEC_err_restart / handoff-measure: Fresh source/object and exact-name objdiff measurement of rejected C; no tracked source edit; instructions 115/115, aligned differences 39.
|
||||
TMCJPEGDEC_err_restart / handoff-measure: objdiff 85.13043; instruction delta 0, aligned differences 39; source /tmp/da4b/err-best.c.
|
||||
|
||||
Further source audit: src/utility/iplJpegDecoder.cpp calls TMCCJPEGDecodeRGB565 synchronously and checks its return before setting its own mStatus to STATUS_DECODED. decapi.c reads/writes the JPEG state within that call, and buffer_system.c invokes its read callback synchronously. No inspected caller polls an owned JPEG buffer/Huffman/MCU field across threads. Lever 19 has no supporting evidence here, so all declarations retain their original qualifiers.
|
||||
Rejected semantic trial: dht-count-degree-4 and -5 accidentally used idx for both the summation iterator and accumulator. They were never installed or accepted and do not count toward distinct valid attempts. The other DHT numbering/lifetime variants exceed the required three valid trials.
|
||||
make_huffdec evidence: target unrolled fill reloads tb[index] after each halfword pair. C currently caches the symbol byte and produces a different loop remainder. Plain/signed/unsigned character access, a halfword pair array, mutable pointer view and inline writer did not restore the target. Temporary opt_common_subs/opt_propagation diagnostics did not become exact; neither pragma was installed.
|
||||
SOF progress remains advisory: instruction alignment alone does not establish matching global relocations. Fresh exact-name objdiff scores the 223-instruction best C at 97.739914, with the incomplete extern confined to /tmp/da4b/sof-headers. All seven remaining asm bodies remain in tracked source.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-0: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-1: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-2: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-3: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-4: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-5: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 9.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-6: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-7: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-8: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 15.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-9: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 15.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-10: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-11: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-12: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 15.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-13: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 15.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-14: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
TMCJPEGDEC_scan_varinit / scan-reuse-dimensions-15: 18a target hSamp r6 later holds frameWidth; qTblH r4 later holds frameHeight. Reuse those non-overlapping scalar lifetimes to alter neighbor count.; instructions 129/129, aligned differences 16.
|
||||
|
||||
## Round coverage and remaining C candidates
|
||||
|
||||
One converted function: TMCJPEGDEC_decode_iquant_rc, committed as c0611243 after the full clean gate. Seven asm bodies remain unresolved. Their arithmetic/control flow is expressible in C; no architectural need for retained assembly was found. Unaccepted sources and temporary diagnostics are confined to /tmp/da4b. The only changed project source is iqdec_resolution_change_a3.c.
|
||||
|
||||
Logged compile measurements by function, including baseline/repeated evidence checks: TMCJPEGDEC_decode_iquant_rc=2, TMCJPEGDEC_err_restart=30, TMCJPEGDEC_init_buff_thumbnail=97, TMCJPEGDEC_make_huffdec=65, TMCJPEGDEC_parse_dht=94, TMCJPEGDEC_parse_sof=72, TMCJPEGDEC_restart_interval=22, TMCJPEGDEC_scan_varinit=40. Every remaining function has more than three distinct valid source-level trials. The two invalid DHT accumulator rewrites are excluded from acceptance and coverage.
|
||||
|
||||
- TMCJPEGDEC_init_buff_thumbnail: rejected C objdiff 99.55882, instruction delta 0, aligned instruction differences 3. Source /tmp/da4b/TMCJPEGDEC_init_buff_thumbnail-variants/get-baseline.c. Report /tmp/da4b/TMCJPEGDEC_init_buff_thumbnail-variants/handoff-measure-report/report.json.
|
||||
- TMCJPEGDEC_parse_dht: rejected C objdiff 99.708336, instruction delta 0, aligned instruction differences 6. Source /tmp/da4/TMCJPEGDEC_parse_dht-variants/dht-types-0.c. Report /tmp/da4b/TMCJPEGDEC_parse_dht-variants/handoff-measure-report/report.json.
|
||||
- TMCJPEGDEC_make_huffdec: rejected C objdiff 78.43, instruction delta -2, aligned instruction differences 133. Source /tmp/da4/TMCJPEGDEC_make_huffdec-variants/mkhdec-final-0.c. Report /tmp/da4b/TMCJPEGDEC_make_huffdec-variants/handoff-measure-report/report.json.
|
||||
- TMCJPEGDEC_scan_varinit: rejected C objdiff 99.496124, instruction delta 0, aligned instruction differences 9. Source /tmp/da4/TMCJPEGDEC_scan_varinit-variants/scan-decls-0.c. Report /tmp/da4b/TMCJPEGDEC_scan_varinit-variants/handoff-measure-report/report.json.
|
||||
- TMCJPEGDEC_restart_interval: rejected C objdiff 96.77419, instruction delta 0, aligned instruction differences 17. Source /tmp/da4/TMCJPEGDEC_restart_interval-variants/restart-more-4.c. Report /tmp/da4b/TMCJPEGDEC_restart_interval-variants/handoff-measure-report/report.json.
|
||||
- TMCJPEGDEC_err_restart: rejected C objdiff 85.13043, instruction delta 0, aligned instruction differences 39. Source /tmp/da4b/err-best.c. Report /tmp/da4b/TMCJPEGDEC_err_restart-variants/handoff-measure-report/report.json.
|
||||
- TMCJPEGDEC_parse_sof: rejected C objdiff 97.739914, instruction delta 0, aligned instruction differences 45. Source /tmp/da4b/TMCJPEGDEC_parse_sof-variants/sof-validation-priority-3.c. Report /tmp/da4b/TMCJPEGDEC_parse_sof-variants/score-sof-validation-priority-3-report/report.json. Requires temporary incomplete-extern header for measurement only.
|
||||
|
||||
SOF search include fix: POSIX absolute and parent-relative include directives were rejected by MWCC. The local srcsearch copy now accepts --include and prepends its path to the real compiler command. The original source include stays unchanged. Verified source search starts at 223 instructions / 97.739914 with /tmp/da4b/sof-headers; shared headers are untouched.
|
||||
|
||||
## Completed source searches
|
||||
|
||||
dht-search-18:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_parse_dht': 120} start {'TMCJPEGDEC_parse_dht': 120} {'TMCJPEGDEC_parse_dht': 99.708336}
|
||||
done 165 trials; best-nodrop energy -99.7083
|
||||
```
|
||||
scan-search-18:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_scan_varinit': 129} start {'TMCJPEGDEC_scan_varinit': 129} {'TMCJPEGDEC_scan_varinit': 99.496124}
|
||||
done 85 trials; best-nodrop energy -99.4961
|
||||
```
|
||||
restart-search-18:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_restart_interval': 93} start {'TMCJPEGDEC_restart_interval': 93} {'TMCJPEGDEC_restart_interval': 96.77419}
|
||||
done 341 trials; best-nodrop energy -96.7742
|
||||
```
|
||||
err-search-resumed:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_err_restart': 115} start {'TMCJPEGDEC_err_restart': 115} {'TMCJPEGDEC_err_restart': 85.13043}
|
||||
done 536 trials; best-nodrop energy -85.1304
|
||||
```
|
||||
get-search-resumed:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_init_buff_thumbnail': 34} start {'TMCJPEGDEC_init_buff_thumbnail': 34} {'TMCJPEGDEC_init_buff_thumbnail': 99.55882}
|
||||
done 450 trials; best-nodrop energy -99.5588
|
||||
```
|
||||
mkh-search-resumed:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_make_huffdec': 200} start {'TMCJPEGDEC_make_huffdec': 198} {'TMCJPEGDEC_make_huffdec': 78.43}
|
||||
done 442 trials; best-nodrop energy -74.43
|
||||
```
|
||||
sof-search-include:
|
||||
```
|
||||
target counts {'TMCJPEGDEC_parse_sof': 223} start {'TMCJPEGDEC_parse_sof': 223} {'TMCJPEGDEC_parse_sof': 97.739914}
|
||||
done 481 trials; best-nodrop energy -97.7399
|
||||
```
|
||||
All seven remaining functions completed srcsearch from their best available C. Total 2500 source-search trials. None reached exactness; no search mutation was installed. All own search processes have ended before the final full clean gate.
|
||||
origin/main advanced by two commits while this worker ran. The leaf remains based on the requested f8957ca9 plus c0611243; no merge or rebase was performed.
|
||||
|
||||
## Final clean validation
|
||||
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] objdiff: code 316/316 data None/None functions 3/3 fuzzy 100.0000 linked code 316
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] instruction-exact functions: 3/3
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] section .text size 316 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/getcode] baseline: code 316/316 data None functions 3 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] objdiff: code 5604/5604 data 256/256 functions 13/13 fuzzy 100.0000 linked code 5604
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] instruction-exact functions: 13/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] section .rodata size 256 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] section .text size 5604 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main] baseline: code 5604/5604 data 256 functions 13 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] objdiff: code 1228/1228 data None/None functions 2/2 fuzzy 100.0000 linked code 1228
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] section .text size 1228 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/mkhdec3] baseline: code 1228/1228 data None functions 2 fuzzy 100.0000
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] objdiff: code 908/908 data None/None functions 2/2 fuzzy 100.0000 linked code 908
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] instruction-exact functions: 2/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] section .text size 908 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/reschange/iqdec_resolution_change_a3] baseline: code 908/908 data None functions 2 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.78013 -> 92.78013
|
||||
global fuzzy_match_percent: 99.78155 -> 99.78155
|
||||
global complete_code_percent: 77.20428 -> 77.20428
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
After the clean gate, ninja -C . build/43U/ok reported no work. Fresh ctxdiff for TMCJPEGDEC_decode_iquant_rc: 167/167 instructions, diffs 0. SHA1 independently read as 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
|
||||
Before -> after across owned units: instruction-exact functions 20 -> 20; matched code 8056 -> 8056 bytes; matched data 256 -> 256 bytes; retained asm bodies 8 -> 7. Gated source conversion: c0611243. All seven source searches completed, 2500 trials. Only iqdec_resolution_change_a3.c and this attempts log changed. No push, PR, merge, rebase, shared-header edit or other-worktree edit occurred.
|
||||
92
tools/decomp-assist/da5.attempts.md
Normal file
92
tools/decomp-assist/da5.attempts.md
Normal file
@@ -0,0 +1,92 @@
|
||||
# da5 de-asm attempts
|
||||
|
||||
Worktree `w0929-fix-board`, branch `agent/w1005/da5`, starting commit `7aa71d29`.
|
||||
Read deasm-round.md, common.md, levers.md, and the original-object Ghidra exports.
|
||||
Baseline full build and quick gate pass. DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
WPAD: 67/67 exact, code 31040/31040, data 15096/15096.
|
||||
cntcache: 5/5 exact, code 1828/1828, data 280/280.
|
||||
sdi_api: 22/22 exact, code 5948/5948, data 248/248.
|
||||
|
||||
## ISD_GetCardSize
|
||||
|
||||
1. Activate the existing C fallback, name the card geometry values, and correct the high-capacity sector multiplier from 512 to 1024 to match the target shift by 10. Pool 4/4 identical; 84/84 instructions, 33 differences.
|
||||
2. Decode the CSD fields into named locals before clamping the read block length. 84/84 instructions, 26 differences.
|
||||
3. Reverse the two bitwise-OR expressions so MWCC emits the target rotate-insert direction. 84/84 instructions, 23 differences.
|
||||
4. Split the block-length subtraction and capacity product into assignments. 84/84 instructions, 26 differences. Rejected.
|
||||
5. Compile all 36 declaration/field-extraction orders from attempt 3. Best 84/84, 20 differences. No exact result yet. Results in build/da5/sdi-search.json.
|
||||
|
||||
6. Run the provided srcsearch tool. Its relative --out path failed to resolve the mini report; a worktree-local copy used an absolute output path and matched the function definition instead of the earlier prototype. One legal mutation produced no score gain from 98.39286%.
|
||||
7. Compile 180 combinations of declaration order, normalized block length, capacity reuse, and an inline clamp helper. Best remained 84/84 with 20 differences.
|
||||
8. Compile 96 combinations of hoisted fields, separate declarations, unsigned-int versus u32 locals, and output-local order. Same best.
|
||||
9. Compile 24 product/scale/sector inline-helper and geometry-struct variants. Same best.
|
||||
10. Compile all 24 orders including the status local and three output locals. Same best.
|
||||
11. Compile all 24 factor order/grouping combinations from the two best declaration layouts. Best remained 84/84 with 20 register differences. The unchanged asm was retained.
|
||||
|
||||
## WPADiManageHandler
|
||||
|
||||
1. Restore the C handler using the existing queue/rumble/settings helpers, as in the ogws WPAD_WPAD.c reference. The 2010 target also needs the reconnect countdown: decrement with saturation on every running handler call, then reconnect only at zero. Move __reconnect before WPADiAfh to restore literal order and remove the assembly-only packed string block.
|
||||
Pool 22/22 identical; ctxdiff 484/484 instructions, diffs 0.
|
||||
Clean full gate: GATE PASS, 67/67 exact, code 31040/31040, data 15096/15096, no regressions or forbidden/readability findings. DOL SHA1 unchanged.
|
||||
|
||||
## _CNTCACHEDeleteTitle
|
||||
|
||||
1. Reconstruct the token loop and deletion dispatch. Pool 9/9 identical; 51/50 instructions. ES_TITLE_TYPE returns u64, so comparison emits xor plus compare.
|
||||
2. Cast the extracted title type to u32, matching the target's word comparison. Pool unchanged; 50/50 instructions, diffs 0.
|
||||
Clean full gate: GATE PASS, 5/5 exact, code 1828/1828, data 280/280; zero regressions. DOL SHA1 unchanged.
|
||||
|
||||
## _CNTCACHEIsTitleRemovable
|
||||
|
||||
1. Inline NAND usage helper, aligned TMD buffer, typed ESTmdView access. Pool 9/9 identical; 81/82 instructions, path stack offset and return-register differences.
|
||||
2. Align the path buffer, use a single-exit helper, and unsigned version extraction. 80/82; correct frame and path positions, but two missing return copies.
|
||||
3. Separate NAND status from the helper's result and mask the high version byte. 80/82; version test now exact. Missing copies and initializer scheduling remain.
|
||||
4. Shared goto exit in the outer function. 78/82; collapses the target's two early-return branches. Rejected.
|
||||
5. Separate inline TMD eligibility helper. 80/82, shifts scalar stack slots and retains the missing copies. Rejected.
|
||||
6. Use s32 for statuses and the public return value. Same 80/82; DeleteTitle remains exact. Rejected.
|
||||
7. Put the usage check directly into the outer function and reuse the ES result local. Still 80/82; scalar stack positions worsen. Rejected.
|
||||
8. Unsigned removable flag. Still 80/82 and changes cmpwi to cmplwi. Rejected.
|
||||
9. Hoist the ES result declaration without changing early returns. Still 80/82.
|
||||
10. Separate helper result initialization and the negative-error arm. 81/82; adds a branch rather than the target return copies. Rejected.
|
||||
|
||||
11. Group NAND usage counts into a local struct. Still 80/82; moves the scalar slots. Rejected.
|
||||
12. Name the high/low title-ID arguments before snprintf. Still 80/82; changes argument scheduling. Rejected.
|
||||
13. Use automatic inlining instead of an explicit inline keyword on the usage helper. Still 80/82.
|
||||
14. Add a nested path-and-usage helper. Still 80/82.
|
||||
Diagnostic-only opt_propagation, opt_common_subs, scheduling, and opt_dead_assignments pragmas did not change the 80-instruction result. All pragmas removed.
|
||||
|
||||
15. Source search over the usage helper completed 185 trials, with no improvement from the 80/82-instruction, 89.60976% candidate. It waited for a shared CPU slot before starting. The unchanged asm was retained.
|
||||
|
||||
## _CNTCACHEDeleteContent
|
||||
|
||||
1. Reconstruct the typed TMD content loop with an inline NAND usage helper. Pool 9/9 identical; 144/145 instructions. Buffer pointer is formed early; scalar slots reversed; extra constant kept across the loop.
|
||||
2. Move buffer binding after title validation, swap scalar declarations, and use explicit cleanup branches. 143/145. Frame, buffer binding, and scalar slots now match; missing constant reload and helper-result copy remain.
|
||||
3. Use NANDTitleIdHi/Lo in the path helper. Same 143/145.
|
||||
4. Make the inline helper title-ID parameter const. Same 143/145.
|
||||
5. Source search over DeleteContent completed 145 trials with no improvement from the 143/145-instruction, 95.793106% candidate. The unchanged asm was retained.
|
||||
|
||||
## CNTCACHEClear
|
||||
|
||||
1. Implement the NAND read/line-tokenization/delete/seek/cleanup flow with ordinary literals. Pool has 13 strings versus 9: the existing byte pool duplicates all four live literals. Rejected before register tuning.
|
||||
2. Remove the packed byte pool and use a normal version literal. Place the title-data format after the clear routine. Pool has 5 strings versus 9, first divergence at index 1: `DeleteTitle` versus target `DeleteTitle `. The target also retains `%016llx `, `/shared2`, and `DeleteContent `, none referenced by the five surviving functions.
|
||||
3. Reverse the command-dispatch source order. Pool still 5 versus 9, now index 1 is `DeleteContent`. Branch polarity cannot supply the four absent literal entries. Rejected.
|
||||
Kept the original placeholder. No offset references into the byte blob, dummy string objects, or invented dead functions were added to force data offsets. These strings are consistent with removed cache-writing routines. Their original declarations and references remain unknown.
|
||||
|
||||
## Final validation
|
||||
|
||||
Two of six requested bodies converted: WPADiManageHandler and _CNTCACHEDeleteTitle. Four placeholders remain, with the compiled trials recorded above. No remaining assigned body was classified as original assembly.
|
||||
|
||||
The final full, non-quick gate rebuilt all 43U objects and passed for all three assigned units. Pools are identical, every function and owned section is 100.0%, and regressions, forbidden patterns, and readability warnings are all zero. Fresh ctxdiff after the clean build reports 484/484 instructions with zero differences for WPADiManageHandler and 50/50 with zero differences for _CNTCACHEDeleteTitle. Exact-name objdiff reports 100.0% for both.
|
||||
|
||||
| Unit | Instruction-exact before -> after | Code before -> after | Data before -> after |
|
||||
| --- | --- | --- | --- |
|
||||
| WPAD | 67/67 -> 67/67 | 31040/31040 -> 31040/31040 | 15096/15096 -> 15096/15096 |
|
||||
| cntcache | 5/5 -> 5/5 | 1828/1828 -> 1828/1828 | 280/280 -> 280/280 |
|
||||
| sdi_api | 22/22 -> 22/22 | 5948/5948 -> 5948/5948 | 248/248 -> 248/248 |
|
||||
|
||||
GATE PASS
|
||||
|
||||
DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
The unit counts remain unchanged because the previous assembly bodies already counted as exact.
|
||||
|
||||
Inventory audit: 209/209 remaining asm bodies and blocks have distinct file/line entries, verified against current source lines. Verdicts: 160 ORIGINAL-ASM, 49 PLACEHOLDER. Excluded 65 declarations and comment text. Other workers' files were classified without edits.
|
||||
|
||||
Scratch candidates and experiment results remain in this worktree's ignored `build/da5/` directory. `build/da5/final-gate.log` contains the full gate output. No source changes remain outside the two accepted conversions.
|
||||
541
tools/decomp-assist/da7.attempts.md
Normal file
541
tools/decomp-assist/da7.attempts.md
Normal file
@@ -0,0 +1,541 @@
|
||||
# da7 de-asm attempts
|
||||
|
||||
Worktree w0929-fix-board, branch agent/w1005/da7. Starting commit 5e7b5ad045a8cf930106fab1a6c3294b0015e38b.
|
||||
All 12 assigned functions still contain placeholder asm. Prior trials read in da5.attempts.md and asm-conversions.attempts.md; retain only exact C/C++ conversions.
|
||||
Scratch source snapshots, Ghidra exports, trial records, and gate outputs live in build/da7/. The local exporter copy only redirects its project directory into this worktree.
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-01-direct-array: 94.84507%; src 0x124 base 0x11c insns 73/71 | --- replace mine 14:15 base 14:15 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-02-language-pointer: 98.943665%; src 0x11c base 0x11c insns 71/71 | diffs 12: [17, 18, 19, 20, 38, 41, 42, 43, 44, 45, 54, 59] | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-03-character-helper: COMPILE FAIL ne\iplSceneManager.h:14
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\system\iplSystem.h:15
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\iplSystem.h:9
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\src\system\iplChannelManager.cpp:6)
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: src\system\iplChannelManager.cpp
|
||||
# -----------------------------------------
|
||||
# 472: static inline bool hasTitleName(const SMetaHdr* header, int language, int nameIndex) {
|
||||
# Warning: ^^^^^^^^
|
||||
# (10349) implicit 'int' is no longer supported in C++
|
||||
### mwcceppc.exe Compiler:
|
||||
# 472: static inline bool hasTitleName(const SMetaHdr* header, int language, int nameIndex) {
|
||||
# Error: ^
|
||||
# (10115) ')' expected
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-03b-character-helper: 92.1831%; src 0x128 base 0x11c insns 74/71 | --- delete mine 7:8 base 7:7 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-04-name-walk: 96.19718%; src 0x11c base 0x11c insns 71/71 | diffs 12: [17, 18, 19, 20, 38, 41, 42, 43, 44, 45, 54, 59] | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/scene/button/iplButton push__Q33ipl7utility36Queue<Q43ipl5scene6Button7Command,8>FRCQ43ipl5scene6Button7Command queue-01-template: 100.0%; src 0x70 base 0x70 insns 28/28 | diffs 0: [] | POOL IDENTICAL up to 32 (mine=32 base=32)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-01-typed-records: 98.93939%; src 0x31c base 0x318 insns 199/198 | --- replace mine 16:17 base 16:17 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-02-entry-reference: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/sound/iplSound resetAllSound__Q33ipl3snd6SystemFv reset-01-block-local: COMPILE FAIL -ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplSceneBase.h:6
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplSceneManager.h:14
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\system\iplSystem.h:15
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\build\da7\trials\reset-01-block-local\iplSound.cpp:9)
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: build\da7\trials\reset-01-block-local\iplSound.cpp
|
||||
# -----------------------------------------------------------
|
||||
# 341: void System::resetAllSound() {
|
||||
# Error: ^
|
||||
# (10563) identifier 'ipl::snd::System::resetAllSound()' redeclared as 'void
|
||||
# ()'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-03-entry-pointer: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/sound/iplSound resetAllSound__Q33ipl3snd6SystemFv reset-01b-block-local: 97.94118%; insns 69/68 diffs 40 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/scene/button/iplButton push__Q33ipl7utility36Queue<Q43ipl5scene6Button7Command,8>FRCQ43ipl5scene6Button7Command queue-02-specialization: COMPILE FAIL ted
|
||||
# (included from:
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplSceneBase.h:6
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplFaderSceneBase.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\iplSceneUIHeader.h:5
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\button\iplButton.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\src\scene\button\iplButton.cpp:1)
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: src\scene\button\iplButton.cpp
|
||||
# ---------------------------------------
|
||||
# 10: extern namespace ipl {
|
||||
# Warning: ^^^^^^^^^
|
||||
# (10349) implicit 'int' is no longer supported in C++
|
||||
### mwcceppc.exe Compiler:
|
||||
# 10: extern namespace ipl {
|
||||
# Error: ^^^^^^^^^
|
||||
# (10121) declaration syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-04-current-file-local: 97.72222%; insns 196/198 diffs 158 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/scene/button/iplButton push__Q33ipl7utility36Queue<Q43ipl5scene6Button7Command,8>FRCQ43ipl5scene6Button7Command queue-02b-specialization: COMPILE FAIL .cpp
|
||||
# ---------------------------------------
|
||||
# 40: }
|
||||
# Warning: ^
|
||||
# (10184) return value expected
|
||||
# (included from:
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplSceneBase.h:6
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplFaderSceneBase.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\iplSceneUIHeader.h:5
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\button\iplButton.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\src\scene\button\iplButton.cpp:1)
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: src\scene\button\iplButton.cpp
|
||||
# ---------------------------------------
|
||||
# 27: char scPaneName_T_Stop[];
|
||||
# Error: ^
|
||||
# (10145) data type is incomplete
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
|
||||
- src/sound/iplSound resetAllSound__Q33ipl3snd6SystemFv reset-02-loop-local-order: 100.0%; insns 68/68 diffs 0 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/scene/button/iplButton push__Q33ipl7utility36Queue<Q43ipl5scene6Button7Command,8>FRCQ43ipl5scene6Button7Command queue-02c-tail-specialization: COMPILE FAIL drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplSceneBase.h:6
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplFaderSceneBase.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\iplSceneUIHeader.h:5
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\button\iplButton.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\src\scene\button\iplButton.cpp:1)
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: src\scene\button\iplButton.cpp
|
||||
# ---------------------------------------
|
||||
# 985: ::Button::Command, 8>::push(const scene::Button::Command& item) {
|
||||
# Error: ^
|
||||
# (10333) object 'ipl::utility::Queue<ipl::scene::Button::Command,
|
||||
# 8>::push(const ipl::scene::Button::Command &)' redefined
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-05-timing-helper: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/scene/button/iplButton push_button_queue queue-03-typed-wrapper: COMPILE FAIL ects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\iplSceneUIHeader.h:5
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\button\iplButton.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\build\da7\trials\queue-03-typed-wrapper\iplButton.cpp:1)
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: build\da7\trials\queue-03-typed-wrapper\iplButton.cpp
|
||||
# --------------------------------------------------------------
|
||||
# 974: const Button::Command* command = static_cast<const Button::Command*>(item);
|
||||
# Error: ^
|
||||
# (10412) illegal access from 'ipl::scene::Button' to protected/private
|
||||
# member 'ipl::scene::Button::Command'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-06-declaration-order: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/sound/iplSound resetAllSound__Q33ipl3snd6SystemFv reset-03-void-return: 100.0%; src 0x110 base 0x110 insns 68/68 | diffs 0: [] | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-07-entry-helper: 99.36869%; insns 199/198 diffs 145 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-08-entry-helper: 99.36869%; insns 199/198 diffs 145 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/sound/iplSound resetAllSound__Q33ipl3snd6SystemFv reset-04-existing-zero-constant: 100.0%; insns 68/68 diffs 0 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-09-entry-helper: 99.36869%; insns 199/198 diffs 145 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-10-entry-helper: 99.36869%; insns 199/198 diffs 145 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/keyboard/tiGUIManager draw__Q39textinput3gui13PaneComponentFv draw-01-size-color-locals: 96.92308%; insns 104/104 diffs 14 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/keyboard/tiGUIManager draw__Q39textinput3gui13PaneComponentFv draw-02-half-literal: 96.92308%; insns 104/104 diffs 14 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
resetAllSound return ABI: existing header declares int and HomeButtonMenu callback returns it. The target final call is BannerSoundPlayer::setMasterVolume, declared void, followed only by callee-save/LR restoration and blr. No return value is assigned. Changing the public declaration to void breaks that callback and was restored. Preserve the original int signature with no invented return assignment; the target proves the indeterminate return path. Reuse scSoundZeroF to avoid adding a literal to .sdata2.
|
||||
|
||||
- src/keyboard/tiGUIManager draw__Q39textinput3gui13PaneComponentFv draw-03-half-expression: 96.92308%; insns 104/104 diffs 14 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/keyboard/tiGUIManager draw__Q39textinput3gui13PaneComponentFv draw-04-division: 100.0%; insns 104/104 diffs 0 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext tvrc-loop-01-state-branches: 94.916664%; insns 119/120 diffs 56 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
## resetAllSound accepted
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/sound/iplSound] pool: IDENTICAL
|
||||
[src/sound/iplSound] objdiff: code 5576/5576 data 3316/3316 functions 57/57 fuzzy 100.0000 linked code 5576
|
||||
[src/sound/iplSound] instruction-exact functions: 56/57
|
||||
[src/sound/iplSound] section .bss size 3128 match 100.0
|
||||
[src/sound/iplSound] section .ctors size 4 match 100.0
|
||||
[src/sound/iplSound] section .data size 120 match 100.0
|
||||
[src/sound/iplSound] section .rodata size 24 match 100.0
|
||||
[src/sound/iplSound] section .sbss size 16 match 100.0
|
||||
[src/sound/iplSound] section .sdata2 size 24 match 100.0
|
||||
[src/sound/iplSound] section .text size 5576 match 99.49785
|
||||
[src/sound/iplSound] baseline: code 5576/5576 data 3316 functions 57 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.78013 -> 92.78013
|
||||
global fuzzy_match_percent: 99.78155 -> 99.78155
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
|
||||
- src/keyboard/tiGUIManager draw__Q39textinput3gui13PaneComponentFv draw-05-compiler-half-constant: 100.0%; insns 104/104 diffs 0 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext tvrc-loop-02-state-store-order: 95.333336%; insns 119/120 diffs 49 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext tvrc-loop-03-for-loop: 95.333336%; insns 119/120 diffs 49 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/keyboard/tiGUIManager draw__Q39textinput3gui13PaneComponentFv draw-06-natural-color: 100.0%; insns 104/104 diffs 0 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/keyboard/tiGUIManager draw__Q39textinput3gui13PaneComponentFv draw-07-natural-constants: 100.0%; insns 104/104 diffs 0 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC __FTVRCLoop0Handler__7LibTVRCFP7OSAlarmP9OSContext tvrc-loop-04-bit-read-before-count: 100.0%; insns 120/120 diffs 0 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/scene/button/iplButton push_button_queue queue-04-friend-wrapper: COMPILE FAIL rd\include\scene\iplSceneBase.h:6
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplFaderSceneBase.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\iplSceneUIHeader.h:5
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\button\iplButton.h:4
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\build\da7\trials\queue-04-friend-wrapper\iplButton.cpp:2)
|
||||
### mwcceppc.exe Compiler:
|
||||
# In: include\scene\button\iplButton.h
|
||||
# -----------------------------------------
|
||||
# 322: friend BOOL ::push_button_queue(void*, const void*);
|
||||
# Error: ^^^^
|
||||
# (10121) declaration syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- src/scene/channelSelect/iplChannelSelect updateDiskState__Q33ipl5scene13ChannelSelectFv disk-01-state-switch: COMPILE FAIL e\scene\iplSceneBase.h:6
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\scene\iplSceneManager.h:14
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\include\iplSceneUI.h:11
|
||||
# Z:\mnt\drive2\projects\wii-ipl-workers\w0929-fix-
|
||||
# board\build\da7\trials\disk-01-state-switch\iplChannelSelect.cpp:4)
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: build\da7\trials\disk-01-state-switch\iplChannelSelect.cpp
|
||||
# -------------------------------------------------------------------
|
||||
# 1373: if (mpDiskChanObj->mpThumbnailAnim != NULL) {
|
||||
# Error: ^^^^^^^^^^^^^^^
|
||||
# (10140) undefined identifier 'mpThumbnailAnim'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
## PaneComponent::draw accepted
|
||||
|
||||
The size division by 2.0f matches the target multiplication scheduling. Replacing the assembly-only color/float objects with ordinary literals removes duplicate constants. All code and data match and the linked DOL passes.
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiGUIManager] pool: IDENTICAL
|
||||
[src/keyboard/tiGUIManager] objdiff: code 5916/5916 data 392/392 functions 42/42 fuzzy 100.0000 linked code 5916
|
||||
[src/keyboard/tiGUIManager] instruction-exact functions: 42/42
|
||||
[src/keyboard/tiGUIManager] section .data size 376 match 100.0
|
||||
[src/keyboard/tiGUIManager] section .sdata2 size 16 match 100.0
|
||||
[src/keyboard/tiGUIManager] section .text size 5916 match 100.0
|
||||
[src/keyboard/tiGUIManager] baseline: code 5916/5916 data 392 functions 42 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.78013 -> 92.78013
|
||||
global fuzzy_match_percent: 99.78155 -> 99.78155
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
|
||||
- src/scene/button/iplButton push_button_queue queue-05-namespace-friend: None%; insns 28/28 diffs 0 | POOL IDENTICAL up to 32 (mine=32 base=32)
|
||||
|
||||
- src/scene/channelSelect/iplChannelSelect updateDiskState__Q33ipl5scene13ChannelSelectFv disk-01b-state-switch: 99.38261%; insns 230/230 diffs 7 | POOL IDENTICAL up to 98 (mine=98 base=98)
|
||||
|
||||
## FTVRCLoop0Handler accepted
|
||||
|
||||
The target reads the signal byte before storing the incremented combo count. Moving the byte read before that increment preserves the initial zero store and matches all 120 instructions. No volatility change was needed.
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/system/TVRC] pool: IDENTICAL
|
||||
[src/system/TVRC] objdiff: code 2312/2312 data 280/280 functions 9/9 fuzzy 100.0000 linked code 2312
|
||||
[src/system/TVRC] instruction-exact functions: 9/9
|
||||
[src/system/TVRC] section .bss size 96 match 100.0
|
||||
[src/system/TVRC] section .sbss size 120 match 100.0
|
||||
[src/system/TVRC] section .sdata size 32 match 100.0
|
||||
[src/system/TVRC] section .sdata2 size 32 match 100.0
|
||||
[src/system/TVRC] section .text size 2312 match 100.0
|
||||
[src/system/TVRC] baseline: code 2312/2312 data 280 functions 9 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.78013 -> 92.78013
|
||||
global fuzzy_match_percent: 99.78155 -> 99.78155
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
|
||||
- src/scene/channelSelect/iplChannelSelect updateDiskState__Q33ipl5scene13ChannelSelectFv disk-02-inactive-thumbnail: 99.934784%; insns 230/230 diffs 3 | POOL IDENTICAL up to 98 (mine=98 base=98)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-01-row-manager-body: 97.708336%; insns 72/72 diffs 26 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-11-separate-command-locals: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-12-const-file: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-13-signed-repeat-offset: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-send-14-command-offset-local: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/scene/channelSelect/iplChannelSelect updateDiskState__Q33ipl5scene13ChannelSelectFv disk-03-thumbnail-anim-local: 98.195656%; insns 228/230 diffs 87 | POOL IDENTICAL up to 98 (mine=98 base=98)
|
||||
|
||||
Source-search setup: the provided global limiter did not start the first title-name search while manual work continued. A local copy uses one worker-local slot and cached compiler commands/target objects so clean gates cannot delete its inputs. Its definition matcher excludes calls/prototypes and accepts a qualified member name. Mutation rules are unchanged. Run only one local source search at a time.
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-02-row-selection-helper: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\da7\trials\form-02-row-selection-helper\tiInputForm.cpp
|
||||
# ----------------------------------------------------------------------
|
||||
# 1601: Info_* selected = &rows[rows[capacity].Next];
|
||||
# Error: ^^^^^
|
||||
# (10140) undefined identifier 'Info_'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-03-const-row-reference: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\da7\trials\form-03-const-row-reference\tiInputForm.cpp
|
||||
# ---------------------------------------------------------------------
|
||||
# 1601: Info_* selected = &rows[rows[capacity].Next];
|
||||
# Error: ^^^^^
|
||||
# (10140) undefined identifier 'Info_'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
## push_button_queue accepted
|
||||
|
||||
The normal Queue template matched its instructions but moved the weak definition ahead of reserveText, changing the DOL. The final ordinary C-linkage wrapper uses the real Queue<Button::Command, 8> and retains the original function location. A guarded friend grants access to Command without changing the class layout or other translation units. Source push_button_queue and the target Queue::push are both 28 instructions with zero differences.
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/button/iplButton] pool: IDENTICAL
|
||||
[src/scene/button/iplButton] objdiff: code 7624/7624 data 1744/1744 functions 42/42 fuzzy 100.0000 linked code 7624
|
||||
[src/scene/button/iplButton] instruction-exact functions: 41/42
|
||||
[src/scene/button/iplButton] section .data size 944 match 100.0
|
||||
[src/scene/button/iplButton] section .rodata size 552 match 100.0
|
||||
[src/scene/button/iplButton] section .sdata size 192 match 100.0
|
||||
[src/scene/button/iplButton] section .sdata2 size 56 match 100.0
|
||||
[src/scene/button/iplButton] section .text size 7624 match 98.53095
|
||||
[src/scene/button/iplButton] baseline: code 7624/7624 data 1744 functions 42 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.78013 -> 92.78013
|
||||
global fuzzy_match_percent: 99.78155 -> 99.78155
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-02b-row-helper: 91.31944%; insns 74/72 diffs 41 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-03b-row-helper: 91.31944%; insns 74/72 diffs 41 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEIsTitleRemovable removable-01-copy-boundary: 89.60976%; insns 80/82 diffs 67 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEIsTitleRemovable removable-02-copy-boundary: 89.60976%; insns 80/82 diffs 67 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/scene/channelSelect/iplChannelSelect updateDiskState__Q33ipl5scene13ChannelSelectFv disk-04-play-local: 100.0%; insns 230/230 diffs 0 | POOL IDENTICAL up to 98 (mine=98 base=98)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEIsTitleRemovable removable-03-copy-boundary: 91.31707%; insns 80/82 diffs 64 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/scene/channelSelect/iplChannelSelect updateDiskState__Q33ipl5scene13ChannelSelectFv disk-05-play-inline-helper: 99.934784%; insns 230/230 diffs 3 | POOL IDENTICAL up to 98 (mine=98 base=98)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-04-detach-inline-helper: 97.708336%; insns 72/72 diffs 26 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEDeleteContent content-01-usage-helper: 95.793106%; insns 143/145 diffs 88 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEDeleteContent content-02-usage-helper: 95.793106%; insns 143/145 diffs 88 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEDeleteContent content-03-usage-helper: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\da7\trials\content-03-usage-helper\cntcache.c
|
||||
# ------------------------------------------------------------
|
||||
# 407: result = ES_GetTmdView(titleId, tmdBuffer, &tmdSize);
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from '__aligned(32) unsigned
|
||||
# char[8288]' to
|
||||
# 'struct ESTmdView *'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- libs/RVL_SDK/src/sdi/sdi_api ISD_GetCardSize sdi-01-geometry-shape: 98.15476%; insns 84/84 diffs 23 | POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
|
||||
- libs/RVL_SDK/src/sdi/sdi_api ISD_GetCardSize sdi-02-geometry-shape: 98.39286%; insns 84/84 diffs 20 | POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
|
||||
- libs/RVL_SDK/src/sdi/sdi_api ISD_GetCardSize sdi-03-geometry-shape: 98.39286%; insns 84/84 diffs 20 | POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEDeleteContent content-03b-const-tmd: 95.76552%; insns 143/145 diffs 88 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache CNTCACHEClear clear-01-line-walk: 51.145695%; insns 166/151 diffs 137 | POOL IDENTICAL up to 9 (mine=13 base=9)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache CNTCACHEClear clear-02-line-walk: 50.278145%; insns 157/151 diffs 138 | POOL IDENTICAL up to 9 (mine=13 base=9)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache CNTCACHEClear clear-03-line-walk: 42.668873%; insns 160/151 diffs 137 | POOL IDENTICAL up to 9 (mine=13 base=9)
|
||||
|
||||
- libs/RVL_SDK/src/cntcache/cntcache _CNTCACHEIsTitleRemovable removable-04-return-object: 91.31707%; insns 80/82 diffs 64 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
updateDiskState candidate: full build and DOL SHA1 pass, all 102 unit functions are exact. Gate fails only matched_data 2336 -> 192. The generated jump table and target both begin at .data+0x508, contain 7 entries, and relocate to updateDiskState + [0x4c, 0x21c, 0x284, 0x2c8, 0x30c, 0x328, 0x358]. Diagnostic target copies under build/da7/diag-table-* only test symbol-name handling; they are never used by gate.py or installed over original objects.
|
||||
|
||||
Jump-table metadata: both a source-generated anonymous name and @0 made the diagnostic section score 100%; a descriptive jumptable name did not. Replace the artificial assembly-era updateDiskState_jumptable name in symbols.txt with the compiler-generated local name @24295. Address, size, scope, seven relocation targets, and DOL bytes are unchanged. No source table or pinned offsets remain. Rebuild the original object from the unmodified retail DOL and run the full gate to validate this metadata correction.
|
||||
|
||||
updateDiskState accepted: full clean gate PASS; unit code 25668/25668, data 2336/2336, functions 102/102; fresh ctxdiff 230/230 diffs 0; pool 98/98 identical. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Gate rebuilt the target from retail data after the anonymous jump-table metadata correction. Evidence: build/da7/disk-final-gate.log.
|
||||
|
||||
_CNTCACHEIsTitleRemovable source search: 212 compiled trials, no improvement beyond 91.31707%, 80/82 instructions. Evidence: build/da7/search-removable.log. Original exact asm retained.
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-05-search-result: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-declarations-selected: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-declarations-rows: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-insert-helper: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-insert-helper-const: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-insert-helper-ref: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-direct-manager: 91.31944%; insns 74/72 diffs 41 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-row-holder: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-selected-holder: 99.236115%; insns 72/72 diffs 9 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-separate-next: 98.333336%; insns 72/72 diffs 22 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-separate-rows: 98.125%; insns 72/72 diffs 23 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-index-holder: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-index-local: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-entry-ref-holder: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/system/TVRC TVRCSendStartAsync tvrc-file-holder: 99.747475%; insns 198/198 diffs 9 | POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-cursor-early-rows: 99.236115%; insns 72/72 diffs 9 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-cursor-active-rows: 99.583336%; insns 72/72 diffs 5 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-cursor-separate-next: 99.44444%; insns 72/72 diffs 7 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-cursor-end-holder: 100.0%; insns 72/72 diffs 0 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
- src/keyboard/tiInputForm create__Q39textinput9inputform4BaseFP12MEMAllocatorPQ39textinput9inputform10EditBuffer form-cursor-no-rows-reload: 98.19444%; insns 71/72 diffs 25 | POOL IDENTICAL up to 20 (mine=20 base=20)
|
||||
|
||||
Base::create: a one-pointer RowCursor models the selected node and insertion position. Both cursor objects together match all 72 target instructions. The pointers, indices, link updates, and initialization order preserve the prior C candidate behavior; the self-link check is the target cmplw r9,r9 and conditional branch. Pool remains 20/20. No header or other function change. Lever 18a recovered the iterator register boundaries. Full gate required before acceptance.
|
||||
|
||||
Base::create accepted: full non-quick gate over all nine assigned units PASS. Fresh rebuilt function 72/72 instructions, diffs 0; pool 20/20 identical. Unit instruction-exact count remains 219/221, code 47928/50656, data 3772/3772, with zero regressions. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Evidence: build/da7/final-gate-six.log.
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-language-cursor: 98.80282%; insns 71/71 diffs 13 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-name-index-holder: 98.943665%; insns 71/71 diffs 12 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-loop-index-holder: 98.943665%; insns 71/71 diffs 12 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
- src/system/iplChannelManager getTitleName__Q33ipl7channel7ManagerCFiii title-language-pointer-walk: 94.985916%; insns 71/71 diffs 16 | POOL IDENTICAL up to 9 (mine=9 base=9)
|
||||
|
||||
## Final retained placeholders
|
||||
|
||||
- TVRCSendStartAsync: best C 99.747475%, 198/198 instructions, nine r6/r7 register differences. Typed command records, reference/pointer lookup helpers, separate pointer lifetimes, const/types, declaration order, and four one-field views did not resolve the tie. Source search completed 166 trials with no gain. Existing exact asm retained.
|
||||
- channel::Manager::getTitleName: best C 98.943665%, 71/71 instructions, 12 address-operand/register differences. Direct member access, language-table pointer, character helper, node/name walking, local cursor/index types, and a two-trial exhausted source search did not match. Original exact asm retained. The initial search stalled at the shared limiter; its owned process was stopped after the local search finished.
|
||||
- CNTCACHEClear: three new compiled shapes (line scanner, line-length updates, read-state struct) produce 13 pooled strings against nine because the existing assembly string blob duplicates ordinary literals. Prior da5 removal of that blob left only five strings: unused cache-writing routines account for four missing literals. Do not tune registers until the pool is reconstructed; no invented dead routines or offset references into the blob were added. Existing exact asm retained.
|
||||
- _CNTCACHEIsTitleRemovable: best C 91.31707%, 80/82 instructions. Assignment reuse, primitive parameter, one-field result, and aggregate return did not reproduce the two missing copies. Source search over the usage helper completed 212 trials without gain. Existing exact asm retained.
|
||||
- _CNTCACHEDeleteContent: best C 95.793106%, 143/145 instructions. Usage-helper lifetime variants, assigned result parameter, const TMD view and declaration ordering did not recover the missing copy/reload. Source search completed 241 trials without gain. Existing exact asm retained.
|
||||
- ISD_GetCardSize: best C 98.39286%, 84/84 instructions, 20 register differences. Output geometry struct, separate scaling value and expression grouping, and primitive width spellings did not improve the prior result. Source search exhausted one legal variant without improvement. Existing exact asm retained.
|
||||
|
||||
Every retained function has at least three distinct compiled source-level attempts in this run. Ghidra exports were checked for every assigned function. Definition-level volatile was considered only where the target shows repeated flag loads; none of the unresolved differences establishes a missing volatile declaration. No volatile or diagnostic pragma was retained. Prior-art GitHub searches for the SDK functions failed with HTTP 401; public web searches for the exact names returned no results.
|
||||
|
||||
## Final validation
|
||||
|
||||
Six of twelve assigned placeholders were replaced with C/C++; six remain as exact assembly. All twelve live symbols independently report objdiff 100.0% and identical instructions after the final clean build. The converted functions are:
|
||||
|
||||
| Function | Instructions | Conversion commit |
|
||||
| --- | --- | --- |
|
||||
| snd::System::resetAllSound | 68/68, diffs 0 | d47f9fea |
|
||||
| gui::PaneComponent::draw | 104/104, diffs 0 | 38f6f578 |
|
||||
| LibTVRC::__FTVRCLoop0Handler | 120/120, diffs 0 | 0b1d74f7 |
|
||||
| push_button_queue | 28/28, diffs 0 | 05363f2b |
|
||||
| ChannelSelect::updateDiskState | 230/230, diffs 0 | 467eb0a2 |
|
||||
| inputform::Base::create | 72/72, diffs 0 | 8c40bbde |
|
||||
|
||||
The resetAllSound return declaration remains the existing int declaration; the target does not define a return value, as recorded above. The jump table metadata correction changes only its anonymous local name; byte extent and relocation targets are unchanged. Both details require parent source review.
|
||||
|
||||
| Unit | Instruction-exact before -> after | Exact code before -> after | Data before -> after |
|
||||
| --- | --- | --- | --- |
|
||||
| TVRC | 9/9 -> 9/9 | 2312/2312 -> 2312/2312 | 280/280 -> 280/280 |
|
||||
| iplChannelManager | 74/74 -> 74/74 | 12552/12552 -> 12552/12552 | 1080/1080 -> 1080/1080 |
|
||||
| iplSound | 56/57 -> 56/57 | 5576/5576 -> 5576/5576 | 3316/3316 -> 3316/3316 |
|
||||
| iplChannelSelect | 102/102 -> 102/102 | 25668/25668 -> 25668/25668 | 2336/2336 -> 2336/2336 |
|
||||
| iplButton | 41/42 -> 41/42 | 7624/7624 -> 7624/7624 | 1744/1744 -> 1744/1744 |
|
||||
| tiGUIManager | 42/42 -> 42/42 | 5916/5916 -> 5916/5916 | 392/392 -> 392/392 |
|
||||
| tiInputForm | 219/221 -> 219/221 | 47928/50656 -> 47928/50656 | 3772/3772 -> 3772/3772 |
|
||||
| cntcache | 5/5 -> 5/5 | 1828/1828 -> 1828/1828 | 280/280 -> 280/280 |
|
||||
| sdi_api | 22/22 -> 22/22 | 5948/5948 -> 5948/5948 | 248/248 -> 248/248 |
|
||||
|
||||
The existing alias differences account for the sound and button instruction-exact counters. tiInputForm retains its two pre-existing non-exact functions and remains unlinked. Converted function counts do not raise the exact totals because their previous asm bodies were already exact.
|
||||
|
||||
Final full non-quick gate: build/da7/final-gate-six.log. All nine pools identical; zero regressions, forbidden-pattern additions, or readability warnings. Every assigned data section remains exact. Independent twelve-symbol audit: build/da7/final-audit.txt.
|
||||
|
||||
GATE PASS
|
||||
|
||||
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
|
||||
Local conversion commits only; no push, PR, merge, rebase, worker spawn, or other-worktree edit. Scratch trials and exported evidence remain under build/da7/.
|
||||
|
||||
Integration boundary: the leaf is agent/w1005/da7, based on 5e7b5ad0. At the first handoff check, the shared origin/main ref had advanced by four commits to 66ff3a4331e21dc76b13a9f3314def947c4616dd. Those four reviewed commits do not replace an assigned source file, but 02fe1755 changes configure.py and the shared nw4r/lyt/pane.h. Main continued advancing during the final status checks, so this is a recorded checkpoint, not a claim that the leaf is synchronized. The six conversions were built and gated on this leaf; the parent must independently verify them on current main. No merge or rebase was attempted. No owned source-search process remains running.
|
||||
313
tools/decomp-assist/f5b.attempts.md
Normal file
313
tools/decomp-assist/f5b.attempts.md
Normal file
@@ -0,0 +1,313 @@
|
||||
# f5b focus round
|
||||
|
||||
Branch agent/w1005/f5b, base 491bba6a. Own Address::onEventDerived, then AddressEdit::create, get_friendinfo and update_friendinfo. Fresh origin fetch confirms the base. Prior f5 drag match is merged as #1159 and must stay exact.
|
||||
|
||||
Acceptance: readable C/C++, identical pools, exact-name objdiff 100.0 and zero raw instruction differences for each retained candidate, no other function drops, then clean full gate and DOL SHA1. Matching phase only; configure.py remains unchanged. No pushes, PRs, merges, rebases or other-worktree edits.
|
||||
|
||||
Read scene4, gk3 and a23h history, plus f5's 88 manual update measurements and three completed 1200-second searches. Reuse those findings and avoid repeating unchanged hypotheses. Fresh experiments and all rejected variants remain in /tmp/f5b-work.
|
||||
|
||||
## Baseline and trials
|
||||
|
||||
- event-baseline: Fresh real-command compilation on 491bba6a. {"score": 98.42593, "insns": [270, 270], "diffs": 81, "drops": {}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-baseline/`.
|
||||
- create-baseline: Fresh real-command compilation on 491bba6a. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-baseline/`.
|
||||
- get-baseline: Fresh real-command compilation on 491bba6a. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-baseline/`.
|
||||
- update-baseline: Fresh real-command compilation on 491bba6a. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-baseline/`.
|
||||
- event-r1-manager-pointer: Give the full pane-name lookup a typed inline return boundary. {"error": "pl-workers\\data-\n# d5\\include\\scene\\iplSceneBase.h:6\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\scene\\iplFaderSceneBase.h:4\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\iplSceneUIHeader.h:5\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\scene\\address\\iplAddress.h:4\n# Z:\\tmp\\f5b-work\\event-r1-manager-pointer\\iplAddress.cpp:6)\n### mwcceppc.exe Compiler:\n# File: Z:\\tmp\\f5b-work\\event-r1-manager-pointer\\iplAddress.cpp\n# ----------------------------------------------------------------\n# 1422: const char* paneName = getEventPaneName(mpManager, compId); \n# Error: ^\n# (10248) function call '[ipl::scene::Address].getEventPaneName({lval} \n# gui::Manager *, {lval} unsigned long)' does not match\n# 'ipl::scene::getEventPaneName(ipl::gui::PaneManager *, unsigned long)'\n# Too many errors printed, aborting program\n\nUser break, cancelled...\n"}. Evidence `/tmp/f5b-work/event-r1-manager-pointer/`.
|
||||
- event-r1-manager-reference: Give the full pane-name lookup a typed inline return boundary. {"error": "orkers\\data-\n# d5\\include\\scene\\iplSceneBase.h:6\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\scene\\iplFaderSceneBase.h:4\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\iplSceneUIHeader.h:5\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\scene\\address\\iplAddress.h:4\n# Z:\\tmp\\f5b-work\\event-r1-manager-reference\\iplAddress.cpp:6)\n### mwcceppc.exe Compiler:\n# File: Z:\\tmp\\f5b-work\\event-r1-manager-reference\\iplAddress.cpp\n# ------------------------------------------------------------------\n# 1422: const char* paneName = getEventPaneName(*mpManager, compId); \n# Error: ^\n# (10248) function call '[ipl::scene::Address].getEventPaneName({lval} \n# gui::Manager, {lval} unsigned long)' does not match\n# 'ipl::scene::getEventPaneName(ipl::gui::PaneManager &, unsigned long)'\n# Too many errors printed, aborting program\n\nUser break, cancelled...\n"}. Evidence `/tmp/f5b-work/event-r1-manager-reference/`.
|
||||
- event-r1-pane-reference: Give the full pane-name lookup a typed inline return boundary. {"score": 98.42593, "insns": [270, 270], "diffs": 81, "drops": {}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-r1-pane-reference/`.
|
||||
- event-r1-button-getter: Typed scene getter controls the button receiver lifetime. {"score": 100.0, "insns": [270, 270], "diffs": 0, "drops": {}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-r1-button-getter/`.
|
||||
- event-r1-button-reference-getter: Typed scene getter controls the button receiver lifetime. {"score": 100.0, "insns": [270, 270], "diffs": 0, "drops": {}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-r1-button-reference-getter/`.
|
||||
- event-r1-mail-getter: Typed mail-scene getter boundary before exit animation. {"score": 98.37037, "insns": [270, 270], "diffs": 84, "drops": {"onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface": [98.42593, 98.37037]}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-r1-mail-getter/`.
|
||||
- event-r1-controller-getter: Typed controller lookup boundary in both hover cases. {"score": 98.42593, "insns": [270, 270], "diffs": 81, "drops": {}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-r1-controller-getter/`.
|
||||
- event-r1-animation-pointer: Keep each animation operation behind a typed layout boundary. {"score": 98.42593, "insns": [270, 270], "diffs": 81, "drops": {}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-r1-animation-pointer/`.
|
||||
- event-r1-animation-reference: Keep each animation operation behind a typed layout boundary. {"score": 98.42593, "insns": [270, 270], "diffs": 81, "drops": {}, "pool": "POOL IDENTICAL up to 81 (mine=81 base=81)"}. Evidence `/tmp/f5b-work/event-r1-animation-reference/`.
|
||||
|
||||
## Address exact candidate
|
||||
|
||||
A typed getEventButton() inline lookup fixes all 81 register differences without changing the 270-instruction stream or pool. Both pointer-return and reference-return variants were exact; retain the smaller pointer form. Every Address function remains at its baseline or improves, including the merged drag match. Other helper boundaries did not help. The two failed manager experiments passed the derived PaneManager type where the stored receiver is the base gui::Manager; they were not retained.
|
||||
|
||||
- create-r1-board-file-getter: Typed Board lookup boundary, following the exact event Button getter. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r1-board-file-getter/`.
|
||||
- create-r1-board-file-reference: Typed Board lookup boundary, following the exact event Button getter. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r1-board-file-reference/`.
|
||||
- create-r1-board-scene-getter: Typed Board lookup boundary, following the exact event Button getter. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r1-board-scene-getter/`.
|
||||
- create-r1-text-pointer: Inline named-pane setter binds the actual text before its virtual pane lookup. {"score": 95.99756, "insns": [802, 820], "diffs": 318, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 95.99756]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r1-text-pointer/`.
|
||||
- create-r1-text-reference: Inline named-pane setter binds the actual text before its virtual pane lookup. {"score": 95.99756, "insns": [802, 820], "diffs": 318, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 95.99756]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r1-text-reference/`.
|
||||
- create-r1-text-wrapper: Inline named-pane setter binds the actual text before its virtual pane lookup. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r1-text-wrapper/`.
|
||||
|
||||
Address candidate object rebuild: pool 81/81 identical; onEventDerived 270/270, raw ctxdiff zero. Incremental full gate GATE PASS, Address 101/101 instruction-exact, code 23988/23988, data 1964/1964, zero regressions and correct DOL SHA1. Final clean gate remains required. Evidence: /tmp/f5b-work/address-quick-gate.log.
|
||||
- create-r2-member-direct: Guarded inline member setter binds text across the pane lookup. {"error": "### mwcceppc.exe Compiler:\n# File: Z:\\tmp\\f5b-work\\create-r2-member-direct\\iplAddressEdit.cpp\n# -------------------------------------------------------------------\n# 2: #include \"/tmp/f5b-work/create-r2-member-direct-header/iplAddressEdit.h\" \n# Error: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n# (10151) the file '/tmp/f5b-work/create-r2-member-direct-header/\n# iplAddressEdit.h' cannot be opened\n# Too many errors printed, aborting program\n\nUser break, cancelled...\n"}. Evidence `/tmp/f5b-work/create-r2-member-direct/`.
|
||||
- create-r2-member-wrapper: Guarded inline member setter binds text across the pane lookup. {"error": "### mwcceppc.exe Compiler:\n# File: Z:\\tmp\\f5b-work\\create-r2-member-wrapper\\iplAddressEdit.cpp\n# --------------------------------------------------------------------\n# 2: #include \"/tmp/f5b-work/create-r2-member-wrapper-header/iplAddressEdit.h\" \n# Error: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n# (10151) the file '/tmp/f5b-work/create-r2-member-wrapper-header/\n# iplAddressEdit.h' cannot be opened\n# Too many errors printed, aborting program\n\nUser break, cancelled...\n"}. Evidence `/tmp/f5b-work/create-r2-member-wrapper/`.
|
||||
- create-r2-margin-getters: Inline margin value boundary inside the new expression, preserving allocation condition. {"score": 96.42927, "insns": [808, 820], "diffs": 791, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 96.42927]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r2-margin-getters/`.
|
||||
- create-r2-margin-helper-arg: Inline margin value boundary inside the new expression, preserving allocation condition. {"score": 96.42927, "insns": [808, 820], "diffs": 791, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 96.42927]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r2-margin-helper-arg/`.
|
||||
- create-r2-member-direct-local: Same guarded setter test with a source-local private include path. {"score": 95.99756, "insns": [802, 820], "diffs": 318, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 95.99756]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r2-member-direct-local/`.
|
||||
- create-r2-member-wrapper-local: Same guarded setter test with a source-local private include path. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r2-member-wrapper-local/`.
|
||||
|
||||
Create search seeds 50, 500 and 5000 queued for 1200 seconds each from the best manual state, still baseline. Current shared srcsearch copied privately with only the already-proven owned-definition locator fix; mutation safety guards and the global 24-slot limiter are unchanged. Output directories /tmp/f5b-work/create-search-<seed>.
|
||||
- get-r1-arguments-edit-pane-text: Small setter boundary passes the actual pane and text values in a natural alternate parameter order. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-arguments-edit-pane-text/`.
|
||||
- get-r1-arguments-edit-text-pane: Small setter boundary passes the actual pane and text values in a natural alternate parameter order. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-arguments-edit-text-pane/`.
|
||||
- get-r1-arguments-pane-edit-text: Small setter boundary passes the actual pane and text values in a natural alternate parameter order. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-arguments-pane-edit-text/`.
|
||||
- get-r1-arguments-pane-text-edit: Small setter boundary passes the actual pane and text values in a natural alternate parameter order. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-arguments-pane-text-edit/`.
|
||||
- get-r1-arguments-text-edit-pane: Small setter boundary passes the actual pane and text values in a natural alternate parameter order. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-arguments-text-edit-pane/`.
|
||||
- get-r1-arguments-text-pane-edit: Small setter boundary passes the actual pane and text values in a natural alternate parameter order. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-arguments-text-pane-edit/`.
|
||||
- get-r1-wrapper: Vary the actual pane lookup object boundary without caching an unrelated pointer. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-wrapper/`.
|
||||
- get-r1-root-reference: Vary the actual pane lookup object boundary without caching an unrelated pointer. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r1-root-reference/`.
|
||||
- get-search-seed: Name the real cache index and text lifetimes to expose source-search declaration mutations. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-search-seed/`.
|
||||
- update-r1-scene-pointer: Use the typed scene getter boundary that made Address event handling exact. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r1-scene-pointer/`.
|
||||
- update-r1-scene-reference: Use the typed scene getter boundary that made Address event handling exact. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r1-scene-reference/`.
|
||||
- update-r1-commit-pointer: Group the cache update and parent-list refresh behind one real operation boundary. {"error": "rSceneBase.h:4\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\iplSceneHeader.h:5\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\scene\\address\\iplAddressEdit.h:4\n# Z:\\tmp\\f5b-work\\update-r1-commit-pointer\\iplAddressEdit.cpp:2)\n### mwcceppc.exe Compiler:\n# File: Z:\\tmp\\f5b-work\\update-r1-commit-pointer\\iplAddressEdit.cpp\n# --------------------------------------------------------------------\n# 313: return; \n# Warning: ^\n# (10184) return value expected\n### mwcceppc.exe Compiler:\n# 316: } \n# Warning: ^\n# (10184) return value expected\n### mwcceppc.exe Compiler:\n# 2885: pl::scene::Address*>(ipl::System::getScene(0x14))->reset_friend(); \n# Error: ^\n# (10381) illegal access from 'ipl::scene::Address' to protected/private \n# member 'ipl::scene::Address::reset_friend()'\n# Too many errors printed, aborting program\n\nUser break, cancelled...\n"}. Evidence `/tmp/f5b-work/update-r1-commit-pointer/`.
|
||||
- update-r1-commit-reference: Group the cache update and parent-list refresh behind one real operation boundary. {"error": "Base.h:4\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\iplSceneHeader.h:5\n# Z:\\mnt\\drive2\\projects\\wii-ipl-workers\\data-\n# d5\\include\\scene\\address\\iplAddressEdit.h:4\n# Z:\\tmp\\f5b-work\\update-r1-commit-reference\\iplAddressEdit.cpp:2)\n### mwcceppc.exe Compiler:\n# File: Z:\\tmp\\f5b-work\\update-r1-commit-reference\\iplAddressEdit.cpp\n# ----------------------------------------------------------------------\n# 313: return; \n# Warning: ^\n# (10184) return value expected\n### mwcceppc.exe Compiler:\n# 316: } \n# Warning: ^\n# (10184) return value expected\n### mwcceppc.exe Compiler:\n# 2885: pl::scene::Address*>(ipl::System::getScene(0x14))->reset_friend(); \n# Error: ^\n# (10381) illegal access from 'ipl::scene::Address' to protected/private \n# member 'ipl::scene::Address::reset_friend()'\n# Too many errors printed, aborting program\n\nUser break, cancelled...\n"}. Evidence `/tmp/f5b-work/update-r1-commit-reference/`.
|
||||
|
||||
Get-friendinfo seeds 51, 501 and 5001 queued with the same 1200-second budget and unchanged limiter. The named-local seed compiled identically to baseline: 82/84 instructions, 88.03571%, 66 positional differences, identical pool and zero drops.
|
||||
- create-r3-const-margins: Test the genuine margin value or reference lifetime across vector construction. {"score": 96.42927, "insns": [808, 820], "diffs": 791, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 96.42927]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r3-const-margins/`.
|
||||
- create-r3-static-margins: Test the genuine margin value or reference lifetime across vector construction. {"score": 96.42927, "insns": [808, 820], "diffs": 791, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 96.42927]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r3-static-margins/`.
|
||||
- create-r3-reference-margins: Test the genuine margin value or reference lifetime across vector construction. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r3-reference-margins/`.
|
||||
- create-r3-double-margins: Test the genuine margin value or reference lifetime across vector construction. {"score": 97.40976, "insns": [818, 820], "diffs": 329, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 97.40976]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r3-double-margins/`.
|
||||
- create-r3-heap-getter: Give the final constructor heap argument a typed value boundary. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r3-heap-getter/`.
|
||||
- create-r3-heap-reference: Give the final constructor heap argument a typed value boundary. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r3-heap-reference/`.
|
||||
- get-r2-const-array-ref-direct: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-const-array-ref-direct/`.
|
||||
- get-r2-const-array-ref-wrapper: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-const-array-ref-wrapper/`.
|
||||
- get-r2-array-ref-direct: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-array-ref-direct/`.
|
||||
- get-r2-array-ref-wrapper: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-array-ref-wrapper/`.
|
||||
- get-r2-const-array-pointer-direct: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-const-array-pointer-direct/`.
|
||||
- get-r2-const-array-pointer-wrapper: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-const-array-pointer-wrapper/`.
|
||||
- update-r2-cache-getter: Typed cache/index accessor boundaries around the final friend update. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r2-cache-getter/`.
|
||||
- get-r2-edit-pointer-direct: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-edit-pointer-direct/`.
|
||||
- update-r2-index-getter: Typed cache/index accessor boundaries around the final friend update. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r2-index-getter/`.
|
||||
- update-r2-both-getter: Typed cache/index accessor boundaries around the final friend update. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r2-both-getter/`.
|
||||
- get-r2-edit-pointer-wrapper: Preserve the actual String array or enclosing edit accessor type across pane lookup. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r2-edit-pointer-wrapper/`.
|
||||
- update-r2-commit-member: A member boundary retains the real friend access permission while grouping cache update and list refresh. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r2-commit-member/`.
|
||||
- get-r3-load-name-pointer: Return the actual name buffer from the operation that fills it. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r3-load-name-pointer/`.
|
||||
- get-r3-load-buffers-pointer: Return populated text buffers at both real String operation boundaries. {"score": 88.09524, "insns": [84, 84], "diffs": 42, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r3-load-buffers-pointer/`.
|
||||
- get-r3-load-name-reference: Return the actual name buffer from the operation that fills it. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r3-load-name-reference/`.
|
||||
- get-r3-load-buffers-reference: Return populated text buffers at both real String operation boundaries. {"score": 88.09524, "insns": [84, 84], "diffs": 42, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r3-load-buffers-reference/`.
|
||||
- update-search-seed: Combine the prior named-local seed with a typed cache getter for a new source-search round. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-search-seed/`.
|
||||
|
||||
Update seeds 52, 502 and 5002 use the prior named-local seed with a new typed cache getter, verified at unchanged 99.42105%, 38/38, two differences. Get-friendinfo seed 50001 uses the best new manual candidate: returning populated display buffers from real String operations gives 84/84 instructions, 88.09524%, 42 positional differences and no drops. Its two added address instructions are duplicated across the format branches, so this is still structurally wrong and is not retained. All runs retain the standard 1200-second budget and 24-slot limiter.
|
||||
- get-r4-display-entry: Keep the display buffer address alive across the real formatting operations. {"score": 92.67857, "insns": [83, 84], "diffs": 36, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r4-display-entry/`.
|
||||
- get-r4-display-before-name: Keep the display buffer address alive across the real formatting operations. {"score": 91.40476, "insns": [83, 84], "diffs": 36, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r4-display-before-name/`.
|
||||
- get-r4-display-before-format: Keep the display buffer address alive across the real formatting operations. {"score": 91.07143, "insns": [83, 84], "diffs": 42, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r4-display-before-format/`.
|
||||
- get-r4-format-boundary: One common formatter return expresses the shared display address after both formatting paths. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r4-format-boundary/`.
|
||||
- get-r5-const-entry-declare: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-const-entry-declare/`.
|
||||
- get-r5-const-entry-name: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-const-entry-name/`.
|
||||
- get-r5-const-after-copy-declare: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-const-after-copy-declare/`.
|
||||
- get-r5-const-after-copy-name: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-const-after-copy-name/`.
|
||||
- get-r5-mutable-entry-declare: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-mutable-entry-declare/`.
|
||||
- get-r5-mutable-entry-name: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-mutable-entry-name/`.
|
||||
- get-r5-mutable-after-copy-declare: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-mutable-after-copy-declare/`.
|
||||
- get-r5-mutable-after-copy-name: Reuse one typed text receiver with separate definite assignments and natural declaration positions. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r5-mutable-after-copy-name/`.
|
||||
- get-r6-text-first: Bind the two real text-setting operands as a typed local value before applying them. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r6-text-first/`.
|
||||
- get-r6-pane-first: Bind the two real text-setting operands as a typed local value before applying them. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r6-pane-first/`.
|
||||
- get-r6-reference-text: Bind the two real text-setting operands as a typed local value before applying them. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r6-reference-text/`.
|
||||
|
||||
Seed get-50001 was still unstarted with an empty log, so it was requeued once from the stronger manual display-entry candidate: 92.67857%, 83/84 instructions, no drops and an identical pool. Its single remaining missing instruction is not yet fixed; the display pointer is computed too early. No trials were discarded, and seed, output directory, time budget and limiter are unchanged.
|
||||
- create-r4-margin-reference-getters: Evaluate ordinary read-only margin objects through references within the new expression. {"score": 96.42927, "insns": [808, 820], "diffs": 791, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 96.42927]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r4-margin-reference-getters/`.
|
||||
- create-r4-heap-first: Name actual portrait-creation arguments in the two natural evaluation orders. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r4-heap-first/`.
|
||||
- create-r4-manager-first: Name actual portrait-creation arguments in the two natural evaluation orders. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r4-manager-first/`.
|
||||
- create-r4-layout-factory: Share the repeated real layout construction operation through a typed factory. {"score": 94.68414, "insns": [827, 820], "diffs": 759, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 94.68414]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r4-layout-factory/`.
|
||||
|
||||
## Retained source audit
|
||||
|
||||
Address source object audit confirms every changed byte lies inside onEventDerived: 106 bytes across its 81 previously differing instruction words. Function names and extents remain identical; getEventButton emits no standalone function. All allocated non-code sections are byte-identical, and the .sbss extent is unchanged. Evidence: /tmp/f5b-work/event-section-audit.json. Literal-reference checking analyzed all three sound arguments in the owned function with no candidates, skips or errors.
|
||||
|
||||
Origin/main advanced from 491bba6a to bfe77b7f with two keyboard commits. The owned source/header files are unchanged there. The assigned branch remains on its original base, following the no-rebase rule; final regression comparisons will name base 491bba6a explicitly.
|
||||
- create-r5-address-pointer: Apply the successful typed scene-return boundary to the parent Address lookup. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r5-address-pointer/`.
|
||||
- create-r5-two-scene-pointer: Combine both real scene lookup boundaries before judging their register interaction. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r5-two-scene-pointer/`.
|
||||
- create-r6-reviewed-search: Recompile the best search spelling while restoring the target-proven signed Mii index load. {"score": 97.55366, "insns": [818, 820], "diffs": 331, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 97.55366]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r6-reviewed-search/`.
|
||||
- create-r5-address-reference: Apply the successful typed scene-return boundary to the parent Address lookup. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r5-address-reference/`.
|
||||
- create-r5-two-scene-reference: Combine both real scene lookup boundaries before judging their register interaction. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r5-two-scene-reference/`.
|
||||
- create-r7-baseline-api-index: Use the API native unsigned index buffer with an explicit signed value at the target-proven load. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r7-baseline-api-index/`.
|
||||
- create-r7-baseline-direct-api-index: Remove the now redundant buffer cast while retaining the signed portrait index value. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r7-baseline-direct-api-index/`.
|
||||
- create-r7-search-api-index: Use the API native unsigned index buffer with an explicit signed value at the target-proven load. {"score": 97.55366, "insns": [818, 820], "diffs": 331, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 97.55366]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r7-search-api-index/`.
|
||||
- create-r7-search-direct-api-index: Remove the now redundant buffer cast while retaining the signed portrait index value. {"score": 97.55366, "insns": [818, 820], "diffs": 331, "drops": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 97.55366]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r7-search-direct-api-index/`.
|
||||
|
||||
## Completed create search review
|
||||
|
||||
- Seed 50: done 290 trials; best-nodrop energy -93.9512; it 180 best-nodrop -93.9512 cnt {'create__Q33ipl5scene11AddressEditFv': 818} score [97.95122]; solution.c present: False.
|
||||
- Seed 500: done 292 trials; best-nodrop energy -93.9512; it 198 best-nodrop -93.9512 cnt {'create__Q33ipl5scene11AddressEditFv': 818} score [97.95122]; solution.c present: False.
|
||||
- Seed 5000: done 289 trials; best-nodrop energy -93.939; it 241 best-nodrop -93.9390 cnt {'create__Q33ipl5scene11AddressEditFv': 818} score [97.939026]; solution.c present: False.
|
||||
|
||||
All three runs used the full 1200-second budget after slot acquisition. Best sources remain 818/820 instructions and below 98%. Their higher scores include an unsigned Mii index buffer that changes the target signed load. Recompiling the best with s16 storage or an explicit s16 value restores that load but gives 97.55366%, below the 97.5561% baseline. Both forms were compiled and rejected. No search changes were retained.
|
||||
|
||||
The current manual archive includes 30 compiled create measurements, 37 get_friendinfo measurements, 8 update_friendinfo measurements and 8 onEventDerived measurements, including each baseline. Six rejected compile attempts are logged separately.
|
||||
|
||||
## First get-friendinfo search results
|
||||
|
||||
- Seed 51: done 237 trials; best-nodrop energy -84.0357; best.c False; solution.c False.
|
||||
- Seed 501: done 238 trials; best-nodrop energy -84.0357; best.c False; solution.c False.
|
||||
- Seed 5001: done 236 trials; best-nodrop energy -84.0357; best.c False; solution.c False.
|
||||
|
||||
These three full 1200-second searches found no improvement from the named-local baseline. The fourth seed still waits to search the stronger 92.67857% early-display-pointer state.
|
||||
|
||||
## Clean full gate
|
||||
|
||||
The non-quick gate ran against pinned branch base 491bba6a. All four pending searches were paused before acquiring a slot or starting their budget, then resumed in a finally block. Evidence: /tmp/f5b-work/gate-search-pause.json. The current source remained unchanged.
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/address/iplAddress] pool: IDENTICAL
|
||||
[src/scene/address/iplAddress] objdiff: code 23988/23988 data 1964/1964 functions 101/101 fuzzy 100.0000 linked code 0
|
||||
[src/scene/address/iplAddress] instruction-exact functions: 101/101
|
||||
[src/scene/address/iplAddress] section .ctors size 4 match 100.0
|
||||
[src/scene/address/iplAddress] section .data size 1880 match 100.0
|
||||
[src/scene/address/iplAddress] section .rodata size 24 match 100.0
|
||||
[src/scene/address/iplAddress] section .sbss size 8 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata size 16 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0
|
||||
[src/scene/address/iplAddress] section .text size 23988 match 100.0
|
||||
[src/scene/address/iplAddress] baseline: code 22908/23988 data 1964 functions 100 fuzzy 99.9291
|
||||
[src/scene/address/iplAddressEdit] pool: IDENTICAL
|
||||
[src/scene/address/iplAddressEdit] objdiff: code 23344/27112 data 2560/2560 functions 91/94 fuzzy 99.5528 linked code 0
|
||||
[src/scene/address/iplAddressEdit] instruction-exact functions: 91/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.55282
|
||||
[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561
|
||||
[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] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.65446 -> 92.69051
|
||||
global fuzzy_match_percent: 99.77653 -> 99.77708
|
||||
global complete_code_percent: 76.20227 -> 76.20227
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Fresh progress and report generation completed after the gate. Address is instruction-exact and all owned sections are 100%; configure.py is unchanged, so linking remains for the parent.
|
||||
- create-text-view-conditional: Select the two real String text views through a small constant-argument inline accessor. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-text-view-conditional/`.
|
||||
- get-text-view-conditional: Select the two real String text views through a small constant-argument inline accessor. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-text-view-conditional/`.
|
||||
- create-text-view-branches: Select the two real String text views through a small constant-argument inline accessor. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-text-view-branches/`.
|
||||
- get-text-view-branches: Select the two real String text views through a small constant-argument inline accessor. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-text-view-branches/`.
|
||||
- create-text-view-selected-local: Select the two real String text views through a small constant-argument inline accessor. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-text-view-selected-local/`.
|
||||
- get-text-view-selected-local: Select the two real String text views through a small constant-argument inline accessor. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-text-view-selected-local/`.
|
||||
- create-text-view-switch: Select the two real String text views through a small constant-argument inline accessor. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-text-view-switch/`.
|
||||
- get-text-view-switch: Select the two real String text views through a small constant-argument inline accessor. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-text-view-switch/`.
|
||||
|
||||
## Updated lever pack and compiler diagnostics
|
||||
|
||||
Read the new Ghidra exports for every owned function. Event control flow agrees with the retained exact source. get_friendinfo and update_friendinfo have the same calls and branch structure as the current source. The create export truncates at its prologue with bad instruction data, so target assembly remains the authority. New lever 18 permits optimization pragmas for diagnosis only; all experiments stay in private temporary sources and no pragma is retained.
|
||||
|
||||
- get-r9-diagnostic-opt_propagation: Private diagnostic only: determine whether opt_propagation controls the surviving copy or address scheduling difference. {"score": 91.84524, "insns": [82, 84], "diffs": 62, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r9-diagnostic-opt_propagation/`.
|
||||
- get-r9-diagnostic-opt_common_subs: Private diagnostic only: determine whether opt_common_subs controls the surviving copy or address scheduling difference. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r9-diagnostic-opt_common_subs/`.
|
||||
- get-r9-diagnostic-scheduling: Private diagnostic only: determine whether scheduling controls the surviving copy or address scheduling difference. {"score": 72.54762, "insns": [82, 84], "diffs": 69, "drops": {"get_friendinfo__Q33ipl5scene11AddressEditFv": [88.03571, 72.54762]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r9-diagnostic-scheduling/`.
|
||||
- get-r9-diagnostic-opt_dead_assignments: Private diagnostic only: determine whether opt_dead_assignments controls the surviving copy or address scheduling difference. {"score": 91.84524, "insns": [82, 84], "diffs": 62, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r9-diagnostic-opt_dead_assignments/`.
|
||||
- update-r9-diagnostic-opt_propagation: Private diagnostic only: determine whether opt_propagation controls the surviving copy or address scheduling difference. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r9-diagnostic-opt_propagation/`.
|
||||
- update-r9-diagnostic-opt_common_subs: Private diagnostic only: determine whether opt_common_subs controls the surviving copy or address scheduling difference. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r9-diagnostic-opt_common_subs/`.
|
||||
- update-r9-diagnostic-scheduling: Private diagnostic only: determine whether scheduling controls the surviving copy or address scheduling difference. {"score": 62.63158, "insns": [38, 38], "diffs": 17, "drops": {"update_friendinfo__Q33ipl5scene11AddressEditFv": [99.42105, 62.63158]}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r9-diagnostic-scheduling/`.
|
||||
- update-r9-diagnostic-opt_dead_assignments: Private diagnostic only: determine whether opt_dead_assignments controls the surviving copy or address scheduling difference. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r9-diagnostic-opt_dead_assignments/`.
|
||||
- create-r10-cstyle-casts: Test the new allocator hypothesis that C-style and C++ casts give different temporary numbering. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r10-cstyle-casts/`.
|
||||
- get-r10-cstyle-casts: Test the new allocator hypothesis that C-style and C++ casts give different temporary numbering. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r10-cstyle-casts/`.
|
||||
- update-r10-cstyle-casts: Test the new allocator hypothesis that C-style and C++ casts give different temporary numbering. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r10-cstyle-casts/`.
|
||||
- update-r10-const-count: Keep the real bounded name-copy operation and vary inline parameter const qualification per the new allocator hypothesis. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r10-const-count/`.
|
||||
- update-r10-plain-count: Keep the real bounded name-copy operation and vary inline parameter const qualification per the new allocator hypothesis. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r10-plain-count/`.
|
||||
- update-r10-const-pointer-count: Keep the real bounded name-copy operation and vary inline parameter const qualification per the new allocator hypothesis. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r10-const-pointer-count/`.
|
||||
|
||||
The eight private diagnostics identify no exact optimization-mode result. Disabling propagation/dead assignments leaves get_friendinfo at 82/84 instructions; disabling scheduling worsens both functions. No diagnostics are retained. C-style cast spellings in all three open functions and primitive/pointer const qualifications in the bounded-name helper also preserve the original scores. These are evidence only, not production changes.
|
||||
- get-r11-root-pointer: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r11-root-pointer/`.
|
||||
- update-r12-copy-member: Use an actual String member operation instead of a free getter/copy helper; keep the bounded copy and optional clear unchanged. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r12-copy-member/`.
|
||||
- update-r12-copy-member-count: Use an actual String member operation instead of a free getter/copy helper; keep the bounded copy and optional clear unchanged. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r12-copy-member-count/`.
|
||||
- update-r12-copy-member-const-count: Use an actual String member operation instead of a free getter/copy helper; keep the bounded copy and optional clear unchanged. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r12-copy-member-const-count/`.
|
||||
- update-r12-store-member: Use an actual String member operation instead of a free getter/copy helper; keep the bounded copy and optional clear unchanged. {"score": 99.42105, "insns": [38, 38], "diffs": 2, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/update-r12-store-member/`.
|
||||
- create-r11-root-pointer: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r11-root-pointer/`.
|
||||
- get-r11-root-reference: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r11-root-reference/`.
|
||||
- create-r11-root-reference: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r11-root-reference/`.
|
||||
- get-r11-recursive-const: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r11-recursive-const/`.
|
||||
- create-r11-recursive-const: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r11-recursive-const/`.
|
||||
- get-r11-recursive-plain: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r11-recursive-plain/`.
|
||||
- create-r11-recursive-plain: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r11-recursive-plain/`.
|
||||
- get-r11-root-local: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 88.03571, "insns": [82, 84], "diffs": 66, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/get-r11-root-local/`.
|
||||
- create-r11-root-local: Inline only the virtual lookup and text application while evaluating the actual root outside the boundary; test statement count and parameter lifetime. {"score": 97.5561, "insns": [818, 820], "diffs": 329, "drops": {}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)"}. Evidence `/tmp/f5b-work/create-r11-root-local/`.
|
||||
|
||||
Five further root-pane boundaries, each tested in create and get_friendinfo, preserve the original output. Four String::copyNameTo member forms (fixed bound, bound parameter, const bound parameter, combined clear/copy) preserve update_friendinfo at 99.42105%, 38/38 and two differences. The guarded declarations exist only in the private temporary headers; none is retained.
|
||||
|
||||
Manual archive after the updated lever checks: event: 8 successful measurements and 2 rejected compiles, create: 40 successful measurements and 2 rejected compiles, get: 51 successful measurements and 0 rejected compiles, update: 20 successful measurements and 2 rejected compiles. Counts include baselines and eight diagnostic-only measurements. The six compile errors are the previously logged private-type/include-path experiments. Private test-runner selector and quoting mistakes were corrected before compilation and added no source experiment.
|
||||
|
||||
## Declaration-parser repair for update searches
|
||||
|
||||
Seed 5002 exited after 14 trials with no improvement: every mutable integer declaration had become `unsigned int`, which the shared tool can generate but its single-word declaration parser cannot read back. With the remaining pointer declarations separated, there were no further recognized mutations. This is not an exhausted 1200-second search. The private copy now recognizes that generated type; a direct check finds 11 valid declaration mutations in the formerly absorbing state. The global 24-slot limiter and all mutation dependency/safety guards are unchanged.
|
||||
|
||||
Three replacement update seeds (52, 502, 5002) were queued with fresh 1200-second budgets in /tmp/f5b-work/update-decl-search-<seed>. Original logs remain intact and their outcomes will be counted separately. No shared tool or other worktree was edited.
|
||||
|
||||
Initial update searches ended without any best/solution output: seed 52: 315 trials, seed 502: 315 trials, seed 5002: 14 trials. Seeds 52 and 502 ran through their budgets; seed 5002 stopped at the diagnosed parser state. The three fixed-parser runs remain active to explore the declared integer spellings.
|
||||
|
||||
The fourth get_friendinfo search completed 312 trials over its full budget. Its best objective stayed at 92.67857%, 83/84 instructions, with no best.c or solution.c output. The earlier three get searches also had no improvement. The retained function therefore remains at the original 88.03571%, 82/84; the private fuzzy seed is not retained.
|
||||
|
||||
All three update searches with the declaration-parser repair completed without an improved candidate. update-decl-search-52: 289 trials in 1209.851 seconds; update-decl-search-502: 269 trials in 1200.658 seconds; update-decl-search-5002: 267 trials in 1202.936 seconds. None produced best.c or solution.c. Each used a normal shared search slot and its full 1200-second budget.
|
||||
|
||||
## Final handoff
|
||||
|
||||
- create-search-50: 290 trials, final objective -93.9512, best source True, solution source False, highest logged improvement 97.95122.
|
||||
- create-search-500: 292 trials, final objective -93.9512, best source True, solution source False, highest logged improvement 97.95122.
|
||||
- create-search-5000: 289 trials, final objective -93.939, best source True, solution source False, highest logged improvement 97.939026.
|
||||
- get-search-51: 237 trials, final objective -84.0357, best source False, solution source False, highest logged improvement None.
|
||||
- get-search-501: 238 trials, final objective -84.0357, best source False, solution source False, highest logged improvement None.
|
||||
- get-search-5001: 236 trials, final objective -84.0357, best source False, solution source False, highest logged improvement None.
|
||||
- update-search-52: 315 trials, final objective -99.421, best source False, solution source False, highest logged improvement None.
|
||||
- update-search-502: 315 trials, final objective -99.421, best source False, solution source False, highest logged improvement None.
|
||||
- update-search-5002: 14 trials, final objective -99.421, best source False, solution source False, highest logged improvement None.
|
||||
- get-search-50001: 312 trials, final objective -90.6786, best source False, solution source False, highest logged improvement None.
|
||||
- update-decl-search-52: 289 trials, final objective -99.421, best source False, solution source False, highest logged improvement None.
|
||||
- update-decl-search-502: 269 trials, final objective -99.421, best source False, solution source False, highest logged improvement None.
|
||||
- update-decl-search-5002: 267 trials, final objective -99.421, best source False, solution source False, highest logged improvement None.
|
||||
|
||||
All 13 recorded search runs have ended, 3363 source-search trials total. The seven create/get searches used their full 1200-second budgets; the three declaration-repair update searches also completed their full budgets after slot acquisition. The initial update searches are counted separately because the parser could become stuck after generating unsigned int declarations. Every generated candidate remains below 100.0%; no search source was retained.
|
||||
|
||||
Address::onEventDerived is exact at 100.0%, 270/270 instructions with zero differences. Address now has 101/101 instruction-exact functions, 23988/23988 matched code bytes and 1964/1964 matched data bytes. The source commit is 944e82d9. All allocated data bytes and other function outputs are unchanged. The unit remains NonMatching under the current matching-only worker contract; the parent owns linking.
|
||||
|
||||
AddressEdit::create stays 97.5561%, 818/820 instructions. It rematerializes the two text-buffer addresses at their call sites instead of retaining them across virtual pane lookups, and retains register and constructor argument-scheduling differences. Typed scene/file/heap getters, named-pane setters, margin types/lifetimes, constructor factories, API index forms and three full source searches did not produce an exact result.
|
||||
|
||||
AddressEdit::get_friendinfo stays 88.03571%, 82/84 instructions. Target retains the two text-buffer addresses across virtual pane calls. Array/pointer/reference accessors, argument-order helpers, formatting-return helpers, early declarations and local aggregate views failed to reproduce it. The strongest readable private candidate reached 92.67857%, 83/84, by preserving the display address too early; another reached 84/84 with duplicated branch-local address formation. Neither is exact or retained. Four full search runs exhausted those starting states.
|
||||
|
||||
AddressEdit::update_friendinfo stays 99.42105%, 38/38 instructions. The remaining difference is still the order of wcsncpy source r4 and destination r3 setup. Six new scene/cache/index/commit helper experiments, the checked named-local seed and three new full searches with the declaration-parser repair did not change it. Earlier f5 trials and completed searches were reused before this round. Additional cast, parameter-const, String member-copy, root-pane boundary and diagnostic-only tests from the updated lever pack found no exact result; their measurements are logged above.
|
||||
|
||||
The clean full gate recorded above validates the final source: GATE PASS, correct DOL SHA1, identical pools, zero regressions, zero added forbidden patterns and zero readability warnings. Only this evidence log changed after that gate. No source or header changes from the AddressEdit trials were retained.
|
||||
|
||||
## Gate after capacity-error recovery
|
||||
|
||||
The resumed branch is still agent/w1005/f5b at 944e82d9, with only this evidence log uncommitted. All 13 searches completed before the interruption. The current origin/main b7a912ce02ba00ac94d29a738c03473cd93490f1 has no changes to the four owned source/header paths since base 491bba6a. No branch movement or source change was needed.
|
||||
|
||||
At the user's request, repeated the clean full gate with both owned units and --base 491bba6a. The fresh gate passes, so the source match and this evidence log are retained.
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/address/iplAddress] pool: IDENTICAL
|
||||
[src/scene/address/iplAddress] objdiff: code 23988/23988 data 1964/1964 functions 101/101 fuzzy 100.0000 linked code 0
|
||||
[src/scene/address/iplAddress] instruction-exact functions: 101/101
|
||||
[src/scene/address/iplAddress] section .ctors size 4 match 100.0
|
||||
[src/scene/address/iplAddress] section .data size 1880 match 100.0
|
||||
[src/scene/address/iplAddress] section .rodata size 24 match 100.0
|
||||
[src/scene/address/iplAddress] section .sbss size 8 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata size 16 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0
|
||||
[src/scene/address/iplAddress] section .text size 23988 match 100.0
|
||||
[src/scene/address/iplAddress] baseline: code 22908/23988 data 1964 functions 100 fuzzy 99.9291
|
||||
[src/scene/address/iplAddressEdit] pool: IDENTICAL
|
||||
[src/scene/address/iplAddressEdit] objdiff: code 23344/27112 data 2560/2560 functions 91/94 fuzzy 99.5528 linked code 0
|
||||
[src/scene/address/iplAddressEdit] instruction-exact functions: 91/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.55282
|
||||
[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561
|
||||
[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] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.65446 -> 92.69051
|
||||
global fuzzy_match_percent: 99.77653 -> 99.77708
|
||||
global complete_code_percent: 76.20227 -> 76.20227
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Fresh progress/report generation after the recovery gate confirms the four target scores: 100.0, 97.5561, 88.03571 and 99.42105. DOL SHA1 is unchanged. Every open function has more than three distinct compiled source-level attempts; the archive contains 119 successful manual measurements and 3363 source-search trials across 13 completed runs. Final git diff --check passes. Only the evidence log changed after this gate.
|
||||
706
tools/decomp-assist/g3.attempts.md
Normal file
706
tools/decomp-assist/g3.attempts.md
Normal file
@@ -0,0 +1,706 @@
|
||||
# g3 retry
|
||||
|
||||
Assigned branch agent/w1005/g3, baseline 5e7b5ad045a8cf930106fab1a6c3294b0015e38b. Work is confined to sol-high and the six assigned units. The local origin/main ref advanced, but its six sources still equal the assigned baseline. No fetch is attempted because the user reports GitHub unavailable.
|
||||
|
||||
Read f-round.md, common.md, levers.md including 15-20, and the f11 attempts from agent/w1004/f11. Matching only. Acceptance requires exact-name objdiff 100%, ctxdiff zero differences, unchanged pools, no regressions, readable and equivalent source, and the full clean gate with the retail DOL hash. Failed trials remain under build/g3 and are not retained in source.
|
||||
|
||||
## NWC24InitDlTask
|
||||
|
||||
The first difference is the zero used for homePath initialization and the initial null header: source r28, target r29. The first title word uses source r29, target r28. All 23 differing instructions are register names; 144 instructions agree in operation and order. The original-object Ghidra export and News Channel prior art confirm the same calls and branches. Lever 18a targets the header/zero and first title word lifetimes across scopes and inline boundaries. The f11 tests of shared parsers, default initializers, cached-header helpers, paired title fields and return spellings are not repeated unchanged. No shared-field reload evidence supports lever 19 here.
|
||||
ATTEMPT nwc/0001 | 18a initialized header local front | 96.076385% | insns 145/144; diffs 134; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0002 | 18a initialized header local after_path | 98.888885% | insns 145/144; diffs 134; first [10, 11, 12, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT nwc/0003 | 18a initialized header local after_ids | 98.888885% | insns 145/144; diffs 134; first [10, 11, 12, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT nwc/0004 | 18a header value in one-field aggregate | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0005 | 18a one-field title word nwc24IdHigh | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\nwc\0005.c
|
||||
# ----------------------------
|
||||
# 325: task->nwc24IdHigh = nwc24IdHigh;
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from 'struct ' to
|
||||
# 'unsigned long'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT nwc/0006 | 18a one-field title word nwc24IdLow | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\nwc\0006.c
|
||||
# ----------------------------
|
||||
# 326: task->nwc24IdLow = nwc24IdLow;
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from 'struct ' to
|
||||
# 'unsigned long'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT nwc/0007 | 18a only High title word numbered inside helper | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\nwc\0007.c
|
||||
# ----------------------------
|
||||
# 289: u32 titleWord = strtoul(path + 7, NULL, 16);
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT nwc/0008 | 18a only Low title word numbered inside helper | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\nwc\0008.c
|
||||
# ----------------------------
|
||||
# 289: u32 titleWord = strtoul(path + 16, NULL, 16);
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT nwc/0009 | 18c typed task local initialized before home buffer | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
BASE nwc {"fuzzy_match_percent": 99.96319, "total_code": "12496", "matched_code": "11920", "matched_code_percent": 95.390526, "total_data": "80", "matched_data": "80", "matched_data_percent": 100.0, "total_functions": 30, "matched_functions": 29, "matched_functions_percent": 96.666664, "total_units": 1} [('NWC24InitDlTask', 99.201385)]
|
||||
BASE cdb {"fuzzy_match_percent": 99.86998, "total_code": "7076", "matched_code": "5940", "matched_code_percent": 83.94573, "total_data": "2640", "matched_data": "2640", "matched_data_percent": 100.0, "total_functions": 29, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_units": 1} [('CDBRecordEncrypt', 99.19014)]
|
||||
BASE lyt {"fuzzy_match_percent": 99.75864, "total_code": "11352", "matched_code": "9848", "matched_code_percent": 86.751236, "total_data": "316", "matched_data": "316", "matched_data_percent": 100.0, "total_functions": 21, "matched_functions": 20, "matched_functions_percent": 95.2381, "total_units": 1} [('DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc', 98.17819)]
|
||||
BASE kpad {"fuzzy_match_percent": 99.875916, "total_code": "13056", "matched_code": "12316", "matched_code_percent": 94.33211, "total_data": "8032", "matched_data": "8032", "matched_data_percent": 100.0, "total_functions": 29, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_units": 1} [('KPADInit', 97.810814)]
|
||||
BASE so {"fuzzy_match_percent": 99.79452, "total_code": "4088", "matched_code": "3836", "matched_code_percent": 93.83562, "total_data": "144", "matched_data": "144", "matched_data_percent": 100.0, "total_functions": 22, "matched_functions": 21, "matched_functions_percent": 95.454544, "total_units": 1} [('SOGetSockName', 96.666664)]
|
||||
BASE md5 {"fuzzy_match_percent": 97.01755, "total_code": "1824", "matched_code": "600", "matched_code_percent": 32.894737, "total_data": "456", "matched_data": "456", "matched_data_percent": 100.0, "total_functions": 4, "matched_functions": 3, "matched_functions_percent": 75.0, "total_units": 1} [('ProcessBlock', 95.55556)]
|
||||
ATTEMPT nwc/0010 | 18a corrected one-field nwc24IdHigh | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0011 | 18a corrected one-field nwc24IdLow | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0012 | 18a C89 title parse boundary 7 | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0013 | 18a C89 title parse boundary 8 | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0014 | 18ab reuse title High for app identity across inline boundary | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0015 | 18ab reuse title High for group identity across inline boundary | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0016 | 18ab reuse title High for both identity across inline boundary | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0017 | 18ab reuse title Low for app identity across inline boundary | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0018 | 18ab reuse title Low for group identity across inline boundary | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0019 | 18ab reuse title Low for both identity across inline boundary | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0020 | 18e diagnostic only opt_propagation off | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0021 | 18e diagnostic only opt_common_subs off | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0022 | 18e diagnostic only scheduling off | 79.09028% | insns 144/144; diffs 47; first [5, 6, 7, 8, 9, 10] | pool True; drops []
|
||||
ATTEMPT nwc/0023 | 18e diagnostic only opt_dead_assignments off | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
|
||||
## CDBRecordEncrypt
|
||||
|
||||
First difference: compiler-generated literal base r31 instead of target r25. The earliest related named lifetime is the owner-setter temporary file pointer, r24 instead of r31. All 44 differences are register names across 284 instructions. Target Ghidra confirms the saved file pointer is distinct from the repeated record->file loads and later file-position result. Lever 18a moves that temporary into caller declaration order and separates it from error values. Lever 19 has no supporting flag-store/reload evidence in this function.
|
||||
|
||||
ATTEMPT cdb/0001 | 18a caller-scoped owner file first | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0002 | 18a caller-scoped owner file after_record | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0003 | 18a caller-scoped owner file after_offset | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0004 | 18a caller-scoped owner file after_arrays | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0005 | 18a caller owner-file aggregate first | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0006 | 18a caller owner-file aggregate after_record | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0007 | 18a caller owner-file aggregate after_offset | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0008 | 18c typed key parameter copy first | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0009 | 18c typed key parameter copy after_offset | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool False; drops ['CDBCryptBuffer']
|
||||
ATTEMPT cdb/0010 | 18c typed key parameter copy after_arrays | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool False; drops ['CDBCryptBuffer']
|
||||
|
||||
Measurement correction: cdb/0001-0010 compiled from numeric source basenames, changing __FILE__ in the untouched CDBRecordDuplicate and shifting later strings. Those pool/drop results are invalid evidence. All further trials compile from the original basename in a private directory; rerun all ten before selecting a seed.
|
||||
|
||||
ATTEMPT cdb/0011 | 18a caller-scoped owner file first with original basename | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool True; drops []
|
||||
ATTEMPT cdb/0012 | 18a caller-scoped owner file after_record with original basename | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool True; drops []
|
||||
ATTEMPT cdb/0013 | 18a caller-scoped owner file after_offset with original basename | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool True; drops []
|
||||
ATTEMPT cdb/0014 | 18a caller-scoped owner file after_arrays with original basename | 99.19014% | insns 284/284; diffs 44; first [8, 10, 11, 12, 13, 14] | pool True; drops []
|
||||
ATTEMPT cdb/0015 | 18a caller owner-file aggregate first with original basename | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0016 | 18a caller owner-file aggregate after_record with original basename | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0017 | 18a caller owner-file aggregate after_offset with original basename | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0018 | 18c typed key parameter copy first with original basename | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0019 | 18c typed key parameter copy after_offset with original basename | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0020 | 18c typed key parameter copy after_arrays with original basename | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT nwc/0024 | 18a whole-function inline boundary argument order [0, 1] | 98.923615% | insns 144/144; diffs 31; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0025 | 18a whole-function inline boundary argument order [1, 0] | 98.923615% | insns 144/144; diffs 31; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT cdb/0021 | 18a whole-function inline boundary argument order [0, 1, 2, 3, 4] | 97.88028% | insns 286/284; diffs 116; first [8, 9, 10, 11, 12, 13] | pool True; drops ['CDBRecordBackupToSD_']
|
||||
ATTEMPT cdb/0022 | 18a whole-function inline boundary argument order [2, 0, 1, 3, 4] | 97.88028% | insns 286/284; diffs 116; first [8, 9, 10, 11, 12, 13] | pool True; drops ['CDBRecordBackupToSD_']
|
||||
ATTEMPT cdb/0023 | 18a whole-function inline boundary argument order [0, 1, 3, 4, 2] | 97.88028% | insns 286/284; diffs 116; first [8, 9, 10, 11, 12, 13] | pool True; drops ['CDBRecordBackupToSD_']
|
||||
|
||||
## Window::DrawFrame
|
||||
|
||||
The first mismatching assignment is this in r26 rather than r27. The texture-flip table base occupies source r31 rather than target r21, displacing the persistent inputs. Target Ghidra confirms a single shared table address across the four corners. Lever 18a will name that entire table base in the caller, rather than merely naming one selected entry as f11 did. All 376 instructions have the same operations and ordering at baseline. No shared-field volatile evidence applies.
|
||||
|
||||
ATTEMPT lyt/0001 | 18a caller owns complete flip table first | 68.43351% | insns 373/376; diffs 299; first [10, 12, 16, 17, 18, 19] | pool False; drops ['DrawFrame4__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc', 'DrawFrame8__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc']
|
||||
ATTEMPT lyt/0002 | 18a caller owns complete flip table before_texSize | 68.43351% | insns 373/376; diffs 299; first [10, 12, 16, 17, 18, 19] | pool False; drops ['DrawFrame4__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc', 'DrawFrame8__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc']
|
||||
ATTEMPT lyt/0003 | 18a caller owns complete flip table after_texSize | 68.43351% | insns 373/376; diffs 299; first [10, 12, 16, 17, 18, 19] | pool False; drops ['DrawFrame4__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc', 'DrawFrame8__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc']
|
||||
ATTEMPT lyt/0004 | 18a caller owns complete flip table after_geometry | 68.43351% | insns 373/376; diffs 299; first [10, 12, 16, 17, 18, 19] | pool False; drops ['DrawFrame4__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc', 'DrawFrame8__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc']
|
||||
ATTEMPT lyt/0005 | 18a initialized full flip table before corner locals | 68.43351% | insns 373/376; diffs 299; first [10, 12, 16, 17, 18, 19] | pool False; drops ['DrawFrame4__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc', 'DrawFrame8__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc']
|
||||
ATTEMPT lyt/0006 | 18a full flip table in one-field view | 68.43351% | insns 373/376; diffs 299; first [10, 12, 16, 17, 18, 19] | pool False; drops ['DrawFrame4__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc', 'DrawFrame8__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2PCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc']
|
||||
|
||||
SEARCH NWC: three 1200-second annealing runs, seeds 517/631/743, from the new one-field header lifetime. Private search copy fixes the definition locator and retains the shared 24-slot lock. Source remains untouched.
|
||||
|
||||
SEARCH CDB: same seeds and duration from the caller owner-file aggregate, 99.22535%, 284 instructions, 42 differences, no drops and identical pool.
|
||||
|
||||
ATTEMPT kpad/0001 | f11 retained evidence replay; seed only | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
|
||||
## KPADInit
|
||||
|
||||
Read the original-object Ghidra export and Petari initialization/reset code. The f11 99.567566% seed has 185 instructions and 16 differences. It is used only as a measured starting point, not retained as a fuzzy gain. Lever 18a targets the persistent floating constants and their reuse for the reset interval. The original code reuses the zero-constant physical register for that interval; existing f11 reuse trials instead targeted the geometry temporaries. No volatile declaration is justified by these register and instruction-order differences.
|
||||
|
||||
ATTEMPT kpad/0002 | 18a one-field float constant zero | 99.24324% | insns 185/185; diffs 28; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0003 | 18a one-field float constant one | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0004 | 18a one-field float constant degreesToRadians | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0005 | 18a reset interval reuses expired zero | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0006 | 18a reset interval reuses expired one | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0007 | 18a reset interval reuses expired degreesToRadians | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0008 | 18a float constant loop scope zero | 99.24324% | insns 185/185; diffs 28; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0009 | 18a float constant loop scope one | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0010 | 18a float constant loop scope degreesToRadians | 99.35135% | insns 185/185; diffs 24; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT lyt/0007 | 18a caller one-field this_view first | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0008 | 18a caller one-field this_view after_test | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0009 | 18a caller one-field base_view first | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0010 | 18a caller one-field base_view after_test | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0011 | 18a caller one-field frame_view first | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0012 | 18a caller one-field frame_view after_test | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0013 | 18a caller one-field alpha_view first | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0014 | 18a caller one-field alpha_view after_test | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0015 | 18c primitive alpha and mutable result | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
ATTEMPT lyt/0016 | 18c primitive alpha const and mutable result | 98.17819% | insns 376/376; diffs 119; first [10, 12, 16, 17, 19, 24] | pool False; drops []
|
||||
|
||||
## SOGetSockName
|
||||
|
||||
Original-object Ghidra and MSC prior art agree with the current branches. No register numbers differ. First differing value is the memcpy destination argument: source emits mr r3,r28 before source/length setup; target emits it after them. The destination is derived at instruction 31 in both. Lever 18a targets the reply pointer temporary and its inline/call boundary; 18b tests whether using the returned pointer changes the copy. No flag store or volatile evidence applies.
|
||||
|
||||
ATTEMPT so/0001 | 16 direct reply field first argument | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0002 | 18a reply assignment in memcpy argument | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0003 | 18a reply lifetime begins after first copy | 90.2381% | insns 63/63; diffs 6; first [31, 32, 34, 35, 37, 38] | pool True; drops []
|
||||
ATTEMPT so/0004 | 18b named reply assigned from memcpy return | 89.12698% | insns 63/63; diffs 20; first [5, 18, 22, 23, 26, 28] | pool True; drops []
|
||||
ATTEMPT so/0005 | 18b typed address local assigned twice | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0006 | 18a one-field reply local | 95.39683% | insns 63/63; diffs 19; first [5, 18, 22, 23, 26, 28] | pool True; drops []
|
||||
ATTEMPT so/0007 | 18a first-copy length named u8 | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0008 | 18a first-copy length named const u8 | 98.01588% | insns 63/63; diffs 3; first [5, 30, 33] | pool True; drops []
|
||||
ATTEMPT so/0009 | 18a first-copy length named u32 | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0010 | 18a first-copy length named const u32 | 98.01588% | insns 63/63; diffs 3; first [5, 30, 33] | pool True; drops []
|
||||
|
||||
Measurement clarification: prior lyt trial pool False compared both offsets and strings. pool_diff.py reports IDENTICAL strings for those candidates; offsets differ. Future rows distinguish pool string equality from pool_offsets. Unit data remains a separate acceptance metric.
|
||||
|
||||
SEARCH lyt: 1200 seconds each, seeds 517/631/743, new 18a lifetime seed build/g3/lyt/0007.cpp.
|
||||
SEARCH kpad: 1200 seconds each, seeds 517/631/743, new 18a lifetime seed build/g3/kpad/0005.c.
|
||||
|
||||
## ProcessBlock
|
||||
|
||||
Read the original-object Ghidra export and full target/source instruction sequence. First mismatch is the message walker: source r7, target r4. Target increments that same register by four after each pair of byte-reversed reads and then reuses it for the index-table walker. Baseline instead creates temporary addresses at +4/+8/+12 and increments by 16. This is not entirely a register-only case. The f11 shared-walker result is a starting point; new 18a trials wrap that walker in a one-field aggregate and vary helper primitive-parameter constness under 18c. Intrinsic reads, modular arithmetic and each cursor advance must retain their semantics.
|
||||
|
||||
ATTEMPT md5/0001 | 18a shared walker and one-field index | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0002 | 18a shared walker and one-field constant | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 101: | (~b & d)), &(index), *constant, 7)); ++constant.value;
|
||||
# Error: ^
|
||||
# (10499) a pointer/array type was expected for this operation instead of
|
||||
# 'struct '
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0003 | 18a shared walker and one-field block | 95.14706% | insns 306/306; diffs 198; first [1, 5, 9, 10, 11, 12] | pool True; drops []
|
||||
ATTEMPT md5/0004 | 18c shared walker rotateNextSum primitive const mask 1 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0005 | 18c shared walker rotateNextSum primitive const mask 2 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0006 | 18c shared walker rotateNextSum primitive const mask 3 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0007 | 18c shared walker rotateNextSum primitive const mask 4 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0008 | 18c shared walker rotateNextSum primitive const mask 5 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0009 | 18c shared walker rotateNextSum primitive const mask 6 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0010 | 18c shared walker rotateNextSum primitive const mask 7 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0011 | 18c shared walker rotateSum primitive const mask 1 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0012 | 18c shared walker rotateSum primitive const mask 2 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0013 | 18c shared walker rotateSum primitive const mask 3 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0014 | 18c shared walker rotateSum primitive const mask 4 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0015 | 18c shared walker rotateSum primitive const mask 5 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0016 | 18c shared walker rotateSum primitive const mask 6 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT md5/0017 | 18c shared walker rotateSum primitive const mask 7 | 98.16013% | insns 306/306; diffs 92; first [19, 30, 31, 34, 45, 46] | pool True; drops []
|
||||
ATTEMPT so/0011 | 18a nested length u8 before_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0012 | 18a nested length u8 after_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0013 | 18a nested length const u8 before_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0014 | 18a nested length const u8 after_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0015 | 18a nested length u32 before_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0016 | 18a nested length u32 after_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0017 | 18a nested length const u32 before_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0018 | 18a nested length const u32 after_reply | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0019 | 18c copy boundary SOSockAddr* dst u32 length | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0020 | 18c copy boundary SOSockAddr* dst const u32 length | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0021 | 18c copy boundary SOSockAddr* const dst u32 length | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0022 | 18c copy boundary SOSockAddr* const dst const u32 length | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0023 | 18b initialize reply in helper returning reply | 95.39683% | insns 63/63; diffs 19; first [5, 18, 22, 23, 26, 28] | pool True; drops []
|
||||
ATTEMPT so/0024 | 18b initialize reply in helper returning memcpy(reply, addr, addr->len) | 89.12698% | insns 63/63; diffs 20; first [5, 18, 22, 23, 26, 28] | pool True; drops []
|
||||
ATTEMPT nwc/0026 | 18c octet classification inline boundary NWC24DLType | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0027 | 18a prior-art local lifetimes with octet boundary NWC24DLType | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0028 | 18c octet classification inline boundary const NWC24DLType | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0029 | 18a prior-art local lifetimes with octet boundary const NWC24DLType | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0030 | 18c octet classification inline boundary s32 | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0031 | 18a prior-art local lifetimes with octet boundary s32 | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0032 | 18c octet classification inline boundary const s32 | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0033 | 18a prior-art local lifetimes with octet boundary const s32 | 96.81944% | insns 143/144; diffs 101; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT md5/0018 | 18a one-field walker expression postincrement | 97.61438% | insns 306/306; diffs 91; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0019 | 18ac one-field advancing walker const state | 97.61438% | insns 306/306; diffs 91; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0020 | 18ac one-field advancing walker const constant | 97.61438% | insns 306/306; diffs 91; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0021 | 18ac one-field advancing walker const shift | 97.61438% | insns 306/306; diffs 91; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0022 | 18ac one-field advancing walker const all | 97.61438% | insns 306/306; diffs 91; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0023 | 18a one-field walker expression preincrement_after_read | 97.61438% | insns 306/306; diffs 91; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0024 | 18a one-field walker expression separate_read | 96.59151% | insns 306/306; diffs 123; first [14, 15, 16, 17, 18, 19] | pool True; drops []
|
||||
ATTEMPT md5/0025 | 18a one-field walker expression shared_read | 87.382355% | insns 290/306; diffs 269; first [14, 15, 16, 17, 18, 19] | pool True; drops []
|
||||
SEARCH so: 1200 seconds each, seeds 517/631/743, new 18a lifetime seed build/g3/so/0013.c.
|
||||
SEARCH md5: 1200 seconds each, seeds 517/631/743, new 18a lifetime seed build/g3/md5/0001.c.
|
||||
ATTEMPT nwc/0034 | 18e diagnostic only opt_propagation off on 0 | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0035 | 18e diagnostic only opt_common_subs off on 0 | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0036 | 18e diagnostic only scheduling off on 0 | 79.09028% | insns 144/144; diffs 47; first [5, 6, 7, 8, 9, 10] | pool True; drops []
|
||||
ATTEMPT nwc/0037 | 18e diagnostic only opt_dead_assignments off on 0 | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT cdb/0024 | 18e diagnostic only opt_propagation off on 18 | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0025 | 18e diagnostic only opt_common_subs off on 18 | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0026 | 18e diagnostic only scheduling off on 18 | 90.08803% | insns 284/284; diffs 58; first [1, 2, 5, 6, 8, 9] | pool True; drops []
|
||||
ATTEMPT cdb/0027 | 18e diagnostic only opt_dead_assignments off on 18 | 99.22535% | insns 284/284; diffs 42; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT lyt/0017 | 18e diagnostic only opt_propagation off on 0 | 98.1117% | insns 376/376; diffs 124; first [7, 8, 9, 10, 11, 12] | pool True; drops []
|
||||
ATTEMPT lyt/0018 | 18e diagnostic only opt_common_subs off on 0 | 93.348404% | insns 376/376; diffs 164; first [10, 12, 16, 17, 19, 24] | pool True; drops []
|
||||
ATTEMPT lyt/0019 | 18e diagnostic only scheduling off on 0 | 4.81117% | insns 372/376; diffs 368; first [0, 2, 3, 4, 5, 6] | pool True; drops []
|
||||
ATTEMPT lyt/0020 | 18e diagnostic only opt_dead_assignments off on 0 | 98.1117% | insns 376/376; diffs 124; first [7, 8, 9, 10, 11, 12] | pool True; drops []
|
||||
ATTEMPT kpad/0011 | 18e diagnostic only opt_propagation off on 1 | 94.562164% | insns 186/185; diffs 113; first [16, 18, 26, 27, 29, 31] | pool True; drops []
|
||||
ATTEMPT kpad/0012 | 18e diagnostic only opt_common_subs off on 1 | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0013 | 18e diagnostic only scheduling off on 1 | 58.2973% | insns 185/185; diffs 110; first [16, 17, 18, 22, 23, 24] | pool True; drops []
|
||||
ATTEMPT kpad/0014 | 18e diagnostic only opt_dead_assignments off on 1 | 99.567566% | insns 185/185; diffs 16; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT so/0025 | 18e diagnostic only opt_propagation off on 0 | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0026 | 18e diagnostic only opt_common_subs off on 0 | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT so/0027 | 18e diagnostic only scheduling off on 0 | 66.17461% | insns 63/63; diffs 24; first [7, 8, 21, 22, 25, 26] | pool True; drops []
|
||||
ATTEMPT so/0028 | 18e diagnostic only opt_dead_assignments off on 0 | 96.666664% | insns 63/63; diffs 3; first [32, 33, 34] | pool True; drops []
|
||||
ATTEMPT md5/0026 | 18e diagnostic only opt_propagation off on 18 | 72.09151% | insns 314/306; diffs 291; first [14, 15, 16, 17, 18, 19] | pool True; drops []
|
||||
ATTEMPT md5/0027 | 18e diagnostic only opt_common_subs off on 18 | 75.86275% | insns 322/306; diffs 292; first [14, 15, 16, 17, 18, 19] | pool True; drops []
|
||||
ATTEMPT md5/0028 | 18e diagnostic only scheduling off on 18 | 58.140522% | insns 304/306; diffs 297; first [0, 1, 2, 3, 4, 5] | pool True; drops []
|
||||
ATTEMPT md5/0029 | 18e diagnostic only opt_dead_assignments off on 18 | 72.35294% | insns 314/306; diffs 291; first [14, 15, 16, 17, 18, 19] | pool True; drops []
|
||||
ATTEMPT kpad/0015 | 18a rotation constants aggregate field order one,zero,degreesToRadians | 92.178375% | insns 191/185; diffs 167; first [0, 2, 3, 4, 5, 6] | pool True; drops []
|
||||
ATTEMPT kpad/0016 | 18a rotation constants aggregate field order degreesToRadians,zero,one | 92.178375% | insns 191/185; diffs 167; first [0, 2, 3, 4, 5, 6] | pool True; drops []
|
||||
ATTEMPT kpad/0017 | 18a rotation constants aggregate field order zero,one,degreesToRadians | 92.178375% | insns 191/185; diffs 167; first [0, 2, 3, 4, 5, 6] | pool True; drops []
|
||||
ATTEMPT kpad/0018 | 18a initialized constant locals scope one,degreesToRadians | 99.35135% | insns 185/185; diffs 24; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0019 | 18a initialized constant locals scope one,zero,degreesToRadians | 99.21622% | insns 185/185; diffs 29; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0020 | 18a move first differing one and degree locals before geometry lifetimes | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT md5/0030 | 18a rotateNextSum one-field endian right | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 81: u32 left = __lwbrx((void*)(*cursor)++, 0);
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0031 | 18a rotateNextSum one-field endian left | 95.50654% | insns 306/306; diffs 105; first [15, 16, 21, 22, 23, 24] | pool True; drops []
|
||||
ATTEMPT md5/0032 | 18a rotateNextSum one-field endian both | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 81: struct { u32 value; } left;
|
||||
# Error: ^^^^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0033 | 18a rotateSum one-field endian right | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 75: u32 left = __lwbrx((void*)word, 0);
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0034 | 18a rotateSum one-field endian left | 98.088234% | insns 306/306; diffs 98; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0035 | 18a rotateSum one-field endian both | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 75: struct { u32 value; } left;
|
||||
# Error: ^^^^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0036 | 18a rotateNextSum endian inline boundary right | 97.04248% | insns 306/306; diffs 93; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0037 | 18a rotateNextSum endian inline boundary left | 95.50654% | insns 306/306; diffs 105; first [15, 16, 21, 22, 23, 24] | pool True; drops []
|
||||
ATTEMPT md5/0038 | 18a rotateNextSum endian inline boundary both | 95.702614% | insns 306/306; diffs 101; first [15, 16, 21, 22, 23, 24] | pool True; drops []
|
||||
ATTEMPT md5/0039 | 18a rotateSum endian inline boundary right | 98.51307% | insns 306/306; diffs 71; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0040 | 18a rotateSum endian inline boundary left | 98.088234% | insns 306/306; diffs 98; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0041 | 18a rotateSum endian inline boundary both | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0042 | 18a C89 aggregate rotateNextSum endian right | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 79: struct { u32 value; } right = { __lwbrx((void*)*cursor, 0) };
|
||||
# Error: ^
|
||||
# (10124) illegal constant expression
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0043 | 18a C89 aggregate rotateNextSum endian left | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 80: struct { u32 value; } left = { __lwbrx((void*)(*cursor)++, 0) };
|
||||
# Error: ^
|
||||
# (10124) illegal constant expression
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0044 | 18a C89 aggregate rotateNextSum endian both | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 79: struct { u32 value; } right = { __lwbrx((void*)*cursor, 0) };
|
||||
# Error: ^
|
||||
# (10124) illegal constant expression
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0045 | 18a C89 aggregate rotateSum endian right | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 73: struct { u32 value; } right = { __lwbrx((void*)word, 0) };
|
||||
# Error: ^
|
||||
# (10124) illegal constant expression
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0046 | 18a C89 aggregate rotateSum endian left | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 74: struct { u32 value; } left = { __lwbrx((void*)word, 0) };
|
||||
# Error: ^
|
||||
# (10124) illegal constant expression
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0047 | 18a C89 aggregate rotateSum endian both | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 73: struct { u32 value; } right = { __lwbrx((void*)word, 0) };
|
||||
# Error: ^
|
||||
# (10124) illegal constant expression
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
KPAD breakthrough: moving the first differing one and degree declarations before geometry lifetimes gives 99.86487%, 185/185 instructions, five ctxdiff differences. This is a new 18a result. Relocation inspection proves two are the swapped zero/degree load order at instructions 37/38; the other three use f27 instead of target f28 for the reset interval. The candidate is still nonexact and remains private.
|
||||
|
||||
ATTEMPT kpad/0021 | 18a corrected one lifetime; initialization zero,degreesToRadians pointer before | 99.21622% | insns 185/185; diffs 29; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0022 | 18a corrected one lifetime; initialization zero,degreesToRadians pointer after | 99.21622% | insns 185/185; diffs 29; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0023 | 18a corrected one lifetime; initialization degreesToRadians,zero pointer before | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0024 | 18a corrected one lifetime; initialization degreesToRadians,zero pointer after | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0025 | 18a corrected one lifetime; reset reuses referenceHeight | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0026 | 18a corrected one lifetime; reset reuses referenceWidth | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0027 | 18a corrected one lifetime; reset reuses sensorDistance | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0028 | 18a corrected one lifetime; reset reuses distanceValue | 98.810814% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0029 | 18a corrected one lifetime; reset reuses rotationElement | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0030 | 18a corrected one lifetime; interval declared before f32 one; | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0031 | 18a corrected one lifetime; interval declared before f32 zero; | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0032 | 18a corrected one lifetime; interval declared before f32 referenceHeight; | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0033 | 18a corrected one lifetime; interval declared before f32 referenceWidth; | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0034 | 18a corrected one lifetime; interval declared before s32 chan; | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
|
||||
KPAD 0033 improves to 99.945946%, 185 instructions, two differences. Declaring objectInterval immediately before referenceWidth assigns the reset interval to target f28. Only the zero/degree load order at 37/38 remains.
|
||||
|
||||
ATTEMPT kpad/0035 | 18a two remaining loads; constant declarations one,zero,degreesToRadians initializers zero,degreesToRadians | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0036 | 18a two remaining loads; constant declarations one,zero,degreesToRadians initializers degreesToRadians,zero | 99.64865% | insns 185/185; diffs 13; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0037 | 18a two remaining loads; constant declarations one,degreesToRadians,zero initializers zero,degreesToRadians | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0038 | 18a two remaining loads; constant declarations one,degreesToRadians,zero initializers degreesToRadians,zero | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0039 | 18a two remaining loads; constant declarations zero,one,degreesToRadians initializers zero,degreesToRadians | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0040 | 18a two remaining loads; constant declarations zero,one,degreesToRadians initializers degreesToRadians,zero | 99.64865% | insns 185/185; diffs 13; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0041 | 18a two remaining loads; constant declarations zero,degreesToRadians,one initializers zero,degreesToRadians | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0042 | 18a two remaining loads; constant declarations zero,degreesToRadians,one initializers degreesToRadians,zero | 99.64865% | insns 185/185; diffs 13; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0043 | 18a two remaining loads; constant declarations degreesToRadians,one,zero initializers zero,degreesToRadians | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0044 | 18a two remaining loads; constant declarations degreesToRadians,one,zero initializers degreesToRadians,zero | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0045 | 18a two remaining loads; constant declarations degreesToRadians,zero,one initializers zero,degreesToRadians | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0046 | 18a two remaining loads; constant declarations degreesToRadians,zero,one initializers degreesToRadians,zero | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
|
||||
SEARCH KPAD restart: replaced the three older-seed searches with the new 99.945946% two-difference candidate, preserving the shared lock. The previous two queued jobs and one running older seed are stopped. New outputs build/g3/search-kpad-best-{517,631,743}.
|
||||
|
||||
ATTEMPT cdb/0028 | 18ab repeated setter pointer caller through 2 setters | 98.83803% | insns 284/284; diffs 63; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0029 | 18ab repeated setter pointer caller through 3 setters | 98.76761% | insns 284/284; diffs 66; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0030 | 18ab repeated setter pointer owner_block through 2 setters | 99.15493% | insns 284/284; diffs 45; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT cdb/0031 | 18ab repeated setter pointer owner_block through 3 setters | 99.08451% | insns 284/284; diffs 48; first [8, 10, 11, 13, 14, 15] | pool True; drops []
|
||||
ATTEMPT kpad/0047 | 18a two loads; literal zero | 99.324326% | insns 185/185; diffs 25; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0048 | 18a two loads; literal degreesToRadians | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0049 | 18a two loads; literal zero,degreesToRadians | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0050 | 18a two loads; loop-scoped zero | 99.324326% | insns 185/185; diffs 25; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0051 | 18a two loads; loop-scoped degreesToRadians | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0052 | 18ac two loads; radians parameter boundary f32 | 99.83784% | insns 185/185; diffs 6; first [37, 38, 85, 86, 91, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0053 | 18ac two loads; radians parameter boundary const f32 | 99.83784% | insns 185/185; diffs 6; first [37, 38, 85, 86, 91, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0054 | 18a controller loop inline; const lifetime parameter order one,zero,degreesToRadians | 97.72973% | insns 185/185; diffs 69; first [27, 33, 34, 37, 38, 42] | pool True; drops []
|
||||
ATTEMPT kpad/0055 | 18a controller loop inline; const lifetime parameter order one,degreesToRadians,zero | 97.72973% | insns 185/185; diffs 69; first [27, 33, 34, 37, 38, 42] | pool True; drops []
|
||||
ATTEMPT kpad/0056 | 18a controller loop inline; const lifetime parameter order zero,one,degreesToRadians | 97.72973% | insns 185/185; diffs 69; first [27, 33, 34, 37, 38, 42] | pool True; drops []
|
||||
ATTEMPT kpad/0057 | 18a controller loop inline; const lifetime parameter order zero,degreesToRadians,one | 97.72973% | insns 185/185; diffs 69; first [27, 33, 34, 37, 38, 42] | pool True; drops []
|
||||
ATTEMPT kpad/0058 | 18a controller loop inline; const lifetime parameter order degreesToRadians,one,zero | 97.72973% | insns 185/185; diffs 69; first [27, 33, 34, 37, 38, 42] | pool True; drops []
|
||||
ATTEMPT kpad/0059 | 18a controller loop inline; const lifetime parameter order degreesToRadians,zero,one | 97.72973% | insns 185/185; diffs 69; first [27, 33, 34, 37, 38, 42] | pool True; drops []
|
||||
ATTEMPT kpad/0060 | 18a two loads; declaration initializes one | 99.189186% | insns 186/185; diffs 167; first [15, 16, 17, 18, 19, 20] | pool True; drops []
|
||||
ATTEMPT kpad/0061 | 18a two loads; declaration initializes zero | 98.24324% | insns 185/185; diffs 46; first [15, 16, 17, 18, 19, 20] | pool True; drops []
|
||||
ATTEMPT kpad/0062 | 18a two loads; declaration initializes one,zero | 98.13513% | insns 186/185; diffs 169; first [15, 16, 17, 18, 19, 20] | pool True; drops []
|
||||
ATTEMPT kpad/0063 | 18a two loads; declaration initializes degreesToRadians | 98.24324% | insns 185/185; diffs 45; first [15, 16, 17, 18, 19, 20] | pool True; drops []
|
||||
ATTEMPT kpad/0064 | 18a two loads; declaration initializes one,degreesToRadians | 98.16216% | insns 186/185; diffs 169; first [15, 16, 17, 18, 19, 20] | pool True; drops []
|
||||
ATTEMPT kpad/0065 | 18a two loads; declaration initializes zero,degreesToRadians | 97.189186% | insns 185/185; diffs 47; first [15, 16, 17, 18, 19, 20] | pool True; drops []
|
||||
ATTEMPT kpad/0066 | 18a two loads; declaration initializes one,zero,degreesToRadians | 97.08108% | insns 186/185; diffs 169; first [15, 16, 17, 18, 19, 20] | pool True; drops []
|
||||
ATTEMPT kpad/0067 | 18a two loads; const declaration initializes one | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0068 | 18a two loads; const declaration initializes zero | 99.324326% | insns 185/185; diffs 25; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0069 | 18a two loads; const declaration initializes one,zero | 99.324326% | insns 185/185; diffs 25; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0070 | 18a two loads; const declaration initializes degreesToRadians | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0071 | 18a two loads; const declaration initializes one,degreesToRadians | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0072 | 18a two loads; const declaration initializes zero,degreesToRadians | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0073 | 18a two loads; const declaration initializes one,zero,degreesToRadians | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0074 | 18a two loads; one-field constant zero | 99.324326% | insns 185/185; diffs 25; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0075 | 18a two loads; one-field constant degreesToRadians | 99.64865% | insns 185/185; diffs 13; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0076 | 18a two loads; one-field constant one | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
|
||||
## KPAD two-load candidate for the next retry
|
||||
|
||||
Not retained in source. The readable candidate below is 99.945946%, with 185/185 instructions and no exact-function or data drops. It restores target named-global store order and normal increment syntax. Differences 37/38 load zero and radians-per-degree in the opposite order. The patch reproduces this candidate from the assigned baseline; it still needs 100% before acceptance.
|
||||
|
||||
```diff
|
||||
--- a/libs/RVL_SDK/src/kpad/KPAD.c
|
||||
+++ b/libs/RVL_SDK/src/kpad/KPAD.c
|
||||
@@ -1500,27 +1500,28 @@
|
||||
}
|
||||
|
||||
void KPADInit(void) {
|
||||
+ f32 one;
|
||||
+ f32 degreesToRadians;
|
||||
+ f32 sensorDistance;
|
||||
+ f32 zero;
|
||||
KPADInside* kpad;
|
||||
f32 distanceValue;
|
||||
- f32 sensorDistance;
|
||||
+ f32 referenceHeight;
|
||||
f32 rotationElement;
|
||||
+ f64 negativeSine;
|
||||
+ f32 objectInterval;
|
||||
f32 referenceWidth;
|
||||
- f32 referenceHeight;
|
||||
- f32 objectInterval;
|
||||
- f32 zero;
|
||||
- f32 degreesToRadians;
|
||||
- f32 one;
|
||||
u32 i;
|
||||
s32 chan;
|
||||
BOOL enabled;
|
||||
WPADInit();
|
||||
memset(inside_kpads, 0, 0x14A0);
|
||||
- kp_err_dist_max = 1.0f + (f32)WPADGetDpdSensitivity();
|
||||
+ kp_err_dist_max = (f32)WPADGetDpdSensitivity() + 1.0f;
|
||||
chan = 0;
|
||||
one = 1.0f;
|
||||
+ kpad = inside_kpads;
|
||||
+ degreesToRadians = 0.017453292f;
|
||||
zero = 0.0f;
|
||||
- degreesToRadians = 0.017453292f;
|
||||
- kpad = inside_kpads;
|
||||
do {
|
||||
kpad->dpdEnable = 1;
|
||||
referenceWidth = 1.0f;
|
||||
@@ -1546,10 +1547,6 @@
|
||||
referenceHeight -= distanceValue;
|
||||
}
|
||||
referenceWidth = referenceWidth < referenceHeight ? referenceWidth : referenceHeight;
|
||||
- initial_rotation_matrix[0] = one;
|
||||
- initial_rotation_matrix[1] = zero;
|
||||
- initial_rotation_matrix[2] = zero;
|
||||
- initial_rotation_matrix[3] = zero;
|
||||
kpad->sensorBarScale = sensorDistance / referenceWidth;
|
||||
kpad->value9C = zero;
|
||||
kpad->value94 = zero;
|
||||
@@ -1568,18 +1565,22 @@
|
||||
kpad->sensorHeightPending = 1;
|
||||
kpad->sensorBarPosition = 1;
|
||||
kpad->freeStyleAccelRotation = 0;
|
||||
+ initial_rotation_matrix[0] = one;
|
||||
+ initial_rotation_matrix[1] = zero;
|
||||
+ initial_rotation_matrix[2] = zero;
|
||||
+ initial_rotation_matrix[3] = zero;
|
||||
initial_rotation_matrix[4] = zero;
|
||||
rotationElement = (f32)cos(degreesToRadians * sensor_bar_angle_degrees);
|
||||
initial_rotation_matrix[5] = rotationElement;
|
||||
- rotationElement = (f32)-sin(degreesToRadians * sensor_bar_angle_degrees);
|
||||
+ negativeSine = -sin(degreesToRadians * sensor_bar_angle_degrees);
|
||||
+ initial_rotation_matrix[6] = (f32)negativeSine;
|
||||
initial_rotation_matrix[7] = zero;
|
||||
initial_rotation_matrix[8] = zero;
|
||||
- initial_rotation_matrix[6] = rotationElement;
|
||||
rotationElement = (f32)sin(degreesToRadians * sensor_bar_angle_degrees);
|
||||
initial_rotation_matrix[9] = rotationElement;
|
||||
rotationElement = (f32)cos(degreesToRadians * sensor_bar_angle_degrees);
|
||||
+ initial_rotation_matrix[11] = zero;
|
||||
initial_rotation_matrix[10] = rotationElement;
|
||||
- initial_rotation_matrix[11] = zero;
|
||||
{
|
||||
i = 0;
|
||||
do {
|
||||
@@ -1597,8 +1598,8 @@
|
||||
kp_err_dist_min = distanceValue;
|
||||
kp_dist_vv1 = distanceValue;
|
||||
OSRestoreInterrupts(enabled);
|
||||
+ kpad = &inside_kpads[3];
|
||||
chan = 3;
|
||||
- kpad = &inside_kpads[3];
|
||||
do {
|
||||
if (WPADGetStatus() == 3) {
|
||||
WPADControlMotor(chan, 0);
|
||||
```
|
||||
|
||||
ATTEMPT kpad/0077 | 18a correct load-order seed; zero declared before f32 one; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0078 | 18a correct load-order seed; zero declared before f32 degreesToRadians; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0079 | 18a correct load-order seed; zero declared before f32 sensorDistance; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0080 | 18a correct load-order seed; zero declared before KPADInside* kpad; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0081 | 18a correct load-order seed; zero declared before f32 distanceValue; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0082 | 18a correct load-order seed; zero declared before f32 referenceHeight; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0083 | 18a correct load-order seed; zero declared before f32 rotationElement; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0084 | 18a correct load-order seed; zero declared before f64 negativeSine; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0085 | 18a correct load-order seed; zero declared before f32 objectInterval; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT nwc/0038 | 18a nested writable validator header declaration first | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0039 | 18a nested writable validator task pointer const | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0040 | 18a nested writable validator header pointer const | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT kpad/0086 | 18a correct load-order seed; zero declared before f32 referenceWidth; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0087 | 18a correct load-order seed; zero declared before unsigned int i; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT nwc/0041 | 18a nested writable validator declare both then initialize header first | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT kpad/0088 | 18a correct load-order seed; zero declared before s32 chan; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT nwc/0042 | 18c writable-group primitive const groupId | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT nwc/0043 | 18c writable-group primitive const flags | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT kpad/0089 | 18a correct load-order seed; zero declared before BOOL enabled; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT nwc/0044 | 18c writable-group primitive const groupId,flags | 99.201385% | insns 144/144; diffs 23; first [5, 7, 10, 11, 12, 13] | pool True; drops []
|
||||
ATTEMPT kpad/0090 | 18a correct load-order seed; degreesToRadians declared before f32 one; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0091 | 18a correct load-order seed; degreesToRadians declared before f32 zero; | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0092 | 18a correct load-order seed; degreesToRadians declared before f32 sensorDistance; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0093 | 18a correct load-order seed; degreesToRadians declared before KPADInside* kpad; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0094 | 18a correct load-order seed; degreesToRadians declared before f32 distanceValue; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0095 | 18a correct load-order seed; degreesToRadians declared before f32 referenceHeight; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0096 | 18a correct load-order seed; degreesToRadians declared before f32 rotationElement; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0097 | 18a correct load-order seed; degreesToRadians declared before f64 negativeSine; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0098 | 18a correct load-order seed; degreesToRadians declared before f32 objectInterval; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0099 | 18a correct load-order seed; degreesToRadians declared before f32 referenceWidth; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0100 | 18a correct load-order seed; degreesToRadians declared before unsigned int i; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0101 | 18a correct load-order seed; degreesToRadians declared before s32 chan; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0102 | 18a correct load-order seed; degreesToRadians declared before BOOL enabled; | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0103 | 18a correct load-order seed; one declared before f32 zero; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0104 | 18a correct load-order seed; one declared before f32 degreesToRadians; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0105 | 18a correct load-order seed; one declared before f32 sensorDistance; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0106 | 18a correct load-order seed; one declared before KPADInside* kpad; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0107 | 18a correct load-order seed; one declared before f32 distanceValue; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0108 | 18a correct load-order seed; one declared before f32 referenceHeight; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0109 | 18a correct load-order seed; one declared before f32 rotationElement; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0110 | 18a correct load-order seed; one declared before f64 negativeSine; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0111 | 18a correct load-order seed; one declared before f32 objectInterval; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0112 | 18a correct load-order seed; one declared before f32 referenceWidth; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0113 | 18a correct load-order seed; one declared before unsigned int i; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0114 | 18a correct load-order seed; one declared before s32 chan; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
ATTEMPT kpad/0115 | 18a correct load-order seed; one declared before BOOL enabled; | 99.48649% | insns 185/185; diffs 19; first [37, 38, 70, 76, 88, 89] | pool True; drops []
|
||||
|
||||
KPAD relocation audit: comparing resolved section offsets finds the two load-order differences plus four references into .sbss. The latter are also present in the assigned baseline: source .sbss places icenter_org at 24 and the distance outputs at 0/4, while target places icenter_org at 0 and the distance outputs at 24/28. They require symbol-aware comparison; raw section offsets alone do not prove matching. No object was modified. The source candidate remains nonexact and unlinked.
|
||||
ATTEMPT kpad/0116 | relocation audit: restore target named reset-output store order | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0117 | readability and target order: restore normal channel increments | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0118 | readability and target order: restore normal pointer increments | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0119 | readability and target order: declare ring index u32 | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0120 | readability and target order: restore interval assignment before distance calculation | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
|
||||
KPAD correction: target instructions 149/150 name kp_err_dist_min then kp_dist_vv1. The f11 seed reverses those stores, which the compact ctxdiff hides because both use SDA relocation immediates. Restoring the named target order is required before considering any candidate. Candidate 0033 therefore has two instruction-order differences plus two named-relocation-order differences, in addition to the pre-existing .sbss placement discrepancy. No source has been retained.
|
||||
|
||||
ATTEMPT kpad/0121 | readable two-load candidate with target store order and normal increments | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0122 | 18a initialization-and-loop scope zero zero_first=False | 99.324326% | insns 185/185; diffs 25; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0123 | 18a initialization-and-loop scope zero zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0124 | 18a initialization-and-loop scope degreesToRadians zero_first=False | 99.64865% | insns 185/185; diffs 13; first [34, 37, 38, 42, 87, 92] | pool True; drops []
|
||||
ATTEMPT kpad/0125 | 18a initialization-and-loop scope degreesToRadians zero_first=True | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0126 | 18a initialization-and-loop scope zero,degreesToRadians zero_first=False | 99.4054% | insns 185/185; diffs 22; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0127 | 18a initialization-and-loop scope zero,degreesToRadians zero_first=True | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0128 | 18a initialization-and-loop scope one,zero,degreesToRadians zero_first=False | 99.4054% | insns 185/185; diffs 22; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0129 | 18a initialization-and-loop scope one,zero,degreesToRadians zero_first=True | 99.432434% | insns 185/185; diffs 21; first [34, 37, 42, 70, 76, 87] | pool True; drops []
|
||||
ATTEMPT kpad/0130 | 18a geometry local loop scope sensorDistance,referenceHeight,referenceWidth zero_first=False | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0131 | 18a geometry local loop scope sensorDistance,referenceHeight,referenceWidth zero_first=True | 99.21622% | insns 185/185; diffs 29; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0132 | 18a geometry local loop scope rotationElement,negativeSine zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0133 | 18a geometry local loop scope rotationElement,negativeSine zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0134 | 18a geometry local loop scope referenceHeight zero_first=False | 99.35135% | insns 185/185; diffs 16; first [37, 38, 45, 47, 48, 50] | pool True; drops []
|
||||
ATTEMPT kpad/0135 | 18a geometry local loop scope referenceHeight zero_first=True | 98.702705% | insns 185/185; diffs 40; first [34, 37, 38, 42, 45, 47] | pool True; drops []
|
||||
ATTEMPT kpad/0136 | 18a geometry local loop scope referenceWidth zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0137 | 18a geometry local loop scope referenceWidth zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0138 | 18a geometry local loop scope sensorDistance zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0139 | 18a geometry local loop scope sensorDistance zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0140 | 18a geometry local loop scope distanceValue zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0141 | 18a geometry local loop scope distanceValue zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
SEARCH md5: replaced earlier seeds with best manual source 0041.c; all three receive 1200 seconds after acquiring the unchanged shared lock. Earlier logs retained; canceled before completion.
|
||||
SEARCH so: replaced earlier seeds with best manual source 0008.c; all three receive 1200 seconds after acquiring the unchanged shared lock. Earlier logs retained; canceled before completion.
|
||||
ATTEMPT md5/0048 | 18a first differing loaded-word aggregate rotateNextSum right | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 86: u32 left = __lwbrx((void*)(*cursor)++, 0);
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0049 | 18a first differing loaded-word aggregate rotateNextSum left | 96.43791% | insns 306/306; diffs 84; first [15, 16, 21, 22, 23, 24] | pool True; drops []
|
||||
ATTEMPT md5/0050 | 18a first differing loaded-word aggregate rotateNextSum both | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 86: struct { u32 value; } left;
|
||||
# Error: ^^^^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0051 | 18a separate word declarations rotateNextSum right,left | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0052 | 18a separate word declarations rotateNextSum left,right | 98.34967% | insns 306/306; diffs 80; first [15, 16, 22, 24, 25, 30] | pool True; drops []
|
||||
ATTEMPT md5/0053 | 18c const loaded-word primitive rotateNextSum right | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0054 | 18c const loaded-word primitive rotateNextSum left | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0055 | 18a first differing loaded-word aggregate rotateSum right | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 80: u32 left = ReadMessageWord(word);
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0056 | 18a first differing loaded-word aggregate rotateSum left | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0057 | 18a first differing loaded-word aggregate rotateSum both | compile failed: ### mwcceppc.exe Compiler:
|
||||
# File: build\g3\md5\compile\md5.c
|
||||
# -----------------------------------
|
||||
# 80: struct { u32 value; } left;
|
||||
# Error: ^^^^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
ATTEMPT md5/0058 | 18a separate word declarations rotateSum right,left | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0059 | 18a separate word declarations rotateSum left,right | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0060 | 18c const loaded-word primitive rotateSum right | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0061 | 18c const loaded-word primitive rotateSum left | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT kpad/0142 | 18ab load-order lifetime pressure reuse one for interval zero_first=False | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0143 | 18ab load-order lifetime pressure reuse one for interval zero_first=True | 99.21622% | insns 185/185; diffs 29; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0144 | 18ab load-order lifetime pressure reuse one for distance zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0145 | 18ab load-order lifetime pressure reuse one for distance zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0146 | 18ab load-order lifetime pressure reuse zero for interval zero_first=False | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0147 | 18ab load-order lifetime pressure reuse zero for interval zero_first=True | 99.21622% | insns 185/185; diffs 29; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0148 | 18ab load-order lifetime pressure reuse zero for distance zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0149 | 18ab load-order lifetime pressure reuse zero for distance zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0150 | 18ab load-order lifetime pressure reuse degreesToRadians for interval zero_first=False | 99.86487% | insns 185/185; diffs 5; first [37, 38, 144, 147, 148] | pool True; drops []
|
||||
ATTEMPT kpad/0151 | 18ab load-order lifetime pressure reuse degreesToRadians for interval zero_first=True | 99.21622% | insns 185/185; diffs 29; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT kpad/0152 | 18ab load-order lifetime pressure reuse degreesToRadians for distance zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0153 | 18ab load-order lifetime pressure reuse degreesToRadians for distance zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
ATTEMPT md5/0062 | 18a C89 loaded-word aggregate rotateNextSum right | 99.44444% | insns 306/306; diffs 24; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0063 | 18a C89 loaded-word aggregate rotateNextSum both | 98.104576% | insns 306/306; diffs 32; first [15, 16, 21, 22, 23, 24] | pool True; drops []
|
||||
ATTEMPT md5/0064 | 18a C89 loaded-word aggregate rotateSum right | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0065 | 18a C89 loaded-word aggregate rotateSum both | 98.54575% | insns 306/306; diffs 70; first [45, 46, 52, 54, 55, 60] | pool True; drops []
|
||||
ATTEMPT md5/0066 | equivalent third-round XOR operand order bcd | 99.640526% | insns 306/306; diffs 16; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0067 | equivalent third-round XOR operand order bdc | 99.5098% | insns 306/306; diffs 24; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0068 | equivalent third-round XOR operand order cbd | 99.5098% | insns 306/306; diffs 24; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0069 | equivalent third-round XOR operand order cdb | 99.44444% | insns 306/306; diffs 24; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0070 | equivalent third-round XOR operand order dcb | 99.5098% | insns 306/306; diffs 20; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0071 | 18ac distinct inline numbering for read-right | 99.54248% | insns 306/306; diffs 18; first [60, 61, 68, 70, 139, 141] | pool True; drops []
|
||||
ATTEMPT md5/0072 | 18ac distinct inline numbering for read-left | 99.44444% | insns 306/306; diffs 24; first [15, 25, 30, 40, 45, 55] | pool True; drops []
|
||||
ATTEMPT md5/0073 | 18ac distinct inline numbering for read-both | 99.60784% | insns 306/306; diffs 14; first [139, 141, 159, 160, 175, 176] | pool True; drops []
|
||||
ATTEMPT md5/0074 | 18a next-word load inline boundary const u32* | 96.88562% | insns 306/306; diffs 106; first [14, 15, 16, 17, 18, 19] | pool True; drops []
|
||||
ATTEMPT md5/0075 | 18a next-word load inline boundary u32* | 96.88562% | insns 306/306; diffs 106; first [14, 15, 16, 17, 18, 19] | pool True; drops []
|
||||
ATTEMPT md5/0076 | 18a combine inline word lifetimes with matching third-round XOR order | 99.803925% | insns 306/306; diffs 6; first [139, 141, 209, 211, 278, 280] | pool True; drops []
|
||||
ATTEMPT md5/0077 | match independent round-end cursor advancement order all | 100.0% | insns 306/306; diffs 0; first [] | pool True; drops []
|
||||
|
||||
## ProcessBlock exact candidate
|
||||
|
||||
Manual trial md5/0077 reaches objdiff 100%, 306/306 instructions, zero compact instruction differences, unchanged 456-byte data, and no exact-function drops. It combines a shared walker across non-overlapping rounds, a one-field first loaded-word lifetime, typed inline endian reads, equivalent XOR operand ordering, and independent cursor updates in target order. The cursor post-increment remains on the second read, so both reads still use the same message word before advancing once. Applied only after reviewing that behavior. Pending MD5 searches were canceled because the exact candidate is now ready for real-object verification.
|
||||
|
||||
ATTEMPT kpad/0154 | 18a loop walker preheader numbering for zero_first=False | 99.25946% | insns 185/185; diffs 25; first [29, 37, 38, 39, 40, 41] | pool True; drops []
|
||||
ATTEMPT kpad/0155 | 18a loop walker preheader numbering for zero_first=True | 98.61081% | insns 185/185; diffs 49; first [29, 34, 37, 38, 39, 40] | pool True; drops []
|
||||
ATTEMPT kpad/0156 | 18a loop walker preheader numbering while zero_first=False | 99.47568% | insns 185/185; diffs 19; first [29, 37, 38, 39, 40, 41] | pool True; drops []
|
||||
ATTEMPT kpad/0157 | 18a loop walker preheader numbering while zero_first=True | 98.82703% | insns 185/185; diffs 43; first [29, 34, 37, 38, 39, 40] | pool True; drops []
|
||||
ATTEMPT kpad/0158 | 18a loop walker preheader numbering infinite zero_first=False | 99.945946% | insns 185/185; diffs 2; first [37, 38] | pool True; drops []
|
||||
ATTEMPT kpad/0159 | 18a loop walker preheader numbering infinite zero_first=True | 99.297295% | insns 185/185; diffs 26; first [34, 37, 38, 42, 70, 76] | pool True; drops []
|
||||
|
||||
ProcessBlock real-object verification: Ninja rebuilt libs/RevoEX/src/net/md5.o; pool IDENTICAL 0/0 strings; ctxdiff 306/306 instructions, diffs 0. Quick gate still performs the full build: PASS, retail DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, 4/4 instruction-exact functions, code 1824/1824, data 456/456, .text/.data/.sdata all 100%, zero regressions, zero forbidden additions, zero readability warnings. Saved build/g3/md5-gate.log. Final clean non-quick gate remains required after the other searches finish.
|
||||
1021
tools/decomp-assist/g5.attempts.md
Normal file
1021
tools/decomp-assist/g5.attempts.md
Normal file
File diff suppressed because it is too large
Load Diff
105
tools/decomp-assist/lnkaddr.attempts.md
Normal file
105
tools/decomp-assist/lnkaddr.attempts.md
Normal file
@@ -0,0 +1,105 @@
|
||||
# lnkaddr: link iplAddress
|
||||
|
||||
Worktree data-d5, branch agent/w1005/lnkaddr, base b276099f.
|
||||
The assigned LINK task overrides common.md's matching-only phase.
|
||||
Acceptance requires 101/101 exact functions, unchanged code/data credit and
|
||||
other source objects, Matching enabled, and the full gate with DOL SHA1
|
||||
26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
|
||||
## Baseline
|
||||
|
||||
Fetched origin/main under the shared Git lock. The remote advanced to ca031bd8;
|
||||
its changes affect iplMemoryCardLib.h and lv19 logs, not this leaf. Address
|
||||
remains NonMatching. Kept the assigned branch without merging or rebasing.
|
||||
Fresh 43U build and report: 101/101 exact-name functions, code 23988/23988,
|
||||
data 1964/1964, linked code 0. Pool strings identical, 81/81. Saved report and
|
||||
all source object SHA256 hashes under build/lnkaddr-baseline-*.
|
||||
|
||||
The target object emits draw, VEC2::operator*(f32), Pane::SetTranslate(VEC3),
|
||||
destroy. Target offsets are 0xc7c, 0x1028, 0x1070, 0x108c respectively.
|
||||
Our object emits draw, SetTranslate(VEC2), SetTranslate(VEC3), VEC2::operator*,
|
||||
VEC2 constructor, destroy. After linker deduplication this reverses the two
|
||||
retained inline functions. The target draw calls SetTranslate(VEC2), while
|
||||
add_translate calls SetTranslate(VEC3); function code already matches.
|
||||
|
||||
## Trial 1: reproduce the link failure
|
||||
|
||||
Change only the configure.py entry to Matching and map the rebuilt DOL.
|
||||
|
||||
Result: 103 differing bytes, unchanged DOL size. Differences cover the two
|
||||
reversed functions and calls in BoardObject, ChannelObj, SDChannelObj,
|
||||
SDMemory, and Address. Both functions still have ctxdiff diffs 0.
|
||||
|
||||
## Trial 2: delay the VEC3 setter definition
|
||||
|
||||
Use the existing IPL_ADDRESS_MATCHING macro to declare SetTranslate(VEC3)
|
||||
in the header and define it inline immediately after Address::draw.
|
||||
Keep its body unchanged. This allows draw's VEC2 multiplication to emit first,
|
||||
then the setter at its original position before Address::destroy. The inline
|
||||
definition should preserve weak binding. No math operator or caller edit.
|
||||
The exported target decompilation confirms ordinary mTranslate assignment.
|
||||
|
||||
The rebuilt object retains STB_WEAK binding. Its order is SetTranslate(VEC2)
|
||||
at 0x1108, VEC2::operator* at 0x1144, the deduplicated VEC2 constructor at
|
||||
0x118c, SetTranslate(VEC3) at 0x1198, and destroy at 0x11b4. Filtering source
|
||||
functions to the 101 target names now reproduces the complete target order.
|
||||
Pool 81/81 remains identical; SetTranslate(VEC3) is 7/7 instructions, diffs 0.
|
||||
IPL_ADDRESS_MATCHING is defined only by iplAddress.cpp.
|
||||
|
||||
Result: full incremental build passes with Matching enabled. DOL SHA1 is
|
||||
26116613f624061ba99c8d1a299aaa6efa85670d; doldiff reports zero differing bytes
|
||||
and equal 3867904-byte files. All 101 exact-name objdiff functions remain 100%,
|
||||
and all 101 ctxdiff runs have equal instruction counts and diffs 0.
|
||||
Code 23988/23988 and data 1964/1964 are now fully linked.
|
||||
Proceed to the required clean full gate and all-object isolation check.
|
||||
|
||||
## Final verification
|
||||
|
||||
The required full gate ran without --quick and passed from a clean 43U build.
|
||||
All 101 functions remain exact. Code 23988/23988 and data 1964/1964 are 100%
|
||||
matched and linked. The final pool is identical at 81/81 strings, and doldiff
|
||||
reports zero differing bytes with the required DOL SHA1.
|
||||
|
||||
Compared SHA256 hashes of all 1027 rebuilt source objects against the fresh
|
||||
baseline. Only src/scene/address/iplAddress.o changed; all 1026 other objects
|
||||
are byte-identical. Comparing complete unit entries in the two live reports
|
||||
also finds only main/src/scene/address/iplAddress changed. No units or objects
|
||||
were added or removed. There are no remaining open functions in this leaf.
|
||||
|
||||
Source changes are confined to the Matching entry, the existing Address-only
|
||||
header guard, and the unchanged setter body at its target emission position.
|
||||
All target function names occur in target order. No new assembly, labels,
|
||||
padding, linker directives, compiler options, or symbol metadata were added.
|
||||
|
||||
Full gate output:
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/address/iplAddress] pool: IDENTICAL
|
||||
[src/scene/address/iplAddress] objdiff: code 23988/23988 data 1964/1964 functions 101/101 fuzzy 100.0000 linked code 23988
|
||||
[src/scene/address/iplAddress] instruction-exact functions: 101/101
|
||||
[src/scene/address/iplAddress] section .ctors size 4 match 100.0
|
||||
[src/scene/address/iplAddress] section .data size 1880 match 100.0
|
||||
[src/scene/address/iplAddress] section .rodata size 24 match 100.0
|
||||
[src/scene/address/iplAddress] section .sbss size 8 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata size 16 match 100.0
|
||||
[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0
|
||||
[src/scene/address/iplAddress] section .text size 23988 match 100.0
|
||||
[src/scene/address/iplAddress] baseline: code 23988/23988 data 1964 functions 101 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.77331 -> 92.77331
|
||||
global fuzzy_match_percent: 99.78063 -> 99.78063
|
||||
global complete_code_percent: 76.40339 -> 77.20428
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: configure.py (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Local evidence: build/lnkaddr-baseline-report.json,
|
||||
build/lnkaddr-baseline-object-hashes.json, build/lnkaddr-trial1-doldiff.txt,
|
||||
build/lnkaddr-function-order.txt, build/lnkaddr-ctxdiff.txt,
|
||||
build/lnkaddr-full-gate.txt, and build/lnkaddr-isolation.json.
|
||||
Ready for independent parent validation.
|
||||
182
tools/decomp-assist/lv19.attempts.md
Normal file
182
tools/decomp-assist/lv19.attempts.md
Normal file
@@ -0,0 +1,182 @@
|
||||
# lv19 definition-level volatile sweep
|
||||
|
||||
Assigned tree: `/mnt/drive2/projects/wii-ipl-workers/data-d4`.
|
||||
Branch: `agent/w1005/lv19`. Starting HEAD: `60341ca4`.
|
||||
|
||||
Scope: enumerate all non-exact 43U functions with pure instruction-order or
|
||||
epilogue-order differences, plus the named near-order candidates. Inspect the
|
||||
adjacent accesses for thread, callback, interrupt, or hardware sharing. Test
|
||||
qualifiers at the real field/global definitions only. No TU-conditional types.
|
||||
Retain each change only after improvement, zero drops across every including
|
||||
unit, full gate, and DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
|
||||
Read AGENTS.md, common.md, levers.md including lever 19, unslop, and
|
||||
writing-for-agents. Locked fetch of origin succeeded. Initial tree was clean.
|
||||
Historical SDChannelSelect `mpBS2Manager` volatility regressed twelve exact
|
||||
functions and changed the DOL; do not repeat or hide it behind a TU guard.
|
||||
The supplied lever-19 scope controls this run; unrelated declaration or
|
||||
register searches are outside it.
|
||||
|
||||
Baseline and trial artifacts are under `build/lv19/`. Final full gate output
|
||||
and durable candidate inventory will be recorded here before handoff.
|
||||
|
||||
## Fresh baseline inventory
|
||||
|
||||
Built all 43U objects, report and build/43U/ok. DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`. Scanned 1027 units and 133 non-exact report functions using the same odiff decoder as ctxdiff.py.
|
||||
|
||||
| Unit | Function | Score | Instructions | Diffs | Unpaired instructions | Class |
|
||||
| --- | --- | ---: | --- | ---: | ---: | --- |
|
||||
| src/BS2/BS2Mach | CheckBS2CommandStatus | 99.50739 | 406/406 | 2 | 0 | pure order |
|
||||
| src/BS2/BS2Update | UpdateThread | 94.83023 | 911/913 | 335 | 189 | named candidate |
|
||||
| src/scene/address/iplAddressEdit | update_friendinfo__Q33ipl5scene11AddressEditFv | 99.42105 | 38/38 | 2 | 0 | pure order |
|
||||
| src/scene/memoryCard/iplMemoryCardManager | isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs | 92.30769 | 26/26 | 8 | 0 | pure order |
|
||||
| src/scene/memoryCard/iplMemoryCardManager | getBlocks__Q33ipl5scene17MemoryCardManagerFUcs | 92.0 | 25/25 | 9 | 0 | pure order |
|
||||
| src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 97.81188 | 101/101 | 4 | 2 | named candidate |
|
||||
| src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 97.833336 | 102/102 | 4 | 2 | named candidate |
|
||||
| src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 98.007935 | 126/126 | 7 | 5 | named candidate |
|
||||
| src/scene/sdChannelSelect/iplSDChannelSelect | collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl | 97.55125 | 361/361 | 16 | 8 | named candidate |
|
||||
| src/scene/sdChannelSelect/iplSDChannelSelect | flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv | 99.65714 | 35/35 | 2 | 0 | pure order |
|
||||
| src/scene/setting/iplSetting | scanAP__Q33ipl5scene7SettingFv | 99.20221 | 272/272 | 4 | 1 | named candidate |
|
||||
| src/scene/setting/AOSSLink | AOSSi_WLANConnect | 98.70968 | 155/155 | 2 | 0 | pure order |
|
||||
| src/scene/setting/ATERM | ATERMBuildEncryptedMessage | 99.791664 | 96/96 | 2 | 0 | pure order |
|
||||
| src/channelScript/CHANSVm | CHANSVmConvertToFloatFromStr | 97.59036 | 83/83 | 2 | 0 | pure order |
|
||||
| src/channelScript/CHANSVm | VmDateDtor | 94.96703 | 91/91 | 7 | 0 | pure order |
|
||||
| libs/RevoEX/src/nhttp/NHTTP_recvbuf | NHTTPi_compareTokenN_HdrRecvBuf | 97.32258 | 124/124 | 5 | 0 | pure order |
|
||||
| libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL | NHTTPi_strnicmp | 99.76471 | 51/51 | 2 | 0 | pure order |
|
||||
| libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL | NHTTPi_compareToken | 99.73333 | 45/45 | 2 | 0 | pure order |
|
||||
| libs/RevoEX/src/so/SOBasic | SOGetSockName | 96.666664 | 63/63 | 3 | 0 | pure order |
|
||||
| libs/RVL_SDK/src/fa/driver/sd_drv | pfd_sddrv_finalize | 92.63158 | 57/57 | 4 | 2 | epilogue |
|
||||
| libs/RVL_SDK/src/kbd/kbd_lib | kbdProcMod | 99.90234 | 256/256 | 4 | 4 | epilogue |
|
||||
| libs/RVL_SDK/src/kbd/kbd_lib | kbd_led_handler | 99.72 | 25/25 | 3 | 1 | epilogue |
|
||||
| libs/RVL_SDK/src/kbd/kbd_lib | KBDSetModState | 99.40476 | 42/42 | 4 | 4 | epilogue |
|
||||
|
||||
Full inventory including non-candidates: `build/lv19/inventory.json`. Branch/call operands use ctxdiff relative offsets; relocation identity requires the normal pool/objdiff checks.
|
||||
|
||||
## Card thread fields
|
||||
|
||||
`FileInfo::size` is written by `clearCardFileEntry` and `updateCardFileEntry`; `IconState::bannerEnable` is written by `loadCardFileIcons`, called from the card thread. The UI getters read those same `sThread->files/icons` arrays. Target final lhz/lbz precedes r11 restoration setup; source hoists r11 before the address/load sequence. Both are eligible definition-level trials. Ninja dependencies identify six including units: src/scene/cardSequence/iplCardSequence, src/scene/memoryCard/iplGCSaveData, src/scene/memoryCard/iplGCWindow, src/scene/memoryCard/iplMemoryCard, src/scene/memoryCard/iplMemoryCardManager, src/scene/sceneSystem/iplSceneCreator. Baseline pools all identical.
|
||||
|
||||
Trial `card_banner_volatile`: {"label": "card_banner_volatile", "edits": [["include/iplMemoryCardLib.h", "u8 bannerEnable;", "volatile u8 bannerEnable;"]], "units": ["src/scene/cardSequence/iplCardSequence", "src/scene/memoryCard/iplGCSaveData", "src/scene/memoryCard/iplGCWindow", "src/scene/memoryCard/iplMemoryCard", "src/scene/memoryCard/iplMemoryCardManager", "src/scene/sceneSystem/iplSceneCreator"], "build": 0, "pool": {"src/scene/cardSequence/iplCardSequence": 0, "src/scene/memoryCard/iplGCSaveData": 0, "src/scene/memoryCard/iplGCWindow": 0, "src/scene/memoryCard/iplMemoryCard": 0, "src/scene/memoryCard/iplMemoryCardManager": 0, "src/scene/sceneSystem/iplSceneCreator": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 26, 26, 0], ["getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 25, 25, 9]]}. Restored source after measurement. Artifacts `build/lv19/card_banner_volatile/`.
|
||||
|
||||
Trial `card_size_volatile`: {"label": "card_size_volatile", "edits": [["include/iplMemoryCardLib.h", "u16 size;", "volatile u16 size;"]], "units": ["src/scene/cardSequence/iplCardSequence", "src/scene/memoryCard/iplGCSaveData", "src/scene/memoryCard/iplGCWindow", "src/scene/memoryCard/iplMemoryCard", "src/scene/memoryCard/iplMemoryCardManager", "src/scene/sceneSystem/iplSceneCreator"], "build": 0, "pool": {"src/scene/cardSequence/iplCardSequence": 0, "src/scene/memoryCard/iplGCSaveData": 0, "src/scene/memoryCard/iplGCWindow": 0, "src/scene/memoryCard/iplMemoryCard": 0, "src/scene/memoryCard/iplMemoryCardManager": 0, "src/scene/sceneSystem/iplSceneCreator": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0]], "drops": [], "candidates": [["isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 26, 26, 8], ["getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 25, 25, 0]]}. Restored source after measurement. Artifacts `build/lv19/card_size_volatile/`.
|
||||
|
||||
Trial `card_banner_size_volatile`: {"label": "card_banner_size_volatile", "edits": [["include/iplMemoryCardLib.h", "u8 bannerEnable;", "volatile u8 bannerEnable;"], ["include/iplMemoryCardLib.h", "u16 size;", "volatile u16 size;"]], "units": ["src/scene/cardSequence/iplCardSequence", "src/scene/memoryCard/iplGCSaveData", "src/scene/memoryCard/iplGCWindow", "src/scene/memoryCard/iplMemoryCard", "src/scene/memoryCard/iplMemoryCardManager", "src/scene/sceneSystem/iplSceneCreator"], "build": 0, "pool": {"src/scene/cardSequence/iplCardSequence": 0, "src/scene/memoryCard/iplGCSaveData": 0, "src/scene/memoryCard/iplGCWindow": 0, "src/scene/memoryCard/iplMemoryCard": 0, "src/scene/memoryCard/iplMemoryCardManager": 0, "src/scene/sceneSystem/iplSceneCreator": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 26, 26, 0], ["getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 25, 25, 0]]}. Restored source after measurement. Artifacts `build/lv19/card_banner_size_volatile/`.
|
||||
|
||||
## Scope audit for the remaining inventory
|
||||
|
||||
- `CheckBS2CommandStatus`: the differing `stw` relocates to `CacheCommandComplete`. All its reads and writes are inside this function. `BS2NANDCallback` changes `NandPending`, already volatile, rather than `CacheCommandComplete`. The adjacent partition count is disc table data read after DVD completion. No new shared completion declaration has been established here.
|
||||
- `update_friendinfo`: both differences are `addi` arguments for `wcsncpy`, pointing to the friend name and this scene's editable name. They are not scalar shared-state accesses. No qualifier trial is justified.
|
||||
- Four `collectTitles*` functions: the repeated difference is `++*titleCount`, local accumulated blocks, and `secondUsage[0]`. The source exposes these through caller parameters, with no proven shared field/global definition at the accesses. Changing the pointer parameter type or a use-site cast would not be lever 19. `collectTitlesByChannelOrder` also has three address/register differences.
|
||||
- `flushSaveDataAndMountSD`: swapped loads are `System::Arg::mpSaveDataManager` and `mpMem2App`, stable manager/heap pointers. Asynchronous work starts after the call arguments are loaded. There is no callback-written completion flag at these accesses.
|
||||
- `scanAP`: case 9 loads `mpMainLayout` and `unk_0x918`, the animation index set by scene transitions. Its AP worker writes `mAPScanList`, not either reordered field. The latter is not evidence for qualifying the former.
|
||||
- `AOSSi_WLANConnect`: only the IP-config `memset` destination/size argument order differs. The separate `AOSSi_cancel_flag` is genuinely shared with `iplAOSSThread`, so a global-definition trial with the matching extern in AOSS.c will test whether it affects this function. The mutable config itself is handed to synchronous NCD calls and contains no demonstrated completion field.
|
||||
- `ATERMBuildEncryptedMessage`: only the key-parameter save and `memset` destination move exchange places before the first call. No global/field access in that block.
|
||||
- `CHANSVmConvertToFloatFromStr`: the reordered store initializes the local `end` pointer passed to synchronous `strtoull`/`strtod`; the compare checks the input object type. Neither is a worker completion flag. No volatile stack workaround.
|
||||
- `VmDateDtor`: reorders read-only day/month string-table loads and a `snprintf` stack argument. No mutable shared state at the difference.
|
||||
- `NHTTPi_strnicmp` and `NHTTPi_compareToken`: differences precede the first character load and only materialize constants 0 and 0x5a. No declaration to qualify.
|
||||
- `NHTTPi_compareTokenN_HdrRecvBuf`: reorders ASCII bound constants, a sign extension and a local limit decrement. The response buffer is already received; no reordered memory access identifies a shared flag.
|
||||
- `SOGetSockName`: the difference is the first memcpy before IOS_Ioctl, reading caller-owned `addr->len`. The later IOS reply shares the SOSockAddr type, so test its length field unconditionally across all including units, while checking for extra validation reads or regressions.
|
||||
- The tail-window scan also returned `kbdProcMod`, `KBDSetModState`, and `kbd_led_handler`. Manual ctxdiff review excludes them from pure epilogue order: the first two differ in address/value register allocation, and the handler differs in branch polarity and constants. Their Ghidra/source paths were inspected; no claim that they are scheduling-only candidates.
|
||||
- `pfd_sddrv_finalize` mixes one register difference with callback-state store ordering. Its media, device, disk and drive fields are shared with SD insertion/removal callbacks. Test the individual real field declarations and the paired media flags. These types are local to sd_drv.c.
|
||||
|
||||
## BS2Update provenance
|
||||
|
||||
The fresh branch has UpdateThread at 94.83023%, 911/913 instructions, not the ten-difference baseline quoted in the task. Ghidra confirms StartUpdate/CancelUpdate polling and public getter outputs for CurrentEntry, pEntries and ContainsSeatTitles. All five globals are written/read across the created update thread and its API callers. Test each separately, then the start/cancel pair. EntriesCount, State and rc are already volatile and remain unchanged.
|
||||
|
||||
## Accepted banner field
|
||||
|
||||
Unconditional `IconState::bannerEnable` qualifier: `isBannerEnable` 92.30769 -> 100.0%, 26/26 instructions, ctxdiff diffs 0. `loadCardFileIcons` also improves 90.7832 -> 91.33984%. Fresh all-1027-unit report: zero score drops. Full clean gate on all six including units: GATE PASS; zero regressions, forbidden patterns and readability warnings. DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`. Gate artifact `build/lv19/banner.full-gate.txt`.
|
||||
[src/scene/cardSequence/iplCardSequence] instruction-exact functions: 27/30
|
||||
[src/scene/memoryCard/iplGCSaveData] instruction-exact functions: 12/12
|
||||
[src/scene/memoryCard/iplGCWindow] instruction-exact functions: 48/48
|
||||
[src/scene/memoryCard/iplMemoryCard] instruction-exact functions: 41/41
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 3980/5396 data None/None functions 22/26 fuzzy 98.0801 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 22/26
|
||||
[src/scene/sceneSystem/iplSceneCreator] instruction-exact functions: 2/2
|
||||
|
||||
## Accepted file size field
|
||||
|
||||
Banner qualifier committed as `d8e6bf6a`. Unconditional `FileInfo::size` qualifier: `getBlocks` 92.0 -> 100.0%, 25/25 instructions, ctxdiff diffs 0. Fresh all-1027-unit comparison against the banner commit: this is the only function-score change, zero drops. Full clean gate on all six including units: GATE PASS; zero regressions, forbidden patterns and readability warnings. DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`. Gate artifact `build/lv19/size.full-gate.txt`.
|
||||
[src/scene/cardSequence/iplCardSequence] instruction-exact functions: 27/30
|
||||
[src/scene/memoryCard/iplGCSaveData] instruction-exact functions: 12/12
|
||||
[src/scene/memoryCard/iplGCWindow] instruction-exact functions: 48/48
|
||||
[src/scene/memoryCard/iplMemoryCard] instruction-exact functions: 41/41
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 4080/5396 data None/None functions 23/26 fuzzy 98.2283 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 23/26
|
||||
[src/scene/sceneSystem/iplSceneCreator] instruction-exact functions: 2/2
|
||||
|
||||
Size qualifier committed as `bbd0bc1b`. Origin/main advanced only through unrelated CHANSVm de-asm commit b7a912ce; locked fetch and source-path comparison confirmed all remaining candidate sources unchanged on origin/main. No branch integration performed.
|
||||
|
||||
An additional <=4-difference review found `ATERMi_AutoConfigThread` at 94.75%, 40/40 instructions, three differences combining one result-register choice and one load/shift order. Its result, state and deadline globals are shared with ATERMGetProgress/cancellation. Added three definition trials and inspected its original Ghidra output. This is a supplemental near-order candidate, not one of the thirteen strict instruction-multiset matches.
|
||||
|
||||
SO length trial covers nineteen including units from Ninja dependencies: libs/RevoEX/src/nhttp/NHTTP_socket_RVL, libs/RevoEX/src/so/SOBasic, libs/RevoEX/src/so/SOCommon, libs/RevoEX/src/so/SOInformation, libs/RevoEX/src/so/SOOption, src/scene/nakamuraTest/gamespy/common/gsAvailable, src/scene/nakamuraTest/gamespy/common/gsSHA1, src/scene/nakamuraTest/gamespy/darray, src/scene/nakamuraTest/gamespy/natneg/NATify, src/scene/nakamuraTest/gamespy/natneg/natneg, src/scene/nakamuraTest/gamespy/nonport, src/scene/nakamuraTest/iplContest, src/scene/nakamuraTest/iplNakamuraTest, src/scene/nakamuraTest/iplNetSetup, src/scene/setting/AOSS, src/scene/setting/ATERM, src/scene/setting/iplAOSSThread, src/scene/setting/iplRakuRakuThread, src/system/iplSocketSetting.
|
||||
|
||||
Trial `update_start_volatile`: {"label": "update_start_volatile", "edits": [["src/BS2/BS2Update.c", "u32 StartUpdate = 0;", "volatile u32 StartUpdate = 0;"]], "units": ["src/BS2/BS2Update"], "build": 0, "pool": {"src/BS2/BS2Update": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["UpdateThread", 911, 913, 337]]}. Restored source after measurement. Artifacts `build/lv19/update_start_volatile/`.
|
||||
|
||||
Trial `update_cancel_volatile`: {"label": "update_cancel_volatile", "edits": [["src/BS2/BS2Update.c", "u32 CancelUpdate = 0;", "volatile u32 CancelUpdate = 0;"]], "units": ["src/BS2/BS2Update"], "build": 0, "pool": {"src/BS2/BS2Update": 0}, "changed_functions": [["main/src/BS2/BS2Update", "UpdateThread", 94.83023, 94.97262], ["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["UpdateThread", 911, 913, 333]]}. Restored source after measurement. Artifacts `build/lv19/update_cancel_volatile/`.
|
||||
|
||||
Trial `update_current_volatile`: {"label": "update_current_volatile", "edits": [["src/BS2/BS2Update.c", "BS2UpdateEntry* CurrentEntry = 0;", "BS2UpdateEntry* volatile CurrentEntry = 0;"]], "units": ["src/BS2/BS2Update"], "build": 0, "pool": {"src/BS2/BS2Update": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["UpdateThread", 911, 913, 337]]}. Restored source after measurement. Artifacts `build/lv19/update_current_volatile/`.
|
||||
|
||||
Trial `update_entries_volatile`: {"label": "update_entries_volatile", "edits": [["src/BS2/BS2Update.c", "static BS2UpdateEntry* pEntries = NULL;", "static BS2UpdateEntry* volatile pEntries = NULL;"]], "units": ["src/BS2/BS2Update"], "build": 0, "pool": {"src/BS2/BS2Update": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["UpdateThread", 911, 913, 337]]}. Restored source after measurement. Artifacts `build/lv19/update_entries_volatile/`.
|
||||
|
||||
Trial `update_seat_volatile`: {"label": "update_seat_volatile", "edits": [["src/BS2/BS2Update.c", "static BOOL ContainsSeatTitles = 0;", "static volatile BOOL ContainsSeatTitles = 0;"]], "units": ["src/BS2/BS2Update"], "build": 0, "pool": {"src/BS2/BS2Update": 0}, "changed_functions": [["main/src/BS2/BS2Update", "UpdateThread", 94.83023, 94.70208], ["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [["main/src/BS2/BS2Update", "UpdateThread", 94.83023, 94.70208]], "candidates": [["UpdateThread", 911, 913, 338]]}. Restored source after measurement. Artifacts `build/lv19/update_seat_volatile/`.
|
||||
|
||||
Trial `update_start_cancel_volatile`: {"label": "update_start_cancel_volatile", "edits": [["src/BS2/BS2Update.c", "u32 StartUpdate = 0;", "volatile u32 StartUpdate = 0;"], ["src/BS2/BS2Update.c", "u32 CancelUpdate = 0;", "volatile u32 CancelUpdate = 0;"]], "units": ["src/BS2/BS2Update"], "build": 0, "pool": {"src/BS2/BS2Update": 0}, "changed_functions": [["main/src/BS2/BS2Update", "UpdateThread", 94.83023, 94.99671], ["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["UpdateThread", 911, 913, 329]]}. Restored source after measurement. Artifacts `build/lv19/update_start_cancel_volatile/`.
|
||||
|
||||
Trial `sd_inserted_volatile`: {"label": "sd_inserted_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", " u32 media_inserted;", " volatile u32 media_inserted;"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_st_removal_callback", 100.0, 95.36364], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_sddrv_finalize", 92.63158, 96.31579]], "drops": [["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_st_removal_callback", 100.0, 95.36364], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "matched_code", "9260", "8996"], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "matched_functions", 22, 21]], "candidates": [["pfd_sddrv_finalize", 57, 57, 4]]}. Restored source after measurement. Artifacts `build/lv19/sd_inserted_volatile/`.
|
||||
|
||||
Trial `sd_ejected_volatile`: {"label": "sd_ejected_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", " u32 media_ejected;", " volatile u32 media_ejected;"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["pfd_sddrv_finalize", 57, 57, 4]]}. Restored source after measurement. Artifacts `build/lv19/sd_ejected_volatile/`.
|
||||
|
||||
Trial `sd_device_volatile`: {"label": "sd_device_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", " SDDev* device;\n FADisk* disk;", " SDDev* volatile device;\n FADisk* disk;"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["pfd_sddrv_finalize", 57, 57, 4]]}. Restored source after measurement. Artifacts `build/lv19/sd_device_volatile/`.
|
||||
|
||||
Trial `sd_disk_volatile`: {"label": "sd_disk_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", " FADisk* disk;", " FADisk* volatile disk;"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["pfd_sddrv_finalize", 57, 57, 7]]}. Restored source after measurement. Artifacts `build/lv19/sd_disk_volatile/`.
|
||||
|
||||
Trial `sd_drive_volatile`: {"label": "sd_drive_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", " s8 drive;\n} ATTRIBUTE_ALIGN(8)", " volatile s8 drive;\n} ATTRIBUTE_ALIGN(8)"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_sddrv_finalize", 92.63158, 96.31579]], "drops": [], "candidates": [["pfd_sddrv_finalize", 57, 57, 4]]}. Restored source after measurement. Artifacts `build/lv19/sd_drive_volatile/`.
|
||||
|
||||
Trial `sd_media_flags_volatile`: {"label": "sd_media_flags_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", " u32 media_inserted;", " volatile u32 media_inserted;"], ["libs/RVL_SDK/src/fa/driver/sd_drv.c", " u32 media_ejected;", " volatile u32 media_ejected;"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_st_removal_callback", 100.0, 95.36364], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_sddrv_finalize", 92.63158, 96.31579]], "drops": [["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_st_removal_callback", 100.0, 95.36364], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "matched_code", "9260", "8996"], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "matched_functions", 22, 21]], "candidates": [["pfd_sddrv_finalize", 57, 57, 4]]}. Restored source after measurement. Artifacts `build/lv19/sd_media_flags_volatile/`.
|
||||
|
||||
Trial `aoss_cancel_volatile`: {"label": "aoss_cancel_volatile", "edits": [["src/scene/setting/AOSSLink.c", "s32 AOSSi_cancel_flag = 0;", "volatile s32 AOSSi_cancel_flag = 0;"], ["src/scene/setting/AOSS.c", "extern int AOSSi_cancel_flag;", "extern volatile int AOSSi_cancel_flag;"]], "units": ["src/scene/setting/AOSS", "src/scene/setting/AOSSLink"], "build": 0, "pool": {"src/scene/setting/AOSS": 0, "src/scene/setting/AOSSLink": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["AOSSi_WLANConnect", 155, 155, 2]]}. Restored source after measurement. Artifacts `build/lv19/aoss_cancel_volatile/`.
|
||||
|
||||
Trial `so_length_volatile`: {"label": "so_length_volatile", "edits": [["libs/RevoEX/include/revolution/so/SOBasic.h", "typedef struct SOSockAddr {\n u8 len;", "typedef struct SOSockAddr {\n volatile u8 len;"]], "units": ["libs/RevoEX/src/nhttp/NHTTP_socket_RVL", "libs/RevoEX/src/so/SOBasic", "libs/RevoEX/src/so/SOCommon", "libs/RevoEX/src/so/SOInformation", "libs/RevoEX/src/so/SOOption", "src/scene/nakamuraTest/gamespy/common/gsAvailable", "src/scene/nakamuraTest/gamespy/common/gsSHA1", "src/scene/nakamuraTest/gamespy/darray", "src/scene/nakamuraTest/gamespy/natneg/NATify", "src/scene/nakamuraTest/gamespy/natneg/natneg", "src/scene/nakamuraTest/gamespy/nonport", "src/scene/nakamuraTest/iplContest", "src/scene/nakamuraTest/iplNakamuraTest", "src/scene/nakamuraTest/iplNetSetup", "src/scene/setting/AOSS", "src/scene/setting/ATERM", "src/scene/setting/iplAOSSThread", "src/scene/setting/iplRakuRakuThread", "src/system/iplSocketSetting"], "build": 0, "pool": {"libs/RevoEX/src/nhttp/NHTTP_socket_RVL": 0, "libs/RevoEX/src/so/SOBasic": 0, "libs/RevoEX/src/so/SOCommon": 0, "libs/RevoEX/src/so/SOInformation": 0, "libs/RevoEX/src/so/SOOption": 0, "src/scene/nakamuraTest/gamespy/common/gsAvailable": 0, "src/scene/nakamuraTest/gamespy/common/gsSHA1": 0, "src/scene/nakamuraTest/gamespy/darray": 0, "src/scene/nakamuraTest/gamespy/natneg/NATify": 0, "src/scene/nakamuraTest/gamespy/natneg/natneg": 0, "src/scene/nakamuraTest/gamespy/nonport": 1, "src/scene/nakamuraTest/iplContest": 0, "src/scene/nakamuraTest/iplNakamuraTest": 0, "src/scene/nakamuraTest/iplNetSetup": 0, "src/scene/setting/AOSS": 0, "src/scene/setting/ATERM": 0, "src/scene/setting/iplAOSSThread": 0, "src/scene/setting/iplRakuRakuThread": 0, "src/system/iplSocketSetting": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984], ["main/libs/RevoEX/src/so/SOBasic", "SOBind", 100.0, 96.55173], ["main/libs/RevoEX/src/so/SOBasic", "SOConnect", 100.0, 96.55173], ["main/libs/RevoEX/src/so/SOBasic", "SOGetSockName", 96.666664, 89.84127], ["main/libs/RevoEX/src/so/SOBasic", "RecvFrom", 100.0, 95.25862], ["main/libs/RevoEX/src/so/SOBasic", "SendTo", 100.0, 98.56115]], "drops": [["main/libs/RevoEX/src/so/SOBasic", "SOBind", 100.0, 96.55173], ["main/libs/RevoEX/src/so/SOBasic", "SOConnect", 100.0, 96.55173], ["main/libs/RevoEX/src/so/SOBasic", "SOGetSockName", 96.666664, 89.84127], ["main/libs/RevoEX/src/so/SOBasic", "RecvFrom", 100.0, 95.25862], ["main/libs/RevoEX/src/so/SOBasic", "SendTo", 100.0, 98.56115], ["main/libs/RevoEX/src/so/SOBasic", "matched_code", "3836", "2120"], ["main/libs/RevoEX/src/so/SOBasic", "matched_functions", 21, 17]], "candidates": [["ATERMBuildEncryptedMessage", 96, 96, 2], ["ATERMi_AutoConfigThread", 40, 40, 3], ["SOGetSockName", 66, 63, 53]]}. Restored source after measurement. Artifacts `build/lv19/so_length_volatile/`.
|
||||
|
||||
Trial `aterm_result_volatile`: {"label": "aterm_result_volatile", "edits": [["src/scene/setting/ATERM.c", "u32 gAtermResult;", "volatile u32 gAtermResult;"]], "units": ["src/scene/setting/ATERM"], "build": 0, "pool": {"src/scene/setting/ATERM": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["ATERMBuildEncryptedMessage", 96, 96, 2], ["ATERMi_AutoConfigThread", 40, 40, 3]]}. Restored source after measurement. Artifacts `build/lv19/aterm_result_volatile/`.
|
||||
|
||||
Trial `aterm_state_volatile`: {"label": "aterm_state_volatile", "edits": [["src/scene/setting/ATERM.c", "s32 gAtermState;", "volatile s32 gAtermState;"]], "units": ["src/scene/setting/ATERM"], "build": 0, "pool": {"src/scene/setting/ATERM": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984], ["main/src/scene/setting/ATERM", "ATERMi_ApConfigStart", 100.0, 99.02913], ["main/src/scene/setting/ATERM", "ATERMi_ApConfigEnd", 100.0, 97.82946]], "drops": [["main/src/scene/setting/ATERM", "ATERMi_ApConfigStart", 100.0, 99.02913], ["main/src/scene/setting/ATERM", "ATERMi_ApConfigEnd", 100.0, 97.82946], ["main/src/scene/setting/ATERM", "matched_code", "12200", "11272"], ["main/src/scene/setting/ATERM", "matched_functions", 20, 18]], "candidates": [["ATERMBuildEncryptedMessage", 96, 96, 2], ["ATERMi_AutoConfigThread", 40, 40, 3]]}. Restored source after measurement. Artifacts `build/lv19/aterm_state_volatile/`.
|
||||
|
||||
Trial `aterm_deadline_volatile`: {"label": "aterm_deadline_volatile", "edits": [["src/scene/setting/ATERM.c", "u32 gAtermDeadline = 0xFFFFFFFF;", "volatile u32 gAtermDeadline = 0xFFFFFFFF;"]], "units": ["src/scene/setting/ATERM"], "build": 0, "pool": {"src/scene/setting/ATERM": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984], ["main/src/scene/setting/ATERM", "ATERMRunConfigProtocol", 92.100945, 91.50158]], "drops": [["main/src/scene/setting/ATERM", "ATERMRunConfigProtocol", 92.100945, 91.50158], ["main/src/scene/setting/ATERM", "matched_data", "18864", "18584"]], "candidates": [["ATERMBuildEncryptedMessage", 96, 96, 2], ["ATERMi_AutoConfigThread", 40, 40, 3]]}. Restored source after measurement. Artifacts `build/lv19/aterm_deadline_volatile/`.
|
||||
|
||||
## Follow-up and rejection decisions
|
||||
|
||||
The seventeen additional trials completed and restored their sources. AOSS cancellation was a score no-op. Socket length regressed four exact functions plus SOGetSockName and is rejected. The pre-existing pool divergence in gamespy/nonport is unrelated: that unit has unchanged measures/function scores. ATERM result was a no-op; state lost two exact functions; deadline lost data and regressed RunConfigProtocol. All rejected.
|
||||
|
||||
BS2 start/cancel together improve UpdateThread 94.83023 -> 94.99671%, still 911/913 instructions. SD drive improves finalize 92.63158 -> 96.31579%, still four order differences. Neither meets common.md exact-function handoff, so neither is accepted on fuzzy score alone. The SD callback media_inserted qualifier also regresses the exact removal callback and is rejected. Device/ejected/disk give no score gain.
|
||||
|
||||
Final SD follow-up tests the mount/status flags field alone and with the drive field. The callback-visible driver state is consumed through the registered FA driver operations. The original finalize stores its flags before clearing media_inserted; drive qualification already fixes the value-register choice, leaving store order. These are definition-only diagnostics, with acceptance still requiring original-source evidence and zero drops.
|
||||
|
||||
Trial `sd_status_flags_volatile`: {"label": "sd_status_flags_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", "typedef struct PFD_SDDRV_INFO {\n u32 flags;", "typedef struct PFD_SDDRV_INFO {\n volatile u32 flags;"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984]], "drops": [], "candidates": [["pfd_sddrv_finalize", 57, 57, 4]]}. Restored source after measurement. Artifacts `build/lv19/sd_status_flags_volatile/`.
|
||||
|
||||
Trial `sd_status_and_drive_volatile`: {"label": "sd_status_and_drive_volatile", "edits": [["libs/RVL_SDK/src/fa/driver/sd_drv.c", "typedef struct PFD_SDDRV_INFO {\n u32 flags;", "typedef struct PFD_SDDRV_INFO {\n volatile u32 flags;"], ["libs/RVL_SDK/src/fa/driver/sd_drv.c", " s8 drive;\n} ATTRIBUTE_ALIGN(8)", " volatile s8 drive;\n} ATTRIBUTE_ALIGN(8)"]], "units": ["libs/RVL_SDK/src/fa/driver/sd_drv"], "build": 0, "pool": {"libs/RVL_SDK/src/fa/driver/sd_drv": 0}, "changed_functions": [["main/src/scene/memoryCard/iplMemoryCardManager", "isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs", 92.30769, 100.0], ["main/src/scene/memoryCard/iplMemoryCardManager", "getBlocks__Q33ipl5scene17MemoryCardManagerFUcs", 92.0, 100.0], ["main/src/scene/cardSequence/iplCardSequence", "loadCardFileIcons", 90.7832, 91.33984], ["main/libs/RVL_SDK/src/fa/driver/sd_drv", "pfd_sddrv_finalize", 92.63158, 96.31579]], "drops": [], "candidates": [["pfd_sddrv_finalize", 57, 57, 4]]}. Restored source after measurement. Artifacts `build/lv19/sd_status_and_drive_volatile/`.
|
||||
|
||||
## Final sweep disposition
|
||||
|
||||
All 22 definition-level trials built successfully and were measured. The two SD follow-up trials gave no exact function: flags alone is unchanged, flags plus drive retains the four-difference 96.31579% near-match. Restored both. No trial remains applied except the two independently committed card field qualifiers. The source diff from 60341ca4 contains only include/iplMemoryCardLib.h.
|
||||
|
||||
The strict scan found thirteen pure order functions. Both card getters are now exact. Remaining pure-order functions have no demonstrated shared declaration at the differing access, or their eligible qualifier trials did not yield an exact gain. The five additional named near-order functions and supplemental ATERM/SD candidates were audited above. Three keyboard tail-window hits were register/branch differences and excluded. No input pointer, local parser end pointer, string table, or UI animation state was qualified just to change scheduling.
|
||||
|
||||
Final clean gate covers 36 units: libs/RVL_SDK/src/fa/driver/sd_drv, libs/RVL_SDK/src/kbd/kbd_lib, libs/RevoEX/src/nhttp/NHTTP_recvbuf, libs/RevoEX/src/nhttp/NHTTP_socket_RVL, libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL, libs/RevoEX/src/so/SOBasic, libs/RevoEX/src/so/SOCommon, libs/RevoEX/src/so/SOInformation, libs/RevoEX/src/so/SOOption, src/BS2/BS2Mach, src/BS2/BS2Update, src/channelScript/CHANSVm, src/scene/address/iplAddressEdit, src/scene/cardSequence/iplCardSequence, src/scene/memoryCard/iplGCSaveData, src/scene/memoryCard/iplGCWindow, src/scene/memoryCard/iplMemoryCard, src/scene/memoryCard/iplMemoryCardManager, src/scene/nakamuraTest/gamespy/common/gsAvailable, src/scene/nakamuraTest/gamespy/common/gsSHA1, src/scene/nakamuraTest/gamespy/darray, src/scene/nakamuraTest/gamespy/natneg/NATify, src/scene/nakamuraTest/gamespy/natneg/natneg, src/scene/nakamuraTest/gamespy/nonport, src/scene/nakamuraTest/iplContest, src/scene/nakamuraTest/iplNakamuraTest, src/scene/nakamuraTest/iplNetSetup, src/scene/sceneSystem/iplSceneCreator, src/scene/sdChannelSelect/iplSDChannelSelect, src/scene/setting/AOSS, src/scene/setting/AOSSLink, src/scene/setting/ATERM, src/scene/setting/iplAOSSThread, src/scene/setting/iplRakuRakuThread, src/scene/setting/iplSetting, src/system/iplSocketSetting. All 1027 units also participate in its global regression check. Each accepted header change had already passed a separate clean gate on all six including units.
|
||||
|
||||
## Final clean evidence
|
||||
|
||||
Final non-quick gate: `GATE PASS` on all 36 listed units, full build ok, zero baseline regressions, zero new forbidden patterns, zero readability warnings. Raw output: `tools/decomp-assist/lv19.final-gate.txt`. Live `build/43U/report.json` regenerated after the gate with `ninja -C . progress build/43U/report.json build/43U/ok`, exit 0. DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
|
||||
Fresh comparison of all 1027 units with the initial report found exactly three function-score changes and no score/measure drops:
|
||||
|
||||
- `main/src/scene/memoryCard/iplMemoryCardManager::isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs`: 92.30769 -> 100.0%.
|
||||
- `main/src/scene/memoryCard/iplMemoryCardManager::getBlocks__Q33ipl5scene17MemoryCardManagerFUcs`: 92.0 -> 100.0%.
|
||||
- `main/src/scene/cardSequence/iplCardSequence::loadCardFileIcons`: 90.7832 -> 91.33984%.
|
||||
|
||||
MemoryCardManager instruction-exact functions 21/26 -> 23/26, code 3876/5396 -> 4080/5396. The unit has no owned data section. CardSequence remains 27/30 exact and 1496/1496 data; its icon loader improves without becoming exact. Global code 2777644 -> 2777848, exact report functions 12430 -> 12432; data stays 1832576/1832684. Both getters were rechecked after the clean build: banner 26/26, blocks 25/25, ctxdiff diffs 0.
|
||||
|
||||
All six including-unit pools pass. The untouched gamespy/nonport pool divergence was rechecked after restoration and remains gsAssert.c versus localhost; its measures and functions are unchanged. This unrelated baseline discrepancy is not presented as an identical pool.
|
||||
|
||||
Source changes are only the two unconditional field qualifiers in include/iplMemoryCardLib.h, committed separately as d8e6bf6a and bbd0bc1b. The other files are this attempts log and final gate evidence. No rejected trial remains in a tracked source file. Remaining MemoryCardManager functions `_create_icon`, `getComment`, and `create_banner` are outside the pure scheduling/epilogue candidate set and remain non-exact.
|
||||
359
tools/decomp-assist/lv19.final-gate.txt
Normal file
359
tools/decomp-assist/lv19.final-gate.txt
Normal file
@@ -0,0 +1,359 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 9260/11760 data 3592/3592 functions 22/26 fuzzy 99.1412 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 22/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 99.14116
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 93.125
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.63158
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 99.75247
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 95.202705
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 9260/11760 data 3592 functions 22 fuzzy 99.1412
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] objdiff: code 3728/5764 data 5296/5296 functions 17/21 fuzzy 99.9396 linked code 0
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] instruction-exact functions: 17/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 99.93963
|
||||
[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 99.72
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetModState 99.40476
|
||||
[libs/RVL_SDK/src/kbd/kbd_lib] baseline: code 3728/5764 data 5296 functions 17 fuzzy 99.9396
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] objdiff: code 1196/1692 data None/None functions 6/7 fuzzy 99.2151 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] instruction-exact functions: 6/7
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] section .text size 1692 match 99.21513
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] below 100: NHTTPi_compareTokenN_HdrRecvBuf 97.32258
|
||||
[libs/RevoEX/src/nhttp/NHTTP_recvbuf] baseline: code 1196/1692 data None functions 6 fuzzy 99.2151
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] objdiff: code 2140/2140 data None/None functions 10/10 fuzzy 100.0000 linked code 2140
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] instruction-exact functions: 10/10
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] section .text size 2140 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_socket_RVL] baseline: code 2140/2140 data None functions 10 fuzzy 100.0000
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1864/2248 data 112/112 functions 12/14 fuzzy 99.9573 linked code 0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 12/14
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .rodata size 40 match 100.0
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 99.9573
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 99.73333
|
||||
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1864/2248 data 112 functions 12 fuzzy 99.9573
|
||||
[libs/RevoEX/src/so/SOBasic] pool: IDENTICAL
|
||||
[libs/RevoEX/src/so/SOBasic] objdiff: code 3836/4088 data 144/144 functions 21/22 fuzzy 99.7945 linked code 0
|
||||
[libs/RevoEX/src/so/SOBasic] instruction-exact functions: 21/22
|
||||
[libs/RevoEX/src/so/SOBasic] section .bss size 40 match 100.0
|
||||
[libs/RevoEX/src/so/SOBasic] section .data size 88 match 100.0
|
||||
[libs/RevoEX/src/so/SOBasic] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/so/SOBasic] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/so/SOBasic] section .text size 4088 match 99.79452
|
||||
[libs/RevoEX/src/so/SOBasic] below 100: SOGetSockName 96.666664
|
||||
[libs/RevoEX/src/so/SOBasic] baseline: code 3836/4088 data 144 functions 21 fuzzy 99.7945
|
||||
[libs/RevoEX/src/so/SOCommon] pool: IDENTICAL
|
||||
[libs/RevoEX/src/so/SOCommon] objdiff: code 4404/4404 data 528/528 functions 16/16 fuzzy 100.0000 linked code 4404
|
||||
[libs/RevoEX/src/so/SOCommon] instruction-exact functions: 16/16
|
||||
[libs/RevoEX/src/so/SOCommon] section .bss size 24 match 100.0
|
||||
[libs/RevoEX/src/so/SOCommon] section .data size 480 match 100.0
|
||||
[libs/RevoEX/src/so/SOCommon] section .sbss size 16 match 100.0
|
||||
[libs/RevoEX/src/so/SOCommon] section .sdata size 8 match 100.0
|
||||
[libs/RevoEX/src/so/SOCommon] section .text size 4404 match 100.0
|
||||
[libs/RevoEX/src/so/SOCommon] baseline: code 4404/4404 data 528 functions 16 fuzzy 100.0000
|
||||
[libs/RevoEX/src/so/SOInformation] pool: IDENTICAL
|
||||
[libs/RevoEX/src/so/SOInformation] objdiff: code 1280/1280 data None/None functions 4/4 fuzzy 100.0000 linked code 1280
|
||||
[libs/RevoEX/src/so/SOInformation] instruction-exact functions: 4/4
|
||||
[libs/RevoEX/src/so/SOInformation] section .text size 1280 match 100.0
|
||||
[libs/RevoEX/src/so/SOInformation] baseline: code 1280/1280 data None functions 4 fuzzy 100.0000
|
||||
[libs/RevoEX/src/so/SOOption] pool: IDENTICAL
|
||||
[libs/RevoEX/src/so/SOOption] objdiff: code 1292/1292 data None/None functions 4/4 fuzzy 100.0000 linked code 1292
|
||||
[libs/RevoEX/src/so/SOOption] instruction-exact functions: 4/4
|
||||
[libs/RevoEX/src/so/SOOption] section .text size 1292 match 100.0
|
||||
[libs/RevoEX/src/so/SOOption] baseline: code 1292/1292 data None functions 4 fuzzy 100.0000
|
||||
[src/BS2/BS2Mach] pool: IDENTICAL
|
||||
[src/BS2/BS2Mach] objdiff: code 5112/16980 data 158528/158528 functions 25/29 fuzzy 99.1698 linked code 0
|
||||
[src/BS2/BS2Mach] instruction-exact functions: 25/29
|
||||
[src/BS2/BS2Mach] section .bss size 155232 match 100.0
|
||||
[src/BS2/BS2Mach] section .data size 3024 match 100.0
|
||||
[src/BS2/BS2Mach] section .sbss size 240 match 100.0
|
||||
[src/BS2/BS2Mach] section .sdata size 32 match 100.0
|
||||
[src/BS2/BS2Mach] section .text size 16980 match 99.169846
|
||||
[src/BS2/BS2Mach] below 100: BS2StartGame 98.72774
|
||||
[src/BS2/BS2Mach] below 100: BS2StartGCGame 97.82895
|
||||
[src/BS2/BS2Mach] below 100: CheckBS2CommandStatus 99.50739
|
||||
[src/BS2/BS2Mach] below 100: BS2Tick 98.799484
|
||||
[src/BS2/BS2Mach] baseline: code 5112/16980 data 158528 functions 25 fuzzy 99.1698
|
||||
[src/BS2/BS2Update] pool: IDENTICAL
|
||||
[src/BS2/BS2Update] objdiff: code 400/4052 data 10488/10488 functions 9/10 fuzzy 95.3406 linked code 0
|
||||
[src/BS2/BS2Update] instruction-exact functions: 9/10
|
||||
[src/BS2/BS2Update] section .bss size 9056 match 100.0
|
||||
[src/BS2/BS2Update] section .data size 1328 match 100.0
|
||||
[src/BS2/BS2Update] section .sbss size 80 match 100.0
|
||||
[src/BS2/BS2Update] section .sdata size 24 match 100.0
|
||||
[src/BS2/BS2Update] section .text size 4052 match 95.340576
|
||||
[src/BS2/BS2Update] below 100: UpdateThread 94.83023
|
||||
[src/BS2/BS2Update] baseline: code 400/4052 data 10488 functions 9 fuzzy 95.3406
|
||||
[src/channelScript/CHANSVm] pool: IDENTICAL
|
||||
[src/channelScript/CHANSVm] objdiff: code 39908/53564 data 6904/6904 functions 224/233 fuzzy 99.4673 linked code 0
|
||||
[src/channelScript/CHANSVm] instruction-exact functions: 224/233
|
||||
[src/channelScript/CHANSVm] section .data size 4672 match 100.0
|
||||
[src/channelScript/CHANSVm] section .rodata size 1432 match 100.0
|
||||
[src/channelScript/CHANSVm] section .sbss size 16 match 100.0
|
||||
[src/channelScript/CHANSVm] section .sdata size 600 match 100.0
|
||||
[src/channelScript/CHANSVm] section .sdata2 size 184 match 100.0
|
||||
[src/channelScript/CHANSVm] section .text size 53564 match 99.46733
|
||||
[src/channelScript/CHANSVm] below 100: CHANSVmConvertToFloatFromStr 97.59036
|
||||
[src/channelScript/CHANSVm] below 100: VmDateDtor 94.96703
|
||||
[src/channelScript/CHANSVm] below 100: VmStringSplit 98.04054
|
||||
[src/channelScript/CHANSVm] below 100: CHANSVmFormatString 99.84919
|
||||
[src/channelScript/CHANSVm] below 100: VmBlobGetHexString 98.71951
|
||||
[src/channelScript/CHANSVm] below 100: VmBlobPackCommon 98.0988
|
||||
[src/channelScript/CHANSVm] below 100: VmBlobUnpack 98.452614
|
||||
[src/channelScript/CHANSVm] below 100: VmWinEmuWrite 99.62687
|
||||
[src/channelScript/CHANSVm] below 100: CHANSVmStep 96.98723
|
||||
[src/channelScript/CHANSVm] baseline: code 39908/53564 data 6904 functions 224 fuzzy 99.4673
|
||||
[src/scene/address/iplAddressEdit] pool: IDENTICAL
|
||||
[src/scene/address/iplAddressEdit] objdiff: code 23344/27112 data 2560/2560 functions 91/94 fuzzy 99.5528 linked code 0
|
||||
[src/scene/address/iplAddressEdit] instruction-exact functions: 91/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.55282
|
||||
[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561
|
||||
[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] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528
|
||||
[src/scene/cardSequence/iplCardSequence] pool: IDENTICAL
|
||||
[src/scene/cardSequence/iplCardSequence] objdiff: code 4168/9852 data 1496/1496 functions 27/30 fuzzy 97.4263 linked code 0
|
||||
[src/scene/cardSequence/iplCardSequence] instruction-exact functions: 27/30
|
||||
[src/scene/cardSequence/iplCardSequence] section .bss size 16 match 100.0
|
||||
[src/scene/cardSequence/iplCardSequence] section .data size 1464 match 100.0
|
||||
[src/scene/cardSequence/iplCardSequence] section .sbss size 8 match 100.0
|
||||
[src/scene/cardSequence/iplCardSequence] section .sdata size 8 match 100.0
|
||||
[src/scene/cardSequence/iplCardSequence] section .text size 9852 match 97.42631
|
||||
[src/scene/cardSequence/iplCardSequence] below 100: cardThreadMain 97.9402
|
||||
[src/scene/cardSequence/iplCardSequence] below 100: loadCardFileIcons 91.33984
|
||||
[src/scene/cardSequence/iplCardSequence] below 100: runCardMoveOrCopy 97.88651
|
||||
[src/scene/cardSequence/iplCardSequence] baseline: code 4168/9852 data 1496 functions 27 fuzzy 97.3106
|
||||
[src/scene/memoryCard/iplGCSaveData] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplGCSaveData] objdiff: code 2008/2008 data 392/392 functions 12/12 fuzzy 100.0000 linked code 2008
|
||||
[src/scene/memoryCard/iplGCSaveData] instruction-exact functions: 12/12
|
||||
[src/scene/memoryCard/iplGCSaveData] section .data size 336 match 100.0
|
||||
[src/scene/memoryCard/iplGCSaveData] section .rodata size 40 match 100.0
|
||||
[src/scene/memoryCard/iplGCSaveData] section .sdata size 16 match 100.0
|
||||
[src/scene/memoryCard/iplGCSaveData] section .text size 2008 match 100.0
|
||||
[src/scene/memoryCard/iplGCSaveData] baseline: code 2008/2008 data 392 functions 12 fuzzy 100.0000
|
||||
[src/scene/memoryCard/iplGCWindow] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplGCWindow] objdiff: code 9964/9964 data 2032/2032 functions 48/48 fuzzy 100.0000 linked code 9964
|
||||
[src/scene/memoryCard/iplGCWindow] instruction-exact functions: 48/48
|
||||
[src/scene/memoryCard/iplGCWindow] section .data size 1784 match 100.0
|
||||
[src/scene/memoryCard/iplGCWindow] section .rodata size 176 match 100.0
|
||||
[src/scene/memoryCard/iplGCWindow] section .sdata size 48 match 100.0
|
||||
[src/scene/memoryCard/iplGCWindow] section .sdata2 size 24 match 100.0
|
||||
[src/scene/memoryCard/iplGCWindow] section .text size 9964 match 100.0
|
||||
[src/scene/memoryCard/iplGCWindow] baseline: code 9964/9964 data 2032 functions 48 fuzzy 100.0000
|
||||
[src/scene/memoryCard/iplMemoryCard] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCard] objdiff: code 9264/9264 data 2656/2656 functions 41/41 fuzzy 100.0000 linked code 9264
|
||||
[src/scene/memoryCard/iplMemoryCard] instruction-exact functions: 41/41
|
||||
[src/scene/memoryCard/iplMemoryCard] section .data size 2320 match 100.0
|
||||
[src/scene/memoryCard/iplMemoryCard] section .rodata size 280 match 100.0
|
||||
[src/scene/memoryCard/iplMemoryCard] section .sdata size 40 match 100.0
|
||||
[src/scene/memoryCard/iplMemoryCard] section .sdata2 size 16 match 100.0
|
||||
[src/scene/memoryCard/iplMemoryCard] section .text size 9264 match 100.0
|
||||
[src/scene/memoryCard/iplMemoryCard] baseline: code 9264/9264 data 2656 functions 41 fuzzy 100.0000
|
||||
[src/scene/memoryCard/iplMemoryCardManager] pool: IDENTICAL
|
||||
[src/scene/memoryCard/iplMemoryCardManager] objdiff: code 4080/5396 data None/None functions 23/26 fuzzy 98.2283 linked code 0
|
||||
[src/scene/memoryCard/iplMemoryCardManager] instruction-exact functions: 23/26
|
||||
[src/scene/memoryCard/iplMemoryCardManager] section .text size 5396 match 98.22832
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl 87.55
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: getComment__Q33ipl5scene17MemoryCardManagerFUcsi 98.94309
|
||||
[src/scene/memoryCard/iplMemoryCardManager] below 100: create_banner__Q33ipl5scene17MemoryCardManagerFUcs 90.42453
|
||||
[src/scene/memoryCard/iplMemoryCardManager] baseline: code 3876/5396 data None functions 21 fuzzy 97.9318
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] objdiff: code 832/832 data 272/272 functions 3/3 fuzzy 100.0000 linked code 832
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] instruction-exact functions: 3/3
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] section .bss size 216 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] section .data size 40 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] section .sbss size 8 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] section .sdata size 8 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] section .text size 832 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/common/gsAvailable] baseline: code 832/832 data 272 functions 3 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/gamespy/common/gsSHA1] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/gamespy/common/gsSHA1] objdiff: code 1472/1472 data 16/16 functions 5/5 fuzzy 100.0000 linked code 1472
|
||||
[src/scene/nakamuraTest/gamespy/common/gsSHA1] instruction-exact functions: 5/5
|
||||
[src/scene/nakamuraTest/gamespy/common/gsSHA1] section .rodata size 16 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/common/gsSHA1] section .text size 1472 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/common/gsSHA1] baseline: code 1472/1472 data 16 functions 5 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/gamespy/darray] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/gamespy/darray] objdiff: code 348/348 data None/None functions 5/5 fuzzy 100.0000 linked code 348
|
||||
[src/scene/nakamuraTest/gamespy/darray] instruction-exact functions: 5/5
|
||||
[src/scene/nakamuraTest/gamespy/darray] section .text size 348 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/darray] baseline: code 348/348 data None functions 5 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] objdiff: code 2344/2344 data 608/608 functions 6/6 fuzzy 100.0000 linked code 2344
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] instruction-exact functions: 6/6
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] section .bss size 560 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] section .sbss size 32 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] section .sdata size 16 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] section .text size 2344 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/NATify] baseline: code 2344/2344 data 608 functions 6 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] objdiff: code 4448/4448 data 896/896 functions 16/16 fuzzy 100.0000 linked code 4448
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] instruction-exact functions: 16/16
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] section .bss size 728 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] section .data size 88 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] section .sbss size 48 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] section .sdata size 32 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] section .text size 4448 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/natneg/natneg] baseline: code 4448/4448 data 896 functions 16 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/gamespy/nonport] pool: DIVERGES at string 0 (mine=4 orig=1)
|
||||
[src/scene/nakamuraTest/gamespy/nonport] objdiff: code 1352/1352 data 56/56 functions 18/18 fuzzy 100.0000 linked code 1352
|
||||
[src/scene/nakamuraTest/gamespy/nonport] instruction-exact functions: 18/18
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .bss size 16 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .data size 32 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .sbss size 8 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] section .text size 1352 match 100.0
|
||||
[src/scene/nakamuraTest/gamespy/nonport] baseline: code 1352/1352 data 56 functions 18 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/iplContest] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/iplContest] objdiff: code 3792/3792 data 3096/3096 functions 18/18 fuzzy 100.0000 linked code 3792
|
||||
[src/scene/nakamuraTest/iplContest] instruction-exact functions: 18/18
|
||||
[src/scene/nakamuraTest/iplContest] section .bss size 2256 match 100.0
|
||||
[src/scene/nakamuraTest/iplContest] section .data size 752 match 100.0
|
||||
[src/scene/nakamuraTest/iplContest] section .rodata size 72 match 100.0
|
||||
[src/scene/nakamuraTest/iplContest] section .sdata size 8 match 100.0
|
||||
[src/scene/nakamuraTest/iplContest] section .sdata2 size 8 match 100.0
|
||||
[src/scene/nakamuraTest/iplContest] section .text size 3792 match 100.0
|
||||
[src/scene/nakamuraTest/iplContest] baseline: code 3792/3792 data 3096 functions 18 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] objdiff: code 3596/3596 data 912/912 functions 15/15 fuzzy 100.0000 linked code 3596
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] instruction-exact functions: 15/15
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] section .data size 872 match 100.0
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] section .rodata size 24 match 100.0
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] section .sbss size 8 match 100.0
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] section .sdata size 8 match 100.0
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] section .text size 3596 match 100.0
|
||||
[src/scene/nakamuraTest/iplNakamuraTest] baseline: code 3596/3596 data 912 functions 15 fuzzy 100.0000
|
||||
[src/scene/nakamuraTest/iplNetSetup] pool: IDENTICAL
|
||||
[src/scene/nakamuraTest/iplNetSetup] objdiff: code 2080/2080 data 256/256 functions 11/11 fuzzy 100.0000 linked code 2080
|
||||
[src/scene/nakamuraTest/iplNetSetup] instruction-exact functions: 11/11
|
||||
[src/scene/nakamuraTest/iplNetSetup] section .bss size 40 match 100.0
|
||||
[src/scene/nakamuraTest/iplNetSetup] section .data size 208 match 100.0
|
||||
[src/scene/nakamuraTest/iplNetSetup] section .sbss size 8 match 100.0
|
||||
[src/scene/nakamuraTest/iplNetSetup] section .text size 2080 match 100.0
|
||||
[src/scene/nakamuraTest/iplNetSetup] baseline: code 2080/2080 data 256 functions 11 fuzzy 100.0000
|
||||
[src/scene/sceneSystem/iplSceneCreator] pool: IDENTICAL
|
||||
[src/scene/sceneSystem/iplSceneCreator] objdiff: code 1332/1332 data 304/304 functions 2/2 fuzzy 100.0000 linked code 1332
|
||||
[src/scene/sceneSystem/iplSceneCreator] instruction-exact functions: 2/2
|
||||
[src/scene/sceneSystem/iplSceneCreator] section .data size 304 match 100.0
|
||||
[src/scene/sceneSystem/iplSceneCreator] section .text size 1332 match 100.0
|
||||
[src/scene/sceneSystem/iplSceneCreator] baseline: code 1332/1332 data 304 functions 2 fuzzy 100.0000
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] pool: IDENTICAL
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 30344/33828 data 2960/2960 functions 123/129 fuzzy 99.7731 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 123/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.77309
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: create__Q33ipl5scene15SDChannelSelectFv 97.73972
|
||||
[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 98.007935
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] baseline: code 30344/33828 data 2960 functions 123 fuzzy 99.7731
|
||||
[src/scene/setting/AOSS] pool: IDENTICAL
|
||||
[src/scene/setting/AOSS] objdiff: code 7720/16192 data 3928/3928 functions 17/21 fuzzy 97.9155 linked code 0
|
||||
[src/scene/setting/AOSS] instruction-exact functions: 17/21
|
||||
[src/scene/setting/AOSS] section .bss size 3496 match 100.0
|
||||
[src/scene/setting/AOSS] section .data size 368 match 100.0
|
||||
[src/scene/setting/AOSS] section .sbss size 32 match 100.0
|
||||
[src/scene/setting/AOSS] section .sdata size 24 match 100.0
|
||||
[src/scene/setting/AOSS] section .sdata2 size 8 match 100.0
|
||||
[src/scene/setting/AOSS] section .text size 16192 match 97.91551
|
||||
[src/scene/setting/AOSS] below 100: AOSS_Init_old 96.18624
|
||||
[src/scene/setting/AOSS] below 100: AOSSApplyAuthOptions 98.77193
|
||||
[src/scene/setting/AOSS] below 100: AOSSSendHelloRequest 92.48351
|
||||
[src/scene/setting/AOSS] below 100: AOSSXorBufferWithKey 98.605446
|
||||
[src/scene/setting/AOSS] baseline: code 7720/16192 data 3928 functions 17 fuzzy 97.9155
|
||||
[src/scene/setting/AOSSLink] pool: IDENTICAL
|
||||
[src/scene/setting/AOSSLink] objdiff: code 668/2196 data 2432/2432 functions 12/14 fuzzy 99.0073 linked code 0
|
||||
[src/scene/setting/AOSSLink] instruction-exact functions: 12/14
|
||||
[src/scene/setting/AOSSLink] section .bss size 2344 match 100.0
|
||||
[src/scene/setting/AOSSLink] section .data size 48 match 100.0
|
||||
[src/scene/setting/AOSSLink] section .sbss size 40 match 100.0
|
||||
[src/scene/setting/AOSSLink] section .text size 2196 match 99.007286
|
||||
[src/scene/setting/AOSSLink] below 100: AOSSi_WLANGetBSSList 98.48018
|
||||
[src/scene/setting/AOSSLink] below 100: AOSSi_WLANConnect 98.70968
|
||||
[src/scene/setting/AOSSLink] baseline: code 668/2196 data 2432 functions 12 fuzzy 99.0073
|
||||
[src/scene/setting/ATERM] pool: IDENTICAL
|
||||
[src/scene/setting/ATERM] objdiff: code 12200/19204 data 18864/18864 functions 20/26 fuzzy 98.2020 linked code 0
|
||||
[src/scene/setting/ATERM] instruction-exact functions: 20/26
|
||||
[src/scene/setting/ATERM] section .bss size 8160 match 100.0
|
||||
[src/scene/setting/ATERM] section .data size 280 match 100.0
|
||||
[src/scene/setting/ATERM] section .rodata size 10280 match 100.0
|
||||
[src/scene/setting/ATERM] section .sbss size 80 match 100.0
|
||||
[src/scene/setting/ATERM] section .sdata size 56 match 100.0
|
||||
[src/scene/setting/ATERM] section .sdata2 size 8 match 100.0
|
||||
[src/scene/setting/ATERM] section .text size 19204 match 98.20204
|
||||
[src/scene/setting/ATERM] below 100: ATERMDiscoverAccessPoints 98.31939
|
||||
[src/scene/setting/ATERM] below 100: ATERMBuildEncryptedMessage 99.791664
|
||||
[src/scene/setting/ATERM] below 100: ATERMBuildAssociationRequest 98.7594
|
||||
[src/scene/setting/ATERM] below 100: ATERMRunConfigProtocol 92.100945
|
||||
[src/scene/setting/ATERM] below 100: ATERMi_AutoConfigThread 94.75
|
||||
[src/scene/setting/ATERM] below 100: ATERMAesExpandEncryptKey 98.94403
|
||||
[src/scene/setting/ATERM] baseline: code 12200/19204 data 18864 functions 20 fuzzy 98.2020
|
||||
[src/scene/setting/iplAOSSThread] pool: IDENTICAL
|
||||
[src/scene/setting/iplAOSSThread] objdiff: code 1892/1892 data 88/88 functions 10/10 fuzzy 100.0000 linked code 1892
|
||||
[src/scene/setting/iplAOSSThread] instruction-exact functions: 10/10
|
||||
[src/scene/setting/iplAOSSThread] section .bss size 16 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .data size 48 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .sbss size 16 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .sdata size 8 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .text size 1892 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] baseline: code 1892/1892 data 88 functions 10 fuzzy 100.0000
|
||||
[src/scene/setting/iplRakuRakuThread] pool: IDENTICAL
|
||||
[src/scene/setting/iplRakuRakuThread] objdiff: code 2168/2168 data 456/456 functions 14/14 fuzzy 100.0000 linked code 2168
|
||||
[src/scene/setting/iplRakuRakuThread] instruction-exact functions: 14/14
|
||||
[src/scene/setting/iplRakuRakuThread] section .bss size 296 match 100.0
|
||||
[src/scene/setting/iplRakuRakuThread] section .data size 136 match 100.0
|
||||
[src/scene/setting/iplRakuRakuThread] section .sbss size 16 match 100.0
|
||||
[src/scene/setting/iplRakuRakuThread] section .sdata size 8 match 100.0
|
||||
[src/scene/setting/iplRakuRakuThread] section .text size 2168 match 100.0
|
||||
[src/scene/setting/iplRakuRakuThread] baseline: code 2168/2168 data 456 functions 14 fuzzy 100.0000
|
||||
[src/scene/setting/iplSetting] pool: IDENTICAL
|
||||
[src/scene/setting/iplSetting] objdiff: code 36796/37884 data 5696/5696 functions 111/112 fuzzy 99.9771 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 111/112
|
||||
[src/scene/setting/iplSetting] section .bss size 456 match 100.0
|
||||
[src/scene/setting/iplSetting] section .data size 4016 match 100.0
|
||||
[src/scene/setting/iplSetting] section .rodata size 640 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sbss size 16 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sdata size 504 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sdata2 size 64 match 100.0
|
||||
[src/scene/setting/iplSetting] section .text size 37884 match 99.97709
|
||||
[src/scene/setting/iplSetting] below 100: scanAP__Q33ipl5scene7SettingFv 99.20221
|
||||
[src/scene/setting/iplSetting] baseline: code 36796/37884 data 5696 functions 111 fuzzy 99.9771
|
||||
[src/system/iplSocketSetting] pool: IDENTICAL
|
||||
[src/system/iplSocketSetting] objdiff: code 864/864 data 128/128 functions 8/8 fuzzy 100.0000 linked code 864
|
||||
[src/system/iplSocketSetting] instruction-exact functions: 8/8
|
||||
[src/system/iplSocketSetting] section .bss size 64 match 100.0
|
||||
[src/system/iplSocketSetting] section .data size 48 match 100.0
|
||||
[src/system/iplSocketSetting] section .sbss size 16 match 100.0
|
||||
[src/system/iplSocketSetting] section .text size 864 match 100.0
|
||||
[src/system/iplSocketSetting] baseline: code 864/864 data 128 functions 8 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.74406
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78099
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: include/iplMemoryCardLib.h: volatile object declaration (orchestrator checks the target really re-reads it) (+2 net), e.g. volatile u16 size; // 0x02
|
||||
GATE PASS
|
||||
94
tools/decomp-assist/rea-cdb.attempts.md
Normal file
94
tools/decomp-assist/rea-cdb.attempts.md
Normal file
@@ -0,0 +1,94 @@
|
||||
# REA CDB source conversion, 2026-10-05
|
||||
|
||||
Baseline: `9d40859ee8f4ee37dc692e444727d17367bfcbeb`.
|
||||
REA: `coah80/rea` commit `d19af8526975e8380da733c4f7313f73ee6a1c74`.
|
||||
Ghidra 12.1.4, language `PowerPC:BE:32:Gekko_Broadway`.
|
||||
|
||||
## Filename validator, rejected
|
||||
|
||||
`CDBFSIsCDBFileOnSD`: REA confirmed eight hexadecimal characters, a dot,
|
||||
and three hexadecimal characters, with a bounded length check of 13.
|
||||
The existing C fallback compiled to 127/127 instructions with 20 register
|
||||
differences. The assembly body was restored; no filename source change is kept.
|
||||
|
||||
Compiled trials:
|
||||
|
||||
- advance-pointer: src 0x1fc base 0x1fc insns 127/127; diffs 33: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 38, 39, 40, 41, 42, 43, 44, 45].
|
||||
- afterlength: src 0x1fc base 0x1fc insns 127/127; diffs 27: [8, 9, 10, 11, 12, 13, 14, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55].
|
||||
- before: src 0x204 base 0x1fc insns 129/127; --- replace mine 5:8 base 5:6.
|
||||
- char-local: src 0x204 base 0x1fc insns 129/127; --- replace mine 8:10 base 8:10.
|
||||
- early-length: src 0x1fc base 0x1fc insns 127/127; diffs 113: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27].
|
||||
- index-base: src 0x200 base 0x1fc insns 128/127; --- replace mine 8:10 base 8:10.
|
||||
- index-expression: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- indices-first: src 0x1fc base 0x1fc insns 127/127; diffs 22: [9, 11, 12, 13, 14, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 54, 55, 73].
|
||||
- indices-int: src 0x1f4 base 0x1fc insns 125/127; --- replace mine 8:10 base 8:10.
|
||||
- indices-short: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- indices-signed-char: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- indices-unsigned-char: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- indices-unsigned-short: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- indices-unsigned: src 0x1f4 base 0x1fc insns 125/127; --- replace mine 8:10 base 8:10.
|
||||
- inside: src 0x1fc base 0x1fc insns 127/127; diffs 24: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 57, 62, 73].
|
||||
- local-int: src 0x1fc base 0x1fc insns 127/127; diffs 22: [9, 11, 12, 13, 14, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 54, 55, 73].
|
||||
- outer-decls-4: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- outer-decls-5: src 0x1fc base 0x1fc insns 127/127; diffs 22: [9, 11, 12, 13, 14, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 54, 55, 73].
|
||||
- pointer-after-indices: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- pointer-before-call: src 0x204 base 0x1fc insns 129/127; --- delete mine 6:8 base 6:6.
|
||||
- pointer-const: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- pointer-loop-init: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- pointer-subscript: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- positive-condition: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- separate-checks: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- separate-index: src 0x1fc base 0x1fc insns 127/127; diffs 20: [9, 11, 12, 13, 16, 18, 20, 27, 28, 29, 35, 37, 39, 46, 47, 48, 55, 73, 92, 111].
|
||||
- unrolled-0: src 0x1f4 base 0x1fc insns 125/127; --- replace mine 8:10 base 8:10.
|
||||
- unrolled-1: src 0x1f4 base 0x1fc insns 125/127; --- replace mine 8:10 base 8:10.
|
||||
|
||||
## Search callback, exact candidate
|
||||
|
||||
REA imported the original CDBDatabase object, listed its functions, and
|
||||
exported `CDBDatabaseSearchCallCallback` assembly and pseudocode.
|
||||
The input SHA-256 is `336938cc4483cf2cd8e1c0a9e188fc567f09c0a4a4911b10fdc4e173d4b02605`.
|
||||
|
||||
Used existing typed database state, search conditions, and record fields.
|
||||
Corrected the local `CDBRecordOpenReadOnly` declaration to return `CDBErr`.
|
||||
Kept the success block nested under `result == CDB_ERROR_OK`, with the error
|
||||
return in its else block. This preserves the target's extra branch that the
|
||||
prior early-return trials in `asm-conversions.attempts.md` did not reproduce.
|
||||
|
||||
First compiled candidate: 61/61 instructions, 244/244 bytes, ctxdiff zero.
|
||||
String pool: identical, seven entries. This replaces an existing matching
|
||||
assembly body; it does not increase the already-counted exact function total.
|
||||
|
||||
REA evidence remains locally in `build/rea-cdbcallback/elf.json` and `elf.c`.
|
||||
The verifier command was:
|
||||
|
||||
```
|
||||
node /mnt/drive2/projects/rea-wii/scripts/verify-wii-powerpc.mjs \
|
||||
build/43U/obj/libs/RevoEX/src/cdb/CDBDatabase.o \
|
||||
CDBDatabaseSearchCallCallback build/rea-cdbcallback
|
||||
```
|
||||
|
||||
## Full validation
|
||||
|
||||
```
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .data size 312 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] section .text size 12152 match 100.0
|
||||
[libs/RevoEX/src/cdb/CDBDatabase] baseline: code 12152/12152 data 312 functions 33 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 92.73726 -> 92.73726
|
||||
global fuzzy_match_percent: 99.78007 -> 99.78007
|
||||
global complete_code_percent: 76.40339 -> 76.40339
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
The final completion checker still fails for the incomplete overall project.
|
||||
After this candidate was exact, a read-only check found the separate `data-d2`
|
||||
worker had independently converted this callback too. The draft PR notes
|
||||
this overlap so the reviewer can choose one implementation.
|
||||
489
tools/decomp-assist/rx2.attempts.md
Normal file
489
tools/decomp-assist/rx2.attempts.md
Normal file
@@ -0,0 +1,489 @@
|
||||
# rx2 allocator experiments
|
||||
|
||||
Branch agent/w1005/rx2, starting commit 21c5ceda. Assigned six existing asm bodies. Accept only readable C/C++ with exact-name objdiff 100.0%, ctxdiff zero differences, unchanged pools, and a full gate preserving DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Otherwise restore the existing body and retain the rejected C in build/rx2.
|
||||
|
||||
Read deasm-round.md, common.md, levers 20-22, mwdbg README, da7 attempts, and prior g9/da6/da1b logs. The last three logs are absent on origin/main at 21c5ceda; recovered them read-only through git objects 88f7db56, 072e18a9, and 74f101d6. Fresh origin fetch confirms the assigned bodies remain asm.
|
||||
|
||||
The initial local mwdbg launcher redirected output and GDB working directory into this worktree and opened the shared port lock read-only. Later emulator include, encoding, and port workarounds are documented below and validated against normal wibo objects. The compiler executable, production build flags, and shared tooling were never modified. Original sources, rejected candidates, allocator captures and gate output live under build/rx2.
|
||||
|
||||
- exception-00-plain: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.18367%; insns 98/98, diffs 13; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-00-plain: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- sdi-00-best: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- warning-00-best: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- title-00-best: getTitleName__Q33ipl7channel7ManagerCFiii 99.366196%; insns 71/71, diffs 7; pool IDENTICAL 9/9
|
||||
|
||||
## Baseline and target value maps
|
||||
|
||||
Fresh baseline quick gate passes, all six units exact with their existing asm, DOL 26116613f624061ba99c8d1a299aaa6efa85670d. Gate baseline is f22468d1, the nearest saved report one commit before this branch. No initial source edits.
|
||||
|
||||
- TVRC best C reproduced at 198/198, seven differences. Target r6 is the reloaded file after memcmp, r7 is cmd*8, r4 is the reloaded file plus command-table index, and r5 is the command record addressed through the original entry offset. Source selects r4/r3/r4 respectively and also loads repeatOffset through a different cached base at instruction 69. This is not established as a pure rename. Initial compile lacked the utility declaration; compiler failure was caught from the build log, the missing existing header was included, and all subsequent results require successful compilation before measurement.
|
||||
- getTitleName best C reproduced at 71/71, seven differences. First check target r0 holds language*84 then nameIndex*42 + language*84, r3 holds metadata then the final address. C groups metadata + language*84 before nameIndex*42. Loop target r0 holds metadata + nameIndex*42; r5 holds language*84; r4 combines them. C groups the two offsets first. The addition trees differ before coloring.
|
||||
- Exception plain C reproduces 99.18367%, 98/98, 13 differences without the older HorizontalPosition carrier. Target r29 holds xCur, r27 holds loop count 4, and r26 holds the KPADRead byte offset. C uses r26, r29, r27 respectively. Other saved values match: r31 yCur, r30 scroll maximum, r28 this, r25 previous y, r24 previous x, r23 read channel.
|
||||
- CDB plain C gives 98.85827%, 127/127, 20 differences. Target r3 is the filename cursor, r6 the locale table, r5 the sign-extended character, r4 the ctype map. Plain C chooses r6, r5, r4, r3. The older 99.09449% candidate uses a forbidden cursor carrier; retained trials use plain locals.
|
||||
- ISD best C reproduces 98.39286%, 84/84, 20 differences. Target r3 holds sectorCount and sizeMultiplier at different times, r4 clamped readBlockLength then its shift, r5 eraseBlockSize, r0 eraseBlockCount at the final stores. Source sectorCount is r4, readBlockLength r3 then shift r6, and sizeMultiplier r5.
|
||||
- warning_run best C reproduces 98.66477%, 176/176, 47 differences. Target r28 is smArg base, r29 saved pointer visibility, r30 conversion constant 0x4330, r31 sound-system address. C chooses r31, r28, r29, r30. Target and source r27 both hold the render-mode pointer.
|
||||
|
||||
All reproduced pools are identical. Immutable C snapshots are used for queued captures, so later trials cannot alter a pending debugger input. No carrier, functor, register keyword, or new asm is proposed.
|
||||
|
||||
- cdb-01-indexed-prefix: CDBFSIsCDBFileOnSD 97.125984%; insns 128/127, diffs 117; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-02-prefix-helper: CDBFSIsCDBFileOnSD 95.03937%; insns 132/127, diffs 87; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-03-reused-parameter: CDBFSIsCDBFileOnSD 98.70079%; insns 127/127, diffs 24; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-04-character-result: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- sdi-01-reuse-erase-size: ISD_GetCardSize 97.38095%; insns 84/84, diffs 21; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-02-reuse-clamped-length: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-03-reuse-multiplier: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-04-reuse-arithmetic: ISD_GetCardSize 97.38095%; insns 84/84, diffs 21; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-05-erase-bits-local: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-06-separate-multiplier-result: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- cdb-05-cursor-function: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-06-outer-inline: CDBFSIsCDBFileOnSD 98.74016%; insns 127/127, diffs 22; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-07-typed-pair-cursor: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-08-pair-cursor-indexed: CDBFSIsCDBFileOnSD 99.09449%; insns 127/127, diffs 17; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-09-returned-advance: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- sdi-07-reuse-size-word: ISD_GetCardSize 98.15476%; insns 84/84, diffs 21; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-08-reuse-return-for-size: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-09-named-unclamped: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-10-clamp-boundaries: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-11-size-outside-branch: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\rx2\trials\sdi-11-size-outside-branch\sdi_api.c
|
||||
# --------------------------------------------------------------
|
||||
# 808: u32 blockScale;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- sdi-12-inline-geometry: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
## Debugger compatibility and first allocator findings
|
||||
|
||||
Retrowin32 crashes at compiler PC 0x47e090 before CodeGen when the four C++ commands use `-enc SJIS`. The same TVRC source without that encoding option compiles successfully under retrowin32 and is byte-identical to the real Ninja/wibo object, SHA256 5997280a44179dc00bafb87d4743e2c206332e836201e672e2c3260ac528b0b8. Debug captures omit only this frontend encoding option when present; production builds and trial scoring keep the real flags. Each successful capture is independently compared against wibo. This is an emulator compatibility workaround, not a retained compiler flag change.
|
||||
|
||||
CDB capture cdb-00: no coalescing candidates. Named ptr r35 is simplified early and colored after locale r37, character r41 and map-address r48. Their colors are r6, r5, r4, r3. To get target cursor r3, its priority must move ahead of the map-address temporaries. Tested indexed prefix, whole-prefix helper, reused parameter, a classifier result local, whole-function inline, typed pair pointer, indexed pair pointer, and returned advancement. The indexed pair array produces 99.09449% with 17 differences using ordinary C, matching the old carrier's score. It gives the compiler a real array stride and a synthesized loop cursor. Others remain worse. All pools identical.
|
||||
|
||||
ISD capture sdi-00: r71 is the packed erase-block-size intermediate, colored r3 before r40 sectorCount. Their interference forces r40 into r4. r60 is clamped readBlockLength minus nine, colored r6; r58 is the upper-clamp result, colored r3. Plain variable-reuse and named arithmetic experiments test whether these temporaries can become the named output or shift local. No target-color result yet. No spill or coalescing event explains the initial mismatch; it is priority and interference among ordinary low-degree nodes.
|
||||
|
||||
- cdb-10-scan-byte-helper: CDBFSIsCDBFileOnSD 97.27559%; insns 127/127, diffs 33; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-11-advance-prefix-inline: CDBFSIsCDBFileOnSD 97.27559%; insns 127/127, diffs 33; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-12-pair-reference: CDBFSIsCDBFileOnSD 99.09449%; insns 127/127, diffs 17; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-13-array-inline: CDBFSIsCDBFileOnSD 97.125984%; insns 128/127, diffs 117; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-14-pair-loop-local: CDBFSIsCDBFileOnSD 99.09449%; insns 127/127, diffs 17; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-15-const-pair-array: CDBFSIsCDBFileOnSD 99.09449%; insns 127/127, diffs 17; pool IDENTICAL 0/0
|
||||
|
||||
- title-01-name-language-header: getTitleName__Q33ipl7channel7ManagerCFiii 95.07042%; insns 72/71, diffs 66; pool IDENTICAL 9/9
|
||||
|
||||
- title-01-language-name-header: getTitleName__Q33ipl7channel7ManagerCFiii 95.07042%; insns 72/71, diffs 66; pool IDENTICAL 9/9
|
||||
|
||||
- title-01-language-entry-name: getTitleName__Q33ipl7channel7ManagerCFiii 92.39436%; insns 74/71, diffs 63; pool IDENTICAL 9/9
|
||||
|
||||
- title-02-flat-titles: getTitleName__Q33ipl7channel7ManagerCFiii 79.26761%; insns 80/71, diffs 62; pool IDENTICAL 9/9
|
||||
|
||||
- title-03-flat-titles-reversed: getTitleName__Q33ipl7channel7ManagerCFiii 79.26761%; insns 80/71, diffs 62; pool IDENTICAL 9/9
|
||||
|
||||
- title-04-zero-name-offset: getTitleName__Q33ipl7channel7ManagerCFiii 90.19718%; insns 76/71, diffs 66; pool IDENTICAL 9/9
|
||||
|
||||
- sdi-13-erase-reuse-sizeMultiplier: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-13-erase-reuse-capacity: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-13-erase-reuse-eraseBlockCount: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-13-erase-reuse-blockScale: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-14-reversed-erase-expression: ISD_GetCardSize 97.61905%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-15-reused-sector-arithmetic: ISD_GetCardSize 97.559525%; insns 84/84, diffs 27; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-16-size-outside-fixed: ISD_GetCardSize 98.21429%; insns 84/84, diffs 23; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-17-expression-0: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-17-expression-1: ISD_GetCardSize 90.27381%; insns 84/84, diffs 26; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-17-expression-2: ISD_GetCardSize 98.39286%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-17-expression-3: ISD_GetCardSize 91.46429%; insns 84/84, diffs 20; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-18-response-helper: ISD_GetCardSize 95.89286%; insns 85/84, diffs 49; pool IDENTICAL 4/4
|
||||
|
||||
- sdi-19-erase-before-size: ISD_GetCardSize 100.0%; insns 84/84, diffs 0; pool IDENTICAL 4/4
|
||||
|
||||
- tvrc-01-shared-repeat-entry: TVRCSendStartAsync 98.5101%; insns 196/198, diffs 142; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-02-reuse-table-pointer: TVRCSendStartAsync 99.77273%; insns 198/198, diffs 7; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-03-separate-command-pointers: TVRCSendStartAsync 98.5101%; insns 196/198, diffs 142; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-04-plain-direct-repeat: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-05-command-helper: TVRCSendStartAsync 98.5101%; insns 196/198, diffs 142; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-06-reused-file-base: TVRCSendStartAsync 98.5101%; insns 196/198, diffs 142; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-07-bits-helper-0: TVRCSendStartAsync 99.77273%; insns 198/198, diffs 7; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-07-bits-helper-1: TVRCSendStartAsync 99.77273%; insns 198/198, diffs 7; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-07-bits-helper-2: TVRCSendStartAsync 99.77273%; insns 198/198, diffs 7; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-07-bits-helper-3: TVRCSendStartAsync 99.77273%; insns 198/198, diffs 7; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-08-repeat-helper: TVRCSendStartAsync 99.77273%; insns 198/198, diffs 7; pool IDENTICAL 0/0
|
||||
|
||||
- exception-01-read-local: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.18367%; insns 98/98, diffs 13; pool IDENTICAL 0/0
|
||||
|
||||
- exception-02-read-channel-temporary: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.18367%; insns 98/98, diffs 13; pool IDENTICAL 0/0
|
||||
|
||||
- exception-03-reuse-scroll-index: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.46939%; insns 98/98, diffs 23; pool IDENTICAL 0/0
|
||||
|
||||
- exception-04-single-channel-index: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.46939%; insns 98/98, diffs 23; pool IDENTICAL 0/0
|
||||
|
||||
- exception-05-y-loop-reuse: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.85714%; insns 98/98, diffs 36; pool IDENTICAL 0/0
|
||||
|
||||
- exception-06-loop-local-x: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.60204%; insns 98/98, diffs 39; pool IDENTICAL 0/0
|
||||
|
||||
- exception-07-short-x: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 92.29592%; insns 103/98, diffs 54; pool IDENTICAL 0/0
|
||||
|
||||
- exception-08-short-saved-x: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.11224%; insns 99/98, diffs 21; pool IDENTICAL 0/0
|
||||
|
||||
- exception-09-do-read: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.18367%; insns 98/98, diffs 13; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-09-order-0: TVRCSendStartAsync 98.66161%; insns 198/198, diffs 14; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-09-order-1: TVRCSendStartAsync 96.43434%; insns 198/198, diffs 17; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-09-order-2: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-09-order-3: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- exception-10-priority-0: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.60204%; insns 98/98, diffs 39; pool IDENTICAL 0/0
|
||||
|
||||
- exception-10-priority-1: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.39796%; insns 98/98, diffs 39; pool IDENTICAL 0/0
|
||||
|
||||
- exception-10-priority-2: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.77551%; insns 98/98, diffs 22; pool IDENTICAL 0/0
|
||||
|
||||
- exception-10-priority-3: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.77551%; insns 98/98, diffs 22; pool IDENTICAL 0/0
|
||||
|
||||
- exception-10-priority-4: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.28571%; insns 98/98, diffs 14; pool IDENTICAL 0/0
|
||||
|
||||
- exception-10-priority-5: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.39796%; insns 98/98, diffs 39; pool IDENTICAL 0/0
|
||||
|
||||
ISD exact candidate sdi-19-erase-before-size: compute eraseBlockSize before sectorCount in the standard-capacity branch. This changes expression creation order so the earlier erase-field temporary no longer takes r3 before the sector arithmetic. Real Ninja compilation: 84/84, ctxdiff zero, pool 4/4 identical; exact-name objdiff 100.0%. Candidate copied to the owned source pending confirmation capture and full gate. Arithmetic is unchanged and response words are immutable between calculations.
|
||||
|
||||
C++ retrowin32 also performs case-sensitive include lookup. The existing source asks for nw4r/lyt/textbox.h while the file is textBox.h. A lowercase include alias exists only under build/rx2/include, pointing to the existing header. Debug commands add that overlay; wibo verification uses the same snapshot and proves compiler output equivalence. Shared headers and tools remain untouched.
|
||||
|
||||
TVRC tvrc-02 capture shows the last repeat-offset load already uses virtual r49, the original entry address, before register allocation. The desired target uses the reloaded-file entry instead. Named repeat-entry lifetime variants collapse two instructions; plain direct access preserves all 198 instructions with nine differences. Helpers for command-record lookup, bit assignment and repeat assignment did not change the seven-difference candidate. These are compiler CSE and liveness changes, not a target-proven volatile access.
|
||||
|
||||
Exception exception-01 capture: xCur r43 is simplified at degree 26 before later nodes; the loop-bound r35 has 32 interference neighbors and survives longer. Final coloring claims yCur r42->r31, max r40->r30, bound r35->r29, this r32->r28, controller byte offset r67->r27, then xCur r43->r26. Target wants xCur r29, bound r27, offset r26. Moving xCur earlier in the virtual-number walk requires later source declaration, with dependencies' declarations separated from assignments. Pointer-local, channel-local, reused-index, short-coordinate and do-loop trials do not reach exactness; next trials test the measured simplify order directly.
|
||||
|
||||
- exception-11-bound-order-0: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-11-bound-order-1: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.85714%; insns 98/98, diffs 36; pool IDENTICAL 0/0
|
||||
|
||||
- exception-11-bound-order-2: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.60204%; insns 98/98, diffs 39; pool IDENTICAL 0/0
|
||||
|
||||
- exception-11-bound-order-3: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.60204%; insns 98/98, diffs 39; pool IDENTICAL 0/0
|
||||
|
||||
- exception-11-bound-order-4: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.77551%; insns 98/98, diffs 22; pool IDENTICAL 0/0
|
||||
|
||||
- exception-11-bound-order-5: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.77551%; insns 98/98, diffs 22; pool IDENTICAL 0/0
|
||||
|
||||
- exception-11-bound-order-6: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 98.77551%; insns 98/98, diffs 22; pool IDENTICAL 0/0
|
||||
|
||||
- exception-12-self-local-0: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-12-self-local-1: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-12-self-local-2: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-12-self-local-3: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\rx2\trials\exception-12-self-local-3\iplException.cpp
|
||||
# --------------------------------------------------------------------
|
||||
# 34: }
|
||||
# Warning: ^
|
||||
# (10184) return value expected
|
||||
### mwcceppc.exe Compiler:
|
||||
# 93: s32 line = nw4r::db::Console_GetBufferHeadLine(exception->mConsole);
|
||||
# Error: ^^^^^^^^^
|
||||
# (10140) undefined identifier 'exception'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- exception-12-self-local-4: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\rx2\trials\exception-12-self-local-4\iplException.cpp
|
||||
# --------------------------------------------------------------------
|
||||
# 34: }
|
||||
# Warning: ^
|
||||
# (10184) return value expected
|
||||
### mwcceppc.exe Compiler:
|
||||
# 93: s32 line = nw4r::db::Console_GetBufferHeadLine(exception->mConsole);
|
||||
# Error: ^^^^^^^^^
|
||||
# (10140) undefined identifier 'exception'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- exception-12-self-local-5: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\rx2\trials\exception-12-self-local-5\iplException.cpp
|
||||
# --------------------------------------------------------------------
|
||||
# 34: }
|
||||
# Warning: ^
|
||||
# (10184) return value expected
|
||||
### mwcceppc.exe Compiler:
|
||||
# 93: s32 line = nw4r::db::Console_GetBufferHeadLine(exception->mConsole);
|
||||
# Error: ^^^^^^^^^
|
||||
# (10140) undefined identifier 'exception'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- exception-13-reuse-autoscroll: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-14-constant-count: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.28571%; insns 98/98, diffs 14; pool IDENTICAL 0/0
|
||||
|
||||
- exception-15-read-array-index: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-16-explicit-byte-count: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.65306%; insns 98/98, diffs 6; pool IDENTICAL 0/0
|
||||
|
||||
- warning-01-integer-visibility: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-02-direct-render-mode: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-03-viewport-dimensions: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-04-save-frame-reference: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-05-direct-sound-reference: warning_run__Q23ipl6SystemFv 96.619316%; insns 173/176, diffs 80; pool IDENTICAL 52/52
|
||||
|
||||
- exception-17-index-0: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-17-index-1: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-17-index-2: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- warning-06-fader-helper: warning_run__Q23ipl6SystemFv 96.72159%; insns 177/176, diffs 97; pool IDENTICAL 52/52
|
||||
|
||||
- exception-17-index-3: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-17-index-4: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-16-explicit-pair: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-17-classifier-indices: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-18-reversed-classifier: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-19-check-all-by-array: CDBFSIsCDBFileOnSD 99.09449%; insns 127/127, diffs 17; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-20-classifier-promoted: CDBFSIsCDBFileOnSD 98.85827%; insns 127/127, diffs 20; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-10-entry-table: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-11-separate-entries: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-12-record-block: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-13-size-index: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-14-direct-entry-offset: TVRCSendStartAsync 98.93939%; insns 199/198, diffs 150; pool IDENTICAL 0/0
|
||||
|
||||
- title-05-reused-name: getTitleName__Q33ipl7channel7ManagerCFiii 99.366196%; insns 71/71, diffs 6; pool IDENTICAL 9/9
|
||||
|
||||
- title-06-constant-index: getTitleName__Q33ipl7channel7ManagerCFiii 99.366196%; insns 71/71, diffs 7; pool IDENTICAL 9/9
|
||||
|
||||
- title-07-name-reference: getTitleName__Q33ipl7channel7ManagerCFiii 99.366196%; insns 71/71, diffs 7; pool IDENTICAL 9/9
|
||||
|
||||
- title-08-signed-language: getTitleName__Q33ipl7channel7ManagerCFiii 97.11268%; insns 70/71, diffs 26; pool IDENTICAL 9/9
|
||||
|
||||
- title-09-name-index-copy: getTitleName__Q33ipl7channel7ManagerCFiii 99.366196%; insns 71/71, diffs 7; pool IDENTICAL 9/9
|
||||
|
||||
Exception declaration changes put xCur in target r29. Moving the named remaining-controller count to the function's first declaration yields 99.69388%, 98/98, five differences: count r26 and byte offset r27 are swapped against target r27/r26. This is an honest improvement over the earlier best C; source snapshot build/rx2/trials/exception-11-bound-order-0/iplException.cpp. It is not retained as a conversion. Named self pointer aliases, narrower saved coordinates, array-reference/pair forms, and an independent controller index did not resolve this last swap. The explicit second index also reverses argument setup scheduling and is rejected.
|
||||
|
||||
Full clean ISD gate passed, zero regressions, zero forbidden additions, zero readability warnings, 22/22 instruction-exact functions, code 5948/5948 and data 248/248. DOL remains 26116613f624061ba99c8d1a299aaa6efa85670d. Log build/rx2/sdi-full-gate.log.
|
||||
|
||||
- exception-18-loop-0: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 97.79592%; insns 100/98, diffs 42; pool IDENTICAL 0/0
|
||||
|
||||
- exception-18-loop-1: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 100.0%; insns 98/98, diffs 0; pool IDENTICAL 0/0
|
||||
|
||||
- exception-18-loop-2: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 99.69388%; insns 98/98, diffs 5; pool IDENTICAL 0/0
|
||||
|
||||
- exception-18-loop-3: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 94.28571%; insns 98/98, diffs 59; pool IDENTICAL 0/0
|
||||
|
||||
- exception-18-loop-4: exception_callback__Q23ipl9ExceptionFPQ44nw4r2db6detail11ConsoleHead 100.0%; insns 98/98, diffs 0; pool IDENTICAL 0/0
|
||||
|
||||
ISD confirmation sdi-19: packed erase-size intermediate moved from r71 to r63 and now colors r5. Capacity product becomes r71->r0, block scale r66->r3, shift r65->r4, sectorCount r40->r3, and sizeMultiplier r36->r3. These are the target choices. Captured object equals real wibo object byte for byte, SHA256 dd93fb5dcf72bacd041b3d18bc6ae5bb81f25c988a0f6c78a970666aa7af2d4d. The full gate and normal Ninja build both pass. Retain this conversion.
|
||||
|
||||
- tvrc-15-repeat-helper-0: TVRCSendStartAsync 99.36869%; insns 199/198, diffs 145; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-15-repeat-helper-1: TVRCSendStartAsync 99.36869%; insns 199/198, diffs 145; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-15-repeat-helper-2: TVRCSendStartAsync 99.36869%; insns 199/198, diffs 145; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-15-repeat-helper-3: TVRCSendStartAsync 99.36869%; insns 199/198, diffs 145; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-16-parameters-helper-0: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-16-parameters-helper-1: TVRCSendStartAsync 98.22727%; insns 197/198, diffs 160; pool IDENTICAL 0/0
|
||||
|
||||
The additional relative include mismatch tiHWKeyboard.h versus tiHwKeyboard.h required an alias and include/keyboard in debug commands. A standalone retrowin32 compile of the full title unit now succeeds. These aliases remain scratch-only; no shared header path changes.
|
||||
|
||||
Exception exact candidate exception-18-loop-1 uses one ascending `chan` loop for applying controller input, without a separate countdown local. With the measured declaration order, this keeps xCur at r29 and moves the loop invariant and synthesized read offset to their target registers. Real build and ctxdiff: 98/98, diffs zero. Pool identical, objdiff 100.0%. Full clean gate passed at 7/7 exact, code 1004/1004, data 32/32, zero regressions and the required DOL hash. Removed surplus blank lines and fixed function indentation afterward; fresh object still has zero differences. Confirmation capture is pending.
|
||||
|
||||
TVRC direct-access capture tvrc-direct confirms a pure remaining swap in that variant: command byte offset r43->r6, file bases r39/r38->r7. Target is offset r7 and file r6. This direct form correctly keeps the repeat entry in r62->r4. The higher fuzzy seven-difference form has a different CSE dependency and is not a simple rename. This distinction is why the nine-difference C remains a separate starting point.
|
||||
|
||||
- tvrc-17-offset-pairs: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-18-pointer-entries: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-19-const-file: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
CDB confirmation cdb-08: indexed pairs turn the cursor into compiler-generated r38, above locale r36 but still below character r41 and map r48. It colors r5, while locale now correctly colors r6; target cursor remains r3. The map and character take r3/r4 first. The captures have no spill or accepted coalescing responsible for this cycle. Whole-object validation is identical, SHA256 4ccd7408fc0490bd066afce2d58314d6c1bc642e8b51df48aea0ee758bb102aa. Additional explicit pair checks, argument-order classifier helpers and direct indexed pairs do not raise the best score. Existing exact asm remains.
|
||||
|
||||
Completed source searches: TVRC 155 trials, unchanged 99.747475%; title-name 38 trials, unchanged 99.366196%. Both retained their starting instruction count. No best.c or solution.c was adopted. CDB and warning searches remain queued behind the shared CPU limiter at this checkpoint.
|
||||
|
||||
- tvrc-20-const-file-pointer: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-21-const-command-parameter: TVRCSendStartAsync 99.747475%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-22-byte-command-index: TVRCSendStartAsync 99.469696%; insns 198/198, diffs 9; pool IDENTICAL 0/0
|
||||
|
||||
- warning-07-whole-state-0: warning_run__Q23ipl6SystemFv 97.443184%; insns 174/176, diffs 62; pool IDENTICAL 52/52
|
||||
|
||||
- warning-07-whole-state-1: warning_run__Q23ipl6SystemFv 97.443184%; insns 174/176, diffs 62; pool IDENTICAL 52/52
|
||||
|
||||
- warning-07-whole-state-2: warning_run__Q23ipl6SystemFv 97.443184%; insns 174/176, diffs 62; pool IDENTICAL 52/52
|
||||
|
||||
- warning-07-whole-state-3: warning_run__Q23ipl6SystemFv 97.443184%; insns 174/176, diffs 62; pool IDENTICAL 52/52
|
||||
|
||||
- warning-08-direct-state: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- tvrc-23-byte-index-0: TVRCSendStartAsync 98.80808%; insns 197/198, diffs 144; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-21-pair-local-0: CDBFSIsCDBFileOnSD 97.44095%; insns 128/127, diffs 117; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-21-pair-local-1: CDBFSIsCDBFileOnSD 97.44095%; insns 128/127, diffs 117; pool IDENTICAL 0/0
|
||||
|
||||
- tvrc-23-byte-index-1: TVRCSendStartAsync 98.80808%; insns 197/198, diffs 144; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-21-pair-local-2: COMPILE FAIL ### mwcceppc.exe Compiler:
|
||||
# File: build\rx2\trials\cdb-21-pair-local-2\CDBFileSystemUtils.c
|
||||
# ------------------------------------------------------------------
|
||||
# 115: const signed char* pair = fileName + i * 2;
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from 'char *' to
|
||||
# 'const signed char *'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
|
||||
|
||||
- tvrc-23-byte-index-2: TVRCSendStartAsync 98.80808%; insns 197/198, diffs 144; pool IDENTICAL 0/0
|
||||
|
||||
- cdb-22-prefix-array: CDBFSIsCDBFileOnSD 99.09449%; insns 127/127, diffs 17; pool IDENTICAL 0/0
|
||||
|
||||
Warning source search completed 27 trials with no score or instruction-count improvement. Whole-state pointer/reference variants remove two instructions by reusing the final base; direct member expressions keep the original 47-register cycle. Neither is a conversion.
|
||||
|
||||
- warning-09-viewport-helper-0: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-09-viewport-helper-1: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-09-viewport-helper-2: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-10-viewport-size-helper: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
The shared 9001 debugger queue delayed the exception confirmation for over 20 minutes. A worktree-local bind adapter now changes only the emulator debugger listen port to 9202. The local driver differs only in its fixed tooling root and connection port; all allocator decoding and the compiler executable remain unchanged. Local captures serialize on build/rx2/.debug.lock. The adapter, driver, launcher, objects and logs are confined to this worktree. Cancelled only the four still-queued rx2 launchers before resubmitting. A network namespace probe was unavailable and made no persistent change. Every successful capture still requires complete object byte identity against normal wibo.
|
||||
|
||||
Exception confirmation exception-confirm proves the final choices: xCur is now v35 with 30 graph neighbors, so it remains in the high-degree set while simpler nodes are removed; its final simplify position follows this and precedes lineScrollMax/yCur. Reverse coloring is yCur v42->r31, lineScrollMax v40->r30, xCur v35->r29, this v32->r28. The single ascending controller loop creates the loop count as v67 and the read byte offset as v66; count colors r27 before offset r26. Previous y v39->r25, previous x v38->r24 and channel v37->r23 also match. There are no accepted copy coalesces that explain the correction. The complete captured object equals normal wibo, SHA256 3862ac3524d092b8ba337df97f43e6273c74e09a0369c264a5ab34646ed760a9. All local values are initialized before use. Retain the readable C++ conversion.
|
||||
|
||||
Title original capture title-original disproves a pure-color explanation. Before allocation B4 computes v52=language*84, v53=metadata, v54=v53+v52, v55=v54+nameOffset(v40). The target adds nameOffset+languageOffset first. In B9 the source computes v69=languageOffset(v39)+nameOffset(v40), v70=metadata(v68)+v69; the target first adds metadata+nameOffset. Coloring faithfully follows those different trees: v53/v54->r0, v52/v55->r3, and loop v68/v70->r4, v69->r0, v39->r5. A register renaming cannot make either dependency graph match. The complete capture is byte-identical to normal wibo, SHA256 d0aee5db097c084a462921523b78017dc289389dd6a5b7be5c0d52ed2b180ed7. The reused-name source is awaiting its confirmation capture.
|
||||
|
||||
CDB source search eventually acquired a shared slot and completed one trial with no improvement at 99.09449%, 127/127. The additional local-pair and whole-prefix array variants also did not solve cursor coloring. All search jobs have finished.
|
||||
|
||||
- warning-11-state-final-accessor: warning_run__Q23ipl6SystemFv 98.607956%; insns 176/176, diffs 48; pool IDENTICAL 52/52
|
||||
|
||||
- warning-12-state-tail-scope: warning_run__Q23ipl6SystemFv 98.607956%; insns 176/176, diffs 48; pool IDENTICAL 52/52
|
||||
|
||||
- warning-13-state-visible-tail: warning_run__Q23ipl6SystemFv 94.03409%; insns 180/176, diffs 67; pool IDENTICAL 52/52
|
||||
|
||||
- warning-14-state-reset-accessor: warning_run__Q23ipl6SystemFv 97.443184%; insns 174/176, diffs 62; pool IDENTICAL 52/52
|
||||
|
||||
- warning-15-output-visibility-0: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-15-output-visibility-1: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-15-output-visibility-2: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-15-output-visibility-3: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-16-outer-guard: warning_run__Q23ipl6SystemFv 98.66477%; insns 176/176, diffs 47; pool IDENTICAL 52/52
|
||||
|
||||
- warning-17-cached-sound: warning_run__Q23ipl6SystemFv 95.767044%; insns 177/176, diffs 161; pool IDENTICAL 52/52
|
||||
|
||||
- warning-18-cached-sound-declared: warning_run__Q23ipl6SystemFv 95.767044%; insns 177/176, diffs 161; pool IDENTICAL 52/52
|
||||
|
||||
Title confirmation title-confirm uses the ordinary reused-name pointer and improves seven differences to six without reaching exactness. B4 still adds metadata+languageOffset before nameOffset. B9 now adds metadata(v69)+languageOffset(v40), then nameOffset(v41); v69 colors r0, which fixes the metadata load register, but the target adds metadata+nameOffset first. No physical recoloring can fix this dependency order. Whole-object wibo identity holds, SHA256 dbdeef5bab9ffc04fbc862c8834774f7209c38b8289f2152fd6c57f701ee339d. Keep original asm.
|
||||
|
||||
Warning original capture warning-original: smArg base v44 has 32 neighbors. After earlier render-mode v37 and visibility v40 are simplified, its degree remains 30, above the 29-color limit. It is deferred until the end and colors first to r31. Sound-address v124 is then r30, conversion constant v70 is r29, and visibility v40 is r28. The target requires smArg r28, visibility r29, constant r30 and sound r31. Visibility is simplified at degree 27 and constant at degree 20; these choices explain the whole 47-register cycle. Whole-object wibo identity holds, SHA256 de3e209117c222d6433bed833bdba23e53e4004bc97b9958f8fba6bd2e74de4b. Directed whole-state reference/lifetime variants preserve the color cycle while changing address materialization; output-reference/pointer visibility helpers keep the original stream and cycle.
|
||||
|
||||
Compiled snapshot coverage: TVRC 35, title 12, exception 40, CDB 24, SDI 25, warning 27 (163 total, including baselines; compile failures excluded). Each assigned function received at least three distinct compiled source-level trials. Separate automated searches reported TVRC 155, title 38, CDB 1, warning 27 iterations; none improved the selected baseline. Best rejected C, source snapshots, diffs and reports remain in build/rx2/trials.
|
||||
|
||||
Warning confirmation warning-confirm uses an ordinary output-reference visibility helper. MWCC folds it into the same graph: smArg v44->r31 is still simplified last, sound v124->r30, conversion v70->r29, visibility v40->r28, render mode v37->r27. The priority and interference cause is unchanged. Complete object matches normal wibo, SHA256 d4bc5a2cbaffbc16b87adaca2e45880ab27c4868fec7ae29b5c9a719c2b73a5a. An inverted outer guard also keeps 47 differences; explicitly caching the sound pointer adds an instruction and is rejected. Keep original asm.
|
||||
|
||||
All allocator jobs and source searches are finished. Four unconverted production files are byte-identical to their versions at 21c5ceda. Only ISD_GetCardSize and Exception::exception_callback are retained C/C++ conversions. The final six-unit clean gate is next.
|
||||
|
||||
## Final handoff
|
||||
|
||||
Converted ISD_GetCardSize and Exception::exception_callback from existing asm to readable C/C++. Retained original asm for TVRCSendStartAsync, Manager::getTitleName, CDBFSIsCDBFileOnSD and System::warning_run. The four retained source files are byte-identical to 21c5ceda; their rejected C and allocator evidence remain under build/rx2.
|
||||
|
||||
| Unit | Exact functions before -> after | Exact code bytes | Exact data bytes |
|
||||
| --- | --- | --- | --- |
|
||||
| TVRC | 9/9 -> 9/9 | 2312/2312 | 280/280 |
|
||||
| iplChannelManager | 74/74 -> 74/74 | 12552/12552 | 1080/1080 |
|
||||
| iplException | 7/7 -> 7/7 | 1004/1004 | 32/32 |
|
||||
| CDBFileSystemUtils | 11/11 -> 11/11 | 2480/2480 | 8/8 |
|
||||
| sdi_api | 22/22 -> 22/22 | 5948/5948 | 248/248 |
|
||||
| iplSystem | 63/63 -> 63/63 | 12456/12456 | 2228/2228 |
|
||||
|
||||
Exact-function counts stay unchanged because the original asm was already exact. Two of the six requested bodies are now C/C++.
|
||||
|
||||
- GATE PASS: SDI clean gate, build/rx2/sdi-full-gate.log.
|
||||
- GATE PASS: exception clean gate, build/rx2/exception-full-gate.log.
|
||||
- GATE PASS: final clean six-unit gate, build/rx2/final-full-gate.log. Zero regressions, zero forbidden additions, zero readability warnings. All 186 functions and every owned code/data section remain exact; all 36752 code bytes remain linked.
|
||||
- Fresh exact-name objdiff is 100.0% for all six requested symbols. Fresh ctxdiff instruction counts are 198/198, 71/71, 98/98, 127/127, 84/84 and 176/176, respectively, all with diffs 0. Pools are identical in every unit. Evidence: build/rx2/final-verification.txt and final-verification.json.
|
||||
- DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d. ninja -C . build/43U/ok passes.
|
||||
- Source commits: 764e8f6a (SDI), c9175a03 (exception). The final log is committed separately.
|
||||
- Final source scope: libs/RVL_SDK/src/sdi/sdi_api.c, src/system/iplException.cpp and this attempts log. No shared headers or build configuration changed. No push, PR, merge, rebase, or other-worktree edits. No rx2 search or debugger process remains running.
|
||||
88
tools/decomp-assist/thumbnail-parameter-view-audit.md
Normal file
88
tools/decomp-assist/thumbnail-parameter-view-audit.md
Normal file
@@ -0,0 +1,88 @@
|
||||
# Thumbnail input parameter recovery
|
||||
|
||||
Base: `f7cc4a45a5b5dd0cc057d9b017bc8cc026eef002` (PR1179).
|
||||
Branch: `agent/fix/thumbnail-parameter-view`.
|
||||
|
||||
One bounded source candidate removes the local `TMCJpegInputBuffer` overlay
|
||||
from `TMCJPEGDEC_init_buff_thumbnail` and reads the existing
|
||||
`TMCCJPEGDecInitParam` object through its declared fields. The only added
|
||||
include is the existing `<stddef.h>` for `offsetof`. No header definitions,
|
||||
layouts, signatures, compiler flags, matching classifications, or callers
|
||||
change. No tuning or second candidate was attempted.
|
||||
|
||||
## Object, bounds, and lifetime evidence
|
||||
|
||||
The sole call is in `TMCCJPEGDecGetInfoEXIF`, in
|
||||
`libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse.c`. Its third argument is
|
||||
`(u8*)pParam + 0x10`, formed from the whole, live `TMCCJPEGDecInitParam`
|
||||
object. That type begins with `u8 unk_0x00[0x10]`, followed by `pBuf2` at
|
||||
offset 0x10. Recovering the original address with
|
||||
`src - offsetof(TMCCJPEGDecInitParam, pBuf2)` stays within that object's
|
||||
byte representation and restores its original alignment. It does not create
|
||||
an object or reinterpret an unrelated allocation as a new structure.
|
||||
|
||||
The declared fields are `pBuf2`, `buf2Size`, `dataSize`, `pCallback`, and
|
||||
`pContext`. Reading `pBuf2` as its declared `void*`, then assigning it to the
|
||||
existing `u8* start`, uses the ordinary C pointer conversion. The old local
|
||||
overlay instead read that storage as a member of an unrelated structure with
|
||||
a `u8*` first member. All field accesses now use the actual parent type.
|
||||
No pointer to the parameter object is retained after this function returns.
|
||||
|
||||
The caller supplies the real work buffer as `dst` and the real EXIF object
|
||||
as the first argument, which the callee casts back to its actual type.
|
||||
The caller zeroes the work and EXIF state before parsing and invokes
|
||||
`TMCJPEGDEC_ThumbnailCheck` before reaching this function. The existing
|
||||
initialization, source-load/destination-store order, zero-size early exits,
|
||||
and final `remaining = 0` are unchanged. No loop or uninitialized local is
|
||||
introduced, and both sibling functions are untouched.
|
||||
|
||||
End-address arithmetic is unchanged. Its additions and mark subtraction
|
||||
operate in unsigned 32-bit arithmetic before target-specific integer/pointer
|
||||
conversions. The existing unsigned-to-signed conversions and address
|
||||
representation depend on the Wii/MWCC implementation. This is a
|
||||
binary-neutral object-access correction, not a portability or malformed-EXIF
|
||||
hardening claim.
|
||||
|
||||
## Fresh isolated verification
|
||||
|
||||
Configured 43U with explicit existing local tool paths and rebuilt the
|
||||
unmodified baseline in this leaf before editing. Preserved the report,
|
||||
object, DOL, all 1027 source-object hashes, build log, raw ELF section/function
|
||||
bytes, and explicit relocation records. Then compiled the single candidate
|
||||
and reran the full 43U build, report, progress, and `build/43U/ok`.
|
||||
|
||||
- The complete source object is byte-identical to the fresh baseline:
|
||||
SHA256 `bbc460eb1312d2be239e5ffbad750f2f36cd5ed1fc8b68aa7e5ea052418eeb73`.
|
||||
- All 316 allocated `.text` bytes equal the original object, with identical
|
||||
section size, alignment, and flags. There are no allocated data sections.
|
||||
- The three functions remain exact-name objdiff 100% and raw-byte identical:
|
||||
`init_buff_thumbnail` 136 bytes / 34 instructions, `init_buff` 16 / 4,
|
||||
`rewind_ptr` 164 / 41. Strict local ctxdiff reports zero differences for all.
|
||||
- Explicit relocation records agree in source section, offset, type, addend,
|
||||
symbol name, binding/type, target section/value, and size. All are REL24
|
||||
with addend zero: 0x94 to `TMCJPEGDEC_load_buff`, and 0xCC/0xF0 to
|
||||
`TMCJPEGDEC_move_ptr`. All three targets are the same undefined global
|
||||
symbols in both objects; the unchanged linked DOL independently checks
|
||||
their resolved call destinations.
|
||||
- Printable pools are empty on both sides. The absence of all allocated
|
||||
data sections establishes that there is no omitted data/pool comparison.
|
||||
- Every source-object SHA256 is unchanged, all 1027 report unit entries
|
||||
and global measures are identical, and the unit retains 3/3 functions,
|
||||
316/316 matched bytes, and 316/316 linked bytes.
|
||||
- Full build and DOL verification pass. DOL bytes equal both the fresh
|
||||
baseline and original, SHA1
|
||||
`26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
- `git diff --check` and the leaf worktree check pass. Source review finds
|
||||
no added assembly, dummy storage, volatile casts, register hints,
|
||||
uninitialized state, or unrelated source edits.
|
||||
- The project-wide completion checker still reports the existing incomplete
|
||||
project. This candidate makes no project-completion claim; its complete
|
||||
report is unchanged from the baseline.
|
||||
|
||||
Local evidence is under `build/thumbnail-view-audit/`: baseline/candidate
|
||||
reports, objects, DOLs, all-object hashes, build logs, pool/ctxdiff output,
|
||||
raw ELF and relocation JSON, the read-only `verify_getcode.py` comparison,
|
||||
status/completion output, and `validation.json`.
|
||||
|
||||
GATE PASS: actual-parent-object access; 3/3 functions and all code/data/link
|
||||
measures exact; all source objects, full report, and full-build/DOL unchanged.
|
||||
Reference in New Issue
Block a user