Compare commits

..

31 Commits

Author SHA1 Message Date
Devin AI
c56cd025f6 misc1 attempts: UpdateThread lwzx reload analysis + wpformatter def-order variant
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 13:17:26 +00:00
Devin AI
f7e2e49fee iplESMisc: DUD titleId inline-deref + single-local reload decode (exact 449 insns, 89.53)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 12:52:44 +00:00
Devin AI
154fb5b299 misc1.attempts: Getter_ web-binding analysis — 14 word diffs, scope experiments exhausted
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 12:06:53 +00:00
Devin AI
ebc8205b9d BS2Update: volatile State/EntriesCount decls — UpdateThread 92->94.3
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 11:59:43 +00:00
Devin AI
d20a1e062c BS2Mach: volatile decls for callback-touched flags (AbortFlag/RestartRequested/FatalErrorFlag/PartitionOpen/LoadingTitle) + vu16 hwreg stores — BS2Tick 1123->1117
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 11:52:38 +00:00
Devin AI
8b678466e3 misc1.attempts: BS2Tick decode batch + Getter_ exhaustion evidence
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 11:42:15 +00:00
Devin AI
c734c88148 BS2Tick: bootArea strncmp web + case-0x25 break/partition hoist + banner align + streaming local
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 11:32:40 +00:00
Devin AI
ab2ef1d510 BS2Mach .data: align carved literal names to MWCC emission (all 95 objects pair)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 10:25:50 +00:00
Devin AI
9266adbb1a odh: s32 width web-class fix + mullw operand order; BS2UpdateInit arg4 analysis
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 10:05:23 +00:00
Devin AI
fb57813580 misc1.attempts: BS2Mach residuals — head weave, diAddr rotation, BS2Tick callee window
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 09:21:07 +00:00
Devin AI
d567b1017b BS2Mach: DivideCallback 100%, CheckBS2 99.51, .data inner-literal carving
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 09:17:41 +00:00
Devin AI
9958ebf072 www_wiisetting: data 100% (Getter_ strBuf removal aligns jumptable relocs; 121+2 symbols.txt literal renames). Getter_ 99.86: 2 web-rotation pairs
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 08:52:25 +00:00
Devin AI
7f29fb70a3 misc1: odh setQuantizationTable 100% + symbols.txt literal pairing
result-through-temp web split flips cdj_c_setQuantizationTable to 100%
(23/28 fns, matched_code 8320). Renamed orig lbl_ sdata2 literals to
emitted @NNNN names — pairs the LineConv11 float pool symbols.

Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 08:43:02 +00:00
Devin AI
035fe767c8 misc1: BS2UpdateInit 79.88 -> 94.0 via early &Flags0 def
pFlags = Flags0 materializes the bss base web in the prologue; MWCC
then anchors a callee reg (r30) and folds Flags1/Thread/stack addresses
as offsets, reproducing orig's fold codegen and savegpr_29 frame.
Residual: pFlags store (+2 insns), stack-top two-step (fold tie).

Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 08:37:01 +00:00
Devin AI
98f91a2475 misc1: AxAdpcmPlayer 100% — flip to Matching
In-loop pAxvpbBuf assignment births the &axVoiceBuf web after
coeffsBufB's (use order), reproducing orig's materialization order;
all in-loop uses routed through the alias so it stays a single
callee-pinned web (r17). 0 instruction diffs, matched_code 3088/3088,
matched_data 6476/6476, DOL sha1 verified.

Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 08:05:20 +00:00
Devin AI
7a9f07fc77 BS2Update: -sdata 8 extra_cflags for ...data.0 literal pool + sdata smalls
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 07:22:07 +00:00
Devin AI
0b1c20ee0f BS2Update volatile rc decode + BS2Mach stmt-order web fix
- static volatile s32 rc (orig reloads per-access; UpdateThread 92.3->93.35)
- UpdateThread sdata string pairs via symbols.txt @-renames
- BS2NANDDivideCallback stmt-order swap resolves r5/r6 web pairing
- iplSound.h: drop IPL_SOUND_MATCHING resetAllSound guard (upstream now Matching)

Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 06:00:32 +00:00
Devin AI
35f2cae118 misc1: wprintf __wpformatter 99.27->99.38 (signed /2 diff + buff+512 call arg decodes)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
1ef24d1600 misc1: AxAdpcm start decode (member-load + direct-array webs) 14->1 diffs; symbols.txt literal renames
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
8e30630b02 misc1: decode DUD s32 return (ret callee-pinned); AxAdpcm coeffs local
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
436146576e misc1: pair wiisetting strProps via symbols.txt; document w1004 walls
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
f9b48c3b4f misc1: attempts — symbols.txt lever verified, AxAdpcm start parked
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
6b14d400eb symbols.txt: name anon .sdata/.sbss objects (iplESMisc data 100%, www_wiisetting MSG_* pair)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
8d17448cc3 BS2Update .sbss 100%: semantic symbols.txt names for 4 anon objects (splitter propagates to orig .o)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
3fe3424570 misc1: attempts notes
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
4beff22472 odh: remove ODHEncodeRGBA8/Y8U8V8 + ODHDecodeY8U8V8 (absent from orig .o)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:22 +00:00
Devin AI
eb59607940 BS2Update: decode .bss as 5 separate GLOBAL objects + pFlags=Flags0 init
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:20 +00:00
Devin AI
7b83d86bb4 wprintf: named buff_end web, wpformatter residual regname ties
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:16 +00:00
Devin AI
ff2db54d42 www_wiisetting: strBuf init-at-decl, Getter_ 9 regname diffs left
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:16 +00:00
Devin AI
a715aa6bb0 iplSound: decode .bss globals — u32 unk[3] + UnkCls wrapper (0xd8), sSystem 0x63c; data 100%
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:15 +00:00
Devin AI
1847720857 BS2Mach: semantic STB_GLOBAL decode, data sections 100%
- rename lbl_XXX decls to orig symtab semantic names (static for LOCAL-bound)
- u32 nandLen hoist in NANDDivide Async fns
- CacheCommandComplete = NandPending shared-const form at 2 sites
- iplSound/BS2Update/iplESMisc decode progress

Co-Authored-By: wch <usernamecole7@gmail.com>
2026-10-02 05:46:07 +00:00
121 changed files with 3051 additions and 40070 deletions

View File

@@ -2,8 +2,6 @@ name: README progress
# runs on the self-hosted runner on cole's server so it doesn't use hosted minutes.
# only push/schedule/manual triggers, never pull_request, so fork PRs can't reach this machine.
# README progress is written inside each landing commit by the orchestrator, so this job never commits;
# it only rebuilds and publishes the current numbers to the job summary.
on:
push:
branches: [main]
@@ -17,7 +15,7 @@ concurrency:
cancel-in-progress: true
permissions:
contents: read
contents: write
jobs:
progress:
@@ -50,8 +48,15 @@ jobs:
- name: Report
run: build/tools/objdiff-cli report generate -p . -o build/43U/report.json -f json
- name: Summary
- name: Update README
run: python3 tools/update_readme_progress.py build/43U/report.json README.md "$GITHUB_SHA"
- name: Commit
run: |
python3 tools/update_readme_progress.py build/43U/report.json README.md "$GITHUB_SHA"
sed -n '/progress:start/,/progress:end/p' README.md >> "$GITHUB_STEP_SUMMARY"
git checkout -- README.md
if git diff --quiet README.md; then exit 0; fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "docs: update progress [skip ci]"
git pull --rebase origin main || { git rebase --abort; echo "main moved, next run will update"; exit 0; }
git push origin HEAD:main

View File

@@ -78,12 +78,6 @@ Helper tools live in `tools/decomp-assist/`:
between your object and the original. This is the main iteration loop.
- `disasm_fn.py <object> <symbol>` — disassembly with relocation-resolved call
names, so you can see which real functions are being called.
- `literal_reference_diff.py [unit ...]` — advisory check of actual narrow-string
bytes passed at corresponding calls, including addresses derived from a shared
data base. Defaults to functions scored 100% in the live report; use
`--all-functions` to include other equal-sized functions. Inspect every
candidate against the assembly. This does not follow mutable pointer globals,
infer compiler aliases, or prove complete data matching; skips are reported.
- `pool_diff.py` — diffs the string pool in `.data` between your object and the
original, string by string. See below; this is the highest-signal tool.
- `export_pyghidra.py` — regenerates `ghidra_decomp.txt`, decompiled C for the

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.55% | 90.33% | 69.37% | 99.37% |
| 99.46% | 88.57% | 62.98% | 97.20% |
units 950/1027 complete, functions 12343/12563 matched.
units 925/1027 complete, functions 12264/12563 matched.
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
<!-- progress:end -->

File diff suppressed because it is too large Load Diff

View File

@@ -719,7 +719,7 @@ config.libs = [
Object(Matching, "BS2/BS2.c"),
Object(Matching, "BS2/BS2Init.c"),
Object(NonMatching, "BS2/BS2Mach.c"),
Object(NonMatching, "BS2/BS2Update.c"),
Object(NonMatching, "BS2/BS2Update.c", extra_cflags=["-sdata 8"]),
Object(Matching, "BS2/BS2ParentalControl.c"),
Object(Matching, "BS2/BS2BringUp.c"),
Object(Matching, "BS2/BS2Reset.c"),
@@ -738,11 +738,11 @@ config.libs = [
]
),
IPLSection("board", [
Object(Matching, "scene/board/iplBoard.cpp"),
Object(Equivalent, "scene/board/iplBoard.cpp"),
Object(Matching, "scene/board/iplBoardObject.cpp"),
Object(Matching, "scene/board/iplBoardSD.cpp"),
Object(Matching, "scene/board/iplUrlProcessor.cpp"),
Object(Matching, "scene/board/iplFocusObject.cpp"),
Object(Equivalent, "scene/board/iplFocusObject.cpp"),
]
),
IPLSection("button", [
@@ -816,7 +816,7 @@ config.libs = [
Object(Matching, "scene/memoryCard/iplMemoryCardBase.cpp"),
Object(NonMatching, "scene/memoryCard/iplMemoryCardManager.cpp"),
Object(Matching, "scene/memoryCard/iplGCSaveData.cpp"),
Object(Matching, "scene/memoryCard/iplGCWindow.cpp"),
Object(NonMatching, "scene/memoryCard/iplGCWindow.cpp"),
]
),
IPLSection("textBalloon", [
@@ -850,7 +850,7 @@ config.libs = [
),
IPLSection("sdChannelSelect", [
Object(NonMatching, "scene/sdChannelSelect/iplSDChannelSelect.cpp"),
Object(Matching, "scene/sdChannelSelect/iplSDChannelObj.cpp"),
Object(NonMatching, "scene/sdChannelSelect/iplSDChannelObj.cpp"),
]
),
IPLSection("sdChannelTitle", [
@@ -874,7 +874,7 @@ config.libs = [
Object(Matching, "scene/setting/iplParental.cpp"),
Object(Matching, "scene/setting/iplAPScanThread.cpp"),
Object(Matching, "scene/setting/iplUSBAP.cpp"),
Object(Matching, "scene/setting/iplUSBAPThread.cpp"),
Object(NonMatching, "scene/setting/iplUSBAPThread.cpp"),
Object(Matching, "scene/setting/iplAOSSThread.cpp"),
Object(NonMatching, "scene/setting/AOSSLink.c"),
Object(NonMatching, "scene/setting/iplRakuRakuThread.cpp"),
@@ -928,7 +928,7 @@ config.libs = [
Object(Matching, "keyboard/tiLanguageIndependentData.cpp", extra_cflags=["-O4,p"], shift_jis=False),
Object(Matching, "keyboard/tiTextInputBase.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/MyTiManager.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/MyTiInputForm.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/MyTiInputForm.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/MyTiLetterForm.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/MyTiBg.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiDebug.cpp", extra_cflags=["-O4,p"]),
@@ -989,7 +989,7 @@ config.libs = [
Object(NonMatching, "clib/zi8cgetc.c"),
Object(Matching, "clib/zi8cinfo.c"),
Object(Matching, "clib/zi8copy.c"),
Object(Matching, "clib/zi8dawg.c"),
Object(NonMatching, "clib/zi8dawg.c"),
Object(Matching, "clib/zi8getc.c"),
Object(NonMatching, "clib/zi8getc2.c"),
Object(Matching, "clib/zi8getSW.c"),
@@ -1045,7 +1045,7 @@ config.libs = [
Object(Matching, "net/crc.c"),
Object(NonMatching, "net/md5.c"),
Object(Matching, "net/sha1.c"),
Object(Matching, "net/hmac.c"),
Object(NonMatching, "net/hmac.c"),
Object(Matching, "net/neterrorcode.c"),
Object(Matching, "net/NETVersion.c"),
Object(NonMatching, "net/aes.c"),
@@ -1060,9 +1060,9 @@ config.libs = [
Object(NonMatching, "nhttp/NHTTP_recvbuf.c"),
Object(Matching, "nhttp/NHTTP_request.c"),
Object(Matching, "nhttp/NHTTP_response.c"),
Object(Matching, "nhttp/NHTTP_socket_RVL.c"),
Object(NonMatching, "nhttp/NHTTP_socket_RVL.c"),
Object(NonMatching, "nhttp/NHTTP_stdlib_RVL.c"),
Object(Matching, "nhttp/NHTTP_thread.c"),
Object(NonMatching, "nhttp/NHTTP_thread.c"),
Object(Matching, "nhttp/d_nhttp_private.c"),
Object(Matching, "nhttp/d_nhttp.c"),
Object(Matching, "nhttp/d_nhttp_common.c"),
@@ -1076,11 +1076,11 @@ config.libs = [
Object(Matching, "nwc24/NWC24Manage.c"),
Object(Matching, "nwc24/NWC24MsgObj.c"),
Object(NonMatching, "nwc24/NWC24MBoxCtrl.c"),
Object(Matching, "nwc24/NWC24Mime.c"),
Object(NonMatching, "nwc24/NWC24Mime.c"),
Object(Matching, "nwc24/NWC24Stream.c"),
Object(Matching, "nwc24/NWC24Parser.c"),
Object(NonMatching, "nwc24/NWC24MsgCommit.c"),
Object(Matching, "nwc24/NWC24MsgRead.c"),
Object(NonMatching, "nwc24/NWC24MsgRead.c"),
Object(NonMatching, "nwc24/NWC24MsgSubject.c"),
Object(Matching, "nwc24/NWC24Schedule.c"),
Object(NonMatching, "nwc24/NWC24DateParser.c"),
@@ -1097,7 +1097,7 @@ config.libs = [
RevoEXLib("so", [
Object(Matching, "so/SOCommon.c"),
Object(NonMatching, "so/SOBasic.c"),
Object(Matching, "so/SOInformation.c"),
Object(NonMatching, "so/SOInformation.c"),
Object(NonMatching, "so/SOOption.c"),
]
),
@@ -1212,7 +1212,7 @@ config.libs = [
Object(NonMatching, "exif/exif_parse.c"),
Object(Matching, "reschange/iqdec_resolution_change_a3.c"),
Object(Matching, "reschange/idct_resolution_change_var.c"),
Object(NonMatching, "reschange/idct_resolution_change_var.c"),
Object(NonMatching, "texturecvtr/Texture_MCUtoY8U8V8.c"),
Object(NonMatching, "texturecvtr/Texture_MCUtoRGB565.c"),
@@ -1453,7 +1453,7 @@ config.libs = [
Object(Matching, "axfx/AXFXReverbStd.c"),
Object(Matching, "axfx/AXFXReverbStdExp.c"),
Object(Matching, "axfx/AXFXChorus.c"),
Object(Matching, "axfx/AXFXChorusExp.c"),
Object(NonMatching, "axfx/AXFXChorusExp.c"),
Object(Matching, "axfx/AXFXLfoTable.c"),
Object(Matching, "axfx/AXFXSrcCoef.c"),
Object(Matching, "axfx/AXFXHooks.c"),
@@ -1692,19 +1692,19 @@ config.libs = [
Object(Matching, "fa/pdm_disk.c"),
Object(NonMatching, "fa/pdm_partition.c"),
Object(NonMatching, "fa/pf_cache.c"),
Object(Matching, "fa/pf_cluster.c"),
Object(Matching, "fa/pf_dir.c"),
Object(NonMatching, "fa/pf_cluster.c"),
Object(NonMatching, "fa/pf_dir.c"),
Object(Matching, "fa/pf_entry.c"),
Object(NonMatching, "fa/pf_entry_iterator.c"),
Object(NonMatching, "fa/pf_fat.c"),
Object(Matching, "fa/pf_fat12.c"),
Object(NonMatching, "fa/pf_fat12.c"),
Object(Matching, "fa/pf_fat16.c"),
Object(Matching, "fa/pf_fat32.c"),
Object(Matching, "fa/pf_fatfs.c"),
Object(Matching, "fa/pf_file.c"),
Object(Matching, "fa/pf_path.c"),
Object(NonMatching, "fa/pf_file.c"),
Object(NonMatching, "fa/pf_path.c"),
Object(Matching, "fa/pf_sector.c"),
Object(Matching, "fa/pf_volume.c"),
Object(NonMatching, "fa/pf_volume.c"),
Object(Matching, "fa/pf_volume_apiadd.c"),
Object(Matching, "fa/pf_cp932.c"),
Object(Matching, "fa/pf_api_util.c"),
@@ -1860,7 +1860,7 @@ config.libs = [
Object(Matching, "fa/msc/puh_msc.c"),
Object(Matching, "fa/msc/puh_msc_cmd.c"),
Object(Matching, "fa/msc/puh_msc_blk.c"),
Object(NonMatching, "fa/msc/puh_msc_blk.c"),
]
),
RVLSDKLib("sdi", [
@@ -1892,7 +1892,7 @@ config.libs = [
]
),
RVLSDKLib("kpr", [
Object(Matching, "kpr/kpr_lib.c"),
Object(NonMatching, "kpr/kpr_lib.c"),
]
),
RVLSDKLib("usbkbd", [

View File

@@ -37,11 +37,7 @@ namespace ipl {
u8 unk_0x06; // 0x06
u8 unk_0x07; // 0x07
u8 iconFmt[8]; // 0x08
#ifdef IPL_MEMORY_CARD_MANAGER_CPP
volatile u16 anmFrameBits;
#else
u16 anmFrameBits;
#endif
u16 anmFrameBits; // 0x10
#ifdef IPL_MEMORY_CARD_MANAGER_CPP
volatile s16 anmMax;
#else

View File

@@ -197,7 +197,6 @@ namespace textinput {
bool mbMaintainCursorCache;
#elif defined(MYTIINPUTFORM_IMPLEMENTATION)
protected:
void setDrawScrollY(const f32& scroll) { mfDrawScrollY = scroll; }
u8 mDrawState[0x27];
f32 mfDrawScrollY;
u8 mDrawCacheState[0x14];

View File

@@ -96,7 +96,7 @@ namespace ipl {
template <>
class LinearIntp<VEC3> : public Interporation<VEC3> {
public:
LinearIntp();
LinearIntp() {}
virtual ~LinearIntp();
VEC3 get() const;
};

View File

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

View File

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

View File

@@ -65,11 +65,7 @@ namespace ipl {
virtual BOOL isReady() const { return FALSE; }
/** @brief If the user can power off/reset the system */
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual BOOL isResetAcceptable() { return TRUE; }
#else
virtual BOOL isResetAcceptable() const { return TRUE; }
#endif
/** @brief The scene running code when powering off/resetting the system */
virtual void startResetting() {}
/** @brief If the scene has finished its powering off/resetting task */

View File

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

View File

@@ -203,9 +203,9 @@ namespace ipl {
bool enqueueLoadNotice();
bool enqueuePageNotice();
bool enqueueResultNotice(u32 result);
bool enqueueChannelNotice(u64 titleId, u32 value);
bool enqueueChannelNotice(u32 controller, u32 page, u32 index, u32 value);
bool enqueueMoveNotice(u32 controller, u32 page, u32 index);
bool enqueueStateNotice(u64 titleId, u32 state);
bool enqueueStateNotice(u32 controller, u32 page, u32 index, u32 state);
bool enqueueErrorNotice(u32 page, u32 index);
bool enqueueCommandNotice(u32 page, u32 index, u32 command);
bool enqueueDeleteNotice(u32 controller, u32 page, u32 index);

View File

@@ -50,7 +50,7 @@ namespace ipl {
static BOOL IsLastTicketExpired(ESTitleId* titleId);
static void DeleteExpiredFlagFile();
static void DeleteUnauthorizedData(EGG::Heap* heap);
static s32 DeleteUnauthorizedData(EGG::Heap* heap);
static u32 CheckTmdCountryCode(ESTmdView* tmdView);
static u32 CheckTmdParentalControl(ESTmdView* tmdView);

View File

@@ -977,6 +977,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
long double long_double_num;
wchar_t buff[512];
wchar_t* buff_ptr;
wchar_t* buff_end = buff + 511;
const wchar_t* string_end;
wchar_t fill_char = ' ';
@@ -1038,7 +1039,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
}
}
num_chars = buff + 512 - 1 - buff_ptr;
num_chars = ((long)buff_end - (long)buff_ptr) / 2;
break;
case 'o':
@@ -1080,7 +1081,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
}
}
num_chars = buff + 512 - 1 - buff_ptr;
num_chars = ((long)buff_end - (long)buff_ptr) / 2;
break;
case 'f':
@@ -1099,7 +1100,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
goto conversion_error;
}
num_chars = buff + 512 - 1 - buff_ptr;
num_chars = ((long)buff_end - (long)buff_ptr) / 2;
break;
case 'a':
@@ -1114,7 +1115,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
goto conversion_error;
}
num_chars = buff + 512 - 1 - buff_ptr;
num_chars = ((long)buff_end - (long)buff_ptr) / 2;
break;
case 's':

View File

@@ -1,45 +1,32 @@
// Yes, versions other than 4.3U align by 8.
#if defined(VERSION_43U)
#pragma function_align 32
#else
#pragma function_align 8
#endif
#endif // VERSION_43U
#include <TRK_Hollywood_Revolution.h>
#pragma force_active on
// clang-format off
asm DSIOResult TRKAccessFile(MessageCommandID cmd, unsigned int handle, int* count, unsigned char* buffer) {
#ifdef __MWERKS__
// Encapsulating function to get the file to align properly
asm void __targsupp() {
// clang-format off
#ifdef __MWERKS__
nofralloc
twi 31, r0, 0
blr
#endif
entry TRKAccessFile
twi 31, r0, 0
blr
entry TRKOpenFile
twi 31, r0, 0
blr
entry TRKCloseFile
twi 31, r0, 0
blr
entry TRKPositionFile
twi 31, r0, 0
blr
#endif // __MWERKS__
// clang-format on
}
#pragma function_align 8
asm DSIOResult TRKOpenFile() {
#ifdef __MWERKS__
nofralloc
twi 31, r0, 0
blr
#endif
}
asm DSIOResult TRKCloseFile() {
#ifdef __MWERKS__
nofralloc
twi 31, r0, 0
blr
#endif
}
asm DSIOResult TRKPositionFile() {
#ifdef __MWERKS__
nofralloc
twi 31, r0, 0
blr
#endif
}
// clang-format on

View File

@@ -1,13 +1,13 @@
#include <nw4r/db/assert.h>
extern "C" const u8 scLytFatalColorR;
extern "C" const u8 scLytFatalColorG;
extern "C" const u8 scLytFatalColorB;
extern "C" const u8 scLytFatalColorA;
extern "C" const u8 scLytFatalColorR = 255;
extern "C" const u8 scLytFatalColorG = 255;
extern "C" const u8 scLytFatalColorB = 255;
extern "C" const u8 scLytFatalColorA = 0;
extern "C" char scLytFatalMsg[] = "Error#004\nAn error has occurred.\nThe system files are corrupted.";
#undef NW4R_ASSERT
#define NW4R_GLOBAL_ASSERT(x) \
#define NW4R_ASSERT(x) \
{ \
if (!(x)) { \
GXColor front = {*((volatile const u8*)&::scLytFatalColorR), *((volatile const u8*)&::scLytFatalColorG), \
@@ -17,15 +17,6 @@ extern "C" char scLytFatalMsg[] = "Error#004\nAn error has occurred.\nThe system
} \
}
#define NW4R_ASSERT(x) \
{ \
if (!(x)) { \
GXColor front = {255, 255, 255, 0}; \
GXColor back = {0, 0, 0, 0}; \
OSFatal((GXColor)front, (GXColor)back, ::scLytFatalMsg); \
} \
}
#include <nw4r/lyt/window.h>
#include <nw4r/lyt/common.h>
@@ -497,7 +488,7 @@ namespace nw4r {
}
Material* Window::GetFrameMaterial(u32 frameIdx) const {
NW4R_GLOBAL_ASSERT(frameIdx < WINDOWFRAME_MAX);
NW4R_ASSERT(frameIdx < WINDOWFRAME_MAX);
if (frameIdx >= mFrameNum) {
return NULL;
}
@@ -510,8 +501,3 @@ namespace nw4r {
}
} // namespace lyt
} // namespace nw4r
extern "C" const u8 scLytFatalColorR = 255;
extern "C" const u8 scLytFatalColorG = 255;
extern "C" const u8 scLytFatalColorB = 255;
extern "C" const u8 scLytFatalColorA = 0;

View File

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

View File

@@ -106,21 +106,21 @@ static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, co
s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) {
TMCHuffmanEntry dcEntry;
u8* huff_sym;
TMCHuffmanEntry acEntry;
const TMCHuffmanEntry* ac_fast;
s32 idx;
u8* huff_sym;
u32* huff_tbl;
s32 bit_pos;
u32 bit_data;
u32 tmp;
const TMCHuffmanEntry* dc_fast;
s32 r;
s32 blk0;
TMCHuffmanEntry acEntry;
s32 idx;
s32 extra;
s32 t;
s32 zz;
s32 q;
const TMCHuffmanEntry* dc_fast;
u32 tmp;
const u8* zztbl;
bit_pos = work->bitCount;
@@ -135,14 +135,17 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
bit_pos = work->bitCount;
bit_data = work->bitBuf;
tmp = bit_pos - 8;
tmp = ((bit_data >> tmp) & 0xFF) << 2;
{
dcEntry = readHuffmanEntry(dc_fast, (bit_data >> (bit_pos - 8)) & 0xFF);
dcEntry = readHuffmanEntry(dc_fast, tmp >> 2);
r = dcEntry.bitLength;
extra = dcEntry.symbol;
}
if (r != 0) {
work->bitCount = bit_pos - r;
bit_pos -= r;
work->bitCount = bit_pos;
r = extra;
} else {
huff_sym = work->pDCHuffSym;

View File

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

View File

@@ -166,23 +166,23 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
}
static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 red;
s8 crValue;
u8* luminance;
u8* cb;
u8* cr;
TMCCJPEGDecState* state;
u8* texture;
s32 height;
s32 column;
s32 yEnd;
s32 xEnd;
s32 green;
s32 yEnd;
s32 column;
s32 tileWidth;
s32 blueOffset;
u16* output;
s32 tileRow;
s32 lumaSkip;
s8 crValue;
s32 red;
s32 chromaSkip;
s32 width;
s32 cbValue;
@@ -216,7 +216,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
cbValue = (s8)*cb++;
crValue = (s8)*cr++;
redOffset = (crValue * 359) >> 8;
greenOffset = -(crValue * 183 + cbValue * 88) >> 8;
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
blueOffset = (cbValue * 454) >> 8;
}
{
@@ -285,20 +285,20 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
}
static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaSkip;
s32 tileRow;
s32 xEnd;
u8* texture;
TMCCJPEGDecState* state;
s32 column;
u8* luminance;
u8* cb;
u8* cr;
TMCCJPEGDecState* state;
s32 tileWidth;
u8* texture;
s32 width;
s32 height;
u8* cr;
s32 column;
s32 lumaSkip;
s32 xEnd;
s32 yEnd;
s32 tileWidth;
s32 lumaSkip;
s32 chromaSkip;
s32 tileRow;
u16* output;
s32 cbValue;
s8 crValue;
@@ -366,11 +366,11 @@ static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaSkip;
s32 lumaSkip;
s32 blue;
s32 cbValue;
s32 tileWidth;
TMCCJPEGDecState* state;
u16* output;
s32 xEnd;
u8* texture;
s32 width;
s32 height;
@@ -379,7 +379,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
s32 red;
u8* cr;
s32 column;
s32 xEnd;
u16* output;
s32 yEnd;
s32 redOffset;
s32 tileRow;
@@ -387,7 +387,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
s32 blueOffset;
s32 value;
s32 green;
s32 blue;
s32 lumaSkip;
s32 crValue;
luminance = work->convBuf + 4;
@@ -415,7 +415,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
green = value + greenOffset;
red = value + redOffset;
blue = value + blueOffset;
if ((blue | green | red) >> 8) {
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
@@ -426,7 +426,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
green = value + greenOffset;
red = value + redOffset;
blue = value + blueOffset;
if ((blue | green | red) >> 8) {
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
@@ -441,21 +441,21 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
}
static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 blue;
u16* output;
s32 xEnd;
s32 column;
u8* luminance;
u8* cb;
u8* cr;
TMCCJPEGDecState* state;
s32 tileWidth;
u8* luminance;
u8* texture;
s32 width;
s32 height;
u8* cb;
u8* texture;
s32 column;
s32 chromaSkip;
s32 xEnd;
s32 yEnd;
s32 lumaSkip;
s32 chromaSkip;
s32 tileRow;
u16* output;
s32 cbValue;
s32 crValue;
s32 redOffset;
@@ -463,7 +463,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 blueOffset;
s32 value;
s32 red;
s32 lumaSkip;
s32 blue;
s32 green;
luminance = work->convBuf + 4;
@@ -502,7 +502,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
red = value + redOffset;
blue = value + blueOffset;
green = value + greenOffset;
if ((blue | green | red) >> 8) {
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
@@ -517,19 +517,19 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
}
static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 tileRow;
s32 blue;
s8 crValue;
s32 chromaSkip;
u8* luminance;
TMCCJPEGDecState* state;
u8* texture;
s32 xEnd;
s32 width;
s32 height;
s32 green;
s32 blue;
s32 blueOffset;
u8* texture;
s32 lumaSkip;
s32 yEnd;
s32 xEnd;
s32 tileRow;
s32 value;
s32 column;
u8* cr;
@@ -538,7 +538,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
s32 redOffset;
u8* cb;
u16* output;
s32 blueOffset;
s32 green;
s32 red;
s32 cbValue;
@@ -620,11 +620,11 @@ static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
u8* luminance = work->convBuf + 4;
u8* cb = work->convBuf + 260;
s32 width;
u8* cr = work->convBuf + 324;
TMCCJPEGDecState* state = work->pState;
s32 tileWidth = (state->convWidth >> 2) << 1;
u8* texture = state->pTexBuffer;
u8* cr = work->convBuf + 324;
s32 width;
s32 height;
if (state->dataSizeX == (u32)x) {
width = state->stepXExt;
@@ -686,7 +686,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
u16* output;
s32 tileRow;
s32 column;
s32 redOffset;
TMCCJPEGDecState* state;
s32 lumaSkip;
@@ -695,7 +695,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
u8* cb;
u8* cr;
s32 height;
s32 column;
s32 tileRow;
s32 chromaSkip;
s32 width;
s32 xEnd;
@@ -742,7 +742,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
green = value + greenOffset;
red = value + redOffset;
blue = value + blueOffset;
if ((blue | green | red) >> 8) {
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
@@ -770,7 +770,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
u16* output;
s32 lumaSkip;
s32 blue;
u8* texture;
s32 tileRow;
u8* luminance;
u8* cb;
u8* cr;
@@ -783,7 +783,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 greenOffset;
s32 yEnd;
s32 cbValue;
s32 tileRow;
u8* texture;
s32 blueOffset;
s32 red;
s8 crValue;
@@ -831,7 +831,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
green = value + greenOffset;
red = value + redOffset;
blue = value + blueOffset;
if ((blue | green | red) >> 8) {
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
@@ -856,9 +856,9 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
u16* output;
s32 tileWidth;
s32 tileRow;
s32 rowSkip;
u8* texture;
s32 xEnd;
u8* luminance;
u8* cb;
u8* cr;
@@ -867,9 +867,9 @@ static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
s32 height;
s32 width;
s32 column;
s32 xEnd;
s32 rowSkip;
s32 yEnd;
s32 tileWidth;
u8* texture;
s32 row;
s32 red;
s32 cbValue;
@@ -896,10 +896,10 @@ static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
cbValue = (s8)*cb++;
crValue = (s8)*cr++;
value = *luminance++;
green = value + (-(crValue * 183 + cbValue * 88) >> 8);
green = value + (-(cbValue * 88 + crValue * 183) >> 8);
red = value + ((crValue * 359) >> 8);
blue = value + ((cbValue * 454) >> 8);
if ((blue | green | red) >> 8) {
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;

View File

@@ -171,7 +171,9 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 rowSkip;
u8* output;
s32 chromaXEnd;
u32 tileRow;
u32 chromaTileWidth;
s32 chromaYEnd;
u8* lumaTexture;
TMCCJPEGDecState* state;
@@ -214,17 +216,17 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
luminance += rowSkip;
}
tileWidth = state->chromaWidth >> 3;
chromaTileWidth = state->chromaWidth >> 3;
x = (u32)x >> 2;
width = 8 / state->scaleFactor;
height = 8 / state->scaleFactor;
xEnd = x + width;
chromaXEnd = x + width;
chromaYEnd = y + height;
for (; y < chromaYEnd; y++) {
for (column = x; column < xEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128;
for (column = x; column < chromaXEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128;
cb++;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128;
cr++;
}
cb += 8 - width;
@@ -233,6 +235,7 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
u32 chromaTileWidth;
TMCCJPEGDecState* state;
u8* lumaTexture;
u8* luminance;
@@ -247,9 +250,9 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
u8* output;
u8* cb;
u8* cr;
s32 width;
s32 tileOffset;
s32 xEnd;
s32 tileOffset;
s32 width;
u32 tileWidth;
luminance = work->convBuf + 4;
@@ -284,13 +287,13 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
x = (u32)x >> 2;
width = (width + 3) >> 2;
xEnd = x + width;
tileWidth = state->chromaWidth >> 3;
chromaTileWidth = state->chromaWidth >> 3;
chromaEnd = y + height;
for (; y < chromaEnd; y++) {
for (column = x; column < xEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128;
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128;
cb++;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128;
cr++;
}
cb += 8 - width;
@@ -358,6 +361,7 @@ static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
u32 chromaTileWidth;
TMCCJPEGDecState* state;
u8* lumaTexture;
u8* luminance;
@@ -372,9 +376,9 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
u8* output;
u8* cb;
u8* cr;
s32 width;
s32 tileOffset;
s32 xEnd;
s32 tileOffset;
s32 width;
u32 tileWidth;
luminance = work->convBuf + 4;
@@ -409,13 +413,13 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
x = (u32)x >> 1;
width = (width + 1) >> 1;
xEnd = x + width;
tileWidth = state->chromaWidth >> 3;
chromaTileWidth = state->chromaWidth >> 3;
chromaEnd = y + height;
for (; y < chromaEnd; y++) {
for (column = x; column < xEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128;
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128;
cb++;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128;
cr++;
}
cb += 8 - width;
@@ -424,21 +428,23 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaYEnd;
u8* lumaTexture;
s32 height;
u8* luminance;
s32 chromaYEnd;
s32 column;
u8* lumaTexture;
s32 chromaXEnd;
u8* luminance;
u32 chromaTileWidth;
u8* cbTexture;
s32 row;
s32 width;
u8* crTexture;
s32 xEnd;
u32 tileWidth;
u8* cb;
TMCCJPEGDecState* state;
s32 yEnd;
s32 width;
s32 xEnd;
u8* cr;
u32 tileWidth;
s32 row;
row = y;
luminance = work->convBuf + 4;
@@ -464,14 +470,14 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
y = (u32)y >> 1;
width = 8 / state->scaleFactor;
height = 8 / state->scaleFactor;
xEnd = x + width;
chromaXEnd = x + width;
chromaYEnd = y + height;
tileWidth = state->chromaWidth >> 3;
chromaTileWidth = state->chromaWidth >> 3;
for (; y < chromaYEnd; y++) {
for (column = x; column < xEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128;
for (column = x; column < chromaXEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128;
cb++;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128;
cr++;
}
cb += 8 - width;
@@ -480,6 +486,7 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
u32 chromaTileWidth;
TMCCJPEGDecState* state;
u8* lumaTexture;
u8* luminance;
@@ -490,13 +497,13 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
u8* crTexture;
u32 tileRow;
s32 height;
s32 width;
s32 yEnd;
u8* output;
u8* cb;
u8* cr;
s32 xEnd;
s32 tileOffset;
s32 yEnd;
s32 width;
u32 tileWidth;
luminance = work->convBuf + 4;
@@ -532,13 +539,13 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
x = (u32)x >> 1;
width = (width + 1) >> 1;
xEnd = x + width;
tileWidth = state->chromaWidth >> 3;
chromaTileWidth = state->chromaWidth >> 3;
chromaEnd = y + ((height + 1) >> 1);
for (; y < chromaEnd; y++) {
for (column = x; column < xEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128;
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128;
cb++;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128;
cr++;
}
cb += 8 - width;
@@ -547,8 +554,9 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
}
static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
u8* lumaTexture;
u32 chromaTileWidth;
TMCCJPEGDecState* state;
u8* lumaTexture;
u8* luminance;
s32 column;
s32 row;
@@ -588,13 +596,13 @@ static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
luminance += 8 - width;
}
y = (u32)y >> 1;
tileWidth = state->chromaWidth >> 3;
chromaTileWidth = state->chromaWidth >> 3;
chromaEnd = y + 8 / state->scaleFactor;
for (; y < chromaEnd; y++) {
for (column = x; column < xEnd; column += 1) {
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cb + 128;
(cbTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cb + 128;
cb++;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * tileWidth) << 5)] = *cr + 128;
(crTexture + ((y & 3) << 3) + (column & 7))[(s32)(((column >> 3) + (y >> 2) * chromaTileWidth) << 5)] = *cr + 128;
cr++;
}
cb += 8 - width;

View File

@@ -27,11 +27,11 @@ ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
ziWChar Zi8ConvertUC2UserKey(ziChar, ziU8 ZI_NEED_WORK);
ziWChar Zi8ConvertUC2WC(ziChar character, ziU8 language ZI_NEED_WORK) {
const ziConversionTables* defaults;
ziU8* table;
ziWChar* mapped;
ziU8* cursor;
ziU16 first, last;
ziU8* table;
const ziConversionTables* defaults;
if (character == 0) {
Zi8LogError(0x133, __zi8_work_data);
return 0;

View File

@@ -796,11 +796,11 @@ Zi8UInt Zi8Get1KeyPressSpelling(Zi8OneKeyParam *params,Zi8OneKeyOptions *options
if (remaining != 0) {
remaining--;
} else {
totalCandidates = totalCandidates + 1;
totalCandidates++;
if (options->countOnly == '\0') {
*output++ = spellingBuffer[spellingIndex];
*output++ = 0;
candidateCount = candidateCount + 1;
candidateCount++;
}
else if ((int)totalCandidates >= options->maxCount) goto finishSpelling;
if (candidateCount >= params->maxCandidates) goto finishSpelling;
@@ -1001,10 +1001,10 @@ Zi8UInt Zi8Get1KeyPressSpelling(Zi8OneKeyParam *params,Zi8OneKeyOptions *options
}
if (Zi8IsDupWordW(output,(ziU8)phoneticIndex,work) == 0) {
if (remaining == 0) {
totalCandidates = totalCandidates + 1;
totalCandidates++;
if (options->countOnly == 0) {
output += phoneticIndex + 1;
candidateCount = candidateCount + 1;
candidateCount++;
} else if ((int)totalCandidates >= options->maxCount) goto finishSpelling;
if (candidateCount >= params->maxCandidates) goto finishSpelling;
} else {

View File

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

View File

@@ -49,42 +49,39 @@ void Zi8CopyZHSpelling(ziU8* source, ziWChar* output, ziU16 capacity, int size,
}
}
}
ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option, struct __zi8_work_data_s* __zi8_work_data) {
ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option ZI_NEED_WORK) {
ziU8 previous;
previous = __zi8_work_data->pdRemoveOpt;
__zi8_work_data->pdRemoveOpt = option;
previous = ZI_WORK->pdRemoveOpt;
ZI_WORK->pdRemoveOpt = option;
Zi8LogError(100, __zi8_work_data);
return previous;
}
ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
int fallback = 0;
ziU8* bytePattern;
ziWChar folded;
ziPudSection* section;
int wordSize;
int copied;
ziU32 entrySize, wordSize, copied;
ziU8* entry;
ziU8* word;
int index;
ziU32 entrySize;
int fallback = 0;
ziPudHeader* table;
ziU8* byteOutput;
ziPudSection* section;
if (!(ZI_WORK->pudCount <= 16 && ZI_WORK->pudCount != 0 && ZI_WORK->pudTable[ZI_WORK->pudCount - 1] != 0)) {
Zi8LogError(0x4B0, __zi8_work_data);
return 0;
}
if (language == 1) {
length &= 0x7F;
length *= 2;
}
if (continuation == 0) {
table = (ziPudHeader*)ZI_WORK->pudTable[ZI_WORK->pudCount - 1];
section = table->sections;
index = 0;
while (index < table->languageCount) {
if (section->language == language) break;
section++;
section = table->sections;
while (index < table->languageCount && section->language != language) {
index++;
section++;
}
if (index >= table->languageCount) {
if (table->languageCount <= index) {
Zi8LogError(0x4F6, __zi8_work_data);
return 0;
}
@@ -93,97 +90,90 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
ZI_WORK->unk_0x318 = 0;
}
for (;;) {
word = (ziU8*)ZI_WORK->unk_0x310;
if (word == 0) {
entry = (ziU8*)ZI_WORK->unk_0x310;
if (entry == 0) {
Zi8LogError(0x4B3, __zi8_work_data);
return 0;
}
while ((ziS32)ZI_WORK->unk_0x318 < (ziS32)ZI_WORK->unk_0x314) {
wordSize = *word++;
word = entry + 1;
wordSize = *entry;
entrySize = wordSize;
if (language == 1) {
if (ZI_WORK->unk_0x17 > *word) goto next;
wordSize--;
entrySize--;
word++;
if (*word < ZI_WORK->unk_0x17) goto next;
entrySize = wordSize - 1;
word = entry + 2;
wordSize = ZiGetZHWordSize((ziWChar*)word, entrySize);
} else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && length < wordSize && word[length] == 0x20) goto matchText;
if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) {
next:
ZI_WORK->unk_0x318++;
word += entrySize;
} else {
if (language == 1) {
bytePattern = (ziU8*)pattern;
for (index = 0; index < length; index++) {
if (word[index] != bytePattern[index]) goto next;
}
goto matched;
}
matchText:
} else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && wordSize > length && word[length] == 0x20) goto matchText;
if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) goto next;
if (language == 1) {
for (index = 0; index < length; index++) {
if (pattern[index] >= 0xEFF1 && pattern[index] <= 0xF37F) {
if (pattern[index] != Zi8ConvertUC2Key(word[index], language, __zi8_work_data)) goto next;
} else {
folded = Zi8ConvertUC2WC(word[index], language, __zi8_work_data);
if (folded != pattern[index] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[index])) goto next;
}
if (word[index] != ((ziU8*)pattern)[index]) goto next;
}
matched:
if (fallback) {
ZI_WORK->unk_0x310 = 0;
ZI_WORK->unk_0x318 = 0;
ZI_WORK->unk_0x314 = 0;
if (*pattern >= 0xEFF1) *output = *pattern;
else *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data);
return 1;
}
if (language == 1) {
byteOutput = (ziU8*)output;
for (index = copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) {
byteOutput[index] = word[index];
index++;
byteOutput[index] = word[index];
index++;
}
Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize);
} else {
for (copied = 0; copied < wordSize && copied < capacity; copied++) {
output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data);
if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) {
if (complete != 0 || copied >= length) break;
goto next;
}
}
}
ZI_WORK->unk_0x318++;
ZI_WORK->unk_0x310 = (ziU32)(word + entrySize);
Zi8LogError(100, __zi8_work_data);
return (ziU8)copied;
goto matched;
}
matchText:
for (index = 0; index < length; index++) {
if (pattern[index] < 0xEFF1 || pattern[index] > 0xF37F) {
folded = Zi8ConvertUC2WC(word[index], language, __zi8_work_data);
if (folded != pattern[index] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[index])) goto next;
} else if (pattern[index] != Zi8ConvertUC2Key(word[index], language, __zi8_work_data)) goto next;
}
matched:
if (fallback) {
ZI_WORK->unk_0x310 = 0;
ZI_WORK->unk_0x318 = 0;
ZI_WORK->unk_0x314 = 0;
if (*pattern < 0xEFF1) *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data);
else *output = *pattern;
return 1;
}
if (language == 1) {
index = 0;
for (copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) {
((ziU8*)output)[index] = word[index];
((ziU8*)output)[index + 1] = word[index + 1];
index += 2;
}
Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize);
} else {
for (copied = 0; copied < wordSize && copied < capacity; copied++) {
output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data);
if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) {
if (complete != 0 || copied >= length) break;
goto next;
}
}
}
ZI_WORK->unk_0x318++;
ZI_WORK->unk_0x310 = (ziU32)(word + entrySize);
Zi8LogError(100, __zi8_work_data);
return (ziU8)copied;
next:
ZI_WORK->unk_0x318++;
entry = word + entrySize;
}
if (length == 1 && complete != 0 && continuation == 0) {
complete = 0;
fallback = 1;
ZI_WORK->unk_0x318 = 0;
} else {
if (length != 1 || complete == 0 || continuation != 0) {
ZI_WORK->unk_0x310 = 0;
ZI_WORK->unk_0x318 = 0;
ZI_WORK->unk_0x314 = 0;
return 0;
}
complete = 0;
fallback = 1;
ZI_WORK->unk_0x318 = 0;
}
}
ziU32 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation, struct __zi8_work_data_s* __zi8_work_data) {
ziU32 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
ziU32 result;
if (continuation == 0) __zi8_work_data->pudCount = 1;
if (continuation == 0) ZI_WORK->pudCount = 1;
for (;;) {
result = Zi8_8147FD7C(pattern, length, language, output, capacity, complete, continuation, __zi8_work_data);
if ((ziU8)result != 0) break;
if (++__zi8_work_data->pudCount <= 16) {
if (++ZI_WORK->pudCount <= 16) {
continuation = 0;
} else {
__zi8_work_data->pudCount = 1;
ZI_WORK->pudCount = 1;
break;
}
}

View File

@@ -15,11 +15,11 @@ void Zi8Memset(ziPtr, ziU32, ziU32);
ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
ziU8 length;
ziU8 position;
ziUwdNode* previous;
ziUwdNode* current;
ziUwdNode* added;
ziUserWord* candidate;
ziU8 position;
if (ZI_WORK->uwdCount >= 32) {
Zi8LogError(0x19D, __zi8_work_data);
return 0;
@@ -56,7 +56,8 @@ ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
previous = current;
current = current->next;
}
added = &ZI_WORK->uwdNodes[ZI_WORK->uwdCount++];
length = ZI_WORK->uwdCount++;
added = &ZI_WORK->uwdNodes[length];
if (previous == 0) {
ZI_WORK->uwdList = added;
added->next = current;
@@ -86,24 +87,23 @@ void Zi8_8148047C(ziPtr __zi8_work_data) {
ZI_WORK->uwdList = 0;
}
ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16 currentLength, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
ziUserDictionary* dictionary;
ziWChar folded;
int fallback = 0;
int visited = 0;
int prefixLength;
int position, previousOffset;
ziU32 size;
ziU8 entryLanguage;
ziU32 entryLength;
ziU8* cursor;
ziU8* begin;
ziU8* boundary;
ziU8* end;
ziUserWord* candidate;
ziUserWord* previous;
ziUserWord* result;
ziUserDictionary* dictionary;
int firstSegment;
ziU32 size;
int headerSize;
int entryLanguage;
volatile int entryLength;
int previousOffset;
int visited = 0;
int fallback = 0;
ziWChar folded;
ziU8* text;
int position;
int prefixLength;
Zi8LogError(100, __zi8_work_data);
if (!(ZI_WORK->unk_0x138 <= 2 && ZI_WORK->unk_0x138 != 0 && ZI_WORK->unk_0x130[ZI_WORK->unk_0x138 - 1] != 0)) {
Zi8ReplaceLastError(0x19C, __zi8_work_data);
@@ -111,17 +111,16 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
}
dictionary = ZI_WORK->unk_0x130[ZI_WORK->unk_0x138 - 1];
if (continuation != 0) {
text = (ziU8*)Zi8_814803F4(__zi8_work_data);
result = Zi8_814803F4(__zi8_work_data);
entryLength = 0;
if (text != 0) {
language = ((ziUserWord*)text)->language;
entryLength = ((ziUserWord*)text)->length;
if (result != 0) {
entryLanguage = result->language;
entryLength = result->length;
if (entryLength >= capacity) {
Zi8_8148047C(__zi8_work_data);
return 0;
}
text = ((ziUserWord*)text)->text;
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(text[position], language, __zi8_work_data);
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(result->text[position], entryLanguage, __zi8_work_data);
}
return entryLength;
}
@@ -131,20 +130,17 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
if (currentWord == 0 || currentLength == 0 || currentWord[currentLength - 1] != 0x20) ZI_WORK->unk_0x140 = 0;
else {
prefixLength = 0;
for (position = currentLength - 2; position >= 0;) {
if (currentWord[position] == 0x20) break;
position--;
prefixLength++;
}
for (position = currentLength - 2; currentWord[position] != 0x20 && position >= 0; position--) prefixLength++;
position++;
if (prefixLength == 0 || prefixLength > 63) ZI_WORK->unk_0x140 = 0;
else {
ZI_WORK->unk_0x140 = 1;
ZI_WORK->unk_0x141[prefixLength + 4] = ZI_WORK->unk_0x141[0] = prefixLength + 5;
ZI_WORK->unk_0x141[0] = prefixLength + 5;
ZI_WORK->unk_0x141[prefixLength + 4] = prefixLength + 5;
ZI_WORK->unk_0x141[1] = language;
ZI_WORK->unk_0x141[2] = prefixLength;
previousOffset = 4;
while (prefixLength > 0) {
for (; prefixLength > 0; prefixLength--, position++) {
folded = currentWord[position];
ZI_WORK->unk_0x141[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
ZI_WORK->unk_0x184[previousOffset] = 0;
@@ -156,56 +152,48 @@ ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16
ZI_WORK->unk_0x140 = 0;
break;
}
prefixLength--;
position++;
}
}
}
if (ZI_WORK->unk_0x140 == 0 && length == 0) return 0;
rescan:
cursor = begin = dictionary->entries + dictionary->current;
begin = dictionary->entries + dictionary->current;
boundary = (ziU8*)dictionary + dictionary->boundary + 7;
end = (ziU8*)dictionary + dictionary->end + 7;
cursor = begin;
if (begin < boundary) firstSegment = 1;
else firstSegment = 0;
while ((cursor < boundary && firstSegment) || (cursor < end && !firstSegment)) {
while (firstSegment ? cursor < boundary : cursor < end) {
size = *cursor;
if ((ziS32)ZI_WORK->unk_0x13C > visited++ || (((ziUserWord*)cursor)->size & 0xC0) != 0) {
next:
if ((cursor += size) > end) {
if (firstSegment) break;
firstSegment = 1;
size = cursor - end - 1;
cursor = dictionary->entries + size;
}
} else {
candidate = (ziUserWord*)cursor;
position = visited++;
if ((ziS32)ZI_WORK->unk_0x13C <= position && (size & 0xC0) == 0) {
previous = (ziUserWord*)(cursor + size);
if ((ziU8*)previous > end) previous = (ziUserWord*)(dictionary->entries + (cursor - end - 1));
text = cursor;
headerSize = *text++;
entryLanguage = *text++;
entryLength = *text++;
text++;
if (entryLanguage == language && entryLength >= length && entryLength < capacity && (complete == 0 || entryLength == length) && (complete != 0 || entryLength != length)) {
if ((ziU8*)previous > end) previous = (ziUserWord*)(cursor + ((ziU8*)dictionary - end) + 7);
entryLanguage = candidate->language;
entryLength = candidate->length;
if (entryLanguage == language && length <= entryLength && entryLength < capacity && (complete == 0 || entryLength == length) && (complete != 0 || entryLength != length)) {
for (position = 0; position < length; position++) {
if (pattern[position] >= 0xEFF1 && pattern[position] <= 0xF010) {
if (pattern[position] != Zi8ConvertUC2Key(text[position], language, __zi8_work_data)) goto next;
} else {
folded = Zi8ConvertUC2WC(text[position], language, __zi8_work_data);
if (pattern[position] < 0xEFF1 || pattern[position] > 0xF010) {
folded = Zi8ConvertUC2WC(candidate->text[position], language, __zi8_work_data);
if (folded != pattern[position] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[position])) goto next;
}
} else if (pattern[position] != Zi8ConvertUC2Key(candidate->text[position], language, __zi8_work_data)) goto next;
}
if (ZI_WORK->unk_0x140 != 0) {
if (ZI_WORK->unk_0x141[0] != previous->size || ZI_WORK->unk_0x141[1] != previous->language || ZI_WORK->unk_0x141[2] != previous->length) goto next;
prefixLength = 4;
position = ZI_WORK->unk_0x141[2] + 4;
for (; prefixLength < position; prefixLength++) {
if (ZI_WORK->unk_0x141[prefixLength] != ((ziU8*)previous)[prefixLength] && ZI_WORK->unk_0x184[prefixLength] != ((ziU8*)previous)[prefixLength]) goto next;
for (position = 4; position < ZI_WORK->unk_0x141[2] + 4; position++) {
if (ZI_WORK->unk_0x141[position] != ((ziU8*)previous)[position] && ZI_WORK->unk_0x184[position] != ((ziU8*)previous)[position]) goto next;
}
}
Zi8_81480224((ziUserWord*)cursor, __zi8_work_data);
Zi8_81480224(candidate, __zi8_work_data);
}
goto next;
}
next:
cursor += size;
if (end < cursor) {
if (firstSegment) break;
firstSegment = 1;
cursor = dictionary->entries + (cursor - end - 1);
}
}
if (ZI_WORK->unk_0x140 != 0 && length != 0) {
@@ -213,24 +201,23 @@ next:
visited = 0;
goto rescan;
}
if (length == 1 && complete != 0 && continuation == 0) {
if (complete == 1 && length != 0 && continuation == 0) {
complete = 0;
fallback = 1;
visited = 0;
goto rescan;
}
}
text = (ziU8*)Zi8_814803F4(__zi8_work_data);
if (text != 0) {
language = ((ziUserWord*)text)->language;
entryLength = ((ziUserWord*)text)->length;
result = Zi8_814803F4(__zi8_work_data);
entryLength = 0;
if (result != 0) {
entryLanguage = result->language;
entryLength = result->length;
if (entryLength >= capacity) {
Zi8_8148047C(__zi8_work_data);
return 0;
}
text = ((ziUserWord*)text)->text;
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(text[position], language, __zi8_work_data);
return entryLength;
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(result->text[position], entryLanguage, __zi8_work_data);
}
return 0;
return entryLength;
}

View File

@@ -1,7 +1,7 @@
#include <zi8clib/zierror.h>
#include <zi8clib/zitypes.h>
extern const ziU16 nodeHeaderTable[16];
extern ziU16 nodeHeaderTable[16];
ziU32 ZiDAWGGetChild(ziU32 node) {
ziU32 base;
@@ -22,10 +22,11 @@ ziU32 ZiDAWGGetChild(ziU32 node) {
node += offset;
if (((ziU32)header & 2) != 0) {
if ((*(ziU8*)node & 0x80) != 0) {
offset = ((*(ziU8*)node & 0x7f) << 16) +
((((ziU32)*((ziU8*)node + 1) & 0xffff) << 8) + *((ziU8*)node + 2)) + 0x8000;
offset = (*(ziU8*)node & 0x7f) * 0x10000 + ((ziU32)*((ziU8*)node + 1) & 0xffff) * 0x100 + 0x8000;
offset += *((ziU8*)node + 2);
} else {
offset = (((ziU32)*(ziU8*)node & 0xffff) << 8) + (ziU32)*((ziU8*)node + 1);
offset = ((ziU32)*(ziU8*)node & 0xffff) * 0x100;
offset += (ziU32)*((ziU8*)node + 1);
}
} else if (((ziU32)header & 8) != 0) {
if ((*(ziU8*)node & 0x80) != 0) {
@@ -41,41 +42,39 @@ ziU32 ZiDAWGGetChild(ziU32 node) {
return node;
}
ziU8* ZiDAWGGetSibling(ziU8* cursor) {
ziS32 depth;
ziU8* node;
ziU8* ZiDAWGGetSibling(ziU8* node) {
ziU16 header;
ziU8* cursor = node;
ziS32 depth;
ziS32 offset;
depth = 0;
node = cursor;
offset = 0;
header = nodeHeaderTable[cursor[0] >> 4];
header = nodeHeaderTable[node[0] >> 4];
if ((header & 4) == 0) {
return 0;
node = 0;
} else {
if ((header & 8) != 0) {
if ((cursor[0] & 0xf) == 0xf) {
cursor += 2;
if ((node[0] & 0xf) == 0xf) {
node += 2;
} else {
cursor += 1;
node += 1;
}
if ((header & 2) != 0) {
if ((*cursor & 0x80) != 0) {
cursor += 3;
if ((*node & 0x80) == 0) {
node += 2;
} else {
cursor += 2;
node += 3;
}
}
if ((*cursor & 0x80) != 0) {
node += (*cursor & 0x7f) * 0x10000 +
(((ziU32)cursor[1] << 8) + (ziU32)cursor[2]) + 0x8000;
if ((*node & 0x80) != 0) {
node += (*node & 0x7f) * 0x10000 + (ziU32)node[1] * 0x100 +
(ziU32)node[2] + 0x8000;
} else {
node = cursor[1] + (node + (ziU16)*cursor * 0x100);
node += (ziU16)*node * 0x100 + (ziU32)node[1];
}
return node;
} else {
cursor = node;
do {
@@ -89,16 +88,14 @@ ziU8* ZiDAWGGetSibling(ziU8* cursor) {
}
if ((header & 1) != 0) {
if ((header & 2) != 0) {
if ((*cursor & 0x80) != 0) {
cursor += 3;
offset += 3;
} else {
cursor += 2;
offset += 2;
}
} else {
if ((header & 2) == 0) {
depth++;
} else if ((*cursor & 0x80) != 0) {
cursor += 3;
offset += 3;
} else {
cursor += 2;
offset += 2;
}
}
@@ -116,17 +113,18 @@ ziU8* ZiDAWGGetSibling(ziU8* cursor) {
}
} while (0 < depth);
return node + offset;
node += offset;
}
}
return node;
}
ziU8 ZiDAWGgetEOWattribute(ziU32 node) {
return (nodeHeaderTable[*(ziU8*)node >> 4] & 0x10) > 0;
}
ziU32 ZiDAWGgetCHARattribute(zi8DawgCtx* context, ziU32 node, ziPtr __zi8_work_data) {
ziU32 ZiDAWGgetCHARattribute(ziPtr context, ziU32 node, ziPtr __zi8_work_data) {
ziU8 key;
ziU32 attribute;
@@ -136,15 +134,15 @@ ziU32 ZiDAWGgetCHARattribute(zi8DawgCtx* context, ziU32 node, ziPtr __zi8_work_d
key = (ziU32)*(ziU8*)node & 0xf;
}
if (key > context->cap) {
if (key > ((zi8DawgCtx*)context)->cap) {
Zi8LogError(0x138b, __zi8_work_data);
return 0;
}
attribute = key << 24;
attribute |= ((ziU8*)context->p0C)[key] << 16;
attribute |= (((ziU32)((ziU8*)context->p08)[key * 2] & 0xFFFF) << 8) +
((ziU8*)context->p08 + key * 2)[1];
attribute |= ((ziU8*)((zi8DawgCtx*)context)->p0C)[key] << 16;
attribute += ((ziU32)((ziU8*)((zi8DawgCtx*)context)->p08)[key * 2] & 0xFFFF) << 8;
attribute += ((ziU8*)((zi8DawgCtx*)context)->p08)[key * 2 + 1];
Zi8LogError(0x64, __zi8_work_data);
return attribute;
}
@@ -157,55 +155,60 @@ ziU32 ZiDAWGGetGraph(ziPtr context) {
ziU32 ZiDAWGGetGraphInfo(zi8DawgCtx* context, ziU8* entry, ziU16* keys) {
ziU32 graph;
ziU8 depth;
ziU32 end;
ziS32 result;
ziU32 end;
ziU8 depth;
ziU32 pair;
graph = ZiDAWGGetGraph(context);
result = 0;
if ((((ziU16)entry[0] << 8) + entry[1]) != 0 || (((ziU16)entry[2] << 8) + entry[3]) != 0) {
pair = (((ziU16)entry[0] << 8) + entry[1]);
if (pair != 0) {
return 0;
}
end = (ziU32)(entry + (((ziU16)entry[4] << 8) + entry[5] + 1) * 10);
entry += 10;
depth = 0;
while ((depth < 2) && (*keys != 0)) {
if (*keys >= 0xeff1 && *keys <= 0xf010) {
goto checkEntry;
pair = (((ziU16)entry[2] << 8) + entry[3]);
if (pair == 0) {
end = (ziU32)(entry + (((ziU16)entry[4] << 8) + entry[5] + 1) * 10);
entry += 10;
depth = 0;
while ((depth < 2) && (*keys != 0)) {
if ((*keys < 0xeff1) || (0xf010 < *keys)) {
break;
}
while (1) {
if (*keys == (ziS32)(((ziU16)entry[2] << 8) + entry[3])) {
if (*keys == (ziS32)(entry[3] + ((ziU16)entry[2] << 8))) {
break;
}
entry += (((ziU16)entry[0] << 8) + entry[1]) * 10 + 10;
checkEntry:
entry += (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10;
if (((ziU32)entry >= end) ||
(*keys == (ziS32)(((ziU16)entry[2] << 8) + entry[3]))) {
(*keys == (ziS32)(entry[3] + ((ziU16)entry[2] << 8)))) {
break;
}
}
} else {
return 0;
}
if ((ziU32)entry >= end) {
return 0;
}
if ((ziU32)entry >= end) {
return 0;
}
result = graph + (ziU32)entry[4] * 0x10000 + (((ziU16)entry[5] << 8) + entry[6]);
((zi8DawgCtx*)context)->unk_0x338 =
graph + (ziU32)entry[7] * 0x10000 + (((ziU16)entry[8] << 8) + entry[9]);
if (((zi8DawgCtx*)context)->unk_0x338 == graph) {
((zi8DawgCtx*)context)->unk_0x338 = 0;
}
result = graph + (ziU32)entry[4] * 0x10000 + ((ziU16)entry[5] << 8) +
entry[6];
((zi8DawgCtx*)context)->unk_0x338 =
graph + (ziU32)entry[7] * 0x10000 + ((ziU16)entry[8] << 8) +
entry[9];
if (((zi8DawgCtx*)context)->unk_0x338 == graph) {
((zi8DawgCtx*)context)->unk_0x338 = 0;
}
if ((((ziU16)entry[0] << 8) + entry[1]) == 0) {
break;
}
if ((entry[1] + ((ziU16)entry[0] << 8)) == 0) {
break;
}
end = (((ziU16)entry[0] << 8) + entry[1]) * 10 + ((ziU32)entry + 10);
entry += 10;
depth++;
keys++;
end = (ziU32)(entry + (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10);
entry += 10;
depth++;
keys++;
}
}
return result;

View File

@@ -20,48 +20,54 @@ typedef struct ziChineseEntry {
ziU8 offsetLow[2];
} ziChineseEntry;
ziU32 Zi8GetCandidatesOrCount(ziGetParam*, ziSearchState* ZI_NEED_WORK);
ziU8 Zi8GetCandidatesOrCount(ziGetParam*, ziSearchState* ZI_NEED_WORK);
ziU8 Zi8GetFormatVersion(ziU8 ZI_NEED_WORK);
ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
ziU16 Zi8Uni2Ord(ziWChar ZI_NEED_WORK);
ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
ziChineseEntry* table = 0;
ziU8* baseData = 0;
ziU8 group = 0;
ziU8 remaining = 0;
ziU16 value = 0;
int count;
int offset;
ziU8 group;
ziU8 remaining;
ziU16 value;
ziWChar* cursor;
ziSearchState search;
ziGetParam request;
ziWChar ordinals[65];
int count;
int countLeft;
int length;
int unmatched;
ziChineseEntry* entry;
ziWChar* cursor;
ziU8* data;
ziU8 formats[8] = {1, 5, 0, 0, 0, 0, 0, 0};
ziU32 savedFormats = ZI_WORK->unk_0x1410;
ziU8 savedCount = ZI_WORK->unk_0x1418;
ziSearchState search = {0};
search.flags = 0;
search.word = 0;
search.length = 0;
search.position = 0;
search.capacity = 0;
search.options = 0;
Zi8LogError(100, __zi8_work_data);
if (word == 0 || *word == 0) {
Zi8ReplaceLastError(300, __zi8_work_data);
return 0;
}
if (language != 1) {
for (count = 0; word[count] != 0; count++) {
if (word[count] >= 0xEFF1 || count == 64) return 0;
for (length = 0; word[length] != 0; length++) {
if (word[length] >= 0xEFF1 || length == 64) return 0;
}
((ziU8*)&search.length)[0] = count;
((ziU8*)&search.length)[0] = length;
((ziU8*)&search.flags)[2] = 1;
search.word = word;
((ziU16*)&search.capacity)[0] = 64;
search.word = word;
request.language = language;
request.getMode = 0;
request.subLanguage = 7;
request.context = 1;
request.getOptions = 0x81;
request.elements = word;
request.elementCount = count;
request.elementCount = length;
request.currentWord = 0;
request.wordCharCount = 0;
request.candidates = ordinals;
@@ -78,70 +84,63 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
if (ZI_WORK->unk_0x09 & 4) formats[ZI_WORK->unk_0x1418++] = 6;
if (ZI_WORK->unk_0x09 & 2) formats[ZI_WORK->unk_0x1418++] = 7;
if (ZI_WORK->unk_0x09 & 8) formats[ZI_WORK->unk_0x1418++] = 8;
} else if (ZI_WORK->unk_0x1C[0] != 0) ZI_WORK->unk_0x1418 = 2;
else ZI_WORK->unk_0x1418 = 1;
} else if (ZI_WORK->unk_0x1C[0] == 0) ZI_WORK->unk_0x1418 = 1;
else ZI_WORK->unk_0x1418 = 2;
count = Zi8GetCandidatesOrCount(&request, &search, __zi8_work_data);
ZI_WORK->unk_0x1410 = savedFormats;
ZI_WORK->unk_0x1418 = savedCount;
if (count != 0) return 1;
}
if (language != 1) {
Zi8ReplaceLastError(0x26C, __zi8_work_data);
return 0;
}
{
count = 0;
while (word[count] != 0) {
ordinals[count] = Zi8Uni2Ord(word[count], __zi8_work_data);
if (ordinals[count] == 0xFFFF) return 0;
count++;
if (count == 64) return 0;
}
if (language == 1) {
length = 0;
do {
ordinals[length] = Zi8Uni2Ord(word[length], __zi8_work_data);
if (ordinals[length] == 0xFFFF) return 0;
length++;
if (length == 64) return 0;
} while (word[length] != 0);
{
if (count-- == 1) return 1;
if (length == 1) return 1;
count = --length;
ordinals[count] |= 0x8000;
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
table = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data);
entry = table + ordinals[0];
baseData = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data);
baseData += ((entry->offsetHigh & 15) << 16 | (entry->offsetLow[1] | (entry->offsetLow[0] << 8)));
data = baseData;
entry = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data) + ordinals[0];
data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data) + ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1]));
if (ZI_WORK->cangjieEnabled != 0) {
switch (*data & 7) {
case 2:
countLeft = 2;
offset = 2;
break;
case 3:
case 4:
countLeft = 3;
offset = 3;
break;
case 5:
countLeft = 4;
offset = 4;
break;
default:
countLeft = 1;
offset = 1;
break;
}
data += countLeft;
data += offset;
}
if ((*data & 0x80) != 0) {
group = 0;
data += ((*data & 0x7F) >> 4) + 1;
} else return 0;
if ((*data & 0x80) == 0) return 0;
group = 0;
data += ((*data & 0x7F) >> 4) + 1;
while ((group & 0x80) == 0) {
group = *data++;
for (remaining = group & 15; remaining != 0; remaining--) {
countLeft = count;
unmatched = count;
cursor = ordinals;
while (countLeft > 0) {
value = (data[1] << 8) | data[0];
while (unmatched > 0) {
value = data[0] | (data[1] << 8);
data += 2;
cursor++;
if (value != *cursor) break;
countLeft--;
unmatched--;
if (value & 0x8000) break;
}
if (countLeft == 0) return 1;
if (unmatched == 0) return 1;
if (!(value & 0x8000)) {
data++;
while (!(*data & 0x80)) data += 2;
@@ -152,7 +151,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
Zi8LogError(0x2BD, __zi8_work_data);
return 0;
}
}
} else Zi8ReplaceLastError(0x26C, __zi8_work_data);
return 0;
}
ziWChar Zi8ConvertUC2UserKey(ziChar character, ziU8 language ZI_NEED_WORK) {

View File

@@ -72,11 +72,7 @@ struct DVDCommandBlock {
DVDCommandBlock* prev; // 0x04
u32 command; // 0x08
#ifdef BS2_MACH_VOLATILE_DVD_STATE
volatile s32 state;
#else
s32 state; // 0x0C
#endif
u32 offset; // 0x10
u32 length; // 0x14

View File

@@ -86,15 +86,9 @@ s32 uhf_msc_blk_mount(FADisk* disk) {
return ((device->flags >> 2) & 1) - 1;
}
static inline u16 ReadTransferBlocks(u32 remaining, u32 limit) {
u16 count = limit;
if (remaining <= limit) { count = remaining; }
return count;
}
s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* completed) {
struct { UHF_MSC_DEVICE* device; u16 blocks; } transfer;
s32 error;
UHF_MSC_DEVICE* device;
u32 block_size;
u8* transfer_buffer;
u32 transfer_limit;
@@ -108,24 +102,14 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com
if (blocks == 0) {
return 0;
}
transfer.device = NULL;
{
u32 index;
UHF_MSC_DEVICE* candidate;
for (candidate = uhg_msc_blk_device_tbl, index = 0; index < 8; candidate++, index++) {
if (candidate->disk == disk) {
transfer.device = &uhg_msc_blk_device_tbl[index];
break;
}
}
}
if (transfer.device == NULL) {
device = uhf_msc_blk_find_device(disk);
if (device == NULL) {
return -1;
}
if (!(transfer.device->flags & 4)) {
if (!(device->flags & 4)) {
return -1;
}
block_size = transfer.device->block_size;
block_size = device->block_size;
if (block_size == 0) {
return -1;
}
@@ -143,18 +127,21 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com
transfer_buffer = buffer;
}
do {
transfer.blocks = ReadTransferBlocks(blocks, transfer_limit);
error = usbh_msc_read10(transfer.device, sector, transfer.blocks, transfer_buffer, sense);
u16 transfer_blocks = transfer_limit;
if (blocks <= transfer_limit) {
transfer_blocks = blocks;
}
error = usbh_msc_read10(device, sector, transfer_blocks, transfer_buffer, sense);
if (error == 0) {
if (!cacheable) {
memcpy(buffer, transfer_buffer, transfer.blocks * block_size);
buffer += transfer.blocks * block_size;
memcpy(buffer, transfer_buffer, transfer_blocks * block_size);
buffer += transfer_blocks * block_size;
} else {
transfer_buffer += transfer.blocks * block_size;
transfer_buffer += transfer_blocks * block_size;
}
blocks -= transfer.blocks;
sector += transfer.blocks;
*completed += transfer.blocks;
blocks -= transfer_blocks;
sector += transfer_blocks;
*completed += transfer_blocks;
if (blocks == 0) {
break;
}
@@ -164,8 +151,8 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com
case 11:
break;
case 34:
if (transfer.device->disk != NULL) {
pdm_disk_notify_media_insert(transfer.device->disk);
if (device->disk != NULL) {
pdm_disk_notify_media_insert(device->disk);
}
break;
default:
@@ -199,17 +186,7 @@ s32 uhf_msc_blk_pwrite(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* co
if (blocks == 0) {
return 0;
}
device = NULL;
{
u32 index;
UHF_MSC_DEVICE* candidate;
for (candidate = uhg_msc_blk_device_tbl, index = 0; index < 8; candidate++, index++) {
if (candidate->disk == disk) {
device = &uhg_msc_blk_device_tbl[index];
break;
}
}
}
device = uhf_msc_blk_find_device(disk);
if (device == NULL) {
return -1;
}

View File

@@ -603,35 +603,31 @@ pf_s32 PFCLUSTER_InsertCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
pf_s32 PFCLUSTER_DeleteCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
pf_u32 cluster_index, pf_u32 num_clusters, pf_u32* p_deleted_clusters) {
struct ClusterDeletion {
pf_u32 length;
pf_u32 cluster_size;
pf_u32 position;
};
struct ClusterDeletion deletion;
pf_s32 err;
pf_u32 previous_cluster;
pf_u32 next_cluster;
pf_u32 first_deleted_cluster;
pf_u32 last_deleted_cluster;
PF_VOLUME* p_vol;
pf_u32 cluster_size;
pf_u32 byte_position;
p_vol = p_ent->p_vol;
deletion.cluster_size = p_vol->bpb.bytes_per_sector << p_vol->bpb.log2_sectors_per_cluster;
deletion.position = cluster_index * deletion.cluster_size;
cluster_size = p_vol->bpb.bytes_per_sector << p_vol->bpb.log2_sectors_per_cluster;
byte_position = cluster_index * cluster_size;
err = PFFAT_TraceClustersChain(&p_iter->ffd, *p_iter->ffd.p_start_cluster,
deletion.position, &previous_cluster, &first_deleted_cluster);
byte_position, &previous_cluster, &first_deleted_cluster);
if (err != 0) return err;
if (cluster_index == 0) first_deleted_cluster = p_ent->start_cluster;
deletion.length = num_clusters * deletion.cluster_size;
if (deletion.length > p_ent->file_size - deletion.position) deletion.length = p_ent->file_size - deletion.position;
err = PFFAT_TraceClustersChain(&p_iter->ffd, first_deleted_cluster, deletion.length, &last_deleted_cluster, &next_cluster);
num_clusters = num_clusters * cluster_size;
if (num_clusters > p_ent->file_size - byte_position) num_clusters = p_ent->file_size - byte_position;
err = PFFAT_TraceClustersChain(&p_iter->ffd, first_deleted_cluster, num_clusters, &last_deleted_cluster, &next_cluster);
if (err != 0) return err;
if (cluster_index == 0) {
if (next_cluster == PFFAT_GetValueOfEOC2(p_vol)) next_cluster = 0;
p_ent->start_cluster = next_cluster;
}
p_ent->file_size -= deletion.length;
p_ent->file_size -= num_clusters;
PFENT_getcurrentDateTimeForEnt(&p_ent->modify_date, &p_ent->modify_time);
p_ent->access_date = p_ent->modify_date;
err = PFENT_updateEntry(p_ent, 1);
@@ -640,13 +636,13 @@ pf_s32 PFCLUSTER_DeleteCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
err = PFCACHE_FlushDataCacheSpecific(p_vol, PF_NULL);
if (err != 0) return err;
}
err = PFFAT_FreeChain(&p_iter->ffd, first_deleted_cluster, -1U, deletion.length);
err = PFFAT_FreeChain(&p_iter->ffd, first_deleted_cluster, -1U, num_clusters);
if (err != 0) return err;
if (cluster_index != 0) {
err = PFFAT_WriteValueToSpecifiedCluster(p_vol, previous_cluster, next_cluster);
if (err != 0) return err;
}
*p_deleted_clusters = deletion.length / deletion.cluster_size;
if (deletion.length % deletion.cluster_size != 0) ++*p_deleted_clusters;
*p_deleted_clusters = num_clusters / cluster_size;
if (num_clusters % cluster_size != 0) ++*p_deleted_clusters;
return 0;
}

View File

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

View File

@@ -726,29 +726,25 @@ pf_s32 PFENT_ITER_GetEntryOfIter(PFITER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent) {
return 0;
}
static inline pf_u32 CopyLongNameFragment(PFITER_ENT_ITER* iter, pf_u8* destination, pf_u32 offset) {
pf_memcpy(destination, &iter->buf[1], 10);
pf_memcpy(destination + 10, &iter->buf[14], 12);
pf_memcpy(destination + 22, &iter->buf[28], 4);
return offset + 26;
}
pf_s32 PFENT_ITER_GetLFNEntryName(PFITER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent) {
pf_u32 index;
pf_u8* destination;
pf_u32 i;
pf_u32 index;
pf_s32 err;
if (p_ent->num_entry_LFNs != 0 && !(p_ent->small_letter_flag & 0x18)) {
i = 0;
for (index = 0; i < p_ent->num_entry_LFNs; ++i) {
index = 0;
for (i = 0; i < p_ent->num_entry_LFNs; ++i) {
pf_u16* destination;
err = PFENT_ITER_Retreat(p_iter, 0);
if (err != 0) return err;
err = PFENT_ITER_LoadEntry(p_iter);
if (err != 0) return err;
destination = (pf_u8*)p_ent->long_name + index;
index = CopyLongNameFragment(p_iter, destination, index);
destination = &p_ent->long_name[index];
pf_memcpy(destination, &p_iter->buf[1], 10);
pf_memcpy(destination + 5, &p_iter->buf[14], 12);
pf_memcpy(destination + 11, &p_iter->buf[28], 4);
index += 13;
}
p_ent->long_name[(p_ent->num_entry_LFNs * 26U) >> 1] = 0;
p_ent->long_name[index] = 0;
}
return 0;
}

View File

@@ -175,70 +175,68 @@ pf_s32 PFFAT12_WriteFATEntryWithBuf(PF_VOLUME* p_vol, pf_s16 cluster, pf_u16 val
pf_s32 PFFAT12_ReadFATEntryWithBuf(PF_VOLUME* p_vol , pf_u16 cluster , pf_u32* p_value ,
PF_CACHE_PAGE* p_page ) {
struct {
pf_u32 sector;
pf_u32 current_fat;
pf_s32 err;
pf_u32 offset;
} state;
pf_s32 err;
pf_u32 current_fat;
pf_u32 sector;
pf_u32 offset;
pf_s32 result;
#define LOAD_FAT_SECTOR(next_sector) \
if (p_page->sector != state.sector + (next_sector)) { \
if (p_page->sector != sector + (next_sector)) { \
if (p_page->option == 1) { \
for (state.err = 0; (pf_u16)state.err < p_vol->bpb.num_active_FATs; state.err++) { \
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)state.err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); \
for (err = 0; (pf_u16)err < p_vol->bpb.num_active_FATs; err++) { \
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector); \
} \
} \
state.err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, state.sector + (next_sector), 0, p_vol->bpb.bytes_per_sector); \
if (state.err != 0) { continue; } \
p_page->sector = state.sector + (next_sector); \
err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, sector + (next_sector), 0, p_vol->bpb.bytes_per_sector); \
if (err != 0) { continue; } \
p_page->sector = sector + (next_sector); \
}
state.offset = (pf_u16)(cluster + (cluster >> 1));
state.sector = p_vol->bpb.active_FAT_sector + (state.offset >> p_vol->bpb.log2_bytes_per_sector) & 0xFFFF;
offset = (pf_u16)(cluster + (cluster >> 1));
sector = p_vol->bpb.active_FAT_sector + (offset >> p_vol->bpb.log2_bytes_per_sector) & 0xFFFF;
if ((p_vol->bpb.ext_flags & 0x80) != 0) {
state.current_fat = p_vol->bpb.ext_flags & (0x01 | 0x02 | 0x04);
current_fat = p_vol->bpb.ext_flags & (0x01 | 0x02 | 0x04);
} else {
state.current_fat = 1;
current_fat = 1;
}
state.err = 0;
err = 0;
while (PF_TRUE) {
if (state.err == 0x1000 && p_vol->p_callback != PF_NULL) {
if (err == 0x1000 && p_vol->p_callback != PF_NULL) {
result = ((PF_VOLUME_CB)p_vol->p_callback)(p_vol->last_driver_error);
if (result == 0) {
state.err = 0;
err = 0;
continue;
}
if (result == 1 && p_vol->bpb.num_active_FATs >= 2 && state.current_fat < p_vol->bpb.num_active_FATs) {
state.current_fat++;
state.sector += p_vol->bpb.sectors_per_FAT;
state.err = 0;
if (result == 1 && p_vol->bpb.num_active_FATs >= 2 && current_fat < p_vol->bpb.num_active_FATs) {
current_fat++;
sector += p_vol->bpb.sectors_per_FAT;
err = 0;
continue;
}
} else {
LOAD_FAT_SECTOR(0);
state.offset &= p_vol->bpb.bytes_per_sector - 1;
if (state.offset == (p_vol->bpb.bytes_per_sector - 1)) {
*p_value = *(p_page->p_buf + state.offset);
offset &= p_vol->bpb.bytes_per_sector - 1;
if (offset == (p_vol->bpb.bytes_per_sector - 1)) {
*p_value = *(p_page->p_buf + offset);
if (p_page->option == 1) {
for (state.err = 0; (pf_u16)state.err < p_vol->bpb.num_active_FATs; state.err++) {
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)state.err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector);
for (err = 0; (pf_u16)err < p_vol->bpb.num_active_FATs; err++) {
VFiPFSEC_WriteFAT(p_vol, p_page->p_buf, p_page->sector + (pf_u16)err * p_vol->bpb.sectors_per_FAT, 0, p_vol->bpb.bytes_per_sector);
}
}
state.err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, state.sector + 1, 0, p_vol->bpb.bytes_per_sector);
if (state.err != 0) { continue; }
p_page->sector = state.sector + 1;
err = VFiPFSEC_ReadFAT(p_vol, p_page->p_buf, sector + 1, 0, p_vol->bpb.bytes_per_sector);
if (err != 0) { continue; }
p_page->sector = sector + 1;
*p_value += (pf_u16)(*p_page->p_buf) << 8;
} else {
*p_value = ((pf_u16)p_page->p_buf[state.offset + 1] << 8) + *(p_page->p_buf + state.offset);
*p_value = ((pf_u16)p_page->p_buf[offset + 1] << 8) + *(p_page->p_buf + offset);
}
}
break;
}
if (state.err != 0) {
if (err != 0) {
*p_value = -1;
return state.err;
return err;
}
if ((cluster & 0x01) != 0) {
*p_value = *p_value >> 4;

View File

@@ -647,16 +647,18 @@ void PFFILE_Cursor_MoveToClusterEnd(PFFILE_FILE* file, pf_u32 size) {
}
}
PFFILE_SFD* PFFILE_GetSFD(PFFILE_VOLUME_DIRS* volume_dirs, PF_DIR_ENT* entry) {
pf_u32 first_free_index = 0;
PFFILE_SFD* PFFILE_GetSFD(PF_VOLUME* volume, PF_DIR_ENT* entry) {
PFFILE_VOLUME_DIRS* volume_dirs = (PFFILE_VOLUME_DIRS*)volume;
PFFILE_SFD* first_free_sfd = PF_NULL;
pf_u32 index;
PFFILE_SFD* sfd = volume_dirs->sfds;
pf_u32 first_free_index = 0;
pf_u32 index = 0;
for (index = 0; index < 5; index++) {
for (; index < 5; index++, sfd++) {
if ((volume_dirs->sfds[index].stat & 1) == 0 ||
((volume_dirs->sfds[index].stat & 1) != 0 && (!volume_dirs->sfds[index].stat & 2) != 0)) {
if (first_free_sfd == PF_NULL) {
first_free_sfd = &volume_dirs->sfds[index];
first_free_sfd = sfd;
first_free_index = index;
}
} else if (entry->p_vol == volume_dirs->sfds[index].dir_entry.p_vol &&
@@ -920,7 +922,7 @@ pf_s32 PFFILE_p_fopen(PF_VOLUME* volume, PF_STR* path, pf_u32 open_mode,
}
}
volume = entry.p_vol;
sfd = PFFILE_GetSFD((PFFILE_VOLUME_DIRS*)volume, &entry);
sfd = PFFILE_GetSFD(volume, &entry);
if (sfd == PF_NULL) {
return 0x15;
}
@@ -1407,7 +1409,7 @@ pf_s32 PFFILE_FsexecOpenFile(PF_DIR_ENT* entry, PFFILE_ENT_ITER* iter,
} else {
PFENT_getcurrentDateTimeForEnt(&entry->access_date, &access_time);
}
sfd = PFFILE_GetSFD((PFFILE_VOLUME_DIRS*)volume, entry);
sfd = PFFILE_GetSFD(volume, entry);
if (sfd == PF_NULL) {
return 0x15;
}

View File

@@ -321,7 +321,41 @@ pf_u32 PFPATH_DoMatchFileNameWithPattern(pf_u16 c_name, PF_FILE_NAME_ITER* p_nam
return 1;
}
pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name);
pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name) {
pf_u16 c_name;
pf_u16 c_pat;
PF_FILE_NAME_ITER name;
PF_STR pattern;
pf_bool result;
result = PF_TRUE;
name.buf = file_name;
name.current = 0;
name.kind = is_long_name;
name.index = 0;
pattern = *p_pattern;
if (PFSTR_GetCodeMode(p_pattern) == 1) {
if (is_long_name == PF_FALSE && (pf_vol_set.setting & 0x02) == 0x02 && PFPATH_CheckExtShortNameSignature(&pattern) == 1) {
result = PFPATH_CheckExtShortNameSignature(&pattern);
if (result == 1) {
name.index += 2;
pattern.p_head += 2;
}
}
} else if ((pf_vol_set.setting & 0x02) == 0x02 && is_long_name == PF_FALSE &&
PFSTR_StrNCmp(p_pattern, (pf_s8*)".", 1, 0, 1) != 0 && PFSTR_StrNCmp(p_pattern, (pf_s8*)"..", 1, 0, 2) != 0 &&
PFPATH_CheckExtShortName(p_pattern, 1, PF_FALSE) == 0) {
result = PF_FALSE;
}
if (result == PF_TRUE) {
c_name = PFPATH_GetNextCharOfFileName(&name);
c_pat = PFPATH_GetNextCharOfPattern(&pattern, is_long_name);
result = PFPATH_DoMatchFileNameWithPattern(c_name, &name, c_pat, &pattern, is_long_name);
}
return result;
}
pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* matched_end) {
pf_u32 read_char;
@@ -543,42 +577,6 @@ PF_VOLUME* PFPATH_GetVolumeFromPath(PF_STR* p_path) {
return p_vol;
}
pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_pattern, pf_bool is_long_name) {
pf_u16 c_name;
pf_u16 c_pat;
PF_FILE_NAME_ITER name;
PF_STR pattern;
pf_bool result;
result = PF_TRUE;
name.buf = file_name;
name.current = 0;
name.kind = is_long_name;
name.index = 0;
pattern = *p_pattern;
if (PFSTR_GetCodeMode(p_pattern) == 1) {
if (is_long_name == PF_FALSE && (pf_vol_set.setting & 0x02) == 0x02 && PFPATH_CheckExtShortNameSignature(&pattern) == 1) {
result = PFPATH_CheckExtShortNameSignature(&pattern);
if (result == 1) {
name.index += 2;
pattern.p_head += 2;
}
}
} else if ((pf_vol_set.setting & 0x02) == 0x02 && is_long_name == PF_FALSE &&
PFSTR_StrNCmp(p_pattern, (pf_s8*)".", 1, 0, 1) != 0 && PFSTR_StrNCmp(p_pattern, (pf_s8*)"..", 1, 0, 2) != 0 &&
PFPATH_CheckExtShortName(p_pattern, 1, PF_FALSE) == 0) {
result = PF_FALSE;
}
if (result == PF_TRUE) {
c_name = PFPATH_GetNextCharOfFileName(&name);
c_pat = PFPATH_GetNextCharOfPattern(&pattern, is_long_name);
result = PFPATH_DoMatchFileNameWithPattern(c_name, &name, c_pat, &pattern, is_long_name);
}
return result;
}
pf_s32 PFPATH_putShortName(pf_u8* pDirEntry, const pf_s8* short_name, pf_u8 attr) {
pf_s32 i = 0;

View File

@@ -225,6 +225,8 @@ typedef struct PFVOL_SET {
PFVOL_SET pf_vol_set;
static s8 default_volume_label[12] = "NO NAME ";
static const u8 deleted_entry_mark[8] = {0xE5};
extern s32 PFDRV_mount(PFVOL_VOLUME* volume);
extern s32 PFDRV_unmount(PFVOL_VOLUME* volume, u32 mode);
extern s32 PFDRV_format(PFVOL_VOLUME* volume, const u8* format_options);
@@ -370,13 +372,8 @@ static inline s32 finalize_volume(PFVOL_VOLUME* volume) {
if (error != 0) { return error; }
return 0;
}
static inline s32 copy_codeset(PFVOL_CHARCODE* code_set) {
pf_vol_set.codeset.oem2unicode = code_set->oem2unicode;
pf_vol_set.codeset.unicode2oem = code_set->unicode2oem;
pf_vol_set.codeset.oem_char_width = code_set->oem_char_width;
pf_vol_set.codeset.is_oem_mb_char = code_set->is_oem_mb_char;
pf_vol_set.codeset.unicode_char_width = code_set->unicode_char_width;
pf_vol_set.codeset.is_unicode_mb_char = code_set->is_unicode_mb_char;
static inline s32 copy_codeset(const PFVOL_CHARCODE* code_set) {
pf_vol_set.codeset = *code_set;
return 0;
}
s32 PFVOL_DoMountVolume(PFVOL_VOLUME* volume) {
@@ -587,7 +584,7 @@ s32 PFVOL_p_rmvvol(PFVOL_VOLUME* volume) {
u32 logical_position;
u32 entry_position;
u32 processed;
u8 deleted[1] = {0xE5};
u8 deleted = deleted_entry_mark[0];
s32 error;
error = PFENT_GetRootDir(volume, &root_entry);
@@ -602,7 +599,7 @@ s32 PFVOL_p_rmvvol(PFVOL_VOLUME* volume) {
return error;
}
if (entry_position != 999999) {
error = PFSEC_WriteData(volume, deleted, entry.entry_sector, entry.entry_offset, 1, &processed, 0);
error = PFSEC_WriteData(volume, &deleted, entry.entry_sector, entry.entry_offset, 1, &processed, 0);
if (error != 0) {
return error;
}
@@ -1105,13 +1102,7 @@ s32 PFVOL_attach(PFVOL_DRIVER* driver, s32 notify_command, void* callback_data)
pf_vol_set.num_attached_drives++;
if (PFDRV_IsInserted(volume) != 0) {
driver->stat |= 0x10;
error = clear_mount(volume);
if (error != 0) {
pf_vol_set.last_error = error;
volume->last_error = error;
return 0;
}
driver->stat |= 2;
attach_mount(volume, driver);
}
return 0;
}
@@ -1467,7 +1458,7 @@ s32 PFVOL_getvolcfg(s8 drive, u32* config) {
return 0;
}
s32 PFVOL_setcode(PFVOL_CHARCODE* code_set) {
s32 PFVOL_setcode(const PFVOL_CHARCODE* code_set) {
if (pf_vol_set.num_mounted_volumes > 0) {
pf_vol_set.last_error = 36;
return 36;
@@ -1475,21 +1466,17 @@ s32 PFVOL_setcode(PFVOL_CHARCODE* code_set) {
return copy_codeset(code_set);
}
static inline u32 ContextStatus(const PFVOL_CONTEXT* context) {
return context->stat & 1;
}
s32 PFVOL_regctx(void) {
u32 context_index;
s32 free_context_index;
s32 context_id;
s32 free_context_index;
u32 context_index;
s32 error;
error = PFSYS_GetCurrentContextID(&context_id);
if (error != 0) { pf_vol_set.last_error = 26; return 26; }
free_context_index = 0;
for (context_index = 1; context_index < 4; context_index++) {
u32 stat;
stat = ContextStatus(&pf_vol_set.context[context_index - 1]);
stat = pf_vol_set.context[context_index - 1].stat & 1;
if (stat != 0 && pf_vol_set.context[context_index - 1].context_id == context_id) { break; }
if (stat == 0 && free_context_index == 0) { free_context_index = context_index; }
}

View File

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

View File

@@ -276,15 +276,14 @@ static inline f32 object_interval_distance(f32 interval) {
const f32 sensorIntervalConversion = 0.383864f;
static void reset_kpad(KPADInside* kpad) {
f32 sensorDistance;
f32 upperY;
f32 distanceValue;
f32 zero;
f32 upperY;
f32 sensorDistance;
f32 lowerY;
f32 one;
f32 negativeOne;
KPADDPDObject* object;
f32 calibratedDistance;
negativeOne = -1.0f;
one = 1.0f;
zero = 0.0f;
@@ -300,9 +299,8 @@ static void reset_kpad(KPADInside* kpad) {
kpad->value508 = negativeOne / kp_err_dist_speed;
kpad->value50C = kp_ah_circle_radius * kp_ah_circle_radius;
kpad->value514 = kp_err_dist_min;
calibratedDistance = kp_dist_vv1;
distanceValue = calibratedDistance / sensorDistance;
kpad->value510 = calibratedDistance;
distanceValue = kp_dist_vv1 / sensorDistance;
kpad->value510 = kp_dist_vv1;
kpad->status.release = 0;
kpad->status.trig = 0;
kpad->status.hold = 0;
@@ -856,33 +854,26 @@ static s8 select_1obj_continue(KPADInside* kpad) {
}
*matchedCandidate = *source;
{
f32 distance;
f32 normY;
f32 vertical;
f32 directionY;
f32 axisX = kpad->horizonTangent.x;
f32 normX = kpad->horizonAxis.x;
f32 axisY = kpad->horizonTangent.y;
f32 normY = kpad->horizonAxis.y;
f32 distance = kpad->dpdObjectDistance;
f32 horizontal = axisX * normX;
f32 vertical = axisY * normX;
f32 offsetX;
f32 axisY;
f32 horizontal;
f32 axisX;
f32 directionX;
f32 normX;
f32 directionY;
f32 offsetY;
f32 tangentY;
f32 tangentX;
axisX = kpad->horizonTangent.x;
normX = kpad->horizonAxis.x;
axisY = kpad->horizonTangent.y;
normY = kpad->horizonAxis.y;
distance = kpad->dpdObjectDistance;
horizontal = axisX * normX;
vertical = axisY * normX;
tangentY = axisY * normY;
tangentX = axisX * normY;
directionX = horizontal + tangentY;
directionY = vertical - tangentX;
offsetX = distance * directionX;
offsetX = directionX * distance;
kpad->dpdObjectDirection.x = directionX;
offsetY = distance * directionY;
offsetY = directionY * distance;
kpad->dpdObjectDirection.y = directionY;
if (matchedCandidate == kpad->dpdState.candidates) {
kpad->dpdState.candidates[1].x = matchedCandidate->x + offsetX;

View File

@@ -144,8 +144,8 @@ const u16 kprLookupTable437[] = {
0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0,
};
static void (*kprProcDeadKeysFP)(KPRQueue* queue) = NULL;
static void (*kprProcRomajiFP)(KPRQueue* queue) = NULL;
static void (*kprProcDeadKeysFP)(KPRQueue* queue);
static void (*kprProcRomajiFP)(KPRQueue* queue);
const char* __KPRVersion = "<< RVL_SDK - KPR \trelease build: Apr 20 2010 11:21:44 (0x4199_60831) >>";
void KPRProcessDeadKeys(KPRQueue* queue);
@@ -242,25 +242,6 @@ u8 KPRLookAhead(KPRQueue* queue, u16* destination, u32 capacity) {
return queue->iCount + queue->oCount;
}
static inline u32 KPRConvertAltValue(u32 value, u32 leadingZero) {
if (value >= 128 && value <= 255) {
if (leadingZero) {
if (value < 160) {
value = kprLookupTable1252[value - 128];
}
} else {
value = kprLookupTable437[value - 128];
}
} else if (value > 255) {
u32 converted = 32;
if (value <= 0x6666666) {
converted = (u8)value;
}
value = converted;
}
return value;
}
BOOL KPRProcessAltKeypad(KPRQueue* queue, u16 character) {
if (queue->altVal != 0) {
u32 accumulator = queue->altVal & 0x7FFFFFFF;
@@ -275,7 +256,21 @@ BOOL KPRProcessAltKeypad(KPRQueue* queue, u16 character) {
return TRUE;
}
value = queue->altVal;
value = KPRConvertAltValue(value, leadingZero);
if (value >= 128 && value <= 255) {
if (leadingZero) {
if (value < 160) {
value = kprLookupTable1252[value - 128];
}
} else {
value = kprLookupTable437[value - 128];
}
} else if (value > 255) {
u32 converted = 32;
if (value <= 0x6666666) {
converted = (u8)value;
}
value = converted;
}
{
u16* destination;
int index = queue->oCount + queue->iCount;

View File

@@ -1167,9 +1167,9 @@ u32 VIGetRetraceCount(void)
static u32 getCurrentHalfLine(void)
{
u32 verticalCount;
u32 previousVerticalCount;
u32 horizontalCount;
u32 previousVerticalCount;
u32 verticalCount;
verticalCount = __VIRegs[22] & 0x7FF;
for (;;) {
@@ -1180,7 +1180,7 @@ static u32 getCurrentHalfLine(void)
break;
}
}
return ((verticalCount - 1) * 2) + ((horizontalCount - 1) / CurrTiming->hlw);
return ((horizontalCount - 1) / CurrTiming->hlw) + ((verticalCount - 1) * 2);
}
static u32 getCurrentFieldEvenOdd(void)

View File

@@ -367,19 +367,6 @@ CDBErr CDBRecordSeek(CDBRecord* record, s32 offset, CDBSeek seek) {
return err;
}
CDBErr CDBRecordGetFileSize(CDBRecord* record, u32* size) {
CDBErr err;
CDBLock();
if ((s32)record->file == 0) {
CDBReportError("can't get file size of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
err = CDBRecordFileGetFileSize(record, size);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetDataSize(CDBRecord* record, u32* size) {
CDBErr err;
CDBLock();
@@ -669,10 +656,9 @@ CDBErr CDBCryptBuffer(void* buffer, u32 size, void* iv, u32* processedSize, BOOL
CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32 size, u32* encryptedSize) {
CDBRecordFile* recordFile;
CDBErr err;
u32 dataSize;
u32 fileSize;
u32 dataSize;
u32 cryptSize;
u32 authenticatedSize;
int fileOffset;
u8 iv[0x10];
u8 wiiIdKey[0x40] ATTRIBUTE_ALIGN(64);
@@ -737,7 +723,14 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32
return CDB_ERROR_OK;
}
}
err = CDBRecordGetFileSize(record, &fileSize);
CDBLock();
if ((s32)record->file == 0) {
CDBReportError("can't get file size of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
err = CDBRecordFileGetFileSize(record, &fileSize);
}
CDBUnlock();
CDBAttrSetFileSize(&recordFile->attr, fileSize);
if (err != CDB_ERROR_OK) {
return CDB_ERROR_OK;
@@ -761,11 +754,10 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32
if ((s32)record->file == 0) {
err = CDB_ERROR_27;
} else {
int position = CDBRecordFileTellData(record);
if (position < 0) {
fileOffset = CDBRecordFileTellData(record);
if (fileOffset < 0) {
err = CDB_ERROR_CANNOT_OPEN_FILE;
} else {
fileOffset = position;
err = CDB_ERROR_OK;
}
}
@@ -812,9 +804,8 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32
CDBGetWiiIdKey((char*)wiiIdKey);
CDBGetDeviceKey((char*)&wiiIdKey[12]);
CDBAttrClearSignature((CDBAttr*)buffer);
authenticatedSize = cryptSize + CDB_RECORD_BUFFER_SIZE;
NETHMACInit(&hmac, NETGetSHA1Interface(), wiiIdKey, 0x40);
NETHMACUpdate(&hmac, buffer, authenticatedSize);
NETHMACUpdate(&hmac, buffer, cryptSize + CDB_RECORD_BUFFER_SIZE);
NETHMACGetDigest(&hmac, digest);
memcpy(((CDBAttrBuf*)buffer)->signature.sha1Hmac, digest, sizeof(digest));
if (encryptedSize != 0) {

View File

@@ -19,23 +19,15 @@ typedef struct HMACContext {
u8 key[64];
} HMACContext;
static inline void BeginDigest(HMACContext* context, u8 mask) {
u8 blockKey[64];
void NETHMACInit(HMACContext* context, const DigestInterface* interface, const void* key, u32 length) {
u8 innerKey[64];
u32 i;
u32 keyLength;
void* work = context->digestContext;
keyLength = context->keyLength;
for (i = 0; i < keyLength; ++i) blockKey[i] = context->key[i] ^ mask;
memset(blockKey + keyLength, mask, context->interface.blockSize - keyLength);
context->interface.init(work);
context->interface.update(work, blockKey, context->interface.blockSize);
}
void NETHMACInit(HMACContext* context, const DigestInterface* interface, const void* key, u32 length) {
void* work = context->digestContext;
const char* function = "NETHMACInit";
context->interface = *interface;
if (context->interface.contextSize > 96 || context->interface.blockSize > 64) {
OSReport("%s(%d):[warning in %s]", "hmac.c", 100, __FUNCTION__);
OSReport("%s(%d):[warning in %s]", "hmac.c", 100, function);
OSReport("specified interface needs too large workmemory.");
OSReport("\n");
return;
@@ -49,7 +41,11 @@ void NETHMACInit(HMACContext* context, const DigestInterface* interface, const v
context->interface.getDigest(work, context->key);
context->keyLength = context->interface.digestSize;
}
BeginDigest(context, 0x36);
keyLength = context->keyLength;
for (i=0; i<keyLength; ++i) innerKey[i] = context->key[i] ^ 0x36;
memset(innerKey + keyLength, 0x36, context->interface.blockSize - keyLength);
context->interface.init(context->digestContext);
context->interface.update(context->digestContext, innerKey, context->interface.blockSize);
}
void NETHMACUpdate(HMACContext* context, const void* data, u32 length) {
@@ -58,9 +54,16 @@ void NETHMACUpdate(HMACContext* context, const void* data, u32 length) {
void NETHMACGetDigest(HMACContext* context, void* digest) {
u8 innerDigest[64];
u8 outerKey[64];
u32 i;
u32 keyLength;
void* work = context->digestContext;
context->interface.getDigest(work, innerDigest);
BeginDigest(context, 0x5c);
keyLength = context->keyLength;
for (i=0; i<keyLength; ++i) outerKey[i] = context->key[i] ^ 0x5c;
memset(outerKey + keyLength, 0x5c, context->interface.blockSize - keyLength);
context->interface.init(context->digestContext);
context->interface.update(context->digestContext, outerKey, context->interface.blockSize);
context->interface.update(work, innerDigest, context->interface.digestSize);
context->interface.getDigest(work, digest);
}

View File

@@ -95,7 +95,7 @@ s32 NHTTPi_SocRecv_sub(NHTTPConnectionInfo* connection, s32 socket, void* data,
} else return result;
}
if(connection->recvBufDataLen!=0) {
length = (u32)length > connection->recvBufDataLen ? connection->recvBufDataLen : length;
if((u32)length>connection->recvBufDataLen) length=connection->recvBufDataLen;
NHTTPi_memcpy(data,buffer+connection->recvBufOffset,length);
connection->recvBufDataLen-=length;
if(connection->recvBufDataLen==0) {
@@ -135,14 +135,10 @@ s32 NHTTPi_SocSend_sub(s32 socket, const char* data, u32 length, s32 flags) {
if(head>length) head=length;
NHTTPi_memcpy(buffer,data,head);
result=SOSend(socket,buffer,head,flags);
if (result > 0) {
sent = result;
if ((u32)result < head) return result;
data += result;
length -= result;
} else {
return result;
}
if(result<=0) return result;
sent=result;
if((u32)result<head) return result;
data+=result; length-=result;
}
if((s32)length>0) {
head=length&~31;
@@ -168,7 +164,7 @@ s32 NHTTPi_SocSend_sub(s32 socket, const char* data, u32 length, s32 flags) {
return sent;
}
s32 NHTTPi_SocSend(const NHTTPRequestInfo* request, s32 socket, const void* data, s32 length, s32 flags) {
s32 NHTTPi_SocSend(NHTTPRequestInfo* request, s32 socket, const char* data, s32 length, s32 flags) {
s32 result;
SSLId ssl=request->sslId;
if(ssl>0) result=SSLWrite(ssl,data,length);

View File

@@ -102,25 +102,23 @@ s32 NHTTPi_strToInt(const char* string, s32 length) {
return value;
}
static inline u32 TakeDecimalDigit(u32* remaining, u32 scale) {
u32 digit = *remaining / scale;
*remaining -= digit * scale;
return digit;
}
s32 NHTTPi_intToStr(char* destination, u32 value) {
u32 scales[9]={1000000000,100000000,10000000,1000000,100000,10000,1000,100,10};
char* output;
int digit;
BOOL started;
s32 length;
output = destination;
length = 0;
started = FALSE;
for(digit=0; digit<9; ++digit) {
if(value>=scales[digit]) {
u32 quotient=TakeDecimalDigit(&value, scales[digit]);
u32 quotient=value/scales[digit];
started=TRUE;
destination[length++]=quotient+'0';
} else if(started) { destination[length++]='0'; }
++length;
*output++=quotient+'0';
value-=quotient*scales[digit];
} else if(started) { *output++='0'; ++length; }
}
destination[length]=value+'0';
return length+1;

View File

@@ -82,7 +82,7 @@ s32 NHTTPi_ReceivedCallback(void* mutex, NHTTPConnectionInfo* connection);
void NHTTPi_NotifyCompletion(NHTTPConnectionInfo* connection);
void NHTTPi_SetVirtualContentLength(NHTTPConnectionInfo* connection, u32 length);
BOOL NHTTPi_isRecvBufFull(NHTTPResponseInfo* response, s32 offset);
s32 NHTTPi_SocSend(const NHTTPRequestInfo* request, s32 socket, const void* buffer, s32 length, s32 flags);
s32 NHTTPi_SocSend(NHTTPRequestInfo* request, s32 socket, const void* buffer, s32 length, s32 flags);
s32 NHTTPi_SocRecv(void* mutex, NHTTPRequestInfo* request, s32 socket, void* buffer, s32 length, s32 flags);
s32 NHTTPi_SocClose(void* mutex, NHTTPRequestInfo* request, s32 socket);
s32 NHTTPi_SocOpen(NHTTPRequestInfo* request);
@@ -986,16 +986,9 @@ static BOOL NHTTPi_ThreadParseHeaderProc(NHTTPThreadContext* context)
if (length > 0x100) context->keepAlive = FALSE;
else if (length > 0)
{
struct TokenMatch {
BOOL matched;
};
struct TokenMatch match = {FALSE};
if (NHTTPi_compareTokenN_HdrRecvBuf(response, offset, offset + length, "Keep-Alive", 0) == 0)
{
match.matched = TRUE;
context->keepAlive = match.matched;
}
else context->keepAlive = match.matched;
context->keepAlive = TRUE;
else context->keepAlive = FALSE;
}
else context->keepAlive = FALSE;
}

View File

@@ -176,8 +176,7 @@ s32 ConvertDateToDays(u16 year, u8 month, u8 day) {
}
validDate:
daysOfYear = day - 1;
daysOfYear += DAYS_OF_YEAR[month - 1];
daysOfYear = day - 1 + DAYS_OF_YEAR[month - 1];
if (month >= 3) {
isLeapYear = 0;
if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {
@@ -207,40 +206,31 @@ void ConvertDaysToDate(u16* year, u8* month, u8* day, s32 days) {
for (;;) {
u16 currentYear = *year;
s32 previousDays = days;
BOOL leapYear = TRUE;
BOOL commonLeapYear = FALSE;
if (currentYear % 4 == 0 && currentYear % 100 != 0) {
commonLeapYear = TRUE;
}
if (!commonLeapYear && currentYear % 400 != 0) {
leapYear = FALSE;
}
BOOL leapYear = (currentYear % 4 == 0 && currentYear % 100 != 0) || currentYear % 400 == 0;
days -= 365 + (leapYear != FALSE);
if (days < 0) {
days = previousDays;
break;
}
*year += 1;
continue;
*year = *year + 1;
}
for (;;) {
s32 previousDays;
u8 currentMonth;
previousDays = days;
currentMonth = *month;
if (currentMonth == 2 && IsLeapYear(*year)) {
days -= 29;
s32 previousDays = days;
if (*month == 2) {
BOOL leapYear = IsLeapYear(*year);
if (leapYear) {
days -= 29;
} else {
days -= DAYS_OF_MONTH[*month - 1];
}
} else {
days -= DAYS_OF_MONTH[currentMonth - 1];
days -= DAYS_OF_MONTH[*month - 1];
}
if (days >= 0) {
*month += 1;
} else {
days = previousDays;
break;
if (days < 0) {
*day += previousDays;
return;
}
*month = *month + 1;
}
*day += days;
}

View File

@@ -555,14 +555,14 @@ NWC24Err NWC24iMBoxFlushHeader(NWC24MBoxType type) {
return result != NWC24_OK ? result : closeResult;
}
static inline void GetOldestMsgId(const MBCHeader* header, volatile u32* id) {
static inline void GetOldestMsgId(const MBCHeader* header, u32* id) {
*id = header->oldestId;
}
NWC24Err NWC24iMBoxCheck(NWC24MBoxType type, u32 size) {
u32 required;
struct {
volatile u32 oldestId;
u32 oldestId;
MBCHeader* header;
} mailbox;
NWC24Err err;

View File

@@ -231,11 +231,11 @@ static NWC24Err QEncode(char* encoded, u32 encodedCapacity, u32* encodedSize, u8
}
static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, char* encoded, u32 encodedSize, u32* encodedSizeOut, int flags) {
u32 encodedOffset;
u32 decodedOffset = 0;
u8 value = 0;
u32 encodedOffset;
char* input;
char* output;
u8 value = 0;
NWC24Err result = NWC24_OK;
if (decoded == NULL)
@@ -255,7 +255,7 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
input = encoded;
output = decoded;
for (encodedOffset = 0; encodedOffset < encodedSize; encodedOffset++) {
if (decodedOffset >= decodedCapacity) {
if (decodedCapacity <= decodedOffset) {
result = NWC24_ERR_OVERFLOW;
break;
}
@@ -265,15 +265,15 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
decodedOffset++;
} else if (*input == '=' && encodedOffset + 2 < encodedSize) {
BOOL validHex = TRUE;
input++;
encodedOffset++;
if (*input == ' ' || *input == '\t') {
char* next = input + 1;
u32 inputAfterEqual = encodedOffset + 1;
char* current = ++input;
if (*current == ' ' || *current == '\t') {
char* next = current + 1;
u32 scan = 1;
while (encodedOffset + scan + 1 < encodedSize) {
while (inputAfterEqual + scan + 1 < encodedSize) {
if (*next == '\r' && next[1] == '\n') {
encodedOffset += scan;
input = next;
inputAfterEqual += scan;
current = next;
break;
}
if (*next != ' ' && *next != '\t') {
@@ -283,27 +283,29 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
scan++;
}
}
if (*input == '\r' && input[1] == '\n') {
input += 2;
encodedOffset++;
if (*current == '\r' && current[1] == '\n') {
current += 2;
encodedOffset = inputAfterEqual + 1;
input = current;
} else {
int high = Util_xtoi(*input);
int high = Util_xtoi(*current);
int low;
if (high >= 0) {
value = (high & 0x0F) << 4;
}
if (high < 0) { validHex = FALSE; }
low = Util_xtoi(input[1]);
low = Util_xtoi(current[1]);
if (low >= 0) {
value |= low & 0x0F;
}
if (low < 0) { validHex = FALSE; }
input += 2;
current += 2;
if (validHex) {
*output++ = (char)value;
decodedOffset++;
}
encodedOffset++;
encodedOffset = inputAfterEqual + 1;
input = current;
}
} else {
*output++ = *input++;
@@ -499,42 +501,22 @@ static BOOL CopyWithoutLinearWhiteSpaces(char* output, int* outputSize, char* in
}
static inline char* FindMarker(char* input, u32 size, const char* marker) {
u32 markerLength = Mail_strlen(marker);
u32 offset;
u32 markerLength;
markerLength = Mail_strlen(marker);
for (offset = 0; offset <= size; offset++) {
char* current = input + offset;
if (Mail_strncmp(current, marker, markerLength) == 0)
return input + offset;
return current;
}
return NULL;
}
static inline char* FindMarkerAfterPrefix(char* input, u32 size, u32 prefix, const char* marker) {
char* current;
u32 markerLength = Mail_strlen(marker);
char* current = input + prefix;
u32 offset;
u32 markerLength;
markerLength = Mail_strlen(marker);
current = input + prefix;
for (offset = 0; offset <= size; offset++) {
if (Mail_strncmp(current, marker, markerLength) == 0) {
return input + prefix + offset;
}
current++;
}
return NULL;
}
static inline char* FindEncodingMarker(char* encoded, u32 size) {
u32 offset;
u32 markerLength;
const char* marker;
char* current;
marker = "?";
markerLength = Mail_strlen(marker);
current = encoded;
for (offset = 0; offset <= size; offset++) {
if (Mail_strncmp(current, marker, markerLength) == 0) {
return encoded + offset;
return input + offset + prefix;
}
current++;
}
@@ -542,28 +524,14 @@ static inline char* FindEncodingMarker(char* encoded, u32 size) {
}
static inline NWC24Err ExtractWordEncoding(char* encoding, u32* encodingSize, char* encoded, u32 encodedSize) {
char* delimiter = FindEncodingMarker(encoded, encodedSize);
char* delimiter = FindMarkerAfterPrefix(encoded, encodedSize, 0, "?");
if (delimiter == NULL) { return NWC24_ERR_INVALID_VALUE; }
*encoding = delimiter[1];
*encodingSize = 2;
return NWC24_OK;
}
static inline BOOL IsLinearWhitespaceOnly(char* text, u32 size) {
u32 offset;
BOOL whitespaceOnly;
whitespaceOnly = TRUE;
for (offset = 0; offset < size && text[offset] != '\0'; offset++) {
char value = text[offset];
if (value != ' ' && value != '\t' && value != '\r' && value != '\n') {
whitespaceOnly = FALSE;
}
}
return whitespaceOnly;
}
static NWC24Err DecodeWord(char* charsetData, u32 charsetCapacity, char* decoded, u32 decodedCapacity, u32* decodedSize, char* encoded,
u32 encodedSize, u32* encodedSizeOut) {
char encoding;
char* encodedWord;
u32 consumedSize;
u32 decodedLength;
@@ -580,6 +548,7 @@ static NWC24Err DecodeWord(char* charsetData, u32 charsetCapacity, char* decoded
if (encodedSizeOut != NULL) { *encodedSizeOut = 0; }
encodedWord = FindMarker(encoded, encodedSize, "=?");
if (encodedWord == encoded) {
char encoding;
result = ExtractCharset(charsetData, charsetCapacity, &consumedSize, encodedWord, encodedSize);
if (result != NWC24_OK) { return result; }
encodedLength = consumedSize;
@@ -605,7 +574,15 @@ static NWC24Err DecodeWord(char* charsetData, u32 charsetCapacity, char* decoded
}
decodedLength = localSize;
if (encodedWord != NULL) {
if (IsLinearWhitespaceOnly(decoded, localSize)) {
BOOL whitespaceOnly = TRUE;
u32 offset;
for (offset = 0; offset < localSize && decoded[offset] != '\0'; offset++) {
char value = decoded[offset];
if (value != ' ' && value != '\t' && value != '\r' && value != '\n') {
whitespaceOnly = FALSE;
}
}
if (whitespaceOnly) {
*decoded = '\0';
decodedLength = 1;
}
@@ -718,9 +695,8 @@ static NWC24Err ExtractCharset(char* charset, u32 charsetCapacity, u32* charsetS
return NWC24_OK;
}
static inline char* FindMarkerOffsetPrefix(char* input, u32 size, u32 prefix, const char* marker) {
u32 markerLength = Mail_strlen(marker);
u32 offset;
u32 markerLength;
markerLength = Mail_strlen(marker);
for (offset = 0; offset <= size; offset++) {
if (Mail_strncmp(input + offset + prefix, marker, markerLength) == 0) {
return input + prefix + offset;

View File

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

View File

@@ -19,7 +19,7 @@ static inline NWC24Err SelectMBox(const NWC24MsgObjPrivate* msg, NWC24MBoxType*
}
NWC24Err NWC24ReadMsgField(const NWC24MsgObj* msg, char* fieldName, u8* output, u32 capacity) {
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
const NWC24MsgObjPrivate* privateMsg = (const NWC24MsgObjPrivate*)msg;
NWC24File file;
NWC24FileStream stream;
char* field;
@@ -268,7 +268,7 @@ NWC24Err NWC24ReadMsgMBOptOutFlag(const NWC24MsgObj* msg, BOOL* optOut, u32* app
}
NWC24Err NWC24ReadMsgFromAddr(const NWC24MsgObj* msg, char* address, u32 capacity) {
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
const NWC24MsgObjPrivate* privateMsg = (const NWC24MsgObjPrivate*)msg;
NWC24MBoxType type;
NWC24File file;
NWC24FileStream stream;
@@ -312,7 +312,7 @@ NWC24Err NWC24ReadMsgFromAddr(const NWC24MsgObj* msg, char* address, u32 capacit
}
NWC24Err NWC24ReadMsgSubject(const NWC24MsgObj* msg, char* subject, u32 capacity) {
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
const NWC24MsgObjPrivate* privateMsg = (const NWC24MsgObjPrivate*)msg;
NWC24MBoxType type;
NWC24File file;
u32 length;
@@ -386,14 +386,14 @@ NWC24Err NWC24ReadMsgTextEx(const NWC24MsgObj* msg, char* text, u32 capacity, ch
}
static NWC24Err ReadMsgTextInternal(const NWC24MsgObj* msg, char* text, u32 capacity, char* charset, u32 charsetCapacity, NWC24Encoding* encoding) {
u32 length;
const NWC24MsgObjPrivate* privateMsg = (const NWC24MsgObjPrivate*)msg;
NWC24MBoxType type;
NWC24File file;
NWC24Err result, closeResult;
NWC24Err overflow = NWC24_OK;
char* buffer;
u32 length;
u32 decodedSize;
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
char* buffer;
if (!NWC24IsMsgLibOpened() && !NWC24IsMsgLibOpenedByTool())
return NWC24_ERR_LIB_NOT_OPENED;
if (!(privateMsg->type & 0x200))
@@ -408,15 +408,13 @@ static NWC24Err ReadMsgTextInternal(const NWC24MsgObj* msg, char* text, u32 capa
return result;
}
length = privateMsg->textSize;
switch (length) {
case 0: length = privateMsg->text.size; break;
default: break;
}
if (length == 0)
length = privateMsg->text.size;
if (length == 0)
return NWC24_ERR_NULL;
if (length > capacity - 1) {
length = capacity - 1;
overflow = NWC24_ERR_OVERFLOW;
length = capacity - 1;
}
result = NWC24iMBoxOpenStoredMsg(type, privateMsg->msgId, &file);
switch (result) {
@@ -452,16 +450,13 @@ static NWC24Err ReadMsgTextInternal(const NWC24MsgObj* msg, char* text, u32 capa
result = NWC24FRead(text, length, &file);
text[length] = 0;
break;
case 2: {
NWC24Err decodeResult;
case 2:
decodedSize = 0;
decodeResult = ReadBase64Data(&file, &privateMsg->text, (u8*)text, length, &decodedSize);
if (decodeResult == NWC24_OK && decodedSize != privateMsg->textSize)
decodeResult = NWC24_ERR_FORMAT;
result = decodeResult;
result = ReadBase64Data(&file, &privateMsg->text, (u8*)text, length, &decodedSize);
if (result == NWC24_OK && decodedSize != privateMsg->textSize)
result = NWC24_ERR_FORMAT;
text[length] = 0;
break;
}
case 3:
result = ReadQPText(privateMsg, &file, text, length);
break;
@@ -473,15 +468,15 @@ static NWC24Err ReadMsgTextInternal(const NWC24MsgObj* msg, char* text, u32 capa
}
close:
closeResult = NWC24iMBoxCloseMsg(&file);
if (result != NWC24_OK)
closeResult = result;
if (closeResult != NWC24_OK)
overflow = closeResult;
return overflow;
if (result == NWC24_OK)
result = closeResult;
if (result == NWC24_OK)
result = overflow;
return result;
}
NWC24Err NWC24ReadMsgAttached(const NWC24MsgObj* msg, u32 index, u8* output, u32 capacity) {
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
const NWC24MsgObjPrivate* privateMsg = (const NWC24MsgObjPrivate*)msg;
NWC24File file;
NWC24MBoxType type;
u32 decodedSize;
@@ -510,8 +505,11 @@ NWC24Err NWC24ReadMsgAttached(const NWC24MsgObj* msg, u32 index, u8* output, u32
}
decodedSize = 0;
result = ReadBase64Data(&file, &privateMsg->attached[index], output, capacity, &decodedSize);
if (result == NWC24_OK) {
if (decodedSize != ((const NWC24MsgObjPrivate*)msg)->attachedSize[index]) result = NWC24_ERR_FORMAT;
switch (result) {
case NWC24_OK:
if (decodedSize != privateMsg->attachedSize[index]) { result = NWC24_ERR_FORMAT; }
break;
default: break;
}
closeResult = NWC24iMBoxCloseMsg(&file);
if (result == NWC24_OK)

View File

@@ -743,16 +743,15 @@ NWC24Err NWC24iSetMsgSubjectQP(NWC24MsgObj* msg, const u16* subject, u32 subject
u32 workSize, NWC24Charset charset, char* charsetName) {
u32 workHalf;
u32 sourceOffset;
u32 charsetLength;
u32 secondSize;
u8* second;
u32 subjectLength;
u32 lineLength;
u32 secondSize;
u32 outputLength;
u32 total;
u32 combinedLength;
u32 i;
u32 outputLength;
u32 firstCharsetLength;
u32 charsetLength;
NWC24Err result;
secondSize = workSize - (workSize >> 1);
@@ -771,8 +770,8 @@ NWC24Err NWC24iSetMsgSubjectQP(NWC24MsgObj* msg, const u16* subject, u32 subject
work[i] = ' ';
}
}
firstCharsetLength = strlen(charsetName);
NWC24iDetectBreakPoint(&lineLength, charset, work, subjectLength, (0x38 - firstCharsetLength) / 3);
charsetLength = strlen(charsetName);
NWC24iDetectBreakPoint(&lineLength, charset, work, subjectLength, (0x38 - charsetLength) / 3);
result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'Q', work, lineLength);
switch (result) {
default:
@@ -817,9 +816,9 @@ done:
NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 subjectSize, NWC24EncodingRegion region, u16 alternative, u8* work,
u32 workSize, NWC24Charset charset, char* charsetName) {
u8* second;
u32 secondSize;
u32 workHalf;
u32 secondSize;
u8* second;
u32 subjectLength;
u32 lineLength;
u32 sourceOffset;
@@ -828,22 +827,18 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
u32 charsetLength;
NWC24Err result;
second = work + (workSize >> 1);
secondSize = workSize - (workSize >> 1);
workHalf = workSize >> 1;
secondSize = workSize - workHalf;
second = work + workHalf;
charsetLength = strlen(charsetName);
lineLength = ((0x36 - charsetLength) * 3) >> 2;
if (lineLength > (workSize >> 1)) {
if (lineLength > workHalf) {
result = NWC24_ERR_OVERFLOW;
} else {
workHalf = lineLength + 1;
subjectLength = subjectSize;
result = NWC24iConvertFromInternalEncoding(work, &workHalf, subject, &subjectLength, charsetName, 0x40, region, alternative);
if (result != NWC24_OK) {
switch (result) {
case NWC24_ERR_OVERFLOW: break;
default: goto done;
}
}
switch (result) { case NWC24_OK: case NWC24_ERR_OVERFLOW: break; default: goto done; }
result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1);
switch (result) { case NWC24_OK: break; default: goto done; }
{
@@ -854,7 +849,7 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
charsetLength = strlen(charsetName);
lineLength = (((0x3E - charsetLength) * 3) >> 2) + 1;
total = outputLength - 1;
for (; sourceOffset < subjectSize;) {
for (; sourceOffset < subjectSize; sourceOffset += subjectLength) {
subjectLength = subjectSize - sourceOffset;
workHalf = lineLength;
if (secondSize - total < 3) {
@@ -866,15 +861,9 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
second[total++] = ' ';
result = NWC24iConvertFromInternalEncoding(work, &workHalf, subject + sourceOffset, &subjectLength, charsetName, 0x40, region,
alternative);
if (result != NWC24_OK) {
switch (result) {
case NWC24_ERR_OVERFLOW: break;
default: goto done;
}
}
switch (result) { case NWC24_OK: case NWC24_ERR_OVERFLOW: break; default: goto done; }
result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1);
switch (result) { case NWC24_OK: break; default: goto done; }
sourceOffset += subjectLength;
total = total + outputLength - 1;
}
result = NWC24SetMsgSubject(msg, (char*)second, total);

View File

@@ -47,130 +47,95 @@ s32 SOGetHostID(void) {
return address;
}
static inline int GetHostReply(const char* name, s32* rm, SOHostEnt** host) {
SOHostEnt* SOGetHostByName(const char* name) {
HostReply* reply;
int length;
char* request;
int result;
int size;
if (!name) return -28;
length = strlen(name);
size = (length + 32) & ~31;
request = SOiAlloc(12, size);
reply = SOiGetSysWork()->host;
if (!request) return -49;
strcpy(request, name);
result = IOS_Ioctl(*rm, 17, request, length + 1, reply, 0x460);
if (result >= 0) {
int displacement = (int)reply->nameStorage - (int)reply->host.name;
u8** address = reply->addresses;
while (*address) { *address += displacement; ++address; }
reply->host.aliases = (char**)((u8*)reply->host.aliases + displacement);
*host = &reply->host;
reply->host.name += displacement;
reply->host.addrList = (u8**)((u8*)reply->host.addrList + displacement);
}
SOiFree(12, request, size);
return result;
}
SOHostEnt* SOGetHostByName(const char* name) {
SOHostEnt* host = NULL;
int length;
SOHostEnt* host;
s32 rm;
int result;
if ((result = SOiPrepare(NULL, &rm)) == 0) {
result = GetHostReply(name, &rm, &host);
SOiConclude(NULL, result);
char* request;
host = NULL;
if((result=SOiPrepare(NULL,&rm))==0) {
if(!name) result=-28;
else {
length=strlen(name);
size=(length+32)&~31;
request=SOiAlloc(12,size);
reply=SOiGetSysWork()->host;
if(!request) result=-49;
else {
strcpy(request,name);
result=IOS_Ioctl(rm,17,request,length+1,reply,0x460);
if(result>=0) {
int displacement=(int)reply->nameStorage-(int)reply->host.name;
u8** address=reply->addresses;
while(*address) { *address+=displacement; ++address; }
reply->host.aliases=(char**)((u8*)reply->host.aliases+displacement);
host=&reply->host;
reply->host.name+=displacement;
reply->host.addrList=(u8**)((u8*)reply->host.addrList+displacement);
}
SOiFree(12,request,size);
}
}
SOiConclude(NULL,result);
}
return host;
}
static inline int NameSize(const char* name) {
if (name == NULL) {
return 0;
} else {
return strlen(name) + 1;
}
}
static inline int NameLength(const char* name) {
if (name == NULL) {
return 0;
} else {
return strlen(name);
}
}
static inline int ServiceSize(const char* node, const char* service) {
if (service == NULL) {
return 0;
} else {
return strlen(node) + 1;
}
}
static inline int GetAddressReply(const char* nodeName, const char* servName, const SOAddrInfo* hints,
SOAddrInfo** resultInfo, s32* rm) {
SOAddrInfo* requestHints;
AddrInfoRequest* request;
char* service;
int nodeLength;
AddrInfoReply* reply;
int size;
char* node;
int serviceLength;
int result;
serviceLength = ServiceSize(nodeName, servName);
nodeLength = NameSize(nodeName);
size=(((nodeLength+31)&~31)+((serviceLength+31)&~31)+95)&~31;
request=SOiAlloc(12,size);
if(!request) result=-49;
else {
reply=SOiAlloc(10,0x840);
if(!reply) { SOiFree(12,request,size); result=-49; }
else {
node=(char*)request->storage;
service=node+((NameSize(nodeName)+31)&~31);
requestHints=(SOAddrInfo*)(service+((ServiceSize(nodeName, servName)+31)&~31));
if(nodeName) strcpy(node,nodeName);
request->vectors[0].base=nodeName ? (u8*)node : NULL;
request->vectors[0].length=NameLength(nodeName);
if(servName) strcpy(service,servName);
request->vectors[1].base=servName ? (u8*)service : NULL;
request->vectors[1].length=NameLength(servName);
if(hints) memcpy(requestHints,hints,32);
else memset(requestHints,0,32);
if(requestHints->family==0) requestHints->family=2;
if(requestHints->family==23) {
*resultInfo=NULL; result=-68; SOiFree(10,reply,0x840);
} else {
request->vectors[2].base=(u8*)requestHints; request->vectors[2].length=32;
request->vectors[3].base=(u8*)reply; request->vectors[3].length=0x834;
result=IOS_Ioctlv(*rm,24,3,1,request->vectors);
if(result>=0) {
SOAddrInfo* entry=reply->entries;
u8* address=reply->addresses;
*resultInfo=entry;
while(entry) {
entry->addr=address;
if(entry->next) entry->next=entry+1;
entry=entry->next;
address+=28;
}
} else { *resultInfo=NULL; SOiFree(10,reply,0x840); }
}
SOiFree(12,request,size);
}
}
return result;
}
static int NameSize(const char* name) { return name ? strlen(name)+1 : 0; }
int SOGetAddrInfo(const char* nodeName, const char* servName, const SOAddrInfo* hints, SOAddrInfo** resultInfo) {
s32 rm;
int result;
if ((result = SOiPrepare(NULL, &rm)) == 0) {
result = GetAddressReply(nodeName, servName, hints, resultInfo, &rm);
result = SOiConclude(NULL, result);
int result,size;
AddrInfoRequest* request;
AddrInfoReply* reply;
char* node;
char* service;
SOAddrInfo* requestHints;
if((result=SOiPrepare(NULL,&rm))==0) {
size=(((NameSize(nodeName)+31)&~31)+((servName ? strlen(nodeName)+32 : 31)&~31)+95)&~31;
request=SOiAlloc(12,size);
if(!request) result=-49;
else {
reply=SOiAlloc(10,0x840);
if(!reply) { SOiFree(12,request,size); result=-49; }
else {
node=(char*)request->storage;
service=node+((NameSize(nodeName)+31)&~31);
requestHints=(SOAddrInfo*)(service+((servName ? strlen(nodeName)+32 : 31)&~31));
if(nodeName) strcpy(node,nodeName);
request->vectors[0].base=nodeName ? (u8*)node : NULL;
request->vectors[0].length=nodeName ? strlen(nodeName) : 0;
if(servName) strcpy(service,servName);
request->vectors[1].base=servName ? (u8*)service : NULL;
request->vectors[1].length=servName ? strlen(servName) : 0;
if(hints) memcpy(requestHints,hints,32);
else memset(requestHints,0,32);
if(requestHints->family==0) requestHints->family=2;
if(requestHints->family==23) {
*resultInfo=NULL; result=-68; SOiFree(10,reply,0x840);
} else {
request->vectors[2].base=(u8*)requestHints; request->vectors[2].length=32;
request->vectors[3].base=(u8*)reply; request->vectors[3].length=0x834;
result=IOS_Ioctlv(rm,24,3,1,request->vectors);
if(result>=0) {
SOAddrInfo* entry=reply->entries;
u8* address=reply->addresses;
*resultInfo=entry;
while(entry) {
entry->addr=address;
if(entry->next) entry->next=entry+1;
entry=entry->next;
address+=28;
}
} else { *resultInfo=NULL; SOiFree(10,reply,0x840); }
}
SOiFree(12,request,size);
}
}
result=SOiConclude(NULL,result);
}
return result;
}

View File

@@ -17,19 +17,14 @@ typedef struct SocketOption {
u8 value[20];
} SocketOption;
typedef union InterfaceCommand {
struct { int level; int option; };
u8 bytes[32];
} InterfaceCommand;
typedef union InterfaceLength {
int length;
u8 bytes[32];
} InterfaceLength;
typedef struct InterfaceCommand { int level; int option; } InterfaceCommand;
typedef struct InterfaceOption {
IOSIoVector vectors[4];
InterfaceCommand command;
union {
InterfaceCommand command;
u8 commandBlock[32];
};
union {
int length;
u8 lengthBlock[32];
@@ -39,7 +34,10 @@ typedef struct InterfaceOption {
typedef struct InterfaceSetting {
IOSIoVector vectors[4];
InterfaceCommand command;
union {
InterfaceCommand command;
u8 commandBlock[32];
};
u8 value[1];
} InterfaceSetting;
@@ -98,9 +96,9 @@ static int OptionLength(int* length) {
int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int* length) {
s32 rm;
int temporary;
int size;
int result;
InterfaceOption* request;
int result;
int size;
InterfaceCommand* command;
int* returnedLength;
u8* reply;
@@ -113,8 +111,8 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int*
else {
command=&request->command;
command->level=level; command->option=option;
returnedLength=&((InterfaceLength*)(command + 1))->length;
reply=(u8*)((InterfaceLength*)returnedLength + 1);
returnedLength=&request->length;
reply=request->value;
*returnedLength=OptionLength(length);
request->vectors[0].base=(u8*)command;
request->vectors[0].length=8;
@@ -140,9 +138,9 @@ int SOGetInterfaceOpt(void* interface, int level, int option, void* value, int*
int SOSetInterfaceOpt(void* interface, int level, int option, const void* value, int length) {
s32 rm;
int temporary;
int size;
int result;
InterfaceSetting* request;
int result;
int size;
InterfaceCommand* command;
u8* reply;
if ((result=SOiPrepareTempRm(NULL,&rm,&temporary))==0) {
@@ -154,7 +152,7 @@ int SOSetInterfaceOpt(void* interface, int level, int option, const void* value,
else {
command=&request->command;
command->level=level; command->option=option;
reply=(u8*)(command + 1);
reply=request->value;
if(value) memcpy(reply,value,length);
else memset(reply,0,length);
request->vectors[0].base=(u8*)command; request->vectors[0].length=8;

View File

@@ -1,4 +1,3 @@
#define BS2_MACH_VOLATILE_DVD_STATE
#define BS2_MACH_FIVE_ARG_READ
#include "BS2/BS2.h"
#include "BS2/BS2BringUp.h"
@@ -30,7 +29,7 @@ typedef struct AppLoaderHeader {
u8 pad_0x1C[4];
} AppLoaderHeader;
u8 TicketViewsBuf[OSRoundUp32B(sizeof(ESTicketView) * 64)] ALIGN32;
static u8 TicketViewsBuf[OSRoundUp32B(sizeof(ESTicketView) * 64)] ALIGN32;
ESTicketView *TicketViews = (ESTicketView *)TicketViewsBuf;
DVDDiskID UpdateDiskID ALIGN32;
OSBootInfo2 bi2 ALIGN32;
@@ -38,42 +37,42 @@ AppLoaderHeader AppLoaderHdr ALIGN32;
OSBootInfo3 bi3 ALIGN32;
u8 GameTOCBuf[OSRoundUp32B(sizeof(DVDGameTOC))] ALIGN32;
DVDDriveInfo DriveInfo ALIGN32;
DVDDiskID DiskID ALIGN32;
DVDPartitionParams PartitionParams ALIGN32;
static DVDDiskID DiskID ALIGN32;
static DVDPartitionParams PartitionParams ALIGN32;
NANDCommandBlock BS2NandBlock;
NANDFileInfo BS2CacheFileInfo;
DVDCommandBlock CoverBlock;
u8 PartitionInfoBuf[OSRoundUp32B(sizeof(DVDPartitionInfo) * 256)] ALIGN32;
DVDCommandBlock Block;
BS2State State = BS2_STT_BEGIN;
vu32 DvdReadPending = 0;
u32 BannerAllocation = 0;
u32 BannerBuffer = 0;
u32 BannerAvailable = 0;
u32 Allocator = 0;
BOOL StartingGame = FALSE;
u32 RestartRequested = 0;
u32 PartitionOpen = 0;
u32 CacheSeekComplete = 0;
u32 LoadingTitle = 0;
BOOL FatalErrorFlag = FALSE;
static BS2State State = BS2_STT_BEGIN;
static vu32 DvdReadPending = 0;
static u32 BannerAllocation = 0;
static u32 BannerBuffer = 0;
static u32 BannerAvailable = 0;
static u32 Allocator = 0;
volatile BOOL StartingGame = FALSE;
static vu32 RestartRequested = 0;
static vu32 PartitionOpen = 0;
static u32 CacheSeekComplete = 0;
static vu32 LoadingTitle = 0;
volatile BOOL FatalErrorFlag = FALSE;
BOOL RetryErrorFlag = FALSE;
BOOL UpdateErrorFlag = FALSE;
BOOL AbortFlag = FALSE;
volatile BOOL AbortFlag = FALSE;
volatile int CacheFailed = 0;
volatile int RegionValid = 0;
volatile int NandPending = 0;
vu32 CancelNand = 0;
vu32 LowReadResult = 0;
u32 CacheCommandComplete = 0;
u32 AudioBufferUnconfigured = 0;
u64 ResetTime = 0;
u64 SpinupDeadline = 0;
static volatile int NandPending = 0;
static volatile u32 CancelNand = 0;
static volatile u32 LowReadResult = 0;
static vu32 CacheCommandComplete = 0;
static u32 AudioBufferUnconfigured = 0;
static u64 ResetTime = 0;
static u64 SpinupDeadline = 0;
u64 CoverPollTime = 0;
u32 DriveWasReset = 0;
u32 TitleTicketView = 0;
u32 CurrentTmd = 0;
static u32 TitleTicketView = 0;
static u32 CurrentTmd = 0;
u32 TitleCode = 0;
u32 RequiredIosHigh = 0;
u32 RequiredIosLow = 0;
@@ -86,22 +85,74 @@ u32 CoverOpenTimeHigh = 0;
u32 CoverOpenTimeLow = 0;
vu32 NandTransferred = 0;
vu32 NandLength = 0;
u8 *NandBuffer = NULL;
NANDFileInfo *NandFile = NULL;
volatile u8 *NandBuffer = NULL;
NANDFileInfo *volatile NandFile = NULL;
vu32 NandOperation = 0;
volatile NANDCallback NandCompletion = NULL;
u32 LoaderOffset = 0;
vu32 LoaderLength = 0;
u32 LoaderAddress = 0;
vu32 CacheLength = 0;
vu32 BannerLength = 0;
vu32 DvdTransferLength = 0;
vu32 DvdTransferred = 0;
u32 *DvdProgress = 0;
u32 LoaderClose = 0;
u32 LoaderMain = 0;
u32 LoaderInit = 0;
static vu32 BannerLength = 0;
static vu32 DvdTransferLength = 0;
static vu32 DvdTransferred = 0;
static u32 *DvdProgress = 0;
static u32 LoaderClose = 0;
static u32 LoaderMain = 0;
static u32 LoaderInit = 0;
#define DvdReadPending DvdReadPending
#define BannerAllocation BannerAllocation
#define BannerBuffer BannerBuffer
#define BannerAvailable BannerAvailable
#define Allocator Allocator
#define RestartRequested RestartRequested
#define PartitionOpen PartitionOpen
#define CacheSeekComplete CacheSeekComplete
#define LoadingTitle LoadingTitle
#define CacheFailed CacheFailed
#define RegionValid RegionValid
#define NandPending NandPending
#define CancelNand CancelNand
#define LowReadResult LowReadResult
#define CacheCommandComplete CacheCommandComplete
#define AudioBufferUnconfigured AudioBufferUnconfigured
#define ResetTime ResetTime
#define SpinupDeadline SpinupDeadline
#define CoverPollTime CoverPollTime
#define DriveWasReset DriveWasReset
#define TitleTicketView TitleTicketView
#define CurrentTmd CurrentTmd
#define TitleCode TitleCode
#define RequiredIosHigh RequiredIosHigh
#define RequiredIosLow RequiredIosLow
#define GamePartition GamePartition
#define UpdatePartition UpdatePartition
#define PartitionCursor PartitionCursor
#define DataToc DataToc
#define GameToc GameToc
#define CoverOpenTimeHigh CoverOpenTimeHigh
#define CoverOpenTimeLow CoverOpenTimeLow
#define NandTransferred NandTransferred
#define NandLength NandLength
#define NandBuffer NandBuffer
#define NandFile NandFile
#define NandOperation NandOperation
#define NandCompletion NandCompletion
#define LoaderOffset LoaderOffset
#define LoaderLength LoaderLength
#define LoaderAddress LoaderAddress
#define CacheLength CacheLength
#define BannerLength BannerLength
#define DvdTransferLength DvdTransferLength
#define DvdTransferred DvdTransferred
#define DvdProgress DvdProgress
#define LoaderClose LoaderClose
#define LoaderMain LoaderMain
#define LoaderInit LoaderInit
#define CoverBlock CoverBlock
#define UpdateDiskID UpdateDiskID
#define TicketViews TicketViews
void BS2Report(const char *msg, ...) {
#ifdef ENABLE_BS2_REPORT
@@ -240,16 +291,62 @@ u32 BS2GetBannerBufferLength() { return BannerLength; }
BOOL BS2IsDiagDisc() { return (u8)(*(u8 *)OSPhysicalToCached(OS_ADDR_BOOT_INFO) - 0x30U) <= 1; }
extern vu32 BS2VideoMode;
extern void __pformatter(void);
extern vu32 __DVDLayoutFormat;
void Run(u32 entryPoint, void *start, u32 blockCount, u32 argument) {
u8 *block = start;
for (; blockCount != 0; --blockCount) {
__dcbz(block, 0);
__dcbf(block, 0);
block += 32;
}
((void (*)(u32))entryPoint)(argument);
asm void Run(u32 entryPoint, void *start, u32 blockCount, u32 argument) {
// clang-format off
#ifdef __MWERKS__
nofralloc
mtctr r5
mtlr r3
li r0, 0
li r2, 0
li r3, 0
li r5, 0
li r7, 0
li r8, 0
li r9, 0
li r10, 0
li r11, 0
li r12, 0
li r13, 0
li r14, 0
li r15, 0
li r16, 0
li r17, 0
li r18, 0
li r19, 0
li r20, 0
li r21, 0
li r22, 0
li r23, 0
li r24, 0
li r25, 0
li r26, 0
li r27, 0
li r28, 0
li r29, 0
li r30, 0
li r31, 0
lis r1, (__pformatter + 0x280)@h
ori r1, r1, (__pformatter + 0x280)@l
li r6, 0
b _enter
_loop:
dcbz r4, r0
dcbf r4, r0
addi r4, r4, 0x20
bdnz _loop
b _exit
_exit:
li r4, 0
blr
_enter:
b _loop
#endif
// clang-format on
}
BOOL BS2GetLockedTitles(ESTitleId *pTitleIds, u32 *count) {
@@ -681,26 +778,25 @@ void BS2StartGame() {
}
status = LowReadResult;
if (status != 2) {
if ((status >= 2) || (status < 1)) {
switch (status) {
case 2:
OSReport("\nDisk error(%d) has occurred", LowReadResult);
LowReadResult = 0;
DVDLowRequestError((DVDLowCallback)callback);
while (LowReadResult == 0) {
}
if ((DVDLowGetImmBufferReg() & 0xFF000000) == 0x01000000 ||
(DVDLowGetImmBufferReg() & 0xFF000000) == 0x03000000) {
BS2Reboot();
}
if (DvdTransferred == 0 && (DVDLowGetImmBufferReg() & 0xFF000000) == 0x04000000) {
BS2Reboot();
}
goto disk_fatal;
} else {
case 1:
goto disk_done;
}
} else {
OSReport("\nDisk error(%d) has occurred", LowReadResult);
LowReadResult = 0;
DVDLowRequestError((DVDLowCallback)callback);
while (LowReadResult == 0) {
}
driveError = DVDLowGetImmBufferReg() & 0xFF000000;
if (driveError == 0x01000000 || (driveError = DVDLowGetImmBufferReg() & 0xFF000000) == 0x03000000) {
BS2Reboot();
}
if (DvdTransferred == 0 && (driveError = DVDLowGetImmBufferReg() & 0xFF000000) == 0x04000000) {
BS2Reboot();
}
goto disk_fatal;
default:
goto disk_fatal;
}
disk_fatal:
@@ -790,8 +886,8 @@ void BS2StartGCGame() {
s32 ret;
u32 rtc;
u32 counterBias;
u32 seconds;
u32 timerFrequency;
u32 seconds;
u32 soundMode;
s8 productVideoMode;
u8 progressiveMode;
@@ -803,7 +899,7 @@ void BS2StartGCGame() {
OSTime time;
StartingGame = TRUE;
while (DVDGetCommandBlockStatus(&CoverBlock) != DVD_STATE_IDLE) {
while (CoverBlock.state != DVD_STATE_IDLE) {
}
soundMode = SCGetSoundMode();
@@ -835,8 +931,7 @@ void BS2StartGCGame() {
__OSGetRTC(&rtc);
counterBias = SCGetCounterBias();
seconds = rtc + counterBias;
timerFrequency = OS_BUS_CLOCK >> 2;
time = (OSTime)seconds * timerFrequency;
time = (OS_BUS_CLOCK >> 2) * (OSTime)seconds;
__OSSetTime(time);
sram = __OSLockSram();
@@ -986,8 +1081,8 @@ void BS2NANDDivideCallback(s32 result, NANDCommandBlock *block) {
} else if (result < 0) {
NandCompletion(result, block);
} else {
NandBuffer += result;
NandTransferred += result;
NandBuffer = NandBuffer + result;
NandTransferred = NandTransferred + result;
if (NandLength - NandTransferred > 0x40000) {
if (NandOperation == 1) {
BS2Report("NANDWriteAsync buf:0x%08X, length:0x%08X\n", NandBuffer, 0x40000);
@@ -1002,11 +1097,15 @@ void BS2NANDDivideCallback(s32 result, NANDCommandBlock *block) {
} else {
if (NandLength - NandTransferred != 0) {
if (NandOperation == 1) {
u32 rem;
BS2Report("NANDWriteAsync buf:0x%08X, length:0x%08X\n", NandBuffer, NandLength - NandTransferred);
ret = NANDWriteAsync(NandFile, (void *)NandBuffer, NandLength - NandTransferred, BS2NANDDivideCallback, block);
rem = NandLength - NandTransferred;
ret = NANDWriteAsync(NandFile, (void *)NandBuffer, rem, BS2NANDDivideCallback, block);
} else {
u32 rem;
BS2Report("NANDReadAsync buf:0x%08X, length:0x%08X\n", NandBuffer, NandLength - NandTransferred);
ret = NANDReadAsync(NandFile, (void *)NandBuffer, NandLength - NandTransferred, BS2NANDDivideCallback, block);
rem = NandLength - NandTransferred;
ret = NANDReadAsync(NandFile, (void *)NandBuffer, rem, BS2NANDDivideCallback, block);
}
if (ret < 0) {
NandCompletion(ret, block);
@@ -1019,13 +1118,15 @@ void BS2NANDDivideCallback(s32 result, NANDCommandBlock *block) {
}
void BS2NANDDivideReadAsync(NANDFileInfo *info, void *buffer, u32 length, NANDCallback callback, NANDCommandBlock *block) {
u32 nandLen;
NandCompletion = callback;
NandOperation = 2;
NandLength = length;
NandTransferred = 0;
nandLen = NandLength;
NandFile = info;
NandBuffer = (u8 *)buffer;
if (NandLength > 0x40000) {
if (nandLen > 0x40000) {
BS2Report("NANDReadAsync buf:0x%08X, length:0x%08X\n", NandBuffer, 0x40000);
NANDReadAsync(NandFile, (void *)NandBuffer, 0x40000, BS2NANDDivideCallback, block);
} else {
@@ -1035,13 +1136,15 @@ void BS2NANDDivideReadAsync(NANDFileInfo *info, void *buffer, u32 length, NANDCa
}
void BS2NANDDivideWriteAsync(NANDFileInfo *info, const void *buffer, u32 length, NANDCallback callback, NANDCommandBlock *block) {
u32 nandLen;
NandCompletion = callback;
NandOperation = 1;
NandLength = length;
NandTransferred = 0;
nandLen = NandLength;
NandFile = info;
NandBuffer = (u8 *)buffer;
if (NandLength > 0x40000) {
if (nandLen > 0x40000) {
BS2Report("NANDWriteAsync buf:0x%08X, length:0x%08X\n", NandBuffer, 0x40000);
NANDWriteAsync(NandFile, (void *)NandBuffer, 0x40000, BS2NANDDivideCallback, block);
} else {
@@ -1085,8 +1188,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write drive info\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + 0x20;
{
u32 newLen = CacheLength + 0x20;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1101,8 +1207,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write disk id\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + 0x20;
{
u32 newLen = CacheLength + 0x20;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1117,8 +1226,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write game toc\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + 0x20;
{
u32 newLen = CacheLength + 0x20;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1133,13 +1245,16 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write partition ifno\n");
NandPending = 1;
CacheLength += OSRoundUp32B(((DVDGameTOC *)DataToc)->partitionCount * sizeof(DVDPartitionInfo)) + 32;
CacheCommandComplete = 1;
{
u32 newLen = OSRoundUp32B(((DVDGameTOC *)DataToc)->partitionCount * sizeof(DVDPartitionInfo)) + 32 + CacheLength;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
} else {
BS2NANDDivideWriteAsync(&BS2CacheFileInfo, &PartitionInfoBuf, OSRoundUp32B(((DVDGameTOC *)DataToc)->partitionCount * sizeof(DVDPartitionInfo)) + 32, BS2NANDCallback, &BS2NandBlock);
BS2NANDDivideWriteAsync(&BS2CacheFileInfo, &PartitionInfoBuf, OSRoundUp32B(((DVDGameTOC *)DataToc)->partitionCount << 3) + 32, BS2NANDCallback, &BS2NandBlock);
return 0;
}
}
@@ -1149,8 +1264,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write boot info 3\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + 0x2000;
{
u32 newLen = CacheLength + 0x2000;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1165,8 +1283,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write open partition\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + 0x4a00;
{
u32 newLen = CacheLength + 0x4a00;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1181,8 +1302,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write apploader header\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + 0x20;
{
u32 newLen = CacheLength + 0x20;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1197,8 +1321,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write apploader\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + (AppLoaderHdr.length + 0x1fU & 0xffffffe0);
{
u32 newLen = CacheLength + (AppLoaderHdr.length + 0x1fU & 0xffffffe0);
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1214,8 +1341,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write apploader load\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + LoaderLength;
{
u32 newLen = CacheLength + LoaderLength;
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1231,8 +1361,11 @@ BOOL CheckBS2CommandStatus() {
if (BS2BootCaching != 0) {
BS2Report("Write banner\n");
NandPending = 1;
CacheCommandComplete = 1;
CacheLength = CacheLength + (BannerLength + 0x1fU & 0xffffffe0);
{
u32 newLen = CacheLength + (BannerLength + 0x1fU & 0xffffffe0);
CacheCommandComplete = 1;
CacheLength = newLen;
}
if ((unsigned int)CacheLength > 0xb00000) {
BS2NANDCallback(-1, NULL);
return 1;
@@ -1389,10 +1522,10 @@ BS2State BS2Tick() {
case 5:
status = CheckBS2CommandStatus();
if (status != 0) {
if (((*(u32 *)0x8000002c) & 0xf0000000) == 0)
(*(u16 *)0x800030e6) = 0x8002;
if (((*(vu32 *)0x8000002c) & 0xf0000000) == 0)
(*(vu16 *)0x800030e6) = 0x8002;
else
(*(u16 *)0x800030e6) = DriveInfo.deviceCode | 0x8000;
(*(vu16 *)0x800030e6) = DriveInfo.deviceCode | 0x8000;
State = BS2_STT_8;
}
break;
@@ -1418,16 +1551,18 @@ BS2State BS2Tick() {
case 9:
case 10: {
DVDDiskID *bootDisc;
char *bootArea;
status = CheckBS2CommandStatus();
if (status == 0)
break;
memcpy((void *)0x80000000, &DiskID, sizeof(DVDDiskID));
bootDisc = (DVDDiskID *)0x80000000;
if (bootDisc->rvlMagic == 0x5d1c9ea3) {
status = strncmp((char *)bootDisc, "RAAE", 4);
if (status == 0 || strncmp((char *)bootDisc, "408", 3) == 0 ||
strncmp((char *)bootDisc, "410", 3) == 0 ||
strncmp((char *)bootDisc, "410", 3) == 0)
bootArea = (char *)0x80000000;
status = strncmp(bootArea, "RAAE", 4);
if (status == 0 || strncmp(bootArea, "408", 3) == 0 ||
strncmp(bootArea, "410", 3) == 0 ||
strncmp(bootArea, "410", 3) == 0)
regionMatches = FALSE;
else
regionMatches = TRUE;
@@ -1451,12 +1586,14 @@ BS2State BS2Tick() {
case 0xb: {
DVDDiskID *bootDisc = (DVDDiskID *)0x80000000;
u32 audioBufferSize;
u8 streaming;
if (AudioBufferUnconfigured == 0) {
State = BS2_STT_GC_GAME;
break;
}
streaming = bootDisc->streaming;
AudioBufferUnconfigured = 0;
if (bootDisc->streaming != 0) {
if (streaming != 0) {
audioBufferSize = bootDisc->streamingBufSize;
audioBufferSize = audioBufferSize != 0 ? audioBufferSize : 10;
__DVDAudioBufferConfig(&Block, 1, audioBufferSize, BS2DVDCallback);
@@ -1796,21 +1933,24 @@ invalidRvlRegion:
State = BS2_STT_RESET_SYSTEM;
break;
}
if (GamePartition == 0) {
if (GamePartition != 0) {
State = BS2_STT_37;
} else {
State = BS2_STT_54;
break;
}
State = BS2_STT_37;
case 0x25:
case 0x25: {
u32 gamePartition = (u32)((DVDPartitionInfo *)GamePartition)->partition;
if (BS2BootFromCache != 0) {
BS2Report("Open partition from cache.dat\n");
NandPending = 1;
BS2NANDDivideReadAsync(&BS2CacheFileInfo, &PartitionParams.tmd, 0x4a00, BS2NANDCallback, &BS2NandBlock);
} else
DVDOpenPartitionAsync(&Block, &PartitionParams.tmd, (u32)((DVDPartitionInfo *)GamePartition)->partition, BS2DVDCallback);
DVDOpenPartitionAsync(&Block, &PartitionParams.tmd, gamePartition, BS2DVDCallback);
PartitionOpen = 1;
State = BS2_STT_38;
break;
}
case 0x26: {
status = CheckBS2CommandStatus();
if (status == 0)
@@ -2001,7 +2141,7 @@ invalidRvlRegion:
if (status == 0)
OSPanic("BS2Mach.c", 0x12c8, "BS2 ERROR >>> Cannnot alloc 0x%08x from MEMAllocator", bannerFile.length);
BannerLength = bannerFile.length;
BannerBuffer = OSRoundDown32B(BannerAllocation) + 32;
BannerBuffer = BannerAllocation + 0x20 - (BannerAllocation & 0x1f);
BS2Report("BannerBufferAddr : %08X\n");
} else {
if ((BannerBuffer != 0) && (BannerLength != 0)) {

View File

@@ -9,10 +9,14 @@
#include <string.h>
typedef struct UpdateThreadData {
OSThread thread;
u8 stack[4096];
} UpdateThreadData;
static u32 Flags0[BS2_UPDATE_ENTRY_COUNT] = {0};
static u32 Flags1[BS2_UPDATE_ENTRY_COUNT] = {0};
static OSThread Thread = {0};
static u8 ThreadStack[4096] = {0};
static UpdateThreadData Thread = {0};
static BS2UpdateHeader UpdateHeader0 ALIGN32 = {0};
static BS2UpdateHeader UpdateHeader1 ALIGN32 = {0};
@@ -23,10 +27,10 @@ s32 WADImportDVDForBS(const char* path, void* buffer, u32 length);
s32 WADImportDVDExForBS(const char* path, void* buffer, u32 length);
static BS2UpdateEntry* pEntries = NULL;
static u32 EntriesCount = 0;
static vu32 EntriesCount = 0;
static u32* pFlags = NULL;
static void* MemAllocator = NULL;
int State = 0;
volatile int State = 0;
BS2UpdateEntry* CurrentEntry = 0;
static u32 RebootRequired = 0;
static BOOL ContainsSeatTitles = 0;
@@ -56,6 +60,7 @@ static void* UpdateThread(void* argument);
void BS2UpdateInit(void* allocator) {
BS2Report("initialize BS2Update\n");
pFlags = Flags0;
ConsoleType = OSGetConsoleType();
VersionES = __OSGetHollywoodRev();
VersionMEM2 = OSGetPhysicalMem2Size();
@@ -72,9 +77,9 @@ void BS2UpdateInit(void* allocator) {
memset(EntriesToImport, 0, 0x40000);
memset(Flags1, 0, sizeof(Flags1));
BS2Report("Create update thread\n");
OSCreateThread(&Thread, UpdateThread, NULL, ThreadStack + sizeof(ThreadStack),
sizeof(ThreadStack), 31, 1);
OSResumeThread(&Thread);
OSCreateThread(&Thread.thread, UpdateThread, NULL, Thread.stack + sizeof(Thread.stack),
sizeof(Thread.stack), 31, 1);
OSResumeThread(&Thread.thread);
}
static void* UpdateThread(void* argument) {
@@ -110,12 +115,12 @@ static void* UpdateThread(void* argument) {
requiredBytes = 0;
requiredInodes = 0;
channelCount = 0;
scratch.freeChannels = 0;
scratch.freeBlocks = 0;
scratch.freeInodes = 0;
selectedSeatCount = 0;
State = 0;
ContainsSeatTitles = FALSE;
scratch.freeChannels = 0;
scratch.freeBlocks = 0;
scratch.freeInodes = 0;
if (ES_GetTitleId(&scratch.titleId) != 0) {
regionValid = FALSE;
} else {

View File

@@ -619,7 +619,7 @@ vmFloat VmIntToFloat(vmU64 integer) {
return result;
}
static s32 CHANSVmParseInt(const CHANSVmObjHdr* obj, s32 base, u64* out) {
static s32 CHANSVmParseInt(CHANSVmObjHdr* obj, s32 base, u64* out) {
u8 type = obj->type;
u32 stringLength;
u32 charCount;

View File

@@ -298,9 +298,8 @@ namespace www {
}
case FORM_ID_DUMMY_SECURITY_KEY: {
memset(pString->asterisks, 0, sizeof(pString->asterisks));
SetStringBuf* strBuf;
int i;
for (i = 0; i < strlen((strBuf = pString)->securityKey); strBuf->asterisks[i++] = '*') {
for (i = 0; i < strlen(pString->securityKey); pString->asterisks[i++] = '*') {
}
if (i > 0x20) {
pString->asterisks[0x20] = '\n';

View File

@@ -523,7 +523,7 @@ void InputForm::calc() {
if (meEditMode == EM_Edit) {
height = 2.0f * getLineHeight();
boundY = (mDefaultBoundTrans.y - (height - mDefaultBoundSize.height) / 2.0f) - mfScroll;
} else setDrawScrollY(0.0f);
} else mfDrawScrollY = 0.0f;
mpBoundPane->SetSize(nw4r::lyt::Size(mpBoundPane->GetSize().width, height));
mpBoundPane->SetTranslate(nw4r::math::VEC2(mDefaultBoundTrans.x, boundY));
mpBoundPane->CalculateMtx(mDrawInfo);

View File

@@ -22,9 +22,7 @@ namespace textinput {
#pragma section sconst_type ".sdata"
extern "C" const char* scCommonTextAnimName = scT_prdc_Text_00;
extern "C" const char* scCommonScrollAnimName = scP_prdc_scrl_Left;
#pragma explicit_zero_data on
extern "C" const wchar_t scEmptyWChars[4] = {0, 0, 0, 0};
#pragma explicit_zero_data reset
extern "C" const wchar_t scEmptyWChars[4] = {0, 0, 0, 1};
extern "C" const char scP_OnBtn[8] = "P_OnBtn";
extern "C" const char scB_OnBtn[8] = "B_OnBtn";
#pragma pop
@@ -208,14 +206,14 @@ namespace textinput {
#pragma push
#pragma section const_type ".data"
extern "C" const char scPaneNameTable[132] =
"B_OffBtn\0\0\0\0"
"P_JPOffBtn\0\0"
"P_CNOffBtn\0\0"
"P_CNOnBtn\0\0\0"
"B_prdc_scrl_Left\0\0\0\0"
"P_prdc_scrl_Left\0\0\0\0"
"B_prdc_scrl_Rght\0\0\0\0"
"P_prdc_scrl_Rght\0\0\0\0"
"B_OffBtn\0\0\0"
"P_JPOffBtn\0"
"P_CNOffBtn\0"
"P_CNOnBtn\0\0"
"B_prdc_scrl_Left\0\0\0"
"P_prdc_scrl_Left\0\0\0"
"B_prdc_scrl_Rght\0\0\0"
"P_prdc_scrl_Rght\0\0\0"
"\0\0\0";
extern "C" char scW_predictWindow[16] = "W_predictWindow";
extern "C" const char scN_predictInput[15] = "N_predictInput";

View File

@@ -249,14 +249,13 @@ void LayoutByNW4R::create(MEMAllocator* allocator) {
animationCount = paneInfo.animationCount;
u16 animationIndex = 0;
while (animationIndex < animationCount) {
const AnimationFile* const& animation = paneInfo.animations[animationIndex];
void* resource = mpMultiArcResourceAccessor->GetResource(0, animation->name);
void* resource = mpMultiArcResourceAccessor->GetResource(0, paneInfo.animations[animationIndex]->name);
AnimTransformPane* transform = static_cast<AnimTransformPane*>(
getLayout()->CreateAnimTransform(resource, mpMultiArcResourceAccessor));
if (forceName != NULL) {
pane->forceAddAnimation(allocator, animation->id, transform, forceName, false, true);
pane->forceAddAnimation(allocator, paneInfo.animations[animationIndex]->id, transform, forceName, false, true);
} else {
pane->addAnimation(allocator, animation->id, transform, false, true);
pane->addAnimation(allocator, paneInfo.animations[animationIndex]->id, transform, false, true);
}
++animationIndex;
}

View File

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

View File

@@ -1704,9 +1704,6 @@ void ipl::scene::AddressEdit::stt_wait_btn_fadein() {
}
void ipl::scene::AddressEdit::stt_wait_btn_fadeout() {
nw4r::lyt::Pane* label;
const wchar_t* message;
ipl::utility::FrameController* animator;
bool friendFinished;
if (mpFriendCache->getInfo(mSelectedFriend).attr.status == 2) {
friendFinished = !mpCodeLayout->getAnim(0x15)->isPlaying();
@@ -1718,11 +1715,11 @@ void ipl::scene::AddressEdit::stt_wait_btn_fadeout() {
friendFinished &= !mpCodeLayout->getAnim(0x17)->isPlaying();
if (friendFinished) {
label = mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_card_msg_00", true);
message = ipl::System::getMessage(0x30);
nw4r::lyt::Pane* label = mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_card_msg_00", true);
const wchar_t* message = ipl::System::getMessage(0x30);
set_textbox(label, message);
ipl::System::getDialog()->callS2Btn2(0x142, 0x141, true);
animator = mpCodeLayout->getAnim(0x1c);
ipl::layout::Animator* animator = mpCodeLayout->getAnim(0x1c);
animator->initFrame();
animator->restart();
mState = 4;
@@ -2125,8 +2122,6 @@ state0:
goto state0Common;
case 3:
goto state0Button3;
case 4:
goto done;
default:
goto done;
}
@@ -2158,14 +2153,11 @@ state0Button3: {
nw4r::lyt::Pane* pane = layout->getNW4RLyt()->GetRootPane()->FindPaneByName(paneName, true);
ipl::math::VEC3 position(0.0f, 0.0f, 0.0f);
PSMTXMultVec(pane->GetGlobalMtx(), reinterpret_cast<Vec*>(&position), reinterpret_cast<Vec*>(&position));
f32 xOffset;
f32 scale;
f32 height;
xOffset = 15.0f;
height = 50.0f;
scale = 0.5f;
f32 xOffset = 15.0f;
f32 height = 50.0f;
f32 scale = 0.5f;
position.x = position.x + xOffset;
position.y = position.y + height * scale;
position.y = position.y + scale * height;
(mpBalloon)
->setPos(position, false, 1);
(mpBalloon)->fadein();
@@ -2202,14 +2194,11 @@ state22Button3:
nw4r::lyt::Pane* pane = layout->getNW4RLyt()->GetRootPane()->FindPaneByName(paneName, true);
ipl::math::VEC3 position(0.0f, 0.0f, 0.0f);
PSMTXMultVec(pane->GetGlobalMtx(), reinterpret_cast<Vec*>(&position), reinterpret_cast<Vec*>(&position));
f32 xOffset;
f32 scale;
f32 height;
xOffset = 15.0f;
height = 50.0f;
scale = 0.5f;
f32 xOffset = 15.0f;
f32 height = 50.0f;
f32 scale = 0.5f;
position.x = position.x + xOffset;
position.y = position.y + height * scale;
position.y = position.y + scale * height;
(mpBalloon)
->setPos(position, false, 1);
(mpBalloon)->fadein();
@@ -2258,8 +2247,6 @@ void ipl::scene::AddressEdit::start_left_event(const char* paneName) {
}
break;
}
case 4:
break;
default:
break;
}

View File

@@ -429,38 +429,32 @@ namespace ipl {
}
BOOL Board::appendRecord(CDBRecord* record) {
struct RecordReadState {
BOOL recordInterrupts;
u32 dataSize;
BOOL waitInterrupts;
BOOL slotInterrupts;
int recordSecond;
int recordMin;
int recordHour;
u32 recordGC;
CDBId cdbId;
char recordType[8];
utility::Date recordDate;
CDBRecordKey recordKey;
} state;
state.recordGC = 0;
CDBRecordKey recordKey;
utility::Date recordDate;
int recordDay;
int recordMin;
int recordHour;
u32 recordGC = 0;
cdb::Manager* cdbManager = System::getCdbManager();
BOOL result = TRUE;
state.recordType[0] = 0;
state.recordType[1] = 0;
state.recordType[2] = 0;
state.recordType[3] = 0;
state.recordType[4] = 0;
state.recordType[5] = 0;
state.recordType[6] = 0;
state.recordType[7] = 0;
struct InterruptState {
BOOL first;
BOOL second;
BOOL third;
BOOL result;
} interrupts;
interrupts.result = TRUE;
char recordType[8] = "";
// Get record metadata
CDBRecordGetCalendarTimeForce(record, &state.recordDate.year, &state.recordDate.month, &state.recordDate.day,
&state.recordHour, &state.recordMin, &state.recordSecond);
CDBRecordGetKeyForce(record, &state.recordKey);
CDBRecordGetTypeForce(record, state.recordType);
CDBRecordGetGameCodeForce(record, (char*)&state.recordGC);
CDBRecordGetCalendarTimeForce(record, &recordDate.year, &recordDate.month, &recordDate.day, &recordHour, &recordMin, &recordDay);
CDBRecordGetKeyForce(record, &recordKey);
CDBRecordGetTypeForce(record, recordType);
CDBRecordGetGameCodeForce(record, (char*)&recordGC);
if (mbReading == true && mSearchRecord_Prev.created) {
mbReading = false;
@@ -468,34 +462,34 @@ namespace ipl {
}
// Verify record
if (!cdbManager->isValidType(state.recordType)) {
if (!cdbManager->isValidType(recordType)) {
return TRUE;
}
if (is_already_read(state.recordKey.keyString)) {
if (is_already_read(recordKey.keyString)) {
return TRUE;
}
if (is_exist_keytbl(state.recordKey.keyString)) {
if (is_exist_keytbl(recordKey.keyString)) {
return TRUE;
}
state.recordDate.month++;
if (!(state.recordDate == mCurrentDate)) {
recordDate.month++;
if (!(recordDate == mCurrentDate)) {
goto error;
}
// Find any free space to put the object on screen
state.slotInterrupts = OSDisableInterrupts();
interrupts.first = OSDisableInterrupts();
BOOL exist = is_exist_diff_date();
BoardObject* obj = mObjList.getNextFree();
OSRestoreInterrupts(state.slotInterrupts);
OSRestoreInterrupts(interrupts.first);
if (obj == NULL && exist) {
while (obj == NULL) {
OSSleepMilliseconds((OSTime)1);
state.waitInterrupts = OSDisableInterrupts();
interrupts.second = OSDisableInterrupts();
obj = mObjList.getNextFree();
OSRestoreInterrupts(state.waitInterrupts);
OSRestoreInterrupts(interrupts.second);
}
}
@@ -512,59 +506,61 @@ namespace ipl {
// Get CDB metadata
if (!cdbManager->getDataSize(record, &state.dataSize)) {
u32 dataSize;
if (!cdbManager->getDataSize(record, &dataSize)) {
return TRUE;
}
if (state.dataSize > 0x32000) {
if (dataSize > 0x32000) {
return TRUE;
}
if (!System::getCdbManager()->getCDBId(record, &state.cdbId)) {
CDBId cdbId;
if (!System::getCdbManager()->getCDBId(record, &cdbId)) {
return TRUE;
}
// Read CDB metadata
u8* rbrData = new (obj->mpHeap, DEFAULT_ALIGN) u8[state.dataSize];
u8* rbrData = new (obj->mpHeap, DEFAULT_ALIGN) u8[dataSize];
if (rbrData == NULL) {
return FALSE;
}
if (!cdbManager->read(record, rbrData, state.dataSize)) {
if (!cdbManager->read(record, rbrData, dataSize)) {
delete[] rbrData;
goto close;
}
result = TRUE;
interrupts.result = TRUE;
if (((RBRHeader*)rbrData)->magic == RBR_MAGIC && cdbManager->isValidHeader((RBRHeader*)rbrData)) {
state.recordInterrupts = OSDisableInterrupts();
interrupts.third = OSDisableInterrupts();
if (state.recordDate == mCurrentDate) {
if (recordDate == mCurrentDate) {
if (mbReading == true && mSearchRecord_Prev.created) {
mbReading = false;
delete[] rbrData;
OSRestoreInterrupts(state.recordInterrupts);
OSRestoreInterrupts(interrupts.third);
return FALSE;
}
// Create on screen object
obj->create(mpLayoutFile, rbrData, state.recordGC, state.cdbId, state.recordKey, state.recordDate);
obj->create(mpLayoutFile, rbrData, recordGC, cdbId, recordKey, recordDate);
mObjList.append(obj);
CDBRecordGetCalendarTimeForce(record, &mSearchRecord_Next.year, &mSearchRecord_Next.month, &mSearchRecord_Next.day,
&mSearchRecord_Next.hour, &mSearchRecord_Next.min, &mSearchRecord_Next.sec);
memcpy(&mSearchRecord_Next.key, &state.recordKey, sizeof(CDBRecordKey));
memcpy(&mSearchRecord_Next.key, &recordKey, sizeof(CDBRecordKey));
mSearchRecord_Next.created = true;
if (mSearchRecord_Prev.created == false) {
memcpy(&mSearchRecord_Prev, &mSearchRecord_Next, sizeof(SearchRecord));
}
} else {
result = FALSE;
interrupts.result = FALSE;
delete[] rbrData;
}
OSRestoreInterrupts(state.recordInterrupts);
OSRestoreInterrupts(interrupts.third);
} else {
delete[] rbrData;
}
@@ -588,13 +584,13 @@ namespace ipl {
show_ricon();
}
result = FALSE;
interrupts.result = FALSE;
goto out;
error:
result = FALSE;
interrupts.result = FALSE;
out:
return result;
return interrupts.result;
}
void Board::stt_wait_cdb_init() {

View File

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

View File

@@ -90,12 +90,6 @@ MemCardEventHandler::~MemCardEventHandler() {}
MemoryBaseEvent::MemoryBaseEvent(MemoryBase* memoryBase) : mpBase(memoryBase) {}
} // namespace scene
namespace math {
inline LinearIntp<VEC3>::LinearIntp() {}
}
namespace scene {
void GCWindow::init(const math::VEC3& translate, MemoryCardManager* manager, u8 cardState, short cardIndex) {
mActive = true;
mFlags1[cardState] = 0;
@@ -112,8 +106,8 @@ void GCWindow::init(const math::VEC3& translate, MemoryCardManager* manager, u8
}
int blocks = mpMemoryCardManager->getBlocks(cardState, cardIndex);
DigitTable digitTable = scNumber;
wchar_t decimal[5] = {0};
int blockCount = static_cast<u16>(blocks);
wchar_t decimal[5] = {0};
int skipCount = 0;
wchar_t blockText[5] = {0};
decimal[0] = digitTable.w[blockCount / 1000];
@@ -129,7 +123,8 @@ void GCWindow::init(const math::VEC3& translate, MemoryCardManager* manager, u8
wcscpy(blockText, decimal + skipCount);
set_textbox("T_Block_00", blockText);
mTranslate = translate;
mLinearInterp.init(ANIM_TYPE_FORWARD, 12.0f, 0.0f, mTranslate, math::VEC3(0.0f, 0.0f, 0.0f), 1.0f);
math::VEC3 zero(0.0f, 0.0f, 0.0f);
mLinearInterp.init(ANIM_TYPE_FORWARD, 12.0f, 0.0f, mTranslate, zero, 1.0f);
mLinearInterp.initFrame();
mLinearInterp.restart();
math::VEC3 position = mLinearInterp.get();

View File

@@ -345,10 +345,12 @@ void MemoryCardManager::update_change_cardstate(u8 slot) {
GXTexObj* MemoryCardManager::create_icon(u8 slot, s16 index) {
memorycard::IconState (*icons)[0x7f] = reinterpret_cast<memorycard::IconState(*)[0x7f]>(memorycard::getIconStateArray());
int total = 0;
s16 frame = 0;
u32 file = mFile[slot][index].fileNo;
s16 frame = 0;
do {
total += ((icons[slot][file].anmFrameBits >> (frame++ << 1)) & 3) * 4;
u32 shift = frame << 1;
frame++;
total += ((icons[slot][file].anmFrameBits >> shift) & 3) * 4;
if (mFileCell[slot][file].iconAnmCounter <= total) {
break;
}

View File

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

View File

@@ -66,7 +66,7 @@ namespace ipl {
extern "C" void iplSDChannelObj_playPageHide(SDChannelObj* channel) NO_INLINE;
extern "C" void iplSDChannelObj_resetPageAnim(SDChannelObj* channel, int request) NO_INLINE;
extern "C" void iplSDChannelObj_resetDialogAnim(SDChannelObj* channel, bool request) NO_INLINE;
extern "C" void iplSDChannelObj_applyLanguageGroups(layout::Object* layout) NO_INLINE;
extern "C" void iplSDChannelObj_applyLanguageGroups(const layout::Object* layout) NO_INLINE;
extern "C" void iplSDChannelObj_createBaseLayout(SDChannelObj* channel) NO_INLINE;
extern "C" f32 iplSDChannelObj_createIconLayout(SDChannelObj* channel) NO_INLINE;
extern "C" f32 iplSDChannelObj_createMenuLayout(SDChannelObj* channel) NO_INLINE;
@@ -255,15 +255,15 @@ namespace ipl {
}
}
extern "C" void iplSDChannelObj_applyLanguageGroups(layout::Object* layout) {
extern "C" void iplSDChannelObj_applyLanguageGroups(const layout::Object* layout) {
int lang = System::getLanguage();
const char* langGroup = scLangGroups[lang];
char availableLanguages[10][4] = {};
bool languageFound = false;
for (nw4r::lyt::GroupList::Iterator it = layout->getNW4RLyt()->GetGroupContainer()->GetGroupList().GetBeginIter();
it != layout->getNW4RLyt()->GetGroupContainer()->GetGroupList().GetEndIter(); it++) {
for (nw4r::lyt::GroupList::Iterator it = layout->GetGroupList().GetBeginIter();
it != layout->GetGroupList().GetEndIter(); it++) {
if (strcmp(it->GetName(), langGroup) == 0) {
languageFound = true;
} else {
@@ -295,7 +295,7 @@ namespace ipl {
}
if (languageFound) {
nw4r::lyt::Group* group = layout->getNW4RLyt()->GetGroupContainer()->FindGroupByName(langGroup);
nw4r::lyt::Group* group = layout->FindGroupByName(langGroup);
for (nw4r::lyt::PaneLinkList::Iterator it = group->GetPaneList().GetBeginIter();
it != group->GetPaneList().GetEndIter(); it++) {
it->mTarget->SetVisible(true);
@@ -305,7 +305,7 @@ namespace ipl {
for (int i = 0; i < channel::MAX_ANIMS; i++) {
if (scRegionGroups[region][i] != NULL) {
if (strcmp(scRegionGroups[region][i], availableLanguages[scLangLookup[region][i]]) == 0) {
nw4r::lyt::Group* group = layout->getNW4RLyt()->GetGroupContainer()->FindGroupByName(scRegionGroups[region][i]);
nw4r::lyt::Group* group = layout->FindGroupByName(scRegionGroups[region][i]);
for (nw4r::lyt::PaneLinkList::Iterator it = group->GetPaneList().GetBeginIter();
it != group->GetPaneList().GetEndIter(); it++) {
it->mTarget->SetVisible(true);

View File

@@ -335,7 +335,7 @@ namespace ipl {
return true;
}
bool SDChannelSelect::enqueueChannelNotice(u64 titleId, u32 value) {
bool SDChannelSelect::enqueueChannelNotice(u32 controller, u32 page, u32 index, u32 value) {
if (mCurrentSDState != 6) {
return false;
}
@@ -344,7 +344,7 @@ namespace ipl {
command.type = 10;
command.arguments.values[0] = value;
command.arguments.values[1] = (u32)&mFirstTitleCount;
command.titleId = titleId;
command.titleId = ((u64)page << 32) | index;
mCommandQueue.push(command);
return true;
}
@@ -363,7 +363,7 @@ namespace ipl {
return true;
}
bool SDChannelSelect::enqueueStateNotice(u64 titleId, u32 state) {
bool SDChannelSelect::enqueueStateNotice(u32 controller, u32 page, u32 index, u32 state) {
if (mCurrentSDState != 6) {
return false;
}
@@ -372,7 +372,7 @@ namespace ipl {
command.type = 7;
command.arguments.values[0] = state;
command.arguments.values[1] = 0;
command.titleId = titleId;
command.titleId = ((u64)page << 32) | index;
mCommandQueue.push(command);
return true;
}

View File

@@ -282,7 +282,7 @@ FaderSceneCommand SDChannelTitle::calcFadein() {
if (!mpFade->isPlaying()) {
iplSDChannelTitle_playBannerIntro(this);
SDButton* button = static_cast<SDButton*>(System::getScene(0x24));
button->setEventHandler(mpButtonEventHandler);
button->setEventHandler(mpButtonEventHandler, NULL);
button->animation(13);
button->animation(14);
mState = 1;
@@ -344,7 +344,7 @@ void SDChannelTitle::initCalcFadeout() {
button->animation(15);
button->animation(16);
}
button->setEventHandler(NULL);
button->setEventHandler(NULL, NULL);
}
FaderSceneCommand SDChannelTitle::calcFadeout() {
@@ -736,7 +736,8 @@ extern "C" void iplSDChannelTitle_startCopyProgress(SDChannelTitle* scene) {
if (channel->mStateFlags == 3) {
scene->mState = 26;
scene->mErrorMessage = 0xaf;
} else if (scene->mpChannelSelect->enqueueChannelNotice(scene->mTitleId, reinterpret_cast<u32>(&scene->mTitleRange))) {
} else if (scene->mpChannelSelect->enqueueChannelNotice(0, static_cast<u32>(scene->mTitleId >> 32),
static_cast<u32>(scene->mTitleId), reinterpret_cast<u32>(&scene->mTitleRange))) {
scene->mState = 20;
} else {
scene->mState = 26;
@@ -825,7 +826,8 @@ extern "C" void iplSDChannelTitle_updateCopyStart(SDChannelTitle* scene) {
ESTitleId temporaryTitle = SCGetTmpTitleID();
if (temporaryTitle && scene->mTitleId != temporaryTitle) {
if (System::isReceiveScheduleStopped()) {
if (scene->mpChannelSelect->enqueueStateNotice(temporaryTitle, 1)) {
if (scene->mpChannelSelect->enqueueStateNotice(0, static_cast<u32>(temporaryTitle >> 32),
static_cast<u32>(temporaryTitle), 1)) {
scene->mState = 16;
} else {
scene->mState = 26;
@@ -1463,9 +1465,8 @@ extern "C" BOOL iplSDChannelTitle_passesParentalCheck(SDChannelTitle* scene, EST
return TRUE;
}
void SDTitlePaneEventHandler::onEvent(u32 component, u32 event, void* data) {
SDTitlePaneEventHandler* handler = this;
const controller::Interface* controller = static_cast<const controller::Interface*>(data);
extern "C" void iplSDChannelTitle_onTitlePaneEvent(SDTitlePaneEventHandler* handler, u32 component,
u32 event, const controller::Interface* controller) {
const char* paneName = handler->getPane(component)->GetName();
switch (event) {
case ::gui::EventHandler::ON_TRIG: {
@@ -1523,8 +1524,8 @@ void SDTitlePaneEventHandler::onEvent(u32 component, u32 event, void* data) {
}
}
void SDTitleButtonEventHandler::onEventDerived(u32 component, u32 event, const controller::Interface* controller) {
SDTitleButtonEventHandler* handler = this;
extern "C" void iplSDChannelTitle_onTitleButtonEvent(SDTitleButtonEventHandler* handler, u32 component,
u32 event, const controller::Interface* controller) {
const char* name = handler->getPane(component)->GetName();
switch (event) {
case 0:
@@ -1554,14 +1555,12 @@ void SDChannelTitle::startResetting() {
snd::getSystem()->resetAllSound();
}
extern "C" void iplSDChannelTitle_onTitleButtonEvent(SDTitleButtonEventHandler* handler, u32 component,
u32 event, const controller::Interface* controller) {
handler->onEventDerived(component, event, controller);
void SDTitleButtonEventHandler::onEventDerived(u32 component, u32 event, const controller::Interface* controller) {
iplSDChannelTitle_onTitleButtonEvent(this, component, event, controller);
}
extern "C" void iplSDChannelTitle_onTitlePaneEvent(SDTitlePaneEventHandler* handler, u32 component,
u32 event, const controller::Interface* controller) {
handler->onEvent(component, event, const_cast<controller::Interface*>(controller));
void SDTitlePaneEventHandler::onEvent(u32 component, u32 event, void* data) {
iplSDChannelTitle_onTitlePaneEvent(this, component, event, static_cast<const controller::Interface*>(data));
}
}

View File

@@ -763,7 +763,7 @@ unlock_driver:
int ATERMFindChangedApRecord(AtermApRecordSet* currentRecords, AtermApRecordSet* previousRecords,
u32* changedIndex) {
u32 previousIndex;
u32 currentIndex;
u32 currentIndex = 0;
int found = 0;
int result = 0;
u32 ssidLength;
@@ -774,7 +774,6 @@ int ATERMFindChangedApRecord(AtermApRecordSet* currentRecords, AtermApRecordSet*
AtermApRecord* previousRecord = previousRecords->entries;
currentIndex = 0;
for (; currentIndex < currentRecords->count; currentIndex++) {
AtermSsidBuffer ssidName;
ssidName.clear.word0 = 0;
@@ -817,6 +816,8 @@ int ATERMFindChangedApRecord(AtermApRecordSet* currentRecords, AtermApRecordSet*
int currentHasAoss;
int previousHasAoss;
previousHasAoss = 0;
currentHasAoss = 0;
aossSsidName.clear.word0 = 0;
aossSsidName.clear.word1 = 0;
aossSsidName.clear.word2 = 0;
@@ -826,8 +827,6 @@ int ATERMFindChangedApRecord(AtermApRecordSet* currentRecords, AtermApRecordSet*
aossSsidName.clear.word6 = 0;
aossSsidName.clear.word7 = 0;
aossSsidName.clear.finalWord = 0;
currentHasAoss = 0;
previousHasAoss = 0;
currentRecord = currentRecords->entries;
previousRecord = previousRecords->entries;
@@ -1871,13 +1870,13 @@ int ATERMAesKeyWrap(u16* destination, u16* source, u32 length, void* key, u32 ke
union { u64 value; u8 bytes[8]; } counter;
u32 initialValue[2];
u8* outputBlock;
s32 blockIndex;
s32 blockOffset;
u8* destinationBytes;
const u8* sourceBytes;
s32 pass;
s32 blockCount;
u32 rounds;
s32 blockOffset;
s32 blockCount;
s32 pass;
s32 blockIndex;
int result = 1;
initialValue[1] = 0xA6A6A6A6;
@@ -1896,7 +1895,7 @@ int ATERMAesKeyWrap(u16* destination, u16* source, u32 length, void* key, u32 ke
memcpy(destinationBytes + 8, sourceBytes, length);
memcpy(block.bytes, initialValue, sizeof(initialValue));
for (pass = 0; pass < 6; pass++) {
for (blockIndex = 1, blockOffset = 8; blockIndex <= blockCount; blockIndex++, blockOffset += 8) {
for (blockOffset = 8, blockIndex = 1; blockIndex <= blockCount; blockIndex++, blockOffset += 8) {
u64 passBase = (u64)(s64)blockCount * (u64)(s64)pass;
u8* stateBytes = block.bytes;

View File

@@ -3,7 +3,7 @@
#include "utility/iplCharacterCode.h"
extern "C" {
BOOL USBAPStartRegistration(u64, u32, u32, void*, void (*)(int), u16*, u8*);
BOOL USBAPStartRegistration(void*, void*, u32, u32, void*, void (*)(int), u16*, u8*);
BOOL USBAPCancelRegistration();
BOOL USBAPIsThreadTerminated();
}
@@ -40,7 +40,7 @@ void USBAPRegisterCallback(int result) {
void USBAPThread::Init(unsigned short* buffer, unsigned char* accessPoints) {
int priority = OSGetThreadPriority(OSGetCurrentThread()) + 1;
if (USBAPStartRegistration(0, priority,
if (USBAPStartRegistration(NULL, NULL, priority,
0, this, USBAPRegisterCallback, buffer, accessPoints) == 1) {
OSReport("Registration started\n");
}

View File

@@ -537,16 +537,6 @@ int ODHEncodeRGB565(u8* src, u8* dest, int width, int height, u32 sizeLimit, int
return odh.compressGbaOdh(src, dest, width, height, quality, sizeLimit, work, ODH_FORMAT_RGB565);
}
int ODHEncodeRGBA8(u8* src, u8* dest, int width, int height, u32 sizeLimit, int quality, u8* work) {
CArGBAOdh odh;
return odh.compressGbaOdh(src, dest, width, height, quality, sizeLimit, work, ODH_FORMAT_RGBA8);
}
int ODHEncodeY8U8V8(u8* src, u8* dest, int width, int height, u32 sizeLimit, int quality, u8* work) {
CArGBAOdh odh;
return odh.compressGbaOdh(src, dest, width, height, quality, sizeLimit, work, ODH_FORMAT_Y8U8V8);
}
int ODHDecodeRGB565(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk) {
CArGBAOdh odh;
int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, unk, ODH_FORMAT_RGB565);
@@ -559,12 +549,6 @@ int ODHDecodeRGBA8(u8* src, int srcSize, u8* dest, int destSize, u8* work, int u
return result;
}
int ODHDecodeY8U8V8(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk) {
CArGBAOdh odh;
int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, unk, ODH_FORMAT_Y8U8V8);
return result;
}
int ODHGetWidth(u8* data) {
return (((u32*)data)[1] & 0x7FF) + 7 & 0x7F8;
}
@@ -914,7 +898,8 @@ void CArGBAOdh::cdj_c_setQuantizationTable(SArCDJ_OdhMaster* master, u32 quality
for (i = 0; i < 64; i++) {
temp = ((const u16*)gArAANScales)[i];
temp *= quantization[table * 64 + i];
master->quantizationTables[table * 64 + i] = 0x4000000 / temp;
temp = 0x4000000 / temp;
master->quantizationTables[table * 64 + i] = temp;
}
}
}
@@ -931,7 +916,7 @@ void CArGBAOdh::cdj_c_makeHeader(SArCDJ_OdhMaster* master, u32 size) {
s32 CArGBAOdh::cdj_c_colorConv(SArCDJ_OdhMaster* master, u8* sourceData, int format) {
u32 paddedWidth;
u16 width;
s32 width;
u16 height;
u8* workPlane;
int sourceStride;
@@ -1193,7 +1178,8 @@ s32 CArGBAOdh::huffmanCoder(u16* coefficientInput, SArCDJ_HuffmanRequest* reques
}
}
code = request->dcTable[bitCount];
if (EmitBit(((code & 0xFFFFFF) << bitCount) | (difference & ((1 << bitCount) - 1)), ((s32)code >> 24) + bitCount,
if (EmitBit(((code & 0xFFFFFF) << bitCount) | (difference & ((1 << bitCount) - 1)),
((s32)code >> 24) + bitCount,
request) == ODH_ERROR_80000004) {
return ODH_ERROR_80000004;
}
@@ -1408,7 +1394,7 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
coefficientIndex = odh_natural_order[naturalIndex];
master->coefficients[coefficientIndex] = master->dcCoefficients[naturalIndex];
}
statusOrOffset = ((u32)master->blockY << 6) * (u32)master->blocksWide +
statusOrOffset = (u32)master->blocksWide * ((u32)master->blockY << 6) +
((u32)master->blocksHigh * ((u32)master->blocksWide << 6) +
(u32)master->blockX * 8);
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {

View File

@@ -884,56 +884,64 @@ namespace ipl {
return ret;
}
void ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
static char FUNC_VERIFY_SAVEDATA_ZD[] = "verifySavedataZD";
static char FUNC_DELETE_TICKETS_FORCE[] = "DeleteTicketsForce";
static char FUNC_INIT_SAVEDATA[] = "InitSavedata";
s32 ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
u32 titleCount = 0;
ESTitleId* titleIds = NULL;
char path[88];
NANDFileInfo fileInfo ALIGN32;
u8 ticketViews[0xe0] ALIGN32;
NANDFileInfo fileInfo ALIGN32;
u32 ticketViewCount;
ESTicketView* ticketViewList;
s32 ret = ES_ListTitlesOnCard(NULL, &titleCount);
if (ret == ES_ERR_OK) {
if (ret != ES_ERR_OK) {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard1: %d\n", __FILE__, FUNC_INIT_SAVEDATA, ret);
} else {
titleIds = (ESTitleId*)heap->alloc(OSRoundUp32B(titleCount * sizeof(ESTitleId)), -DEFAULT_ALIGN);
if (titleIds == NULL) {
OSReport("%s::%s: Unable to allocate\n", __FILE__, "InitSavedata");
OSReport("%s::%s: Unable to allocate\n", __FILE__, FUNC_INIT_SAVEDATA);
} else {
ret = ES_ListTitlesOnCard(titleIds, &titleCount);
if (ret == ES_ERR_OK) {
if (ret != ES_ERR_OK) {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard2: %d\n", __FILE__, FUNC_INIT_SAVEDATA, ret);
} else {
u32 titleIdOffset = 0;
for (u32 i = 0; i < titleCount; i++) {
u32 titleIdHi = *(u32*)((u8*)titleIds + titleIdOffset);
u32 titleIdLo = *(u32*)((u8*)titleIds + titleIdOffset + 4);
u32 titleIdHi = *(u32*)((u8*)titleIds + i * 8);
u32 titleIdLo = *(u32*)((u8*)titleIds + i * 8 + 4);
if ((titleIdLo & 0xffffff00) == 0x525a4400 && titleIdHi == 0x10000) {
if (((((ESTitleId)titleIdHi << 32) | titleIdLo) & 0xFFFFFFFFFFFFFF00ULL) == 0x00010000525A4400ULL) {
u8* saveData = NULL;
BOOL fileOpen = FALSE;
BOOL deleteSaveData = FALSE;
sprintf(path - 8, "/title/%08x/%08x/data/%s", titleIdHi & 0xffffff, titleIdLo, "zeldaTp.dat");
sprintf(path, "/title/%08x/%08x/data/%s", titleIdHi & 0xffffff, titleIdLo, "zeldaTp.dat");
if (!ChangeUid(((ESTitleId)titleIdHi << 32) | titleIdLo)) {
OSReport("%s::%s: ChangeUid failed\n", __FILE__, "verifySavedataZD");
OSReport("%s::%s: ChangeUid failed\n", __FILE__, FUNC_VERIFY_SAVEDATA_ZD);
DeleteTitle(heap, ((ESTitleId)titleIdHi << 32) | titleIdLo);
} else {
ret = NANDPrivateOpen(path - 8, (NANDFileInfo*)((u8*)&fileInfo - 0x20), NAND_ACCESS_READ);
ret = NANDPrivateOpen(path, &fileInfo, NAND_ACCESS_READ);
if (ret == NAND_RESULT_NOEXISTS) {
OSReport("%s::%s: Does not exist %s: %d\n", __FILE__, "verifySavedataZD", path - 8, ret);
OSReport("%s::%s: Does not exist %s: %d\n", __FILE__, FUNC_VERIFY_SAVEDATA_ZD, path, ret);
} else if (ret != NAND_RESULT_OK) {
OSReport("%s::%s: Open save data file failed: %d\n", __FILE__, "verifySavedataZD", ret);
OSReport("%s::%s: Open save data file failed: %d\n", __FILE__, FUNC_VERIFY_SAVEDATA_ZD, ret);
} else {
fileOpen = TRUE;
saveData = (u8*)heap->alloc(0x4000, -DEFAULT_ALIGN);
if (saveData == NULL) {
OSReport("%s::%s: Alloc failed: %d\n", __FILE__, "verifySavedataZD", -2);
OSReport("%s::%s: Alloc failed: %d\n", __FILE__, FUNC_VERIFY_SAVEDATA_ZD, -2);
} else {
memset(saveData, 0, 0x4000);
ret = NANDRead((NANDFileInfo*)((u8*)&fileInfo - 0x20), saveData, 0x4000);
ret = NANDRead(&fileInfo, saveData, 0x4000);
if (ret < 0) {
OSReport("%s::%s: Read file failed: %d\n", __FILE__, "verifySavedataZD", ret);
OSReport("%s::%s: Read file failed: %d\n", __FILE__, FUNC_VERIFY_SAVEDATA_ZD, ret);
} else if (ret != 0x4000) {
OSReport("%s::%s: File size is not correct: %d\n", __FILE__, "verifySavedataZD", ret);
OSReport("%s::%s: File size is not correct: %d\n", __FILE__, FUNC_VERIFY_SAVEDATA_ZD, ret);
deleteSaveData = TRUE;
} else {
u32 offset = 8;
@@ -973,13 +981,13 @@ namespace ipl {
verify_failed:
if (!valid) {
OSReport("%s::%s: Verify failed for %016llx\n", __FILE__, "verifySavedataZD",
OSReport("%s::%s: Verify failed for %016llx\n", __FILE__, FUNC_VERIFY_SAVEDATA_ZD,
((ESTitleId)titleIdHi << 32) | titleIdLo);
deleteSaveData = TRUE;
}
}
NANDClose((NANDFileInfo*)((u8*)&fileInfo - 0x20));
NANDClose(&fileInfo);
fileOpen = FALSE;
if (deleteSaveData) {
DeleteSavedata(((ESTitleId)titleIdHi << 32) | titleIdLo, heap);
@@ -992,7 +1000,7 @@ namespace ipl {
heap->free(saveData);
}
if (fileOpen) {
NANDClose((NANDFileInfo*)((u8*)&fileInfo - 0x20));
NANDClose(&fileInfo);
}
ChangeUid(SYSMENU_TITLE_ID);
continue;
@@ -1006,26 +1014,27 @@ namespace ipl {
((((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x0001000844564458ULL ||
((((ESTitleId)titleIdHi << 32) | titleIdLo) > 0x0001000844564458ULL &&
(((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x000100084449534bULL)))) {
ESTitleId titleId = *(ESTitleId*)((u8*)titleIds + titleIdOffset);
ES_DeleteTitle(titleId);
ES_DeleteTitle(*(ESTitleId*)((u8*)titleIds + titleIdOffset));
ESTitleId titleId = *(ESTitleId*)((u8*)titleIds + titleIdOffset);
ticketViewList = NULL;
memset(ticketViews, 0, sizeof(ticketViews));
ESTicketView* ticketView = (ESTicketView*)ticketViews;
memset(ticketView, 0, sizeof(ticketViews));
ret = ES_GetTicketViews(titleId, NULL, &ticketViewCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret, titleId);
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, FUNC_DELETE_TICKETS_FORCE, ret, titleId);
} else if (ticketViewCount != 0) {
ticketViewList = (ESTicketView*)heap->alloc(ticketViewCount * 0xe0, -DEFAULT_ALIGN);
ret = ES_GetTicketViews(titleId, ticketViewList, &ticketViewCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret, titleId);
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, FUNC_DELETE_TICKETS_FORCE, ret, titleId);
} else {
for (u32 j = 0; j < ticketViewCount; j++) {
memcpy(ticketViews, (u8*)ticketViewList + j * sizeof(ESTicketView), 0xd8);
ret = ES_DeleteTicket((ESTicketView*)ticketViews);
memcpy(ticketView, (u8*)ticketViewList + j * sizeof(ESTicketView), 0xd8);
ret = ES_DeleteTicket(ticketView);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_DeleteTicket failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret,
((ESTicketView*)ticketViews)->ticketId);
OSReport("%s::%s: ES_DeleteTicket failed: %d for %016llx\n", __FILE__, FUNC_DELETE_TICKETS_FORCE, ret,
ticketView->ticketId);
}
}
}
@@ -1038,18 +1047,14 @@ namespace ipl {
titleIdOffset += 8;
}
} else {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard2: %d\n", __FILE__, "InitSavedata", ret);
}
}
} else {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard1: %d\n", __FILE__, "InitSavedata", ret);
}
if (titleIds != NULL) {
heap->free(titleIds);
}
return;
return ret;
}
BOOL checkForNullTermination(char* str, u32 len) {

View File

@@ -10,7 +10,7 @@ from pathlib import Path
EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d"
EXPECTED_TOTAL_UNITS = 1027
EXPECTED_TOTAL_CODE = 2995176
EXPECTED_TOTAL_CODE = 2995188
EXPECTED_TOTAL_DATA = 1832684
EXPECTED_TOTAL_FUNCTIONS = 12563
INTEGER_PATTERN = re.compile(r"-?(0|[1-9][0-9]*)\Z")

View File

@@ -96,27 +96,3 @@ Final fetch during verification reached f6fd2780; owned three sources do not dif
Final non-quick gate over all three units PASS. Full 43U build succeeds and DOL SHA1 is 26116613f624061ba99c8d1a299aaa6efa85670d. Regressions 0; forbidden additions 0; readability warnings 0; all pools identical. Keyboard exact functions 31 -> 31, matched code 4752 -> 4752, matched data 8 -> 1176 of 1184; .data 100%. Controller exact 84 -> 84, code 5708 -> 5708, data 80 -> 80 of 696. NHTTP exact 22 -> 22, code 3180 -> 3180, data 16 -> 16 of 720. No instruction-exact function count dropped. Fresh relocation comparison confirms every original keyboard .data relocation matches. Final gate output /tmp/data-d1-r2.final-gate.txt.
Incomplete data sections: keyboard .sdata 85.71429% from extracted empty-string extent; controller .data 92.03601% from linker-discarded weak Interface vtable and unit-boundary alignment; NHTTP .data 99.786476% from last extraction blob covering three tail alignment zeros. No symbol size or section boundary has been changed to improve the score. The all-data-100% goal remains incomplete. Remaining function create is 94.00944%, 318/318 instructions with 210 instruction differences; register allocation, dictionary-loop instruction scheduling, and MemoSetting temporary stack placement still differ. Every remaining function has at least three distinct logged attempts; all thirteen are retained as evidence, with only the data-exact candidate in the source diff.
# Round 3, after #739
Base 775167f4 fetched origin/main before starting. Initial quick gate PASS, DOL SHA1 correct, instruction-exact functions controller 84/84, NHTTP 22/22, keyboard 31/32. Matched data respectively 80/696, 16/720, 1176/1184; matched code respectively 5708/5708, 3180/3180, 4752/6024. All string pools identical. The human explicitly authorizes proven symbol extent corrections that exclude alignment or neighbour bytes while keeping addresses and section totals unchanged. This supersedes earlier rounds' interpretation that every extent correction was forbidden.
Controller proof: lbl_816346A8 -> kDownMember__Q23ipl10controller, same address 0x816346A8 and size 12; Master::down relocations at .text+0xcb6/+0xcc2 load it, and member-pointer words {0,0x14,0} encode Interface::down's vtable offset, byte-identical to the typed source member pointer.
Controller proof: lbl_816346B4 -> kDownTrgMember__Q23ipl10controller, same address 0x816346B4 and size 12; Master::downTrg relocations at .text+0xcf6/+0xd02 load it, and words {0,0x18,0} encode Interface::downTrg, matching the source member pointer.
Controller proof: lbl_816346C0 -> kUpTrgMember__Q23ipl10controller, same address 0x816346C0 and size 12; Master::upTrg relocations at .text+0xd36/+0xd42 load it, and words {0,0x1c,0} encode Interface::upTrg, matching the source member pointer.
Controller proof: lbl_816346CC -> kRepeatMember__Q23ipl10controller, same address 0x816346CC and size 12; Master::repeat relocations at .text+0xd7e/+0xd8a load it, and words {0,0x30,0} encode Interface::repeat, matching the source member pointer.
Controller extent proof: __vt__Q33ipl10controller4Base at unchanged 0x81634880 is 0x8c, not 0x90: the real class has two header words plus 33 virtual entries, with 33 target relocations from +0x08 through final Base::read at +0x88; the compiler emits exactly 140 bytes, and the final unrelocated zero word at +0x8c is alignment before neighbour FreeStyle at 0x81634910. Leave that word unowned, keep .data section size 616 and all addresses unchanged. Extra emitted weak Interface table is ignored, not suppressed.
Controller measurement after proven four renames and Base extent correction: every non-text section 100%, matched_data 696/696. No source or section boundary change.
NHTTP extent proof: lbl_8166D328 stays at 0x8166D328 and spans the real emitted diagnostic string pool from compiler literal @1000 at unit .data+0xb8 through @1126 at +0x29c, a char[33] holding NHTTPDisableVerifyOptionForDebug and its final NUL at +0x2bc; its real pool extent is 0x205, not 0x208. Both objects agree on all 517 bytes in that span and every literal's internal offset; the three bytes +0x2bd..+0x2bf are unreferenced trailing alignment. NHTTPAddHeaderField's .text+0x452/+0x45a relocations reference the pool start; the source's last function references the final ordinary literal. Leave those three alignment bytes unowned, with .data size still 704 and all addresses unchanged. No symbol rename is needed because .data has no relocations and its byte comparison then spans the same emitted pool extent.
NHTTP measurement after proven string-pool extent correction: .data, .sdata, .sbss all 100%, matched_data 720/720; all 22 original functions remain exact in objdiff.
Keyboard extent proof: lbl_816961FC stays at 0x816961FC, with size 2 instead of 4: start's .text+0xf84 and +0xfe4 SDA relocations load the same ordinary empty wchar_t literal for setWCString and setTitleText; wchar_t[1] is 2 bytes in the target ABI, the compiled symbol @17447 is size 2 at identical .sdata+4 with bytes 0000, and the following two zero bytes are section alignment. Leave them unowned; .sdata stays 8 bytes and the entire unit stays 1184 data bytes. The other .sdata object, "arc", already has matching address and four-byte extent; do not rename it or any unrelated compiler literal.
Keyboard measurement after the proven empty-wide-string extent correction: .data, .sdata and .sdata2 all 100%, matched_data 1184/1184; exact-name functions remain 31/32. Controller and NHTTP also retain every non-text section at 100%. All seven metadata edits are backed by the one-line proofs above. No source files, build configuration, split boundaries, addresses, section totals, bytes, or weak-table emission are changed. Remaining keyboard create is code work and is outside this completed data-only lane; prior rounds logged thirteen distinct attempts without reducing its exact function count.
## Round 3 final verification
Clean non-quick gate over controller, NHTTP and keyboard PASS. Full 43U build passes; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Regressions 0, forbidden patterns 0, readability warnings 0, all pools identical. Controller data 80 -> 696/696, instruction-exact 84 -> 84, matched code 5708 -> 5708. NHTTP data 16 -> 720/720, instruction-exact 22 -> 22, matched code 3180 -> 3180. Keyboard data 1176 -> 1184/1184, instruction-exact 31 -> 31, matched code 4752 -> 4752. Fresh report asserts every owned non-text section is 100%, matched_data equals unchanged total_data, and original section sizes are unchanged. Data-lane goal achieved. Remaining keyboard create stays 94.00944%; its instruction differences are outside data scope and its prior thirteen attempts are logged. No new source experiment is needed for this metadata-only lane. Final full gate output /tmp/data-d1-r3.final-gate.txt, final report /tmp/data-d1-r3.final-report.json.

View File

@@ -1,253 +0,0 @@
# data-d10 rework
The prior candidate was rejected for edits outside assigned ownership. This replacement starts from origin/main and resolves symbols by section plus absolute address within splits.txt ranges, never by generated name alone.
## RFL_MiddleDatabase
POOL IDENTICAL up to 0 (mine=0 base=0)
Ownership: extab 0x81330bc0-0x81330c10, extabindex 0x81331b30-0x81331ba8
- extab:0x81330bc0 @2294 -> @2302; 8 bytes unchanged; index relocation identifies updateHDBcallback_, paired length 488, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b30 @2295 -> @2303; 12 bytes unchanged; index relocation identifies updateHDBcallback_, paired length 488, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330bc8 @2312 -> @2320; 8 bytes unchanged; index relocation identifies loadHiddenDataSync_, paired length 372, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b3c @2313 -> @2321; 12 bytes unchanged; index relocation identifies loadHiddenDataSync_, paired length 372, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330bd0 @2327 -> @2335; 8 bytes unchanged; index relocation identifies updateHiddenOld_, paired length 340, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b48 @2328 -> @2336; 12 bytes unchanged; index relocation identifies updateHiddenOld_, paired length 340, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330bd8 @2347 -> @2355; 8 bytes unchanged; index relocation identifies loadHiddenRandomSync_, paired length 316, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b54 @2348 -> @2356; 12 bytes unchanged; index relocation identifies loadHiddenRandomSync_, paired length 316, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330be0 @2373 -> @2381; 8 bytes unchanged; index relocation identifies updateHDBRandcallback_, paired length 404, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b60 @2374 -> @2382; 12 bytes unchanged; index relocation identifies updateHDBRandcallback_, paired length 404, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330be8 @2434 -> @2442; 8 bytes unchanged; index relocation identifies updateHiddenRandom_, paired length 732, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b6c @2435 -> @2443; 12 bytes unchanged; index relocation identifies updateHiddenRandom_, paired length 732, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330bf0 @2447 -> @2455; 8 bytes unchanged; index relocation identifies updateRandom_, paired length 248, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b78 @2448 -> @2456; 12 bytes unchanged; index relocation identifies updateRandom_, paired length 248, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330bf8 @2464 -> @2472; 8 bytes unchanged; index relocation identifies RFLUpdateMiddleDBAsync, paired length 92, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b84 @2465 -> @2473; 12 bytes unchanged; index relocation identifies RFLUpdateMiddleDBAsync, paired length 92, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330c00 @2482 -> @2490; 8 bytes unchanged; index relocation identifies RFLiUpdateMiddleDBAsync, paired length 312, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b90 @2483 -> @2491; 12 bytes unchanged; index relocation identifies RFLiUpdateMiddleDBAsync, paired length 312, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
- extab:0x81330c08 @2497 -> @2505; 8 bytes unchanged; index relocation identifies RFLiGetCharInfoMiddleDB, paired length 156, unwind bytes identical; owned range 0x81330bc0-0x81330c10.
- extabindex:0x81331b9c @2498 -> @2506; 12 bytes unchanged; index relocation identifies RFLiGetCharInfoMiddleDB, paired length 156, unwind bytes identical; owned range 0x81331b30-0x81331ba8.
## RFL_MakeTex
POOL IDENTICAL up to 0 (mine=0 base=0)
Ownership: extab 0x813309c0-0x81330a00, extabindex 0x81331830-0x81331890, .rodata 0x8161d358-0x8161d418, .sdata2 0x816950b0-0x81695170
- extab:0x813309c0 @2834 -> @2842; 8 bytes unchanged; index relocation identifies RFLiSetupCopyTex, paired length 304, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x81331830 @2835 -> @2843; 12 bytes unchanged; index relocation identifies RFLiSetupCopyTex, paired length 304, unwind bytes identical; owned range 0x81331830-0x81331890.
- extab:0x813309c8 @3102 -> @3110; 8 bytes unchanged; index relocation identifies RFLiMakeTexture, paired length 4232, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x8133183c @3103 -> @3111; 12 bytes unchanged; index relocation identifies RFLiMakeTexture, paired length 4232, unwind bytes identical; owned range 0x81331830-0x81331890.
- extab:0x813309d0 @3139 -> @3147; 8 bytes unchanged; index relocation identifies RFLiSetup2DCameraAndParam, paired length 472, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x81331848 @3140 -> @3148; 12 bytes unchanged; index relocation identifies RFLiSetup2DCameraAndParam, paired length 472, unwind bytes identical; owned range 0x81331830-0x81331890.
- extab:0x813309d8 @3153 -> @3161; 8 bytes unchanged; index relocation identifies RFLiSetTev4Mouth, paired length 584, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x81331854 @3154 -> @3162; 12 bytes unchanged; index relocation identifies RFLiSetTev4Mouth, paired length 584, unwind bytes identical; owned range 0x81331830-0x81331890.
- extab:0x813309e0 @3179 -> @3187; 8 bytes unchanged; index relocation identifies RFLiSetTev4Eye, paired length 688, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x81331860 @3180 -> @3188; 12 bytes unchanged; index relocation identifies RFLiSetTev4Eye, paired length 688, unwind bytes identical; owned range 0x81331830-0x81331890.
- extab:0x813309e8 @3227 -> @3235; 8 bytes unchanged; index relocation identifies RFLiSetFaceParts, paired length 1288, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x8133186c @3228 -> @3236; 12 bytes unchanged; index relocation identifies RFLiSetFaceParts, paired length 1288, unwind bytes identical; owned range 0x81331830-0x81331890.
- extab:0x813309f0 @3251 -> @3259; 8 bytes unchanged; index relocation identifies RFLiCapture, paired length 2156, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x81331878 @3252 -> @3260; 12 bytes unchanged; index relocation identifies RFLiCapture, paired length 2156, unwind bytes identical; owned range 0x81331830-0x81331890.
- extab:0x813309f8 @3267 -> @3275; 8 bytes unchanged; index relocation identifies RFLiDrawQuad, paired length 504, unwind bytes identical; owned range 0x813309c0-0x81330a00.
- extabindex:0x81331884 @3268 -> @3276; 12 bytes unchanged; index relocation identifies RFLiDrawQuad, paired length 504, unwind bytes identical; owned range 0x81331830-0x81331890.
## RFL_DataUtility
POOL IDENTICAL up to 0 (mine=0 base=0)
Ownership: extab 0x81330c30-0x81330c58, extabindex 0x81331bd8-0x81331c14, .rodata 0x8161e070-0x8161e080
- extab:0x81330c30 @2175 -> @2183; 8 bytes unchanged; index relocation identifies RFLiCheckValidInfo, paired length 1124, unwind bytes identical; owned range 0x81330c30-0x81330c58.
- extabindex:0x81331bd8 @2176 -> @2184; 12 bytes unchanged; index relocation identifies RFLiCheckValidInfo, paired length 1124, unwind bytes identical; owned range 0x81331bd8-0x81331c14.
- extab:0x81330c38 @2237 -> @2245; 8 bytes unchanged; index relocation identifies RFLiIsValidOnNAND, paired length 44, unwind bytes identical; owned range 0x81330c30-0x81330c58.
- extabindex:0x81331be4 @2238 -> @2246; 12 bytes unchanged; index relocation identifies RFLiIsValidOnNAND, paired length 44, unwind bytes identical; owned range 0x81331bd8-0x81331c14.
- extab:0x81330c40 @2281 -> @2289; 8 bytes unchanged; index relocation identifies RFLiPickupCharInfo, paired length 320, unwind bytes identical; owned range 0x81330c30-0x81330c58.
- extabindex:0x81331bf0 @2282 -> @2290; 12 bytes unchanged; index relocation identifies RFLiPickupCharInfo, paired length 320, unwind bytes identical; owned range 0x81331bd8-0x81331c14.
- extab:0x81330c48 @2298 -> @2306; 8 bytes unchanged; index relocation identifies copyChar2Additional_, paired length 400, unwind bytes identical; owned range 0x81330c30-0x81330c58.
- extabindex:0x81331bfc @2299 -> @2307; 12 bytes unchanged; index relocation identifies copyChar2Additional_, paired length 400, unwind bytes identical; owned range 0x81331bd8-0x81331c14.
- extab:0x81330c50 @2304 -> @2312; 8 bytes unchanged; index relocation identifies RFLGetAdditionalInfo, paired length 84, unwind bytes identical; owned range 0x81330c30-0x81330c58.
- extabindex:0x81331c08 @2305 -> @2313; 12 bytes unchanged; index relocation identifies RFLGetAdditionalInfo, paired length 84, unwind bytes identical; owned range 0x81331bd8-0x81331c14.
## RFL_NWC24
POOL IDENTICAL up to 15 (mine=15 base=15)
Ownership: extab 0x81330c58-0x81330c78, extabindex 0x81331c14-0x81331c44, .data 0x8166f0f0-0x8166f2c8
- extab:0x81330c58 @1981 -> @1986; 8 bytes unchanged; index relocation identifies RFLiNWC24Msg2CharData, paired length 120, unwind bytes identical; owned range 0x81330c58-0x81330c78.
- extabindex:0x81331c14 @1982 -> @1987; 12 bytes unchanged; index relocation identifies RFLiNWC24Msg2CharData, paired length 120, unwind bytes identical; owned range 0x81331c14-0x81331c44.
- extab:0x81330c60 @1990 -> @1995; 8 bytes unchanged; index relocation identifies RFLiSetOfficial2NWC24Msg, paired length 216, unwind bytes identical; owned range 0x81330c58-0x81330c78.
- extabindex:0x81331c20 @1991 -> @1996; 12 bytes unchanged; index relocation identifies RFLiSetOfficial2NWC24Msg, paired length 216, unwind bytes identical; owned range 0x81331c14-0x81331c44.
- extab:0x81330c68 @2044 -> @2049; 8 bytes unchanged; index relocation identifies RFLiNWC24Msg2HiddenAsync, paired length 392, unwind bytes identical; owned range 0x81330c58-0x81330c78.
- extabindex:0x81331c2c @2045 -> @2050; 12 bytes unchanged; index relocation identifies RFLiNWC24Msg2HiddenAsync, paired length 392, unwind bytes identical; owned range 0x81331c14-0x81331c44.
- extab:0x81330c70 @2129 -> @2134; 8 bytes unchanged; index relocation identifies makeNWC24MsgforExchange_, paired length 2256, unwind bytes identical; owned range 0x81330c58-0x81330c78.
- extabindex:0x81331c38 @2130 -> @2135; 12 bytes unchanged; index relocation identifies makeNWC24MsgforExchange_, paired length 2256, unwind bytes identical; owned range 0x81331c14-0x81331c44.
Ownership audit: 54 name-only changes; every changed absolute address is inside exactly one assigned unit range. Addresses, extents, attributes and section totals unchanged. RFL_Model, RFL_Database, RFL_HiddenDatabase and RFL_NANDLoader have no configuration edits.
## Baseline gate
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLFaceLib/src/RFL_MiddleDatabase] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_MiddleDatabase] objdiff: code 3648/3648 data 80/200 functions 13/13 fuzzy 100.0000 linked code 3648
[libs/RVLFaceLib/src/RFL_MiddleDatabase] instruction-exact functions: 13/13
[libs/RVLFaceLib/src/RFL_MiddleDatabase] section .text size 3648 match 100.0
[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extab size 80 match 100.0
[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extabindex size 120 match 95.5
[libs/RVLFaceLib/src/RFL_MiddleDatabase] baseline: code 3648/3648 data 80 functions 13 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_MakeTex] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_MakeTex] objdiff: code 10396/10396 data 448/544 functions 10/10 fuzzy 100.0000 linked code 10396
[libs/RVLFaceLib/src/RFL_MakeTex] instruction-exact functions: 10/10
[libs/RVLFaceLib/src/RFL_MakeTex] section .rodata size 192 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section .sdata2 size 192 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section .text size 10396 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section extab size 64 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section extabindex size 96 match 86.25
[libs/RVLFaceLib/src/RFL_MakeTex] baseline: code 10396/10396 data 448 functions 10 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_DataUtility] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_DataUtility] objdiff: code 2244/2244 data 56/116 functions 6/6 fuzzy 100.0000 linked code 2244
[libs/RVLFaceLib/src/RFL_DataUtility] instruction-exact functions: 6/6
[libs/RVLFaceLib/src/RFL_DataUtility] section .rodata size 16 match 100.0
[libs/RVLFaceLib/src/RFL_DataUtility] section .text size 2244 match 100.0
[libs/RVLFaceLib/src/RFL_DataUtility] section extab size 40 match 100.0
[libs/RVLFaceLib/src/RFL_DataUtility] section extabindex size 60 match 86.0
[libs/RVLFaceLib/src/RFL_DataUtility] baseline: code 2244/2244 data 56 functions 6 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_NWC24] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_NWC24] objdiff: code 2992/2992 data 504/552 functions 5/5 fuzzy 100.0000 linked code 2992
[libs/RVLFaceLib/src/RFL_NWC24] instruction-exact functions: 5/5
[libs/RVLFaceLib/src/RFL_NWC24] section .data size 472 match 100.0
[libs/RVLFaceLib/src/RFL_NWC24] section .text size 2992 match 100.0
[libs/RVLFaceLib/src/RFL_NWC24] section extab size 32 match 100.0
[libs/RVLFaceLib/src/RFL_NWC24] section extabindex size 48 match 92.5
[libs/RVLFaceLib/src/RFL_NWC24] baseline: code 2992/2992 data 504 functions 5 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_Model] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_Model] objdiff: code 7788/7788 data 552/552 functions 15/15 fuzzy 100.0000 linked code 7788
[libs/RVLFaceLib/src/RFL_Model] instruction-exact functions: 15/15
[libs/RVLFaceLib/src/RFL_Model] section .data size 16 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .rodata size 272 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .sdata2 size 64 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .text size 7788 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section extab size 80 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section extabindex size 120 match 100.0
[libs/RVLFaceLib/src/RFL_Model] baseline: code 7788/7788 data 552 functions 15 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_Database] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_Database] objdiff: code 7508/7508 data 688/688 functions 39/39 fuzzy 100.0000 linked code 7508
[libs/RVLFaceLib/src/RFL_Database] instruction-exact functions: 38/39
[libs/RVLFaceLib/src/RFL_Database] section .sdata2 size 8 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section .text size 7508 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section extab size 272 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section extabindex size 408 match 100.0
[libs/RVLFaceLib/src/RFL_Database] baseline: code 7508/7508 data 688 functions 39 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.07103 -> 63.07103
global matched_data_percent: 97.78074 -> 97.78074
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
Independent address audit passed on the actual git diff. The RFL_Model range beginning 0x81330970 and all neighboring unowned ranges retain origin/main names exactly. MakeTex was checked before edits and still had 448/544 matched data, so its eight unwind entries required pairing.
## Fresh report and instruction audit
All 1023 unowned units have identical measures, function results and section results before/after, including Model, Database, HiddenDatabase and NANDLoader. All owned sections are 100%.
- RFL_MiddleDatabase updateHDBcallback_: src 0x1e8 base 0x1e8 insns 122/122; diffs 0: []
- RFL_MiddleDatabase loadHiddenDataSync_: src 0x174 base 0x174 insns 93/93; diffs 0: []
- RFL_MiddleDatabase updateHiddenOld_: src 0x154 base 0x154 insns 85/85; diffs 0: []
- RFL_MiddleDatabase loadHiddenRandomSync_: src 0x13c base 0x13c insns 79/79; diffs 0: []
- RFL_MiddleDatabase updateHDBRandcallback_: src 0x194 base 0x194 insns 101/101; diffs 0: []
- RFL_MiddleDatabase updateHiddenRandom_: src 0x2dc base 0x2dc insns 183/183; diffs 0: []
- RFL_MiddleDatabase updateRandom_: src 0xf8 base 0xf8 insns 62/62; diffs 0: []
- RFL_MiddleDatabase RFLGetMiddleDBBufferSize: src 0x8 base 0x8 insns 2/2; diffs 0: []
- RFL_MiddleDatabase RFLInitMiddleDB: src 0xac base 0xac insns 43/43; diffs 0: []
- RFL_MiddleDatabase RFLUpdateMiddleDBAsync: src 0x5c base 0x5c insns 23/23; diffs 0: []
- RFL_MiddleDatabase RFLiUpdateMiddleDBAsync: src 0x138 base 0x138 insns 78/78; diffs 0: []
- RFL_MiddleDatabase RFLGetMiddleDBStoredSize: src 0x8 base 0x8 insns 2/2; diffs 0: []
- RFL_MiddleDatabase RFLiGetCharInfoMiddleDB: src 0x9c base 0x9c insns 39/39; diffs 0: []
libs/RVLFaceLib/src/RFL_MiddleDatabase: data 80 -> 200/200; instruction-exact 13 -> 13; code 3648 -> 3648/3648.
- RFL_MakeTex RFLiSetupCopyTex: src 0x130 base 0x130 insns 76/76; diffs 0: []
- RFL_MakeTex RFLiMakeTexture: src 0x1088 base 0x1088 insns 1058/1058; diffs 0: []
- RFL_MakeTex RFLiSetup2DCameraAndParam: src 0x1d8 base 0x1d8 insns 118/118; diffs 0: []
- RFL_MakeTex RFLiSetTev4Mouth: src 0x248 base 0x248 insns 146/146; diffs 0: []
- RFL_MakeTex RFLiSetTev4Eye: src 0x2b0 base 0x2b0 insns 172/172; diffs 0: []
- RFL_MakeTex RFLiSetFaceParts: src 0x508 base 0x508 insns 322/322; diffs 0: []
- RFL_MakeTex RFLiCapture: src 0x86c base 0x86c insns 539/539; diffs 0: []
- RFL_MakeTex RFLiDrawQuad: src 0x1f8 base 0x1f8 insns 126/126; diffs 0: []
- RFL_MakeTex RFLiGetMaxMaskRsl: src 0x68 base 0x68 insns 26/26; diffs 0: []
- RFL_MakeTex RFLiGetMaskBufSize: src 0x40 base 0x40 insns 16/16; diffs 0: []
libs/RVLFaceLib/src/RFL_MakeTex: data 448 -> 544/544; instruction-exact 10 -> 10; code 10396 -> 10396/10396.
- RFL_DataUtility copyChar2Additional_: src 0x190 base 0x190 insns 100/100; diffs 0: []
- RFL_DataUtility RFLiCheckValidInfo: src 0x464 base 0x464 insns 281/281; diffs 0: []
- RFL_DataUtility RFLiIsValidOnNAND: src 0x2c base 0x2c insns 11/11; diffs 0: []
- RFL_DataUtility RFLiIsSameFaceCore: src 0x110 base 0x110 insns 68/68; diffs 0: []
- RFL_DataUtility RFLiPickupCharInfo: src 0x140 base 0x140 insns 80/80; diffs 0: []
- RFL_DataUtility RFLGetAdditionalInfo: src 0x54 base 0x54 insns 21/21; diffs 0: []
libs/RVLFaceLib/src/RFL_DataUtility: data 56 -> 116/116; instruction-exact 6 -> 6; code 2244 -> 2244/2244.
- RFL_NWC24 RFLiNWC24Msg2CharData: src 0x78 base 0x78 insns 30/30; diffs 0: []
- RFL_NWC24 RFLiSetOfficial2NWC24Msg: src 0xd8 base 0xd8 insns 54/54; diffs 0: []
- RFL_NWC24 RFLiNWC24Msg2HiddenAsync: src 0x188 base 0x188 insns 98/98; diffs 0: []
- RFL_NWC24 makeNWC24MsgforExchange_: src 0x8d0 base 0x8d0 insns 564/564; diffs 0: []
- RFL_NWC24 RFLiMakeNWC24MsgforExchange: src 0x8 base 0x8 insns 2/2; diffs 0: []
libs/RVLFaceLib/src/RFL_NWC24: data 504 -> 552/552; instruction-exact 5 -> 5; code 2992 -> 2992/2992.
Remaining owned target nonmatching functions: none. Uncertain mappings: none.
## Final full gate
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLFaceLib/src/RFL_MiddleDatabase] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_MiddleDatabase] objdiff: code 3648/3648 data 200/200 functions 13/13 fuzzy 100.0000 linked code 3648
[libs/RVLFaceLib/src/RFL_MiddleDatabase] instruction-exact functions: 13/13
[libs/RVLFaceLib/src/RFL_MiddleDatabase] section .text size 3648 match 100.0
[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extab size 80 match 100.0
[libs/RVLFaceLib/src/RFL_MiddleDatabase] section extabindex size 120 match 100.0
[libs/RVLFaceLib/src/RFL_MiddleDatabase] baseline: code 3648/3648 data 80 functions 13 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_MakeTex] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_MakeTex] objdiff: code 10396/10396 data 544/544 functions 10/10 fuzzy 100.0000 linked code 10396
[libs/RVLFaceLib/src/RFL_MakeTex] instruction-exact functions: 10/10
[libs/RVLFaceLib/src/RFL_MakeTex] section .rodata size 192 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section .sdata2 size 192 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section .text size 10396 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section extab size 64 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] section extabindex size 96 match 100.0
[libs/RVLFaceLib/src/RFL_MakeTex] baseline: code 10396/10396 data 448 functions 10 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_DataUtility] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_DataUtility] objdiff: code 2244/2244 data 116/116 functions 6/6 fuzzy 100.0000 linked code 2244
[libs/RVLFaceLib/src/RFL_DataUtility] instruction-exact functions: 6/6
[libs/RVLFaceLib/src/RFL_DataUtility] section .rodata size 16 match 100.0
[libs/RVLFaceLib/src/RFL_DataUtility] section .text size 2244 match 100.0
[libs/RVLFaceLib/src/RFL_DataUtility] section extab size 40 match 100.0
[libs/RVLFaceLib/src/RFL_DataUtility] section extabindex size 60 match 100.0
[libs/RVLFaceLib/src/RFL_DataUtility] baseline: code 2244/2244 data 56 functions 6 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_NWC24] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_NWC24] objdiff: code 2992/2992 data 552/552 functions 5/5 fuzzy 100.0000 linked code 2992
[libs/RVLFaceLib/src/RFL_NWC24] instruction-exact functions: 5/5
[libs/RVLFaceLib/src/RFL_NWC24] section .data size 472 match 100.0
[libs/RVLFaceLib/src/RFL_NWC24] section .text size 2992 match 100.0
[libs/RVLFaceLib/src/RFL_NWC24] section extab size 32 match 100.0
[libs/RVLFaceLib/src/RFL_NWC24] section extabindex size 48 match 100.0
[libs/RVLFaceLib/src/RFL_NWC24] baseline: code 2992/2992 data 504 functions 5 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_Model] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_Model] objdiff: code 7788/7788 data 552/552 functions 15/15 fuzzy 100.0000 linked code 7788
[libs/RVLFaceLib/src/RFL_Model] instruction-exact functions: 15/15
[libs/RVLFaceLib/src/RFL_Model] section .data size 16 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .rodata size 272 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .sdata2 size 64 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .text size 7788 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section extab size 80 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section extabindex size 120 match 100.0
[libs/RVLFaceLib/src/RFL_Model] baseline: code 7788/7788 data 552 functions 15 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_Database] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_Database] objdiff: code 7508/7508 data 688/688 functions 39/39 fuzzy 100.0000 linked code 7508
[libs/RVLFaceLib/src/RFL_Database] instruction-exact functions: 38/39
[libs/RVLFaceLib/src/RFL_Database] section .sdata2 size 8 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section .text size 7508 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section extab size 272 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section extabindex size 408 match 100.0
[libs/RVLFaceLib/src/RFL_Database] baseline: code 7508/7508 data 688 functions 39 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.07103 -> 63.07103
global matched_data_percent: 97.78074 -> 97.79842
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```

File diff suppressed because it is too large Load Diff

View File

@@ -1,100 +0,0 @@
# Data lane d12
Baseline HEAD and fetched origin/main: 9702056b. Owned sources and symbols unchanged on origin/main. Initial quick full gate PASS, zero regressions, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
| Unit | Exact functions | Code bytes | Data bytes |
| --- | --- | --- | --- |
| src/keyboard/tiHwKeyboard | 10/10 | 4596/4596 | 472/504 |
| libs/RevoEX/src/net/sha1 | 5/5 | 1496/1496 | 16/48 |
| libs/RevoEX/src/net/nettime | 1/1 | 228/228 | 0/8 |
All three pool_diff checks are identical, zero strings. No non-exact functions exist; code experiments are unnecessary for this data assignment.
## tiHwKeyboard
- .bss extent/name mismatch: target lbl_810C8940 has 16 bytes, source @6371 has 12; init .text+0x5a/0x66 and updateShift +0x102/0x10e pass its address as r5 to __register_global_object for LayoutGather singleton. Runtime NMWException.h defines DestructorChain as three 32-bit pointers, hence 12 bytes; trailing four bytes are alignment. Rename to compiler-emitted @6371 and set size 12, preserving section range and bytes.
- .sdata2 extent mismatch: target lbl_81694F00 has four bytes but source @6555 has eight, both contain command 8 followed by zero. updateTriggerKey .text+0x8d8 and source +0x9a0 load the first word for NavigationCommand {u32 command, u32 modifiers}; sizeof is 8, and dynamic modifiers overwrite the second initializer word. Correct extent to eight within existing section, retaining address and all bytes.
- .rodata/.data/.sdata already 100%; no renames needed for automatically paired anonymous symbols or controlKeys. Additional weak singleton storage is linker-deduplicated and ignored.
## sha1
- .rodata extent/name mismatch: NETGetSHA1Interface target .text+0x232/+0x236 and source same offsets load sha1template$2339/interface$143; its data relocations +0x10/+0x14/+0x18 point to NETSHA1Init/NETSHA1Update/NETSHA1GetDigest. DigestInterface contains four u32 fields and three function pointers, sizeof 28; target extent 32 absorbed four trailing alignment bytes. Rename to interface$143 and set size 28, preserving address, section range and bytes.
- .sbss2/.sdata2 already 100%; padlead$2309/endMarker$120 and padalign$2310/zeroBytes$121 are automatically paired by matching code references and need no renames.
## nettime
- .sbss split/name mismatch: target .text+0xc/+0x38/+0x78 uses lbl_81698DB0, +0x18/+0x2c/+0x74 uses lbl_81698DB4; source relocations at identical offsets use whenCached$1061 with addends 0 and 4 respectively. The two words hold the s64 __OSGetSystemTime return in r3:r4 and are compared/added as one s64. Combine into the real eight-byte whenCached$1061 at unchanged 0x81698DB0; remove artificial second-word symbol at 0x81698DB4, preserving section range and bytes.
## Verification after corrections
Quick gate PASS: tiHwKeyboard data 504/504, sha1 data 48/48, nettime data 8/8. All owned non-text sections report 100%; exact functions remain 10/10, 5/5, 1/1. Code bytes remain 4596/4596, 1496/1496, 228/228. Zero global regressions, forbidden patterns, or readability warnings. Only symbol metadata changed; no source edits or split edits.
## Final clean full gate
Command: `python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/keyboard/tiHwKeyboard libs/RevoEX/src/net/sha1 libs/RevoEX/src/net/nettime`
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiHwKeyboard] pool: IDENTICAL
[src/keyboard/tiHwKeyboard] objdiff: code 4596/4596 data 504/504 functions 10/10 fuzzy 100.0000 linked code 4596
[src/keyboard/tiHwKeyboard] instruction-exact functions: 10/10
[src/keyboard/tiHwKeyboard] section .bss size 16 match 100.0
[src/keyboard/tiHwKeyboard] section .data size 288 match 100.0
[src/keyboard/tiHwKeyboard] section .rodata size 176 match 100.0
[src/keyboard/tiHwKeyboard] section .sdata size 8 match 100.0
[src/keyboard/tiHwKeyboard] section .sdata2 size 16 match 100.0
[src/keyboard/tiHwKeyboard] section .text size 4596 match 100.0
[src/keyboard/tiHwKeyboard] baseline: code 4596/4596 data 472 functions 10 fuzzy 100.0000
[libs/RevoEX/src/net/sha1] pool: IDENTICAL
[libs/RevoEX/src/net/sha1] objdiff: code 1496/1496 data 48/48 functions 5/5 fuzzy 100.0000 linked code 1496
[libs/RevoEX/src/net/sha1] instruction-exact functions: 5/5
[libs/RevoEX/src/net/sha1] section .rodata size 32 match 100.0
[libs/RevoEX/src/net/sha1] section .sbss2 size 8 match 100.0
[libs/RevoEX/src/net/sha1] section .sdata2 size 8 match 100.0
[libs/RevoEX/src/net/sha1] section .text size 1496 match 100.0
[libs/RevoEX/src/net/sha1] baseline: code 1496/1496 data 16 functions 5 fuzzy 100.0000
[libs/RevoEX/src/net/nettime] pool: IDENTICAL
[libs/RevoEX/src/net/nettime] objdiff: code 228/228 data 8/8 functions 1/1 fuzzy 100.0000 linked code 228
[libs/RevoEX/src/net/nettime] instruction-exact functions: 1/1
[libs/RevoEX/src/net/nettime] section .sbss size 8 match 100.0
[libs/RevoEX/src/net/nettime] section .text size 228 match 100.0
[libs/RevoEX/src/net/nettime] baseline: code 228/228 data None functions 1 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.07103 -> 63.07103
global matched_data_percent: 97.78074 -> 97.78467
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
All target sections retain their original sizes and bytes. splits.txt unchanged. Every owned symbol remains within its assigned split; only proven object extents and names changed. The two nettime word labels were consolidated into the s64 object rather than dropping data.
## Fresh pool and instruction checks after clean build
```text
src/keyboard/tiHwKeyboard: POOL IDENTICAL up to 0 (mine=0 base=0)
__ct__Q49textinput8keyboard5hwkey10HWKeyboardFPQ29textinput7Manager: src 0x28 base 0x28 insns 10/10; diffs 0: []
init__Q49textinput8keyboard5hwkey10HWKeyboardFv: src 0xa0 base 0xa0 insns 40/40; diffs 0: []
updateShift__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x184 base 0x184 insns 97/97; diffs 0: []
updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x1e8 base 0x1e8 insns 122/122; diffs 0: []
updateRepeatKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x2d0 base 0x2d0 insns 180/180; diffs 0: []
updateTriggerKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x654 base 0x654 insns 405/405; diffs 0: []
updateTappingShift___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager: src 0x244 base 0x244 insns 145/145; diffs 0: []
updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFiffUlUlUlPv: src 0x14 base 0x14 insns 5/5; diffs 0: []
convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw: src 0x20c base 0x20c insns 131/131; diffs 0: []
setLanguage__Q49textinput8keyboard5hwkey10HWKeyboardFQ29textinput11DestinationQ29textinput8Language: src 0x38 base 0x38 insns 14/14; diffs 0: []
libs/RevoEX/src/net/sha1: POOL IDENTICAL up to 0 (mine=0 base=0)
NETSHA1Init: src 0x50 base 0x50 insns 20/20; diffs 0: []
NETSHA1Update: src 0xb4 base 0xb4 insns 45/45; diffs 0: []
NETSHA1GetDigest: src 0x12c base 0x12c insns 75/75; diffs 0: []
NETGetSHA1Interface: src 0xc base 0xc insns 3/3; diffs 0: []
NETSHA1iProcessBlock: src 0x39c base 0x39c insns 231/231; diffs 0: []
libs/RevoEX/src/net/nettime: POOL IDENTICAL up to 0 (mine=0 base=0)
NETGetUniversalCalendar: src 0xe4 base 0xe4 insns 57/57; diffs 0: []
```
Open-function audit: none in any assigned unit. All sixteen functions were already instruction-exact before this data lane and remain exact. No source experiments, new code, or changes to configure.py were needed. All owned non-text sections reach 100% and matched_data equals total_data in each unit. No unresolved uncertainty.

View File

@@ -1,179 +0,0 @@
# data-d13 attempts
Scope: BS2Mach, zi8cgetc, zi8alpha, zi81key. Baseline HEAD 0c94076d; origin/main fetched and scoped diff empty before work. All four pools identical. Before gate PASS, no regressions, retail DOL SHA1 correct.
## zi8alpha
- Rename/extent proof: .text relocations 0x84A HA and 0x84E LO in Zi8_814659E8 load target lbl_81617EA4 and source FrenchExcludePairs, both .rodata offset 0x104. Seven ZiExclusionPair records are 10 bytes each, target/source first 70 bytes identical, trailing six target bytes zero alignment before next unit at 0x81617EF0. Rename to FrenchExcludePairs and correct 76 to 70 bytes; address and split totals unchanged.
## ELF audit src/BS2/BS2Mach
obj non-text sizes: .bss=155232, .data=3024, .sdata=32, .sbss=240
- obj jumptable_8164619C .data+0x3f4 size 52 loaded by CheckDVDCommandStatus+0x5a, CheckDVDCommandStatus+0x62; entries 13; target functions CheckDVDCommandStatus
- obj jumptable_81646338 .data+0x590 size 184 loaded by CheckBS2CommandStatus+0xda, CheckBS2CommandStatus+0xe2; entries 46; target functions CheckBS2CommandStatus
- obj jumptable_816467F4 .data+0xa4c size 92 loaded by BS2Tick+0x12c2, BS2Tick+0x12ca; entries 23; target functions BS2Tick
- obj jumptable_81646850 .data+0xaa8 size 292 loaded by BS2Tick+0x3e, BS2Tick+0x46; entries 73; target functions BS2Tick
src non-text sizes: .data=3020, .bss=155232, .sdata=32, .sbss=236
- src @3618 .data+0x3f4 size 52 loaded by CheckDVDCommandStatus+0x5a, CheckDVDCommandStatus+0x62; entries 13; target functions CheckDVDCommandStatus
- src @3695 .data+0x590 size 184 loaded by CheckBS2CommandStatus+0xda, CheckBS2CommandStatus+0xe2; entries 46; target functions CheckBS2CommandStatus
- src @3972 .data+0xaa8 size 292 loaded by BS2Tick+0x3e, BS2Tick+0x46; entries 73; target functions BS2Tick
- src @3973 .data+0xa4c size 92 loaded by BS2Tick+0x12ae, BS2Tick+0x12b6; entries 23; target functions BS2Tick
## ELF audit libs/RVLMiddleware/eZiText/src/clib/zi8cgetc
obj non-text sizes: extab=48, extabindex=72, .data=392, .sdata2=16, .sbss2=8
- obj jumptable_8166AA88 .data+0x0 size 44 loaded by zi8InternalGetZH+0x76d2, zi8InternalGetZH+0x76d6; entries 11; target functions zi8InternalGetZH
- obj jumptable_8166AAB4 .data+0x2c size 44 loaded by zi8InternalGetZH+0x5436, zi8InternalGetZH+0x543a; entries 11; target functions zi8InternalGetZH
- obj jumptable_8166AAE0 .data+0x58 size 160 loaded by zi8InternalGetZH+0x11be, zi8InternalGetZH+0x11c2; entries 40; target functions zi8InternalGetZH
- obj jumptable_8166AB80 .data+0xf8 size 144 loaded by zi8InternalGetZH+0x102e, zi8InternalGetZH+0x1032; entries 36; target functions zi8InternalGetZH
src non-text sizes: extab=48, extabindex=72, .data=392, .sdata2=16, .sbss2=8
- src @2792 .data+0xf8 size 144 loaded by zi8InternalGetZH+0x1032, zi8InternalGetZH+0x1036; entries 36; target functions zi8InternalGetZH
- src @2793 .data+0x58 size 160 loaded by zi8InternalGetZH+0x11c2, zi8InternalGetZH+0x11c6; entries 40; target functions zi8InternalGetZH
- src @2794 .data+0x2c size 44 loaded by zi8InternalGetZH+0x543e, zi8InternalGetZH+0x5442; entries 11; target functions zi8InternalGetZH
- src @2795 .data+0x0 size 44 loaded by zi8InternalGetZH+0x76d6, zi8InternalGetZH+0x76da; entries 11; target functions zi8InternalGetZH
## ELF audit libs/RVLMiddleware/eZiText/src/clib/zi8alpha
obj non-text sizes: extab=72, extabindex=108, .rodata=336, .data=48
- obj jumptable_8166AA58 .data+0x0 size 48 loaded by Zi8AlphaGetCandidates+0x18b2, Zi8AlphaGetCandidates+0x18b6; entries 12; target functions Zi8AlphaGetCandidates
src non-text sizes: extab=72, extabindex=108, .rodata=330, .data=48
- src @1527 .data+0x0 size 48 loaded by Zi8AlphaGetCandidates+0x18ae, Zi8AlphaGetCandidates+0x18b2; entries 12; target functions Zi8AlphaGetCandidates
## ELF audit libs/RVLMiddleware/eZiText/src/clib/zi81key
obj non-text sizes: extab=72, extabindex=108, .rodata=1152, .data=48, .sdata2=8
- obj jumptable_8166AA28 .data+0x0 size 44 loaded by Zi8Get1KeyPressCandidates+0x3aa, Zi8Get1KeyPressCandidates+0x3ae; entries 11; target functions Zi8Get1KeyPressCandidates
- obj extabindex function extents [492, 628, 388, 1364, 200, 324, 6800, 9588, 1676]
src non-text sizes: extab=72, extabindex=108, .rodata=1152, .data=44, .sdata2=8
- src @1359 .data+0x0 size 44 loaded by Zi8Get1KeyPressCandidates+0x3aa, Zi8Get1KeyPressCandidates+0x3ae; entries 11; target functions Zi8Get1KeyPressCandidates
- src extabindex function extents [492, 628, 388, 1364, 200, 324, 6796, 9548, 1676]
Rename-only control, original 76-byte extent: {"fuzzy_match_percent": 94.17153, "total_code": "21664", "matched_code": "5704", "matched_code_percent": 26.329395, "total_data": "564", "matched_data": "180", "matched_data_percent": 31.914892, "total_functions": 12, "matched_functions": 10, "matched_functions_percent": 83.33333, "total_units": 1}; [{"name": ".data", "size": "48", "metadata": {}}, {"name": ".rodata", "size": "336", "fuzzy_match_percent": 99.0991, "metadata": {}}, {"name": ".text", "size": "21664", "fuzzy_match_percent": 94.17153, "metadata": {}}, {"name": "extab", "size": "72", "fuzzy_match_percent": 100.0, "metadata": {}}, {"name": "extabindex", "size": "108", "fuzzy_match_percent": 100.0, "metadata": {}}]
Extent-only control, extracted name: {"fuzzy_match_percent": 94.17153, "total_code": "21664", "matched_code": "5704", "matched_code_percent": 26.329395, "total_data": "564", "matched_data": "516", "matched_data_percent": 91.489365, "total_functions": 12, "matched_functions": 10, "matched_functions_percent": 83.33333, "total_units": 1}; [{"name": ".data", "size": "48", "metadata": {}}, {"name": ".rodata", "size": "336", "fuzzy_match_percent": 100.0, "metadata": {}}, {"name": ".text", "size": "21664", "fuzzy_match_percent": 94.17153, "metadata": {}}, {"name": "extab", "size": "72", "fuzzy_match_percent": 100.0, "metadata": {}}, {"name": "extabindex", "size": "108", "fuzzy_match_percent": 100.0, "metadata": {}}]
## Classification and scope boundary
BS2Mach: .bss/.sdata/.sbss already 100%. Target .data string objects at offsets 0x0, 0x22, 0x3C, 0x428, 0x452, 0x648, 0x669 are anonymous compiler string-pool ranges, several containing multiple literals. All 91 ordinary literal contents and offsets agree. Source symbols are compiler-generated @ identifiers, not real typed object names. Do not rename these extracted objects to unstable compiler identifiers or shrink aggregate pool extents. Four jump tables are compiler-generated switch data. The CheckDVDCommandStatus table has an exact owning function; remaining tables have code-relative relocations into non-exact CheckBS2CommandStatus and BS2Tick. No safe real-name correction exists for any remaining .data symbol. Four trailing .data bytes and four trailing .sbss bytes are split alignment, not missing objects.
zi8cgetc: .sdata2/.sbss2/extab/extabindex already 100%. All four .data objects are switch tables whose entries relocate into non-exact zi8InternalGetZH; same table offsets/sizes, displaced basic blocks. Matching these requires code work. No real named object or initializer is missing. Compiler @ names are not authorized rename targets.
zi8alpha: .rodata now 100%, extab/extabindex already 100%. Remaining 48-byte .data object is a 12-entry switch table owned by non-exact Zi8AlphaGetCandidates. Its code-relative relocation destinations require code matching, not a data extent change. No ordinary initializer difference remains.
zi81key: .rodata/.data/.sdata2/extab already 100%. Only extabindex differs, exactly at function-size fields for Zi8Get1KeyPressSpelling (source 6796, target 6800) and Zi8Get1KeyPressCandidates (source 9548, target 9588). These are genuine generated code-length fields. Never edit function extents or unwind data to disguise missing instructions. Source tables and type names already agree. No data edit can resolve these lengths.
Control results: extent correction alone restores .rodata 100% and matched_data 180 -> 516; name-only correction does not. Both are retained because the HA/LO relocation proof identifies the actual FrenchExcludePairs object. No source change is required. Data total remains 564, split endpoints remain unchanged, and the six alignment bytes remain unowned by the corrected symbol.
## Open-function attempt coverage inherited from tracked logs
No source tuning is undertaken in this data assignment. All open functions already have at least three measured, distinct source attempts recorded in tracked logs; the summaries below preserve that coverage without repeating rejected experiments.
BS2Mach.attempts.md, Remaining-function attempt coverage:
- Run: per-block do/while cache calls; counted for loop; bulk cache zero/flush. Register-clearing trampoline remains outside portable C.
- BS2StartGame: target-shaped nested error branches; switch result dispatch; nested polling via DVD status APIs. Calls/reloads/scheduling remain.
- BS2StartGCGame: config/SRAM/MIOS implementation; reversed multiply operands with 64-bit MIOS vararg; separate timer locals and DVD polling. Reload/scheduling remains.
- CheckBS2CommandStatus: per-state paths/shared exit; direct returns; precompute chunk length. Reload/scheduling remains.
- BS2Tick: object-order state switch; typed disk/partition scan; region switch plus forward ticket scan. State branch/register scheduling remains.
zi8cgetc.current.attempts.md:
- ZiMatchZHSpelling: unsigned candidate character length; long spelling match result; long candidate character length; 18 measured trials, register-only plateau.
- zi8InternalGetZH: initialize all engine locals at declaration; charset-only declaration initialization; phase/output-index declaration initialization; 19 initial measured trials plus relocation-aware g20-g22 fixes. Engine register choices/call-result moves remain.
- Zi8GetElementCount: explicit remaining-character condition; direct separator local; compound count increments; 12 measured trials, register-only plateau.
zi8alpha.attempts.md:
- Zi8ChangeWordCase: integer case flag; byte case flag; separate flag declaration/assignment. Register-only plateau.
- Zi8AlphaGetCandidates: reverse declarations; five byte state flags; explicit phonetic separator switch. Many subsequent complete-body improvements landed; current branch/register differences remain.
zi81key.attempts.md:
- Zi8SpellingZY: flat row indexing; typed row pointer; generic output formal. Six register differences remain.
- Zi8SpellingPY: initialize length before components; signed tone; decode tone after spelling rows. Later work improved it, current register allocation remains.
- Zi8Get1KeyPressSpelling: compound cursor postincrement; constant-first language tests; index increment in for header. One missing instruction and fallback-call scheduling remain.
- Zi8Get1KeyPressCandidates: halfword key/byte length formals; explicit PCode halfword casts/masks; preincrement capacity comparisons. Ten missing instructions and scheduling remain.
Data goal is not complete. No prohibited symbol renames, guessed objects, padding, forced sections, code-size changes, or assembly were used. This candidate is a focused 336-byte data-measure gain and leaves every instruction-exact count unchanged.
## Final fresh validation
BS2Mach pool contents AND offsets identical for all 91 strings. French table reader Zi8_814659E8: ctxdiff 51/51 instructions, diffs 0.
- main/src/BS2/BS2Mach: exact functions 24 -> 24, code 4940 -> 4940, data 155504 -> 155504 / 158528.
- Open Run 16.744186%; prior distinct source-attempt coverage listed above.
- Open BS2StartGame 95.496185%; prior distinct source-attempt coverage listed above.
- Open BS2StartGCGame 99.5614%; prior distinct source-attempt coverage listed above.
- Open CheckBS2CommandStatus 99.50739%; prior distinct source-attempt coverage listed above.
- Open BS2Tick 98.15876%; prior distinct source-attempt coverage listed above.
- main/libs/RVLMiddleware/eZiText/src/clib/zi81key: exact functions 5 -> 5, code 3952 -> 3952, data 1280 -> 1280 / 1388.
- Open Zi8SpellingZY 99.756096%; prior distinct source-attempt coverage listed above.
- Open Zi8SpellingPY 99.36306%; prior distinct source-attempt coverage listed above.
- Open Zi8Get1KeyPressSpelling 97.92647%; prior distinct source-attempt coverage listed above.
- Open Zi8Get1KeyPressCandidates 95.39716%; prior distinct source-attempt coverage listed above.
- main/libs/RVLMiddleware/eZiText/src/clib/zi8alpha: exact functions 10 -> 10, code 5704 -> 5704, data 180 -> 516 / 564.
- Open Zi8ChangeWordCase 99.09091%; prior distinct source-attempt coverage listed above.
- Open Zi8AlphaGetCandidates 92.01039%; prior distinct source-attempt coverage listed above.
- main/libs/RVLMiddleware/eZiText/src/clib/zi8cgetc: exact functions 5 -> 5, code 4168 -> 4168, data 144 -> 144 / 536.
- Open ZiMatchZHSpelling 98.80165%; prior distinct source-attempt coverage listed above.
- Open zi8InternalGetZH 95.99054%; prior distinct source-attempt coverage listed above.
- Open Zi8GetElementCount 99.347824%; prior distinct source-attempt coverage listed above.
Final non-quick gate output:
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/BS2/BS2Mach] pool: IDENTICAL
[src/BS2/BS2Mach] objdiff: code 4940/16980 data 155504/158528 functions 24/29 fuzzy 97.8276 linked code 0
[src/BS2/BS2Mach] instruction-exact functions: 24/29
[src/BS2/BS2Mach] section .bss size 155232 match 100.0
[src/BS2/BS2Mach] section .data size 3024 match None
[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 97.82756
[src/BS2/BS2Mach] below 100: Run 16.744186
[src/BS2/BS2Mach] below 100: BS2StartGame 95.496185
[src/BS2/BS2Mach] below 100: BS2StartGCGame 99.5614
[src/BS2/BS2Mach] below 100: CheckBS2CommandStatus 99.50739
[src/BS2/BS2Mach] below 100: BS2Tick 98.15876
[src/BS2/BS2Mach] baseline: code 4940/16980 data 155504 functions 24 fuzzy 97.8276
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] objdiff: code 4168/47816 data 144/536 functions 5/8 fuzzy 96.4008 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] instruction-exact functions: 5/8
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .data size 392 match None
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sbss2 size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .sdata2 size 16 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section .text size 47816 match 96.40079
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extab size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] section extabindex size 72 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: ZiMatchZHSpelling 98.80165
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: zi8InternalGetZH 95.99054
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] below 100: Zi8GetElementCount 99.347824
[libs/RVLMiddleware/eZiText/src/clib/zi8cgetc] baseline: code 4168/47816 data 144 functions 5 fuzzy 96.4008
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] objdiff: code 5704/21664 data 516/564 functions 10/12 fuzzy 94.1715 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] instruction-exact functions: 10/12
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .data size 48 match None
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .rodata size 336 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section .text size 21664 match 94.17153
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section extab size 72 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] section extabindex size 108 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] below 100: Zi8ChangeWordCase 99.09091
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] below 100: Zi8AlphaGetCandidates 92.01039
[libs/RVLMiddleware/eZiText/src/clib/zi8alpha] baseline: code 5704/21664 data 180 functions 10 fuzzy 94.1715
[libs/RVLMiddleware/eZiText/src/clib/zi81key] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi81key] objdiff: code 3952/21460 data 1280/1388 functions 5/9 fuzzy 97.2622 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi81key] instruction-exact functions: 5/9
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .data size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .rodata size 1152 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .sdata2 size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section .text size 21460 match 97.26225
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section extab size 72 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi81key] section extabindex size 108 match 98.14815
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8SpellingZY 99.756096
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8SpellingPY 99.36306
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8Get1KeyPressSpelling 97.92647
[libs/RVLMiddleware/eZiText/src/clib/zi81key] below 100: Zi8Get1KeyPressCandidates 95.39716
[libs/RVLMiddleware/eZiText/src/clib/zi81key] baseline: code 3952/21460 data 1280 functions 5 fuzzy 97.2622
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.16065 -> 63.16065
global matched_data_percent: 98.18649 -> 98.20482
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```

View File

@@ -1,114 +0,0 @@
# Data d14 attempts
Baseline origin/main checked after fetch; assigned source and symbol entries unchanged from HEAD. Baseline full build and DOL hash passed.
zkokeyp: data 96/180; instruction-exact 1/7; code 332/5200.
zprepare: data 8/68; instruction-exact 0/1; code 0/3760.
tiTextDrawer: data 1560/1608; instruction-exact 24/24; code 3476/3476.
All three pool_diff.py comparisons identical, zero strings.
## Classification
zkokeyp .data: 40-byte compiler jump table, all ten relocation addends into exact Zi8_81483118 identical; no name mismatch. extab: 56 bytes identical. extabindex: function lengths differ for Zi8_814834AC (1376 vs 1372) and Zi8GetKOcandidates (2692 vs 2676). Remaining gap is code-dependent unwind data, not an initializer or symbol extent error.
zprepare .data: 48-byte compiler jump table, all twelve relocation addends into non-exact Zi8PrepareMatch shifted -16 bytes; real code-position mismatch. extab identical; extabindex function length 3756 vs 3760. No proven data symbol rename.
tiTextDrawer .bss and .data identical; .sdata2 first 44 bytes identical. Final float literal extent absorbs four trailing alignment bytes.
Proof: lbl_81694E08 at .sdata2:0x81694E08 is loaded by lfs in beginDraw, source float 100.0f is compiler @2181 size 4 with bytes 42c80000; target extent 8 includes 00000000 alignment through unchanged split end 0x81694E10. Correct size to 4, preserve address and section total 48.
Zi8_8148302C: 1 widen table count local: objdiff 96.52542%; data 96/180; exact 1/7; ['src 0xe8 base 0xec insns 58/59', '--- replace mine 7:8 base 7:8']; reverted
Zi8_8148302C: 2 reverse local declaration order: objdiff 99.32204%; data 96/180; exact 1/7; ['src 0xec base 0xec insns 59/59', 'diffs 8: [7, 12, 14, 32, 34, 38, 44, 49]']; reverted
Zi8_8148302C: 3 typed entry character access: objdiff 93.81356%; data 96/180; exact 1/7; ['src 0xe4 base 0xec insns 57/59', '--- replace mine 6:8 base 6:8']; reverted
Zi8_81483264: 1 widen scratch index: objdiff 93.65854%; data 96/180; exact 1/7; ['src 0x9c base 0xa4 insns 39/41', '--- replace mine 6:7 base 6:7']; reverted
Zi8_81483264: 2 pointer typed scratch alias: objdiff 88.268295%; data 40/180; exact 1/7; ['src 0xac base 0xa4 insns 43/41', '--- replace mine 6:11 base 6:9']; reverted
Zi8_81483264: 3 scope loop index initialization: objdiff 91.46342%; data 96/180; exact 1/7; ['src 0xa0 base 0xa4 insns 40/41', '--- replace mine 6:7 base 6:7']; reverted
Zi8_81483308: 1 widen scratch index: objdiff 95.43104%; data 96/180; exact 1/7; ['src 0xe0 base 0xe8 insns 56/58', '--- replace mine 7:8 base 7:8']; reverted
Zi8_81483308: 2 pointer typed scratch alias: objdiff 93.10345%; data 40/180; exact 1/7; ['src 0xe4 base 0xe8 insns 57/58', '--- replace mine 6:10 base 6:9']; reverted
Zi8_81483308: 3 scope loop index initialization: objdiff 93.86207%; data 96/180; exact 1/7; ['src 0xe4 base 0xe8 insns 57/58', '--- replace mine 7:8 base 7:8']; reverted
Zi8_814833F0: 1 widen scratch index: objdiff 94.46809%; data 96/180; exact 1/7; ['src 0xb4 base 0xbc insns 45/47', '--- replace mine 6:7 base 6:7']; reverted
Zi8_814833F0: 2 pointer typed scratch alias: objdiff 89.87234%; data 40/180; exact 1/7; ['src 0xc4 base 0xbc insns 49/47', '--- replace mine 6:8 base 6:7']; reverted
Zi8_814833F0: 3 scope loop index initialization: objdiff 92.53191%; data 96/180; exact 1/7; ['src 0xb8 base 0xbc insns 46/47', '--- replace mine 6:7 base 6:7']; reverted
Zi8_814834AC: 1 initialize packed keys in narrow to wide order: objdiff 98.77551%; data 96/180; exact 1/7; ['src 0x560 base 0x55c insns 344/343', '--- replace mine 9:10 base 9:10']; reverted
Zi8_814834AC: 2 split packed keys initialization: objdiff 99.3586%; data 96/180; exact 1/7; ['src 0x560 base 0x55c insns 344/343', '--- replace mine 9:10 base 9:10']; reverted
Zi8_814834AC: 3 reverse character expression operands: objdiff 98.755104%; data 96/180; exact 1/7; ['src 0x560 base 0x55c insns 344/343', '--- replace mine 9:10 base 9:10']; reverted
Zi8GetKOcandidates: 1 chain packed keys initialization: objdiff 97.67564%; data 96/180; exact 1/7; ['src 0xa84 base 0xa74 insns 673/669', '--- delete mine 11:13 base 11:11']; reverted
Zi8GetKOcandidates: 2 reorder key pointer declarations: objdiff 97.96712%; data 96/180; exact 1/7; ['src 0xa84 base 0xa74 insns 673/669', '--- replace mine 11:13 base 11:13']; reverted
Zi8GetKOcandidates: 3 reverse key initialization order: objdiff 97.66816%; data 96/180; exact 1/7; ['src 0xa84 base 0xa74 insns 673/669', '--- delete mine 11:13 base 11:11']; reverted
Zi8PrepareMatch: 1 split element load and component assignment: objdiff 96.297874%; data 8/68; ['src 0xeac base 0xeb0 insns 939/940', '--- replace mine 11:13 base 11:13']; reverted
Zi8PrepareMatch: 2 use indexed component address expression: objdiff 96.319145%; data 8/68; ['src 0xeac base 0xeb0 insns 939/940', '--- replace mine 11:13 base 11:13']; reverted
Zi8PrepareMatch: 3 factor component length calculation into typed local: objdiff 95.607445%; data 8/68; ['src 0xeb4 base 0xeb0 insns 941/940', '--- replace mine 10:13 base 10:13']; reverted
## Final open-function audit
Zi8_8148302C: three distinct built source trials recorded above; no accepted code change.
Zi8_81483264: three distinct built source trials recorded above; no accepted code change.
Zi8_81483308: three distinct built source trials recorded above; no accepted code change.
Zi8_814833F0: three distinct built source trials recorded above; no accepted code change.
Zi8_814834AC: three distinct built source trials recorded above; no accepted code change.
Zi8GetKOcandidates: three distinct built source trials recorded above; no accepted code change.
Zi8PrepareMatch: three distinct built source trials recorded above; no accepted code change.
First four Korean helpers retain instruction counts and differ only in callee-saved register assignment. Zi8_814834AC retains an extra zero-extension and register differences. Zi8GetKOcandidates retains initialization, operand ordering, and branch/code-size differences. Zi8PrepareMatch retains code-position and instruction differences; target writes a component-present byte at stack+0xF twice but never reads it. No dummy local or forced instruction was added to reproduce those writes.
No remaining target data symbol has a proven real-name mismatch. zkokeyp and zprepare residual non-text gaps require code matching; no address or section extent was changed there. tiTextDrawer is now 1608/1608 data with all non-text sections 100%; all 24 instruction-exact functions remain exact.
## Final full gate
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 96/180 functions 1/7 fuzzy 98.6539 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .data size 40 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 98.65385
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.3586
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 97.96712
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data 96 functions 1 fuzzy 98.6539
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 96.3191 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 96.319145
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 91.66667
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 96.319145
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 96.3191
[src/keyboard/tiTextDrawer] pool: IDENTICAL
[src/keyboard/tiTextDrawer] objdiff: code 3476/3476 data 1608/1608 functions 24/24 fuzzy 100.0000 linked code 3476
[src/keyboard/tiTextDrawer] instruction-exact functions: 24/24
[src/keyboard/tiTextDrawer] section .bss size 1408 match 100.0
[src/keyboard/tiTextDrawer] section .data size 152 match 100.0
[src/keyboard/tiTextDrawer] section .sdata2 size 48 match 100.0
[src/keyboard/tiTextDrawer] section .text size 3476 match 100.0
[src/keyboard/tiTextDrawer] baseline: code 3476/3476 data 1560 functions 24 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.16065 -> 63.16065
global matched_data_percent: 98.18649 -> 98.18910
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
Full clean 43U rebuild passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Regression count 0. All experimental source changes reverted. Only the proven float extent correction is retained.

File diff suppressed because one or more lines are too long

View File

@@ -297,214 +297,3 @@ GATE PASS
Before -> after: iplSetting data 1040 -> 1680, instruction-exact 105 -> 105, code 30760 -> 30760; iplUSBAP data 40 -> 4984, instruction-exact 4 -> 4, code 988 -> 988; ATERM data 18504 -> 18504, instruction-exact 14 -> 14, code 9296 -> 9296; AOSS data 3896 -> 3928, instruction-exact 15 -> 15, code 6436 -> 6436.
Net data gain 5616 bytes. All 22 remaining nonexact functions have three distinct compiled source trials. USBAP and AOSS data goals are complete. iplSetting .data and ATERM .data/.sbss remain open.
# Data lane round 2
Base 775167f4. Fetched origin/main 12960310; the intervening progress commit changes none of the four assigned units or symbols. Applied unslop to the log and final report. All four initial pools are identical. This round permits proven symbol extent corrections while retaining every address and section total, as explicitly requested.
Initial matched_data: iplSetting 1680/5696; ATERM 18504/18864; NHTTP_os_RVL 8/72; iplDate 316/356. Code bytes are 30760, 9296, 548, 2868 respectively.
## Proven extent corrections
- iplDate mscMaxDate at .bss:0x810B7324, extent 28 -> 12: utility::Date contains exactly three int fields at 0, 4, 8; its static initializer calls the Date constructor at that address, and the compiler object's mscMaxDate is 12 bytes. The following 16 bytes remain in the same 40-byte section, unowned by mscMaxDate.
- ATERM gAtermSelectedBssid at .sbss:0x81698CD4, extent 8 -> 6: ATERMDiscoverAccessPoints and ATERMBuildAssociationRequest copy exactly six MAC-address bytes; the source object is u8[6] at the identical +0x44 offset. Cancellation remains +0x4c and the two intervening alignment bytes remain in the unchanged 80-byte section.
- NHTTP_os_RVL .data:0x8166D100, lbl_8166D100 -> __FUNCTION__$378 and extent 64 -> 26: exact NHTTPi_CheckCurrentThread loads this section base at .text+0x17a/+0x17e, passes its zero-offset "NHTTPi_CheckCurrentThread" literal as OSReport's second argument, and the source compiler emits that 26-byte char literal under __FUNCTION__$378; following format/file literals and alignment remain in the unchanged 64-byte section.
- iplSetting __vt__Q33ipl5scene7Setting at .data:0x8165779C, extent 252 -> 104: the source class has 26 vtable words including both base-table ABI headers, matching the retail vtable's 22 function relocations and four header words; the following 148 bytes are linker-deduplicated weak vtables, not Setting slots. Addresses and the 4016-byte section are unchanged.
## iplSetting data identity proofs
- .data:0x81656928, lbl_81656928 -> @16807, extent 13 -> 13: char[13] literal 'G_ListUpDown'; retail incoming relocation .data+0x90, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656935, lbl_81656935 -> @16808, extent 12 -> 12: char[12] literal 'G_ListInOut'; retail incoming relocation .data+0x94, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656941, lbl_81656941 -> @16821, extent 9 -> 9: char[9] literal 'G_Denpa1'; retail incoming relocation .data+0xc8, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165694A, lbl_8165694A -> @16822, extent 9 -> 9: char[9] literal 'G_Denpa2'; retail incoming relocation .data+0xcc, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656953, lbl_81656953 -> @16823, extent 9 -> 9: char[9] literal 'G_Denpa3'; retail incoming relocation .data+0xd0, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165695C, lbl_8165695C -> @16824, extent 9 -> 9: char[9] literal 'G_Denpa4'; retail incoming relocation .data+0xd4, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656965, lbl_81656965 -> @16825, extent 9 -> 9: char[9] literal 'G_Denpa5'; retail incoming relocation .data+0xd8, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165696E, lbl_8165696E -> @16826, extent 114 -> 9: char[9] literal 'G_Denpa6'; retail incoming relocation .data+0xdc, same resolved source data offset; addresses and section total unchanged.
- .data:0x816569E0, lbl_816569E0 -> @16833, extent 24 -> 24: char[24] literal 'my_AP_a_ArwAppear.brlan'; retail incoming relocation .data+0x284, same resolved source data offset; addresses and section total unchanged.
- .data:0x816569F8, lbl_816569F8 -> @16834, extent 22 -> 22: char[22] literal 'my_AP_a_ArwLost.brlan'; retail incoming relocation .data+0x288, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656A0E, lbl_81656A0E -> @16835, extent 25 -> 25: char[25] literal 'my_AP_a_ArwFocusOn.brlan'; retail incoming relocation .data+0x28c, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656A27, lbl_81656A27 -> @16836, extent 26 -> 26: char[26] literal 'my_AP_a_ArwFocusOff.brlan'; retail incoming relocation .data+0x290, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656A41, lbl_81656A41 -> @16837, extent 24 -> 24: char[24] literal 'my_AP_a_ArwSelect.brlan'; retail incoming relocation .data+0x294, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656A59, lbl_81656A59 -> @16838, extent 23 -> 23: char[23] literal 'my_AP_a_ScrollUp.brlan'; retail incoming relocation .data+0x298, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656A70, lbl_81656A70 -> @16839, extent 25 -> 25: char[25] literal 'my_AP_a_ScrollDown.brlan'; retail incoming relocation .data+0x29c, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656A89, lbl_81656A89 -> @16840, extent 25 -> 25: char[25] literal 'my_AP_a_BtnFocusOn.brlan'; retail incoming relocation .data+0x2a0, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656AA2, lbl_81656AA2 -> @16841, extent 26 -> 26: char[26] literal 'my_AP_a_BtnFocusOff.brlan'; retail incoming relocation .data+0x2a4, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656ABC, lbl_81656ABC -> @16842, extent 25 -> 25: char[25] literal 'my_AP_a_ListAppear.brlan'; retail incoming relocation .data+0x2a8, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656AD5, lbl_81656AD5 -> @16843, extent 23 -> 23: char[23] literal 'my_AP_a_ListLost.brlan'; retail incoming relocation .data+0x2ac, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656AEC, lbl_81656AEC -> @16844, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa0.brlan'; retail incoming relocation .data+0x2b0, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656B01, lbl_81656B01 -> @16845, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa1.brlan'; retail incoming relocation .data+0x2b4, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656B16, lbl_81656B16 -> @16846, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa2.brlan'; retail incoming relocation .data+0x2b8, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656B2B, lbl_81656B2B -> @16847, extent 21 -> 21: char[21] literal 'my_AP_a_Denpa3.brlan'; retail incoming relocation .data+0x2bc, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656B40, lbl_81656B40 -> @16848, extent 22 -> 22: char[22] literal 'my_AP_a_LockOff.brlan'; retail incoming relocation .data+0x2c0, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656B56, lbl_81656B56 -> @16849, extent 98 -> 21: char[21] literal 'my_AP_a_LockOn.brlan'; retail incoming relocation .data+0x2c4, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656BB8, lbl_81656BB8 -> @25442, extent 15 -> 15: char[15] literal '***Destruct!!\n'; retail incoming relocation .text+0x1da, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656BC7, lbl_81656BC7 -> @25443, extent 184 -> 28: char[28] literal ' ... bs2 manager restarted\n'; retail incoming relocation .text+0x31e, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656C7F, lbl_81656C7F -> @25618, extent 168 -> 15: char[15] literal 'iplSetting.cpp'; retail incoming relocation .text+0x7726, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656D27, lbl_81656D27 -> @17193, extent 12 -> 12: char[12] literal 'marc:%s/%s/'; retail incoming relocation .sdata2+0x0, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656D33, lbl_81656D33 -> @17194, extent 32 -> 32: char[32] literal 'file:dvd/html/IPLSetting/%s/%s/'; retail incoming relocation .sdata2+0x4, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656D53, lbl_81656D53 -> @17197, extent 13 -> 13: char[13] literal 'index01.html'; retail incoming relocation .rodata+0xe8, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656D60, lbl_81656D60 -> @17198, extent 29 -> 29: char[29] literal 'Internet/Internet_index.html'; retail incoming relocation .rodata+0xec, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656D7D, lbl_81656D7D -> @17199, extent 26 -> 26: char[26] literal 'Setup/startup_index1.html'; retail incoming relocation .rodata+0xf0, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656D97, lbl_81656D97 -> @17200, extent 25 -> 25: char[25] literal 'Update/Update_index.html'; retail incoming relocation .rodata+0xf4, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656DB0, lbl_81656DB0 -> @17201, extent 13 -> 13: char[13] literal 'index02.html'; retail incoming relocation .rodata+0xf8, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656DBD, lbl_81656DBD -> @17225, extent 22 -> 22: char[22] literal 'Setup/ScreenSave.html'; retail incoming relocation .rodata+0x15c, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656DD3, lbl_81656DD3 -> @17226, extent 30 -> 30: char[30] literal 'Country/US_Country_flame.html'; retail incoming relocation .rodata+0x160, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656DF1, lbl_81656DF1 -> @17247, extent 9 -> 9: char[9] literal 'Calendar'; retail incoming relocation .rodata+0x18c, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656DFA, lbl_81656DFA -> @17250, extent 17 -> 17: char[17] literal 'Parental_Control'; retail incoming relocation .rodata+0x198, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656E0B, lbl_81656E0B -> @17251, extent 9 -> 9: char[9] literal 'Internet'; retail incoming relocation .rodata+0x19c, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656E14, lbl_81656E14 -> @17252, extent 145 -> 13: char[13] literal 'Wiiconnect24'; retail incoming relocation .rodata+0x1a0, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656EA5, lbl_81656EA5 -> @25747, extent 102 -> 27: char[27] literal 'HTML String Alloc Size:%d\n'; retail incoming relocation .text+0x10ee, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656F0B, lbl_81656F0B -> @26292, extent 85 -> 15: char[15] literal 'WIPL_SE_DECIDE'; retail incoming relocation .text+0x7466, same resolved source data offset; addresses and section total unchanged.
- .data:0x81656F60, jumptable_81656F60 -> @26300, extent 416 -> 416: 104 ordered switch-table relocations target calcNormal__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x81657100, jumptable_81657100 -> @26299, extent 72 -> 72: 18 ordered switch-table relocations target calcNormal__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x816571DD, lbl_816571DD -> @26502, extent 15 -> 15: char[15] literal 'changed %p %p\n'; retail incoming relocation .text+0x2f52, same resolved source data offset; addresses and section total unchanged.
- .data:0x816571EC, lbl_816571EC -> @26534, extent 24 -> 24: char[24] literal 'initHTMLText pageId:%d\n'; retail incoming relocation .text+0x387a, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657204, jumptable_81657204 -> @26536, extent 68 -> 68: 17 ordered switch-table relocations target initHTMLText__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x81657248, lbl_81657248 -> @26538, extent 23 -> 23: char[23] literal 'initMessage pageId:%d\n'; retail incoming relocation .text+0x39ea, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165725F, lbl_8165725F -> @26623, extent 24 -> 24: char[24] literal 'initKeyboard formId:%d\n'; retail incoming relocation .text+0x3a3a, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657277, lbl_81657277 -> @26624, extent 25 -> 25: char[25] literal '\x83L\x81[\x83{\x81[\x83h: %d %d %d %d\n'; retail incoming relocation .text+0x3bb6, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657290, jumptable_81657290 -> @26628, extent 92 -> 92: 23 ordered switch-table relocations target initKeyboard__Q33ipl5scene7SettingFPCc in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x816572EC, lbl_816572EC -> @26776, extent 14 -> 14: char[14] literal 'formID:%d %s\n'; retail incoming relocation .text+0x3ed2, same resolved source data offset; addresses and section total unchanged.
- .data:0x816572FC, jumptable_816572FC -> @26779, extent 92 -> 92: 23 ordered switch-table relocations target calcKeyboard__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x81657358, jumptable_81657358 -> @26778, extent 92 -> 92: 23 ordered switch-table relocations target calcKeyboard__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x816573B4, lbl_816573B4 -> @26797, extent 14 -> 14: char[14] literal 'setstring:%d\n'; retail incoming relocation .text+0x4212, same resolved source data offset; addresses and section total unchanged.
- .data:0x816573C4, jumptable_816573C4 -> @26799, extent 64 -> 64: 16 ordered switch-table relocations target calcSetting__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x81657404, lbl_81657404 -> @26824, extent 21 -> 21: char[21] literal 'Keyboard Confirm:%d\n'; retail incoming relocation .text+0x433a, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165741C, jumptable_8165741C -> @26826, extent 84 -> 84: 21 ordered switch-table relocations target onTextInputOK__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x81657470, lbl_81657470 -> @26829, extent 23 -> 23: char[23] literal 'SCGetOwnerNickName:%d\n'; retail incoming relocation .text+0x462a, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657487, lbl_81657487 -> @26841, extent 14 -> 14: char[14] literal 'privacy : %s\n'; retail incoming relocation .text+0x4742, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657495, lbl_81657495 -> @26844, extent 38 -> 38: char[38] literal 'initHTMLText initString:%s length:%d\n'; retail incoming relocation .text+0x47c6, same resolved source data offset; addresses and section total unchanged.
- .data:0x816574BB, lbl_816574BB -> @26860, extent 13 -> 13: char[13] literal 'Ver. %d.%d%s'; retail incoming relocation .text+0x4bba, same resolved source data offset; addresses and section total unchanged.
- .data:0x816574C8, lbl_816574C8 -> @26868, extent 22 -> 22: char[22] literal 'nicknameFlag:1 %d %s\n'; retail incoming relocation .text+0x4c8e, same resolved source data offset; addresses and section total unchanged.
- .data:0x816574DE, lbl_816574DE -> @26875, extent 19 -> 19: char[19] literal 'securityFlag:1 %s\n'; retail incoming relocation .text+0x4d06, same resolved source data offset; addresses and section total unchanged.
- .data:0x816574F1, lbl_816574F1 -> @26964, extent 20 -> 20: char[20] literal '%03d.%03d.%03d.%03d'; retail incoming relocation .text+0x5662, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657508, jumptable_81657508 -> @27234, extent 92 -> 92: 23 ordered switch-table relocations target setDefaultBackString__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x81657564, jumptable_81657564 -> @27409, extent 40 -> 40: 10 ordered switch-table relocations target scanAP__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x8165758C, lbl_8165758C -> @27784, extent 21 -> 21: char[21] literal 'SET DATA : %d %s %d\n'; retail incoming relocation .text+0x7272, same resolved source data offset; addresses and section total unchanged.
- .data:0x816575A1, lbl_816575A1 -> @27785, extent 16 -> 16: char[16] literal 'WIPL_SE_BT_PUSH'; retail incoming relocation .text+0x739a, same resolved source data offset; addresses and section total unchanged.
- .data:0x816575B4, jumptable_816575B4 -> @27880, extent 44 -> 44: 11 ordered switch-table relocations target setUpdate___Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x816575E0, jumptable_816575E0 -> @28125, extent 48 -> 48: 12 ordered switch-table relocations target setNUP__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- .data:0x81657610, lbl_81657610 -> @28151, extent 10 -> 10: char[10] literal 'error:%d\n'; retail incoming relocation .text+0x8252, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165761A, lbl_8165761A -> @28277, extent 13 -> 13: char[13] literal 'NandSDWorker'; retail incoming relocation .text+0x8966, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657627, lbl_81657627 -> @28287, extent 27 -> 27: char[27] literal 'USB SCGetOwnerNickName:%d\n'; retail incoming relocation .text+0x8a12, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657642, lbl_81657642 -> @28326, extent 42 -> 42: char[42] literal 'm_AOSSThread : Terminated with Error(%d)\n'; retail incoming relocation .text+0x8c96, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165766C, lbl_8165766C -> @28370, extent 16 -> 16: char[16] literal 'WIPL_SE_COPYING'; retail incoming relocation .text+0x8fe2, same resolved source data offset; addresses and section total unchanged.
- .data:0x8165767C, lbl_8165767C -> @28383, extent 132 -> 20: char[20] literal 'WIPL_SE_COPY_FINISH'; retail incoming relocation .text+0x9062, same resolved source data offset; addresses and section total unchanged.
- .data:0x81657700, jumptable_81657700 -> @28442, extent 132 -> 132: 33 ordered switch-table relocations target setSE__Q33ipl5scene7SettingFv in both objects; target code references this table at the same data offset; addresses and section total unchanged.
- Added sSettingAPPaneNames__Q23ipl5scene at .data:0x81656978, extent 104: create retail +0x813F0F48/+0x813F0F4C loads animation base +0x284 and pane base +0x90, then indexes these 26-element pointer arrays for bindToGroup; every pointed-to literal relocation agrees with source. No address or section-total change.
- Added sSettingAPAnimations__Q23ipl5scene at .data:0x81656B6C, extent 76: create retail +0x813F0F48/+0x813F0F4C loads animation base +0x284 and pane base +0x90, then indexes these 19-element pointer arrays for bindToGroup; every pointed-to literal relocation agrees with source. No address or section-total change.
## ATERM jump-table identity proofs
- .data:0x81657DB8, jumptable_81657DB8 -> @2462, extent unchanged 40: both objects reference this switch table from ATERMParseAssociationResponse and have 10 ordered relocations into that same function; the first two tables have identical function-relative destinations, the third retains its 11 code-derived differences.
- .data:0x81657DE0, jumptable_81657DE0 -> @2514, extent unchanged 132: both objects reference this switch table from ATERMApplyScanSecuritySettings and have 33 ordered relocations into that same function; the first two tables have identical function-relative destinations, the third retains its 11 code-derived differences.
- .data:0x81657E64, jumptable_81657E64 -> @2631, extent unchanged 44: both objects reference this switch table from ATERMRunConfigProtocol and have 11 ordered relocations into that same function; the first two tables have identical function-relative destinations, the third retains its 11 code-derived differences.
## Round 2 accepted data audit
Quick gate over all four units: GATE PASS; regressions 0, forbidden additions 0, readability warnings 0. Source code is unchanged in this round. Matched code bytes remain Setting 30760/37884, ATERM 9296/19204, NHTTP 548/548, Date 2868/2868. Instruction-exact counts remain 105/112, 14/26, 11/11, 19/19 respectively.
- Setting .data: 95.14304%, up from 6.807248%; all other non-text sections 100%. Normalized relocation comparison finds 23 changed function-relative destinations in initKeyboard, 46 in the two calcKeyboard switch tables, and four in scanAP. All other retail data relocations agree. The 31 source-only relocations belong to deduplicated weak data after the real Setting vtable; those objects are ignored, not suppressed. Matched_data remains 1680/5696 because the report counts only fully matched sections.
- ATERM .data: 92.14286%, up from 22.857143%; all other non-text sections 100%. Its eleven remaining relocation differences belong exclusively to ATERMRunConfigProtocol. Raw section bytes, object offsets, extents, and all other data relocation targets agree. Matched_data 18504 -> 18584/18864.
- NHTTP: every non-text section 100%, matched_data 8 -> 72/72.
- Date: every non-text section 100%, matched_data 316 -> 356/356.
The remaining Setting and ATERM data gaps require matching their owning functions. This task explicitly classifies these as code work rather than data work; no switch-table entry, extent, or function label was altered to hide them. All remaining below-100 functions already have three distinct compiled source trials recorded above from the landed round. Their source is unchanged, so those trials still cover this round's open functions.
## Round 2 final full gate and coverage
src/scene/setting/iplSetting: matched_data 1680 -> 1680/5696; matched_code unchanged 30760/37884; all extracted section sizes unchanged.
- createBrowser__Q33ipl5scene7SettingFv: 98.8505%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
- draw__Q33ipl5scene7SettingFv: 91.525314%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
- initKeyboard__Q33ipl5scene7SettingFPCc: 98.38498%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
- calcKeyboard__Q33ipl5scene7SettingFv: 98.0%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
- convertRevIP__Q33ipl5scene7SettingFPUcPCc: 98.69863%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- scanAP__Q33ipl5scene7SettingFv: 95.39338%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
src/scene/setting/ATERM: matched_data 18504 -> 18584/18864; matched_code unchanged 9296/19204; all extracted section sizes unchanged.
- ATERMStartNetworkStack: 97.91558%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMFindChangedApRecord: 99.56896%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMDiscoverAccessPoints: 95.304184%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMBuildEncryptedMessage: 99.791664%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMBuildAssociationRequest: 93.44361%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMParseAssociationResponse: 99.56204%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMRunConfigProtocol: 87.43323%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMi_AutoConfigThread: 94.75%; code branch/call scheduling mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMAesKeyWrap: 99.0%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMAesExpandEncryptKey: 98.94403%; code register allocation/scheduling; verified three distinct previously compiled trials in this log, no source changes this round.
- ATERMMd5Update: 91.263885%; code instruction/control-flow mismatch; verified three distinct previously compiled trials in this log, no source changes this round.
libs/RevoEX/src/nhttp/NHTTP_os_RVL: matched_data 8 -> 72/72; matched_code unchanged 548/548; all extracted section sizes unchanged.
src/scene/calendar/iplDate: matched_data 316 -> 356/356; matched_code unchanged 2868/2868; all extracted section sizes unchanged.
Final non-quick gate output (all four units, clean rebuild):
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/scene/setting/iplSetting] pool: IDENTICAL
[src/scene/setting/iplSetting] objdiff: code 30760/37884 data 1680/5696 functions 106/112 fuzzy 99.1581 linked code 0
[src/scene/setting/iplSetting] instruction-exact functions: 105/112
[src/scene/setting/iplSetting] section .bss size 456 match 100.0
[src/scene/setting/iplSetting] section .data size 4016 match 95.14304
[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.15806
[src/scene/setting/iplSetting] below 100: createBrowser__Q33ipl5scene7SettingFv 98.8505
[src/scene/setting/iplSetting] below 100: draw__Q33ipl5scene7SettingFv 91.525314
[src/scene/setting/iplSetting] below 100: initKeyboard__Q33ipl5scene7SettingFPCc 98.38498
[src/scene/setting/iplSetting] below 100: calcKeyboard__Q33ipl5scene7SettingFv 98.0
[src/scene/setting/iplSetting] below 100: convertRevIP__Q33ipl5scene7SettingFPUcPCc 98.69863
[src/scene/setting/iplSetting] below 100: scanAP__Q33ipl5scene7SettingFv 95.39338
[src/scene/setting/iplSetting] baseline: code 30760/37884 data 1680 functions 106 fuzzy 99.1581
[src/scene/setting/ATERM] pool: IDENTICAL
[src/scene/setting/ATERM] objdiff: code 9296/19204 data 18584/18864 functions 15/26 fuzzy 96.5836 linked code 0
[src/scene/setting/ATERM] instruction-exact functions: 14/26
[src/scene/setting/ATERM] section .bss size 8160 match 100.0
[src/scene/setting/ATERM] section .data size 280 match 92.14286
[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 96.583626
[src/scene/setting/ATERM] below 100: ATERMStartNetworkStack 97.91558
[src/scene/setting/ATERM] below 100: ATERMFindChangedApRecord 99.56896
[src/scene/setting/ATERM] below 100: ATERMDiscoverAccessPoints 95.304184
[src/scene/setting/ATERM] below 100: ATERMBuildEncryptedMessage 99.791664
[src/scene/setting/ATERM] below 100: ATERMBuildAssociationRequest 93.44361
[src/scene/setting/ATERM] below 100: ATERMParseAssociationResponse 99.56204
[src/scene/setting/ATERM] below 100: ATERMRunConfigProtocol 87.43323
[src/scene/setting/ATERM] below 100: ATERMi_AutoConfigThread 94.75
[src/scene/setting/ATERM] below 100: ATERMAesKeyWrap 99.0
[src/scene/setting/ATERM] below 100: ATERMAesExpandEncryptKey 98.94403
[src/scene/setting/ATERM] below 100: ATERMMd5Update 91.263885
[src/scene/setting/ATERM] baseline: code 9296/19204 data 18504 functions 15 fuzzy 96.5836
[libs/RevoEX/src/nhttp/NHTTP_os_RVL] pool: IDENTICAL
[libs/RevoEX/src/nhttp/NHTTP_os_RVL] objdiff: code 548/548 data 72/72 functions 11/11 fuzzy 100.0000 linked code 548
[libs/RevoEX/src/nhttp/NHTTP_os_RVL] instruction-exact functions: 11/11
[libs/RevoEX/src/nhttp/NHTTP_os_RVL] section .data size 64 match 100.0
[libs/RevoEX/src/nhttp/NHTTP_os_RVL] section .sdata size 8 match 100.0
[libs/RevoEX/src/nhttp/NHTTP_os_RVL] section .text size 548 match 100.0
[libs/RevoEX/src/nhttp/NHTTP_os_RVL] baseline: code 548/548 data 8 functions 11 fuzzy 100.0000
[src/scene/calendar/iplDate] pool: IDENTICAL
[src/scene/calendar/iplDate] objdiff: code 2868/2868 data 356/356 functions 19/19 fuzzy 100.0000 linked code 2868
[src/scene/calendar/iplDate] instruction-exact functions: 19/19
[src/scene/calendar/iplDate] section .bss size 40 match 100.0
[src/scene/calendar/iplDate] section .ctors size 4 match 100.0
[src/scene/calendar/iplDate] section .data size 104 match 100.0
[src/scene/calendar/iplDate] section .rodata size 168 match 100.0
[src/scene/calendar/iplDate] section .sdata size 32 match 100.0
[src/scene/calendar/iplDate] section .sdata2 size 8 match 100.0
[src/scene/calendar/iplDate] section .text size 2868 match 100.0
[src/scene/calendar/iplDate] baseline: code 2868/2868 data 316 functions 19 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 62.98463 -> 63.07103
global matched_data_percent: 97.19820 -> 97.20825
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: no baseline for merge-base 775167f4; compared against nearest snapshotted ancestor 547637bf (1 commits back)
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```

View File

@@ -1,389 +0,0 @@
# Data d4 high round
Baseline instruction-exact: tiInputForm 216/221, tiKeyboard 62/62, MyTiManager 91/91, MyTiInputForm 84/84. Matched_data: 908/3772, 12/2708, 76/1132, 2960/3032. All sources equal origin/main after initial fetch. Initial all-unit quick gate passes. All pools identical. Investigate actual relocations and typed source for every mismatch; do not claim completion from the safety gate alone.
## MyTiInputForm
High attempt 1: add the real protected textdrawer::Base draw-scroll setter taking const f32&, guarded by MYTIINPUTFORM_IMPLEMENTATION, and call it from calc's non-edit branch. This encapsulates the existing field assignment and lets MWCC materialize the addressable zero argument naturally in .sdata. No explicit object, array, forced section or padding was added.
Concrete baseline difference: target .sdata+0x28 is four zero bytes, with Nigaoe at +0x2C; source omitted this constant and placed Nigaoe at +0x28. Target calc relocation at .text+0x1F24 referenced .sdata+0x28; baseline source referenced .sdata2 zero. Setter now produces .sdata+0x28 zero and moves the following strings to their target offsets. Source .sdata contains 67 bytes matching target through +0x42; the remaining five target bytes are zero section-end linker alignment. Every non-text section reports 100%, matched_data 2960 -> 3032. calc instruction count remains 629/629, ctxdiff diffs 0. All 84 functions remain objdiff 100%. Await full-unit regression gate before committing.
All-unit quick gate after the setter passes: retail DOL hash preserved, regressions 0, forbidden/readability scans 0. MyTiInputForm remains 84/84 instruction-exact. Accepted and committed this focused improvement.
## tiInputForm
High attempts 1 and 2: defer tiLayoutGather.h until after the Color definitions, then until after sfColorPhase. Both emitted the seven Color objects at their real target offsets 0x0..0x18 instead of source offsets 0x8..0x20. However the compiler still schedules zero-initialized sfColorPhase after the singleton weak statics, and the section score regressed 33.333336 -> 31.818182. Static constructor objdiff regressed from 100 to 99.91954, unit matched_functions 218 -> 217 and matched_code 46980 -> 46632. Both changes rejected and restored. No accepted-data bytes gained.
High attempt 3: recover the existing sfColorPhase symbol name without changing any size or split range. Target calcCursorTimer has lfs at 0x8141F13C, 0x8141F26C, 0x8141F2CC and stfs at 0x8141F2E0, all relocating to .sbss 0x81698D1C. The real C++ float sfColorPhase feeds those same sine/phase updates. Original anonymous float is already four bytes. This is a name correction, not source address pinning or resizing; total bytes unchanged.
Phase-name recovery changes .sbss score 33.333336 -> 68.181816, but matched_data stays 908, with code/functions unchanged. No size or byte changes. Not retained as a fuzzy-only result.
## tiKeyboard
High attempt 1: declare gui::EventHandler's real virtual destructor out of line under a new macro defined only by tiKeyboard.cpp. The target does not retain this weak table or its weak methods in this unit. MWCC correctly changes its table ownership to external without changing any of the 62 original functions. .data improves 99.117645 -> 99.55687, matched_data remains 12. Pure abstract UIObj::Listener and AnmObserver still contribute 24 appended zero bytes not owned by the original split. Investigating before accepting any declaration-only change.
## MyTiManager
Fetched origin and checked pool first. All 91 functions already exact. Target .data+0x3B0..0x3D7 is 40 zero bytes without outgoing relocations; source ends at +0x3B0. Scan of all 43U extracted objects found references to that tail label: []. No concrete virtual method/function-pointer slot or used table object can be recovered from those zeros. Do not invent one. Target .bss is byte-identical 72 bytes but aggregates the first three compiler destructor records into a 36-byte symbol; source has three real 12-byte records at offsets 0, 12 and 24. The fourth record at +0x30 is 12 bytes. Source state objects at +0x24/+0x3C match target. No symbol sizes changed.
tiKeyboard declaration attempt rejected and restored. It improves only fuzzy section similarity and does not make data exact. Last pure-abstract base tables have no target-owned relocation slots to fill; declaring invented virtual methods or suppressing tables with compiler attributes would be dishonest.
High attempt 4: recover the actual four-byte ownership of each of seven Color objects in symbols.txt, preserving every address, split boundary and section byte. This corrects wrongly inferred byte objects; it does not hide a byte or relocation difference. Target static initialization relocates r6 to each named Color base and stores the R byte at base plus G/B/A bytes at +1,+2,+3 before registering the same base with __dt__nw4r::ut::Color. All seven objects are exactly four bytes apart, with no overlapping object or unrelated symbol in the three omitted bytes. Existing source already has the real typed nw4r::ut::Color globals. The prior one-byte annotations incorrectly assigned G/B/A to anonymous gaps. sfColorPhase name is recovered from its exact lfs/stfs relocations. Total .sbss stays 32 and whole-unit total_data stays 3772. This is evidence-backed object ownership recovery, not shrinking tables to hide mismatches.
Color ownership recovery passes the all-unit quick gate. .sbss now 100%, tiInputForm matched_data 908 -> 940, total_data unchanged 3772, instruction-exact 216/221 unchanged, whole-project regressions 0, DOL hash unchanged. Gate explicitly marks symbols.txt for orchestrator review. No source or object bytes were changed by this metadata correction.
High record-ownership experiment: recover the real 12-byte DestructorChain objects in two incorrectly aggregated BSS labels. NMWException.h defines next/dtor/object, all four-byte pointers. Runtime __register_global_object writes exactly those three fields. Target tiInputForm onCommand registers its singleton using BSS+0; static initialization registers the seven Color globals with BSS+12,+24,+36,+48,+60,+72,+84. Target MyTiManager static initialization registers Disp/Edit/Appear/Disappear states with BSS+0,+12,+24,+48. State objects themselves occupy +36..47 and +60..71 and stay untouched. Replace only the aggregate ownership annotation with those separately proved record boundaries; no byte, section size, split or pointer target changes. No source records or dummy padding added. Keep only if original functions do not regress and data measures improve.
Record ownership recovery passes the all-unit quick gate. tiInputForm .bss is now 100%, data 940 -> 1036; MyTiManager .bss is now 100%, data 76 -> 148. Both sections have the same byte extent and all original instruction-exact functions are preserved. Whole-project regressions 0, retail DOL hash unchanged. Symbols review remains required by the orchestrator.
calcCursorPos attempt right-before-bottom: objdiff 91.59509%, code 46980, data 1036. ['src 0x518 base 0x518 insns 326/326', 'diffs 43: [77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 127, 128, 129, 130, 131, 132, 133]']
calcCursorPos attempt separate-scale-components: objdiff 86.54601%, code 46980, data 1036. ['src 0x4f4 base 0x518 insns 317/326', '--- replace mine 28:29 base 28:29']
calcCursorPos attempt aggregate-line-bounds: objdiff 78.78528%, code 46980, data 1036. ['src 0x56c base 0x518 insns 347/326', '--- replace mine 0:1 base 0:1']
create attempt reload-row-owner: objdiff 94.985954%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6']
create attempt font-branch-direction: objdiff 85.985954%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6']
create attempt typed-button-index: objdiff 95.02809%, code 46980, data 1036. ['src 0x580 base 0x590 insns 352/356', '--- replace mine 5:6 base 5:6']
setLanguage attempt text-pane-branch-direction: objdiff 96.44726%, code 46980, data 1036. ['src 0x3b4 base 0x3b4 insns 237/237', 'diffs 22: [57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 118, 119, 120, 121, 122, 123, 124, 125, 126]']
setLanguage attempt reload-language-pane-after-query: objdiff 96.44726%, code 46980, data 1036. ['src 0x3b4 base 0x3b4 insns 237/237', 'diffs 22: [57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 118, 119, 120, 121, 122, 123, 124, 125, 126]']
setLanguage attempt split-visibility-counts: objdiff 93.44304%, code 46980, data 1036. ['src 0x3bc base 0x3b4 insns 239/237', '--- replace mine 9:11 base 9:10']
High tiInputForm vtable attempt: declare the real GUIComponent virtual destructor out of line in this unit only. This asks the compiler to use the actual external destructor/vtable ownership instead of emitting a duplicate weak GUIComponent table. Every virtual method and signature remains intact. Original unit does not own the GUIComponent destructor. Inspect data and original-function counts before keeping it.
GUIComponent destructor declaration had no data/code effect because this unit still defines its real non-inline init, which causes MWCC to emit the table. Restored header. Next real-class ownership attempt declares only gui::EventHandler destructor out of line, preserving all virtual slots.
GUI EventHandler destructor-declaration result: code 46916, functions 217, data 1036. Sections [{'name': '.bss', 'size': '96', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.ctors', 'size': '4', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '2736', 'fuzzy_match_percent': 65.68563, 'metadata': {}}, {'name': '.rodata', 'size': '760', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sbss', 'size': '32', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '40', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata2', 'size': '104', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.text', 'size': '50656', 'fuzzy_match_percent': 99.521164, 'metadata': {}}]. Rejected and restored; no exact-data improvement.
## Final concrete data-symbol audit
Rebuilt all four units from a clean build with the final full gate. The following table compares every target .data symbol to its same-name source object (unnamed labels use the same section offset). Relocations are compared relative to the named object, not to the section start. Named weak tables at different section offsets can have identical real entries. An aligned target symbol extent can include zeros beyond the actual C++ object; these are shown separately rather than treated as missing virtual functions.
### tiInputForm .data
Target 2736 bytes; source 3077 bytes.
- `scP_txtScrll_UP` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
- `scP_txtScrll_DOWN` target +0x10, source +0x10: owned bytes equal, 0 relocation entries equal.
- `lbl_8165C840` target +0x20, source +0x20: owned bytes equal, 18 relocation entries equal.
- `scN_JPNUSAEUR` target +0xA0, source +0xA0: owned bytes equal, 0 relocation entries equal.
- `scN_separateBarAll` target +0xAC, source +0xAC: owned bytes equal, 0 relocation entries equal.
- `scT_2l_TextBox` target +0xC0, source +0xC0: owned bytes equal, 0 relocation entries equal.
- `scT_title_textJPN` target +0xD0, source +0xD0: owned bytes equal, 0 relocation entries equal.
- `scN_separateBarKOR` target +0xE0, source +0xE0: owned bytes equal, 0 relocation entries equal.
- `scT_2l_TextBoxKOR` target +0xF8, source +0xF8: owned bytes equal, 0 relocation entries equal.
- `scT_title_textKOR` target +0x108, source +0x108: owned bytes equal, 0 relocation entries equal.
- `scN_separateBarCHN` target +0x118, source +0x118: owned bytes equal, 0 relocation entries equal.
- `scT_2l_TextBoxCHN` target +0x130, source +0x130: owned bytes equal, 0 relocation entries equal.
- `scT_title_textCHN` target +0x140, source +0x140: owned bytes equal, 0 relocation entries equal.
- `lbl_8165C970` target +0x150, source +0x150: owned bytes equal, 0 relocation entries equal.
- `jumptable_8165C990` target +0x170, source +0x170: owned bytes equal, 40 relocation entries equal.
- `jumptable_8165CA30` target +0x210, source +0x210: owned bytes equal, 10 relocation entries equal.
- `jumptable_8165CA58` target +0x238, source +0x238: owned bytes equal, 13 relocation entries equal.
- `jumptable_8165CA8C` target +0x26C, source +0x26C: owned bytes equal, 48 relocation entries equal.
- `jumptable_8165CB4C` target +0x32C, source +0x32C: owned bytes equal, 37 relocation entries equal.
- `lbl_8165CBE0` target +0x3C0, source +0x3C0: owned bytes equal, 0 relocation entries equal.
- `lbl_8165CC14` target +0x3F4, source +0x3F4: owned bytes equal, 0 relocation entries equal.
- `lbl_8165CC28` target +0x408, source +0x408: owned bytes equal, 0 relocation entries equal.
- `lbl_8165CC4C` target +0x42C, source +0x42C: owned bytes equal, 0 relocation entries equal.
- `jumptable_8165CC5C` target +0x43C, source +0x43C: owned bytes equal, 7 relocation entries equal.
- `__vt__Q39textinput9inputform19NormalButtonAnmPane` target +0x458, source +0x458: owned bytes equal, 9 relocation entries equal.
- `__vt__Q39textinput9inputform7AnmPane` target +0x484, source +0x484: owned bytes equal, 9 relocation entries equal.
- `__vt__Q39textinput9inputform12EventHandler` target +0x4B0, source +0x4B0: owned bytes equal, 6 relocation entries equal.
- `__vt__Q39textinput9inputform12LayoutByNW4R` target +0x4D0, source +0x4D0: owned bytes equal, 136 relocation entries equal.
- `__vt__Q39textinput9inputform4Base` target +0x710, source +0x710: owned bytes equal, 100 relocation entries equal.
- `__vt__Q39textinput9inputform10EditBuffer` target +0x8B8, source +0x8B8: owned bytes equal, target extent 16, source object 12, 1 relocation entries equal.
- `__vt__Q39textinput8tistring8WithAtok` target +0x8C8, source +0x8C8: owned bytes equal, 78 relocation entries equal.
- `__vt__Q29textinput4Base` target +0xA08, source +0xBA0: owned bytes equal, target extent 48, source object 20, 3 relocation entries equal.
- `__vt__Q39textinput4util9Animation` target +0xA38, source +0xB58: owned bytes equal, 7 relocation entries equal.
- `lbl_8165D258` target +0xA5C, source +0xA5C: first byte difference +0x0: 4F -> 00, relocations +0x0 None -> ('inputString__Q39textinput8tistring9DecolatedFPCw', 0); +0x4 None -> ('deleteChar__Q39textinput8tistring9DecolatedFv', 0); +0x8 None -> ('backSpace__Q39textinput8tistring9DecolatedFv', 0); +0xC None -> ('confirm__Q39textinput8tistring9DecolatedFPCw', 0).
- `@STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl` target +0xA6C, source +0xBC4: owned bytes equal, target extent 68, source object 65, source section ends after 65 available bytes, 0 relocation entries equal.
Additional real compiler-emitted weak tables absent from the target symbol inventory:
- `__vt__Q39textinput8tistring9Decolated` source +0xA08, 208 bytes: +0x4C -> getLastWChar__Q39textinput8tistring10StringBaseFv; +0x48 -> hasCandidate__Q39textinput8tistring10StringBaseCFv; +0x44 -> getCandidate__Q39textinput8tistring10StringBaseCFv; +0x40 -> setCandidate__Q39textinput8tistring10StringBaseFw; +0x3C -> getWCString__Q39textinput8tistring10StringBaseCFv; +0x34 -> setAt__Q39textinput8tistring10StringBaseFUsw; +0x2C -> replace__Q39textinput8tistring10StringBaseFUsUsPCw; +0x28 -> remove__Q39textinput8tistring10StringBaseFUsUs; +0x24 -> insert__Q39textinput8tistring10StringBaseFUsPCw; +0x20 -> append__Q39textinput8tistring10StringBaseFPCw; +0x1C -> getLength__Q39textinput8tistring10StringBaseCFv; +0x14 -> popBack__Q39textinput8tistring10StringBaseFv; +0x10 -> pushBack__Q39textinput8tistring10StringBaseFw; +0xC -> create__Q39textinput8tistring10StringBaseFP12MEMAllocator; +0xCC -> EnableKSXFilter__Q39textinput8tistring9DecolatedFb; +0xC8 -> clearKana__Q39textinput8tistring9DecolatedFv; +0xC4 -> confirmKana__Q39textinput8tistring9DecolatedFv; +0xC0 -> isKanaFix__Q39textinput8tistring9DecolatedCFv; +0xBC -> getKanaBuffer__Q39textinput8tistring9DecolatedFv; +0xB8 -> initKanaConverter__Q39textinput8tistring9DecolatedFv; +0xB4 -> atTheBeginningOfASentence__Q39textinput8tistring9DecolatedFv; +0xB0 -> converSmall__Q39textinput8tistring9DecolatedFv; +0xAC -> isSmall__Q39textinput8tistring9DecolatedFv; +0xA8 -> convertAll__Q39textinput8tistring9DecolatedFv; +0xA4 -> converHandaku__Q39textinput8tistring9DecolatedFv; +0xA0 -> isHandaku__Q39textinput8tistring9DecolatedFv; +0x9C -> converDakuten__Q39textinput8tistring9DecolatedFv; +0x98 -> isDakuten__Q39textinput8tistring9DecolatedFv; +0x94 -> replaceAtCursor__Q39textinput8tistring9DecolatedFw; +0x90 -> getWCharAtCursor__Q39textinput8tistring9DecolatedFv; +0x8C -> getSelected__Q39textinput8tistring9DecolatedFRUlRUl; +0x88 -> deleteForward__Q39textinput8tistring9DecolatedFv; +0x84 -> canBackSpace__Q39textinput8tistring9DecolatedFv; +0x7C -> getCursorPos__Q39textinput8tistring9DecolatedCFv; +0x80 -> getCursorPos__Q39textinput8tistring9DecolatedFPUlPUl; +0x78 -> isOnSustain__Q39textinput8tistring9DecolatedFv; +0x74 -> offSustain__Q39textinput8tistring9DecolatedFv; +0x70 -> onSustain__Q39textinput8tistring9DecolatedFv; +0x6C -> setCursorPos__Q39textinput8tistring9DecolatedFUl; +0x68 -> moveCursorLeft__Q39textinput8tistring9DecolatedFv; +0x64 -> moveCursorRight__Q39textinput8tistring9DecolatedFv; +0x60 -> confirm__Q39textinput8tistring9DecolatedFPCw; +0x5C -> backSpace__Q39textinput8tistring9DecolatedFv; +0x58 -> deleteChar__Q39textinput8tistring9DecolatedFv; +0x50 -> inputChar__Q39textinput8tistring9DecolatedFw; +0x54 -> inputString__Q39textinput8tistring9DecolatedFPCw; +0x38 -> setLength__Q39textinput8tistring9DecolatedFUs; +0x30 -> set__Q39textinput8tistring9DecolatedFPCw; +0x18 -> clear__Q39textinput8tistring9DecolatedFv; +0x8 -> __dt__Q39textinput8tistring9DecolatedFv.
- `__vt__Q39textinput3gui12GUIComponent` source +0xAD8, 104 bytes: +0x18 -> draw__Q39textinput3gui12GUIInterfaceFRA3_A4_f; +0x1C -> draw__Q39textinput3gui12GUIInterfaceFv; +0x14 -> calc__Q39textinput3gui12GUIInterfaceFv; +0xC -> create__Q39textinput3gui12GUIInterfaceFv; +0x60 -> setFlightDuration__Q39textinput3gui12GUIComponentFiUs; +0x5C -> getFlightDuration__Q39textinput3gui12GUIComponentFi; +0x58 -> isVisible__Q39textinput3gui12GUIComponentFv; +0x54 -> setTriggerTarget__Q39textinput3gui12GUIComponentFb; +0x50 -> isTriggerTarget__Q39textinput3gui12GUIComponentFv; +0x48 -> updatePointer__Q39textinput3gui12GUIComponentFRCQ39textinput3gui10GUIPointer; +0x4C -> updatePointer__Q39textinput3gui12GUIComponentFiffUlUlUl; +0x44 -> setDraggingButton__Q39textinput3gui12GUIComponentFUl; +0x40 -> onTrig__Q39textinput3gui12GUIComponentFiUlR3Vec; +0x3C -> onMove__Q39textinput3gui12GUIComponentFiff; +0x38 -> onDrag__Q39textinput3gui12GUIComponentFff; +0x34 -> onPointOut__Q39textinput3gui12GUIComponentFi; +0x30 -> onPointIn__Q39textinput3gui12GUIComponentFi; +0x2C -> setPointed__Q39textinput3gui12GUIComponentFib; +0x28 -> isDragging__Q39textinput3gui12GUIComponentFi; +0x24 -> isPointed__Q39textinput3gui12GUIComponentFi; +0x20 -> getID__Q39textinput3gui12GUIComponentFv; +0x8 -> __dt__Q39textinput3gui12GUIComponentFv; +0x10 -> init__Q39textinput3gui12GUIComponentFv.
- `__vt__Q39textinput3gui12EventHandler` source +0xB40, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv.
- `__vt__Q29textinput15CommandReceiver` source +0xB80, 32 bytes: +0x10 -> init__Q29textinput4BaseFv; +0xC -> create__Q29textinput4BaseFP12MEMAllocator; +0x1C -> addSender__Q29textinput15CommandReceiverFPQ29textinput13CommandSender; +0x18 -> onCommand__Q29textinput15CommandReceiverFQ39textinput15CommandReceiver13INPUT_COMMANDPv; +0x14 -> clearSender__Q29textinput15CommandReceiverFv; +0x8 -> __dt__Q29textinput15CommandReceiverFv.
### tiKeyboard .data
Target 2696 bytes; source 2744 bytes.
- `lbl_8165F8F0` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
- `lbl_8165F900` target +0x10, source +0x10: owned bytes equal, 0 relocation entries equal.
- `lbl_8165F920` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal.
- `lbl_8165F938` target +0x48, source +0x48: owned bytes equal, 0 relocation entries equal.
- `lbl_8165F950` target +0x60, source +0x60: owned bytes equal, 0 relocation entries equal.
- `lbl_8165F96C` target +0x7C, source +0x7C: owned bytes equal, 0 relocation entries equal.
- `lbl_8165F988` target +0x98, source +0x98: owned bytes equal, 0 relocation entries equal.
- `lbl_8165F9A0` target +0xB0, source +0xB0: owned bytes equal, 0 relocation entries equal.
- `__vt__Q29textinput7Manager` target +0xC8, source +0xC8: owned bytes equal, 50 relocation entries equal.
- `__vt__Q49textinput8keyboard10signwindow6Sample` target +0x198, source +0x198: owned bytes equal, target extent 272, source object 268, 61 relocation entries equal.
- `__vt__Q39textinput11predictlang6Sample` target +0x2A8, source +0x2A8: owned bytes equal, 50 relocation entries equal.
- `__vt__Q39textinput11predictlang4Base` target +0x388, source +0x388: owned bytes equal, target extent 40, source object 36, 7 relocation entries equal.
- `__vt__Q39textinput7toolbar6Sample` target +0x3B0, source +0x3B0: owned bytes equal, 48 relocation entries equal.
- `__vt__Q39textinput9inputform6Sample` target +0x480, source +0x480: owned bytes equal, 136 relocation entries equal.
- `__vt__Q39textinput12candidatebox6Sample` target +0x6C0, source +0x6C0: owned bytes equal, 70 relocation entries equal.
- `__vt__Q49textinput8keyboard13cellphonetype6Sample` target +0x7F0, source +0x7F0: owned bytes equal, 75 relocation entries equal.
- `__vt__Q49textinput8keyboard6pctype6Sample` target +0x92C, source +0x92C: owned bytes equal, 81 relocation entries equal.
Additional real compiler-emitted weak tables absent from the target symbol inventory:
- `__vt__Q59textinput8keyboard6pctype5UIObj8Listener` source +0xA88, 12 bytes: all bytes zero; no relocation slots.
- `__vt__Q39textinput11nw4rmanager11AnmObserver` source +0xA94, 12 bytes: all bytes zero; no relocation slots.
- `__vt__Q39textinput3gui12EventHandler` source +0xAA0, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv.
### MyTiManager .data
Target 984 bytes; source 944 bytes.
- `lbl_81667E38` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
- `lbl_81667E58` target +0x20, source +0x20: owned bytes equal, 0 relocation entries equal.
- `lbl_81667E68` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal.
- `lbl_81667E7C` target +0x44, source +0x44: owned bytes equal, 0 relocation entries equal.
- `lbl_81667E94` target +0x5C, source +0x5C: owned bytes equal, 0 relocation entries equal.
- `lbl_81667EB0` target +0x78, source +0x78: owned bytes equal, 0 relocation entries equal.
- `lbl_81667EC8` target +0x90, source +0x90: owned bytes equal, 0 relocation entries equal.
- `__vt__Q49textinput6extend2bg4Base` target +0xA8, source +0xA8: owned bytes equal, 2 relocation entries equal.
- `__vt__Q49textinput6extend4memo18DisappearMemoState` target +0xB8, source +0xB8: owned bytes equal, 20 relocation entries equal.
- `__vt__Q49textinput6extend4memo13EditMemoState` target +0x110, source +0x110: owned bytes equal, 20 relocation entries equal.
- `__vt__Q49textinput6extend4memo15AppearMemoState` target +0x168, source +0x168: owned bytes equal, 20 relocation entries equal.
- `__vt__Q49textinput6extend4memo13DispMemoState` target +0x1C0, source +0x1C0: owned bytes equal, 20 relocation entries equal.
- `__vt__Q49textinput6extend4memo5State` target +0x218, source +0x218: owned bytes equal, 10 relocation entries equal.
- `__vt__Q49textinput6extend4memo7Manager` target +0x270, source +0x270: owned bytes equal, 78 relocation entries equal.
- `lbl_816681E8` target +0x3B0, source +0x3B0: target contains 40 zero bytes; source section has ended, so none of this object is present; no target relocation entries.
### MyTiInputForm .data
Target 1616 bytes; source 1616 bytes.
- `lbl_81668210` target +0x0, source +0x0: owned bytes equal, 0 relocation entries equal.
- `lbl_8166821C` target +0xC, source +0xC: owned bytes equal, 0 relocation entries equal.
- `lbl_81668228` target +0x18, source +0x18: owned bytes equal, 0 relocation entries equal.
- `lbl_81668234` target +0x24, source +0x24: owned bytes equal, 0 relocation entries equal.
- `lbl_81668240` target +0x30, source +0x30: owned bytes equal, 0 relocation entries equal.
- `lbl_8166824C` target +0x3C, source +0x3C: owned bytes equal, 0 relocation entries equal.
- `scPaneName__Q39textinput6extend4memo` target +0x4C, source +0x4C: owned bytes equal, relocations +0x0 ('lbl_81668210', 0) -> ('@6051', 0); +0x4 ('lbl_816974E0', 0) -> ('@6052', 0); +0x8 ('lbl_816974E8', 0) -> ('@6053', 0); +0xC ('lbl_8166821C', 0) -> ('@6054', 0); +0x10 ('lbl_816974F0', 0) -> ('@6055', 0); +0x14 ('lbl_81668228', 0) -> ('@6056', 0); +0x18 ('lbl_81668234', 0) -> ('@6057', 0); +0x1C ('lbl_81668240', 0) -> ('@6058', 0); +0x20 ('lbl_8166824C', 0) -> ('@6059', 0).
- `jumptable_81668280` target +0x70, source +0x70: owned bytes equal, 26 relocation entries equal.
- `lbl_81668324` target +0x114, source +0x114: owned bytes equal, 0 relocation entries equal.
- `lbl_81668330` target +0x120, source +0x120: owned bytes equal, 0 relocation entries equal.
- `lbl_81668340` target +0x130, source +0x130: owned bytes equal, 0 relocation entries equal.
- `lbl_81668350` target +0x140, source +0x140: owned bytes equal, 0 relocation entries equal.
- `lbl_8166835C` target +0x14C, source +0x14C: owned bytes equal, 0 relocation entries equal.
- `lbl_81668368` target +0x158, source +0x158: owned bytes equal, 0 relocation entries equal.
- `lbl_81668374` target +0x164, source +0x164: owned bytes equal, 0 relocation entries equal.
- `lbl_81668380` target +0x170, source +0x170: owned bytes equal, 0 relocation entries equal.
- `lbl_8166838C` target +0x17C, source +0x17C: owned bytes equal, 0 relocation entries equal.
- `csGroupName__Q39textinput6extend4memo` target +0x188, source +0x188: owned bytes equal, relocations +0x0 ('lbl_81668324', 0) -> ('@6255', 0); +0x4 ('lbl_81668330', 0) -> ('@6256', 0); +0x8 ('lbl_81668340', 0) -> ('@6257', 0); +0xC ('lbl_81668350', 0) -> ('@6258', 0); +0x10 ('lbl_8166835C', 0) -> ('@6259', 0); +0x14 ('lbl_81668368', 0) -> ('@6260', 0); +0x18 ('lbl_81668374', 0) -> ('@6261', 0); +0x1C ('lbl_81668380', 0) -> ('@6262', 0); +0x20 ('lbl_8166838C', 0) -> ('@6263', 0).
- `jumptable_816683BC` target +0x1AC, source +0x1AC: owned bytes equal, 9 relocation entries equal.
- `jumptable_816683E0` target +0x1D0, source +0x1D0: owned bytes equal, 9 relocation entries equal.
- `lbl_81668404` target +0x1F4, source +0x1F4: owned bytes equal, 0 relocation entries equal.
- `lbl_81668418` target +0x208, source +0x208: owned bytes equal, 0 relocation entries equal.
- `lbl_81668428` target +0x218, source +0x218: owned bytes equal, 0 relocation entries equal.
- `lbl_81668434` target +0x224, source +0x224: owned bytes equal, 0 relocation entries equal.
- `lbl_81668460` target +0x250, source +0x250: owned bytes equal, 0 relocation entries equal.
- `lbl_8166846C` target +0x25C, source +0x25C: owned bytes equal, 0 relocation entries equal.
- `lbl_8166847C` target +0x26C, source +0x26C: owned bytes equal, 0 relocation entries equal.
- `lbl_81668488` target +0x278, source +0x278: owned bytes equal, 0 relocation entries equal.
- `__vt__Q49textinput6extend4memo13SimpleAnmPane` target +0x284, source +0x284: owned bytes equal, 7 relocation entries equal.
- `__vt__Q49textinput6extend4memo12ScrollButton` target +0x2A8, source +0x2A8: owned bytes equal, 4 relocation entries equal.
- `__vt__Q49textinput6extend4memo10NigaoePane` target +0x2C0, source +0x2C0: owned bytes equal, 9 relocation entries equal.
- `__vt__Q49textinput6extend4memo9WholePane` target +0x2EC, source +0x2EC: owned bytes equal, 9 relocation entries equal.
- `__vt__Q49textinput6extend4memo7AnmPane` target +0x318, source +0x318: owned bytes equal, target extent 48, source object 44, 9 relocation entries equal.
- `__vt__Q49textinput6extend4memo12EventHandler` target +0x348, source +0x348: owned bytes equal, 6 relocation entries equal.
- `__vt__Q49textinput6extend4memo9InputForm` target +0x368, source +0x368: owned bytes equal, target extent 744, source object 720, 172 relocation entries equal.
Additional real compiler-emitted weak tables absent from the target symbol inventory:
- `__vt__Q39textinput3gui12EventHandler` source +0x638, 24 bytes: +0x14 -> getLatestEventCtrlNo__Q39textinput3gui12EventHandlerFv; +0x10 -> setLatestEventCtrlNo__Q39textinput3gui12EventHandlerFi; +0xC -> onEvent__Q39textinput3gui12EventHandlerFRQ39textinput3gui12GUIComponentUlPv; +0x8 -> __dt__Q39textinput3gui12EventHandlerFv.
## Remaining differences and completeness audit
Raw relocation name differences for ordinary literal aliases in the inventory above are not wrong pointer targets: normalization to referenced section plus symbol value plus relocation addend resolves them to the same bytes. All retained tiInputForm tables through WithAtok, all tiKeyboard retained tables, and all MyTiManager retained tables have the exact original virtual method slots. No missing nonzero virtual slot was discovered. tiInputForm Base at target .data+0xA08 has only its real destructor/create/init at +8/+12/+16; the additional 28 bytes of its extraction extent are zeros without relocations. Its source table at +0xBA0 has those same three entries. Animation has all seven exact method slots, but shifts from target +0xA38 to source +0xB58. The target OutOfLength literal is at +0xA5C; the identical source literal is at +0xBB4. The final assertion literal shifts from +0xA6C to +0xBC4. The section is not byte-identical and remains unresolved; no invented virtual methods, suppressed tables, padding, or size truncation was used.
tiKeyboard's complete 2696-byte target prefix is byte-identical to source, including every normalized relocation. Source appends two genuine pure-abstract 12-byte weak tables with only zeros and one real 24-byte EventHandler table with the four concrete relocation slots listed above. Therefore the entire section is not identical and the data goal remains unresolved. MyTiManager's complete 944-byte source prefix is byte-identical to target, with identical normalized relocations. The target-only 40-byte zero tail has no outgoing relocations and no incoming reference found in any extracted 43U object. Its actual source object/type cannot be recovered from this evidence; adding a zero filler would violate the task. Its .data goal remains unresolved.
MyTiInputForm .data is 1616 bytes on both sides with identical raw bytes. Source's final weak EventHandler has real destructor/onEvent/setLatestEventCtrlNo/getLatestEventCtrlNo relocations at +0x640/+0x644/+0x648/+0x64C; original deduplicated weak extraction has zeros and no relocations there. Objdiff nonetheless reports 100% for the section. .rodata and .sdata2 are byte-identical, including normalized relocations. .sdata now has the genuine addressable float zero at +0x28, and its entire 67-byte source prefix equals target; target has five trailing zero alignment bytes. Objdiff reports every non-text section 100%, matched_data 3032/3032. No total_data value changed for any unit.
Remaining objdiff nonmatching functions, all restored after three distinct source attempts:
- calcCursorPos__Q39textinput9inputform4BaseFff: 91.622696%, 326/326 instructions, float register allocation/scheduling differs; attempted right-before-bottom, separate scale components, aggregate line bounds.
- create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer: 95.02809%, 352/356 instructions, row/button loop allocation/codegen differs; attempted reload row owner, font branch direction, typed button index.
- setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language: 96.44726%, 237/237 instructions, visibility-loop register choices differ; attempted text-pane branch direction, pane query reload, split visibility counts.
Final clean full gate over all four units: no regressions, no added forbidden patterns, no readability warnings; retail DOL SHA1 preserved. Code matched bytes and instruction-exact counts never dropped in the retained commits. This is partial data progress, with only MyTiInputForm reaching the full data goal. The symbols ownership corrections preserve all original split/section byte extents and require ordinary orchestrator evidence review.
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiInputForm] pool: IDENTICAL
[src/keyboard/tiInputForm] objdiff: code 46980/50656 data 1036/3772 functions 218/221 fuzzy 99.5781 linked code 0
[src/keyboard/tiInputForm] instruction-exact functions: 216/221
[src/keyboard/tiInputForm] section .bss size 96 match 100.0
[src/keyboard/tiInputForm] section .ctors size 4 match 100.0
[src/keyboard/tiInputForm] section .data size 2736 match 65.68563
[src/keyboard/tiInputForm] section .rodata size 760 match 100.0
[src/keyboard/tiInputForm] section .sbss size 32 match 100.0
[src/keyboard/tiInputForm] section .sdata size 40 match 100.0
[src/keyboard/tiInputForm] section .sdata2 size 104 match 100.0
[src/keyboard/tiInputForm] section .text size 50656 match 99.578094
[src/keyboard/tiInputForm] below 100: calcCursorPos__Q39textinput9inputform4BaseFff 91.622696
[src/keyboard/tiInputForm] below 100: create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 95.02809
[src/keyboard/tiInputForm] below 100: setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language 96.44726
[src/keyboard/tiInputForm] baseline: code 46980/50656 data 908 functions 218 fuzzy 99.5781
[src/keyboard/tiKeyboard] pool: IDENTICAL
[src/keyboard/tiKeyboard] objdiff: code 8368/8368 data 12/2708 functions 62/62 fuzzy 100.0000 linked code 8368
[src/keyboard/tiKeyboard] instruction-exact functions: 62/62
[src/keyboard/tiKeyboard] section .ctors size 4 match 100.0
[src/keyboard/tiKeyboard] section .data size 2696 match 99.117645
[src/keyboard/tiKeyboard] section .sbss size 8 match 100.0
[src/keyboard/tiKeyboard] section .text size 8368 match 100.0
[src/keyboard/tiKeyboard] baseline: code 8368/8368 data 12 functions 62 fuzzy 100.0000
[src/keyboard/MyTiManager] pool: IDENTICAL
[src/keyboard/MyTiManager] objdiff: code 20196/20196 data 148/1132 functions 91/91 fuzzy 100.0000 linked code 0
[src/keyboard/MyTiManager] instruction-exact functions: 91/91
[src/keyboard/MyTiManager] section .bss size 72 match 100.0
[src/keyboard/MyTiManager] section .ctors size 4 match 100.0
[src/keyboard/MyTiManager] section .data size 984 match 97.92531
[src/keyboard/MyTiManager] section .sbss size 16 match 100.0
[src/keyboard/MyTiManager] section .sdata size 24 match 100.0
[src/keyboard/MyTiManager] section .sdata2 size 32 match 100.0
[src/keyboard/MyTiManager] section .text size 20196 match 100.0
[src/keyboard/MyTiManager] baseline: code 20196/20196 data 76 functions 91 fuzzy 100.0000
[src/keyboard/MyTiInputForm] pool: IDENTICAL
[src/keyboard/MyTiInputForm] objdiff: code 14532/14532 data 3032/3032 functions 84/84 fuzzy 100.0000 linked code 0
[src/keyboard/MyTiInputForm] instruction-exact functions: 84/84
[src/keyboard/MyTiInputForm] section .data size 1616 match 100.0
[src/keyboard/MyTiInputForm] section .rodata size 1288 match 100.0
[src/keyboard/MyTiInputForm] section .sdata size 72 match 100.0
[src/keyboard/MyTiInputForm] section .sdata2 size 56 match 100.0
[src/keyboard/MyTiInputForm] section .text size 14532 match 100.0
[src/keyboard/MyTiInputForm] baseline: code 14532/14532 data 2960 functions 84 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.55724 -> 88.55724
global fuzzy_match_percent: 99.45033 -> 99.45033
global complete_code_percent: 62.98463 -> 62.98463
global matched_data_percent: 96.82804 -> 96.84288
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
Accepted improvement commits: 2348596d (real float-reference setter), fff3e072 (Color ownership), 8532b7bf (DestructorChain ownership).
## High continuation: name/extent pairing (new origin/main branch)
Starting data: tiInputForm 1036/3772, tiKeyboard 12/2708, MyTiManager 148/1132. Instruction-exact counts 216/221, 62/62, 91/91. Fetched origin before unit work; owned source equals origin/main and the full baseline quick gate passes. Prior three distinct attempts for each open tiInputForm function are retained above. User explicitly permits proven real-object extent corrections, leaving alignment bytes unowned without changing addresses, split ranges or section totals. Earlier claims that extra weak tables inherently prevented data matching were premature; rechecking symbol pairing with this new evidence.
tiKeyboard pool identical (8 strings); source unchanged on origin/main after fetch.
- 0x8165FA88 signwindow::Sample vtable extent 272 -> 268: source class compiler table is 268 bytes; all 61 outgoing virtual/thunk relocations agree at their relative offsets, and target's final four bytes are zero alignment without a relocation; the next table still begins at 0x8165FB98.
- 0x8165FC78 predictlang::Base vtable extent 40 -> 36: compiler table is the two header words plus seven real virtual slots (36 bytes); all seven target relocations agree, and trailing four bytes are zero alignment; the next table remains 0x8165FCA0.
- 0x81698D20 lbl_81698D20 -> defaultEventObserver__9textinput, same 4-byte extent: constructor loads this singleton when observer is NULL, and static init stores the allocated EventObserver pointer through the same target address; source loads/stores defaultEventObserver__9textinput.
The extent-only trial passed with no regression but .data stayed 99.117645% because all eight pooled literals still had anonymous extraction names instead of actual compiler literal symbols. Each verified literal is now named with its actual compiler-owned name; future compiler numbering may change, but objdiff matches compiler-generated literals by bytes/relocations, not the numeric counter.
- 0x8165F8F0 lbl_8165F8F0 -> @8031, same 13 bytes: compiler-pooled literal b'T_title_text'; target references setTitleText__Q29textinput7ManagerFPw .text+0x117A, setTitleText__Q29textinput7ManagerFPw .text+0x1192; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
- 0x8165F900 lbl_8165F900 -> @8076, same 27 bytes: compiler-pooled literal b'fs_VK_ascii_keytop_a.brlyt'; target references createPCTypeKeyboard__Q29textinput7ManagerFv .text+0x147E, createPCTypeKeyboard__Q29textinput7ManagerFv .text+0x148E; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
- 0x8165F920 lbl_8165F920 -> @8086, same 24 bytes: compiler-pooled literal b'fs_VK_cellPhone_a.brlyt'; target references createCellPhoneTypeKeyboard__Q29textinput7ManagerFv .text+0x15C6, createCellPhoneTypeKeyboard__Q29textinput7ManagerFv .text+0x15D2; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
- 0x8165F938 lbl_8165F938 -> @8090, same 22 bytes: compiler-pooled literal b'fs_VK_textBox_a.brlyt'; target references createInputForm__Q29textinput7ManagerFv .text+0x1652, createInputForm__Q29textinput7ManagerFv .text+0x1662; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
- 0x8165F950 lbl_8165F950 -> @8115, same 27 bytes: compiler-pooled literal b'fs_VK_predictInput_a.brlyt'; target references createCandidateBox__Q29textinput7ManagerFv .text+0x16F2, createCandidateBox__Q29textinput7ManagerFv .text+0x1702; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
- 0x8165F96C lbl_8165F96C -> @8148, same 22 bytes: compiler-pooled literal b'fs_VK_toolbar_a.brlyt'; target references createToolBar__Q29textinput7ManagerFv .text+0x1886, createToolBar__Q29textinput7ManagerFv .text+0x1896; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
- 0x8165F988 lbl_8165F988 -> @8156, same 24 bytes: compiler-pooled literal b'fs_prdicSelWidw_a.brlyt'; target references createPredictLanguageDialog__Q29textinput7ManagerFv .text+0x1932, createPredictLanguageDialog__Q29textinput7ManagerFv .text+0x1942; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
- 0x8165F9A0 lbl_8165F9A0 -> @8168, same 22 bytes: compiler-pooled literal b'fs_signWindow_a.brlyt'; target references createSignWindow__Q29textinput7ManagerFv .text+0x1A36, createSignWindow__Q29textinput7ManagerFv .text+0x1A42; source same-offset literal has these identical bytes. Compiler-generated names remain compiler-owned; no new source labels or string blob.
tiKeyboard all-unit quick gate PASS: matched_data 12 -> 2708/2708, every owned non-text section 100%, instruction-exact 62/62 unchanged; zero regressions, correct retail DOL hash. Actual pooled literal identities plus proven vtable extents resolve pairing; extra compiler-emitted weak tables do not prevent the named-symbol route from reaching 100%.
tiInputForm pool identical (20 strings), fetched origin and confirmed owned source unchanged. Symbol pairing corrections, all within its .data split 0x8165C820..0x8165D2D0; every address and section/split total remains unchanged:
- 0x8165C990 jumptable_8165C990 -> @13162, extent 160 -> 160: 40-entry real switch table, all 40 outgoing relocation targets and addends agree with the source compiler table; references ToIndependentClass__Q39textinput9inputform13DeadKeyStreamFw .text+0x4F2 -> data+0x170; ToIndependentClass__Q39textinput9inputform13DeadKeyStreamFw .text+0x4FA -> data+0x170.
- 0x8165CA30 jumptable_8165CA30 -> @13178, extent 40 -> 40: 10-entry real switch table, all 10 outgoing relocation targets and addends agree with the source compiler table; references setLanguage__Q39textinput9inputform4BaseFQ29textinput8Language .text+0xBFA -> data+0x210; setLanguage__Q39textinput9inputform4BaseFQ29textinput8Language .text+0xC02 -> data+0x210.
- 0x8165CA58 jumptable_8165CA58 -> @13457, extent 52 -> 52: 13-entry real switch table, all 13 outgoing relocation targets and addends agree with the source compiler table; references onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x28D2 -> data+0x238; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x28DA -> data+0x238.
- 0x8165CA8C jumptable_8165CA8C -> @13456, extent 192 -> 192: 48-entry real switch table, all 48 outgoing relocation targets and addends agree with the source compiler table; references onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xEB2 -> data+0x26C; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xEBA -> data+0x26C.
- 0x8165CB4C jumptable_8165CB4C -> @13510, extent 148 -> 148: 37-entry real switch table, all 37 outgoing relocation targets and addends agree with the source compiler table; references onHKBCtrlCode__Q39textinput9inputform4BaseFQ29textinput7HVKCodeUl .text+0x65B2 -> data+0x32C; onHKBCtrlCode__Q39textinput9inputform4BaseFQ29textinput7HVKCodeUl .text+0x65BA -> data+0x32C.
- 0x8165CC5C jumptable_8165CC5C -> @14933, extent 28 -> 28: 7-entry real switch table, all 7 outgoing relocation targets and addends agree with the source compiler table; references onAnmEvent__Q39textinput9inputform19NormalButtonAnmPaneFQ49textinput11nw4rmanager7AnmPane12AnmPaneEvent .text+0xC09A -> data+0x43C; onAnmEvent__Q39textinput9inputform19NormalButtonAnmPaneFQ49textinput11nw4rmanager7AnmPane12AnmPaneEvent .text+0xC0A2 -> data+0x43C.
- 0x8165C840 lbl_8165C840 -> csButtonAnimations__Q29textinput9inputform, extent 128 -> 128: two ButtonAnimations structs (64 bytes each), exact bytes and 18 outgoing relocations to pane names and animation-file objects; references __sinit_\tiInputForm_cpp .text+0xC50A -> data+0x20; __sinit_\tiInputForm_cpp .text+0xC512 -> data+0x20.
- 0x8165C970 lbl_8165C970 -> @6599, extent 32 -> 32: compiler-owned constant b'\x00\xa4\x00\xac\x00\xaf\x00\xb2\x00\xb3\x00\xb6\x00\xb8\x00\xb9\x00\xbc\x00\xbd\x00\xbe\x00\xd0\x00\xde\x00\xf0\x00\xfe\x00\x00', exact 32 bytes; references onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xFF2 -> data+0x150; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0xFFA -> data+0x150; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x1436 -> data+0x150; onCommand__Q39textinput9inputform4BaseFQ39textinput15CommandReceiver13INPUT_COMMANDPv .text+0x143E -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x965A -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x9662 -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x97C2 -> data+0x150; onSpaceKeyHWKB__Q39textinput9inputform4BaseFUl .text+0x97CA -> data+0x150.
- 0x8165CBE0 lbl_8165CBE0 -> @13512, extent 52 -> 13: compiler-owned constant b'T_2l_TextBox\x00', exact 13 bytes; references __ct__Q39textinput9inputform12LayoutByNW4RFPQ29textinput7ManagerPQ34nw4r3lyt24MultiArcResourceAccessorPCcPQ29textinput13EventObserverPCc .text+0x9A3E -> data+0x3C0; __ct__Q39textinput9inputform12LayoutByNW4RFPQ29textinput7ManagerPQ34nw4r3lyt24MultiArcResourceAccessorPCcPQ29textinput13EventObserverPCc .text+0x9A56 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9BA -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9BE -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9C2 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9CA -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xA9E2 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAA26 -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAA2A -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB1A -> data+0x3C0; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB1E -> data+0x3C0.
- 0x8165CBF0 recover @13580, 34 bytes previously absorbed into lbl_8165CBE0: separate compiler literal b'RevoIpl_RodinNTLGProM_32_I4.brfnt\x00'; references none in this unit.
- 0x8165CC14 lbl_8165CC14 -> @13639, extent 14 -> 14: compiler-owned constant b'P_txtScrll_UP\x00', exact 14 bytes; references init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA22A -> data+0x3F4; init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA236 -> data+0x3F4.
- 0x8165CC28 lbl_8165CC28 -> @13640, extent 36 -> 16: compiler-owned constant b'P_txtScrll_DOWN\x00', exact 16 bytes; references init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA25A -> data+0x408; init__Q39textinput9inputform12LayoutByNW4RFv .text+0xA266 -> data+0x408.
- 0x8165CC38 recover @13654, 17 bytes previously absorbed into lbl_8165CC28: separate compiler literal b'N_separateBarAll\x00'; references none in this unit.
- 0x8165CC4C lbl_8165CC4C -> @13724, extent 13 -> 13: compiler-owned constant b'T_title_text\x00', exact 13 bytes; references setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB6E -> data+0x42C; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB7A -> data+0x42C; setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language .text+0xAB96 -> data+0x42C.
- 0x8165D0D8 __vt__Q39textinput9inputform10EditBuffer -> __vt__Q39textinput9inputform10EditBuffer, extent 16 -> 12: real compiler vtable is 12 bytes, 1 method/thunk relocation slots; target trailing 4 bytes are zero and contain no relocation; references __dt__Q39textinput9inputform10EditBufferFv .text+0x2A -> data+0x8B8; __dt__Q39textinput9inputform10EditBufferFv .text+0x2E -> data+0x8B8.
- 0x8165D228 __vt__Q29textinput4Base -> __vt__Q29textinput4Base, extent 48 -> 20: real compiler vtable is 20 bytes, 3 method/thunk relocation slots; target trailing 28 bytes are zero and contain no relocation; references none in this unit.
- 0x8165D27C lbl_8165D258 -> @STRING@onOutOfLength__Q29textinput13EventObserverFv, extent 13 -> 13: function-generated string b'OutOfLength\n', actual literal extent 13, target final 0 bytes zero alignment; references none in this unit.
- 0x8165D28C @STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl -> @STRING@GetTextColor__Q34nw4r3lyt7TextBoxCFUl, extent 68 -> 65: function-generated string b'Error#004\nAn error has occurred.\nThe system files are corrupted.', actual literal extent 65, target final 3 bytes zero alignment; references none in this unit.
Initial tiInputForm name-pairing trial reached data 3772/3772 but the gate rejected its DOL hash. Isolated the cause to making the duplicate OutOfLength literal globally visible under the inline function-generated name: iplSystem already owns a global literal under that exact name at 0x81634699. Restoring only the old literal name restored the retail hash, proving the other changes preserve it. The source inline literal is translation-unit compiler-owned data; extract this duplicate as scope:local with its actual source symbol name to preserve the existing global literal's binding. All 43U object symbol tables were checked: no other unit refers to the old lbl_8165D258 symbol. No address/extent/content changes; no real function or public API scope changed.
Neighbour-literal relocation/type proofs strengthened by target disassembly: LayoutByNW4R::create establishes r30 from the .data base relocation, then instruction .text+0x9D6C passes r30+0x3D0 to the resource accessor to load RevoIpl_RodinNTLGProM_32_I4.brfnt; this independently proves the 34-byte literal at 0x8165CBF0 rather than relying on byte similarity alone. LayoutByNW4R::calc at .text+0xA6BC passes the .data base+0x418 to its virtual setVisible for N_separateBarAll, proving the distinct 17-byte object at 0x8165CC38. Both remain ordinary compiler-pooled source literals.
tiInputForm corrected local-string trial passes the all-unit quick gate: every non-text section 100%, matched_data 1036 -> 3772/3772, instruction-exact 216/221 unchanged, no regressions, correct retail DOL hash. All extra weak tables remain genuine compiler output and require no suppression.
MyTiManager: fetched origin, owned source unchanged; pool identical (7 strings). Recover each compiler literal identity, preserving all extents:
- 0x81667E38 lbl_81667E38 -> @8346, same 25 bytes: compiler literal b'WiiBitmapFontType2.brfnt\x00'; relocation loads createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9BA, createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9CE, createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAE2, createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAF6, __sinit_\MyTiManager_cpp .text+0x4E22, __sinit_\MyTiManager_cpp .text+0x4E26.
- 0x81667E58 lbl_81667E58 -> @8347, same 16 bytes: compiler literal b'my_Memo_a.brlyt\x00'; relocation loads createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9BE, createMemoInputForm__Q49textinput6extend4memo7ManagerFv .text+0x9D2.
- 0x81667E68 lbl_81667E68 -> @8369, same 17 bytes: compiler literal b'my_LetterL.brlyt\x00'; relocation loads createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAE6, createLetterInputForm__Q49textinput6extend4memo7ManagerFv .text+0xAFA.
- 0x81667E7C lbl_81667E7C -> @8385, same 22 bytes: compiler literal b'fs_VK_textBox_a.brlyt\x00'; relocation loads createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC22, createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC36.
- 0x81667E94 lbl_81667E94 -> @8386, same 25 bytes: compiler literal b'WiiBitmapFontType1.brfnt\x00'; relocation loads createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC26, createInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC3A, createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC82, createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC96.
- 0x81667EB0 lbl_81667EB0 -> @8402, same 22 bytes: compiler literal b'fs_VK_textBox_b.brlyt\x00'; relocation loads createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC7E, createBigTextInputForm__Q49textinput6extend4memo7ManagerFv .text+0xC92.
- 0x81667EC8 lbl_81667EC8 -> @8410, same 17 bytes: compiler literal b'fs_VK_bg_a.brlyt\x00'; relocation loads createBG__Q49textinput6extend4memo7ManagerFv .text+0xCF2, createBG__Q49textinput6extend4memo7ManagerFv .text+0xCFA.
MyTiManager literal identities pass the all-unit quick gate with no regressions and preserved DOL hash. All seven genuine pooled literal objects now pair by compiler identity, while every retained vtable has the real exact method slots. Unit matched_data remains 148/1132 because the target-only lbl_816681E8 object is still unpaired. It is 40 zero bytes at 0x816681E8..0x81668210, after the 320-byte Manager vtable; source .data ends at offset 0x3B0. No incoming relocation in any original 43U object and no outgoing relocation prove a real type or name for those bytes. No source object was fabricated, no hidden flag added, no zero-size annotation or symbol deletion used to force the score. Remaining extent/ownership is explicitly uncertain. This commit improves real symbol pairing, not the unit's aggregate data measure.
Advisory literal_reference_diff.py over all three units, --all-functions: 35 arguments checked in 373 analyzed functions, no candidates/errors; LayoutByNW4R::create skipped because source/target function sizes differ. This is additional literal evidence, not proof for the unknown zero tail.
## Continuation final verification
Final full gate ran without --quick and rebuilt from a clean 43U build. tiInputForm data 1036 -> 3772/3772 and tiKeyboard 12 -> 2708/2708 now reach the entire data goal; MyTiManager remains 148/1132, with .data 97.92531% and only the unpaired 40-byte tail requiring ownership/type evidence. No code bodies were changed in this continuation. Instruction-exact counts remain 216/221, 62/62 and 91/91; code bytes remain 46980/50656, 8368/8368 and 20196/20196. Checked every changed symbols.txt annotation: all 70 removed/added lines belong to the three assigned split ranges. All section totals stay unchanged.
Open-function completeness audit: calcCursorPos, LayoutByNW4R::create and LayoutByNW4R::setLanguage each have the three distinct source-level attempts recorded earlier in this same log; all were restored and remain open only for code work. Every function in tiKeyboard and MyTiManager is already exact. The two additional objdiff-100% tiInputForm functions excluded from instruction-exact counts are unchanged, preserving the baseline definition.
Tool-source evidence for the pairing method: the installed objdiff-cli is v3.4.5. Its official [find_symbol implementation](https://github.com/encounter/objdiff/blob/v3.4.5/objdiff-core/src/diff/mod.rs#L690) pairs compiler-generated literal/table symbols by exact bytes and relocations, independent of their numeric counters. [diff_generic_section](https://github.com/encounter/objdiff/blob/v3.4.5/objdiff-core/src/diff/data.rs#L511) requires every target-owned symbol to pair at 100%; extra source weak symbols do not prevent this route. The seven now-paired MyTiManager literals and every genuine retained vtable are exact, but the unknown target-owned 40-byte object is still unpaired; it was left intact.
Accepted commits: a6c8a274 (tiKeyboard data 100%), 4ba13948 (tiInputForm data 100%), 78403153 (MyTiManager's seven compiler literal identities, without an aggregate gain).
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiInputForm] pool: IDENTICAL
[src/keyboard/tiInputForm] objdiff: code 46980/50656 data 3772/3772 functions 218/221 fuzzy 99.5781 linked code 0
[src/keyboard/tiInputForm] instruction-exact functions: 216/221
[src/keyboard/tiInputForm] section .bss size 96 match 100.0
[src/keyboard/tiInputForm] section .ctors size 4 match 100.0
[src/keyboard/tiInputForm] section .data size 2736 match 100.0
[src/keyboard/tiInputForm] section .rodata size 760 match 100.0
[src/keyboard/tiInputForm] section .sbss size 32 match 100.0
[src/keyboard/tiInputForm] section .sdata size 40 match 100.0
[src/keyboard/tiInputForm] section .sdata2 size 104 match 100.0
[src/keyboard/tiInputForm] section .text size 50656 match 99.578094
[src/keyboard/tiInputForm] below 100: calcCursorPos__Q39textinput9inputform4BaseFff 91.622696
[src/keyboard/tiInputForm] below 100: create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 95.02809
[src/keyboard/tiInputForm] below 100: setLanguage__Q39textinput9inputform12LayoutByNW4RFQ29textinput8Language 96.44726
[src/keyboard/tiInputForm] baseline: code 46980/50656 data 1036 functions 218 fuzzy 99.5781
[src/keyboard/tiKeyboard] pool: IDENTICAL
[src/keyboard/tiKeyboard] objdiff: code 8368/8368 data 2708/2708 functions 62/62 fuzzy 100.0000 linked code 8368
[src/keyboard/tiKeyboard] instruction-exact functions: 62/62
[src/keyboard/tiKeyboard] section .ctors size 4 match 100.0
[src/keyboard/tiKeyboard] section .data size 2696 match 100.0
[src/keyboard/tiKeyboard] section .sbss size 8 match 100.0
[src/keyboard/tiKeyboard] section .text size 8368 match 100.0
[src/keyboard/tiKeyboard] baseline: code 8368/8368 data 12 functions 62 fuzzy 100.0000
[src/keyboard/MyTiManager] pool: IDENTICAL
[src/keyboard/MyTiManager] objdiff: code 20196/20196 data 148/1132 functions 91/91 fuzzy 100.0000 linked code 0
[src/keyboard/MyTiManager] instruction-exact functions: 91/91
[src/keyboard/MyTiManager] section .bss size 72 match 100.0
[src/keyboard/MyTiManager] section .ctors size 4 match 100.0
[src/keyboard/MyTiManager] section .data size 984 match 97.92531
[src/keyboard/MyTiManager] section .sbss size 16 match 100.0
[src/keyboard/MyTiManager] section .sdata size 24 match 100.0
[src/keyboard/MyTiManager] section .sdata2 size 32 match 100.0
[src/keyboard/MyTiManager] section .text size 20196 match 100.0
[src/keyboard/MyTiManager] baseline: code 20196/20196 data 148 functions 91 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.70241 -> 88.70241
global fuzzy_match_percent: 99.47499 -> 99.47499
global complete_code_percent: 63.21193 -> 63.54459
global matched_data_percent: 98.77142 -> 99.06781
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: no baseline for merge-base 6ebe56bc; compared against nearest snapshotted ancestor 69c235ff (1 commits back)
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```

View File

@@ -71,512 +71,3 @@ readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
Fresh comparison confirms no baseline instruction-exact function disappeared. All four string pools identical. GCWindow and SDMemory semantic non-text relocations identical; GCWindow and SDMemory data are 100%. Extab/extabindex, .bss and .sbss are absent except ChannelSelect .sbss, which reports 100%. Config/splits/symbols unchanged in the final diff. Final clean gate log: /tmp/data-d5-final-gate.log. Symbol/relocation evidence: /tmp/data-d5-symbol-relocation-evidence.txt; final semantic relocation comparison: /tmp/data-d5-final-relocs.txt.
# data-d5 round 2
Fresh branch HEAD/origin/main f6fd2780, after #736. GCWindow and SDMemory are no longer owned. No initial source differences from origin/main for the four new leaves. Fresh baseline report /tmp/data-d5-r2-start.json and instruction-exact snapshot /tmp/data-d5-r2-before.json.
| Unit | matched data | total data | instruction exact |
| --- | ---: | ---: | ---: |
| SDChannelSelect | 224 | 2960 | 117/129 |
| ChannelSelect | 192 | 2336 | 101/102 |
| wad | 64 | 528 | 35/40 |
| NHTTP_thread | 88 | 504 | 25/26 |
Pool-first audit: all four pools identical, 101/101, 98/98, 18/18 and 8/8 strings respectively. Fresh fetches confirm owned SDK/RevoEX sources have not changed on origin/main.
wad .data raw bytes and semantic relocations are identical after zero extension; target length 464 versus source 458, source alignment 8. Target includes six trailing linker alignment bytes. No missing static or pointer table is apparent.
NHTTP_thread .data raw bytes and semantic relocations are identical after zero extension; target 200 versus source 194. .rodata target 216 versus source 213. Target STR_POST_TYPE_BIN symbol is incorrectly at +0x27, which points at the alignment zero before the actual string at +0x28. STR_POST_TYPE_MULTIPART is incorrectly at +0xa6, which points at two alignment zeros before the actual string at +0xa8. Source strings and target bytes agree completely. Investigate instruction relocation addends before correcting these symbols; preserve section ownership and total bytes.
NHTTP_thread symbol correction: NHTTPi_SendProcPostDataBinary materializes STR_POST_DISPOS at 0x81618C70 via .text relocations +0xdf2/+0xdfa. Its original instructions at 0x81499674 and 0x814997E4 add 0xa8 and 0x28 to that relocated base before calling NHTTPi_SendData. These prove MULTIPART begins at 0x81618D18 and BIN at 0x81618C98, not the previous misaligned 0x81618D16/0x81618C97. Corrected only the two symbol addresses; their true character-array sizes remain 0x2d and 0x4c. DTK now recognizes both as strings. All source bytes, section sizes, splits and total data 504 stay unchanged. .rodata 99.5283 -> 100%, matched_data 88 -> 304/504; instruction-exact 25/26 unchanged and objdiff code 10528 unchanged. Quick gate PASS, DOL correct, regressions 0, forbidden/readability 0. No source changes or data-placement tricks.
Round 2 SDK padding audit: nm/objdump symbols and section relocations on both objects are saved in /tmp/data-d5-r2-nm-objdump.txt. wad and NHTTP_thread .data sections both have sh_addralign=8. Their last literal ends at 0x1ca and 0xc2 respectively; target sections end at 0x1d0 and 0xc8, exactly the next 8-byte boundary. These are six zero linker-alignment bytes, not weak objects, static tables, or missing strings. The current compiled sections stop at the literal terminator. No semantic data relocation differs and no symbol/reference names an object in these tails. Shrinking the unit, attributing the zeros to its neighbor, or adding an oversized array solely to reach the boundary would hide/fabricate the mismatch, so none is permitted. This is recorded as a separate linker-padding limitation, not the task's weak-data exception.
Round 2 SDChannelSelect: fresh pool and symbol/relocation audit confirms the previous round's exact state and the three logged typed-class experiments remain applicable. Target .data+0x960..0x980 has no symbol or incoming relocation anywhere in the target object. Source uses that range for its first live button-event vtable; all three real vtable pointer sequences match by class but their section positions differ by 32. Do not invent ownership for the target's anonymous zero range. The trailing weak GUI tables are also still deduplicated.
Round 2 ChannelSelect: fresh bytes and semantic relocation comparison reproduces the first round's exact evidence and three logged attempts. All live string/table/vtable bytes agree, including the fixed WSD_SELECT pool. Remaining source relocations land only in target's deduplicated weak-table zeros. No new actionable data mismatch.
NHTTPi_ThreadParseHeaderProc code cross-check, no data changes: baseline 98.58639%, 191/191 instructions, 20 differences involving pool/request registers and scheduling of the keep-alive false value around the comparison call. Attempt 1 used an initialized BOOL result, updated it on success and stored once after the comparison. 189/191 instructions, 97.565445%, no new exact function; reverted. Attempt 2 retained separate stores but named the false value before the call. Compiler folded it back to the baseline, 191/191 instructions, 98.58639%; reverted. Attempt 3 stored the comparison's boolean result directly. Measurements are saved in /tmp/data-d5-r2-nhttp-parse3.ctx and /tmp/data-d5-r2-nhttp-parse3.json; no exact gain, reverted. These are distinct readable forms, with no volatile or register coercion. All three kept the data report 304/504; none was committed.
WAD_815C1288 attempt 1: initialize transfer before bufferIndex, following target load order. objdiff 96.803276%, source/target 61/61 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-1.ctx. No accepted exact gain, restored.
WAD_815C1288 attempt 2: express the producer loop as while with explicit index advance. objdiff 96.803276%, source/target 61/61 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-2.ctx. No accepted exact gain, restored.
WAD_815C1288 attempt 3: calculate chunk size with a conditional expression. objdiff 96.31148%, source/target 61/61 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-3.ctx. No accepted exact gain, restored.
WADImportGetBlocks attempt 1: express content-count and file-count loops with explicit advances. objdiff 94.24161%, source/target 286/298 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-4.ctx. No accepted exact gain, restored.
WADImportGetBlocks attempt 2: bind each content descriptor only after selecting its index. objdiff 91.72819%, source/target 281/298 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-5.ctx. No accepted exact gain, restored.
WADImportGetBlocks attempt 3: cache the file-count value for allocation and iteration. objdiff 92.66443%, source/target 284/298 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-6.ctx. No accepted exact gain, restored.
WADImportEx attempt 1: separate cleanup-state declarations from initialization before unpackInfo clear. objdiff 99.01571%, source/target 1146/1146 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-7.ctx. No accepted exact gain, restored.
WADImportEx attempt 2: declare the two transfer buffers together, retaining their initialization order. objdiff 99.02269%, source/target 1146/1146 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-8.ctx. No accepted exact gain, restored.
WADImportEx attempt 3: group content-installation cache declarations before the result state. objdiff 98.81676%, source/target 1146/1146 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-9.ctx. No accepted exact gain, restored.
WADBackupEx attempt 1: initialize stream/file cleanup states at declaration. objdiff 97.085686%, source/target 1057/1062 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-10.ctx. No accepted exact gain, restored.
WADBackupEx attempt 2: reorder independent metadata/cache zero initializations before validation. objdiff 97.37571%, source/target 1057/1062 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-11.ctx. No accepted exact gain, restored.
WADBackupEx attempt 3: initialize the thread-created state with other cleanup flags. objdiff 97.370995%, source/target 1057/1062 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-12.ctx. No accepted exact gain, restored.
WADImportDVDExForBS attempt 1: initialize the read-buffer pointer after cleanup state declaration. objdiff 97.49049%, source/target 261/263 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-13.ctx. No accepted exact gain, restored.
WADImportDVDExForBS attempt 2: check buffer then path in the initial independent validation. objdiff 97.45247%, source/target 261/263 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-14.ctx. No accepted exact gain, restored.
WADImportDVDExForBS attempt 3: group content-buffer and remaining-size calculations with a typed section-end pointer. Compile failed; rejected and restored. Evidence /tmp/data-d5-r2-wad-trial-15.build.
WADImportDVDExForBS attempt 3: group content-buffer and remaining-size calculations with a typed section-end pointer. objdiff 97.49049%, source/target 261/263 instructions, baseline exact functions preserved 35/35, data 64/528, pool 0. Evidence /tmp/data-d5-r2-wad-trial-15.ctx. No accepted exact gain, restored.
src/scene/sdChannelSelect/iplSDChannelSelect::create attempt 1: express the thumbnail heap addition as separate arithmetic. objdiff 96.64384%, instructions 146/146, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-1.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::create attempt 2: declare elapsed tick storage beside the starting tick. objdiff 97.73972%, instructions 145/146, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-2.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::create attempt 3: test a single next-page index temporary. objdiff 96.5274%, instructions 144/146, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-3.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::handleSDTitleListResult attempt 1: initialize added-title state before iteration indices. objdiff 98.91813%, instructions 170/171, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-4.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::handleSDTitleListResult attempt 2: use an explicit increment statement for the stored channel index. objdiff 99.15205%, instructions 170/171, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-5.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::handleSDTitleListResult attempt 3: initialize title count and adjust the hazard case explicitly. objdiff 96.666664%, instructions 168/171, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-6.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByUsage attempt 1: reverse independent usage accumulator declarations. objdiff 97.72277%, instructions 101/101, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-7.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByUsage attempt 2: declare the channel index before its page output. objdiff 97.77228%, instructions 101/101, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-8.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByUsage attempt 3: return the final first-usage comparison directly. objdiff 94.53465%, instructions 100/101, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-9.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesFromNandUsage attempt 1: reverse independent usage accumulator declarations. objdiff 97.745094%, instructions 102/102, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-10.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesFromNandUsage attempt 2: declare the channel index before its page output. objdiff 97.79412%, instructions 102/102, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-11.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesFromNandUsage attempt 3: return the final first-usage comparison directly. objdiff 94.588234%, instructions 101/102, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-12.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByChannelOrder attempt 1: reverse independent usage accumulator declarations. objdiff 97.22222%, instructions 126/126, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-13.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByChannelOrder attempt 3: return the final first-usage comparison directly. objdiff 94.666664%, instructions 125/126, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-15.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesBySpecialChannels attempt 1: reverse independent usage accumulator declarations. objdiff 97.484764%, instructions 361/361, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-16.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesBySpecialChannels attempt 2: declare the channel index before its page output. objdiff 97.54017%, instructions 361/361, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-17.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesBySpecialChannels attempt 3: return the final first-usage comparison directly. objdiff 96.634346%, instructions 360/361, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-18.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::flushSaveDataAndMountSD attempt 1: bind the pointer animation before resetting it. objdiff 99.65714%, instructions 35/35, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-19.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::flushSaveDataAndMountSD attempt 2: bind the save manager for its two operations. objdiff 99.65714%, instructions 35/35, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-20.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::flushSaveDataAndMountSD attempt 3: hold the flush result before storing it. objdiff 99.65714%, instructions 35/35, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-21.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::calcCommon attempt 3: simplify the independent right-arrow predicate. objdiff 98.888885%, instructions 109/108, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-24.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 1: assign the left arrow flag before conditional animation. objdiff 89.62766%, instructions 93/94, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-25.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 2: simplify the right-arrow range comparison. objdiff 98.723404%, instructions 95/94, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-26.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 3: isolate the first animation pointer. Compile failed, reverted; /tmp/data-d5-r2-scene-trial-27.build.
src/scene/sdChannelSelect/iplSDChannelSelect::selectChannel attempt 1: materialize the channel translation as a named vector. objdiff 93.72881%, instructions 60/59, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-28.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::selectChannel attempt 2: place the selected channel index assignment next to its lookup. objdiff 80.932205%, instructions 60/59, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-29.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::selectChannel attempt 3: separate the button declaration from initialization. objdiff 98.305084%, instructions 60/59, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-30.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::setChannelScissor attempt 1: declare clipping coordinates before extents. objdiff 92.67811%, instructions 233/233, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-31.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::setChannelScissor attempt 2: reverse independent vertical projection divisions. objdiff 93.48498%, instructions 233/233, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-32.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::setChannelScissor attempt 3: expand extents before subtracting the border coordinates. objdiff 93.343346%, instructions 233/233, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-33.ctx. No accepted exact gain, reverted.
src/scene/channelSelect/iplChannelSelect::setChannelScissor attempt 1: declare clipping coordinates before extents. objdiff 92.69099%, instructions 233/233, exact baseline preserved 101/101, data 192/2336, pool 0; /tmp/data-d5-r2-scene-trial-34.ctx. No accepted exact gain, reverted.
src/scene/channelSelect/iplChannelSelect::setChannelScissor attempt 2: reverse independent vertical projection divisions. objdiff 93.4721%, instructions 233/233, exact baseline preserved 101/101, data 192/2336, pool 0; /tmp/data-d5-r2-scene-trial-35.ctx. No accepted exact gain, reverted.
src/scene/channelSelect/iplChannelSelect::setChannelScissor attempt 3: expand extents before subtracting the border coordinates. objdiff 93.356224%, instructions 233/233, exact baseline preserved 101/101, data 192/2336, pool 0; /tmp/data-d5-r2-scene-trial-36.ctx. No accepted exact gain, reverted.
Runner selection error: the first button-handler trial accidentally measured the already-exact SDChannelSelect member overload. That measurement was invalid, no candidate was accepted or committed, and the source was restored. Subsequent trials use the full anonymous handler namespace and report its actual 98.541664% score.
src/scene/sdChannelSelect/iplSDChannelSelect::collectTitlesByChannelOrder attempt 2: declare a cached selected channel index as const. objdiff 97.29365%, instructions 126/126, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-14.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::calcCommon attempt 1: set the left arrow visibility with one boolean expression. objdiff 88.14815%, instructions 104/108, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-22.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::calcCommon attempt 2: bind the SD button through a separate scene pointer. objdiff 99.07407%, instructions 109/108, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-23.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::initializeNormalPage attempt 3: isolate the first animation pointer. objdiff 98.93617%, instructions 95/94, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-27.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 1: switch directly on the scene state. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-37.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 2: bind the pane before getting its name. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-38.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 3: use a typed boolean for the controller trigger. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-39.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 4: handle nonzero events with an early return before normal-state processing. objdiff 98.541664%, instructions 144/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-40.ctx. No accepted exact gain, reverted.
src/scene/sdChannelSelect/iplSDChannelSelect::onEventDerived attempt 5: dispatch the event with a switch and explicit default return. objdiff 99.30556%, instructions 145/144, exact baseline preserved 117/117, data 224/2960, pool 0; /tmp/data-d5-r2-scene-trial-41.ctx. No accepted exact gain, reverted.
Final pre-gate remote check: fetched origin/main a1d6b7d9; none of the four owned source files changed since starting main f6fd2780. No new upstream match duplicates this work.
Button-handler fifth attempt uses the real event switch and reaches 99.30556%, 145/144 instructions. The remaining extra instruction is `li r5,0` before SDButton::setEventHandler(NULL). The original relocates to the two-pointer setter but does not initialize its ignored second argument. The current honest declaration supplies default NULL, and the setter implementation ignores that argument. Removed no argument, introduced no alias/prototype cast or uninitialized value; reverted the fuzzy-only candidate. This explains the unresolved call ABI difference rather than claiming a register-only tie-break.
## Round 2 final full gate and remaining functions
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 27108/33828 data 224/2960 functions 117/129 fuzzy 99.5051 linked code 0
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 117/129
[src/scene/channelSelect/iplChannelSelect] objdiff: code 24736/25668 data 192/2336 functions 101/102 fuzzy 99.7634 linked code 0
[src/scene/channelSelect/iplChannelSelect] instruction-exact functions: 101/102
[libs/RVL_SDK/src/wad/wad] objdiff: code 13180/24500 data 64/528 functions 35/40 fuzzy 98.9416 linked code 0
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 35/40
[libs/RevoEX/src/nhttp/NHTTP_thread] objdiff: code 10528/11292 data 304/504 functions 25/26 fuzzy 99.9044 linked code 0
[libs/RevoEX/src/nhttp/NHTTP_thread] instruction-exact functions: 25/26
regressions vs baseline: 0
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
src/scene/sdChannelSelect/iplSDChannelSelect: data 224 -> 224/2960; code 27108 -> 27108/33828; instruction-exact 117 -> 117/129.
- create__Q33ipl5scene15SDChannelSelectFv: 97.73972%; instructions 145/146; allocation and elapsed-tick scheduling; one instruction missing; 3 distinct compiled source attempts, all rejected and restored.
- handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv: 99.15205%; instructions 170/171; title-loop/state scheduling; one instruction missing; 3 distinct compiled source attempts, all rejected and restored.
- collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.81188%; instructions 101/101; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored.
- collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.833336%; instructions 102/102; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored.
- collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.29365%; instructions 126/126; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored.
- collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.55125%; instructions 361/361; loop register assignment and scheduling; 3 distinct compiled source attempts, all rejected and restored.
- flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv: 99.65714%; instructions 35/35; heap/save-manager load order reversed, two instruction differences; 3 distinct compiled source attempts, all rejected and restored.
- calcCommon__Q33ipl5scene15SDChannelSelectFv: 99.07407%; instructions 109/108; extra default second-argument initialization at SDButton setter call; 3 distinct compiled source attempts, all rejected and restored.
- initializeNormalPage__Q33ipl5scene15SDChannelSelectFv: 98.93617%; instructions 95/94; extra default second-argument initialization at SDButton setter call; 3 distinct compiled source attempts, all rejected and restored.
- selectChannel__Q33ipl5scene15SDChannelSelectFii: 98.305084%; instructions 60/59; extra default second-argument initialization at SDButton setter call; 3 distinct compiled source attempts, all rejected and restored.
- setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj: 93.4721%; instructions 233/233; floating-point registers and arithmetic scheduling; 3 distinct compiled source attempts, all rejected and restored.
- onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface: 98.541664%; instructions 144/144; event dispatch form and ignored second setter argument; 5 distinct compiled source attempts, all rejected and restored.
src/scene/channelSelect/iplChannelSelect: data 192 -> 192/2336; code 24736 -> 24736/25668; instruction-exact 101 -> 101/102.
- setChannelScissor__Q33ipl5scene13ChannelSelectCFPCQ33ipl5scene10ChannelObj: 93.48498%; instructions 233/233; floating-point registers and arithmetic scheduling; 3 distinct compiled source attempts, all rejected and restored.
libs/RVL_SDK/src/wad/wad: data 64 -> 64/528; code 13180 -> 13180/24500; instruction-exact 35 -> 35/40.
- WADImportGetBlocks: 94.24161%; instructions 286/298; metadata/content loop and initialization code, twelve instructions missing; 3 distinct compiled source attempts, all rejected and restored.
- WADImportEx: 99.02269%; instructions 1146/1146; register allocation across transfer/cleanup state, equal instruction count; 3 distinct compiled source attempts, all rejected and restored.
- WAD_815C1288: 96.803276%; instructions 61/61; transfer/index register allocation, equal instruction count; 3 distinct compiled source attempts, all rejected and restored.
- WADBackupEx: 97.370995%; instructions 1057/1062; export loops and cleanup code, five instructions missing; 3 distinct compiled source attempts, all rejected and restored.
- WADImportDVDExForBS: 97.49049%; instructions 261/263; section calculations, two instructions missing; 3 distinct compiled source attempts, all rejected and restored.
libs/RevoEX/src/nhttp/NHTTP_thread: data 88 -> 304/504; code 10528 -> 10528/11292; instruction-exact 25 -> 25/26.
- NHTTPi_ThreadParseHeaderProc: 98.58639%; instructions 191/191; pool/request registers and keep-alive false-value scheduling; 3 distinct compiled source attempts, all rejected and restored.
All 19 remaining functions have at least three compiled, distinct source-level attempts recorded above. No exact function disappeared. Final pools all identical, zero-extended section bytes and semantic relocations independently rechecked after the clean gate. Only NHTTP .rodata reaches a new 100% section; remaining .data scores are SDChannelSelect 35.06984, ChannelSelect 95.60976, wad 99.34924, NHTTP_thread 98.47716. The anonymous SD gap ownership and SDK final linker padding remain unresolved; the ChannelSelect weak-data exception is documented. No code, shared header, split or array-size changes survive round 2.
## High round: symbol pairing and typed extents
Starting HEAD 0c94076d, fetched origin/main 08923eda. No owned source differs on the remote. All pools are identical; fresh before report saved as /tmp/data-d5-r3-before-report.json. Correct the previous interpretation: source-only weak data does not itself prevent exact data scoring. Coarse target aggregates and misleading names paired the wrong objects; physical linker padding stays present when real typed extents are corrected. The following changes use original relocations, constant address calculations from relocated bases, literal terminators and real vtable slot layouts. No original addresses, splits, section totals or source definitions change.
### High-round libs/RVL_SDK/src/wad/wad symbol/type proofs
- 816904B0 lbl_816904B0 -> __func__$1718, extent 88 -> 12: .text+0x98E relocates lbl_816904B0+0x0; 12-byte NUL-terminated char literal b'WADImportEx\x00'. Address and physical section length unchanged.
- 816904BC new symbol @4498, extent 37 inside formerly aggregated lbl_816904B0: WADImportEx .text+0x1a60 `addi r3, r3, 0xc` via relocation-derived base register r3; 37-byte NUL-terminated char literal b'%s:%d Cancel importing the content.\n\x00'. Address and physical section length unchanged.
- 816904E4 new symbol @4499, extent 35 inside formerly aggregated lbl_816904B0: WADImportEx .text+0x1a94 `addi r3, r3, 0x34` via relocation-derived base register r3; 35-byte NUL-terminated char literal b'%s:%d Cancel importing the title.\n\x00'. Address and physical section length unchanged.
- 81690508 lbl_81690508 -> @4643, extent 13 -> 13: .text+0x217E relocates lbl_81690508+0x0; 13-byte NUL-terminated char literal b'/title/%x/%x\x00'. Address and physical section length unchanged.
- 81690518 lbl_81690518 -> __func__$2446, extent 13 -> 13: .text+0x2F16 relocates lbl_81690518+0x0; 13-byte NUL-terminated char literal b'_WADMemAlloc\x00'. Address and physical section length unchanged.
- 81690528 lbl_81690528 -> @4680, extent 56 -> 56: .text+0x2F12 relocates lbl_81690528+0x0; 56-byte NUL-terminated char literal b'%s: Memory Allocator must return 64B aligned memBlocks\n\x00'. Address and physical section length unchanged.
- 81690560 lbl_81690560 -> @4976, extent 32 -> 32: .text+0x41D2 relocates lbl_81690560+0x0; 32-byte NUL-terminated char literal b'/shared2/succession/transfer.id\x00'. Address and physical section length unchanged.
- 81690580 lbl_81690580 -> @4988, extent 11 -> 11: .text+0x4292 relocates lbl_81690580+0x0; 11-byte NUL-terminated char literal b'notransfer\x00'. Address and physical section length unchanged.
- 8169058C lbl_8169058C -> @5034, extent 9 -> 9: .text+0x442A relocates lbl_8169058C+0x0; 9-byte NUL-terminated char literal b'%s/%s/%s\x00'. Address and physical section length unchanged.
- 81690598 lbl_81690598 -> @5036, extent 11 -> 11: .text+0x442E relocates lbl_81690598+0x0; 11-byte NUL-terminated char literal b'banner.bin\x00'. Address and physical section length unchanged.
- 816905A4 lbl_816905A4 -> @5310, extent 12 -> 12: .text+0x560E relocates lbl_816905A4+0x0; 12-byte NUL-terminated char literal b'zeldaTp.dat\x00'. Address and physical section length unchanged.
- 816905B0 lbl_816905B0 -> __func__$3419, extent 16 -> 16: .text+0x5826 relocates lbl_816905B0+0x0; 16-byte NUL-terminated char literal b'_WADCleanTmpDir\x00'. Address and physical section length unchanged.
- 816905C0 lbl_816905C0 -> @5329, extent 192 -> 17: .text+0x5822 relocates lbl_816905C0+0x0; 17-byte NUL-terminated char literal b'%s:%d remove %s\n\x00'. Address and physical section length unchanged.
- 816905D4 new symbol __func__$3450, extent 18 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x59cc `addi r4, r31, 0x124` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'WADImportDVDForBS\x00'. Address and physical section length unchanged.
- 816905E8 new symbol @5365, extent 39 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x59c8 `addi r3, r31, 0x138` via relocation-derived base register r31; 39-byte NUL-terminated char literal b'%s:%d Format should be iRD format: %s\n\x00'. Address and physical section length unchanged.
- 81690610 new symbol @5366, extent 28 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x5b10 `addi r3, r31, 0x160` via relocation-derived base register r31; 28-byte NUL-terminated char literal b'%s: Import Boot Failed: %d\n\x00'. Address and physical section length unchanged.
- 8169062C new symbol @5367, extent 28 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x5b24 `addi r3, r31, 0x17c` via relocation-derived base register r31; 28-byte NUL-terminated char literal b'%s: Import Boot Successful\n\x00'. Address and physical section length unchanged.
- 81690648 new symbol @5368, extent 50 inside formerly aggregated lbl_816905C0: WADImportDVDForBS .text+0x5b38 `addi r3, r31, 0x198` via relocation-derived base register r31; 50-byte NUL-terminated char literal b'%s:%d This function only works for boot2 import.\n\x00'. Address and physical section length unchanged.
wad quick gate PASS: data 64 -> 528/528, all non-text sections 100%, instruction-exact 35/40 unchanged, code 13180/24500 unchanged, regressions/forbidden/readability 0. Correct literal extents remove the earlier false padding limitation; physical section remains 464 bytes.
### High-round libs/RevoEX/src/nhttp/NHTTP_thread symbol/type proofs
- 8166D1A8 lbl_8166D1A8 -> @2079, extent 92 -> 9: .text+0x6D2 relocates lbl_8166D1A8+0x0; 9-byte NUL-terminated char literal b'CONNECT \x00'. Address and physical section length unchanged.
- 8166D1B4 new symbol @2081, extent 12 inside formerly aggregated lbl_8166D1A8: NHTTPi_SendProxyConnectMethod .text+0x798 `addi r4, r28, 0xc` via relocation-derived base register r28; 12-byte NUL-terminated char literal b' HTTP/1.1\r\n\x00'. Address and physical section length unchanged.
- 8166D1C0 new symbol @2084, extent 38 inside formerly aggregated lbl_8166D1A8: NHTTPi_SendProxyConnectMethod .text+0x848 `addi r4, r28, 0x18` via relocation-derived base register r28; 38-byte NUL-terminated char literal b'Content-Length: 0\r\nPragma: no-cache\r\n\x00'. Address and physical section length unchanged.
- 8166D1E8 new symbol @2085, extent 28 inside formerly aggregated lbl_8166D1A8: NHTTPi_SendProxyConnectMethod .text+0x888 `addi r4, r28, 0x40` via relocation-derived base register r28; 28-byte NUL-terminated char literal b'Proxy-Authorization: Basic \x00'. Address and physical section length unchanged.
- 8166D204 lbl_8166D204 -> @2147, extent 108 -> 17: .text+0xCFA relocates lbl_8166D204+0x0; 17-byte NUL-terminated char literal b'Content-Length: \x00'. Address and physical section length unchanged.
- 8166D218 new symbol @2423, extent 22 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadSendProc .text+0x1d78 `addi r4, r30, 0x70` via relocation-derived base register r30; 22-byte NUL-terminated char literal b'Authorization: Basic \x00'. Address and physical section length unchanged.
- 8166D230 new symbol @2483, extent 15 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x223c `addi r4, r28, 0x88` via relocation-derived base register r28; 15-byte NUL-terminated char literal b'Content-Length\x00'. Address and physical section length unchanged.
- 8166D240 new symbol @2484, extent 11 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x2300 `addi r4, r28, 0x98` via relocation-derived base register r28; 11-byte NUL-terminated char literal b'Connection\x00'. Address and physical section length unchanged.
- 8166D24C new symbol @2485, extent 11 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x2350 `addi r6, r28, 0xa4` via relocation-derived base register r28; 11-byte NUL-terminated char literal b'Keep-Alive\x00'. Address and physical section length unchanged.
- 8166D258 new symbol @2486, extent 18 inside formerly aggregated lbl_8166D204: NHTTPi_ThreadParseHeaderProc .text+0x238c `addi r4, r28, 0xb0` via relocation-derived base register r28; 18-byte NUL-terminated char literal b'Transfer-Encoding\x00'. Address and physical section length unchanged.
NHTTP_thread quick gate PASS: data 304 -> 504/504, all non-text sections 100%, instruction-exact 25/26 unchanged, code 10528/11292 unchanged, regressions/forbidden/readability 0. Fetched origin before this unit; no remote source fix. The final Transfer-Encoding string is 18 bytes; remaining six alignment bytes stay physically present and need no fabricated array.
### High-round src/scene/channelSelect/iplChannelSelect symbol/type proofs
- 8164DD14 jumptable_8164DD14 -> @23426, extent 108 -> 108: .text+0x9A6 relocates jumptable_8164DD14+0x0; 108-byte typed pointer/jump table; +0x0->calcNormal__Q33ipl5scene13ChannelSelectFv+0xD4, +0x4->calcNormal__Q33ipl5scene13ChannelSelectFv+0x4C, +0x8->calcNormal__Q33ipl5scene13ChannelSelectFv+0xD4. Address and physical section length unchanged.
- 8164D978 lbl_8164D978 -> @17260, extent 9 -> 9: .text+0x586 relocates lbl_8164D978+0x0; 9-byte NUL-terminated char literal b'N_Ch_a04\x00'. Address and physical section length unchanged.
- 8164D981 lbl_8164D981 -> @17261, extent 9 -> 9: .data+0x198 relocates lbl_8164D981+0x0; 9-byte NUL-terminated char literal b'N_Ch_a08\x00'. Address and physical section length unchanged.
- 8164D98A lbl_8164D98A -> @17262, extent 9 -> 9: .data+0x1A8 relocates lbl_8164D98A+0x0; 9-byte NUL-terminated char literal b'N_Ch_a12\x00'. Address and physical section length unchanged.
- 8164D993 lbl_8164D993 -> @17263, extent 9 -> 9: .data+0x1AC relocates lbl_8164D993+0x0; 9-byte NUL-terminated char literal b'N_Ch_b01\x00'. Address and physical section length unchanged.
- 8164D99C lbl_8164D99C -> @17264, extent 9 -> 9: .data+0x1B0 relocates lbl_8164D99C+0x0; 9-byte NUL-terminated char literal b'N_Ch_b02\x00'. Address and physical section length unchanged.
- 8164D9A5 lbl_8164D9A5 -> @17265, extent 9 -> 9: .data+0x1B4 relocates lbl_8164D9A5+0x0; 9-byte NUL-terminated char literal b'N_Ch_b03\x00'. Address and physical section length unchanged.
- 8164D9AE lbl_8164D9AE -> @17266, extent 9 -> 9: .data+0x1B8 relocates lbl_8164D9AE+0x0; 9-byte NUL-terminated char literal b'N_Ch_b04\x00'. Address and physical section length unchanged.
- 8164D9B7 lbl_8164D9B7 -> @17267, extent 9 -> 9: .data+0x1BC relocates lbl_8164D9B7+0x0; 9-byte NUL-terminated char literal b'N_Ch_b05\x00'. Address and physical section length unchanged.
- 8164D9C0 lbl_8164D9C0 -> @17268, extent 9 -> 9: .data+0x1C0 relocates lbl_8164D9C0+0x0; 9-byte NUL-terminated char literal b'N_Ch_b06\x00'. Address and physical section length unchanged.
- 8164D9C9 lbl_8164D9C9 -> @17269, extent 9 -> 9: .data+0x1C4 relocates lbl_8164D9C9+0x0; 9-byte NUL-terminated char literal b'N_Ch_b07\x00'. Address and physical section length unchanged.
- 8164D9D2 lbl_8164D9D2 -> @17270, extent 9 -> 9: .data+0x1C8 relocates lbl_8164D9D2+0x0; 9-byte NUL-terminated char literal b'N_Ch_b08\x00'. Address and physical section length unchanged.
- 8164D9DB lbl_8164D9DB -> @17271, extent 9 -> 9: .data+0x1CC relocates lbl_8164D9DB+0x0; 9-byte NUL-terminated char literal b'N_Ch_b09\x00'. Address and physical section length unchanged.
- 8164D9E4 lbl_8164D9E4 -> @17272, extent 9 -> 9: .data+0x1D0 relocates lbl_8164D9E4+0x0; 9-byte NUL-terminated char literal b'N_Ch_b10\x00'. Address and physical section length unchanged.
- 8164D9ED lbl_8164D9ED -> @17273, extent 9 -> 9: .data+0x1D4 relocates lbl_8164D9ED+0x0; 9-byte NUL-terminated char literal b'N_Ch_b11\x00'. Address and physical section length unchanged.
- 8164D9F6 lbl_8164D9F6 -> @17274, extent 9 -> 9: .data+0x1D8 relocates lbl_8164D9F6+0x0; 9-byte NUL-terminated char literal b'N_Ch_b12\x00'. Address and physical section length unchanged.
- 8164D9FF lbl_8164D9FF -> @17275, extent 9 -> 9: .data+0x1DC relocates lbl_8164D9FF+0x0; 9-byte NUL-terminated char literal b'N_Ch_c01\x00'. Address and physical section length unchanged.
- 8164DA08 lbl_8164DA08 -> @17276, extent 9 -> 9: .data+0x1E0 relocates lbl_8164DA08+0x0; 9-byte NUL-terminated char literal b'N_Ch_c02\x00'. Address and physical section length unchanged.
- 8164DA11 lbl_8164DA11 -> @17277, extent 9 -> 9: .data+0x1E4 relocates lbl_8164DA11+0x0; 9-byte NUL-terminated char literal b'N_Ch_c03\x00'. Address and physical section length unchanged.
- 8164DA1A lbl_8164DA1A -> @17278, extent 9 -> 9: .data+0x1E8 relocates lbl_8164DA1A+0x0; 9-byte NUL-terminated char literal b'N_Ch_c04\x00'. Address and physical section length unchanged.
- 8164DA23 lbl_8164DA23 -> @17279, extent 9 -> 9: .data+0x1EC relocates lbl_8164DA23+0x0; 9-byte NUL-terminated char literal b'N_Ch_c05\x00'. Address and physical section length unchanged.
- 8164DA2C lbl_8164DA2C -> @17280, extent 9 -> 9: .data+0x1F0 relocates lbl_8164DA2C+0x0; 9-byte NUL-terminated char literal b'N_Ch_c06\x00'. Address and physical section length unchanged.
- 8164DA35 lbl_8164DA35 -> @17281, extent 9 -> 9: .data+0x1F4 relocates lbl_8164DA35+0x0; 9-byte NUL-terminated char literal b'N_Ch_c07\x00'. Address and physical section length unchanged.
- 8164DA3E lbl_8164DA3E -> @17282, extent 9 -> 9: .data+0x1F8 relocates lbl_8164DA3E+0x0; 9-byte NUL-terminated char literal b'N_Ch_c08\x00'. Address and physical section length unchanged.
- 8164DA47 lbl_8164DA47 -> @17283, extent 9 -> 9: .data+0x1FC relocates lbl_8164DA47+0x0; 9-byte NUL-terminated char literal b'N_Ch_c09\x00'. Address and physical section length unchanged.
- 8164DA50 lbl_8164DA50 -> @17284, extent 9 -> 9: .data+0x200 relocates lbl_8164DA50+0x0; 9-byte NUL-terminated char literal b'N_Ch_c10\x00'. Address and physical section length unchanged.
- 8164DA59 lbl_8164DA59 -> @17285, extent 9 -> 9: .data+0x204 relocates lbl_8164DA59+0x0; 9-byte NUL-terminated char literal b'N_Ch_c11\x00'. Address and physical section length unchanged.
- 8164DA62 lbl_8164DA62 -> @17286, extent 9 -> 9: .data+0x208 relocates lbl_8164DA62+0x0; 9-byte NUL-terminated char literal b'N_Ch_c12\x00'. Address and physical section length unchanged.
- 8164DA6B lbl_8164DA6B -> @17287, extent 9 -> 9: .data+0x20C relocates lbl_8164DA6B+0x0; 9-byte NUL-terminated char literal b'N_Ch_d01\x00'. Address and physical section length unchanged.
- 8164DA74 lbl_8164DA74 -> @17288, extent 9 -> 9: .data+0x210 relocates lbl_8164DA74+0x0; 9-byte NUL-terminated char literal b'N_Ch_d02\x00'. Address and physical section length unchanged.
- 8164DA7D lbl_8164DA7D -> @17289, extent 9 -> 9: .data+0x214 relocates lbl_8164DA7D+0x0; 9-byte NUL-terminated char literal b'N_Ch_d03\x00'. Address and physical section length unchanged.
- 8164DA86 lbl_8164DA86 -> @17290, extent 9 -> 9: .data+0x218 relocates lbl_8164DA86+0x0; 9-byte NUL-terminated char literal b'N_Ch_d04\x00'. Address and physical section length unchanged.
- 8164DA8F lbl_8164DA8F -> @17291, extent 9 -> 9: .data+0x21C relocates lbl_8164DA8F+0x0; 9-byte NUL-terminated char literal b'N_Ch_d05\x00'. Address and physical section length unchanged.
- 8164DA98 lbl_8164DA98 -> @17292, extent 9 -> 9: .data+0x220 relocates lbl_8164DA98+0x0; 9-byte NUL-terminated char literal b'N_Ch_d06\x00'. Address and physical section length unchanged.
- 8164DAA1 lbl_8164DAA1 -> @17293, extent 9 -> 9: .data+0x224 relocates lbl_8164DAA1+0x0; 9-byte NUL-terminated char literal b'N_Ch_d07\x00'. Address and physical section length unchanged.
- 8164DAAA lbl_8164DAAA -> @17294, extent 9 -> 9: .data+0x228 relocates lbl_8164DAAA+0x0; 9-byte NUL-terminated char literal b'N_Ch_d08\x00'. Address and physical section length unchanged.
- 8164DAB3 lbl_8164DAB3 -> @17295, extent 9 -> 9: .data+0x22C relocates lbl_8164DAB3+0x0; 9-byte NUL-terminated char literal b'N_Ch_d09\x00'. Address and physical section length unchanged.
- 8164DABC lbl_8164DABC -> @17296, extent 9 -> 9: .data+0x230 relocates lbl_8164DABC+0x0; 9-byte NUL-terminated char literal b'N_Ch_d10\x00'. Address and physical section length unchanged.
- 8164DAC5 lbl_8164DAC5 -> @17297, extent 9 -> 9: .data+0x234 relocates lbl_8164DAC5+0x0; 9-byte NUL-terminated char literal b'N_Ch_d11\x00'. Address and physical section length unchanged.
- 8164DACE lbl_8164DACE -> @17298, extent 9 -> 9: .data+0x238 relocates lbl_8164DACE+0x0; 9-byte NUL-terminated char literal b'N_Ch_d12\x00'. Address and physical section length unchanged.
- 8164DAD7 lbl_8164DAD7 -> @17299, extent 9 -> 9: .data+0x23C relocates lbl_8164DAD7+0x0; 9-byte NUL-terminated char literal b'N_Ch_e01\x00'. Address and physical section length unchanged.
- 8164DAE0 lbl_8164DAE0 -> @17300, extent 9 -> 9: .data+0x24C relocates lbl_8164DAE0+0x0; 9-byte NUL-terminated char literal b'N_Ch_e05\x00'. Address and physical section length unchanged.
- 8164DAE9 lbl_8164DAE9 -> @17301, extent 9 -> 9: .data+0x25C relocates lbl_8164DAE9+0x0; 9-byte NUL-terminated char literal b'N_Ch_e09\x00'. Address and physical section length unchanged.
- 8164DBE4 lbl_8164DBE4 -> @17302, extent 10 -> 10: .data+0x2A0 relocates lbl_8164DBE4+0x0; 10-byte NUL-terminated char literal b'BaseMask0\x00'. Address and physical section length unchanged.
- 8164DBEE lbl_8164DBEE -> @17303, extent 10 -> 10: .data+0x2A4 relocates lbl_8164DBEE+0x0; 10-byte NUL-terminated char literal b'BaseMask1\x00'. Address and physical section length unchanged.
- 8164DBF8 lbl_8164DBF8 -> @17304, extent 10 -> 10: .data+0x2A8 relocates lbl_8164DBF8+0x0; 10-byte NUL-terminated char literal b'BaseMask2\x00'. Address and physical section length unchanged.
- 8164DC02 lbl_8164DC02 -> @17305, extent 10 -> 10: .data+0x2AC relocates lbl_8164DC02+0x0; 10-byte NUL-terminated char literal b'BaseMask3\x00'. Address and physical section length unchanged.
- 8164DC0C lbl_8164DC0C -> @17306, extent 10 -> 10: .data+0x2B0 relocates lbl_8164DC0C+0x0; 10-byte NUL-terminated char literal b'BaseMask4\x00'. Address and physical section length unchanged.
- 8164DC2C lbl_8164DC2C -> @17307, extent 11 -> 11: .data+0x2EC relocates lbl_8164DC2C+0x0; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged.
- 8164DC37 lbl_8164DC37 -> @17308, extent 11 -> 11: .data+0x2F0 relocates lbl_8164DC37+0x0; 11-byte NUL-terminated char literal b'Picture_01\x00'. Address and physical section length unchanged.
- 8164DC42 lbl_8164DC42 -> @17309, extent 11 -> 11: .data+0x2F4 relocates lbl_8164DC42+0x0; 11-byte NUL-terminated char literal b'Picture_02\x00'. Address and physical section length unchanged.
- 8164DC4D lbl_8164DC4D -> @17310, extent 11 -> 11: .data+0x2F8 relocates lbl_8164DC4D+0x0; 11-byte NUL-terminated char literal b'Picture_03\x00'. Address and physical section length unchanged.
- 8164DC58 lbl_8164DC58 -> @17311, extent 32 -> 11: .data+0x2FC relocates lbl_8164DC58+0x0; 11-byte NUL-terminated char literal b'Picture_04\x00'. Address and physical section length unchanged.
- 8164DC64 new symbol mscUnk0PaneNames__Q33ipl5scene13ChannelSelect, extent 20 inside formerly aggregated lbl_8164DC58: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x12c8 `addi r28, r27, 0x2ec` via relocation-derived base register r27; 20-byte typed pointer/jump table; +0x0->lbl_8164DC2C+0x0, +0x4->lbl_8164DC37+0x0, +0x8->lbl_8164DC42+0x0. Address and physical section length unchanged.
- 8164DC78 lbl_8164DC78 -> mscUnk1PaneNames__Q33ipl5scene13ChannelSelect, extent 20 -> 20: .text+0x2F1E relocates lbl_8164DC78+0x0; 20-byte typed pointer/jump table; +0x0->lbl_816968B1+0x0, +0x4->lbl_816968B7+0x0, +0x8->lbl_816968BD+0x0. Address and physical section length unchanged.
- 8164DC8C lbl_8164DC8C -> @17317, extent 9 -> 9: .data+0x330 relocates lbl_8164DC8C+0x0; 9-byte NUL-terminated char literal b'N_Clock0\x00'. Address and physical section length unchanged.
- 8164DC95 lbl_8164DC95 -> @17318, extent 9 -> 9: .data+0x334 relocates lbl_8164DC95+0x0; 9-byte NUL-terminated char literal b'N_Clock1\x00'. Address and physical section length unchanged.
- 8164DC9E lbl_8164DC9E -> @17319, extent 9 -> 9: .data+0x338 relocates lbl_8164DC9E+0x0; 9-byte NUL-terminated char literal b'N_Clock2\x00'. Address and physical section length unchanged.
- 8164DCA8 lbl_8164DCA8 -> mscClockPaneNames__Q33ipl5scene13ChannelSelect, extent 12 -> 12: .text+0xD72 relocates lbl_8164DCA8+0x0; 12-byte typed pointer/jump table; +0x0->lbl_8164DC8C+0x0, +0x4->lbl_8164DC95+0x0, +0x8->lbl_8164DC9E+0x0. Address and physical section length unchanged.
- 8164DCB4 lbl_8164DCB4 -> @23246, extent 12 -> 12: .text+0x362 relocates lbl_8164DCB4+0x0; 12-byte NUL-terminated char literal b'chanSel.ash\x00'. Address and physical section length unchanged.
- 8164DCC0 lbl_8164DCC0 -> @23247, extent 31 -> 13: .text+0x396 relocates lbl_8164DCC0+0x0; 13-byte NUL-terminated char literal b'diskThum.ash\x00'. Address and physical section length unchanged.
- 8164DCCD new symbol @23374, extent 18 inside formerly aggregated lbl_8164DCC0: calcCommon__Q33ipl5scene13ChannelSelectFv .text+0x684 `addi r4, r31, 0x355` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'WIPL_SE_WII_START\x00'. Address and physical section length unchanged.
- 8164DCDF lbl_8164DCDF -> @23375, extent 53 -> 14: .text+0x2416 relocates lbl_8164DCDF+0x0; 14-byte NUL-terminated char literal b'WIPL_BGM_MENU\x00'. Address and physical section length unchanged.
- 8164DCED new symbol @23376, extent 18 inside formerly aggregated lbl_8164DCDF: calcCommon__Q33ipl5scene13ChannelSelectFv .text+0x8e4 `addi r4, r31, 0x375` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'WIPL_SE_SDCARD_IN\x00'. Address and physical section length unchanged.
- 8164DCFF new symbol @23377, extent 19 inside formerly aggregated lbl_8164DCDF: calcCommon__Q33ipl5scene13ChannelSelectFv .text+0x918 `addi r4, r31, 0x387` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'WIPL_SE_SDCARD_OUT\x00'. Address and physical section length unchanged.
- 8164DD80 lbl_8164DD80 -> @23551, extent 55 -> 23: .text+0x10A6 relocates lbl_8164DD80+0x0; 23-byte NUL-terminated char literal b'/title/%08x/%08x/data/\x00'. Address and physical section length unchanged.
- 8164DD97 new symbol @23653, extent 18 inside formerly aggregated lbl_8164DD80: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x122c `addi r7, r27, 0x41f` via relocation-derived base register r27; 18-byte NUL-terminated char literal b'my_IplTop_a.brlyt\x00'. Address and physical section length unchanged.
- 8164DDA9 new symbol @23654, extent 14 inside formerly aggregated lbl_8164DD80: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x1254 `addi r4, r27, 0x431` via relocation-derived base register r27; 14-byte NUL-terminated char literal b'ChangeTex16x9\x00'. Address and physical section length unchanged.
- 8164DDB7 lbl_8164DDB7 -> @23655, extent 173 -> 11: .text+0x3A16 relocates lbl_8164DDB7+0x0; 11-byte NUL-terminated char literal b'Picture_16\x00'. Address and physical section length unchanged.
- 8164DDC2 new symbol @23656, extent 18 inside formerly aggregated lbl_8164DDB7: createBaseLayout__Q33ipl5scene13ChannelSelectFv .text+0x1364 `addi r4, r27, 0x44a` via relocation-derived base register r27; 18-byte NUL-terminated char literal b'my_IplTop_a.brlan\x00'. Address and physical section length unchanged.
- 8164DDD4 new symbol @23731, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x15c8 `addi r7, r31, 0x45c` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_DiskCh_b.brlyt\x00'. Address and physical section length unchanged.
- 8164DDE6 new symbol @23732, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x15dc `addi r4, r31, 0x46e` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_DiskCh_b.brlan\x00'. Address and physical section length unchanged.
- 8164DDF8 new symbol @23734, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x16bc `addi r7, r31, 0x480` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_GCIcon_a.brlyt\x00'. Address and physical section length unchanged.
- 8164DE0A new symbol @23735, extent 18 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x16d0 `addi r4, r31, 0x492` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_GCIcon_a.brlan\x00'. Address and physical section length unchanged.
- 8164DE1C new symbol @23736, extent 19 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x170c `addi r7, r31, 0x4a4` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'my_DiskCh_In.brlyt\x00'. Address and physical section length unchanged.
- 8164DE2F new symbol @23739, extent 26 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x17ac `addi r4, r31, 0x4b7` via relocation-derived base register r31; 26-byte NUL-terminated char literal b'my_DiskCh_In_DiskIn.brlan\x00'. Address and physical section length unchanged.
- 8164DE49 new symbol @23740, extent 27 inside formerly aggregated lbl_8164DDB7: createDiskLayout__Q33ipl5scene13ChannelSelectFv .text+0x17c4 `addi r4, r31, 0x4d1` via relocation-derived base register r31; 27-byte NUL-terminated char literal b'my_DiskCh_In_DiskOut.brlan\x00'. Address and physical section length unchanged.
- 8164DEA7 lbl_8164DEA7 -> @24254, extent 16 -> 16: .text+0x369A relocates lbl_8164DEA7+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_BT_PUSH\x00'. Address and physical section length unchanged.
- 8164DEB7 lbl_8164DEB7 -> @24282, extent 276 -> 18: .text+0x3792 relocates lbl_8164DEB7+0x0; 18-byte NUL-terminated char literal b'WIPL_SE_CH_SELECT\x00'. Address and physical section length unchanged.
- 8164DEC9 new symbol @24521, extent 18 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4690 `addi r7, r30, 0x551` via relocation-derived base register r30; 18-byte NUL-terminated char literal b'my_IplTop_b.brlyt\x00'. Address and physical section length unchanged.
- 8164DEDB new symbol @24522, extent 18 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x46a4 `addi r4, r30, 0x563` via relocation-derived base register r30; 18-byte NUL-terminated char literal b'my_IplTop_b.brlan\x00'. Address and physical section length unchanged.
- 8164DEED new symbol @24523, extent 18 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4724 `addi r7, r30, 0x575` via relocation-derived base register r30; 18-byte NUL-terminated char literal b'my_TVMask_a.brlyt\x00'. Address and physical section length unchanged.
- 8164DEFF new symbol @24524, extent 24 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4738 `addi r4, r30, 0x587` via relocation-derived base register r30; 24-byte NUL-terminated char literal b'my_TVMask_a_Apear.brlan\x00'. Address and physical section length unchanged.
- 8164DF17 new symbol @24525, extent 11 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x473c `addi r5, r30, 0x59f` via relocation-derived base register r30; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged.
- 8164DF22 new symbol @24526, extent 23 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4750 `addi r4, r30, 0x5aa` via relocation-derived base register r30; 23-byte NUL-terminated char literal b'my_TVMask_a_Lost.brlan\x00'. Address and physical section length unchanged.
- 8164DF39 new symbol @24527, extent 19 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4794 `addi r7, r30, 0x5c1` via relocation-derived base register r30; 19-byte NUL-terminated char literal b'my_TVShade_a.brlyt\x00'. Address and physical section length unchanged.
- 8164DF4C new symbol @24528, extent 25 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x47a8 `addi r4, r30, 0x5d4` via relocation-derived base register r30; 25-byte NUL-terminated char literal b'my_TVShade_a_Apear.brlan\x00'. Address and physical section length unchanged.
- 8164DF65 new symbol @24530, extent 24 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x47c0 `addi r4, r30, 0x5ed` via relocation-derived base register r30; 24-byte NUL-terminated char literal b'my_TVShade_a_Lost.brlan\x00'. Address and physical section length unchanged.
- 8164DF7D new symbol @24531, extent 10 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x4868 `addi r4, r30, 0x605` via relocation-derived base register r30; 10-byte NUL-terminated char literal b'4x3_dummy\x00'. Address and physical section length unchanged.
- 8164DF87 new symbol @24532, extent 19 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x48c8 `addi r7, r30, 0x60f` via relocation-derived base register r30; 19-byte NUL-terminated char literal b'my_TVApear_a.brlyt\x00'. Address and physical section length unchanged.
- 8164DF9A new symbol @24533, extent 25 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x48dc `addi r4, r30, 0x622` via relocation-derived base register r30; 25-byte NUL-terminated char literal b'my_TVApear_a_Apear.brlan\x00'. Address and physical section length unchanged.
- 8164DFB3 new symbol @24534, extent 24 inside formerly aggregated lbl_8164DEB7: createChanMoveLayout__Q33ipl5scene13ChannelSelectFv .text+0x48f4 `addi r4, r30, 0x63b` via relocation-derived base register r30; 24-byte NUL-terminated char literal b'my_TVApear_a_Lost.brlan\x00'. Address and physical section length unchanged.
- 8164E014 lbl_8164E014 -> @24865, extent 16 -> 16: .text+0x5CAE relocates lbl_8164E014+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_CH_DRAG\x00'. Address and physical section length unchanged.
- 8164E048 __vt__Q33ipl4math29HermiteIntp<Q33ipl4math4VEC3> -> __vt__Q33ipl4math29HermiteIntp<Q33ipl4math4VEC3>, extent 32 -> 16: .text+0x1506 relocates __vt__Q33ipl4math29HermiteIntp<Q33ipl4math4VEC3>+0x0; 16-byte vtable (two header words and 2 virtual slots); +0x8->__dt__Q33ipl4math29HermiteIntp<Q33ipl4math4VEC3>Fv+0x0, +0xC->calc__Q33ipl7utility15FrameControllerFv+0x0. Address and physical section length unchanged.
ChannelSelect quick gate PASS: data 192 -> 2336/2336, every non-text section 100%, instruction-exact 101/102 unchanged, code 24736/25668 unchanged, regressions/forbidden/readability 0. Fetched origin before starting; no remote source changes. Hermite vtable has 16 real bytes, not the 32-byte aggregate with a deduplicated neighbor. Only symbol metadata changed.
### High-round src/scene/sdChannelSelect/iplSDChannelSelect symbol/type proofs
- 81654088 @16632 -> @16723, extent 9 -> 9: .text+0x384E relocates @16632+0x0; 9-byte NUL-terminated char literal b'N_Ch_a04\x00'. Address and physical section length unchanged.
- 81654091 @16633 -> @16724, extent 9 -> 9: .data+0x198 relocates @16633+0x0; 9-byte NUL-terminated char literal b'N_Ch_a08\x00'. Address and physical section length unchanged.
- 8165409A @16634 -> @16725, extent 9 -> 9: .data+0x1A8 relocates @16634+0x0; 9-byte NUL-terminated char literal b'N_Ch_a12\x00'. Address and physical section length unchanged.
- 816540A3 @16635 -> @16726, extent 9 -> 9: .data+0x1AC relocates @16635+0x0; 9-byte NUL-terminated char literal b'N_Ch_b01\x00'. Address and physical section length unchanged.
- 816540AC @16636 -> @16727, extent 9 -> 9: .data+0x1B0 relocates @16636+0x0; 9-byte NUL-terminated char literal b'N_Ch_b02\x00'. Address and physical section length unchanged.
- 816540B5 @16637 -> @16728, extent 9 -> 9: .data+0x1B4 relocates @16637+0x0; 9-byte NUL-terminated char literal b'N_Ch_b03\x00'. Address and physical section length unchanged.
- 816540BE @16638 -> @16729, extent 9 -> 9: .data+0x1B8 relocates @16638+0x0; 9-byte NUL-terminated char literal b'N_Ch_b04\x00'. Address and physical section length unchanged.
- 816540C7 @16639 -> @16730, extent 9 -> 9: .data+0x1BC relocates @16639+0x0; 9-byte NUL-terminated char literal b'N_Ch_b05\x00'. Address and physical section length unchanged.
- 816540D0 @16640 -> @16731, extent 9 -> 9: .data+0x1C0 relocates @16640+0x0; 9-byte NUL-terminated char literal b'N_Ch_b06\x00'. Address and physical section length unchanged.
- 816540D9 @16641 -> @16732, extent 9 -> 9: .data+0x1C4 relocates @16641+0x0; 9-byte NUL-terminated char literal b'N_Ch_b07\x00'. Address and physical section length unchanged.
- 816540E2 @16642 -> @16733, extent 9 -> 9: .data+0x1C8 relocates @16642+0x0; 9-byte NUL-terminated char literal b'N_Ch_b08\x00'. Address and physical section length unchanged.
- 816540EB @16643 -> @16734, extent 9 -> 9: .data+0x1CC relocates @16643+0x0; 9-byte NUL-terminated char literal b'N_Ch_b09\x00'. Address and physical section length unchanged.
- 816540F4 @16644 -> @16735, extent 9 -> 9: .data+0x1D0 relocates @16644+0x0; 9-byte NUL-terminated char literal b'N_Ch_b10\x00'. Address and physical section length unchanged.
- 816540FD @16645 -> @16736, extent 9 -> 9: .data+0x1D4 relocates @16645+0x0; 9-byte NUL-terminated char literal b'N_Ch_b11\x00'. Address and physical section length unchanged.
- 81654106 @16646 -> @16737, extent 9 -> 9: .data+0x1D8 relocates @16646+0x0; 9-byte NUL-terminated char literal b'N_Ch_b12\x00'. Address and physical section length unchanged.
- 8165410F @16647 -> @16738, extent 9 -> 9: .data+0x1DC relocates @16647+0x0; 9-byte NUL-terminated char literal b'N_Ch_c01\x00'. Address and physical section length unchanged.
- 81654118 @16648 -> @16739, extent 9 -> 9: .data+0x1E0 relocates @16648+0x0; 9-byte NUL-terminated char literal b'N_Ch_c02\x00'. Address and physical section length unchanged.
- 81654121 @16649 -> @16740, extent 9 -> 9: .data+0x1E4 relocates @16649+0x0; 9-byte NUL-terminated char literal b'N_Ch_c03\x00'. Address and physical section length unchanged.
- 8165412A @16650 -> @16741, extent 9 -> 9: .data+0x1E8 relocates @16650+0x0; 9-byte NUL-terminated char literal b'N_Ch_c04\x00'. Address and physical section length unchanged.
- 81654133 @16651 -> @16742, extent 9 -> 9: .data+0x1EC relocates @16651+0x0; 9-byte NUL-terminated char literal b'N_Ch_c05\x00'. Address and physical section length unchanged.
- 8165413C @16652 -> @16743, extent 9 -> 9: .data+0x1F0 relocates @16652+0x0; 9-byte NUL-terminated char literal b'N_Ch_c06\x00'. Address and physical section length unchanged.
- 81654145 @16653 -> @16744, extent 9 -> 9: .data+0x1F4 relocates @16653+0x0; 9-byte NUL-terminated char literal b'N_Ch_c07\x00'. Address and physical section length unchanged.
- 8165414E @16654 -> @16745, extent 9 -> 9: .data+0x1F8 relocates @16654+0x0; 9-byte NUL-terminated char literal b'N_Ch_c08\x00'. Address and physical section length unchanged.
- 81654157 @16655 -> @16746, extent 9 -> 9: .data+0x1FC relocates @16655+0x0; 9-byte NUL-terminated char literal b'N_Ch_c09\x00'. Address and physical section length unchanged.
- 81654160 @16656 -> @16747, extent 9 -> 9: .data+0x200 relocates @16656+0x0; 9-byte NUL-terminated char literal b'N_Ch_c10\x00'. Address and physical section length unchanged.
- 81654169 @16657 -> @16748, extent 9 -> 9: .data+0x204 relocates @16657+0x0; 9-byte NUL-terminated char literal b'N_Ch_c11\x00'. Address and physical section length unchanged.
- 81654172 @16658 -> @16749, extent 9 -> 9: .data+0x208 relocates @16658+0x0; 9-byte NUL-terminated char literal b'N_Ch_c12\x00'. Address and physical section length unchanged.
- 8165417B @16659 -> @16750, extent 9 -> 9: .data+0x20C relocates @16659+0x0; 9-byte NUL-terminated char literal b'N_Ch_d01\x00'. Address and physical section length unchanged.
- 81654184 @16660 -> @16751, extent 9 -> 9: .data+0x210 relocates @16660+0x0; 9-byte NUL-terminated char literal b'N_Ch_d02\x00'. Address and physical section length unchanged.
- 8165418D @16661 -> @16752, extent 9 -> 9: .data+0x214 relocates @16661+0x0; 9-byte NUL-terminated char literal b'N_Ch_d03\x00'. Address and physical section length unchanged.
- 81654196 @16662 -> @16753, extent 9 -> 9: .data+0x218 relocates @16662+0x0; 9-byte NUL-terminated char literal b'N_Ch_d04\x00'. Address and physical section length unchanged.
- 8165419F @16663 -> @16754, extent 9 -> 9: .data+0x21C relocates @16663+0x0; 9-byte NUL-terminated char literal b'N_Ch_d05\x00'. Address and physical section length unchanged.
- 816541A8 @16664 -> @16755, extent 9 -> 9: .data+0x220 relocates @16664+0x0; 9-byte NUL-terminated char literal b'N_Ch_d06\x00'. Address and physical section length unchanged.
- 816541B1 @16665 -> @16756, extent 9 -> 9: .data+0x224 relocates @16665+0x0; 9-byte NUL-terminated char literal b'N_Ch_d07\x00'. Address and physical section length unchanged.
- 816541BA @16666 -> @16757, extent 9 -> 9: .data+0x228 relocates @16666+0x0; 9-byte NUL-terminated char literal b'N_Ch_d08\x00'. Address and physical section length unchanged.
- 816541C3 @16667 -> @16758, extent 9 -> 9: .data+0x22C relocates @16667+0x0; 9-byte NUL-terminated char literal b'N_Ch_d09\x00'. Address and physical section length unchanged.
- 816541CC @16668 -> @16759, extent 9 -> 9: .data+0x230 relocates @16668+0x0; 9-byte NUL-terminated char literal b'N_Ch_d10\x00'. Address and physical section length unchanged.
- 816541D5 @16669 -> @16760, extent 9 -> 9: .data+0x234 relocates @16669+0x0; 9-byte NUL-terminated char literal b'N_Ch_d11\x00'. Address and physical section length unchanged.
- 816541DE @16670 -> @16761, extent 9 -> 9: .data+0x238 relocates @16670+0x0; 9-byte NUL-terminated char literal b'N_Ch_d12\x00'. Address and physical section length unchanged.
- 816541E7 @16671 -> @16762, extent 9 -> 9: .data+0x23C relocates @16671+0x0; 9-byte NUL-terminated char literal b'N_Ch_e01\x00'. Address and physical section length unchanged.
- 816541F0 @16672 -> @16763, extent 9 -> 9: .data+0x24C relocates @16672+0x0; 9-byte NUL-terminated char literal b'N_Ch_e05\x00'. Address and physical section length unchanged.
- 816541F9 @16673 -> @16764, extent 9 -> 9: .data+0x25C relocates @16673+0x0; 9-byte NUL-terminated char literal b'N_Ch_e09\x00'. Address and physical section length unchanged.
- 816542F4 @16674 -> @16765, extent 10 -> 10: .data+0x2A0 relocates @16674+0x0; 10-byte NUL-terminated char literal b'BaseMask0\x00'. Address and physical section length unchanged.
- 816542FE @16675 -> @16766, extent 10 -> 10: .data+0x2A4 relocates @16675+0x0; 10-byte NUL-terminated char literal b'BaseMask1\x00'. Address and physical section length unchanged.
- 81654308 @16676 -> @16767, extent 10 -> 10: .data+0x2A8 relocates @16676+0x0; 10-byte NUL-terminated char literal b'BaseMask2\x00'. Address and physical section length unchanged.
- 81654312 @16677 -> @16768, extent 10 -> 10: .data+0x2AC relocates @16677+0x0; 10-byte NUL-terminated char literal b'BaseMask3\x00'. Address and physical section length unchanged.
- 8165433C @16679 -> @16770, extent 11 -> 11: .data+0x2EC relocates @16679+0x0; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged.
- 81654347 @16680 -> @16771, extent 11 -> 11: .data+0x2F0 relocates @16680+0x0; 11-byte NUL-terminated char literal b'Picture_01\x00'. Address and physical section length unchanged.
- 81654352 @16681 -> @16772, extent 11 -> 11: .data+0x2F4 relocates @16681+0x0; 11-byte NUL-terminated char literal b'Picture_02\x00'. Address and physical section length unchanged.
- 8165435D @16682 -> @16773, extent 11 -> 11: .data+0x2F8 relocates @16682+0x0; 11-byte NUL-terminated char literal b'Picture_03\x00'. Address and physical section length unchanged.
- 81654460 @16689 -> @16780, extent 9 -> 9: .data+0x3F4 relocates @16689+0x0; 9-byte NUL-terminated char literal b'N_Clock0\x00'. Address and physical section length unchanged.
- 81654469 @16690 -> @16781, extent 9 -> 9: .data+0x3F8 relocates @16690+0x0; 9-byte NUL-terminated char literal b'N_Clock1\x00'. Address and physical section length unchanged.
- 81654488 @24438 -> @24582, extent 14 -> 14: .text+0x3FA relocates @24438+0x0; 14-byte NUL-terminated char literal b'sdChanSel.ash\x00'. Address and physical section length unchanged.
- 81654496 @24439 -> @24583, extent 17 -> 17: .text+0x416 relocates @24439+0x0; 17-byte NUL-terminated char literal b'corrupt_icon.ash\x00'. Address and physical section length unchanged.
- 816544A7 @24489 -> @24633, extent 25 -> 25: .text+0x626 relocates @24489+0x0; 25-byte NUL-terminated char literal b' ... wait for bs2 abord\n\x00'. Address and physical section length unchanged.
- 816544C0 @24490 -> @24634, extent 27 -> 27: .text+0x66A relocates @24490+0x0; 27-byte NUL-terminated char literal b'*** BS2 abort costs: %dms\n\x00'. Address and physical section length unchanged.
- 816544DC jumptable_816544DC -> @24741, extent 56 -> 56: .text+0xDCA relocates jumptable_816544DC+0x0; 56-byte typed pointer/jump table; +0x0->processWorkerCommands__Q33ipl5scene15SDChannelSelectFv+0x408, +0x4->processWorkerCommands__Q33ipl5scene15SDChannelSelectFv+0x21C, +0x8->processWorkerCommands__Q33ipl5scene15SDChannelSelectFv+0x234. Address and physical section length unchanged.
- 81654514 jumptable_81654514 -> @24981, extent 64 -> 64: .text+0x1EAE relocates jumptable_81654514+0x0; 64-byte typed pointer/jump table; +0x0->processWorkerState__Q33ipl5scene15SDChannelSelectFv+0xA0, +0x4->processWorkerState__Q33ipl5scene15SDChannelSelectFv+0x94, +0x8->processWorkerState__Q33ipl5scene15SDChannelSelectFv+0xAC. Address and physical section length unchanged.
- 81654554 @24961 -> @25087, extent 11 -> 11: .text+0x2266 relocates @24961+0x0; 11-byte NUL-terminated char literal b'T_TimerMes\x00'. Address and physical section length unchanged.
- 8165455F @24962 -> @25088, extent 14 -> 14: .text+0x22F2 relocates @24962+0x0; 14-byte NUL-terminated char literal b'T_TimerMes_01\x00'. Address and physical section length unchanged.
- 81654570 jumptable_81654570 -> @25094, extent 60 -> 60: .text+0x224A relocates jumptable_81654570+0x0; 60-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x3E8, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x3E8, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x2A4. Address and physical section length unchanged.
- 816545AC jumptable_816545AC -> @25093, extent 64 -> 64: .text+0x21F2 relocates jumptable_816545AC+0x0; 64-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x24C, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x24C, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x24C. Address and physical section length unchanged.
- 816545EC jumptable_816545EC -> @25092, extent 64 -> 64: .text+0x2166 relocates jumptable_816545EC+0x0; 64-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x1C0, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x1C0, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x27C. Address and physical section length unchanged.
- 8165462C jumptable_8165462C -> @25091, extent 64 -> 64: .text+0x20DA relocates jumptable_8165462C+0x0; 64-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x134, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x134, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x148. Address and physical section length unchanged.
- 8165466C jumptable_8165466C -> @25090, extent 40 -> 40: .text+0x200E relocates jumptable_8165466C+0x0; 40-byte typed pointer/jump table; +0x0->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0x68, +0x4->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0xAC, +0x8->updateDialogAnimation__Q33ipl5scene15SDChannelSelectFv+0xAC. Address and physical section length unchanged.
- 81654694 jumptable_81654694 -> @25466, extent 120 -> 120: .text+0x359E relocates jumptable_81654694+0x0; 120-byte typed pointer/jump table; +0x0->calcNormal__Q33ipl5scene15SDChannelSelectFv+0x10C, +0x4->calcNormal__Q33ipl5scene15SDChannelSelectFv+0x4C, +0x8->calcNormal__Q33ipl5scene15SDChannelSelectFv+0x10C. Address and physical section length unchanged.
- 8165480F @26032 -> @25863, extent 14 -> 14: .text+0x4B2E relocates @26032+0x0; 14-byte NUL-terminated char literal b'WIPL_BGM_MENU\x00'. Address and physical section length unchanged.
- 8165481D @26047 -> @26098, extent 11 -> 11: .text+0x589A relocates @26047+0x0; 11-byte NUL-terminated char literal b'WSD_SELECT\x00'. Address and physical section length unchanged.
- 81654828 @26062 -> @26120, extent 16 -> 16: .text+0x59FA relocates @26062+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_BT_PUSH\x00'. Address and physical section length unchanged.
- 8165497E @26231 -> @26552, extent 22 -> 22: .text+0x75F2 relocates @26231+0x0; 22-byte NUL-terminated char literal b'WIPL_SE_CH_TARGETTING\x00'. Address and physical section length unchanged.
- 81654994 @26266 -> @26600, extent 16 -> 16: .text+0x799E relocates @26266+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_CH_HOLD\x00'. Address and physical section length unchanged.
- 816549A4 @26311 -> @26645, extent 15 -> 15: .text+0x7ABA relocates @26311+0x0; 15-byte NUL-terminated char literal b'WIPL_SE_CH_SET\x00'. Address and physical section length unchanged.
- 816549B3 @26312 -> @26646, extent 20 -> 20: .text+0x7AFA relocates @26312+0x0; 20-byte NUL-terminated char literal b'WIPL_SE_CH_NOT_MOVE\x00'. Address and physical section length unchanged.
- 816549C7 @26336 -> @26677, extent 16 -> 16: .text+0x7D6E relocates @26336+0x0; 16-byte NUL-terminated char literal b'WIPL_SE_CH_DRAG\x00'. Address and physical section length unchanged.
- 816549D7 @26559 -> @26753, extent 15 -> 15: .text+0x8192 relocates @26559+0x0; 15-byte NUL-terminated char literal b'WIPL_SE_DECIDE\x00'. Address and physical section length unchanged.
- 81654204 lbl_81654204 -> mscChannelPaneNames__Q33ipl5scene15SDChannelSelect, extent 240 -> 240: .text+0x574A relocates lbl_81654204+0x0; 240-byte typed pointer/jump table; +0x0->@16631+0x0, +0x4->@16631+0x0, +0x8->@16631+0x0. Address and physical section length unchanged.
- 8165431C lbl_8165431C -> @16769, extent 32 -> 10: .data+0x2B0 relocates lbl_8165431C+0x0; 10-byte NUL-terminated char literal b'BaseMask4\x00'. Address and physical section length unchanged.
- 81654328 new symbol mscBasePaneNames__Q33ipl5scene15SDChannelSelect, extent 20 inside formerly aggregated lbl_8165431C: draw__Q33ipl5scene15SDChannelSelectFv .text+0x38b8 `addi r25, r26, 0x2a0` via relocation-derived base register r26; 20-byte typed pointer/jump table; +0x0->@16674+0x0, +0x4->@16675+0x0, +0x8->@16676+0x0. Address and physical section length unchanged.
- 81654368 lbl_81654368 -> @16774, extent 32 -> 11: .data+0x2FC relocates lbl_81654368+0x0; 11-byte NUL-terminated char literal b'Picture_04\x00'. Address and physical section length unchanged.
- 81654374 new symbol mscPicturePaneNames__Q33ipl5scene15SDChannelSelect, extent 20 inside formerly aggregated lbl_81654368: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x3fc4 `addi r28, r27, 0x2ec` via relocation-derived base register r27; 20-byte typed pointer/jump table; +0x0->@16679+0x0, +0x4->@16680+0x0, +0x8->@16681+0x0. Address and physical section length unchanged.
- 81654388 lbl_81654388 -> mscEdgePaneNames__Q33ipl5scene15SDChannelSelect, extent 20 -> 20: .text+0x5472 relocates lbl_81654388+0x0; 20-byte typed pointer/jump table; +0x0->@16684+0x0, +0x4->@16685+0x0, +0x8->@16686+0x0. Address and physical section length unchanged.
- 81654472 lbl_81654472 -> @16782, extent 22 -> 9: .data+0x3FC relocates lbl_81654472+0x0; 9-byte NUL-terminated char literal b'N_Clock2\x00'. Address and physical section length unchanged.
- 8165447C new symbol mscClockPaneNames__Q33ipl5scene15SDChannelSelect, extent 12 inside formerly aggregated lbl_81654472: draw__Q33ipl5scene15SDChannelSelectFv .text+0x39f0 `addi r26, r26, 0x3f4` via relocation-derived base register r26; 12-byte typed pointer/jump table; +0x0->@16689+0x0, +0x4->@16690+0x0, +0x8->lbl_81654472+0x0. Address and physical section length unchanged.
- 8165473B lbl_8165473B -> @25703, extent 212 -> 11: .text+0x5C46 relocates lbl_8165473B+0x0; 11-byte NUL-terminated char literal b'Picture_16\x00'. Address and physical section length unchanged.
- 81654746 new symbol @25704, extent 22 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4060 `addi r4, r27, 0x6be` via relocation-derived base register r27; 22-byte NUL-terminated char literal b'mn_SdcardMenu_a.brlan\x00'. Address and physical section length unchanged.
- 8165475C new symbol @25705, extent 25 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4088 `addi r7, r27, 0x6d4` via relocation-derived base register r27; 25-byte NUL-terminated char literal b'mn_SdcardMenu_Page.brlyt\x00'. Address and physical section length unchanged.
- 81654775 new symbol @25706, extent 16 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40b0 `addi r7, r27, 0x6ed` via relocation-derived base register r27; 16-byte NUL-terminated char literal b'mn_Nocard.brlyt\x00'. Address and physical section length unchanged.
- 81654785 new symbol @25707, extent 19 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40c4 `addi r4, r27, 0x6fd` via relocation-derived base register r27; 19-byte NUL-terminated char literal b'mn_Nocard_IN.brlan\x00'. Address and physical section length unchanged.
- 81654798 new symbol @25708, extent 9 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40c8 `addi r5, r27, 0x710` via relocation-derived base register r27; 9-byte NUL-terminated char literal b'Group_00\x00'. Address and physical section length unchanged.
- 816547A1 new symbol @25709, extent 20 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40dc `addi r4, r27, 0x719` via relocation-derived base register r27; 20-byte NUL-terminated char literal b'mn_Nocard_Out.brlan\x00'. Address and physical section length unchanged.
- 816547B5 new symbol @25710, extent 22 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40f4 `addi r4, r27, 0x72d` via relocation-derived base register r27; 22-byte NUL-terminated char literal b'mn_Nocard_IN_02.brlan\x00'. Address and physical section length unchanged.
- 816547CB new symbol @25711, extent 9 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x40f8 `addi r5, r27, 0x743` via relocation-derived base register r27; 9-byte NUL-terminated char literal b'Group_01\x00'. Address and physical section length unchanged.
- 816547D4 new symbol @25712, extent 23 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x410c `addi r4, r27, 0x74c` via relocation-derived base register r27; 23-byte NUL-terminated char literal b'mn_Nocard_Out_02.brlan\x00'. Address and physical section length unchanged.
- 816547EB new symbol @25713, extent 21 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4124 `addi r4, r27, 0x763` via relocation-derived base register r27; 21-byte NUL-terminated char literal b'mn_Nocard_Wait.brlan\x00'. Address and physical section length unchanged.
- 81654800 new symbol @25715, extent 15 inside formerly aggregated lbl_8165473B: createBaseLayout__Q33ipl5scene15SDChannelSelectFv .text+0x4180 `addi r7, r27, 0x778` via relocation-derived base register r27; 15-byte NUL-terminated char literal b'help_Btn.brlyt\x00'. Address and physical section length unchanged.
- 81654838 lbl_81654838 -> @26130, extent 326 -> 18: .text+0x5A8A relocates lbl_81654838+0x0; 18-byte NUL-terminated char literal b'WIPL_SE_CH_SELECT\x00'. Address and physical section length unchanged.
- 8165484A new symbol @26333, extent 22 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x66f8 `addi r7, r31, 0x7c2` via relocation-derived base register r31; 22-byte NUL-terminated char literal b'mn_SdcardMenu_d.brlyt\x00'. Address and physical section length unchanged.
- 81654860 new symbol @26334, extent 22 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x670c `addi r4, r31, 0x7d8` via relocation-derived base register r31; 22-byte NUL-terminated char literal b'mn_SdcardMenu_d.brlan\x00'. Address and physical section length unchanged.
- 81654876 new symbol @26335, extent 18 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x678c `addi r7, r31, 0x7ee` via relocation-derived base register r31; 18-byte NUL-terminated char literal b'my_TVMask_a.brlyt\x00'. Address and physical section length unchanged.
- 81654888 new symbol @26336, extent 24 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67a0 `addi r4, r31, 0x800` via relocation-derived base register r31; 24-byte NUL-terminated char literal b'my_TVMask_a_Apear.brlan\x00'. Address and physical section length unchanged.
- 816548A0 new symbol @26337, extent 11 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67a4 `addi r5, r31, 0x818` via relocation-derived base register r31; 11-byte NUL-terminated char literal b'Picture_00\x00'. Address and physical section length unchanged.
- 816548AB new symbol @26338, extent 23 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67b8 `addi r4, r31, 0x823` via relocation-derived base register r31; 23-byte NUL-terminated char literal b'my_TVMask_a_Lost.brlan\x00'. Address and physical section length unchanged.
- 816548C2 new symbol @26339, extent 19 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x67fc `addi r7, r31, 0x83a` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'my_TVShade_a.brlyt\x00'. Address and physical section length unchanged.
- 816548D5 new symbol @26340, extent 25 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6810 `addi r4, r31, 0x84d` via relocation-derived base register r31; 25-byte NUL-terminated char literal b'my_TVShade_a_Apear.brlan\x00'. Address and physical section length unchanged.
- 816548EE new symbol @26342, extent 24 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6828 `addi r4, r31, 0x866` via relocation-derived base register r31; 24-byte NUL-terminated char literal b'my_TVShade_a_Lost.brlan\x00'. Address and physical section length unchanged.
- 81654906 new symbol @26344, extent 10 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x68d0 `addi r4, r31, 0x87e` via relocation-derived base register r31; 10-byte NUL-terminated char literal b'4x3_dummy\x00'. Address and physical section length unchanged.
- 81654910 new symbol @26345, extent 19 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6930 `addi r7, r31, 0x888` via relocation-derived base register r31; 19-byte NUL-terminated char literal b'my_TVApear_a.brlyt\x00'. Address and physical section length unchanged.
- 81654923 new symbol @26346, extent 25 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x6944 `addi r4, r31, 0x89b` via relocation-derived base register r31; 25-byte NUL-terminated char literal b'my_TVApear_a_Apear.brlan\x00'. Address and physical section length unchanged.
- 8165493C new symbol @26347, extent 24 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x695c `addi r4, r31, 0x8b4` via relocation-derived base register r31; 24-byte NUL-terminated char literal b'my_TVApear_a_Lost.brlan\x00'. Address and physical section length unchanged.
- 81654954 new symbol @26348, extent 16 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x69e4 `addi r7, r31, 0x8cc` via relocation-derived base register r31; 16-byte NUL-terminated char literal b'wait_icon.brlyt\x00'. Address and physical section length unchanged.
- 81654964 new symbol @26349, extent 26 inside formerly aggregated lbl_81654838: createSceneLayouts__Q33ipl5scene15SDChannelSelectFv .text+0x69f8 `addi r4, r31, 0x8dc` via relocation-derived base register r31; 26-byte NUL-terminated char literal b'wait_icon_wait_loop.brlan\x00'. Address and physical section length unchanged.
- 81654A08 lbl_81654A08 -> __vt__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandler, extent 28 -> 28: .text+0x52 relocates lbl_81654A08+0x0; 28-byte vtable (two header words and 5 virtual slots); +0x8->onEvent__Q33ipl5scene24SDButtonEventHandlerBaseFUlUlPv+0x0, +0xC->setManager__Q23gui12EventHandlerFPQ23gui7Manager+0x0, +0x10->setLatestEventCtrlNo__Q23gui12EventHandlerFi+0x0. Address and physical section length unchanged.
- 81654A24 lbl_81654A24 -> __vt__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@27SDChannelSelectEventHandler, extent 24 -> 24: .text+0x41BA relocates lbl_81654A24+0x0; 24-byte vtable (two header words and 4 virtual slots); +0x8->onEvent__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@27SDChannelSelectEventHandlerFUlUlPv+0x0, +0xC->setManager__Q23gui12EventHandlerFPQ23gui7Manager+0x0, +0x10->setLatestEventCtrlNo__Q23gui12EventHandlerFi+0x0. Address and physical section length unchanged.
- 81654A3C lbl_81654A3C -> __vt__Q33ipl5scene15SDChannelSelect, extent 252 -> 104: .text+0x2A relocates lbl_81654A3C+0x0; 104-byte vtable (two header words and 24 virtual slots); +0x8->__dt__Q33ipl5scene15SDChannelSelectFv+0x0, +0xC->getParent__Q33ipl5scene4BaseFv+0x0, +0x10->getChild__Q33ipl5scene4BaseFv+0x0. Address and physical section length unchanged.
SDChannelSelect: fetched origin before starting; no remote source fix. All data now 2960/2960 with every non-text section 100%. The three live vtables pair by their proven class names despite source offsets being 32 bytes earlier. The scene vtable is 104 bytes (two header words and 24 slots, including null ABI slots); its old 252-byte extent absorbed 148 bytes of deduplicated GUI tables. The anonymous target .data+0x960..0x980 remains unowned, unchanged and unfabricated; it does not prevent exact per-object data comparison. Source weak tables are also unchanged. Final full gate follows.
## High-round final full gate
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 27108/33828 data 2960/2960 functions 117/129 fuzzy 99.5051 linked code 0
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 117/129
[src/scene/channelSelect/iplChannelSelect] objdiff: code 24736/25668 data 2336/2336 functions 101/102 fuzzy 99.7634 linked code 0
[src/scene/channelSelect/iplChannelSelect] instruction-exact functions: 101/102
[libs/RVL_SDK/src/wad/wad] objdiff: code 13180/24500 data 528/528 functions 35/40 fuzzy 98.9416 linked code 0
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 35/40
[libs/RevoEX/src/nhttp/NHTTP_thread] objdiff: code 10528/11292 data 504/504 functions 25/26 fuzzy 99.9044 linked code 0
[libs/RevoEX/src/nhttp/NHTTP_thread] instruction-exact functions: 25/26
regressions vs baseline: 0
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
src/scene/sdChannelSelect/iplSDChannelSelect: matched_data 224 -> 2960/2960; instruction-exact 117 -> 117/129; code bytes 27108 -> 27108/33828.
src/scene/channelSelect/iplChannelSelect: matched_data 192 -> 2336/2336; instruction-exact 101 -> 101/102; code bytes 24736 -> 24736/25668.
libs/RVL_SDK/src/wad/wad: matched_data 64 -> 528/528; instruction-exact 35 -> 35/40; code bytes 13180 -> 13180/24500.
libs/RevoEX/src/nhttp/NHTTP_thread: matched_data 304 -> 504/504; instruction-exact 25 -> 25/26; code bytes 10528 -> 10528/11292.
Fresh independent audit confirms all four units have every non-text section at 100%, matched_data equals total_data, and every baseline instruction-exact function is preserved. The physical section byte totals and all symbol addresses stay unchanged. Config diff audit checked all 401 changed symbol lines are inside the four owned .data ranges; no source file, shared header, function symbol, other unit symbol or split changed. The 32-byte SD zero range and all alignment/deduplicated storage remain in the extraction. They need no source padding. Final gate log /tmp/data-d5-r3-final-gate.log; independent section/relocation audit /tmp/data-d5-r3-final-audit.txt.
Remaining code-only functions (19), outside the achieved non-text-data goal; each retains at least three logged source attempts:
- create__Q33ipl5scene15SDChannelSelectFv: 97.73972%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- handleSDTitleListResult__Q33ipl5scene15SDChannelSelectFv: 99.15205%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.81188%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.833336%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.29365%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl: 97.55125%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv: 99.65714%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- calcCommon__Q33ipl5scene15SDChannelSelectFv: 99.07407%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- initializeNormalPage__Q33ipl5scene15SDChannelSelectFv: 98.93617%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- selectChannel__Q33ipl5scene15SDChannelSelectFii: 98.305084%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- setChannelScissor__Q33ipl5scene15SDChannelSelectCFPCQ33ipl5scene12SDChannelObj: 93.4721%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- onEventDerived__Q43ipl5scene32@unnamed@iplSDChannelSelect_cpp@33SDChannelSelectButtonEventHandlerFUlUlPCQ33ipl10controller9Interface: 98.541664%; 5 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- setChannelScissor__Q33ipl5scene13ChannelSelectCFPCQ33ipl5scene10ChannelObj: 93.48498%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- WADImportGetBlocks: 94.24161%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- WADImportEx: 99.02269%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- WAD_815C1288: 96.803276%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- WADBackupEx: 97.370995%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- WADImportDVDExForBS: 97.49049%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.
- NHTTPi_ThreadParseHeaderProc: 98.58639%; 3 prior distinct compiled source attempts, with instruction-level reasons recorded in the round-2 manifest. Code unchanged this round.

View File

@@ -160,107 +160,3 @@ GATE PASS
```
Only retained source edit is the information type alignment, committed as 1fe346a7. Exact counts and code bytes unchanged across every owned unit. Final DOL hash matches, no regression, no forbidden patterns, no readability warnings. All eight open functions have three fresh attempts. Four data sections remain below 100%; full data matching is not claimed.
## Round 2 baseline
HEAD 3f330a39 includes accepted #735. Origin was fetched before each unit inspection; ongoing unrelated main commits do not change assigned sources. Fresh baseline quick gate passes with data 144/1016/40/408 and exact functions 27/21/21/88. No code tuning is needed for a data-only lane. Revisit merged data ownership rather than adding source padding.
### sd_drv last merged diagnostic owner
Original lbl_8169134C owns 988 bytes starting at pool offset 0x634, but nm and source literals show 19 separate null-terminated diagnostic/format strings within that inferred aggregate. Every source byte through offset 0xa0d equals the target. Two final bytes at 0xa0e/0xa0f are linker alignment, not part of the final 54-byte error string. Target pfd_sddrv_full_format at object 0x2dbc uses relocated pool anchor r30 plus 0x9d8 immediately before OSReport. The final original string begins exactly at 0x816916f0 and ends at 0x81691726; next relocated real table st_uhs_msc_blk_func starts at 0x81691728 in the neighbouring unit. Preserve both split extents and every payload byte. Split the aggregate into its actual strings, proven by source literals, terminators and target pool-reference instructions, instead of changing the section end or fabricating padding.
Splitting all 19 real literals within the last inferred aggregate produces .data 100% and matched_data 1016 -> 3592/3592. Payload bytes and total_data are unchanged, two final zero alignment bytes remain in the same .data split. Every exact function remains exact. Quick gate PASS, zero regressions, forbidden/style 0, retail DOL hash. This is a corrected object ownership boundary supported by relocated pool-base plus 0x9d8, not a section-size reduction.
### Focus event vtable ownership
Original event vtable inferred size 0xb0 incorrectly absorbs three different compiler-emitted weak vtables and four final alignment bytes. The real event class declares four virtual methods and its compiler-generated table is 0x18. Constructor target .text relocations 0x16/0x2a point to the event table, with retained method relocations at 0x7d0/7d4/7d8/7dc. Source emits the real 0x5c PaneManager table at .data+0x7e0, 0x18 EventHandler table at +0x83c and 0x20 Interface table at +0x854. Their original retained definitions already exist at 0x816359c4, 0x81635a38 and 0x81635a50 with precisely those same sizes and weak scope. Focus make_gui_mgr target relocations at 0x2866/286e refer to the retained PaneManager table; source emits its deduplicated local weak definition. This proves separate real compiler objects, not additional event virtual slots. Split the incorrect aggregate into the real class table owners with their names, sizes and weak scope. Keep all 2168 data bytes in the same split, including discarded zero bytes and four final alignment bytes.
Focus ownership correction produces all non-text sections 100%, data 408 -> 2576/2576, exact 88 unchanged. Quick full gate PASS with zero regressions, forbidden/style 0 and correct DOL hash. No source/class/inline changes required; the existing real classes already emit the tables in exactly the original order. Original section byte counts and split extents are unchanged.
### Surface TickTimer format ownership
Correct previous-round note: the weak TickTimer report format at pool+0xd9c is real text ` : %d[ms]\n`, not zero-filled. Both raw objects contain identical 11 payload bytes, target includes one final zero alignment byte. The real inline TickTimer::report already emits its weak 11-byte string. Target RSO resolver call relocation at 0x434 references the retained TickTimer::report method. Its emitted source inline body references @STRING@ via address-half relocations at 0x4e6/0x4f6; the original has no duplicate method body. Source symbol size, literal contents and original literal terminator establish the discarded inline data owner's 11-byte extent. Add the missing weak literal owner at 0x81643aac with its real 11-byte null-terminated extent; preserve the original 3496-byte split and final alignment byte.
Surface missing weak format symbol correction produces every section 100% and matched_data 40 -> 3536/3536. Quick gate PASS, zero regressions, forbidden/style 0, correct DOL hash. Source already has its real inline TickTimer and 12-byte SurfaceManager vtable. Existing shared-header weak-zero workaround is untouched because it is unrelated to this missing ownership label and all sections now match without new source tricks.
### CDB first divergence, real file-size getter
Restore the file-size wrapper immediately before its data-size counterpart. This is supported by the existing actual inlined sequence in CDBRecordEncrypt and CDBRecordDecrypt: CDBLock, file-open diagnostic/error, CDBRecordFileGetFileSize, CDBUnlock. The backing typed function exists in the repository and original object. No invented external calls or dummy literals are added. Measure this first restoration before proceeding into the missing reduction diagnostics.
File-size restoration fixes the first divergence exactly: strings 8 and 9 now both match bytes and offsets 0x1b0/0x1ec. First divergence advances to 10 at 0x228, now the missing ReduceFileSize diagnostics. CDB original .text contains no reduction functions or bodies, original bridge/file/VF units likewise have no truncation API in source, headers, retained symbols or Ghidra export. No invented external truncation routine or placeholder error-only function will be used to emit these strings. Current source has 19 distinct diagnostics versus 47 original; missing payload remains visible and data stays 144/2640. Read-only field/keyword setters do not repair the first reduction block, so no speculative API additions are made.
File-size wrapper quick gate PASS with zero regressions and all 27 original exact functions preserved. Its first two previously misplaced diagnostics now match the original pool offsets. Restoration is supported by surviving inlined instructions and existing backing API; remaining APIs without surviving bodies are left unresolved.
### Round 2 scope and evidence audit
Repeated nm -n, objdump -t, objdump -r -j for every owned non-text section on both objects. Full output at /tmp/data-d6-r2.final-data-evidence.txt. Verified raw bytes for sd_drv, www_surface and Focus agree through the complete emitted source payload in every section. Only zero linker alignment is absent at source section ends. Their original split ranges and total_data never changed. Source's real weak class/vtable/format definitions are preserved, not replaced with zero arrays or assembly.
Remaining CDBRecord code functions CDBCryptBuffer and CDBRecordEncrypt each already have three distinct experiments in this persistent attempts log. CDBCryptBuffer retains the exact 119-instruction stream except three missing-pool offsets; repeated register/loop variants cannot create the reduction diagnostics. Encrypt has 283/284 instructions, pool offsets and stack allocation differences. Round 2 fixes the first two token-order diagnostics by a real recovered getter, but cannot recover the reduction/mutation/duplication bodies from retained instructions. No bogus truncation API, stub, unused string object, padding or ownership reduction is added for these missing bytes. Existing data total 2640 remains authoritative.
CDBRecordEncrypt | use recovered file-size wrapper in encryption | objdiff 96.616196%, instructions 284/284, diffs 185; unit code 5464, data 144, functions 27
CDBRecordEncrypt | wrapper with signed file null comparison | objdiff 97.19718%, instructions 283/284, diffs different instruction counts; unit code 5464, data 144, functions 27
CDBRecordEncrypt | wrapper with named file lifetime | objdiff 96.616196%, instructions 284/284, diffs 185; unit code 5464, data 144, functions 27
Three fresh Encrypt experiments replace the manually expanded file-size sequence with the recovered real getter. Pointer-null and named-file-lifetime variants score 96.616196%, 284/284 instructions. The signed null test proven by the original inline cmpwi retains 97.19718%, 283/284 instructions. Retain this typed getter call: a direct disassembly comparison against the previously full-gated object confirms every one of the 29 original function instruction streams is unchanged, not only the 27 exact functions. Thus the restored getter is used by live encryption code and replaces its duplicate expanded sequence. No newly invented operation or unused diagnostic object is introduced. Pool first divergence remains 10 with the first ten strings at identical offsets.
## Round 2 final clean gate
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RevoEX/src/cdb/CDBRecord] pool: DIVERGES at string 10 (mine=19 orig=47)
[libs/RevoEX/src/cdb/CDBRecord] objdiff: code 5464/7076 data 144/2640 functions 27/29 fuzzy 99.5483 linked code 0
[libs/RevoEX/src/cdb/CDBRecord] instruction-exact functions: 27/29
[libs/RevoEX/src/cdb/CDBRecord] section .bss size 128 match 100.0
[libs/RevoEX/src/cdb/CDBRecord] section .data size 2496 match 52.795387
[libs/RevoEX/src/cdb/CDBRecord] section .rodata size 16 match 100.0
[libs/RevoEX/src/cdb/CDBRecord] section .text size 7076 match 99.54833
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBCryptBuffer 99.97479
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBRecordEncrypt 97.19718
[libs/RevoEX/src/cdb/CDBRecord] baseline: code 5464/7076 data 144 functions 27 fuzzy 99.5472
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 8940/11760 data 3592/3592 functions 21/26 fuzzy 99.0544 linked code 0
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 21/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.05442
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 92.326385
[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_get_total_sectors 99.5
[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 94.75225
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 8940/11760 data 1016 functions 21 fuzzy 99.0544
[src/iplwww/www_surface] pool: IDENTICAL
[src/iplwww/www_surface] objdiff: code 1916/1916 data 3536/3536 functions 21/21 fuzzy 100.0000 linked code 1916
[src/iplwww/www_surface] instruction-exact functions: 21/21
[src/iplwww/www_surface] section .data size 3496 match 100.0
[src/iplwww/www_surface] section .sbss size 32 match 100.0
[src/iplwww/www_surface] section .sdata size 8 match 100.0
[src/iplwww/www_surface] section .text size 1916 match 100.0
[src/iplwww/www_surface] baseline: code 1916/1916 data 40 functions 21 fuzzy 100.0000
[src/scene/board/iplFocusObject] pool: IDENTICAL
[src/scene/board/iplFocusObject] objdiff: code 19772/20332 data 2576/2576 functions 88/89 fuzzy 99.6471 linked code 0
[src/scene/board/iplFocusObject] instruction-exact functions: 88/89
[src/scene/board/iplFocusObject] section .data size 2168 match 100.0
[src/scene/board/iplFocusObject] section .rodata size 176 match 100.0
[src/scene/board/iplFocusObject] section .sdata size 176 match 100.0
[src/scene/board/iplFocusObject] section .sdata2 size 56 match 100.0
[src/scene/board/iplFocusObject] section .text size 20332 match 99.64706
[src/scene/board/iplFocusObject] below 100: cmn_calc__Q33ipl5scene12focus_objectFv 87.185715
[src/scene/board/iplFocusObject] baseline: code 19772/20332 data 408 functions 88 fuzzy 99.6471
regressions vs baseline: 0
global matched_code_percent: 88.55724 -> 88.55724
global fuzzy_match_percent: 99.45033 -> 99.45033
global complete_code_percent: 62.78043 -> 62.78043
global matched_data_percent: 96.55914 -> 97.00876
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
Data before -> after: CDBRecord 144 -> 144/2640, sd_drv 1016 -> 3592/3592, www_surface 40 -> 3536/3536, Focus 408 -> 2576/2576. Instruction-exact counts 27 -> 27, 21 -> 21, 21 -> 21, 88 -> 88. Matched code bytes unchanged 5464, 8940, 1916, 19772. Full clean gate passes, DOL SHA1 correct, regression/forbidden/style counts zero. No splits or total_data were changed. All three completed data units have every non-text section at 100%; CDB remains incomplete. Every original open code function has three logged attempts; Encrypt has six.

File diff suppressed because it is too large Load Diff

View File

@@ -1,155 +0,0 @@
# data-d9 attempts
All four pools are identical. Initial report saved to /tmp/data-d9-before.json. Every target function is objdiff 100%; no code work is needed.
Attempt 1: rename index symbols by their function relocations. No metric gain. Reverted all index renames. objdiff 3.4.5 pairs compiler-generated index objects by bytes and relocations; differing unwind record names prevent relocation equality.
Attempt 2: rename the referenced unwind records to compiler-emitted names, proven by extabindex function relocations and identical unwind bytes. No addresses, extents or section totals changed.
## RFL_Database
- 0x81330AA0: @3211 -> @3220. Target and compiler extabindex +0 both relocate to RFLiInitDatabase; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AA8: @3216 -> @3225. Target and compiler extabindex +0 both relocate to bootloadCheckCRCCb_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AB0: @3230 -> @3239. Target and compiler extabindex +0 both relocate to bootloadDBcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AB8: @3248 -> @3257. Target and compiler extabindex +0 both relocate to bootloadDBopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AC0: @3259 -> @3268. Target and compiler extabindex +0 both relocate to RFLiBootLoadDatabaseAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AC8: @3262 -> @3271. Target and compiler extabindex +0 both relocate to saveDBcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AD0: @3274 -> @3283. Target and compiler extabindex +0 both relocate to saveDBopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AD8: @3282 -> @3291. Target and compiler extabindex +0 both relocate to saveDBmultiopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AE0: @3291 -> @3300. Target and compiler extabindex +0 both relocate to createCRCForSaveDBCallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AE8: @3306 -> @3315. Target and compiler extabindex +0 both relocate to RFLiSaveDatabaseAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AF0: @3321 -> @3330. Target and compiler extabindex +0 both relocate to RFLiSaveOpenedDatabaseAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330AF8: @3360 -> @3369. Target and compiler extabindex +0 both relocate to RFLiGetCharData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B00: @3438 -> @3447. Target and compiler extabindex +0 both relocate to convertRaw2InfoCore_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B08: @3443 -> @3452. Target and compiler extabindex +0 both relocate to RFLiConvertRaw2Info; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B10: @3448 -> @3457. Target and compiler extabindex +0 both relocate to RFLiConvertHRaw2Info; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B18: @3453 -> @3462. Target and compiler extabindex +0 both relocate to convertInfo2RawCore_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B20: @3458 -> @3467. Target and compiler extabindex +0 both relocate to RFLiConvertInfo2Raw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B28: @3463 -> @3472. Target and compiler extabindex +0 both relocate to RFLiConvertInfo2HRaw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B30: @3468 -> @3477. Target and compiler extabindex +0 both relocate to RFLiConvertHRaw2Raw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B38: @3473 -> @3482. Target and compiler extabindex +0 both relocate to RFLiConvertRaw2HRaw; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B40: @3480 -> @3489. Target and compiler extabindex +0 both relocate to RFLiGetCharRawData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B48: @3488 -> @3497. Target and compiler extabindex +0 both relocate to RFLiGetCharInfo; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B50: @3571 -> @3580. Target and compiler extabindex +0 both relocate to RFLIsAvailableOfficialData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B58: @3590 -> @3599. Target and compiler extabindex +0 both relocate to RFLGetAvailableOfficialDataNum; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B60: @3617 -> @3626. Target and compiler extabindex +0 both relocate to createLowAddr_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B68: @3725 -> @3734. Target and compiler extabindex +0 both relocate to RFLiIsMyHomeID; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B70: @3821 -> @3830. Target and compiler extabindex +0 both relocate to RFLSearchOfficialData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B78: @3839 -> @3848. Target and compiler extabindex +0 both relocate to RFLiIsValidName2; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B80: @3853 -> @3862. Target and compiler extabindex +0 both relocate to RFLiGetIsolation; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B88: @3877 -> @3886. Target and compiler extabindex +0 both relocate to RFLiGetHiddenHeader; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B90: @3885 -> @3894. Target and compiler extabindex +0 both relocate to RFLiDBIsLoaded; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330B98: @3908 -> @3917. Target and compiler extabindex +0 both relocate to alarmCreateCb_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330BA0: @3913 -> @3922. Target and compiler extabindex +0 both relocate to RFLiCreateHeaderCRCAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330BA8: @3931 -> @3940. Target and compiler extabindex +0 both relocate to alarmCheckCb_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
## RFL_HiddenDatabase
- 0x81330A18: @2533 -> @2543. Target and compiler extabindex +0 both relocate to RFLiInitHiddenDatabase; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A20: @2542 -> @2552. Target and compiler extabindex +0 both relocate to loadclosecallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A28: @2549 -> @2559. Target and compiler extabindex +0 both relocate to loadcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A30: @2556 -> @2566. Target and compiler extabindex +0 both relocate to loadopencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A38: @2565 -> @2575. Target and compiler extabindex +0 both relocate to RFLiLoadHiddenDataAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A40: @2583 -> @2593. Target and compiler extabindex +0 both relocate to RFLiLoadCachedHiddenData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A48: @2684 -> @2694. Target and compiler extabindex +0 both relocate to overwrite_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A50: @2694 -> @2704. Target and compiler extabindex +0 both relocate to create_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A58: @2710 -> @2720. Target and compiler extabindex +0 both relocate to writeCallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A60: @2733 -> @2743. Target and compiler extabindex +0 both relocate to writeData_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A68: @2738 -> @2748. Target and compiler extabindex +0 both relocate to openForWriteCallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A70: @2776 -> @2786. Target and compiler extabindex +0 both relocate to RFLiOneDataToHiddenDB; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A78: @2804 -> @2814. Target and compiler extabindex +0 both relocate to RFLiCountupHiddenDataNum; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A80: @2810 -> @2820. Target and compiler extabindex +0 both relocate to RFLiGetHiddenNext; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A88: @2816 -> @2826. Target and compiler extabindex +0 both relocate to RFLiGetHiddenPrev; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A90: @2830 -> @2840. Target and compiler extabindex +0 both relocate to RFLiIsValidHiddenData; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330A98: @2880 -> @2890. Target and compiler extabindex +0 both relocate to RFLiIsCachedHDB; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
## RFL_NANDLoader
- 0x81330818: @2144 -> @2374. Target and compiler extabindex +0 both relocate to RFLiInitLoader; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330820: @2193 -> @2423. Target and compiler extabindex +0 both relocate to parseOnmemoryRes_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330828: @2205 -> @2435. Target and compiler extabindex +0 both relocate to loadResRead2ndcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330830: @2217 -> @2447. Target and compiler extabindex +0 both relocate to loadResRead1stcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330838: @2223 -> @2453. Target and compiler extabindex +0 both relocate to loadResGetlengthcallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330840: @2229 -> @2459. Target and compiler extabindex +0 both relocate to loadResOpencallback_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330848: @2237 -> @2467. Target and compiler extabindex +0 both relocate to RFLiLoadResourceHeaderAsync; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330850: @2254 -> @2484. Target and compiler extabindex +0 both relocate to getNANDFile_; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330858: @2272 -> @2502. Target and compiler extabindex +0 both relocate to RFLiGetTexSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330860: @2298 -> @2528. Target and compiler extabindex +0 both relocate to RFLiLoadTexture; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330868: @2316 -> @2546. Target and compiler extabindex +0 both relocate to RFLiGetShpTexSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330870: @2342 -> @2572. Target and compiler extabindex +0 both relocate to RFLiLoadShpTexture; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330878: @2360 -> @2590. Target and compiler extabindex +0 both relocate to RFLiGetShapeSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330880: @2386 -> @2616. Target and compiler extabindex +0 both relocate to RFLiLoadShape; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330888: @2400 -> @2630. Target and compiler extabindex +0 both relocate to RFLFreeCachedResource; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330890: @2405 -> @2635. Target and compiler extabindex +0 both relocate to RFLIsResourceCached; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
## RFL_Model
- 0x81330970: @2787 -> @2794. Target and compiler extabindex +0 both relocate to RFLGetModelBufferSize; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330978: @2836 -> @2843. Target and compiler extabindex +0 both relocate to RFLiInitCharModel; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330980: @2841 -> @2848. Target and compiler extabindex +0 both relocate to RFLSetMtx; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330988: @2871 -> @2878. Target and compiler extabindex +0 both relocate to RFLLoadDrawSetting; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330990: @2883 -> @2890. Target and compiler extabindex +0 both relocate to RFLLoadMaterialSetting; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x81330998: @2921 -> @2928. Target and compiler extabindex +0 both relocate to RFLDrawOpaCore; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x813309A0: @2936 -> @2943. Target and compiler extabindex +0 both relocate to RFLDrawXluCore; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x813309A8: @2956 -> @2959. Target and compiler extabindex +0 both relocate to RFLiInitCharModelRes; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x813309B0: @3092 -> @3095. Target and compiler extabindex +0 both relocate to RFLiInitShapeRes; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
- 0x813309B8: @3105 -> @3108. Target and compiler extabindex +0 both relocate to RFLiInitTexRes; +8 relocates to this 8-byte unwind record, whose bytes are identical. Address and extent unchanged.
## Instruction verification
- RFL_Database: instruction-exact 38/39; no source or text symbols changed, so no instruction count dropped.
- Existing raw instruction difference: RFLiIsSameID; objdiff 100%, not altered by data-symbol changes.
- RFL_HiddenDatabase: instruction-exact 20/20; no source or text symbols changed, so no instruction count dropped.
- RFL_NANDLoader: instruction-exact 17/17; no source or text symbols changed, so no instruction count dropped.
- RFL_Model: instruction-exact 15/15; no source or text symbols changed, so no instruction count dropped.
## Final full gate
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLFaceLib/src/RFL_Database] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_Database] objdiff: code 7508/7508 data 688/688 functions 39/39 fuzzy 100.0000 linked code 7508
[libs/RVLFaceLib/src/RFL_Database] instruction-exact functions: 38/39
[libs/RVLFaceLib/src/RFL_Database] section .sdata2 size 8 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section .text size 7508 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section extab size 272 match 100.0
[libs/RVLFaceLib/src/RFL_Database] section extabindex size 408 match 100.0
[libs/RVLFaceLib/src/RFL_Database] baseline: code 7508/7508 data 280 functions 39 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_HiddenDatabase] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_HiddenDatabase] objdiff: code 3356/3356 data 340/340 functions 20/20 fuzzy 100.0000 linked code 3356
[libs/RVLFaceLib/src/RFL_HiddenDatabase] instruction-exact functions: 20/20
[libs/RVLFaceLib/src/RFL_HiddenDatabase] section .text size 3356 match 100.0
[libs/RVLFaceLib/src/RFL_HiddenDatabase] section extab size 136 match 100.0
[libs/RVLFaceLib/src/RFL_HiddenDatabase] section extabindex size 204 match 100.0
[libs/RVLFaceLib/src/RFL_HiddenDatabase] baseline: code 3356/3356 data 136 functions 20 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_NANDLoader] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_NANDLoader] objdiff: code 4140/4140 data 504/504 functions 17/17 fuzzy 100.0000 linked code 4140
[libs/RVLFaceLib/src/RFL_NANDLoader] instruction-exact functions: 17/17
[libs/RVLFaceLib/src/RFL_NANDLoader] section .data size 32 match 100.0
[libs/RVLFaceLib/src/RFL_NANDLoader] section .rodata size 144 match 100.0
[libs/RVLFaceLib/src/RFL_NANDLoader] section .sdata size 8 match 100.0
[libs/RVLFaceLib/src/RFL_NANDLoader] section .text size 4140 match 100.0
[libs/RVLFaceLib/src/RFL_NANDLoader] section extab size 128 match 100.0
[libs/RVLFaceLib/src/RFL_NANDLoader] section extabindex size 192 match 100.0
[libs/RVLFaceLib/src/RFL_NANDLoader] baseline: code 4140/4140 data 312 functions 17 fuzzy 100.0000
[libs/RVLFaceLib/src/RFL_Model] pool: IDENTICAL
[libs/RVLFaceLib/src/RFL_Model] objdiff: code 7788/7788 data 552/552 functions 15/15 fuzzy 100.0000 linked code 7788
[libs/RVLFaceLib/src/RFL_Model] instruction-exact functions: 15/15
[libs/RVLFaceLib/src/RFL_Model] section .data size 16 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .rodata size 272 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .sdata2 size 64 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section .text size 7788 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section extab size 80 match 100.0
[libs/RVLFaceLib/src/RFL_Model] section extabindex size 120 match 100.0
[libs/RVLFaceLib/src/RFL_Model] baseline: code 7788/7788 data 432 functions 15 fuzzy 100.0000
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.07103 -> 63.07103
global matched_data_percent: 97.64782 -> 97.69824
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
All non-text sections reach 100%; matched_data equals total_data in all four units. No remaining non-matching functions in objdiff. No code changes, no section total or symbol extent changes.
Existing RFLiIsSameID raw ctxdiff: 101/101 instructions, diffs 2 at indices 1 and 8. Both are bne displacement differences caused by its different object placement. Objdiff remains 100%. Source and code-symbol configuration are unchanged; data-lane instruction-exact count stays 38/39.

View File

@@ -1,165 +0,0 @@
MAX round; one worker, 43U matching and proven owned data identity/extent corrections. AGENTS read; origin fetched.
IPL_ES_DATA POOL FIRST: baseline divergence83,114 strings on each side; data first0xd3f bytes are identical, nonmatching unauthorized helper block causes later ordering mismatch. Target objects are extraction labels, ours anonymous literal and __FUNCTION__ compiler symbols. No source data added.
DATA PROOF lbl_816412C0 -> @17577: GetTmdView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP9ESTmdView+0x4E data relocation resolves .data+0x0 in both objects; NUL-terminated char[43] bytes identical; extent0x2B->0x2B, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816412EB -> @17578: GetTmdView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP9ESTmdView+0xC6 data relocation resolves .data+0x2B in both objects; NUL-terminated char[43] bytes identical; extent0x2B->0x2B, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_81641316 -> @17592: GetTicketViewList__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP12ESTicketViewPUl+0x52 data relocation resolves .data+0x56 in both objects; NUL-terminated char[54] bytes identical; extent0x36->0x36, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_8164134C -> @17593: GetTicketViewList__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxPP12ESTicketViewPUl+0xDE data relocation resolves .data+0x8C in both objects; NUL-terminated char[54] bytes identical; extent0x36->0x36, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_81641382 -> @17606: GetTicketView__Q33ipl7utility6ESMiscFPQ23EGG4HeapUxP12ESTicketViewi+0x4A data relocation resolves .data+0xC2 in both objects; NUL-terminated char[41] bytes identical; extent0x29->0x29, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816413AB -> @17613: PrivateContentsExist__Q33ipl7utility6ESMiscFUx+0x2A data relocation resolves .data+0xEB in both objects; NUL-terminated char[25] bytes identical; extent0x19->0x19, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816413C4 -> @17614: PrivateContentsExist__Q33ipl7utility6ESMiscFUx+0x86 data relocation resolves .data+0x104 in both objects; NUL-terminated char[38] bytes identical; extent0x26->0x26, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816413EA -> @17630: ContentExist__Q33ipl7utility6ESMiscFP9ESTmdViewUlPl+0xA2 data relocation resolves .data+0x12A in both objects; NUL-terminated char[58] bytes identical; extent0x3A->0x3A, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_81641424 -> @17631: ContentExist__Q33ipl7utility6ESMiscFP9ESTmdViewUlPl+0xEA data relocation resolves .data+0x164 in both objects; NUL-terminated char[58] bytes identical; extent0x491->0x3A, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816418B5 -> @17730: IsLastTicketExpired__Q33ipl7utility6ESMiscFPUx+0x32 data relocation resolves .data+0x5F5 in both objects; NUL-terminated char[17] bytes identical; extent0xF0->0x11, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816419A5 -> @17780: ChangeUid__Q33ipl7utility6ESMiscFUx+0x2E data relocation resolves .data+0x6E5 in both objects; NUL-terminated char[33] bytes identical; extent0x268->0x21, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_81641C0D -> @17857: DeleteMetaContent__Q33ipl7utility6ESMiscFUx+0x2E data relocation resolves .data+0x94D in both objects; NUL-terminated char[26] bytes identical; extent0x7CD->0x1A, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816962A0 -> @17940: DeleteSavedata__Q33ipl7utility6ESMiscFUxPQ23EGG4Heap+0x14C data relocation resolves .sdata+0x0 in both objects; NUL-terminated char[5] bytes identical; extent0x5->0x5, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816962A5 -> __FUNCTION__$16810: Open__Q33ipl7utility7TMDFileFPc+0x80 data relocation resolves .sdata+0x5 in both objects; NUL-terminated char[5] bytes identical; extent0x5->0x5, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816962AA -> __FUNCTION__$16845: Exist__Q33ipl7utility7TMDFileFUxPUlPUl+0x80 data relocation resolves .sdata+0xA in both objects; NUL-terminated char[6] bytes identical; extent0x6->0x6, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816962B0 -> __FUNCTION__$16875: Backup__Q33ipl7utility7TMDFileFUx+0x84 data relocation resolves .sdata+0x10 in both objects; NUL-terminated char[7] bytes identical; extent0x7->0x7, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA PROOF lbl_816962B7 -> __FUNCTION__$16927: Restore__Q33ipl7utility7TMDFileFUx+0x80 data relocation resolves .sdata+0x17 in both objects; NUL-terminated char[8] bytes identical; extent0x9->0x8, address and section totals unchanged, absorbed neighbours/alignment left unowned.
DATA RESULT iplESMisc quick gate PASS: matched_data0/4416->4416/4416; instruction-exact30/31 unchanged. All17 config changes have matched relocation + NUL/type proof; no raw section bytes, addresses, split totals, or production source changed. Pool83 remains a code-source issue in DeleteUnauthorizedData; objdiff100 is its owned-symbol pairing measure and does not assert identical raw pools.
DATA FULL GATE PASS: clean 43U build over all4 owned units; DOL SHA1 unchanged, regressions0, forbidden0, readability0. Commit proven data identity/extent recovery before code iteration.
BEGIN DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: origin=08923eda6ca98c9270567edcac967fe6d30868cf, fetch=0, source identical=True; Target449/ours434 instructions; aligned frame0x260, fileInfo at0x160 and ticket scratch at0x80. Target retains both ES_ListTitles results inr27 throughheapfree and returns r27 inr3. Previous proper helpers445/449 exposed four missing instructions: hoisted -1 versus per-iteration64 masks, ticket scratch pointer lifetime, and nonzero count branch form. Test wide masked formatting/field expression boundaries and caller scratch lifetime before declaration search; temporary return signature guarded only for this cpp.
POOL FIRST DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: FIRST DIVERGENCE at index 83 | 81 mine=0xcfe base=0xcfe | M '%s::%s: Could not read2 %s: %d\n' | B '%s::%s: Could not read2 %s: %d\n' | 82 mine=0xd1e base=0xd1e | M '%s::%s: Failed to delete %s: %d\n' | B '%s::%s: Failed to delete %s: %d\n' | * 83 mine=0xd3f base=0xd3f | M '%s::%s: Unable to allocate\n' | B 'verifySavedataZD' | * 84 mine=0xd5b base=0xd50 | M 'InitSavedata' | B 'DeleteTicketsForce' | * 85 mine=0xd68 base=0xd63 | M '/title/%08x/%08x/data/%s' | B 'InitSavedata' | * 86 mine=0xd81 base=0xd70 | M 'zeldaTp.dat' | B '%s::%s: Failed to ES_ListTitlesOnCard1: %d\n' | * 87 mine=0xd8d base=0xd9c | M '%s::%s: ChangeUid failed\n' | B '%s::%s: Unable to allocate\n' | | mine has 114 strings, base has 114 |
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: return-status helpers with caller-owned aligned file/ticket storage; source 93d28836cd1d; structural/exact,lengths ((32, 398), 444, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: format path from wide-masked title before extracting32-bit halves; source 5f9b66204c9b; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: fresh typed title reads at masked branch/helper/switch boundaries; source e573f03b2cf2; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: caller gives ticket scratch pointer an explicit lifetime across title loop; source 042fe84ed15c; BUILD FAIL 1 -DTARGET_RVL -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c++ -MMD -c src/utility/iplESMisc.cpp -o build/43U/src/src/utility && "/usr/bin/python3" tools/transform_dep.py build/43U/src/src/utility/iplESMisc.d build/43U/src/src/utility/iplESMisc.d | ### mwcceppc.exe Compiler: | # In: include\utility\iplTree.h | # From: src\utility\iplESMisc.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\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\src\utility\iplESMisc.cpp:5) | ### mwcceppc.exe Compiler: | # File: src\utility\iplESMisc.cpp | # ---------------------------------- | # 651: u8* ticketScratch = ticketViews; | # Error: ^^^^^^^^^^^ | # (10140) undefined identifier 'ticketViews' | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. |
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket scratch union gives actual byte-storage and ticket-view fields; source a138d0e32291; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: zero ticket count takes explicit cleanup edge as target branch pair; source 857f365c2fe6; structural/exact,lengths ((29, 182), 448, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: InitSavedata scratch cursor declared only in its correct caller scope; source a1fd7d43b86a; structural/exact,lengths ((35, 260), 451, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: low formatting half narrows once after64-bit mask; source 81f2cef32440; structural/exact,lengths ((27, 400), 447, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: both formatting halves narrow once after64-bit mask; source bcd896bc3b59; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: zero ticket count returns from inline helper before allocation boundary; source 589297c67d3e; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: verify state declared before block offset and local loop counter; source d7cea452c335; structural/exact,lengths ((29, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket helper evaluates caller storage/count before title and heap; source 89bea13429bb; structural/exact,lengths ((27, 403), 446, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: single narrowing masks combined with caller scratch pointer lifetime; source 421caf55932b; structural/exact,lengths ((30, 434), 450, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: ticket helper returns its actual ES status at zero-count and cleanup exits; source 0b528f4f0a9f; structural/exact,lengths ((32, 434), 451, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
ATTEMPT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: scratch cursor begins lifetime only after successful second title enumeration; source 4578a5a6f40b; structural/exact,lengths ((30, 396), 450, 449); POOL IDENTICAL up to 114 (mine=114 base=114)
DECLSEARCH DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: declaration block: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); | start (27, 400) | best (27, 400) after 36 builds; source restored; best order was: | u8 ticketViews[0xe0] ALIGN32; | NANDFileInfo fileInfo ALIGN32; | u32 ticketViewCount; | ESTitleId* titleIds = NULL; | u32 titleCount = 0; | s32 ret = ES_ListTitlesOnCard(NULL, &titleCount); |
END DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap:at least3 distinct successful MAX source variants, 36 declaration builds; wide formatting boundaries recovered448/449, best narrowed half27struct400exact447/449; pointer lifetime and helper-return variants450/451. Proper helpers fixpool114 but no exact. Temporary guarded public status-return declaration and source restored; committed data identities/types retained. Target repeated -1 materialization, saved scratch cursor and branch pair remain structural differences.
NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment.
NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True
NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment.
NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True
NHTTP DATA POOL FIRST: identical1 string, no pool ordering gap. Remaining .rodata object is nine powers-of-ten initializer with trailing8-byte-section alignment.
NHTTP DATA REMOTE: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f; target label still present=True
DATA PROOF lbl_81618C48 -> @231: NHTTPi_intToStr relocation offsets ['0x16', '0x1a'] resolve .rodata+0 in both objects; source initializer is u32[9] with identical36 bytes; extent0x28->0x24 leaves4 zero alignment bytes unowned, address0x81618C48 and target section total40/alignment8 unchanged; compiled section36/alignment8 was not changed.
NHTTP DATA FULL GATE PASS: matched_data72/112->112/112; .rodata extent is9 u32 elements, four zero alignment bytes left unowned; target section still40 bytes, compiled still36. Code counts unchanged; full43U/DOL/regression/forbidden/readability pass over all4 units.
BEGIN NHTTPi_strnicmp: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f, fetch=0, source identical=True; 51/51 instructions, frame0x10 identical. Only initial constants ordered A,zero,Z versus targetA,Z,zero; later instructions exactly identical. New operand direction and matching32-bit long predicates/upper-first helper formal order, then declaration order. Shared LowerCase remains untouched so exact functions cannot regress.
POOL FIRST NHTTPi_strnicmp: POOL IDENTICAL up to 1 (mine=1 base=1) |
ATTEMPT NHTTPi_strnicmp: constant first in lower bound; source dcccd0bb4449; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_strnicmp: constant first in upper bound; source 21d5e60ddd5e; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_strnicmp: both bound operands in constant-first source form; source 2be149ec0660; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_strnicmp: signed32-bit long formal and bounds have one arithmetic type; source dbf14de99b1b; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_strnicmp: named range predicates retain both compare values before branch; source 746233dd99d4; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_strnicmp: inline range formal order upper/lower/character; source 372f2c0c5a89; structural/exact,lengths ((2, 2), 51, 51); POOL IDENTICAL up to 1 (mine=1 base=1)
DECLSEARCH NHTTPi_strnicmp: declaration block: | int a; | int b; | start (2, 2) | best (2, 2) after 2 builds; source restored; best order was: | int a; | int b; |
END NHTTPi_strnicmp: six new real operand/type/boundary variants plus2 declaration orders, no exact; A/Z/zero materialization order persists. Baseline source and committed data retained.
BEGIN NHTTPi_intToStr: origin=c4857800df46ae3edfd824198fa09a31c4f6ce0f, fetch=0, source identical=True; 95/95, frame0x50. Baseline normalized0/exact53; indexed output already recovers target scratchr5 and15 exact differences. Target quotientr8/productr7/ASCIIr0; ours quotientr7/productr0/ASCIIr7. Array and branches identical. Test byte result type, native32-bit quotient/index types and real divide-result/remaining-value inline boundaries, then declaration search.
POOL FIRST NHTTPi_intToStr: POOL IDENTICAL up to 1 (mine=1 base=1) |
ATTEMPT NHTTPi_intToStr: indexed output confirms scratch cursor structural match; source 57cbcaead90e; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_intToStr: ASCII result stored from actual unsigned-byte local; source 2c1e8b51fa7c; BUILD FAIL e -Cpp_exceptions off -O4,p -inline auto -pragma "cats off" -pragma "warn_notinlined off" -maxerrors 1 -nosyspath -RTTI off -fp_contract on -str reuse -DSDK_IPL -D_REVOLUTION -DMEM_MANAGER_DIRECT -i include -i include/global -i libs/MetroTRK/include -i libs/Runtime/include -i libs/MSL/include -i libs/RVL_SDK/include -i libs/RevoEX/include -i libs/NW4R/include -i libs/RVLMiddleware/eZiText/include -i libs/RVLMiddleware/TMC_JPEG/include -i libs/RVLFaceLib/include -i libs/EGG/include -i libs/OperaWWW/include -ir libs/RVL_SDK/include/private/bte -i build/43U/include -DBUILD_VERSION=0 -DVERSION_43U -i libs/RVL_SDK/include/private/bte -DNDEBUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c -o build/43U/src/libs/RevoEX/src/nhttp && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d build/43U/src/libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.d | ### mwcceppc.exe Compiler: | # File: libs\RevoEX\src\nhttp\NHTTP_stdlib_RVL.c | # ------------------------------------------------- | # 116: u8 character = quotient + '0'; | # Error: ^^ | # (10141) expression syntax error | # Too many errors printed, aborting program | | User break, cancelled... | ninja: build stopped: subcommand failed. |
ATTEMPT NHTTPi_intToStr: quotient uses native unsigned-int32 instead of SDK unsigned-long32; source 4f0d833d3eb7; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_intToStr: array position uses nonnegative unsigned32 index; source 6f5e01e9f05a; structural/exact,lengths ((0, 15), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_intToStr: real division helper returns decimal digit and remainder fields; source dff71c76e5cb; structural/exact,lengths ((31, 82), 107, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_intToStr: division helper updates remaining value and returns quotient; source 253619c46678; structural/exact,lengths ((0, 0), 95, 95); POOL IDENTICAL up to 1 (mine=1 base=1)
DATA PROOF @231 -> @237 at0x81618C48: the new TakeDecimalDigit inline boundary changes the compiler anonymous-ID sequence; exact NHTTPi_intToStr still loads the same9-word initializer through relocation offsets0x16/0x1A, bytes/type u32[9] and extent0x24 unchanged. Update extracted symbol identity to the actual compiled name, no address/section change.
MATCH NHTTPi_intToStr: TakeDecimalDigit updates remaining value by reference and returns quotient; indexed output retains target scratch cursor; 95/95 instructions, ctxdiff0 and objdiff100.0, unit10/14->11/14/code1008->1388. Quick full gate over all4 leaves PASS, data4416/112/0/456 preserved; full clean gate before commit.
FULL MATCH GATE NHTTPi_intToStr PASS: clean43U over all4 units; exact95/95 ctxdiff0, objdiff100, NHTTP11/14 and data112/112; regressions0, DOL SHA1 correct, forbidden0, readability0. Retain only TakeDecimalDigit plus indexed output and verified @237 array identity update.
BEGIN NHTTPi_compareToken: origin=9ef60d674d871e9d936b6f608dc7392de529e97d, fetch=0, source identical=False; 44/45, frame0x10. Target right fold is a conditional value, left keeps raw and folded values; target rawleft inr31, baseline fold colors collide. Code match in previous helper-by-reference decimal conversion motivates real token read/normalize output argument boundaries. Inspect condition-entry loop and raw-left lifetime before declaration search.
POOL FIRST NHTTPi_compareToken: POOL IDENTICAL up to 1 (mine=1 base=1) |
REMOTE FUNCTION CHECK NHTTPi_compareToken: current public function equals origin/main=True; only local decimal match differs in unit; current ctxdiff24struct42exact proves token still open.
ATTEMPT NHTTPi_compareToken: left normalized return and raw output parameter in condition-entry loop; source 9fa26d9ce1c2; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: explicit right-first fold then left read in loop body; source 73b259bdd42d; structural/exact,lengths ((22, 43), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: left helper output parameter evaluated before input pointer; source 5b5e28b2320a; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: real raw/folded token pair returned across inline boundary; source 25d582834d5b; structural/exact,lengths ((29, 47), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: raw token out-parameter is signed byte, promoted for comparison; source 065198c55f86; structural/exact,lengths ((6, 16), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: helper returns raw while writing normalized value by reference; source 27910b42caf3; structural/exact,lengths ((22, 43), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
DECLSEARCH NHTTPi_compareToken: declaration block: | int rawLeft; | int leftCharacter; | int rightCharacter; | start (6, 16) | best (6, 16) after 6 builds; source restored; best order was: | int rawLeft; | int leftCharacter; | int rightCharacter; |
END NHTTPi_compareToken: six distinct by-reference/tuple/condition-order variations plus declaration search, no exact; baseline token restored and decimal match retained.
ATTEMPT NHTTPi_compareToken: right-first equality and inverse ternary preserve raw byte until stop test; source e02a80a88c49; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: right-first equality with original uppercase ternary; source 1d232b7e3c5c; structural/exact,lengths ((6, 15), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: right fold branch assigns shifted candidate before range rejection; source 6090da9c0edc; structural/exact,lengths ((6, 25), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: left signed-byte read output, right-first equality; source 33a8521f649e; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: right-first explicit int raw with byte stop comparison; source d9a8082f6e90; structural/exact,lengths ((32, 45), 48, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: right bounds constant-first and shifted candidate before fallback; source 521755ff8e5c; structural/exact,lengths ((6, 25), 46, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
END NHTTPi_compareToken: six further branch/equality/byte-lifetime attempts; best (6, 15); retained decimal-only exact source.
BEGIN NHTTPi_Base64Encode: origin=c9fb0697ca1af1a4934b8020b176d57068cf219e, fetch=0, source identical=False; 119/119 frame0x20; target snapshots three signed bytes and computes indices before table loads/stores; baseline interleaves source reloads and output stores. Target source-pointer increments by3 and output by4; consumed-length padding branch is signed. Diagnose alias boundaries and staged triplet arithmetic before register search.
POOL FIRST NHTTPi_Base64Encode: POOL IDENTICAL up to 1 (mine=1 base=1) |
REMOTE FUNCTION CHECK NHTTPi_Base64Encode: exact public function equals origin/main=True; main has unchanged open implementation.
ATTEMPT NHTTPi_Base64Encode: staged byte snapshots and first encoded temporary inside group helper; source 487e72dfdfaa; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: first encoded temporary inline in caller, signed padding length; source e387cd259d57; structural/exact,lengths ((42, 67), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: group helper owns real input and output cursor advancement; source a16ce970e996; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: cursor helper input evaluated before output by-reference; source 0ffd67926185; structural/exact,lengths ((42, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: natural char triplet view with signed fragment before masked fragment; source d371bba56fde; structural/exact,lengths ((43, 57), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: paired alphabet lookup helper defines fragment lifetimes; source 73fac3ba455c; structural/exact,lengths ((43, 57), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
DECLSEARCH NHTTPi_Base64Encode: declaration block: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; | start (42, 63) | best (42, 63) after 13 builds; source restored; best order was: | const char* table=alphabet; | char* output=destination; | s32 length=strlen(source); | s32 consumed=0; |
END NHTTPi_Base64Encode: six successful staged-byte/group/cursor/triplet/lookup attempts and declaration search; best (42, 63), no exact; signed source and production decimal match retained.
ATTEMPT NHTTPi_Base64Encode: staged signed snapshots with masked fragment added to table first; source d7cee83c12f4; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: first low fragment named before first alphabet lookup; source 08d3fbc6f935; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: both masked fragment lifetimes precede alphabet writes; source 174d85140e81; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_Base64Encode: triplet typed reads staged in alphabet lookup helper; source a6527088f3f3; structural/exact,lengths ((47, 63), 119, 119); POOL IDENTICAL up to 1 (mine=1 base=1)
DECLSEARCH staged helper NHTTPi_Base64Encode: declaration block: | s8 first; | s8 second; | s8 third; | char firstEncoded; | start (47, 63) | best (47, 63) after 13 builds; source restored; best order was: | s8 first; | s8 second; | s8 third; | char firstEncoded; |
END NHTTPi_Base64Encode: four masked-index/table operand and snapshot extent attempts, best (47, 63), no exact; additional helper declaration search exhausted.
BEGIN TMCJPEGDEC_IdctBlock_Lumi: origin=c9fb0697ca1af1a4934b8020b176d57068cf219e, fetch=0, source identical=True; 257/257 instructions; frame0x140, 64-word scratch and locals match in extent. Target schedules odd sum/difference pairs and even DC butterflies through separate live temporaries; baseline overwrites b1/b5, creating different multiplication/add lifetimes. In column pass target DC+bias and clamp temporaries differ. Diagnose operand order and by-reference butterfly helper boundaries before declaration search; preserve Col code.
POOL FIRST TMCJPEGDEC_IdctBlock_Lumi: POOL IDENTICAL up to 0 (mine=0 base=0) |
JPEG DATA AUDIT: target no owned data sections or data symbols, matched_data0/0; no identity or extent changes applicable.
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: odd butterfly by-reference outputs in row and column passes; source 64e03eee114e; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: row-only odd butterfly boundary; source 7f6a2e61fc08; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: column-only odd butterfly boundary; source 45f8f981bc1c; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: distinct odd difference temporaries preserve loaded coefficient lifetimes; source df52af3356b9; structural/exact,lengths ((43, 189), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: by-reference odd butterfly into separate sum/difference locals; source 708262fd7b95; structural/exact,lengths ((43, 189), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: DC even butterfly computes sum/difference through actual result pointers; source 801cb5f8ef06; structural/exact,lengths ((34, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: second even butterfly coupled with DC output boundary; source affef2da000e; structural/exact,lengths ((34, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Lumi: real scaled coefficient assignments cross by-reference inline boundary; source bfd3ccb1adeb; structural/exact,lengths ((36, 188), 257, 257); POOL IDENTICAL up to 0 (mine=0 base=0)
DECLSEARCH TMCJPEGDEC_IdctBlock_Lumi: declaration block: | s32* dst; | s32 done; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 d; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 t; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 q; | s32 w; | s32 x; | s32 b1; | start (34, 188) | improved (34, 187) | improved (31, 187) | best (31, 187) after 140 builds; kept in source: | s32 b5; | s32 t; | s32 iter; | s32 i; | s32 e; | s32 b2; | s32 b3; | s32 b4; | s32* dst; | s32 b6; | s32 b7; | s32 v; | s32 m; | s32 a; | s32 d; | s32 z; | s32 o; | s32 p; | s32 p_part; | s32 done; | s32 u; | s32 r; | s32 n; | s32 y; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 q; | s32 w; | s32 x; | s32 b1; |
END TMCJPEGDEC_IdctBlock_Lumi: eight valid source-level butterfly/lifetime/scale helper variants, best (34, 188), no exact; source restored, Col unchanged.
BEGIN TMCJPEGDEC_IdctBlock_Col: origin=f78a686e3216ae4be40493a9fbc2c0b340eb6051, fetch=0, source identical=True; 454/454 frame0x130. DC path target materializes memset destination after range comparisons; ours materializes it early. Remaining full-transform differences are scheduling of coefficient butterfly sums/differences, clamp temporaries and operand association. Both passes use real separate odd differences. Test DC clamp/FIll helper boundaries and paired output stores before register allocation; retain Lumi unchanged.
POOL FIRST TMCJPEGDEC_IdctBlock_Col: POOL IDENTICAL up to 0 (mine=0 base=0) |
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC signed clamp updates actual scalar through output pointer; source 8b59b5fed610; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC saturation and block fill share actual inline helper boundary; source a34ed3ee141a; structural/exact,lengths ((16, 276), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Col: DC helper passes unclamped value by value and saturation by reference; source 10e35c0ae81a; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Col: scaled sample saturation and byte store share helper output boundary; source 56a34bdf9ef8; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Col: odd coefficients paired by-reference in full row and column passes; source 3ff254193598; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Col: even DC sum/difference share result-pointer helper; source 8629e54d4393; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Col: symmetric low-frequency output pair stores inside real helper; source b6b84a108c27; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT TMCJPEGDEC_IdctBlock_Col: odd butterfly difference result assigned before sum; source 2c17ae806df6; structural/exact,lengths ((18, 290), 454, 454); POOL IDENTICAL up to 0 (mine=0 base=0)
DECLSEARCH TMCJPEGDEC_IdctBlock_Col: declaration block: | s32* dst; | s32 done; | s32 iter; | s32 d; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 w; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; | start (16, 276) | improved (14, 273) | best (14, 273) after 160 builds; kept in source: | s32* dst; | s32 done; | s32 iter; | s32 w; | s32 b1; | s32 b2; | s32 b3; | s32 b4; | s32 b5; | s32 b6; | s32 b7; | s32 v; | s32 r; | s32 a; | s32 i; | s32 m; | s32 n; | s32 o; | s32 x; | s32 q; | s32 y; | s32 u; | s32 d; | s32 p; | s32 t; | s32 z; | s32 x_factor; | s32 z_factor; | s32 m_part; | s32 p_part; | s32 e; |
END TMCJPEGDEC_IdctBlock_Col: eight distinct helper/temporary/output-boundary attempts, best (16, 276), no exact; source restored, Lumi unchanged.
BEGIN ProcessBlock: origin=c44fbd720965dadcc282b8cea9f6fba352c2f559, fetch=0, source identical=True; 294/306 frame0x20. Baseline __lwbrx zero-first argument generates indexed loads from block base; target materializes each indexed address and uses zero RA. Target independently byte-swaps message twice for two rotation halves and adds four associated partial sums per step. Prior structurally honest helper/address version reaches306/306 with36struct150exact. Inspect sequential pointer advances and by-reference state/cursor helper boundaries before declaration search; preserve three exact public APIs and constant/index data.
POOL FIRST ProcessBlock: POOL IDENTICAL up to 0 (mine=0 base=0) |
MD5 DATA AUDIT: constants u32[64] and indices u32[48], target .data448 plus .sdata8; existing report456/456; no label/name or extent gap. No data/config change required.
ATTEMPT ProcessBlock: reference associated halves and real materialized indexed word addresses; source 281c3a5b98bf; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT ProcessBlock: rotation halves remain direct STEP macro expressions with shared state plus F; source 46b7f921d942; structural/exact,lengths ((56, 242), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT ProcessBlock: actual accumulator state updated by reference through full-step helper; source b463d05d0830; structural/exact,lengths ((233, 299), 304, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT ProcessBlock: rotation helper owns actual sequential word cursor advancement; source 917c2cfc3ab1; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT ProcessBlock: round constant read and progression coupled through live pointer; source 12d8bb10252a; structural/exact,lengths ((36, 150), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT ProcessBlock: first two round Boolean functions have actual inline function parameters; source 2a5bd22badd4; structural/exact,lengths ((148, 187), 306, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
ATTEMPT ProcessBlock: full-step helper exposes real accumulator and word cursor result pointers; source 5a3812f412c7; structural/exact,lengths ((233, 299), 304, 306); POOL IDENTICAL up to 0 (mine=0 base=0)
DECLSEARCH ProcessBlock: declaration block: | u32 a = context->a; | u32* word; | u32 b = context->b; | u32 c = context->c; | u32 d = context->d; | u32* block; | u32* index; | int round; | u32* constant; | start (36, 150) | best (36, 150) after 93 builds; source restored; best order was: | u32 a = context->a; | u32* word; | u32 b = context->b; | u32 c = context->c; | u32 d = context->d; | u32* block; | u32* index; | int round; | u32* constant; |
END ProcessBlock: seven associated-expression/state/cursor/constant/Boolean helper variants plus declaration search, best (36, 150), no exact; baseline restored and three public APIs retained.
BEGIN NHTTPi_compareToken: origin=d9cf3598fce3c7991cbc370ad84612a1294866cb, fetch=0, source identical=False; Revisit target raw r31 remains unsigned load while signed normalized value lives r11; body separately extsb raw into r0. Earlier signed-output helper extended raw in-place. Use an actual raw-u8 output and explicit signed interpretation, then stop test sign-extension; keep right conditional value boundary and examine equality operands.
POOL FIRST NHTTPi_compareToken: POOL IDENTICAL up to 1 (mine=1 base=1) |
REMOTE FUNCTION CHECK NHTTPi_compareToken: public function still equals origin/main=True; local intToStr is the only production code difference.
ATTEMPT NHTTPi_compareToken: raw unsigned byte survives left normalization; signed stop interpretation; source 76e97b65fd3f; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: raw unsigned byte with right normalized operand first; source f838a8ffa736; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: explicit right-first condition body with unsigned raw snapshot; source 33be55890ebf; structural/exact,lengths ((21, 38), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: right fold initializes shifted candidate before fallback assignment; source 682c2418dcbf; structural/exact,lengths ((28, 40), 47, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: right fold candidate before fallback in explicit condition body; source 9e2b7e7064eb; structural/exact,lengths ((21, 38), 45, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: raw output formal precedes source input; source 620820d22197; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
ATTEMPT NHTTPi_compareToken: stop test signed char promotes from unsigned snapshot; source 06a4de5d0cb2; structural/exact,lengths ((7, 34), 44, 45); POOL IDENTICAL up to 1 (mine=1 base=1)
END NHTTPi_compareToken: seven raw-byte/sign-boundary variants; best (7, 34); no exact and baseline restored.
FINAL POOL src/utility/iplESMisc: FIRST DIVERGENCE at index 83 | 81 mine=0xcfe base=0xcfe | M '%s::%s: Could not read2 %s: %d\n' | B '%s::%s: Could not read2 %s: %d\n' | 82 mine=0xd1e base=0xd1e | M '%s::%s: Failed to delete %s: %d\n' | B '%s::%s: Failed to delete %s: %d\n' | * 83 mine=0xd3f base=0xd3f | M '%s::%s: Unable to allocate\n' | B 'verifySavedataZD' | * 84 mine=0xd5b base=0xd50 | M 'InitSavedata' | B 'DeleteTicketsForce' | * 85 mine=0xd68 base=0xd63 | M '/title/%08x/%08x/data/%s' | B 'InitSavedata' | * 86 mine=0xd81 base=0xd70 | M 'zeldaTp.dat' | B '%s::%s: Failed to ES_ListTitlesOnCard1: %d\n' | * 87 mine=0xd8d base=0xd9c | M '%s::%s: ChangeUid failed\n' | B '%s::%s: Unable to allocate\n' | | mine has 114 strings, base has 114 |
FINAL OPEN AUDIT DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap: objdiff=79.797325%, 14 distinct successful source hashes; structural/exact,lengths=((163, 436), 434, 449); Aligned ticket/file scratch lifetime, return-status preservation, masked title formatting and inline helper boundaries. Baseline pool first diverges at83. Proper helpers make all114 strings identical but best tested source still differs structurally.
FINAL POOL libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL: POOL IDENTICAL up to 1 (mine=1 base=1) |
FINAL OPEN AUDIT NHTTPi_strnicmp: objdiff=99.76471%, 6 distinct successful source hashes; structural/exact,lengths=((2, 2), 51, 51); 51/51 instructions; two initial constant materializations swap Z and zero. Every later instruction is exact. Six source predicate/operand/helper variations and two declaration orders leave the swap.
FINAL OPEN AUDIT NHTTPi_compareToken: objdiff=54.622223%, 19 distinct successful source hashes; structural/exact,lengths=((24, 42), 44, 45); 44/45 retained instructions. Raw signed character lifetime and right conditional normalization differ. By-reference helper reaches45/45 with6 structural differences; changed equality/branch form and unsigned raw snapshots do not match.
FINAL OPEN AUDIT NHTTPi_Base64Encode: objdiff=60.285713%, 10 distinct successful source hashes; structural/exact,lengths=((71, 58), 119, 119); 119/119 retained instructions. Source loads, masked fragment/table operand association and unrolled alphabet lookup/store scheduling differ. Staged byte helper reaches42 structural differences; cursor, triplet and declaration variants do not match.
FINAL POOL libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var: POOL IDENTICAL up to 0 (mine=0 base=0) |
FINAL OPEN AUDIT TMCJPEGDEC_IdctBlock_Lumi: objdiff=82.31518%, 8 distinct successful source hashes; structural/exact,lengths=((36, 188), 257, 257); 257/257 instructions, frame0x140. Row/column butterfly multiply/add scheduling, DC/stride temporary lifetimes and register allocation differ. Eight helper/temporary variants, then140 declaration builds leave31 structural differences at best.
FINAL OPEN AUDIT TMCJPEGDEC_IdctBlock_Col: objdiff=92.47577%, 8 distinct successful source hashes; structural/exact,lengths=((18, 290), 454, 454); 454/454 instructions, frame0x130. DC memset argument/clamp lifetime and full butterfly/store/clamp scheduling differ. Fill helper fixes the DC structural difference; eight variants then160 declaration builds leave14 structural differences at best.
FINAL POOL libs/RevoEX/src/net/md5: POOL IDENTICAL up to 0 (mine=0 base=0) |
FINAL OPEN AUDIT ProcessBlock: objdiff=43.290848%, 7 distinct successful source hashes; structural/exact,lengths=((225, 300), 294, 306); 294/306 retained instructions, frame0x20. Indexed addresses, duplicated swapped loads, associated rotation sums and sequential cursor scheduling differ. Honest typed helper/materialized addresses reach306/306; seven source variants and93 declaration builds leave36 structural differences.
COMPLETENESS AUDIT PASS: all 7 remaining functions have at least3 distinct successful source-level attempts logged in this MAX round; build failures excluded. No experimental source/header changes retained. No untried function remains.
FINAL FULL GATE PASS: all4 owned units, clean43U build, SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; exact30/31,11/14,0/2,3/4; matched_code9404,1388,0,600; matched_data4416,112,0,456. Regression0, forbidden0, readability0. NHTTPi_intToStr95/95 ctxdiff0 after clean build. Seven remaining functions audited14/6/19/10/8/8/7 distinct successful MAX source attempts, all at least3. No additional source changes after final gate.

View File

@@ -1,45 +0,0 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
[src/utility/iplESMisc] instruction-exact functions: 30/31
[src/utility/iplESMisc] section .data size 4384 match 100.0
[src/utility/iplESMisc] section .sdata size 32 match 100.0
[src/utility/iplESMisc] section .text size 11200 match 96.76036
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 72/112 functions 10/14 fuzzy 87.1886 linked code 0
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 10/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 94.73685
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] section .text size 2248 match 87.188614
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_intToStr 95.57895
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
[libs/RevoEX/src/net/md5] pool: IDENTICAL
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.16065 -> 63.16065
global matched_data_percent: 97.79842 -> 98.03938
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS

View File

@@ -1,44 +0,0 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
[src/utility/iplESMisc] instruction-exact functions: 30/31
[src/utility/iplESMisc] section .data size 4384 match 100.0
[src/utility/iplESMisc] section .sdata size 32 match 100.0
[src/utility/iplESMisc] section .text size 11200 match 96.76036
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 11/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 87.93594
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
[libs/RevoEX/src/net/md5] pool: IDENTICAL
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.58676
global fuzzy_match_percent: 99.45531 -> 99.45589
global complete_code_percent: 63.16065 -> 63.16065
global matched_data_percent: 97.79842 -> 98.04156
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS

View File

@@ -1,47 +0,0 @@
MAX round, start d5cd4ca777677117f1e02f1124ffb375178c391d.
| Unit | Instruction-exact before -> after | Matched code bytes before -> after | Matched data bytes before -> after |
| --- | --- | --- | --- |
| src/utility/iplESMisc | 30/31 -> 30/31 | 9404/11200 -> 9404/11200 | 0/4416 -> 4416/4416 |
| libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL | 10/14 -> 11/14 | 1008/2248 -> 1388/2248 | 72/112 -> 112/112 |
| libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var | 0/2 -> 0/2 | 0/2844 -> 0/2844 | 0/0 -> 0/0 |
| libs/RevoEX/src/net/md5 | 3/4 -> 3/4 | 600/1824 -> 600/1824 | 456/456 -> 456/456 |
NHTTPi_intToStr is now exact, 95/95 instructions and ctxdiff0. TakeDecimalDigit updates the actual remaining value by reference and returns the quotient; indexed output keeps the target scratch cursor. No other production function changed.
Remaining non-matching functions, one line each:
- DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap, 79.797325%, Aligned ticket/file scratch lifetime, return-status preservation, masked title formatting and inline helper boundaries. Baseline pool first diverges at83. Proper helpers make all114 strings identical but best tested source still differs structurally. MAX successful distinct attempts 14.
- NHTTPi_strnicmp, 99.76471%, 51/51 instructions; two initial constant materializations swap Z and zero. Every later instruction is exact. Six source predicate/operand/helper variations and two declaration orders leave the swap. MAX successful distinct attempts 6.
- NHTTPi_compareToken, 54.622223%, 44/45 retained instructions. Raw signed character lifetime and right conditional normalization differ. By-reference helper reaches45/45 with6 structural differences; changed equality/branch form and unsigned raw snapshots do not match. MAX successful distinct attempts 19.
- NHTTPi_Base64Encode, 60.285713%, 119/119 retained instructions. Source loads, masked fragment/table operand association and unrolled alphabet lookup/store scheduling differ. Staged byte helper reaches42 structural differences; cursor, triplet and declaration variants do not match. MAX successful distinct attempts 10.
- TMCJPEGDEC_IdctBlock_Lumi, 82.31518%, 257/257 instructions, frame0x140. Row/column butterfly multiply/add scheduling, DC/stride temporary lifetimes and register allocation differ. Eight helper/temporary variants, then140 declaration builds leave31 structural differences at best. MAX successful distinct attempts 8.
- TMCJPEGDEC_IdctBlock_Col, 92.47577%, 454/454 instructions, frame0x130. DC memset argument/clamp lifetime and full butterfly/store/clamp scheduling differ. Fill helper fixes the DC structural difference; eight variants then160 declaration builds leave14 structural differences at best. MAX successful distinct attempts 8.
- ProcessBlock, 43.290848%, 294/306 retained instructions, frame0x20. Indexed addresses, duplicated swapped loads, associated rotation sums and sequential cursor scheduling differ. Honest typed helper/materialized addresses reach306/306; seven source variants and93 declaration builds leave36 structural differences. MAX successful distinct attempts 7.
Data identity and extent proofs are recorded individually in four-leaves-r11.attempts.md. All18 config entries retain their addresses; target and source section totals remain unchanged. Anonymous literal names are taken from compiled symbols and matched function-relative relocations. NUL-terminated character array and nine-u32 initializer types prove the corrected extents. Absorbed neighbors and alignment remain unowned, as authorized.
Uncertainty: iplESMisc objdiff matched_data4416/4416 measures paired owned objects. The raw114-string pool still diverges at83 in DeleteUnauthorizedData. This is recorded code work; data100 does not assert identical raw pools or complete linking. The target status-return lifetime and compiler scheduling still lack an exact readable source reconstruction. JPEG has no data sections, so None/None in the raw gate is0/0.
Changed production files: config/43U/symbols.txt; libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL.c.
Evidence files: tools/decomp-assist/four-leaves-r11.attempts.md; four-leaves-r11.data-gate.txt; four-leaves-r11.http-data-gate.txt; four-leaves-r11.int-gate.txt; four-leaves-r11.final-gate.txt; four-leaves-r11.final.md.
Commits: 9b0b4dda recover es misc literal identities and extents; c2927e2a recover decimal scale initializer extent; 054e0b1f match decimal conversion inline boundary.
Every open function had a fresh origin fetch and unchanged public source check before work. This branch has no push, merge, rebase, other-worktree edits, new assembly or uncommitted experimental code.
Final full gate output, copied verbatim:
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
regressions vs baseline: 0
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```

View File

@@ -1,45 +0,0 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
[src/utility/iplESMisc] instruction-exact functions: 30/31
[src/utility/iplESMisc] section .data size 4384 match 100.0
[src/utility/iplESMisc] section .sdata size 32 match 100.0
[src/utility/iplESMisc] section .text size 11200 match 96.76036
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1008/2248 data 112/112 functions 10/14 fuzzy 87.1886 linked code 0
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 10/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 87.188614
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_intToStr 95.57895
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
[libs/RevoEX/src/net/md5] pool: IDENTICAL
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45531
global complete_code_percent: 63.16065 -> 63.16065
global matched_data_percent: 97.79842 -> 98.04156
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS

View File

@@ -1,44 +0,0 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/utility/iplESMisc] pool: DIVERGES at string 83 (mine=114 orig=114)
[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 96.7604 linked code 0
[src/utility/iplESMisc] instruction-exact functions: 30/31
[src/utility/iplESMisc] section .data size 4384 match 100.0
[src/utility/iplESMisc] section .sdata size 32 match 100.0
[src/utility/iplESMisc] section .text size 11200 match 96.76036
[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 79.797325
[src/utility/iplESMisc] baseline: code 9404/11200 data None functions 30 fuzzy 96.7604
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] pool: IDENTICAL
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] objdiff: code 1388/2248 data 112/112 functions 11/14 fuzzy 87.9359 linked code 0
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] instruction-exact functions: 11/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 87.93594
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_strnicmp 99.76471
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_compareToken 54.622223
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] below 100: NHTTPi_Base64Encode 60.285713
[libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL] baseline: code 1008/2248 data 72 functions 10 fuzzy 87.1886
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 88.8031 linked code 0
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 88.80309
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 82.31518
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 92.47577
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 88.8031
[libs/RevoEX/src/net/md5] pool: IDENTICAL
[libs/RevoEX/src/net/md5] objdiff: code 600/1824 data 456/456 functions 3/4 fuzzy 61.9452 linked code 0
[libs/RevoEX/src/net/md5] instruction-exact functions: 3/4
[libs/RevoEX/src/net/md5] section .data size 448 match 100.0
[libs/RevoEX/src/net/md5] section .sdata size 8 match 100.0
[libs/RevoEX/src/net/md5] section .text size 1824 match 61.945175
[libs/RevoEX/src/net/md5] below 100: ProcessBlock 43.290848
[libs/RevoEX/src/net/md5] baseline: code 600/1824 data 456 functions 3 fuzzy 61.9452
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.58676
global fuzzy_match_percent: 99.45531 -> 99.45589
global complete_code_percent: 63.16065 -> 63.16065
global matched_data_percent: 97.79842 -> 98.04156
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@@ -1,107 +0,0 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVL_SDK/src/fa/api/FAAttach] pool: IDENTICAL
[libs/RVL_SDK/src/fa/api/FAAttach] objdiff: code None/500 data 240/240 functions 0/1 fuzzy 99.3600 linked code 0
[libs/RVL_SDK/src/fa/api/FAAttach] instruction-exact functions: 0/1
[libs/RVL_SDK/src/fa/api/FAAttach] section .bss size 208 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .data size 24 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .sdata size 8 match 100.0
[libs/RVL_SDK/src/fa/api/FAAttach] section .text size 500 match 99.36
[libs/RVL_SDK/src/fa/api/FAAttach] below 100: FAAttach 99.36
[libs/RVL_SDK/src/fa/api/FAAttach] baseline: code None/500 data 240 functions 0 fuzzy 99.3600
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 96/180 functions 1/7 fuzzy 98.6539 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .data size 40 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 98.65385
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.3586
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 97.96712
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data 96 functions 1 fuzzy 98.6539
[src/system/iplKeyboard] pool: IDENTICAL
[src/system/iplKeyboard] objdiff: code 4752/6024 data 1184/1184 functions 31/32 fuzzy 98.7351 linked code 0
[src/system/iplKeyboard] instruction-exact functions: 31/32
[src/system/iplKeyboard] section .data size 1168 match 100.0
[src/system/iplKeyboard] section .sdata size 8 match 100.0
[src/system/iplKeyboard] section .sdata2 size 8 match 100.0
[src/system/iplKeyboard] section .text size 6024 match 98.73506
[src/system/iplKeyboard] below 100: create__Q33ipl8keyboard7ManagerFPQ33ipl4nand4FilePQ23EGG4Heap 94.00944
[src/system/iplKeyboard] baseline: code 4752/6024 data 1184 functions 31 fuzzy 98.7351
[src/BS2/BS2Update] pool: IDENTICAL
[src/BS2/BS2Update] objdiff: code 400/4052 data 10488/10488 functions 9/10 fuzzy 94.2300 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 94.23001
[src/BS2/BS2Update] below 100: UpdateThread 93.59803
[src/BS2/BS2Update] baseline: code 112/4052 data 10488 functions 8 fuzzy 91.6604
[src/channelScript/CHANSVm] pool: IDENTICAL
[src/channelScript/CHANSVm] objdiff: code 37608/53564 data 6904/6904 functions 221/233 fuzzy 99.3644 linked code 0
[src/channelScript/CHANSVm] instruction-exact functions: 221/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.364426
[src/channelScript/CHANSVm] below 100: CHANSVmConvertToFloatFromStr 97.59036
[src/channelScript/CHANSVm] below 100: VmDateDtor 94.96703
[src/channelScript/CHANSVm] below 100: VmStringReplace 97.878784
[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 97.949104
[src/channelScript/CHANSVm] below 100: VmBlobUnpack 98.452614
[src/channelScript/CHANSVm] below 100: VmWinEmuWrite 99.62687
[src/channelScript/CHANSVm] below 100: CHANSVmAddExe 99.625984
[src/channelScript/CHANSVm] below 100: CHANSVmLinkModules 98.677246
[src/channelScript/CHANSVm] below 100: CHANSVmStep 96.46608
[src/channelScript/CHANSVm] baseline: code 37608/53564 data 6904 functions 221 fuzzy 99.3644
[src/BS2/BS2Mach] pool: IDENTICAL
[src/BS2/BS2Mach] objdiff: code 4940/16980 data 155504/158528 functions 24/29 fuzzy 98.1595 linked code 0
[src/BS2/BS2Mach] instruction-exact functions: 24/29
[src/BS2/BS2Mach] section .bss size 155232 match 100.0
[src/BS2/BS2Mach] section .data size 3024 match None
[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 98.159485
[src/BS2/BS2Mach] below 100: Run 16.744186
[src/BS2/BS2Mach] below 100: BS2StartGame 98.72774
[src/BS2/BS2Mach] below 100: BS2StartGCGame 99.5614
[src/BS2/BS2Mach] below 100: CheckBS2CommandStatus 99.50739
[src/BS2/BS2Mach] below 100: BS2Tick 98.230415
[src/BS2/BS2Mach] baseline: code 4940/16980 data 155504 functions 24 fuzzy 97.8276
[src/scene/setting/AOSS] pool: IDENTICAL
[src/scene/setting/AOSS] objdiff: code 6436/16192 data 3928/3928 functions 16/21 fuzzy 96.7779 linked code 0
[src/scene/setting/AOSS] instruction-exact functions: 15/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 96.777916
[src/scene/setting/AOSS] below 100: AOSS_Init_old 93.78725
[src/scene/setting/AOSS] below 100: AOSSDecryptMessage 97.74143
[src/scene/setting/AOSS] below 100: AOSSApplyAuthOptions 98.77193
[src/scene/setting/AOSS] below 100: AOSSSendHelloRequest 92.190475
[src/scene/setting/AOSS] below 100: AOSSXorBufferWithKey 98.605446
[src/scene/setting/AOSS] baseline: code 6436/16192 data 3928 functions 16 fuzzy 96.7779
regressions vs baseline: 0
global matched_code_percent: 89.64909 -> 89.65871
global fuzzy_match_percent: 99.53278 -> 99.53815
global complete_code_percent: 67.39544 -> 67.39544
global matched_data_percent: 99.36508 -> 99.36508
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
review note: libs/RVL_SDK/include/revolution/dvd.h: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. volatile s32 state;
review note: src/BS2/BS2Mach.c: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. vu32 LowReadResult = 0;
review note: src/BS2/BS2Update.c: volatile object declaration (orchestrator checks the target really re-reads it) (+1 net), e.g. static volatile s32 rc = 0;
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS

Some files were not shown because too many files have changed in this diff Show More