Compare commits

..

1 Commits

Author SHA1 Message Date
coah
4aa7b79d7a cleanup(NWC24MsgObj): rename unk_0x28/2C to date/receivedDate
Evidence from NWC24MBoxCtrl entry->date / entry->receivedDate copies.
2026-10-01 19:08:05 -05:00
132 changed files with 2213 additions and 14096 deletions

170
AGENTS.md
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
@@ -170,8 +164,9 @@ This repository targets only Wii Menu 4.3U. Do not configure or build 43E,
43J, or 43K while doing matching work.
Most workers should pursue exact matching or safe linking; assign the remainder
to decompilation. Keep every worker slot busy (currently four Codex slots; see
"Orchestrator loop" below). Fill completed slots with disjoint tasks. Never duplicate a source file or function
to decompilation. Keep up to 75 live workers when the runtime allows it, while
reserving capacity for fixer and validation workers. Fill completed slots with
disjoint tasks. Never duplicate a source file or function
range. Workers return changed paths, exact objdiff measurements, and validation
results. Fuzzy-only results are not accepted.
@@ -251,12 +246,6 @@ and merge the PR, fast-forward `origin/main`, and publish progress. If a
candidate fails validation, return it to its worker; do not fix the candidate
inline in the orchestrator.
Two exceptions, both set by the human: once a leaf has failed at `max` effort
(see the effort scale below) the orchestrator itself takes a crack at it, and
the orchestrator may finish PRs whose authors are gone (rebase, drop a
forbidden pattern, close with evidence). Record every such attempt in the
policy log, including the ones that fail.
A new thread must begin by reading this file, checking the live 43U report and
remote branch, and dispatching the worker pool. The parent must not claim a
match without fresh independent verification.
@@ -331,159 +320,6 @@ Linked: <percent> | Fuzzy: <percent> | Data: <percent>
Do not report stale values, unmerged PR results, or add other text to that
update. Continue all required verification and coordination silently.
## Orchestrator loop (Claude orchestrator, Codex workers)
This is the loop currently in use. One Claude session is the orchestrator.
It does not spawn Claude subagents. All decompilation work goes to Codex CLI
workers running `gpt-6.1-sol`. The orchestrator assigns leaves, verifies,
lands, reviews outside PRs, and only decompiles by hand in the cases listed
under the ownership boundary above.
Only one orchestrator session may run at a time. If a second session resumes
the same thread (for example, the same session opened in two windows), close
one of them. Two orchestrators double-merge PRs and fight over the shared
build tree.
### Worker slots and the effort scale
Run four worker slots, each in its own worktree on a fresh branch from
`origin/main`. Every slot gets a disjoint set of three or four leaves (units),
closest-to-matching first. A slot starts at `medium` (or `low`) reasoning
effort and escalates only when a round produces no new exact function:
```
low/medium -> high -> xhigh -> max -> orchestrator attempt -> parked
```
A round that gains at least one exact function is landed, and the remaining
functions go out again at the same effort or one step up. A set that fails at
`max` goes to the orchestrator. If the orchestrator also fails, the function
is parked as a compiler tie-break with its evidence. Fill freed slots from the
live checklist right away; never leave a slot idle.
Before starting a function, a worker fetches `origin/main` and checks it is
not already matched. Outside contributors land work in parallel, and
duplicated matches waste a round.
### Silent mode for workers
Workers run unattended and must not talk. Every turn is tool calls only: no
plans, no progress notes, no summaries. Progress goes into an attempts log
file in `tools/decomp-assist/`. The only text message in a run is the final
report, at most 8-15 short lines:
- exact functions per unit, before and after;
- the final `GATE` line;
- commit hashes;
- a link to the attempts log.
Runs are audited for text messages, and any chatter is a contract
violation. Workers also must not push, open PRs, merge, rebase, touch other
worktrees, or spawn subagents.
Each worker prompt has this layout:
1. the `<task>` block (leaves, current exact counts, method, report format);
2. the shared `common.md` block with `<silent_mode>`, `<forbidden>`,
`<method>` and `<definition_of_done>`.
Resume a stalled worker on the same session with the failure evidence. Don't
replace it with a fresh one.
### Gate, landing and review
- `gate.py <unit...>` is the acceptance check for workers and for outside
PRs. It covers:
- a full 4.3U build and the DOL SHA1;
- per-unit objdiff and instruction-exact counts;
- regressions against a baseline report of `origin/main`;
- a net forbidden-pattern scan and a readability scan (auto-named
identifiers, raw `*(T*)(p + N)` offset casts).
- A function that disappears because it was renamed is not a regression,
unless the unit's exact count, code or data also drops.
- Landing a worker result builds a branch from `origin/main` with the
worker's diff, gates it, pushes it, then opens and squash-merges a PR on
the fork. After that it regenerates the checklist.
- Never run two full builds in the same build tree at once.
- Never land while the review queue is building. Both use the same
verification worktree.
Outside PRs are reviewed by a daemon. It re-runs the gate on any open PR
whose head commit changed since its last review. A PR is merged
automatically only when all of these hold:
- the PR rebases cleanly;
- the full build passes;
- the DOL hash matches;
- the gate passes, or its only failures are renamed-away functions;
- the diff adds no forbidden pattern and no `.s` file.
Everything else is reviewed by hand:
- **Conflicts:** comment asking for a rebase.
- **Forbidden patterns:** request changes with a concrete honest
alternative.
- **"Linking" by swapping in retail assembly or pinned labels:** close and
explain.
- **Proven split/ownership corrections** (relocation evidence, total data
unchanged): merge even if one unit's numbers move to its neighbour.
Policy additions learned in this loop:
- Linking a unit by building the retail `.s` instead of its C/C++ is
forbidden. "Linked" means the C/C++ itself compiles to the exact bytes.
- Definition-level `volatile` (on the field or object declaration) is allowed
when the target proves it, e.g. back-to-back reloads with no store in
between. Check that it changes no other function in the units that use it.
Use-site volatile casts and the `register` keyword stay forbidden.
### Handoff: where the loop lives
The loop's tools and state live outside the repository, in the author's
workers directory `/mnt/drive2/projects/wii-ipl-workers` (`$W` below). A new
orchestrator thread picks up from there.
Tools in `$W/_restore0928-tools/`:
| File | Purpose |
|------|---------|
| `gate.py <unit...> [--base origin/main] [--quick]` | the acceptance gate; `--quick` only skips the clean `rm -rf build/43U` |
| `land.sh <name> <worktree> merge-base <unit...> <title>` | gate a worker's diff on a fresh branch, push, open and squash-merge the PR |
| `luna.sh <worktree> <name> <prompt> <effort> [session]` | start (or resume) one Codex worker; run with `MODEL=gpt-6.1-sol CODEX_BIN=$W/_codex159/bin/codex` |
| `reviewd.sh` | review daemon: queues every open PR whose head changed |
| `revq.sh`, `automerge.py` | the daemon's gate runner and merge decision |
| `checklist.py` | regenerates `$W/CHECKLIST.md` from a report |
| `chatter.py <run-prefix>` | counts worker text messages for the silent-mode audit |
| `baseline-<sha8>.json` | objdiff reports of past `origin/main` commits, used for regressions |
State:
- `$W/_luna-runs/prompts/`: worker prompts. `common.md` is shared; each
task is `<name>.task.md`, and the launched prompt is `<name>.md` = task +
common.
- `$W/_luna-runs/<name>.<time>.jsonl` and `.last.md`: worker transcript and
final report.
- `$W/_luna-runs/effort-policy.txt`: the policy log. Records escalations,
parked functions, and every orchestrator attempt with what was tried.
- `$W/CHECKLIST.md`: units with non-exact code, worst first.
- Worktrees: `verify-fix` is the only verification and landing tree;
`sol-low`, `sol-med`, `sol-high` and `w0929-fix-board` are the four worker
slots; `orch` is orchestrator scratch.
- Logs: `/tmp/reviewd.log`, `/tmp/vfq.log` (current review batch) and
`/tmp/automerge.log` (merge decisions). These are lost on reboot, which
only means open PRs get reviewed again.
- `/tmp/wii-git.lock`: every `git fetch` or checkout in a shared worktree
runs under `flock` on this file, because worktrees share refs.
To pick up the loop:
1. Make sure no other orchestrator session is running.
2. Check `pgrep -af "reviewd.sh|luna.sh|land.sh"` and restart the review
daemon if it isn't running.
3. Read the newest `.last.md` for each slot. Land gains, then relaunch the
slot per the effort scale.
4. Handle every `NEEDS REVIEW` line in `/tmp/automerge.log`.
## Goal completion contract
The decompilation loop does not stop after a successful wave, a convenient

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.48% | 88.74% | 64.70% | 98.77% |
| 99.38% | 88.00% | 62.37% | 92.07% |
units 932/1027 complete, functions 12274/12563 matched.
units 920/1027 complete, functions 12226/12563 matched.
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
<!-- progress:end -->

View File

@@ -688,13 +688,13 @@ src/scene/memoryCard/iplMemoryCard.cpp:
.text start:0x813C9DCC end:0x813CC1FC
.rodata start:0x81610368 end:0x81610480
.data start:0x81651D30 end:0x81652640
.sdata2 start:0x81694A68 end:0x81694A78
.sdata2 start:0x81694A68 end:0x81694A80
.sdata start:0x81696C78 end:0x81696CA0
src/scene/memoryCard/iplMemoryCardBase.cpp:
.text start:0x813CC1FC end:0x813CD034
.data start:0x81652640 end:0x816526D0
.sdata2 start:0x81694A78 end:0x81694A88
.sdata2 start:0x81694A80 end:0x81694A88
src/scene/memoryCard/iplMemoryCardManager.cpp:
.text start:0x813CD034 end:0x813CE548
@@ -869,12 +869,11 @@ src/scene/setting/iplUSBAP.cpp:
.bss start:0x810BC148 end:0x810BD498
.text start:0x813FC520 end:0x813FC8FC
.data start:0x81657B08 end:0x81657B18
.sbss start:0x81698C08 end:0x81698C20
.sbss start:0x81698C08 end:0x81698C28
src/scene/setting/iplUSBAPThread.cpp:
.text start:0x813FC8FC end:0x813FCA0C
.data start:0x81657B18 end:0x81657B60
.sbss start:0x81698C20 end:0x81698C28
src/scene/setting/iplAOSSThread.cpp:
.bss start:0x810BD498 end:0x810BD4A8
@@ -3552,12 +3551,12 @@ libs/RVL_SDK/src/bte/l2c_csm.c:
libs/RVL_SDK/src/bte/l2c_link.c:
.text start:0x815AC630 end:0x815AD7BC
.data start:0x8168E930 end:0x8168EBA0
.data start:0x8168E930 end:0x8168EB68
libs/RVL_SDK/src/bte/l2c_main.c:
.bss start:0x811725E0 end:0x81172DC8
.text start:0x815AD7BC end:0x815AE7EC
.data start:0x8168EBA0 end:0x8168EEA0
.data start:0x8168EB68 end:0x8168EEA0
libs/RVL_SDK/src/bte/l2c_utils.c:
.text start:0x815AE7EC end:0x815B06B0

File diff suppressed because it is too large Load Diff

View File

@@ -689,7 +689,7 @@ config.libs = [
]
),
IPLSection("sound", [
Object(Matching, "sound/iplSound.cpp"),
Object(NonMatching, "sound/iplSound.cpp"),
]
),
IPLSection("iplwww", [
@@ -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", [
@@ -869,11 +869,11 @@ config.libs = [
),
IPLSection("setting", [
Object(NonMatching, "scene/setting/iplSetting.cpp"),
Object(Matching, "scene/setting/iplSensitivity.cpp"),
Object(NonMatching, "scene/setting/iplSensitivity.cpp"),
Object(Matching, "scene/setting/iplNCDSetting.cpp"),
Object(Matching, "scene/setting/iplParental.cpp"),
Object(Matching, "scene/setting/iplAPScanThread.cpp"),
Object(Matching, "scene/setting/iplUSBAP.cpp"),
Object(NonMatching, "scene/setting/iplUSBAP.cpp"),
Object(NonMatching, "scene/setting/iplUSBAPThread.cpp"),
Object(Matching, "scene/setting/iplAOSSThread.cpp"),
Object(NonMatching, "scene/setting/AOSSLink.c"),
@@ -928,13 +928,13 @@ 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"]),
Object(Matching, "keyboard/tiGUIManager.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiHKBManager.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiHwKeyboard.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiHKBManager.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiHwKeyboard.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiLayout.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiLayoutGather.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiKoreanInput.cpp", extra_cflags=["-O4,p"]), # for 4.3K
@@ -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"),
@@ -1697,11 +1697,11 @@ config.libs = [
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(NonMatching, "fa/pf_file.c"),
Object(NonMatching, "fa/pf_path.c"),
Object(Matching, "fa/pf_sector.c"),
Object(NonMatching, "fa/pf_volume.c"),
@@ -1869,7 +1869,7 @@ config.libs = [
),
RVLSDKLib("nup", [
Object(NonMatching, "nup/nup.cpp"),
Object(Matching, "nup/nup_nhttp.cpp"),
Object(NonMatching, "nup/nup_nhttp.cpp"),
Object(Matching, "nup/nup_mem.cpp"),
]
),
@@ -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,16 +37,8 @@ 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
#ifdef IPL_MEMORY_CARD_MANAGER_CPP
volatile s16 anmMax;
#else
u16 anmFrameBits; // 0x10
s16 anmMax; // 0x12
#endif
u32 bannerOffset; // 0x14
u32 bannerTlutOffset; // 0x18
u32 iconOffset[8]; // 0x1C

View File

@@ -92,11 +92,7 @@ namespace textinput {
virtual void setSaveData(savedata::MemoSetting memoSetting) {
mMemoSetting = memoSetting;
}
#ifdef IPL_KEYBOARD_MEMO_GET_SAVE_DATA
virtual savedata::MemoSetting getSaveData();
#else
virtual savedata::MemoSetting getSaveData() { return mMemoSetting; }
#endif
virtual void changeState(StateTimeLine stateTimeLine);
virtual State* getState() { return mpCurrentState; }

View File

@@ -20,8 +20,6 @@ namespace textinput {
public:
void NotifyEvent(u8 down, u8 code);
void Update();
bool HasCurrentKey(u32 slot) const { return (current & (1 << slot)) != 0; }
bool HadPreviousKey(u32 slot) const { return (previous & (1 << slot)) != 0; }
void UpdateModState_();
void Clear() {
held = 0;
@@ -109,23 +107,10 @@ namespace textinput {
HKBManager* manager;
};
HKBManager() __attribute__((never_inline));
~HKBManager();
static HKBManager& getInstance() { return sInstance; }
void Initialize();
void ClearState();
u32 FilterCharacter(u32 code) const {
if (allowedCharacters == 0) return code;
u32 count = allowedCharacterCount;
if (count == 0) return code;
for (u32 index = 0; index < count; index++) {
if (static_cast<u16>(code) == allowedCharacters[index]) return code;
}
return 0;
}
void DetachDevice(KBDDevEvent* event) {
u8 device = event->device;
attached[device] = 0;
states[device].Clear();
}
u32 GetModifierState() const;
void SetCountry(u8 country);
void SetModifierState(u32 state, u32 mask);
@@ -164,7 +149,6 @@ namespace textinput {
void Update();
u32 GetModifierState() const;
void SetCountry(u8 country);
void SetModifierState(u32, u32);
#if defined(TI_CELLPHONE_HKB_KEYSET)

View File

@@ -15,12 +15,12 @@ namespace textinput {
#endif
public:
HWKeyboard(Manager *);
#if defined(TIMANAGER_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
#ifdef TIMANAGER_IMPLEMENTATION
inline ~HWKeyboard();
#else
~HWKeyboard();
#endif
#if defined(TIMANAGER_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
#ifdef TIMANAGER_IMPLEMENTATION
void setLanguage(Destination destination, Language language);
#endif
@@ -29,7 +29,7 @@ namespace textinput {
wchar_t convertWCCode(wchar_t code) const;
#endif
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
void updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data);
#else
virtual void updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data);
@@ -46,10 +46,9 @@ namespace textinput {
bool updateTappingShift_(input::HKBManager&);
#endif
void updateShift(input::HKBManager& hkbManager);
bool controlKeyTriggeredHandler(input::HKBManager&);
void controlKeyTriggeredHandler(input::HKBManager);
Manager *mgr() { return mpManager; }
const Manager *mgr() const { return mpManager; }
Manager* mpManager; // 0x10
u8 field_0x14; // 0x14

View File

@@ -113,8 +113,6 @@ namespace textinput {
#ifdef TIMANAGER_IMPLEMENTATION
virtual void setTitleText(wchar_t* titleText);
void initAspect();
#elif defined(MYTIMANAGER_IMPLEMENTATION)
virtual void setTitleText(wchar_t* titleText);
#else
virtual void setTitleText(const wchar_t* titleText);
#endif

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

@@ -7,10 +7,6 @@
#include "utility/iplFrameController.h"
#ifdef IPL_GC_WINDOW_CPP
#include "math/iplMathTypes.h"
#endif
#ifdef IPL_GCW_INTP_CTOR_OUT_OF_LINE
#include "global/decomp/utils.h"
#endif
@@ -42,33 +38,6 @@ namespace ipl {
T mEnd;
};
#ifdef IPL_GC_WINDOW_CPP
template <>
class Interporation<VEC3> : public utility::FrameController {
public:
virtual ~Interporation();
void init(int playback, f32 maxFrame, f32 minFrame, const VEC3& start,
const VEC3& end, f32 speed = 1.0f) {
mStart = start;
mEnd = end;
utility::FrameController::init(playback, maxFrame, minFrame, speed);
}
const VEC3& getStart() { return mStart; }
const VEC3& getEnd() { return mEnd; }
void playBackwards() {
mAnmType = ANIM_TYPE_BACKWARD;
mState = ANIM_STATE_PLAY;
}
protected:
VEC3 mStart;
VEC3 mEnd;
};
#endif
template <typename T>
class LinearIntp : public Interporation<T> {
public:
@@ -92,16 +61,6 @@ namespace ipl {
T get2() const { return (((mStart * (mMaxFrame - mFrame)) + (mEnd * mFrame)) / mMaxFrame); }
};
#ifdef IPL_GC_WINDOW_CPP
template <>
class LinearIntp<VEC3> : public Interporation<VEC3> {
public:
LinearIntp();
virtual ~LinearIntp();
VEC3 get() const;
};
#endif
#ifdef IPL_CHANNEL_TITLE_NOVTABLE
template <typename T>

View File

@@ -162,14 +162,14 @@ namespace ipl {
class {
public:
void init() {
mAngleIdx = -1;
unk_0x0C = -1;
pos.x = 0.0f;
pos.y = 0.0f;
}
math::VEC2 pos; // pos
int mStep;
int mAngleIdx;
int unk_0x08;
int unk_0x0C;
} mStandData; // 0xE4
picture mPicture; // 0xF4

View File

@@ -309,8 +309,8 @@ namespace ipl {
return mbArrowVisible[i];
}
void setSuppressNewMailAnm(bool flag) {
mbSuppressNewMailAnm = flag;
void setUnk_0x105(bool flag) {
unk_0x105 = flag;
}
protected:
@@ -354,7 +354,7 @@ namespace ipl {
ANIM_MAX,
};
int mAnimWait;
int unk_0x54;
layout::Object* mpLayout; // 0x58
nand::LayoutFile* mpLayoutFile; // 0x5C
@@ -373,8 +373,8 @@ namespace ipl {
BOOL mbHovered[BTN_MAX]; // 0xD8
bool mbNewMailAnm;
bool mbSuppressNewMailAnm;
bool unk_0x104;
bool unk_0x105;
utility::timer mTimer; // 0x108
bool mbEnabled; // 0x110

View File

@@ -95,9 +95,9 @@ namespace ipl {
public:
nw4r::ut::List mDateList; // 0x84
nw4r::ut::List mDrawList;
nw4r::ut::List unk_0x90;
bool mbScrolling; // 0x9C
vBOOL mbSearchTaskRunning;
vBOOL unk_0xA0;
BOOL mbTaskCanceled; // 0xA4
vBOOL mbBackToBoardAlt; // 0xA8
bool mbAsian; // 0xAC

View File

@@ -68,8 +68,8 @@ namespace ipl {
vBOOL mbAppearMsg; // 0x0C
private:
u32 mFocusState;
int mPendingFocusCmd;
u32 unk_0x10;
int unk_0x14;
layout::Object* mpLayout; // 0x18
gui::PaneManager* mpGui; // 0x1C
layout::PaneAnimator* mpCurrentPaneAnim; // 0x20
@@ -77,7 +77,7 @@ namespace ipl {
public:
utility::Date* mpDate; // 0x38
u32 mPointCount;
u32 unk_0x3C;
static const char* mscAnimPanes[ANIM_PANE_MAX];

View File

@@ -44,7 +44,7 @@ namespace ipl {
int stopBGM(int unk = 0);
#endif
int stopBGM(nw4r::snd::SoundHandle* handle, int unk = 0);
void stopSE(nw4r::snd::SoundHandle* handle, int unk = 0);
int stopSE(nw4r::snd::SoundHandle* handle, int unk = 0);
void stopAllSound(int unk = 0);
int resetAllSound();
@@ -99,7 +99,7 @@ namespace ipl {
long clipGELT_S32(long value, long lo, long hi);
private:
u32 unk_0x620[3];
u32 unk_0x620[0x18];
};
// use getSystem() and getBannerPlayer() instead

View File

@@ -152,7 +152,7 @@ namespace ipl {
BOOL is_working();
#ifdef IPL_SD_CHANNEL_SELECT_CPP
void requestCancel() { mbCancel = true; }
void requestCancel() { unk_0x04 = true; }
#endif
WIISaveBannerFile* get_cached_nand_save_banner(ESTitleId titleId);
@@ -531,7 +531,7 @@ namespace ipl {
static void wad_backup_progress_callback(u32 completed, u32 total, BOOL done);
Work* myWork; // 0x00
bool mbCancel; // 0x04
bool unk_0x04; // 0x04
static const char* c_banner_file_name;
static const char* c_nocopy_folder_name;

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

@@ -215,9 +215,9 @@ struct __zi8_work_data_s {
ziU32 unk_0x0C;
ziU32 unk_0x10;
ziU16 unk_0x14;
ziU8 cangjieEnabled; // 0x16
ziU8 unk_0x16;
ziU8 unk_0x17;
ziU8 subLanguage; // 0x18
ziU8 unk_0x18;
ziU8 unk_0x19;
ziU16 unk_0x1A;
ziU8 unk_0x1C[3];
@@ -258,7 +258,7 @@ struct __zi8_work_data_s {
ziU8 unk_0x330[8];
ziU32 unk_0x338;
ziU8 unk_0x33C[0x1FC];
ziU8 language; // 0x538
ziU8 unk_0x538;
ziU8 unk_0x539;
ziU8 unk_0x53A[0x40];
ziWChar unk_0x57A[0x641];

View File

@@ -55,7 +55,7 @@ ziU32 Zi8GetTableData(ziU8 lang, ziU8 tableIdx, ziU8 memberId ZI_NEED_WORK) {
if (langIdx-- != 0) {
tableData = ZI_WORK->langEntries[langIdx].tableData;
if ((lang == ZI8_LANG_ZH) && (tableData[3] >= 4) &&
((ZI_WORK->subLanguage == 1) || (ZI_WORK->subLanguage == 0x80) || (ZI_WORK->subLanguage == 0x40))) {
((ZI_WORK->unk_0x18 == 1) || (ZI_WORK->unk_0x18 == 0x80) || (ZI_WORK->unk_0x18 == 0x40))) {
offset = ((tableData[0x8B] << 0x10) + (tableData[0x8C] << 8) + tableData[0x8D]);
if (offset != 0) {
tableData += offset;

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

@@ -430,7 +430,7 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
if (getMode != 7 && getMode != 10 && getMode != 8 && getMode != 9) {
Zi8PrepareMatch(request, &match, 0, work);
} else {
if (!((struct __zi8_work_data_s*)work)->cangjieEnabled || request->elementCount > 6) {
if (!((struct __zi8_work_data_s*)work)->unk_0x16 || request->elementCount > 6) {
resultFallback = 0;
goto engine_finish;
}
@@ -1151,7 +1151,7 @@ context_word_lookup:
if (ordinalIndex == 0xFFFF) goto context_results_done;
record = records + ordinalIndex * 12;
phoneticGroups = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
if (((struct __zi8_work_data_s*)work)->cangjieEnabled) {
if (((struct __zi8_work_data_s*)work)->unk_0x16) {
switch (phoneticGroups[0] & 7) {
case 2: phoneticGroups += 2; break;
case 3: case 4: phoneticGroups += 3; break;
@@ -1965,7 +1965,7 @@ component_retry:
((ZiChineseWork*)work)->duplicateOrdinals[((ZiChineseWork*)work)->duplicateIndex] = ordinalIndex;
relatedRecord = records + ordinalIndex * 12;
phoneticGroups = phraseTable + ((relatedRecord[9] & 15) << 16 | (relatedRecord[11] | relatedRecord[10] << 8));
if (((struct __zi8_work_data_s*)work)->cangjieEnabled) {
if (((struct __zi8_work_data_s*)work)->unk_0x16) {
switch (phoneticGroups[0] & 7) {
case 2: phoneticGroups += 2; break;
case 3: case 4: phoneticGroups += 3; break;

View File

@@ -164,7 +164,7 @@ static ziBool Zi8AlphaSignature(ziGetParam* parameters, ziBool countOnly ZI_NEED
if (parameters->maxCandidates < length) length = parameters->maxCandidates;
parameters->letters = length;
if ((parameters->getOptions & 0x80) == 0) {
ZI_WORK->language = parameters->language;
ZI_WORK->unk_0x538 = parameters->language;
parameters->candidates[0] = 0xfff0;
output = (ziWChar*)&ZI_WORK->unk_0x338;
}
@@ -490,8 +490,8 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
ZI_WORK->unk_0x00 = '\0';
}
}
ZI_WORK->subLanguage = parameters->subLanguage;
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1,ZI_WORK) & 2;
ZI_WORK->unk_0x18 = parameters->subLanguage;
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1,ZI_WORK) & 2;
options->maxCount = ZI_WORK->unk_0x10;
options->maxWordLength = ZI_WORK->unk_0x0A;
ZI_WORK->unk_0x0A = -1;
@@ -558,7 +558,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
}
else if ((parameters->language == 1) &&
((((parameters->getMode == 7 || (parameters->getMode == 8)) || (parameters->getMode == 10)) || (parameters->getMode == 9)))) {
if (ZI_WORK->cangjieEnabled != '\0') {
if (ZI_WORK->unk_0x16 != '\0') {
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
} else {
error = 0x708;
@@ -582,7 +582,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
}
}
else {
ZI_WORK->language = parameters->language;
ZI_WORK->unk_0x538 = parameters->language;
if ((parameters->getOptions & 0x80) == 0) {
saved.restoreCandidates = 1;
saved.savedOptions = parameters->getOptions;

View File

@@ -42,13 +42,13 @@ ziU8 Zi8InitializeDynamic(ziLanguageEntry* langEntries ZI_NEED_WORK) {
return 0;
}
ZI_WORK->unk_0x1874 = 0x2D;
ZI_WORK->language = 0;
ZI_WORK->unk_0x538 = 0;
ZI_WORK->unk_0x1C[3] = 0;
ZI_WORK->unk_0x141A = 0x100;
Zi8SetLatinSearchOrder(0, 0, ZI_WORK);
ZADP_Zi8SetPDremoveOpt(1, ZI_WORK);
ZI_WORK->unk_0x17 = 5;
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, ZI_WORK) & 2;
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1, ZI_WORK) & 2;
ZI_WORK->unk_0x1B28.bits.msb = 1;
ZI_WORK->unk_0x1B2C.bits.msb = 1;
zyFuzzy = ZI_WORK->unk_0x1B2C.word;

View File

@@ -24,17 +24,17 @@ ziU8 Zi8GetZHCharSet(ziPtr workData) {
return 0;
}
if (Zi8GetTableCount(1, 10, workData) != 0) {
bak = ((struct __zi8_work_data_s*)workData)->subLanguage;
((struct __zi8_work_data_s*)workData)->subLanguage = 1;
bak = ((struct __zi8_work_data_s*)workData)->unk_0x18;
((struct __zi8_work_data_s*)workData)->unk_0x18 = 1;
addr = Zi8GetTableAddress(1, 10, workData);
p = (ziU8*)addr;
v0 = (ziU16)((ziU16)p[0] | ((ziU16)p[1] << 8));
((struct __zi8_work_data_s*)workData)->subLanguage = 0;
((struct __zi8_work_data_s*)workData)->unk_0x18 = 0;
addr = Zi8GetTableAddress(1, 10, workData);
p = (ziU8*)addr;
v1 = (ziU16)((ziU16)p[2] | ((ziU16)p[3] << 8));
v2 = (ziU16)((ziU16)p[4] | ((ziU16)p[5] << 8));
((struct __zi8_work_data_s*)workData)->subLanguage = bak;
((struct __zi8_work_data_s*)workData)->unk_0x18 = bak;
if (v0 != 0) {
if (v0 > 0x4E20) {
charSet |= 8;

View File

@@ -139,7 +139,7 @@ ziU32 Zi8SecMatchChar(ziPtr nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
data = (ziU8*)Zi8GetTableAddress(1, 1, ZI_WORK);
data += ((ziU8*)nodeAddress)[0xB] + (((ziU8*)nodeAddress)[0xA] << 8) + ((((ziU8*)nodeAddress)[9] & 0xF) << 16);
if (ZI_WORK->cangjieEnabled != 0) {
if (ZI_WORK->unk_0x16 != 0) {
switch (data[0] & 7) {
case 2:
data += 2;
@@ -346,7 +346,7 @@ match_code:
traversal.soundIndex = initialCode;
}
sound = (ziU8*)(tableAddress + ((node[9] & 0xF) * 0x10000 + (node[0xB] + node[0xA] * 0x100)));
if (ZI_WORK->cangjieEnabled != 0) {
if (ZI_WORK->unk_0x16 != 0) {
switch (sound[0] & 7) {
case 2:
sound += 2;

View File

@@ -37,7 +37,7 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
p = (ziU8*)(table2 +
(((e[9] & 0xF) << 16) |
(e[0xB] | (e[0xA] << 8))));
if (WORKP->cangjieEnabled != 0) {
if (WORKP->unk_0x16 != 0) {
switch (p[0] & 7) {
case 2:
p += 2;
@@ -65,7 +65,7 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
}
}
e = (ziU8*)table;
if (WORKP->unk_0x1B18 != ZI8_NULL && WORKP->unk_0x1B24 == WORKP->subLanguage) {
if (WORKP->unk_0x1B18 != ZI8_NULL && WORKP->unk_0x1B24 == WORKP->unk_0x18) {
if ((ziU16)ch >= WORKP->unk_0x1B1C && (ziU16)ch <= WORKP->unk_0x1B1E) {
i = (ziU16)(ch - WORKP->unk_0x1B1C);
goto map;

View File

@@ -58,8 +58,8 @@ ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option ZI_NEED_WORK) {
}
ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
ziWChar folded;
ziU32 entrySize;
int wordSize, copied;
ziU32 entrySize, wordSize, copied;
ziU8* entry;
ziU8* word;
int index;
int fallback = 0;
@@ -70,18 +70,18 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
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 = 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;
}
@@ -90,82 +90,78 @@ 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;
if (*word < ZI_WORK->unk_0x17) goto next;
entrySize = wordSize - 1;
word++;
word = entry + 2;
wordSize = ZiGetZHWordSize((ziWChar*)word, entrySize);
} 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)) {
next:
ZI_WORK->unk_0x318++;
word += entrySize;
} else {
if (language == 1) {
for (index = 0; index < length; index++) {
if (word[index] != ((ziU8*)pattern)[index]) goto next;
}
goto matched;
}
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) {
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;
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 ZI_NEED_WORK) {

View File

@@ -42,41 +42,39 @@ ziU32 ZiDAWGGetChild(ziU32 node) {
return node;
}
ziU8* ZiDAWGGetSibling(ziU8* cursor) {
ziU8* ZiDAWGGetSibling(ziU8* node) {
ziU16 header;
ziU8* node;
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] * 0x100 +
(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 {
@@ -90,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;
}
}
@@ -117,10 +113,11 @@ ziU8* ZiDAWGGetSibling(ziU8* cursor) {
}
} while (0 < depth);
return node + offset;
node += offset;
}
}
return node;
}
ziU8 ZiDAWGgetEOWattribute(ziU32 node) {
@@ -161,52 +158,57 @@ ziU32 ZiDAWGGetGraphInfo(zi8DawgCtx* context, ziU8* entry, ziU16* keys) {
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 = (ziU32)(entry + (((ziU16)entry[0] << 8) + entry[1]) * 10 + 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,12 +20,13 @@ 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) {
int count;
int offset;
ziU8 group;
ziU8 remaining;
@@ -34,10 +35,9 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
ziSearchState search;
ziGetParam request;
ziWChar ordinals[65];
int count;
int length;
int unmatched;
ziChineseEntry* entry;
ziChineseEntry* table;
ziU8* data;
ziU8 formats[8] = {1, 5, 0, 0, 0, 0, 0, 0};
ziU32 savedFormats = ZI_WORK->unk_0x1410;
@@ -54,10 +54,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
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;
((ziU16*)&search.capacity)[0] = 64;
search.word = word;
@@ -67,7 +67,7 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
request.context = 1;
request.getOptions = 0x81;
request.elements = word;
request.elementCount = count;
request.elementCount = length;
request.currentWord = 0;
request.wordCharCount = 0;
request.candidates = ordinals;
@@ -92,23 +92,21 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
if (count != 0) return 1;
}
if (language == 1) {
count = 0;
length = 0;
do {
ordinals[count] = Zi8Uni2Ord(word[count], __zi8_work_data);
if (ordinals[count] == 0xFFFF) return 0;
count++;
if (count == 64) return 0;
} while (word[count] != 0);
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;
count--;
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];
data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data);
data += ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1]));
if (ZI_WORK->cangjieEnabled != 0) {
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
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->unk_0x16 != 0) {
switch (*data & 7) {
case 2:
offset = 2;

View File

@@ -19,21 +19,21 @@ typedef struct CXUncompContextRL {
u8* outData; // 0x00
int outDataLen; // 0x04
u32 size; // 0x08
u16 length; // 0x0C
u8 flags; // 0x0E
u8 hdrLen; // 0x0F
u16 unk_0x0C; // 0x0C
u8 unk_0x0e; // 0x0E
u8 unk_0x0f; // 0x0F
} CXUncompContextRL;
typedef struct CXUncompContextLZ {
u8* outData; // 0x00
int outDataLen; // 0x04
u32 size; // 0x08
int length; // 0x0C
u8 lengthBytesLeft; // 0x10
u8 flags; // 0x11
u8 flagsLeft; // 0x12
u8 hdrLen; // 0x13
u8 lzType; // 0x14
int unk_0x0C; // 0x0C
u8 unk_0x10; // 0x10
u8 unk_0x11; // 0x11
u8 unk_0x12; // 0x12
u8 unk_0x13; // 0x13
u8 unk_0x14; // 0x14
u8 padding[3];
} CXUncompContextLZ;
@@ -52,10 +52,10 @@ typedef struct CXUncompContextHuffman {
u32 size; // 0x08
CXHuffmanDecodeTableEntry* decodeTable; // 0x0C
u32 bits; // 0x10
u32 wordBuffer; // 0x14
u32 unk_0x14; // 0x14
s16 decodeTableSize; // 0x18
u8 bitsLeft; // 0x1A
u8 wordBits; // 0x1B
u8 unk_0x1b; // 0x1B
u8 depth; // 0x1C
u8 hdrLen; // 0x1D
u8 padding[2]; // 0x1E

View File

@@ -67,17 +67,14 @@ BOOL AXFXChorusExpSettings(AXFX_CHORUS_EXP* fx) {
OSRestoreInterrupts(enabled);
return result;
}
static void __FreeDelayLine(AXFX_CHORUS_EXP* fx) {
void AXFXChorusExpShutdown(AXFX_CHORUS_EXP* fx) {
BOOL enabled = OSDisableInterrupts();
u32 channel;
fx->active |= 1;
for (channel = 0; channel < 3; channel++) {
if (fx->delay.line[channel] != NULL) __AXFXFree(fx->delay.line[channel]);
fx->delay.line[channel] = NULL;
}
}
void AXFXChorusExpShutdown(AXFX_CHORUS_EXP* fx) {
BOOL enabled = OSDisableInterrupts();
fx->active |= 1;
__FreeDelayLine(fx);
OSRestoreInterrupts(enabled);
}
void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
@@ -121,11 +118,10 @@ void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
fx->history[0][history] = fx->delay.line[0][source];
fx->history[1][history] = fx->delay.line[1][source];
fx->history[2][history] = fx->delay.line[2][source];
history++;
history &= 3;
history = (history + 1) & 3;
source++;
whole--;
if (source >= fx->delay.size) source = 0;
whole--;
}
fx->delay.lastPos = position & 0xFFFF0000;
coefficients = __AXFXGetSrcCoef((fraction >> 9) & 0x7F);
@@ -133,18 +129,14 @@ void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
f32 filtered = 0.0f;
f32 dry;
filtered += coefficients[0] * fx->history[channel][history];
history++;
history &= 3;
history = (history + 1) & 3;
filtered += coefficients[1] * fx->history[channel][history];
history++;
history &= 3;
history = (history + 1) & 3;
filtered += coefficients[2] * fx->history[channel][history];
history++;
history &= 3;
history = (history + 1) & 3;
filtered += coefficients[3] * fx->history[channel][history];
history++;
history &= 3;
if (fx->busIn != NULL) dry = *output[channel] + *input[channel]++;
history = (history + 1) & 3;
if (fx->busIn != NULL) dry = *input[channel]++ + *output[channel];
else dry = *output[channel];
fx->delay.line[channel][fx->delay.inPos] = dry + filtered * fx->feedback;
*output[channel]++ = filtered * fx->outGain;
@@ -157,20 +149,8 @@ void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
if (fx->delay.outPos >= fx->delay.sizeFP) fx->delay.outPos = 0;
}
}
static inline void chorus_gradient(AXFX_CHORUS_EXP_LFO* lfo, f32 depth, f32 step) {
depth /= step;
lfo->gradFactor = 65536.0f * depth;
}
static BOOL __InitParams(AXFX_CHORUS_EXP* fx) {
f32 delay;
f32 depth;
f32 step;
u32 channel;
u32 sample;
s32 stepSamp;
s32 phaseAdd;
s32 depthSamp;
f32 delay, depth, step;
if (fx->delayTime < 0.1f || fx->delayTime > 50.0f) return FALSE;
if (fx->depth < 0.0f || fx->depth > 1.0f) return FALSE;
if (fx->rate < 0.1f || fx->rate > 2.0f) return FALSE;
@@ -180,60 +160,61 @@ static BOOL __InitParams(AXFX_CHORUS_EXP* fx) {
fx->lfo.table = __AXFXGetLfoSinTable();
delay = 32.0f * fx->delayTime;
depth = delay * fx->depth;
if (depth >= delay) {
if (delay <= depth) {
depth -= 1.0f;
if (depth < 0.0f) depth = 0.0f;
}
fx->lfo.depthSamp = 65536.0f * depth;
fx->lfo.phaseAdd = 65536.0f * (256.0f * fx->rate / 32000.0f);
step = (32000.0f / fx->rate) * (1.0f / 256.0f);
fx->lfo.stepSamp = 65536.0f * step;
fx->lfo.gradFactor = 65536.0f * (depth / step);
fx->lfo.lastNum = -1;
fx->lfo.phase = 0;
fx->lfo.sign = 0;
fx->lfo.lastValue = 0;
fx->lfo.grad = 0;
depthSamp = 65536.0f * depth;
phaseAdd = 65536.0f * (256.0f * fx->rate / 32000.0f);
step = (32000.0f / fx->rate) / 256.0f;
stepSamp = 65536.0f * step;
fx->lfo.depthSamp = depthSamp;
fx->lfo.phaseAdd = phaseAdd;
fx->lfo.stepSamp = stepSamp;
chorus_gradient(&fx->lfo, depth, step);
for (channel = 0; channel < 3; channel++) {
for (sample = 0; sample < 4; sample++) {
fx->history[channel][sample] = 0.0f;
}
}
fx->history[0][0] = 0.0f;
fx->history[0][1] = 0.0f;
fx->history[0][2] = 0.0f;
fx->history[0][3] = 0.0f;
fx->history[1][0] = 0.0f;
fx->history[1][1] = 0.0f;
fx->history[1][2] = 0.0f;
fx->history[1][3] = 0.0f;
fx->history[2][0] = 0.0f;
fx->history[2][1] = 0.0f;
fx->history[2][2] = 0.0f;
fx->history[2][3] = 0.0f;
fx->histIndex = 0;
return TRUE;
}
static void __CalcLFO(s32* output, AXFX_CHORUS_EXP_LFO* lfo) {
s32 start;
s64 value;
s32 difference;
s64 gradient;
u32 phase;
u32 sample;
for (sample = 0; sample < 96; sample++) {
phase = lfo->phase & 0xFFFF0000;
u32 remaining = 96;
do {
s32 value;
u32 phase = lfo->phase & 0xFFFF0000;
if (phase != lfo->lastNum) {
s32 start, difference;
s64 product;
lfo->lastNum = phase;
phase >>= 16;
start = lfo->table[phase];
difference = lfo->table[(phase + 1) & 0x7F] - start;
gradient = difference;
gradient *= lfo->gradFactor;
lfo->grad = gradient >> 24;
value = (s64)start * lfo->depthSamp;
value >>= 24;
} else {
value = lfo->lastValue + lfo->grad;
product = (s64)start * lfo->depthSamp;
value = ((u32)(product >> 32) << 8) | ((u32)product >> 24);
product = (s64)difference * lfo->gradFactor;
lfo->grad = ((u32)(product >> 32) << 8) | ((u32)product >> 24);
}
else value = lfo->lastValue + lfo->grad;
lfo->lastValue = value;
if (lfo->sign >= 1) value = -value;
if (lfo->sign != 0) value = -value;
lfo->phase += lfo->phaseAdd;
if (lfo->phase & 0xFF800000) {
lfo->phase &= 0x7FFFFF;
lfo->sign ^= 1;
}
*output++ = value;
}
remaining--;
} while (remaining != 0);
}

View File

@@ -7,21 +7,21 @@ static inline CXHuffmanDecodeTableEntry* GetNextNode(CXHuffmanDecodeTableEntry*,
void CXInitUncompContextRL(CXUncompContextRL* context, u8* data) {
context->outData = data;
context->outDataLen = 0;
context->flags = 0;
context->length = 0;
context->hdrLen = 8;
context->unk_0x0e = 0;
context->unk_0x0C = 0;
context->unk_0x0f = 8;
context->size = 0;
}
void CXInitUncompContextLZ(CXUncompContextLZ* context, u8* data) {
context->outData = data;
context->outDataLen = 0;
context->flags = 0;
context->flagsLeft = 0;
context->length = 0;
context->lengthBytesLeft = 3;
context->hdrLen = 8;
context->lzType = 0;
context->unk_0x11 = 0;
context->unk_0x12 = 0;
context->unk_0x0C = 0;
context->unk_0x10 = 3;
context->unk_0x13 = 8;
context->unk_0x14 = 0;
context->size = 0;
}
@@ -31,8 +31,8 @@ void CXInitUncompContextHuffman(CXUncompContextHuffman* context, u8* data) {
context->depth = 0;
context->decodeTableSize = -1;
context->decodeTable = context->decodeTableData;
context->wordBuffer = 0;
context->wordBits = 0;
context->unk_0x14 = 0;
context->unk_0x1b = 0;
context->bits = 0;
context->bitsLeft = 0;
context->hdrLen = 8;
@@ -42,9 +42,9 @@ void CXInitUncompContextHuffman(CXUncompContextHuffman* context, u8* data) {
CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u32 size) {
const u8* pSrc = src;
if (context->hdrLen) {
if (context->unk_0x0f) {
int a;
if (context->hdrLen == 8) {
if (context->unk_0x0f == 8) {
if ((*pSrc & CX_COMPRESSION_TYPE_MASK) != CX_COMPRESSION_TYPE_RUN_LENGTH) {
return CX_STREAMING_ERR_BAD_FILE_TYPE;
}
@@ -54,22 +54,22 @@ CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u3
}
}
a = CXiReadHeader(&context->hdrLen, &context->outDataLen, pSrc, size, context->size);
a = CXiReadHeader(&context->unk_0x0f, &context->outDataLen, pSrc, size, context->size);
pSrc += a;
size -= a;
if (!size) {
return !context->hdrLen ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
return !context->unk_0x0f ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
}
}
while (context->outDataLen > 0) {
if (!(context->flags & 0x80)) {
while (context->length) {
if (!(context->unk_0x0e & 0x80)) {
while (context->unk_0x0C) {
*context->outData++ = *pSrc++;
context->length--;
context->unk_0x0C--;
context->outDataLen--;
size--;
@@ -77,14 +77,14 @@ CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u3
return context->outDataLen;
}
}
} else if (context->length) {
} else if (context->unk_0x0C) {
u8 b = *pSrc++;
size--;
while (context->length) {
while (context->unk_0x0C) {
*context->outData++ = b;
context->length--;
context->unk_0x0C--;
context->outDataLen--;
}
@@ -93,22 +93,22 @@ CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u3
}
}
context->flags = *pSrc++;
context->unk_0x0e = *pSrc++;
size--;
context->length = context->flags & 0x7f;
context->unk_0x0C = context->unk_0x0e & 0x7f;
if (context->flags & 0x80) {
context->length += 3;
if (context->unk_0x0e & 0x80) {
context->unk_0x0C += 3;
} else {
context->length += 1;
context->unk_0x0C += 1;
}
if (context->length > context->outDataLen) {
if (context->unk_0x0C > context->outDataLen) {
if (!context->size) {
return CX_STREAMING_ERR_BAD_FILE_SIZE;
}
context->length = context->outDataLen;
context->unk_0x0C = context->outDataLen;
}
if (size) {
@@ -160,39 +160,39 @@ static int CXiReadHeader(u8* pHdrLen, int* pOutLen, const u8* pSrc, int srcSize,
CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u32 size) {
const u8* pSrc = src;
if (context->hdrLen) {
if (context->unk_0x13) {
int a;
if (context->hdrLen == 8) {
if (context->unk_0x13 == 8) {
if ((*pSrc & CX_COMPRESSION_TYPE_MASK) != CX_COMPRESSION_TYPE_LZ) {
return CX_STREAMING_ERR_BAD_FILE_TYPE;
}
context->lzType = *pSrc & 0x0F;
context->unk_0x14 = *pSrc & 0x0F;
if (context->lzType != 0 && context->lzType != 1) {
if (context->unk_0x14 != 0 && context->unk_0x14 != 1) {
return CX_STREAMING_ERR_BAD_FILE_TYPE;
}
}
a = CXiReadHeader(&context->hdrLen, &context->outDataLen, pSrc, size, context->size);
a = CXiReadHeader(&context->unk_0x13, &context->outDataLen, pSrc, size, context->size);
pSrc += a;
size -= a;
if (!size) {
return !context->hdrLen ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
return !context->unk_0x13 ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
}
}
while (context->outDataLen > 0) {
while (context->flagsLeft) {
while (context->unk_0x12) {
s32 a;
if (!size) {
return context->outDataLen;
}
if (!(context->flags & 0x80)) {
if (!(context->unk_0x11 & 0x80)) {
*context->outData++ = *pSrc++;
context->outDataLen--;
@@ -201,38 +201,38 @@ CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u3
goto there;
}
while (context->lengthBytesLeft) {
context->lengthBytesLeft--;
while (context->unk_0x10) {
context->unk_0x10--;
if (!context->lzType) {
context->length = *pSrc++;
context->length += 0x30;
context->lengthBytesLeft = 0;
if (!context->unk_0x14) {
context->unk_0x0C = *pSrc++;
context->unk_0x0C += 0x30;
context->unk_0x10 = 0;
} else {
switch (context->lengthBytesLeft) {
switch (context->unk_0x10) {
case 2: {
context->length = *pSrc++;
context->unk_0x0C = *pSrc++;
if (context->length >> 4 == 1) {
context->length = (context->length & 0x0F) << 16;
context->length += 0x1110;
} else if (context->length >> 4 == 0) {
context->length = (context->length & 0x0F) << 8;
context->length += 0x110;
context->lengthBytesLeft = 1;
if (context->unk_0x0C >> 4 == 1) {
context->unk_0x0C = (context->unk_0x0C & 0x0F) << 16;
context->unk_0x0C += 0x1110;
} else if (context->unk_0x0C >> 4 == 0) {
context->unk_0x0C = (context->unk_0x0C & 0x0F) << 8;
context->unk_0x0C += 0x110;
context->unk_0x10 = 1;
} else {
context->length += 0x10;
context->lengthBytesLeft = 0;
context->unk_0x0C += 0x10;
context->unk_0x10 = 0;
}
break;
}
case 1: {
context->length += *pSrc++ << 8;
context->unk_0x0C += *pSrc++ << 8;
break;
}
case 0: {
context->length += *pSrc++;
context->unk_0x0C += *pSrc++;
break;
}
}
@@ -244,26 +244,26 @@ CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u3
}
}
a = (context->length & 0x0F) << 8;
context->length >>= 4;
a = (context->unk_0x0C & 0x0F) << 8;
context->unk_0x0C >>= 4;
a = (a | *pSrc++) + 1;
size--;
context->lengthBytesLeft = 3;
context->unk_0x10 = 3;
if (context->length > context->outDataLen) {
if (context->unk_0x0C > context->outDataLen) {
if (!context->size) {
return CX_STREAMING_ERR_BAD_FILE_SIZE;
}
context->length = context->outDataLen;
context->unk_0x0C = context->outDataLen;
}
while (context->length > 0) {
while (context->unk_0x0C > 0) {
*context->outData = context->outData[-a];
context->outData++;
context->outDataLen--;
context->length--;
context->unk_0x0C--;
}
there:
@@ -271,16 +271,16 @@ CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u3
goto out;
}
context->flags <<= 1;
context->flagsLeft--;
context->unk_0x11 <<= 1;
context->unk_0x12--;
}
if (!size) {
return context->outDataLen;
}
context->flags = *pSrc++;
context->flagsLeft = 8;
context->unk_0x11 = *pSrc++;
context->unk_0x12 = 8;
size--;
}
@@ -369,16 +369,16 @@ CXStreamingResult CXReadUncompHuffman(CXUncompContextHuffman* context, const voi
continue;
}
context->wordBuffer >>= context->depth;
context->wordBuffer |= context->decodeTable->raw << (32 - context->depth);
context->unk_0x14 >>= context->depth;
context->unk_0x14 |= context->decodeTable->raw << (32 - context->depth);
context->decodeTable = context->decodeTableData + 1;
context->wordBits += context->depth;
context->unk_0x1b += context->depth;
if (context->wordBits == 32) {
*context->outData = CXiConvertEndian32_(context->wordBuffer);
if (context->unk_0x1b == 32) {
*context->outData = CXiConvertEndian32_(context->unk_0x14);
context->outData++;
context->outDataLen -= 4;
context->wordBits = 0;
context->unk_0x1b = 0;
if (context->outDataLen <= 0) {
goto out;

View File

@@ -11,7 +11,7 @@ typedef struct PFD_SDDRV_INFO {
u32 media_inserted;
u32 media_ejected;
s8 drive;
} ATTRIBUTE_ALIGN(8) PFD_SDDRV_INFO;
} PFD_SDDRV_INFO;
typedef union PFD_SDDEV_STORAGE {
SDDev device;

View File

@@ -87,9 +87,8 @@ s32 uhf_msc_blk_mount(FADisk* disk) {
}
s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* completed) {
UHF_MSC_DEVICE* device;
u16 transfer_blocks;
s32 error;
UHF_MSC_DEVICE* device;
u32 block_size;
u8* transfer_buffer;
u32 transfer_limit;
@@ -103,17 +102,7 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com
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;
}
@@ -138,7 +127,7 @@ s32 uhf_msc_blk_pread(FADisk* disk, u8* buffer, u32 sector, u32 blocks, u32* com
transfer_buffer = buffer;
}
do {
transfer_blocks = transfer_limit;
u16 transfer_blocks = transfer_limit;
if (blocks <= transfer_limit) {
transfer_blocks = blocks;
}
@@ -197,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

@@ -141,7 +141,7 @@ pf_s32 pdm_part_get_start_sector(PDM_PARTITION* p_part) {
}
return 0;
}
static inline pf_u32 partition_physical_sector(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) {
pf_u32 pdm_part_chg_ltop(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) {
pf_u16 media_bps;
pf_u32 ratio;
pf_u32 start;
@@ -158,9 +158,6 @@ static inline pf_u32 partition_physical_sector(PDM_PARTITION* p_part, pf_u32 sec
else if (ratio == 8) { start >>= 3; }
return sector + start;
}
pf_u32 pdm_part_chg_ltop(PDM_PARTITION* p_part, pf_u32 sector, pf_u32 bps) NO_INLINE {
return partition_physical_sector(p_part, sector, bps);
}
pf_s32 pdm_part_get_partition(PDM_DISK* p_disk, pf_u32 id, PDM_PARTITION** pp_part) {
pf_s32 err;
pf_u16 index;

View File

@@ -322,8 +322,6 @@ pf_s32 PFCLUSTER_CombineFiles(PFCLUSTER_ENT_ITER* p_first_iter, PFCLUSTER_ENT_IT
pf_u32 first_spare_clusters;
pf_u32 second_spare_clusters;
pf_u32 excess_clusters;
pf_s32 second_allocated_clusters;
pf_u32 capacity_clusters;
pf_u32 first_end_cluster;
pf_u32 first_spare_cluster;
pf_u32 second_spare_cluster;
@@ -372,10 +370,8 @@ pf_s32 PFCLUSTER_CombineFiles(PFCLUSTER_ENT_ITER* p_first_iter, PFCLUSTER_ENT_IT
if (*p_second_iter->ffd.p_start_cluster != 0) {
second_spare_clusters = p_second_iter->ffd.last_cluster.max_chain_index + 1 - second_used_clusters;
}
second_allocated_clusters = second_used_clusters + second_spare_clusters;
capacity_clusters = -1U / cluster_size + 1;
if (capacity_clusters < first_used_clusters + second_allocated_clusters) {
excess_clusters = first_used_clusters + second_allocated_clusters - capacity_clusters;
if (-1U / cluster_size + 1 < (second_used_clusters + second_spare_clusters) + first_used_clusters) {
excess_clusters = (second_used_clusters + second_spare_clusters) + first_used_clusters - (-1U / cluster_size + 1);
err = PFFAT_TraceClustersChain(&p_second_iter->ffd, second_spare_cluster,
cluster_size * ((p_second_iter->ffd.last_cluster.max_chain_index + 1 - excess_clusters) - second_used_clusters),
&end_cluster, &spare_cluster);
@@ -538,7 +534,7 @@ pf_s32 PFCLUSTER_DivideFile(PFCLUSTER_ENT_ITER* p_source_iter, PFCLUSTER_ENT_ITE
pf_s32 PFCLUSTER_InsertCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
pf_u32 cluster_index, pf_u32 num_clusters, pf_u32* p_inserted_clusters) {
pf_u32 requested_size;
pf_s32 err;
pf_u32 previous_cluster;
pf_u32 next_cluster;
pf_u32 success_size;
@@ -548,7 +544,7 @@ pf_s32 PFCLUSTER_InsertCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
pf_u32 allocated_size;
pf_u32 first_cluster;
pf_u32 last_cluster;
pf_s32 err;
pf_u32 requested_size;
pf_u32 file_clusters;
pf_u32 remainder;
pf_u32 extra_size;

View File

@@ -784,21 +784,6 @@ s32 PFFAT_WriteClusterWithBuf(PFFAT_FFD* file, u32 cluster, u32 chainIndex,
return 0;
}
static s32 PFFAT_WriteFATCopies(PF_VOLUME* volume, PF_CACHE_PAGE* page) {
u16 fatIndex;
u32 sector;
s32 firstError;
sector = page->sector;
firstError = 0;
for (fatIndex = 0; fatIndex < volume->bpb.num_active_FATs; fatIndex++) {
s32 error = PFSEC_WriteFAT(volume, page->p_buf, sector, 0, volume->bpb.bytes_per_sector);
if (error != 0 && firstError == 0) firstError = error;
sector += volume->bpb.sectors_per_FAT;
}
return firstError;
}
s32 PFFAT_DoAllocateChain(PFFAT_FFD* file, u32 chainLength, u32 chainIndex,
u32* firstAllocatedCluster,
u32* lastAllocatedCluster, s32 resetClusters)
@@ -808,10 +793,13 @@ s32 PFFAT_DoAllocateChain(PFFAT_FFD* file, u32 chainLength, u32 chainIndex,
u32 firstFreeCluster;
u32 lastFreeCluster;
u32 cluster;
u32 currentSector;
PF_CACHE_PAGE* flushPage;
u32 firstFlushError;
s32 alreadyAllocated;
s32 error;
PF_CACHE_PAGE* page;
u16 completedFATs;
volume = file->p_vol;
eoc2 = fat_special_values[volume->bpb.fat_type].eoc2;
@@ -885,7 +873,18 @@ s32 PFFAT_DoAllocateChain(PFFAT_FFD* file, u32 chainLength, u32 chainIndex,
file->last_cluster.max_chain_index = chainIndex;
*lastAllocatedCluster = lastFreeCluster;
firstFlushError = PFFAT_WriteFATCopies(volume, page);
firstFlushError = 0;
currentSector = page->sector;
flushPage = page;
for (completedFATs = 0; completedFATs < volume->bpb.num_active_FATs;
completedFATs++) {
error = PFSEC_WriteFAT(volume, flushPage->p_buf, currentSector, 0,
volume->bpb.bytes_per_sector);
if (error != 0 && firstFlushError == 0) {
firstFlushError = error;
}
currentSector += volume->bpb.sectors_per_FAT;
}
if (firstFlushError != 0) {
PFCACHE_FreeDataPage(volume, page);
return firstFlushError;
@@ -1232,6 +1231,8 @@ s32 PFFAT_GetSector(PFFAT_FFD* file, u32 fileSectorIndex, u32 mode,
u32 fatType;
u32 chainIndex;
u32 cluster;
u32 numRemainder;
u32 numDivide;
u32 numClusters;
u32 numSectors;
s32 error;
@@ -1247,10 +1248,12 @@ s32 PFFAT_GetSector(PFFAT_FFD* file, u32 fileSectorIndex, u32 mode,
}
chainIndex = fileSectorIndex >> volume->bpb.log2_sectors_per_cluster;
if (mode == 2) {
numClusters = size / volume->bpb.bytes_per_sector;
numSectors = numClusters + (size % volume->bpb.bytes_per_sector != 0);
numClusters = numSectors / volume->bpb.sectors_per_cluster;
numClusters = numClusters + (numSectors % volume->bpb.sectors_per_cluster != 0);
numSectors = (size / volume->bpb.bytes_per_sector) +
((size % volume->bpb.bytes_per_sector) != 0);
numDivide = numSectors / volume->bpb.sectors_per_cluster;
numRemainder =
(numSectors % volume->bpb.sectors_per_cluster) != 0;
numClusters = numRemainder + numDivide;
error = PFFAT_GetClusterAllocated(file, chainIndex, numClusters,
&cluster);
if (error != 0) {
@@ -1872,12 +1875,11 @@ s32 PFFAT_RefreshFSINFO(PF_VOLUME* volume)
error = 17;
}
if (error == 0) {
PFFAT_FSINFO* info;
u8* freeClusterBytes;
info = (PFFAT_FSINFO*)page->p_buf;
freeClusterBytes = info->num_free_clusters.bytes;
if (((u32)freeClusterBytes & 3) != 0) {
freeClusterBytes[0] = (u8)volume->num_free_clusters;
if (((u32)&((PFFAT_FSINFO*)page->p_buf)
->num_free_clusters.word &
3) != 0) {
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.bytes[0] =
(u8)volume->num_free_clusters;
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.bytes[1] =
(u8)(volume->num_free_clusters >> 8);
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.bytes[2] =
@@ -1886,9 +1888,11 @@ s32 PFFAT_RefreshFSINFO(PF_VOLUME* volume)
(u8)(volume->num_free_clusters >> 24);
} else {
u32 freeClusters = volume->num_free_clusters;
u32 upperBytes = (freeClusters << 24) | ((freeClusters << 8) & 0x00FF0000);
u32 lowerBytes = (freeClusters >> 24) | ((freeClusters >> 8) & 0xFF00);
info->num_free_clusters.word = upperBytes | lowerBytes;
((PFFAT_FSINFO*)page->p_buf)->num_free_clusters.word =
(freeClusters << 24) |
((freeClusters & 0xFF00) << 8) |
((freeClusters >> 8) & 0xFF00) | (freeClusters >> 24);
}
error = PFSEC_WriteData(
volume, page->p_buf, volume->bpb.fs_info_sector, 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

@@ -360,16 +360,17 @@ pf_bool PFPATH_MatchFileNameWithPattern(const pf_s8* file_name, PF_STR* p_patter
pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* matched_end) {
pf_u32 read_char;
pf_s32 recursive_error;
pf_s32 name_width;
pf_u16 name_char;
pf_u16 pattern_char;
pf_u16 converted_pattern;
pf_u16 converted_name;
pf_u16 name_char;
pf_s32 name_width;
pf_s32 pattern_width;
PF_PATH_VOLUME_SET* volume = &pf_vol_set;
while (*pattern != 0) {
pattern_width = pf_vol_set.codeset.oem_char_width(pattern);
name_width = pf_vol_set.codeset.oem_char_width(name);
pattern_width = volume->codeset.oem_char_width(pattern);
name_width = volume->codeset.oem_char_width(name);
if (pattern_width == 1) {
read_char = pf_toupper(*pattern);
} else {
@@ -398,18 +399,18 @@ pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* match
}
case '*': {
do {
pattern_width = pf_vol_set.codeset.oem_char_width(pattern);
if (pattern_width == 1) {
read_char = pf_toupper(*pattern);
} else {
pattern_width = volume->codeset.oem_char_width(pattern);
if (pattern_width != 1) {
read_char = (pf_u16)PF_GET_LE_U16((const pf_u8*)pattern);
} else {
read_char = pf_toupper(*pattern);
}
pattern_char = (pf_u16)read_char;
pattern += pattern_width;
if (pattern_char == '?') {
if (name_char == 0) { return 1; }
name += name_width;
name_width = pf_vol_set.codeset.oem_char_width(name);
name_width = volume->codeset.oem_char_width(name);
if (name_width == 1) { read_char = pf_toupper(*name); }
else { read_char = (pf_u16)PF_GET_LE_U16((const pf_u8*)name); }
name_char = (pf_u16)read_char;
@@ -427,7 +428,7 @@ pf_s32 PFPATH_cmpNameImpl(const pf_s8* name, const pf_s8* pattern, pf_u32* match
}
if (*matched_end != 0) { return recursive_error; }
}
name_width = pf_vol_set.codeset.oem_char_width(name);
name_width = volume->codeset.oem_char_width(name);
if (name_width == 1) {
read_char = pf_toupper(*name);
} else {

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

@@ -50,16 +50,12 @@ int NHTTPGetHeaderAll(void*, char**);
void NHTTPCancelRequestAsync(int);
void NHTTPDestroyResponse(void*);
static inline unsigned long NhttpBufferSize(unsigned long requested) {
if (requested != 0 && requested < 0x8000) return requested;
return 0x8000;
}
static u8* __nupNhttpBufFull(u8** buffer, unsigned long* length, unsigned long requested, void*, void*, HttpState* state) {
u8* next = NULL;
if (state->progress != NULL && *length != 0) {
state->progress(state->progressContext, *length);
}
if ((u32)(state->received + *length) < (u32)state->received) {
if ((state->received + *length) < state->received) {
if (state->error == 0) state->error = -5012;
}
state->received += *length;
@@ -73,26 +69,22 @@ static u8* __nupNhttpBufFull(u8** buffer, unsigned long* length, unsigned long r
if (state->error != 0) goto done;
}
next = *buffer;
switch ((u32)next) {
case 0: {
requested = NhttpBufferSize(requested);
if (next == NULL) {
if (requested != 0 && requested < 0x8000) {} else requested = 0x8000;
next = (u8*)nup::__nupMalloc(requested);
if (next == NULL) {
state->error = -5000;
goto done;
}
*length = requested;
break;
}
default: break;
}
if (*length != 0) state->lastActivity = OSGetTime();
}
}
done:
if (state->error != 0) {
*length = 0;
next = NULL;
*length = 0;
}
return next;
}
@@ -109,17 +101,12 @@ static void __nupNhttpReqDone(int result, void* response, HttpState* state) {
}
static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* progressContext, FlushCallback flush, void* flushContext) {
int result = 0;
char* headerCopy = NULL;
void* request;
int requestId;
int status;
u8* responseBody = NULL;
char* responseHeaders = NULL;
unsigned long transferred, expected;
int length;
unsigned long expected;
unsigned long transferred;
char* responseHeaders = NULL;
u8* responseBody = NULL;
HttpState state;
int status;
state.error = 0;
state.limit = limit;
state.received = 0;
@@ -131,7 +118,10 @@ static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* bod
state.done = 0;
state.result = 0;
state.lastActivity = 0;
request = NHTTPCreateRequestEx(url, method, NULL, 0, __nupNhttpReqDone, &state, __nupNhttpBufFull, __nupNhttpBufFree);
int result = 0;
int requestId = 0;
char* headerCopy = NULL;
void* request = NHTTPCreateRequestEx(url, method, NULL, 0, __nupNhttpReqDone, &state, __nupNhttpBufFull, __nupNhttpBufFree);
if (request == NULL) { result = -7000 - NHTTPGetError(); goto cleanup; }
if (NHTTPSetSocketBufferSize(request, 0x8000) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
if (headers != NULL) {
@@ -140,15 +130,16 @@ static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* bod
if (headerCopy == NULL) { result = -5000; goto cleanup; }
memcpy(headerCopy, headers, size);
char* field = headerCopy;
char* colon;
char* end;
while (*field != 0 && (colon = strchr(field, ':')) != NULL && (end = strstr(colon, "\r\n")) != NULL) {
while (*field != 0) {
char* colon = strchr(field, ':');
if (colon == NULL) break;
char* end = strstr(colon, "\r\n");
if (end == NULL) break;
*colon = 0;
*end = 0;
while (*field && isspace(*field)) field++;
char* value = colon + 1;
while (*value && isspace(*value)) ++value;
if (NHTTPAddHeaderField(request, field, value) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
do { colon++; } while (*colon && isspace(*colon));
if (NHTTPAddHeaderField(request, field, colon) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
field = end + 2;
}
}
@@ -162,39 +153,40 @@ static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* bod
if (method == NHTTP_POST && body != NULL && bodyLength != 0 && NHTTPAddPostDataRaw(request, body, bodyLength) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
requestId = NHTTPSendRequestAsync(request);
if (requestId < 0) {
result = -7000 - NHTTPGetError();
int error = NHTTPGetError();
NHTTPDeleteRequest(request);
result = -7000 - error;
goto cleanup;
}
state.lastActivity = OSGetTime();
while (NHTTPGetProgress(&expected, &transferred) == 0 || state.done == 0) {
if (OSGetTime() - state.lastActivity >= OSMillisecondsToTicks((OSTime)90000)) {
if (requestId >= 0) {
NHTTPCancelRequestAsync(requestId);
NCDSleep(OSMillisecondsToTicks(100));
for (;;) {
if (NHTTPGetProgress(&expected, &transferred) != 0 && state.done != 0) {
if (state.result != 0) { result = -7000 - state.result; goto cleanup; }
if (state.response != NULL) {
length = NHTTPGetBodyAll(state.response, &responseBody);
if (length < 0) { result = -5007; goto cleanup; }
__nupNhttpBufFull(&responseBody, (unsigned long*)&length, 0, NULL, NULL, &state);
}
result = -5009;
result = state.error;
if (result != 0 || state.response == NULL) goto cleanup;
length = NHTTPGetHeaderAll(state.response, &responseHeaders);
if (length < 0) { result = -5007; goto cleanup; }
char* protocol = strstr(responseHeaders, "HTTP/");
if (protocol != NULL && sscanf(protocol, "HTTP/%*d.%*d %d", &status) == 1) {
if (status != 200 && status != 202) result = -5000 - status;
goto cleanup;
}
result = -5007;
goto cleanup;
}
if (OSGetTime() - state.lastActivity >= OSMillisecondsToTicks(90000)) break;
NCDSleep(OSMillisecondsToTicks(100));
}
if (state.result != 0) { result = -7000 - state.result; goto cleanup; }
if (state.response != NULL) {
length = NHTTPGetBodyAll(state.response, &responseBody);
if (length < 0) { result = -5007; goto cleanup; }
__nupNhttpBufFull(&responseBody, (unsigned long*)&length, 0, NULL, NULL, &state);
if (requestId >= 0) {
NHTTPCancelRequestAsync(requestId);
NCDSleep(OSMillisecondsToTicks(100));
}
if (state.error != 0) { result = state.error; goto cleanup; }
if (state.response == NULL) goto cleanup;
length = NHTTPGetHeaderAll(state.response, &responseHeaders);
if (length < 0) { result = -5007; goto cleanup; }
char* protocol = strstr(responseHeaders, "HTTP/");
if (protocol == NULL || sscanf(protocol, "HTTP/%*d.%*d %d", &status) != 1) {
result = -5007;
goto cleanup;
}
if (status != 200 && status != 202) result = -5000 - status;
goto cleanup;
result = -5009;
cleanup:
if (state.response != NULL || result == -5009) NHTTPDestroyResponse(state.response);
if (headerCopy != NULL) nup::__nupFree(headerCopy);
@@ -202,21 +194,18 @@ cleanup:
}
extern "C" {
static inline unsigned long HttpStringGrowthSize(HttpString* text, unsigned long total, unsigned long requested) {
if (requested >= total) return requested;
requested = text->growth + total;
text->growth <<= 1;
if (text->growth >= text->maximumGrowth) text->growth = text->maximumGrowth;
return requested;
}
static inline long AppendHttpString(unsigned long length, u8* data, unsigned long requested, HttpString* text) {
u8* next;
static long __nupHttpStringFlush(u8* data, unsigned long length, unsigned long requested, void* context) {
HttpString* text = (HttpString*)context;
unsigned long total;
total = text->length + length;
total = length + text->length;
long result = 0;
if (total > text->capacity) {
requested = HttpStringGrowthSize(text, total, requested);
next = (u8*)nup::__nupMalloc(requested);
if (requested >= total) {} else {
requested = text->growth + total;
text->growth <<= 1;
if (text->growth < text->maximumGrowth) {} else text->growth = text->maximumGrowth;
}
u8* next = (u8*)nup::__nupMalloc(requested);
if (next == NULL) { result = -5000; goto done; }
if (text->buffer != NULL) {
memcpy(next, text->buffer, text->length);
@@ -229,9 +218,6 @@ static inline long AppendHttpString(unsigned long length, u8* data, unsigned lon
done:
return result;
}
static long __nupHttpStringFlush(u8* data, unsigned long length, unsigned long requested, void* context) {
return AppendHttpString(length, data, requested, (HttpString*)context);
}
}
static int __nupNhttpOpString(u8** output, unsigned long* outputLength, char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* context) NO_INLINE;
static int __nupNhttpOpString(u8** output, unsigned long* outputLength, char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* context) {

View File

@@ -97,7 +97,7 @@ typedef struct NHTTPResponseInfo
s32 isSuccess;
s32 isHeaderParse;
s32 httpStatus;
volatile u32 recvBufLen;
u32 recvBufLen;
char* allHeader_p;
char* foundHeader_p;
char* recvBuf_p;

View File

@@ -87,10 +87,6 @@ typedef struct WD_Info_ {
u8 unk_0x60[0x30]; // 0x60 (is it padding???)
} PACKED WD_Info;
#ifdef __cplusplus
extern "C" {
#endif
s32 WDCheckEnableChannel(u16* enableChannel);
s32 WDScanOnce(u8* scanBuffer, u32 scanBufferLen, WDScanParam* param);
s32 WDGetPrivacyMode(WDBssDesc* bssDesc);
@@ -98,8 +94,4 @@ s32 WDGetPrivacyMode(WDBssDesc* bssDesc);
BOOL WDFindInformationElement(WDInfoElement** outIE, u32* outIELength, WDBssDesc* bssDesc, int id);
BOOL WDiFindVendorSpecificIE(WDVendorInfoElement** outIE, u32* outIELength, WDBssDesc* bssDesc, int id, u8* data, u8 mode);
#ifdef __cplusplus
}
#endif
#endif // REVOLUTION_WD_H

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();
@@ -468,7 +455,7 @@ CDBErr CDBRecordGetId(CDBRecord* record, CDBId* id) {
} else {
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get maker code of the record ; the record is closed\n");
CDBReportError("can't get CDBId of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBLock();
@@ -736,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;
@@ -939,7 +933,7 @@ CDBErr CDBRecordDecrypt(CDBRecord* record, void* buffer, u32 size, u32* dataSize
if (CDBRecordKeyCompareByDate(&comparisonKey, &record->key) != 0) {
if (CDBIsPrintDebugMessage(3)) {
CDBReport_(3);
OSReport("ファイル名の改竄を検出\n");
OSReport("CDBRecordPrivateChangeOwner\n");
}
return CDB_ERROR_32;
}

View File

@@ -234,39 +234,30 @@ void AESiDecryptBlock(AESContext* context, u32* output, const u32* input) {
}
BOOL NETAESCreateEx(AESContext* context, const void* key, u32 keyLength, const void* iv, const AESBlockMode* mode) {
BOOL result=FALSE;
u32 words,index,value;
u32* schedule;
u32 words;
u32 index;
u32 value;
BOOL result = FALSE;
if (keyLength != 16 && keyLength != 24 && keyLength != 32) {
OSReport("NETAESCreateEx() failed! (key-length is allowed only 16, 20, 24 BYTEs)");
} else {
context->needsTransform = 1;
context->rounds = (keyLength * 8) / 32 + 6;
context->mode = mode;
context->rounds=keyLength/4+6;
context->needsTransform=1;
context->mode=mode;
memcpy(context->chain, iv, 16);
schedule = context->keys;
words = keyLength / 4;
memcpy(schedule, key, keyLength);
value = schedule[words - 1];
for (index = words; index < (context->rounds + 1) * 4; ++index) {
if (index % words == 0) {
u32 high = (u32)AESiSubShiftTable[(value >> 16) & 255] << 24;
u32 low = AESiSubShiftTable[value >> 24];
u32 lower = (u32)AESiSubShiftTable[value & 255] << 8;
u32 upper = (u32)AESiSubShiftTable[(value >> 8) & 255] << 16;
value = (low ^ high) ^ (lower ^ upper);
value ^= (u32)AESiRoundKeyRcon0[index / words - 1] << 24;
} else if (words > 6 && index % words == 4) {
value = ((u32)AESiSubShiftTable[value >> 24] << 24) ^
(((u32)AESiSubShiftTable[(value >> 16) & 255] << 16) ^
(AESiSubShiftTable[value & 255] ^ ((u32)AESiSubShiftTable[(value >> 8) & 255] << 8)));
schedule=context->keys;
words=keyLength/4;
memcpy(schedule,key,keyLength);
value=schedule[words-1];
for(index=words; index<(context->rounds+1)*4; ++index) {
if (index%words == 0) {
value=SUBSTITUTE_XOR(AESiSubShiftTable,value<<8,value<<8,value<<8,value>>24) ^ ((u32)AESiRoundKeyRcon0[index/words-1]<<24);
} else if(words>6 && index%words==4) {
value=SUBSTITUTE_XOR(AESiSubShiftTable,value,value,value,value);
}
value ^= schedule[index - words];
schedule[index] = value;
value ^= schedule[index-words];
schedule[index]=value;
}
result = TRUE;
result=TRUE;
}
return result;
}

View File

@@ -13,7 +13,7 @@ static void FindHeaderBlock(const NHTTPResponseInfo* response, s32 position, NHT
}
}
static int ReadHeaderChar(const NHTTPResponseInfo* response, NHTTPi_HDRBUFLIST** block, s32* offset) {
static s8 ReadHeaderChar(const NHTTPResponseInfo* response, NHTTPi_HDRBUFLIST** block, s32* offset) {
if(!*block) {
if(*offset<1024) return (s8)response->hdrBufFirst[(*offset)++];
*block=response->hdrBufBlock_p;
@@ -30,31 +30,30 @@ static int LowerCase(int character) {
s32 NHTTPi_findNextLineHdrRecvBuf(const NHTTPResponseInfo* response, s32 position, s32 limit, s32* colon, s32* newlineLength) {
NHTTPi_HDRBUFLIST* block;
s32 offset;
s32 next=-1;
BOOL carriage=FALSE;
if(colon) *colon=-1;
if (position < limit) {
s32 next=-1;
BOOL carriage=FALSE;
FindHeaderBlock(response,position,&block,&offset);
for(; position<limit; ++position) {
int character=ReadHeaderChar(response,&block,&offset);
if((s8)character==':' && colon && *colon<0) *colon=position;
if(carriage) {
if((s8)character=='\n') {
next=position==limit-1 ? 0 : position+1;
if(newlineLength) *newlineLength=2;
}
return next;
}
if((s8)character=='\r') {
if(position>=limit) return -1;
FindHeaderBlock(response,position,&block,&offset);
for(; position<limit; ++position) {
s8 character=ReadHeaderChar(response,&block,&offset);
if(character==':' && colon && *colon<0) *colon=position;
if(carriage) {
if(character=='\n') {
next=position==limit-1 ? 0 : position+1;
carriage=TRUE;
if(newlineLength) *newlineLength=1;
}
if((s8)character=='\n') {
next=position==limit-1 ? 0 : position+1;
if(newlineLength) *newlineLength=1;
return next;
if(newlineLength) *newlineLength=2;
}
return next;
}
if(character=='\r') {
next=position==limit-1 ? 0 : position+1;
carriage=TRUE;
if(newlineLength) *newlineLength=1;
}
if(character=='\n') {
next=position==limit-1 ? 0 : position+1;
if(newlineLength) *newlineLength=1;
return next;
}
}
return -1;
@@ -63,12 +62,11 @@ s32 NHTTPi_findNextLineHdrRecvBuf(const NHTTPResponseInfo* response, s32 positio
s32 NHTTPi_skipSpaceHdrRecvBuf(const NHTTPResponseInfo* response, s32 position, s32 limit) {
NHTTPi_HDRBUFLIST* block;
s32 offset;
if (position < limit) {
FindHeaderBlock(response,position,&block,&offset);
for(; position<limit; ++position) {
s8 character=ReadHeaderChar(response,&block,&offset);
if(character!=' ') return position;
}
if(position>=limit) return -1;
FindHeaderBlock(response,position,&block,&offset);
for(; position<limit; ++position) {
s8 character=ReadHeaderChar(response,&block,&offset);
if(character!=' ') return position;
}
return -1;
}
@@ -93,35 +91,32 @@ s32 NHTTPi_loadFromHdrRecvBuf(NHTTPResponseInfo* response, char* destination, s3
s32 amount;
NHTTPi_HDRBUFLIST* block;
if (position + length <= response->headerLen) {
if(position+length>response->headerLen) return FALSE;
if(length) {
if(position<1024) {
amount=length;
if(length>1024-position) amount=1024-position;
NHTTPi_memcpy(destination,response->hdrBufFirst+position,amount);
position+=amount; length-=amount; destination+=amount;
}
if(length) {
if(position<1024) {
s32 blocks;
position-=1024;
block=response->hdrBufBlock_p;
blocks=position>>9;
position&=511;
while(blocks--) block=block->next_p;
while(length) {
amount=length;
if(length>1024-position) amount=1024-position;
NHTTPi_memcpy(destination,response->hdrBufFirst+position,amount);
position+=amount; length-=amount; destination+=amount;
}
if(length) {
s32 blocks;
position-=1024;
block=response->hdrBufBlock_p;
blocks=position>>9;
position&=511;
while(blocks--) block=block->next_p;
while(length) {
amount=length;
if(length>512-position) amount=512-position;
NHTTPi_memcpy(destination,block->block+position,amount);
position+=amount;
position&=511;
block=block->next_p;
length-=amount; destination+=amount;
}
if(length>512-position) amount=512-position;
NHTTPi_memcpy(destination,block->block+position,amount);
position=(position+amount)&511;
block=block->next_p;
length-=amount; destination+=amount;
}
}
return TRUE;
}
return FALSE;
return TRUE;
}
BOOL NHTTPi_isRecvBufFull(NHTTPResponseInfo* response, u32 length) { return length>=response->recvBufLen; }
@@ -132,14 +127,10 @@ s32 NHTTPi_RecvBuf(void* mutex, NHTTPRequestInfo* request, s32 socket, u32 offse
}
s32 NHTTPi_RecvBufN(void* mutex, NHTTPRequestInfo* request, s32 socket, u32 offset, s32 length, s32 flags) {
s32 available;
NHTTPResponseInfo* response=request->response;
void* buf;
s32 available;
if(response->recvBufLen<=offset) return -1003;
available=response->recvBufLen;
buf=response->recvBuf_p;
available=available-offset;
buf=(u8*)buf+offset;
available=response->recvBufLen-offset;
if(length>available) length=available;
return NHTTPi_SocRecv(mutex,request,socket,buf,length,flags);
return NHTTPi_SocRecv(mutex,request,socket,response->recvBuf_p+offset,length,flags);
}

View File

@@ -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;

View File

@@ -67,11 +67,10 @@ s32 NHTTPi_strToHex(const char* string, s32 length) {
s32 value;
BOOL started;
if(length>8) return -1;
if((length==8) & (*string>'7')) return -1;
if((length==8) & (*string>='7')) return -1;
value=0; started=FALSE;
for(; length>0; --length,++string) {
u8 rawCharacter = *(const u8*)string;
s8 character = LowerCase((s8)rawCharacter);
s8 character=LowerCase(*string);
if(character>='0' && character<='9') { value=(value<<4)+character-'0'; started=TRUE; }
else if(character>='a' && character<='f') { value=(value<<4)+character-'a'+10; started=TRUE; }
else {
@@ -102,25 +101,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};
int digit;
BOOL started;
int digit;
char* output;
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;
@@ -138,22 +135,18 @@ s32 NHTTPi_compareToken(const char* left, const char* right) {
}
s32 NHTTPi_strtonum(const char* string, u32 length) {
int character;
s32 value;
int digits;
digits = 0;
value = 0;
for (; length != 0; --length, ++string) {
u8 rawCharacter = *(const u8*)string;
character = (s8)rawCharacter;
if (character == ' ') continue;
if ((character >= '0') & (character <= '9')) {
value = value * 10 + character - '0';
int digits=0;
s32 value=0;
while(length--) {
int character=*string++;
if(character==' ') continue;
if((character>='0') & (character<='9')) {
value=value*10+character-'0';
++digits;
if (digits > 9) return -1;
if(digits>9) return -1;
}
}
if (digits == 0) return -1;
if(digits==0) return -1;
return value;
}

View File

@@ -30,23 +30,14 @@ typedef struct InetRequest {
union { struct { int family; u8 address[16]; } reply; u8 replyBlock[32]; };
char text[1];
} InetRequest;
typedef struct RecvPayload {
union { struct { int socket; int flags; } command; u8 commandBlock[32]; };
SOSockAddr address;
} RecvPayload;
typedef struct RecvRequest {
IOSIoVector vectors[4];
RecvPayload payload;
} RecvRequest;
typedef struct SendCommand {
int socket;
int flags;
int hasAddress;
union { struct { int socket; int flags; } command; u8 commandBlock[32]; };
SOSockAddr address;
} SendCommand;
} RecvRequest;
typedef struct SendRequest {
IOSIoVector vectors[4];
SendCommand command;
struct { int socket; int flags; int hasAddress; SOSockAddr address; } command;
} SendRequest;
static int RecvFrom(const char*, int, void*, int, int, SOSockAddr*);
@@ -267,17 +258,11 @@ char* SOInetNtoA(SOInAddr address) {
int SOInetPtoN(int family, const char* text, void* address) {
s32 rm;
int temporary;
int size;
int result;
int bytes;
int temporary,result,size,bytes;
InetRequest* request;
if((result=SOiPrepareTempRm(NULL,&rm,&temporary))==0) {
bytes=0;
switch (family) {
case 2: bytes=4; break;
default: break;
}
if(family==2) bytes=4;
if(!bytes) result=-5;
else if(!text) result=-28;
else {
@@ -304,14 +289,11 @@ u32 SOHtoNl(u32 value) { return value; }
u16 SOHtoNs(u16 value) { return value; }
static inline int DirectBuffer(const void* data, int length) {
BOOL accessible;
BOOL direct;
BOOL aligned;
direct=FALSE;
aligned=FALSE;
BOOL direct=FALSE;
BOOL aligned=FALSE;
if(((u32)data&31)==0 && length%32==0) aligned=TRUE;
if(aligned) {
accessible=TRUE;
BOOL accessible=TRUE;
if(SOiIsBufferAddrCheck()) {
BOOL inMemory=FALSE;
if(((u32)data&0x1fffffff)>=0x10000000 && ((u32)data&0x1fffffff)<0x18000000) inMemory=TRUE;
@@ -324,12 +306,10 @@ static inline int DirectBuffer(const void* data, int length) {
static int RecvFrom(const char* name, int socket, void* data, int length, int flags, SOSockAddr* address) {
s32 rm;
void* buffer;
int size;
int result,size;
BOOL direct;
RecvRequest* request;
RecvPayload* payload;
int result;
void* buffer;
SOSockAddr* reply;
if(length>32768) length=32768;
if((result=SOiPrepare(name,&rm))==0) {
@@ -338,16 +318,15 @@ static int RecvFrom(const char* name, int socket, void* data, int length, int fl
else {
direct=TRUE;
if(length && !DirectBuffer(data,length)) direct=FALSE;
size=((address == NULL ? 0 : address->len)+95)&~31;
size=((address ? address->len : 0)+95)&~31;
request=SOiAlloc(12,size);
if(direct == FALSE) buffer=SOiAlloc(13,(length+31)&~31);
if(!direct) buffer=SOiAlloc(13,(length+31)&~31);
else buffer=data;
if(!request || !buffer) result=-49;
else {
payload=&request->payload;
payload->command.socket=socket; payload->command.flags=flags;
reply=&payload->address;
request->vectors[0].base=(u8*)payload; request->vectors[0].length=8;
request->command.socket=socket; request->command.flags=flags;
reply=&request->address;
request->vectors[0].base=(u8*)&request->command; request->vectors[0].length=8;
request->vectors[1].base=buffer; request->vectors[1].length=length;
if(!address) {
request->vectors[2].base=NULL; request->vectors[2].length=0;
@@ -357,12 +336,14 @@ static int RecvFrom(const char* name, int socket, void* data, int length, int fl
request->vectors[2].base=(u8*)reply; request->vectors[2].length=address->len;
result=IOS_Ioctlv(rm,12,1,2,request->vectors);
if(result>=0) {
memcpy(address,reply,address->len > reply->len ? reply->len : address->len);
u32 bytes=address->len;
if(bytes>reply->len) bytes=reply->len;
memcpy(address,reply,bytes);
}
}
if(result>=0 && direct == FALSE) memcpy(data,buffer,length);
if(result>=0 && !direct) memcpy(data,buffer,length);
}
if(direct == FALSE) SOiFree(13,buffer,(length+31)&~31);
if(!direct) SOiFree(13,buffer,(length+31)&~31);
SOiFree(12,request,size);
}
result=SOiConclude(name,result);
@@ -371,12 +352,11 @@ static int RecvFrom(const char* name, int socket, void* data, int length, int fl
}
static int SendTo(const char* name, int socket, const void* data, int length, int flags, const SOSockAddr* address) {
void* buffer;
BOOL direct;
int result;
s32 rm;
BOOL direct;
void* buffer;
SendRequest* request;
SendCommand* command;
if((result=SOiPrepare(name,&rm))==0) {
if(address && (address->len>8 || address->len<8)) result=-28;
else if(length<0 || (length>0 && !data)) result=-28;
@@ -384,23 +364,22 @@ static int SendTo(const char* name, int socket, const void* data, int length, in
direct=TRUE;
if(length && !DirectBuffer(data,length)) direct=FALSE;
request=SOiAlloc(12,96);
if(direct == FALSE) buffer=SOiAlloc(14,(length+31)&~31);
if(!direct) buffer=SOiAlloc(14,(length+31)&~31);
else buffer=(void*)data;
if(!request || !buffer) result=-49;
else {
command = &request->command;
command->socket=socket; command->flags=flags;
if(!address) command->hasAddress=0;
request->command.socket=socket; request->command.flags=flags;
if(!address) request->command.hasAddress=0;
else {
command->hasAddress=1;
memcpy(&command->address,address,address->len);
request->command.hasAddress=1;
memcpy(&request->command.address,address,address->len);
}
if(direct == FALSE) memcpy(buffer,data,length);
if(!direct) memcpy(buffer,data,length);
request->vectors[0].base=buffer; request->vectors[0].length=length;
request->vectors[1].base=(u8*)command; request->vectors[1].length=40;
request->vectors[1].base=(u8*)&request->command; request->vectors[1].length=40;
result=IOS_Ioctlv(rm,13,2,0,request->vectors);
}
if(direct == FALSE) SOiFree(14,buffer,(length+31)&~31);
if(!direct) SOiFree(14,buffer,(length+31)&~31);
SOiFree(12,request,96);
}
result=SOiConclude(name,result);

View File

@@ -14,11 +14,11 @@ typedef struct UpdateThreadData {
u8 stack[4096];
} UpdateThreadData;
static u32 Flags0[BS2_UPDATE_ENTRY_COUNT] = {0};
static u32 Flags1[BS2_UPDATE_ENTRY_COUNT] = {0};
static UpdateThreadData Thread = {0};
static BS2UpdateHeader UpdateHeader0 ALIGN32 = {0};
static BS2UpdateHeader UpdateHeader1 ALIGN32 = {0};
static u32 Flags0[BS2_UPDATE_ENTRY_COUNT];
static u32 Flags1[BS2_UPDATE_ENTRY_COUNT];
static UpdateThreadData Thread;
static BS2UpdateHeader UpdateHeader0 ALIGN32;
static BS2UpdateHeader UpdateHeader1 ALIGN32;
#define UPDATE_DISC_ENTRIES ((BS2UpdateEntry*)0x80480000)
@@ -26,25 +26,25 @@ s32 WADCheckImport(u64 titleId, u16 titleVersion);
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 u32* pFlags = NULL;
static void* MemAllocator = NULL;
int State = 0;
BS2UpdateEntry* CurrentEntry = 0;
static u32 RebootRequired = 0;
static BOOL ContainsSeatTitles = 0;
static u32 UpdateImportState = 0;
static u32 UpdateImportResult = 0;
u32 StartUpdate = 0;
u32 CancelUpdate = 0;
static u32 UpdateProgress = 0;
static s32 rc = 0;
static u64 VersionIOS = 0;
static u32 VersionMEM2 = 0;
static u32 VersionES = 0;
static u32 ConsoleType = 0;
static void* FatalFunc = NULL;
static BS2UpdateEntry* pEntries;
static u32 EntriesCount;
static u32* pFlags;
static void* MemAllocator;
int State;
BS2UpdateEntry* CurrentEntry;
static u32 RebootRequired;
static BOOL ContainsSeatTitles;
static u32 UpdateImportState;
static u32 UpdateImportResult;
u32 StartUpdate;
u32 CancelUpdate;
static u32 UpdateProgress;
static s32 rc;
static u64 VersionIOS;
static u32 VersionMEM2;
static u32 VersionES;
static u32 ConsoleType;
static void* FatalFunc;
#pragma force_active on
char* getSuffix(const char* path) {
@@ -174,7 +174,7 @@ product_region_checked:
goto selection_done;
}
strcpy(scratch.updatePath, "__update.inf");
strcat(scratch.updatePath, ".");
strcat(scratch.updatePath, "-");
strcat(scratch.updatePath, scratch.productArea);
if (DVDConvertPathToEntrynum(scratch.updatePath) < 0) {
switch (SCGetProductArea()) {
@@ -271,7 +271,7 @@ product_region_checked:
}
}
strcpy(scratch.seatPath, "__seatholder.inf");
strcat(scratch.seatPath, ".");
strcat(scratch.seatPath, "-");
strcat(scratch.seatPath, scratch.productArea);
if (DVDConvertPathToEntrynum(scratch.seatPath) < 0) {
switch (SCGetProductArea()) {

View File

@@ -23,7 +23,7 @@ namespace memo {
class EventHandler : public inputform::EventHandler {
public:
EventHandler(InputForm* form) : inputform::EventHandler(form), mpMemoForm(form) {}
virtual ~EventHandler();
virtual ~EventHandler() {}
virtual void onTiEvent(gui::PaneComponent*, u32, Input*);
private:
InputForm* mpMemoForm;
@@ -48,14 +48,14 @@ protected:
class WholePane : public AnmPane {
public:
WholePane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer) : AnmPane(pane, observer) { meKeyType = 0; }
virtual ~WholePane();
virtual ~WholePane() {}
virtual void onAnmEvent(AnmPaneEvent event);
};
class NigaoePane : public AnmPane {
public:
NigaoePane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer) : AnmPane(pane, observer) { meKeyType = 1; }
virtual ~NigaoePane();
virtual ~NigaoePane() {}
virtual void onAnmEvent(AnmPaneEvent event);
};
@@ -81,7 +81,7 @@ private:
class SimpleAnmPane : public nw4rmanager::AnmPane {
public:
SimpleAnmPane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer) : nw4rmanager::AnmPane(pane, observer) {}
virtual ~SimpleAnmPane();
virtual ~SimpleAnmPane() {}
virtual void init();
virtual void changeAnimation(u32 id);
};
@@ -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);
@@ -792,12 +792,8 @@ void AnmPane::changeAnimation(u32 id) {
}
u32 AnmPane::getKeyType() const { return meKeyType; }
void AnmPane::init() { meState = 0; }
NigaoePane::~NigaoePane() {}
void NigaoePane::onAnmEvent(AnmPaneEvent) {}
WholePane::~WholePane() {}
bool InputForm::isInScroll() { return mExScrollAnm.isActive(); }
EventHandler::~EventHandler() {}
SimpleAnmPane::~SimpleAnmPane() {}
}
}

View File

@@ -206,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

@@ -78,7 +78,9 @@ void HKBManager::KBDListenerOwn::OnAttach(KBDDevEvent* event) {
void HKBManager::KBDListenerOwn::OnDetach(KBDDevEvent* event) {
u8 device = event->device;
if (device >= 2) return;
manager->DetachDevice(event);
HKBManager* owner = manager;
owner->attached[device] = 0;
owner->states[device].Clear();
}
void HKBManager::KBDListenerOwn::OnKeyEvent(KBDKeyEvent* event) {
@@ -336,8 +338,8 @@ void HKBManager::KeyState_::Update() {
held = heldKeys;
for (index = 0; index < 8; index++) {
bit = 1 << index;
if (HasCurrentKey(index)) {
if (!HadPreviousKey(index) || previousKeys[index] != currentKeys[index]) {
if ((current & bit) != 0) {
if ((previous & bit) == 0 || previousKeys[index] != currentKeys[index]) {
triggered |= bit;
}
}
@@ -345,8 +347,8 @@ void HKBManager::KeyState_::Update() {
released = 0;
for (index = 0; index < 8; index++) {
bit = 1 << index;
if (HadPreviousKey(index)) {
if (!HasCurrentKey(index) || previousKeys[index] != currentKeys[index]) {
if ((previous & bit) != 0) {
if ((current & bit) == 0 || previousKeys[index] != currentKeys[index]) {
released |= bit;
}
}
@@ -354,7 +356,7 @@ void HKBManager::KeyState_::Update() {
repeated = 0;
for (index = 0; index < 8; index++) {
bit = 1 << index;
if (HasCurrentKey(index)) {
if ((current & bit) != 0) {
if ((triggered & bit) != 0) {
repeatDelay[index] = 30;
repeated |= bit;
@@ -369,14 +371,17 @@ void HKBManager::KeyState_::Update() {
}
void HKBManager::KeyState_::UpdateModState_() {
u32 oldModifiers;
u32 index;
oldModifiers = modifiers;
u32 oldModifiers = modifiers;
modifiers = oldModifiers & 0xffffffd0;
index = 0;
for (; index < 8; index++) {
if (HasCurrentKey(static_cast<u8>(index))) {
u8 code = currentKeys[static_cast<u8>(index)];
u32 keySet;
u8 slot;
keySet = current;
slot = index;
if ((keySet & (1 << slot)) != 0) {
u8 code = currentKeys[slot];
if (code == 0xe5 || code == 0xe1) {
modifiers |= 2;
} else if (code == 0xe4 || code == 0xe0) {
@@ -448,7 +453,15 @@ u32 HKBManager::KeySet::GetWChar() const {
} else if ((static_cast<u32>(code) & 0xffff) < 0x20) {
code = 0;
}
return manager->FilterCharacter(code);
u32 index = 0;
const HKBManager* owner = manager;
if (owner->allowedCharacters == 0) return code;
u32 count = owner->allowedCharacterCount;
if (count == 0) return code;
for (; index < count; index++) {
if ((static_cast<u32>(code) & 0xffff) == owner->allowedCharacters[index]) return code;
}
return 0;
}
u32 HKBManager::KeySet::GetVCode() const {
@@ -487,23 +500,7 @@ u32 HKBManager::KeySet::GetVCode() const {
}
u32 HKBManager::KeySet::IsValid() const {
s8 keyIndex;
u32 keyDevice;
const HKBManager* owner;
owner = manager;
if (!owner) return false;
keyIndex = index;
if (keyIndex < 0 || keyIndex >= 8) return false;
keyDevice = device;
if (keyDevice >= 2) return false;
switch (type) {
case 0: return (owner->states[keyDevice].held & (1 << keyIndex)) != 0;
case 1: return (owner->states[keyDevice].triggered & (1 << keyIndex)) != 0;
case 2: return (owner->states[keyDevice].released & (1 << keyIndex)) != 0;
case 3: return (owner->states[keyDevice].repeated & (1 << keyIndex)) != 0;
}
return false;
return CheckValidity();
}
HKBManager::KeySet HKBManager::KeySet::GetNext() const {
@@ -531,6 +528,7 @@ HKBManager::KeySet HKBManager::KeySet::GetNext() const {
}
HKBManager::~HKBManager() {}
}
}

View File

@@ -5,14 +5,245 @@
#include "keyboard/tiHKBManager.h"
#include "keyboard/tiLayoutGather.h"
extern "C" void SetCountry__Q39textinput5input10HKBManagerFUc();
extern "C" textinput::input::HKBManager sInstance__Q39textinput5input10HKBManager;
extern "C" void convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw();
extern "C" bool updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
extern "C" void __dt__Q49textinput8keyboard5hwkey10HWKeyboardFv();
extern "C" void create__Q29textinput4BaseFP12MEMAllocator();
extern "C" void init__Q49textinput8keyboard5hwkey10HWKeyboardFv();
extern "C" void setCommandReceiver__Q29textinput13CommandSenderFPQ29textinput15CommandReceiver();
extern "C" void sendCommand__Q29textinput13CommandSenderFUlPv();
extern "C" void updateFromReceiver__Q29textinput13CommandSenderFUlPv();
#pragma push
#pragma section const_type ".data"
typedef void (*KeyboardDataFunction)();
extern "C" KeyboardDataFunction const scHwKeyboardConvertWCCodeJumpTable[0x3f] = {
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000158),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001d8),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001c0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000170),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x0000017c),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000134),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001a0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000140),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000188),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000194),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000148),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000150),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000164),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001b8),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001ac)
};
extern "C" KeyboardDataFunction const __vt__Q49textinput8keyboard5hwkey10HWKeyboard[9] = {
NULL,
NULL,
__dt__Q49textinput8keyboard5hwkey10HWKeyboardFv,
create__Q29textinput4BaseFP12MEMAllocator,
init__Q49textinput8keyboard5hwkey10HWKeyboardFv,
setCommandReceiver__Q29textinput13CommandSenderFPQ29textinput15CommandReceiver,
sendCommand__Q29textinput13CommandSenderFUlPv,
updateFromReceiver__Q29textinput13CommandSenderFUlPv,
reinterpret_cast<KeyboardDataFunction>(updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager)
};
#pragma pop
namespace textinput {
namespace keyboard {
namespace hwkey {
HWKeyboard::HWKeyboard(Manager* manager) : mpManager(manager), field_0x14(0), field_0x15(0), field_0x16(0) {
extern "C" void GetTriggeredKeySet__Q39textinput5input10HKBManagerCFv();
extern "C" void IsValid__Q49textinput5input10HKBManager6KeySetCFv();
extern "C" void GetKey__Q49textinput5input10HKBManager6KeySetCFv();
extern "C" void GetNext__Q49textinput5input10HKBManager6KeySetCFv();
extern "C" void GetModifierState__Q39textinput5input10HKBManagerCFv();
extern "C" bool updateRepeatKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
extern "C" bool updateTriggerKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
extern "C" bool updateTappingShift___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
extern "C" void updateShift__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
extern "C" asm bool updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager() {
nofralloc
stwu r1, -0x40(r1)
mflr r0
stw r0, 0x44(r1)
stw r31, 0x3c(r1)
mr r31, r4
stw r30, 0x38(r1)
mr r30, r3
lwz r3, 0x10(r3)
lwz r12, 0(r3)
lwz r12, 0x84(r12)
mtctr r12
bctrl
lwz r12, 0(r3)
lwz r12, 0xdc(r12)
mtctr r12
bctrl
cmpwi r3, 0
bne updateInput_HWKeyboard_L1
mr r3, r31
bl GetModifierState__Q39textinput5input10HKBManagerCFv
rlwinm. r0, r3, 0, 0x1d, 0x1d
bne updateInput_HWKeyboard_L2
li r0, 0
b updateInput_HWKeyboard_L3
updateInput_HWKeyboard_L2:
li r5, 0
li r0, -1
stw r5, 8(r1)
mr r4, r31
addi r3, r1, 0x14
stb r5, 0xc(r1)
stb r0, 0xd(r1)
stb r5, 0xe(r1)
sth r5, 0x10(r1)
bl GetTriggeredKeySet__Q39textinput5input10HKBManagerCFv
lwz r6, 0x14(r1)
lbz r5, 0x18(r1)
lbz r4, 0x19(r1)
lbz r3, 0x1a(r1)
lhz r0, 0x1c(r1)
stw r6, 8(r1)
stb r5, 0xc(r1)
stb r4, 0xd(r1)
stb r3, 0xe(r1)
sth r0, 0x10(r1)
b updateInput_HWKeyboard_L4
updateInput_HWKeyboard_L5:
addi r3, r1, 8
bl GetKey__Q49textinput5input10HKBManager6KeySetCFv
clrlwi r0, r3, 0x18
cmpwi r0, 0x2b
bge updateInput_HWKeyboard_L6
cmpwi r0, 0x28
beq updateInput_HWKeyboard_L7
bge updateInput_HWKeyboard_L8
b updateInput_HWKeyboard_L9
updateInput_HWKeyboard_L6:
cmpwi r0, 0x58
beq updateInput_HWKeyboard_L7
b updateInput_HWKeyboard_L9
updateInput_HWKeyboard_L7:
lwz r3, 0x10(r30)
lwz r12, 0(r3)
lwz r12, 0x94(r12)
mtctr r12
bctrl
lwz r12, 0(r3)
lwz r12, 0xa0(r12)
mtctr r12
bctrl
li r0, 1
b updateInput_HWKeyboard_L3
updateInput_HWKeyboard_L8:
lwz r3, 0x10(r30)
lwz r12, 0(r3)
lwz r12, 0x94(r12)
mtctr r12
bctrl
lwz r12, 0(r3)
lwz r12, 0xa4(r12)
mtctr r12
bctrl
li r0, 1
b updateInput_HWKeyboard_L3
updateInput_HWKeyboard_L9:
addi r3, r1, 0x20
addi r4, r1, 8
bl GetNext__Q49textinput5input10HKBManager6KeySetCFv
lwz r6, 0x20(r1)
lbz r5, 0x24(r1)
lbz r4, 0x25(r1)
lbz r3, 0x26(r1)
lhz r0, 0x28(r1)
stw r6, 8(r1)
stb r5, 0xc(r1)
stb r4, 0xd(r1)
stb r3, 0xe(r1)
sth r0, 0x10(r1)
updateInput_HWKeyboard_L4:
addi r3, r1, 8
bl IsValid__Q49textinput5input10HKBManager6KeySetCFv
cmpwi r3, 0
bne updateInput_HWKeyboard_L5
li r0, 0
updateInput_HWKeyboard_L3:
cmpwi r0, 0
bne updateInput_HWKeyboard_L1
mr r3, r30
mr r4, r31
bl updateRepeatKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
cmpwi r3, 0
bne updateInput_HWKeyboard_L1
mr r3, r30
mr r4, r31
bl updateTriggerKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
cmpwi r3, 0
bne updateInput_HWKeyboard_L1
mr r3, r30
mr r4, r31
bl updateTappingShift___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
updateInput_HWKeyboard_L1:
mr r3, r30
mr r4, r31
bl updateShift__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager
lwz r31, 0x3c(r1)
li r3, 0
lwz r30, 0x38(r1)
lwz r0, 0x44(r1)
mtlr r0
addi r1, r1, 0x40
blr
}
struct NavigationCommand { u32 command; u32 modifiers; };
@@ -26,78 +257,6 @@ struct KeyInputData {
u32 data;
};
extern const u8 controlKeys[];
void HWKeyboard::init() {
LayoutGather::Singleton::getInstance().setHWPressedShift(false);
u32 state = input::HKBManager::getInstance().GetModifierState();
input::HKBManager::getInstance().SetModifierState(state | 0x100, 0x700);
field_0x15 = 0;
field_0x16 = 0;
}
void HWKeyboard::updateShift(input::HKBManager& hkbManager) {
LayoutGather &gather = LayoutGather::Singleton::getInstance();
u32 state = hkbManager.GetModifierState();
if (!mgr()->getToolBar()->isQwerty() && !mgr()->getToolBar()->isEnableKeytopChange()) {
return;
}
bool previousShift = gather.isHoldingShift();
if (state & 0x2) {
gather.setHWPressedShift(true);
if (!previousShift) {
mgr()->getPCKeyboard()->onPressedShift(true);
}
} else {
gather.setHWPressedShift(false);
if (previousShift) {
if (!gather.isHoldingShift()) {
mgr()->getPCKeyboard()->onReleasedShift();
}
}
}
}
inline bool HWKeyboard::controlKeyTriggeredHandler(input::HKBManager& hkbManager) {
if ((hkbManager.GetModifierState() & 4) == 0) {
return false;
}
input::HKBManager::KeySet currentKeySet;
currentKeySet = hkbManager.GetTriggeredKeySet();
while (currentKeySet.IsValid()) {
switch (currentKeySet.GetKey()) {
case 0x28:
case 0x58: {
mgr()->getToolBar()->onOK();
return true;
}
case 0x29:
case 0x2A: {
mgr()->getToolBar()->onCancel();
return true;
}
default: {
currentKeySet = currentKeySet.GetNext();
break;
}
}
}
return false;
}
bool HWKeyboard::updateInput(input::HKBManager& hkbManager) {
if (!static_cast<signwindow::LayoutByNW4R*>(mgr()->getSignKeyboard())->isActive() &&
!controlKeyTriggeredHandler(hkbManager) &&
!updateRepeatKey_(hkbManager) && !updateTriggerKey_(hkbManager)) {
updateTappingShift_(hkbManager);
}
updateShift(hkbManager);
return false;
}
bool HWKeyboard::updateRepeatKey_(input::HKBManager& hkbManager) {
u32 modifierState = hkbManager.GetModifierState();
input::HKBManager::KeySet currentKeySet;
@@ -416,12 +575,50 @@ extern const u8 controlKeys[];
return false;
}
HWKeyboard::HWKeyboard(Manager* manager) : mpManager(manager), field_0x14(0), field_0x15(0), field_0x16(0) {
}
void HWKeyboard::init() {
LayoutGather::Singleton::getInstance().setHWPressedShift(false);
u32 state = input::HKBManager::getInstance().GetModifierState();
input::HKBManager::getInstance().SetModifierState(state | 0x100, 0x700);
field_0x15 = 0;
field_0x16 = 0;
}
void HWKeyboard::updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data) {
if (trig != 0) {
field_0x14 = 0;
}
}
void HWKeyboard::updateShift(input::HKBManager& hkbManager) {
LayoutGather &gather = LayoutGather::Singleton::getInstance();
u32 state = hkbManager.GetModifierState();
if (!mgr()->getToolBar()->isQwerty() && !mgr()->getToolBar()->isEnableKeytopChange()) {
return;
}
bool previousShift = gather.isHoldingShift();
if (state & 0x2) {
gather.setHWPressedShift(true);
if (!previousShift) {
mgr()->getPCKeyboard()->onPressedShift(true);
}
} else {
gather.setHWPressedShift(false);
if (previousShift) {
if (!gather.isHoldingShift()) {
mgr()->getPCKeyboard()->onReleasedShift();
}
}
}
}
extern "C" const u8 scCountryMap_EU[] = {0x0f, 0x21, 0x20, 0x08, 0x09, 0x0e, 0x19, 0x00, 0x21, 0x21, 0x00, 0x00};
extern "C" const u8 scCountryMap_NonEU[] = {0x0f, 0x21, 0x20, 0x04, 0x09, 0x0e, 0x11, 0x00, 0x21, 0x21, 0x00, 0x00};
@@ -440,47 +637,183 @@ const u8 controlKeys[] = {
0x06, 0x05, 0x07, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
wchar_t HWKeyboard::convertWCCode(wchar_t code) const {
if (mgr()->getToolBar()->isQwerty() && mgr()->getPCKeyboard()->getTranslateMode()) {
if (mgr()->getLanguage() == JP) {
switch (code) {
case 0x2C: { return 0x3001; }
case 0x2E: { return 0x3002; }
case 0x2D: { return 0x30FC; }
case 0x5B: { return 0x300C; }
case 0x5D: { return 0x300D; }
}
} else if (mgr()->getLanguage() == CN) {
switch (code) {
case 0x2C: { return 0xFF0C; }
case 0x2E: { return 0x3002; }
case 0x3C: { return 0x300A; }
case 0x3E: { return 0x300B; }
case 0x21: { return 0xFF01; }
case 0x3F: { return 0xFF1F; }
case 0x28: { return 0xFF08; }
case 0x29: { return 0xFF09; }
case 0x3A: { return 0xFF1A; }
case 0x3B: { return 0xFF1B; }
case 0x2D: { return 0xFF0D; }
case 0x5F: { return 0xFF3F; }
case 0x5C: { return 0x3001; }
case 0x27: { if (field_0x15) { return 0x2019; } return 0x2018; }
case 0x22: { if (field_0x16) { return 0x201D; } return 0x201C; }
}
}
}
return code;
extern "C" asm void setLanguage__Q49textinput8keyboard5hwkey10HWKeyboardFQ29textinput11DestinationQ29textinput8Language() {
nofralloc
cmpwi r4, 2
bne setLanguage_L1
lis r4, scCountryMap_EU@ha
lis r3, sInstance__Q39textinput5input10HKBManager@ha
addi r4, r4, scCountryMap_EU@l
lbzx r4, r4, r5
addi r3, r3, sInstance__Q39textinput5input10HKBManager@l
b SetCountry__Q39textinput5input10HKBManagerFUc
setLanguage_L1:
lis r4, scCountryMap_NonEU@ha
lis r3, sInstance__Q39textinput5input10HKBManager@ha
addi r4, r4, scCountryMap_NonEU@l
lbzx r4, r4, r5
addi r3, r3, sInstance__Q39textinput5input10HKBManager@l
b SetCountry__Q39textinput5input10HKBManagerFUc
}
void HWKeyboard::setLanguage(Destination destination, Language language) {
if (destination == DST_EU) {
input::HKBManager::getInstance().SetCountry(scCountryMap_EU[language]);
} else {
input::HKBManager::getInstance().SetCountry(scCountryMap_NonEU[language]);
}
extern "C" asm void convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw() {
nofralloc
stwu r1, -0x10(r1)
mflr r0
stw r0, 0x14(r1)
stw r31, 0xc(r1)
mr r31, r4
stw r30, 8(r1)
mr r30, r3
lwz r3, 0x10(r3)
lwz r12, 0(r3)
lwz r12, 0x98(r12)
mtctr r12
bctrl
lwz r12, 0(r3)
lwz r12, 0x10(r12)
mtctr r12
bctrl
cmpwi r3, 0
beq convertWCCode_HWKeyboard_L1
lwz r3, 0x10(r30)
lwz r12, 0(r3)
lwz r12, 0x78(r12)
mtctr r12
bctrl
lwz r12, 0(r3)
lwz r12, 0x58(r12)
mtctr r12
bctrl
cmpwi r3, 0
beq convertWCCode_HWKeyboard_L1
lwz r3, 0x10(r30)
lwz r12, 0(r3)
lwz r12, 0x34(r12)
mtctr r12
bctrl
cmpwi r3, 0
bne convertWCCode_HWKeyboard_L2
cmpwi r31, 0x5b
beq convertWCCode_HWKeyboard_L3
bge convertWCCode_HWKeyboard_L4
cmpwi r31, 0x2d
beq convertWCCode_HWKeyboard_L5
bge convertWCCode_HWKeyboard_L6
cmpwi r31, 0x2c
bge convertWCCode_HWKeyboard_L7
b convertWCCode_HWKeyboard_L1
convertWCCode_HWKeyboard_L6:
cmpwi r31, 0x2f
bge convertWCCode_HWKeyboard_L1
b convertWCCode_HWKeyboard_L8
convertWCCode_HWKeyboard_L4:
cmpwi r31, 0x5d
beq convertWCCode_HWKeyboard_L9
b convertWCCode_HWKeyboard_L1
convertWCCode_HWKeyboard_L7:
li r3, 0x3001
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L8:
li r3, 0x3002
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L5:
li r3, 0x30fc
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L3:
li r3, 0x300c
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L9:
li r3, 0x300d
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L2:
lwz r3, 0x10(r30)
lwz r12, 0(r3)
lwz r12, 0x34(r12)
mtctr r12
bctrl
cmpwi r3, 8
bne convertWCCode_HWKeyboard_L1
addi r0, r31, -0x21
cmplwi r0, 0x3e
bgt convertWCCode_HWKeyboard_L1
lis r3, scHwKeyboardConvertWCCodeJumpTable@ha
slwi r0, r0, 2
addi r3, r3, scHwKeyboardConvertWCCodeJumpTable@l
lwzx r3, r3, r0
mtctr r3
bctr
convertWCCode_HWKeyboard_L11:
lis r3, 1
addi r3, r3, -0xf4
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L12:
li r3, 0x3002
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L13:
li r3, 0x300a
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L14:
li r3, 0x300b
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L15:
lis r3, 1
addi r3, r3, -0xff
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L16:
lis r3, 1
addi r3, r3, -0xe1
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L17:
lis r3, 1
addi r3, r3, -0xf8
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L18:
lis r3, 1
addi r3, r3, -0xf7
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L19:
lis r3, 1
addi r3, r3, -0xe6
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L20:
lis r3, 1
addi r3, r3, -0xe5
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L21:
lis r3, 1
addi r3, r3, -0xf3
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L22:
lis r3, 1
addi r3, r3, -0xc1
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L23:
li r3, 0x3001
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L24:
lbz r3, 0x15(r30)
neg r0, r3
or r0, r0, r3
srwi r3, r0, 0x1f
addi r3, r3, 0x2018
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L25:
lbz r3, 0x16(r30)
neg r0, r3
or r0, r0, r3
srwi r3, r0, 0x1f
addi r3, r3, 0x201c
b convertWCCode_HWKeyboard_L10
convertWCCode_HWKeyboard_L1:
mr r3, r31
convertWCCode_HWKeyboard_L10:
lwz r0, 0x14(r1)
lwz r31, 0xc(r1)
lwz r30, 8(r1)
mtlr r0
addi r1, r1, 0x10
blr
}
} // namespace hwkey

View File

@@ -151,8 +151,8 @@ extern "C" const char scT_title_textKOR[];
extern "C" const char scN_separateBarCHN[];
extern "C" const char scT_2l_TextBoxCHN[];
extern "C" const char scT_title_textCHN[];
extern "C" const char scN_KOR[];
extern "C" const char scN_CHN[];
extern "C" const char lbl_816973A4[];
extern "C" const char lbl_816973AC[];
#pragma pop
extern "C" const f32 scInputFormZeroF;
extern "C" void _savegpr_20();

View File

@@ -1499,18 +1499,14 @@ namespace textinput {
return mKeyState.getWCCode(paneName);
}
inline u32 FindControlKey(const Base::KeyState& state, char* paneName) {
u32 Base::getControlKey(char* paneName) {
for (u16 i = 0; i < 23; i++) {
if (util::strcmp(state.data->controls[i].paneName, paneName))
return state.data->controls[i].key;
if (util::strcmp(mKeyState.data->controls[i].paneName, paneName))
return mKeyState.data->controls[i].key;
}
return 27;
}
u32 Base::getControlKey(char* paneName) {
return FindControlKey(mKeyState, paneName);
}
void Base::changeABCInputMode(InputMode mode) {
switch (mode) {
case IM_Direct:
@@ -2114,12 +2110,7 @@ namespace textinput {
void LayoutByNW4R::onPressedShift(bool sound) {
u32 flags = mKeyState.getABCFlag();
flags |= 128;
if ((mKeyState.abcFlags & ~15) != flags) {
Base* keyboard = mKeyState.owner;
mKeyState.abcFlags = (mKeyState.abcFlags & 15) | (flags & ~15);
if (keyboard != NULL)
keyboard->refreshState();
}
mKeyState.setABCFlag(flags);
mShiftButton.SetState(true, 5);
if (sound)
mpEventObserver->onSE(static_cast<sound::SE>(13));
@@ -2128,13 +2119,7 @@ namespace textinput {
void LayoutByNW4R::onReleasedShift() {
u32 flags = mKeyState.getABCFlag();
flags &= ~128;
u32 currentFlags = mKeyState.abcFlags;
if ((currentFlags & ~15) != flags) {
Base* keyboard = mKeyState.owner;
mKeyState.abcFlags = (currentFlags & 15) | (flags & ~15);
if (keyboard != NULL)
keyboard->refreshState();
}
mKeyState.setABCFlag(flags);
if (mShiftButton.mbOn) {
mShiftButton.mbOn = false;
mShiftButton.mpAnimation->onAnmEvent(static_cast<AnmPane::AnmPaneEvent>(5));
@@ -2524,24 +2509,8 @@ namespace textinput {
} else {
gather.setPressedShiftB(false);
input::HKBManager::getInstance().SetForceModifierState(0, 0);
if (wasShift && !gather.isHoldingShift()) {
u32 flags;
u32 currentFlags;
Base* keyboard;
flags = mKeyState.getABCFlag();
flags &= ~128;
currentFlags = mKeyState.abcFlags;
if ((currentFlags & ~15) != flags) {
keyboard = mKeyState.owner;
mKeyState.abcFlags = (currentFlags & 15) | (flags & ~15);
if (keyboard != NULL)
keyboard->refreshState();
}
if (mShiftButton.mbOn) {
mShiftButton.mbOn = false;
mShiftButton.mpAnimation->onAnmEvent(static_cast<AnmPane::AnmPaneEvent>(5));
}
}
if (wasShift && !gather.isHoldingShift())
onReleasedShift();
}
return handled;
}

View File

@@ -2298,7 +2298,7 @@ void ipl::scene::AddressEdit::start_trig_event(
pane->initFrame();
pane->restart();
mSelectedButton = buttonNo;
ipl::snd::getSystem()->startSE("WIPL_SE_DECIDE");
ipl::snd::getSystem()->startSE("WIPL_SE_BT_TARGETTING");
mState = 1;
break;
}
@@ -2317,7 +2317,7 @@ void ipl::scene::AddressEdit::start_trig_event(
pane->initFrame();
pane->restart();
mSelectedButton = buttonNo;
ipl::snd::getSystem()->startSE("WIPL_SE_DECIDE");
ipl::snd::getSystem()->startSE("WIPL_SE_BT_TARGETTING");
mState = 1;
break;
}
@@ -2343,7 +2343,7 @@ void ipl::scene::AddressEdit::start_trig_event(
pane->initFrame();
pane->restart();
mSelectedButton = buttonNo;
ipl::snd::getSystem()->startSE("WIPL_SE_DECIDE");
ipl::snd::getSystem()->startSE("WIPL_SE_BT_TARGETTING");
mState = 0x24;
break;
}

View File

@@ -485,16 +485,16 @@ namespace ipl {
}
void BoardObject::stt_stand() {
f32 degrees = mStandData.mAngleIdx * 30.0f + 30.0f;
f32 degrees = mStandData.unk_0x0C * 30.0f + 30.0f;
f32 cosF = nw4r::math::CosFIdx(degrees * 0.7111111f);
degrees = mStandData.mAngleIdx * 30.0f + 30.0f;
degrees = mStandData.unk_0x0C * 30.0f + 30.0f;
f32 sinF = nw4r::math::SinFIdx(degrees * 0.7111111f);
math::VEC2 standPos;
__ct__Q33ipl4math4VEC2Fff(&standPos, sinF * 160.0f, cosF * 160.0f);
mBoardPos = (((mStandData.pos * (f32)(10 - mStandData.mStep)) + (standPos * mStandData.mStep)) / 10.0f);
mBoardPos = (((mStandData.pos * (f32)(10 - mStandData.unk_0x08)) + (standPos * mStandData.unk_0x08)) / 10.0f);
if ((mStandData.mStep += 1) > 10) {
if ((mStandData.unk_0x08 += 1) > 10) {
mStandData.init();
mState = STATE_NORMAL;
}

View File

@@ -185,7 +185,7 @@ namespace ipl {
};
// clang-format on
Button::Button(EGG::Heap* heap) : Base(heap), mAnimWait(0), mOptOutBtn(), mSdMenuBtn(), mbNewMailAnm(false), mbSuppressNewMailAnm(false), mReservedCmd() {
Button::Button(EGG::Heap* heap) : Base(heap), unk_0x54(0), mOptOutBtn(), mSdMenuBtn(), unk_0x104(false), unk_0x105(false), mReservedCmd() {
for (int i = 0; i < ARROW_BTN_MAX; i++) {
mbArrowVisible[i] = true;
}
@@ -293,7 +293,7 @@ namespace ipl {
}
void Button::calc() {
switch (mAnimWait) {
switch (unk_0x54) {
case 0: {
if (mReservedCmd.get_current_index() != 0) {
Command popped = mReservedCmd.get_popped_item();
@@ -312,7 +312,7 @@ namespace ipl {
if (!mpButtonAnim[ANIM_SCENE_CHANGE]->isPlaying() && !mpButtonAnim[ANIM_CALENDAR_EXIT]->isPlaying() &&
!mpButtonAnim[ANIM_COMMON_BUTTON]->isPlaying() && !mpButtonAnim[ANIM_TRASH_DELETE]->isPlaying() &&
!mOptOutBtn.mpLayout->isPlaying()) {
mAnimWait = 0;
unk_0x54 = 0;
}
break;
}
@@ -335,7 +335,7 @@ namespace ipl {
mpBalloons[i]->calc();
}
if (mbNewMailAnm && !mbSuppressNewMailAnm && mTimer()) {
if (unk_0x104 && !unk_0x105 && mTimer()) {
startNewMailAnm_();
}
}
@@ -457,7 +457,7 @@ namespace ipl {
bool Button::isActive() const {
bool result = false;
if (isSceneCreated() && mAnimWait != 1) {
if (isSceneCreated() && unk_0x54 != 1) {
result = true;
}
return result;
@@ -668,7 +668,7 @@ namespace ipl {
}
}
mAnimWait = 1;
unk_0x54 = 1;
}
void Button::initArrowAppearance(int arrowType, bool bAppear) {
@@ -752,8 +752,8 @@ namespace ipl {
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMinFrame(scLoopAnmFrame.start);
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMaxFrame(scLoopAnmFrame.end);
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setSpeed(1.0f);
mbNewMailAnm = true;
if (!mbSuppressNewMailAnm) {
unk_0x104 = true;
if (!unk_0x105) {
startNewMailAnm_();
}
}
@@ -773,7 +773,7 @@ namespace ipl {
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMaxFrame(1.0f);
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setSpeed(0.0f);
mpButtonAnim[ANIM_BOARD_BBS_NEW]->play();
mbNewMailAnm = false;
unk_0x104 = false;
}
void Button::enableBtn() {

View File

@@ -236,10 +236,10 @@ namespace ipl {
Calendar::Calendar(EGG::Heap* heap)
: FaderSceneBase(heap), ButtonEventHandlerBase(), mState(STATE_NORMAL), mPrevState(STATE_NORMAL), mpLayout(NULL), mpLayoutFile(NULL),
mpGroupAnim(NULL), mpInitAnim(NULL), mpBoardDate(NULL), mpSelectDate(NULL), mbScrolling(false), mbSearchTaskRunning(FALSE), mbTaskCanceled(FALSE),
mpGroupAnim(NULL), mpInitAnim(NULL), mpBoardDate(NULL), mpSelectDate(NULL), mbScrolling(false), unk_0xA0(FALSE), mbTaskCanceled(FALSE),
mbBackToBoardAlt(FALSE) {
nw4r::ut::List_Init(&mDateList, offsetof(Date, mNode1));
nw4r::ut::List_Init(&mDrawList, offsetof(Date, mNode2));
nw4r::ut::List_Init(&unk_0x90, offsetof(Date, mNode2));
mbAsian = System::getRegion() == SC_PRODUCT_AREA_JPN || (u32)System::getRegion() == SC_PRODUCT_AREA_KOR ||
(u32)System::getRegion() == SC_PRODUCT_AREA_CHN;
@@ -262,7 +262,7 @@ namespace ipl {
for (int i = 0; i < (DATE_COUNT * 2); i++) {
Date* date = new Date(getSceneHeap(), mpLayoutFile, "arc", "my_IplTop_f.brlyt");
if (i < DATE_COUNT) {
nw4r::ut::List_Append(&mDrawList, date);
nw4r::ut::List_Append(&unk_0x90, date);
}
nw4r::ut::List_Append(&mDateList, date);
}
@@ -382,10 +382,10 @@ namespace ipl {
}
} else {
for (u32 i = 0; i < DATE_COUNT; i++) {
((Date*)nw4r::ut::List_GetNth(&mDrawList, i))->draw(false);
((Date*)nw4r::ut::List_GetNth(&unk_0x90, i))->draw(false);
}
for (u32 i = 0; i < DATE_COUNT; i++) {
((Date*)nw4r::ut::List_GetNth(&mDrawList, i))->draw(true);
((Date*)nw4r::ut::List_GetNth(&unk_0x90, i))->draw(true);
}
}
}
@@ -425,8 +425,8 @@ namespace ipl {
}
void Calendar::onPointDate(Date* date) {
nw4r::ut::List_Remove(&mDrawList, date);
nw4r::ut::List_Append(&mDrawList, date);
nw4r::ut::List_Remove(&unk_0x90, date);
nw4r::ut::List_Append(&unk_0x90, date);
}
void Calendar::onTrigDate(Date* date) {
@@ -503,7 +503,7 @@ namespace ipl {
}
void Calendar::on_wait_task() {
if (mbSearchTaskRunning == FALSE) {
if (unk_0xA0 == FALSE) {
switch (mPrevState) {
case STATE_SCROLL_RIGHT: {
do_scroll_r();
@@ -535,7 +535,7 @@ namespace ipl {
mPrevState = mState;
mState = STATE_SCROLL_RIGHT;
if (mbSearchTaskRunning == TRUE) {
if (unk_0xA0 == TRUE) {
mbTaskCanceled = TRUE;
mPrevState = STATE_SCROLL_RIGHT;
mState = STATE_WAIT_TASK;
@@ -577,7 +577,7 @@ namespace ipl {
mPrevState = mState;
mState = STATE_SCROLL_LEFT;
if (mbSearchTaskRunning) {
if (unk_0xA0) {
mbTaskCanceled = TRUE;
mPrevState = STATE_SCROLL_LEFT;
mState = STATE_WAIT_TASK;
@@ -616,7 +616,7 @@ namespace ipl {
mPrevState = mState;
mState = STATE_DONE;
if (mbSearchTaskRunning == TRUE) {
if (unk_0xA0 == TRUE) {
OSReport("検索タスク終了要求\n"); // "Search task termination requested"
mbTaskCanceled = TRUE;
mPrevState = mState;
@@ -863,14 +863,14 @@ namespace ipl {
OSReport("タスク終了\n"); // Task end
calendar->mbSearchTaskRunning = FALSE;
calendar->unk_0xA0 = FALSE;
calendar->mbTaskCanceled = FALSE;
}
}
void Calendar::exec_search_task() {
OSReport("検索開始\n"); // Start search
mbSearchTaskRunning = TRUE;
unk_0xA0 = TRUE;
System::getTask1()->requestJam(search_task_, this, NULL);
}

View File

@@ -67,7 +67,7 @@ namespace ipl {
DECOMP_FORCE_ACTIVE(iplDate_cpp, padding);
Date::Date(EGG::Heap* heap, nand::LayoutFile* file, const char* layoutFolder, const char* layoutFileName)
: ::gui::EventHandler(), mbAppearMsg(0), mFocusState(0), mPendingFocusCmd(0), mpLayout(NULL), mpCurrentPaneAnim(0), mPointCount(0) {
: ::gui::EventHandler(), mbAppearMsg(0), unk_0x10(0), unk_0x14(0), mpLayout(NULL), mpCurrentPaneAnim(0), unk_0x3C(0) {
// Layout
mpLayout = new layout::Object(heap, file, layoutFolder, layoutFileName);
@@ -103,16 +103,16 @@ namespace ipl {
onCmdRecv(3);
}
onCmdRecv(mPendingFocusCmd);
onCmdRecv(unk_0x14);
}
void Date::draw(bool unk) {
if (unk) {
if (mPointCount != 0) {
if (unk_0x3C != 0) {
mpLayout->draw();
}
} else {
if (mPointCount == 0) {
if (unk_0x3C == 0) {
mpLayout->draw();
}
}
@@ -210,7 +210,7 @@ namespace ipl {
void Date::start_point_event(const char* paneName, controller::Interface* con) {
if (strcmp(paneName, scB_Cal) == 0) {
if (mPointCount == 0) {
if (unk_0x3C == 0) {
static_cast<Calendar*>(System::getScene(SCENE_CALENDAR))->onPointDate(this);
onCmdRecv(1);
@@ -221,16 +221,16 @@ namespace ipl {
}
}
}
mPointCount++;
unk_0x3C++;
}
}
void Date::start_left_event(const char* paneName) {
if (strcmp(paneName, scB_Cal) == 0) {
if (mPointCount == 1) {
if (unk_0x3C == 1) {
onCmdRecv(2);
}
mPointCount--;
unk_0x3C--;
}
}
@@ -268,35 +268,35 @@ namespace ipl {
void Date::onCmdRecv(int cmd) {
if (cmd == 1 || cmd == 2) {
mPendingFocusCmd = cmd;
unk_0x14 = cmd;
}
switch (mFocusState) {
switch (unk_0x10) {
case 0: {
if (cmd == 1) {
mpCurrentPaneAnim = doAnim(IDANIM_FOCUS_IN);
mFocusState = 1;
unk_0x10 = 1;
} else if (cmd == 2) {
mpCurrentPaneAnim = doAnim(IDANIM_FOCUS_OUT);
mFocusState = 2;
unk_0x10 = 2;
}
break;
}
case 1: {
if (cmd == 3) {
if (mPendingFocusCmd == 1) {
mPendingFocusCmd = 0;
if (unk_0x14 == 1) {
unk_0x14 = 0;
}
mFocusState = 0;
unk_0x10 = 0;
}
break;
}
case 2: {
if (cmd == 3) {
if (mPendingFocusCmd == 2) {
mPendingFocusCmd = 0;
if (unk_0x14 == 2) {
unk_0x14 = 0;
}
mFocusState = 0;
unk_0x10 = 0;
}
break;
}
@@ -306,7 +306,7 @@ namespace ipl {
void Date::initEvent() {
mpGui->init();
mpPaneAnims[ANIM_PANE_BTN_HOVER]->initAnmFrame(0.0f);
mPointCount = 0;
unk_0x3C = 0;
onCmdRecv(3);
}

View File

@@ -1734,13 +1734,11 @@ namespace ipl {
}
}
extern "C" char scSE_WSD_SELECT[] = "WSD_SELECT";
void ChannelSelect::preparePageScrolling(int nextState) {
mbModuleSceneChange = true;
mState = nextState;
unk_0x185 = false;
snd::getSystem()->startSE(scSE_WSD_SELECT);
snd::getSystem()->startSE("WSD_SELECT");
}
void ChannelSelect::startPageScroll(int nextState) {
@@ -2089,6 +2087,7 @@ namespace ipl {
mpMoveLytDrop->getAnim()->initAnmFrame();
}
extern "C" char scSE_WSD_SELECT[] = "WSD_SELECT";
extern "C" char scSE_WIPL_SE_CH_TARGETTING[] = "WIPL_SE_CH_TARGETTING";
extern "C" char scSE_WIPL_SE_CH_HOLD[] = "WIPL_SE_CH_HOLD";
extern "C" char scSE_WIPL_SE_CH_SET[] = "WIPL_SE_CH_SET";

View File

@@ -449,7 +449,7 @@ namespace ipl {
mpRsoExpHeaps[0] = EGG::ExpHeap::create(0x80000, System::getMem2App(), MEM_HEAP_OPT_THREAD_SAFE | MEM_HEAP_OPT_DEBUG_FILL);
mpRsoExpHeaps[1] = EGG::ExpHeap::create(0x80000, System::getMem2App(), MEM_HEAP_OPT_THREAD_SAFE | MEM_HEAP_OPT_DEBUG_FILL);
getButton()->setSuppressNewMailAnm(true);
getButton()->setUnk_0x105(true);
}
void ChannelTitle::calcCommon() {
@@ -931,7 +931,7 @@ namespace ipl {
System::getChannelManager()->resetChJumpLoad();
getButton()->setSuppressNewMailAnm(false);
getButton()->setUnk_0x105(false);
}
BOOL ChannelTitle::isResetAcceptable() const {

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

@@ -1,4 +1,3 @@
#define IPL_MEMORY_CARD_MANAGER_CPP
#include "scene/memoryCard/iplMemoryCardManager.h"
#include "utility/iplCharacterCode.h"
#include <revolution/sc.h>
@@ -253,9 +252,7 @@ void MemoryCardManager::update_icon_anm() {
u32 file = mFile[slot][index].fileNo;
if (file < 0x7f && dirs[slot][file].fileNo != 0) {
memorycard::IconState* icon = icons[slot] + file;
s8 delta = icon->anmDelta;
s16 currentFrame = mFileCell[slot][file].iconAnmCounter;
s32 frame = currentFrame + delta;
s32 frame = mFileCell[slot][file].iconAnmCounter + icon->anmDelta;
mFileCell[slot][file].iconAnmCounter = frame;
if ((s16)frame >= icons[slot][file].anmMax) {
if (icon->anmType == 4) {
@@ -345,10 +342,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

@@ -60,7 +60,7 @@ namespace ipl {
"A", "B", "B_BtnA",
};
static const char* sTitlePaneNames[] = {"A", "B", "C", "D", "B_BtnA"};
static const char* sTitlePaneNames[] = {"A", "B", "B_BtnA", "C", "D"};
static const char* sAdditionalTitlePaneNames[] = {"B_00", "C_00", "D_00", "B_BtnA"};
static const char* sDialogPaneNames[] = {"B_ArwR", "B_ArwL", "B_CalExit", "B_CalExit_00"};

View File

@@ -225,7 +225,8 @@ void SDChannelTitle::create() {
comment->SetString(System::getMessage(0xad));
iplSDChannelTitle_rebuildBannerLayout(this);
mpFade = new math::HermiteIntp<f32>();
mpFade->init(0.0f, 255.0f, 28.0f, 0.0f, 0.0f);
static f32 fadeRange[2] = {0.0f, 255.0f};
mpFade->init(fadeRange[0], fadeRange[1], 28.0f, 0.0f, 0.0f);
mpFade->setAnmType(ANIM_TYPE_FORWARD);
mpScreenCapture = new (System::getTreasureHeap(), 32) utility::Capture(System::getTreasureHeap(), 0, 0,
System::getRenderModeObj()->fbWidth, System::getRenderModeObj()->efbHeight, GX_TF_RGB565);
@@ -1015,7 +1016,8 @@ extern "C" void iplSDChannelTitle_preparePageRestart(SDChannelTitle* scene) {
if (!scene->mScriptEnabled || scene->mScriptState == 4) {
if (scene->mpChannelSelect->prepareRestarting(scene->mPage)) {
scene->mpChannelSelect->startPageTransition(scene->mPage, scene->mIndex);
scene->mpFade->init(0.0f, 255.0f, 28.0f, 0.0f, 0.0f);
static f32 fadeRange[2] = {0.0f, 255.0f};
scene->mpFade->init(fadeRange[0], fadeRange[1], 28.0f, 0.0f, 0.0f);
scene->mpFade->setAnmType(ANIM_TYPE_BACKWARD);
scene->mpFade->play();
scene->mState = 6;

View File

@@ -3,15 +3,15 @@
#include <private/wd.h>
#include <string.h>
s32 AOSSi_cancel_flag = 0;
static u8 ipAddress[4] = {0};
static u8 ipNetmask[4] = {0};
static u8 ipGateway[4] = {0};
static u8 primaryDns[4] = {0};
static u8 secondaryDns[4] = {0};
static void* (*allocateMemory)(u32, s32) = NULL;
static void (*releaseMemory)(u32, void*, s32) = NULL;
static void (*statusCallback)(void) = NULL;
s32 AOSSi_cancel_flag;
static u8 ipAddress[4];
static u8 ipNetmask[4];
static u8 ipGateway[4];
static u8 primaryDns[4];
static u8 secondaryDns[4];
static void* (*allocateMemory)(u32, s32);
static void (*releaseMemory)(u32, void*, s32);
static void (*statusCallback)(void);
static NCDIfConfig AOSSi_NcdIfConfig;
static NCDIpConfig AOSSi_NcdIpConfig;

View File

@@ -38,10 +38,9 @@ extern "C" RakuStatus sRakuStatus;
RakuStatus sRakuStatus;
extern "C" OSMessageQueue sRakuMsgQueue;
OSMessageQueue sRakuMsgQueue;
static u32 startTimeHigh = 0;
static u32 startTimeLow = 0;
static bool active = false;
static OSMessage messageSlot = NULL;
static OSTime startTime;
static bool active;
static OSMessage messageSlot;
static int displayState = 1;
extern "C" {
@@ -82,9 +81,7 @@ private:
void RakuRakuThread::syncRakuProgress() {
BOOL interrupts = OSDisableInterrupts();
sRakuStatus.progress = *(RakuProgress*)this;
OSTime time = OSGetTime();
startTimeHigh = time >> 32;
startTimeLow = time;
startTime = OSGetTime();
OSRestoreInterrupts(interrupts);
}
@@ -140,9 +137,7 @@ int RakuRakuThread::start() {
return 0;
}
BOOL interrupts = OSDisableInterrupts();
OSTime time = OSGetTime();
startTimeHigh = time >> 32;
startTimeLow = time;
startTime = OSGetTime();
mHeap = MEMCreateExpHeapEx(mHeapBuffer, 0x40000, 2);
MEMInitAllocatorForExpHeap(&sRakuAllocator, mHeap, 32);
mPriority = OSGetThreadPriority(OSGetCurrentThread()) - 1;
@@ -218,7 +213,7 @@ int RakuRakuThread::getState() {
default: displayState = 1; break;
}
if (displayState != 6 && displayState != 7 &&
((u32)OSGetTime() - startTimeLow) / (OS_TIMER_CLOCK / 1000) >= 90000) {
((u32)OSGetTime() - (u32)startTime) / (OS_TIMER_CLOCK / 1000) >= 90000) {
OSSendMessage(&sRakuMsgQueue, (OSMessage)1, 0);
}
OSRestoreInterrupts(interrupts);

View File

@@ -17,16 +17,8 @@ namespace ipl {
class SensitivityDrawing {
public:
static void draw(nand::File* texture);
private:
static void verticalScale(f32 height, f32& scale);
static f32 horizontalScale(f32 width);
static f32 projectY(s32 y, f32 scale);
};
void SensitivityDrawing::verticalScale(f32 height, f32& scale) { scale = 0.5f * height / 768.0f; }
f32 SensitivityDrawing::horizontalScale(f32 width) { return 0.5f * width / 1024.0f; }
f32 SensitivityDrawing::projectY(s32 y, f32 scale) { return (y - 384) * scale; }
void SensitivityDrawing::draw(nand::File* texture) {
GXRenderModeObj renderMode = *System::getRenderModeObj();
nw4r::ut::Rect projection;
@@ -55,9 +47,8 @@ void SensitivityDrawing::draw(nand::File* texture) {
GXInitTexObjWrapMode(&image, GX_MIRROR, GX_MIRROR);
f32 width = projection.GetWidth();
f32 height = projection.GetHeight();
f32 horizontalScale = SensitivityDrawing::horizontalScale(width);
f32 verticalScale;
SensitivityDrawing::verticalScale(height, verticalScale);
f32 horizontalScale = (0.5f * width) / 1024.0f;
f32 verticalScale = (0.5f * height) / 768.0f;
int sample = WPADGetLatestIndexInBuf(controller->getChannel());
DPDObject* object;
DPDObject* first;
@@ -85,7 +76,7 @@ void SensitivityDrawing::draw(nand::File* texture) {
if (object->size != 0) {
f32 radius = 0.15f * (object->size + 25);
f32 x = (object->x - 512) * horizontalScale;
f32 y = projectY(object->y, verticalScale);
f32 y = (object->y - 384) * verticalScale;
GXColor foreground = {255, 255, 255, 255};
nw4r::ut::Rect rectangle(x - radius, -y + radius - -45.0f,
x + radius, -y - radius - -45.0f);

View File

@@ -36,6 +36,12 @@ extern "C" int abs(int value);
extern "C" void __VISetAdjustingValues(s32 horizontal, s32 vertical);
namespace ipl {
namespace scene {
static s32 browserScrollDirection;
}
}
namespace ipl {
class SensitivityDrawing {
public:
@@ -143,7 +149,6 @@ namespace ipl {
void* Setting::mem1Buffer_;
void* Setting::mem2Buffer_;
static s32 browserScrollDirection;
Setting::Setting(EGG::Heap* heap, int arg) : FaderSceneBase(heap) {
unk_0x5C = 0;
@@ -412,7 +417,7 @@ namespace ipl {
"Setup/ScreenSave.html", "Setup/ScreenSave.html",
"Setup/ScreenSave.html", "Setup/ScreenSave.html",
"Setup/ScreenSave.html", "Setup/ScreenSave.html",
"Setup/ScreenSave.html", "Setup/ScreenSave.html"};
"Setup/ScreenSave.html", "Calendar"};
char basePath[100];
char browserPath[100];
@@ -438,8 +443,8 @@ namespace ipl {
snprintf(browserPath, sizeof(browserPath), basePath, regionCodes[regionIndex],
languageCodes[System::getLanguage()], regionPages[regionIndex]);
} else if (mInitialArgument == ARG_UNK_6) {
const char* pageNames[] = {"Calendar", "Display", "Sound", "Parental_Control",
"Internet", "Wiiconnect24", "Update"};
const char* pageNames[] = {"Display", "Sound", "Parental_Control", "Internet",
"Wiiconnect24", "Update", "Update"};
int directPage;
for (directPage = 0; directPage < 7; directPage++) {
if (strstr(mpStringBuffer->netSettingArg, pageNames[directPage]) != NULL) {
@@ -2162,8 +2167,8 @@ namespace ipl {
const char* versionSuffix[12] = {"J", "U", "E", "", "", "J", "K", "", "", "", "", "C"};
u32 versionData[24] = {
0x00010008, 0x48414B4A, 0x00010008, 0x48414B45, 0x00010008, 0x48414B50,
0, 0, 0, 0, 0x00010008, 0x48414B4A, 0x00010008, 0x48414B4B,
0, 0, 0, 0, 0, 0, 0, 0, 0x00010008, 0x48414B43,
0, 0, 0, 0, 0, 0, 0x00010008, 0x48414B4A, 0x00010008, 0x48414B4B,
0, 0, 0, 0, 0, 0, 0x00010008, 0x48414B43,
};
u32 region = System::getRegion();
sprintf(mpStringBuffer->version, "Ver. %d.%d%s", 4, 3, versionSuffix[region]);
@@ -3740,13 +3745,13 @@ namespace ipl {
layout::Animator* animation = mpWaitLayout->getAnim(0);
animation->initFrame();
animation->restart();
mpWaitLayout->FindPaneByName("N_Wait")->SetVisible(true);
mpWaitLayout->FindPaneByName("G_Wait")->SetVisible(true);
snd::getSystem()->startSE("WIPL_SE_COPYING");
}
void Setting::waitFinish() {
mpWaitLayout->getAnim(0)->stop();
mpWaitLayout->FindPaneByName("N_Wait")->SetVisible(false);
mpWaitLayout->FindPaneByName("G_Wait")->SetVisible(false);
snd::getSystem()->startSE("WIPL_SE_COPY_FINISH");
}
@@ -3844,12 +3849,5 @@ namespace ipl {
return mIsResetAcceptable;
}
extern const wchar_t scNumber[10] = {
L'0', L'1', L'2', L'3', L'4', L'5', L'6', L'7', L'8', L'9'
};
extern const wchar_t scNumber2[10] = {
L'0', L'1', L'2', L'3', L'4', L'5', L'6', L'7', L'8', L'9'
};
} // namespace scene
} // namespace ipl

View File

@@ -5,22 +5,17 @@
static OSThread usbapThread;
static u8 usbapStack[4096];
static OSMessageQueue usbapMessageQ;
static wchar_t usbapNickname[12];
static wchar_t usbapNickname[11];
static OSMessage registrationMessage;
static void (*registrationCallback)(int);
static s32 registrationMode;
static u16 enabledChannels;
static u8* scanBuffer;
// Registration buffer: a count byte followed by twenty MAC addresses.
static u8* registeredAccessPoints;
static inline int FindRegisteredAddress(const u8* registered, const u8* address) {
int index;
for (index = 0; index < 20; ++index) {
if (memcmp(address, &registered[index * WD_BSSID_LENGTH + 1], WD_BSSID_LENGTH) == 0) break;
}
return index;
}
struct RegisteredAccessPoints {
u8 count;
u8 addresses[20][6];
};
static RegisteredAccessPoints* registeredAccessPoints;
extern "C" {
static void* DoRegistration(void*);
@@ -31,7 +26,7 @@ extern "C" BOOL USBAPStartRegistration(void*, void*, u32 priority, u32 mode,
u16* buffer, u8* accessPoints) {
BOOL interrupts = OSDisableInterrupts();
scanBuffer = (u8*)buffer;
registeredAccessPoints = accessPoints;
registeredAccessPoints = (RegisteredAccessPoints*)accessPoints;
if (usbapThread.state != 0 && !OSIsThreadTerminated(&usbapThread)) {
OSRestoreInterrupts(interrupts);
return FALSE;
@@ -83,13 +78,8 @@ struct USBAPScan {
};
static void* DoRegistration(void*) {
int failed, found, index;
s32 count;
WDBssDesc* accessPoint;
int result;
int address;
const u8* registered;
BOOL success;
int result;
if (WDCheckEnableChannel(&enabledChannels) != 0) {
success = FALSE;
if (registrationCallback != NULL) {
@@ -126,20 +116,25 @@ static void* DoRegistration(void*) {
memset(scan.ssidMask, 0, 8);
memset(&scan.ssidMask[8], 255, 24);
if (WDScanOnce(scanBuffer, 2048, (WDScanParam*)&scan) == 0) {
count = *(u16*)scanBuffer;
accessPoint = (WDBssDesc*)&scanBuffer[2];
found = 0;
failed = 0;
for (index = 0; index < count; ++index) {
u16 count = *(u16*)scanBuffer;
WDBssDesc* accessPoint = (WDBssDesc*)&scanBuffer[2];
int found = 0;
int failed = 0;
for (int index = 0; index < count; ++index) {
if (accessPoint->ssidLength == 32 && strncmp((char*)accessPoint->ssid, "NWCUSBAP", 8) == 0) {
registered = registeredAccessPoints;
address = FindRegisteredAddress(registered, accessPoint->bssid);
RegisteredAccessPoints* registered = registeredAccessPoints;
int address;
for (address = 0; address < 20; ++address) {
if (memcmp(accessPoint->bssid, registered->addresses[address], 6) == 0) {
break;
}
}
if (address == 20) {
USBAPSSID* response = (USBAPSSID*)accessPoint->ssid;
if (response->flags == 1) {
memcpy(&registeredAccessPoints[registeredAccessPoints[0] * WD_BSSID_LENGTH + 1], accessPoint->bssid, WD_BSSID_LENGTH);
memcpy(registeredAccessPoints->addresses[registeredAccessPoints->count], accessPoint->bssid, 6);
found = 1;
++registeredAccessPoints[0];
++registeredAccessPoints->count;
} else if (response->flags == 0) {
failed = 1;
}

View File

@@ -10,6 +10,13 @@
#undef IPL_SOUND_RECT_OUT_OF_LINE
#undef AutoLock
extern "C" void __ct__Q23EGG20SimpleAudioMgrWithFxFv();
extern "C" void __dt__Q34nw4r3snd11SoundHandleFv();
extern "C" void __dl__FPv();
extern "C" {
void __destroy_arr();
void __dt__Q33ipl3snd10tagSSeInfoFv();
}
extern "C" void _seBlk__Q23ipl3snd();
extern "C" nw4r::snd::SoundHandle* _mainBGMHandle__Q23ipl3snd;
extern "C" const f32 scSoundZeroF;
@@ -17,9 +24,19 @@ extern "C" const f32 scSoundOneF;
extern "C" const f32 scSoundTwoF;
extern "C" const f32 scSoundThirtyF;
extern "C" const f32 scSoundSixtyF;
extern "C" {
void _savegpr_29();
void pauseOffSE__Q33ipl3snd6SystemFv();
void pauseOnSE__Q33ipl3snd6SystemFv();
}
extern "C" void _restgpr_29();
extern "C" void _savegpr_24();
extern "C" void _restgpr_24();
extern "C" void _savegpr_26();
extern "C" void _restgpr_26();
extern "C" void sBannerSoundPlayer__Q23ipl3snd();
extern "C" void pause__17BannerSoundPlayerFb();
extern "C" void initFx__Q33ipl3snd6SystemFv();
extern "C" void GetInstance__Q44nw4r3snd6detail9AxManagerFv();
extern "C" void ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi();
extern "C" void stop__17BannerSoundPlayerFUl();
@@ -28,8 +45,9 @@ extern "C" void SetMasterVolume__Q44nw4r3snd6detail9AxManagerFfi();
namespace ipl {
namespace snd {
extern "C" void __vt__Q33ipl3snd6System();
inline System::System() {
System::System() {
}
struct tagSSeInfo {
@@ -41,30 +59,39 @@ namespace ipl {
u32 id;
};
inline tagSSeInfo::tagSSeInfo() {
tagSSeInfo::tagSSeInfo() {
}
BOOL m_isLocked;
struct tagSBgmInfo {
nw4r::snd::SoundHandle handle;
tagSBgmInfo();
~tagSBgmInfo();
};
inline tagSBgmInfo::tagSBgmInfo() {
tagSBgmInfo::tagSBgmInfo() {
}
inline tagSSeInfo::~tagSSeInfo() {
tagSSeInfo::~tagSSeInfo() {
}
inline tagSBgmInfo::~tagSBgmInfo() {
tagSBgmInfo::~tagSBgmInfo() {
}
tagSSeInfo _seBlk[16];
tagSBgmInfo _bgmBlk;
System sSystem;
BannerSoundPlayer sBannerSoundPlayer;
nw4r::snd::SoundHandle* _mainBGMHandle;
BOOL m_isLocked;
extern nw4r::snd::SoundHandle _bgmBlk;
extern tagSSeInfo _seBlk[16];
extern nw4r::snd::SoundHandle* _mainBGMHandle;
extern "C" asm void __dt__Q33ipl3snd6UnkClsFv() {
nofralloc
lis r3, _seBlk__Q23ipl3snd@ha
lis r4, __dt__Q33ipl3snd10tagSSeInfoFv@ha
addi r3, r3, _seBlk__Q23ipl3snd@l
li r5, 0xc
addi r4, r4, __dt__Q33ipl3snd10tagSSeInfoFv@l
li r6, 0x10
b __destroy_arr
}
static const nw4r::snd::FxReverbHi::ReverbHiParam reverbHiParam = {
0.0f,
@@ -75,6 +102,183 @@ namespace ipl {
1.0f,
};
void System::stopBGM(int frames) {
if (_mainBGMHandle && _mainBGMHandle->IsAttachedSound()) {
_mainBGMHandle->Stop(frames);
}
}
void System::muteOnBGM(int frames) {
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
if (handle && handle->IsAttachedSound()) handle->SetVolume(0.0f, frames);
}
void System::muteOffBGM(int frames) {
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
if (handle && handle->IsAttachedSound()) handle->SetVolume(1.0f, frames);
}
void System::pauseOnSE() {
for (int index = 0; index < 16; ++index) {
if (_seBlk[index].handle.IsAttachedSound()) {
_seBlk[index].handle.Pause(true, 5);
}
}
}
void System::pauseOffSE() {
for (int index = 0; index < 16; ++index) {
if (_seBlk[index].handle.IsAttachedSound()) {
_seBlk[index].handle.Pause(false, 5);
}
}
}
void System::pauseOnBGM() {
if (_mainBGMHandle) {
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(true, 5);
pauseOnSE();
sBannerSoundPlayer.pause(true);
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_A, 250);
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_B, 250);
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, 250);
}
}
void System::pauseOffBGM() {
if (_mainBGMHandle) {
initFx();
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(false, 5);
pauseOffSE();
sBannerSoundPlayer.pause(false);
}
}
extern "C" asm void stopSE__Q33ipl3snd6SystemFPQ34nw4r3snd11SoundHandlei() {
nofralloc
stwu r1, -0x30(r1)
mflr r0
stw r0, 0x34(r1)
addi r11, r1, 0x30
bl _savegpr_24
cmpwi r4, 0
mr r24, r4
mr r25, r5
beq stopSE_done
lwz r0, 0(r4)
cmpwi r0, 0
beq stopSE_done
li r26, 0
lis r3, 1
lis r28, _seBlk__Q23ipl3snd@ha
li r31, 0
mr r29, r26
subi r30, r3, 1
addi r28, r28, _seBlk__Q23ipl3snd@l
stopSE_loop:
add r27, r28, r31
cmplw r24, r27
bne stopSE_next
lwz r3, 0(r27)
cmpwi r3, 0
beq stopSE_clear
lwz r12, 0(r3)
mr r4, r25
lwz r12, 0x18(r12)
mtctr r12
bctrl
stopSE_clear:
stw r29, 0x4(r27)
stw r30, 0x8(r27)
stopSE_next:
addi r26, r26, 1
addi r31, r31, 0xc
cmpwi r26, 0x10
blt stopSE_loop
stopSE_done:
addi r11, r1, 0x30
bl _restgpr_24
lwz r0, 0x34(r1)
mtlr r0
addi r1, r1, 0x30
blr
}
extern "C" asm void resetAllSound__Q33ipl3snd6SystemFv() {
nofralloc
stwu r1, -0x20(r1)
mflr r0
stw r0, 0x24(r1)
addi r11, r1, 0x20
bl _savegpr_26
li r26, 0
lis r28, _seBlk__Q23ipl3snd@ha
lis r3, 1
li r31, 0
mr r29, r26
addi r28, r28, _seBlk__Q23ipl3snd@l
subi r30, r3, 1
resetAllSound_loop:
lwzx r3, r28, r31
add r27, r28, r31
cmpwi r3, 0
beq resetAllSound_clear
lwz r12, 0(r3)
li r4, 0
lwz r12, 0x18(r12)
mtctr r12
bctrl
resetAllSound_clear:
stw r29, 0x4(r27)
addi r26, r26, 1
cmpwi r26, 0x10
addi r31, r31, 0xc
stw r30, 0x8(r27)
blt resetAllSound_loop
lwz r3, _mainBGMHandle__Q23ipl3snd
cmpwi r3, 0
beq resetAllSound_banner
lwz r0, 0(r3)
cmpwi r0, 0
beq resetAllSound_banner
lwz r3, 0(r3)
li r4, 0
lwz r12, 0(r3)
lwz r12, 0x18(r12)
mtctr r12
bctrl
resetAllSound_banner:
lis r31, sBannerSoundPlayer__Q23ipl3snd@ha
li r4, 0
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
bl stop__17BannerSoundPlayerFUl
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
li r4, 0
li r5, 0
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
li r4, 1
li r5, 0
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
li r4, 2
li r5, 0
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
lfs f1, scSoundZeroF
li r4, 0
bl SetMasterVolume__Q44nw4r3snd6detail9AxManagerFfi
lfs f1, scSoundZeroF
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
bl setMasterVolume__17BannerSoundPlayerFf
addi r11, r1, 0x20
bl _restgpr_26
lwz r0, 0x24(r1)
mtlr r0
addi r1, r1, 0x20
blr
}
void System::shutup(BOOL shutUpDMA) {
if (m_isLocked == shutUpDMA) {
return;
@@ -111,10 +315,32 @@ namespace ipl {
sBannerSoundPlayer.setMasterVolume(0.9f);
}
extern "C" const f32 scSoundZeroF = 0.0f;
void System::stopBannerSound(int unk) {
sBannerSoundPlayer.stop(unk);
}
BOOL System::checkTmpSoundFile(void* data, u32 size) {
return sBannerSoundPlayer.checkData(data, size, false);
}
void System::initFx() {
setFxReverbHi(nw4r::snd::AUX_A, &reverbHiParam);
}
#pragma force_active on
}
}
namespace nw4r {
namespace snd {
SoundHandle::SoundHandle() : mSound(NULL) {}
}
}
namespace ipl {
namespace snd {
void System::calc() {
EGG::SimpleAudioMgr::calc();
sBannerSoundPlayer.calc();
@@ -125,9 +351,9 @@ namespace ipl {
return NULL;
}
EGG::ArcPlayer::startSound(&_bgmBlk.handle, bgmName);
_mainBGMHandle = &_bgmBlk.handle;
return &_bgmBlk.handle;
EGG::ArcPlayer::startSound(&_bgmBlk, bgmName);
_mainBGMHandle = &_bgmBlk;
return &_bgmBlk;
}
nw4r::snd::SoundHandle* System::startSE(const char* sndName) {
@@ -196,7 +422,7 @@ namespace ipl {
}
block->handle.Stop(0);
EGG::ArcPlayer::startSound(&block->handle, sndIndex);
mSoundArchivePlayer.StartSound(&block->handle, sndIndex);
block->id = sndIndex;
return (int)block;
}
@@ -294,27 +520,6 @@ namespace ipl {
return (int)block;
}
void System::stopBGM(int frames) {
if (_mainBGMHandle && _mainBGMHandle->IsAttachedSound()) {
_mainBGMHandle->Stop(frames);
}
}
void System::stopSE(nw4r::snd::SoundHandle* handle, int frames) {
tagSSeInfo* block;
int i;
if (handle != NULL && handle->IsAttachedSound()) {
for (i = 0; i < 16; i++) {
block = &_seBlk[i];
if (handle == &block->handle) {
block->handle.Stop(frames);
block->name = NULL;
block->id = 0xFFFF;
}
}
}
}
void System::stopAllSound(int unk) {
int frame;
tagSSeInfo* block;
@@ -338,137 +543,6 @@ namespace ipl {
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, frame);
}
extern "C" asm void resetAllSound__Q33ipl3snd6SystemFv() {
nofralloc
stwu r1, -0x20(r1)
mflr r0
stw r0, 0x24(r1)
addi r11, r1, 0x20
bl _savegpr_26
li r26, 0
lis r28, _seBlk__Q23ipl3snd@ha
lis r3, 1
li r31, 0
mr r29, r26
addi r28, r28, _seBlk__Q23ipl3snd@l
subi r30, r3, 1
resetAllSound_loop:
lwzx r3, r28, r31
add r27, r28, r31
cmpwi r3, 0
beq resetAllSound_clear
lwz r12, 0(r3)
li r4, 0
lwz r12, 0x18(r12)
mtctr r12
bctrl
resetAllSound_clear:
stw r29, 0x4(r27)
addi r26, r26, 1
cmpwi r26, 0x10
addi r31, r31, 0xc
stw r30, 0x8(r27)
blt resetAllSound_loop
lwz r3, _mainBGMHandle__Q23ipl3snd
cmpwi r3, 0
beq resetAllSound_banner
lwz r0, 0(r3)
cmpwi r0, 0
beq resetAllSound_banner
lwz r3, 0(r3)
li r4, 0
lwz r12, 0(r3)
lwz r12, 0x18(r12)
mtctr r12
bctrl
resetAllSound_banner:
lis r31, sBannerSoundPlayer__Q23ipl3snd@ha
li r4, 0
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
bl stop__17BannerSoundPlayerFUl
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
li r4, 0
li r5, 0
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
li r4, 1
li r5, 0
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
li r4, 2
li r5, 0
bl ClearEffect__Q44nw4r3snd6detail9AxManagerFQ34nw4r3snd6AuxBusi
bl GetInstance__Q44nw4r3snd6detail9AxManagerFv
lfs f1, scSoundZeroF
li r4, 0
bl SetMasterVolume__Q44nw4r3snd6detail9AxManagerFfi
lfs f1, scSoundZeroF
addi r3, r31, sBannerSoundPlayer__Q23ipl3snd@l
bl setMasterVolume__17BannerSoundPlayerFf
addi r11, r1, 0x20
bl _restgpr_26
lwz r0, 0x24(r1)
mtlr r0
addi r1, r1, 0x20
blr
}
}
}
namespace nw4r {
namespace snd {
inline SoundHandle::SoundHandle() : mSound(NULL) {}
}
}
namespace ipl {
namespace snd {
void System::muteOnBGM(int frames) {
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
if (handle && handle->IsAttachedSound()) handle->SetVolume(scSoundZeroF, frames);
}
void System::muteOffBGM(int frames) {
nw4r::snd::SoundHandle* handle = _mainBGMHandle;
if (handle && handle->IsAttachedSound()) handle->SetVolume(scSoundOneF, frames);
}
void System::pauseOnBGM() {
if (_mainBGMHandle) {
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(true, 5);
pauseOnSE();
sBannerSoundPlayer.pause(true);
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_A, 250);
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_B, 250);
nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, 250);
}
}
void System::pauseOffBGM() {
if (_mainBGMHandle) {
initFx();
if (_mainBGMHandle->IsAttachedSound()) _mainBGMHandle->Pause(false, 5);
pauseOffSE();
sBannerSoundPlayer.pause(false);
}
}
void System::pauseOnSE() {
for (int index = 0; index < 16; ++index) {
if (_seBlk[index].handle.IsAttachedSound()) {
_seBlk[index].handle.Pause(true, 5);
}
}
}
void System::pauseOffSE() {
for (int index = 0; index < 16; ++index) {
if (_seBlk[index].handle.IsAttachedSound()) {
_seBlk[index].handle.Pause(false, 5);
}
}
}
void System::setOutputMode(EAudioOutputMode mode) {
nw4r::snd::OutputMode outputMode;
@@ -550,14 +624,6 @@ namespace snd {
return sBannerSoundPlayer.start(data, size);
}
void System::stopBannerSound(int unk) {
sBannerSoundPlayer.stop(unk);
}
BOOL System::checkTmpSoundFile(void* data, u32 size) {
return sBannerSoundPlayer.checkData(data, size, false);
}
long System::clipGELT_S32(long value, long lo, long hi) {
long range = hi - lo;
@@ -576,10 +642,5 @@ namespace snd {
return value;
}
extern "C" const f32 scSoundZeroF = 0.0f;
extern "C" const f32 scSoundTwoF = 2.0f;
extern "C" const f32 scSoundOneF = 1.0f;
extern "C" const f32 scSoundThirtyF = 30.0f;
extern "C" const f32 scSoundSixtyF = 60.0f;
} // namespace snd
} // namespace ipl

View File

@@ -1,4 +1,3 @@
#define IPL_KEYBOARD_MEMO_GET_SAVE_DATA
#define IPL_SOUND_RECT_OUT_OF_LINE
#include "system/iplKeyboard.h"
@@ -219,7 +218,9 @@ namespace ipl {
u8* usedSystemDict = System::getZiDicData(i);
u8* usedOemDict = System::getZiDicData(oemIndex);
usedSystemDict = usedSystemDict != NULL ? usedSystemDict : systemDict;
if (usedSystemDict == NULL) {
usedSystemDict = systemDict;
}
if (usedOemDict == NULL) {
usedOemDict = oemDict;
}
@@ -744,7 +745,3 @@ namespace ipl {
}
} // namespace keyboard
} // namespace ipl
textinput::extend::savedata::MemoSetting textinput::extend::memo::Manager::getSaveData() {
return mMemoSetting;
}

View File

@@ -150,7 +150,7 @@ namespace ipl {
myWork->sdWriteProtected = FALSE;
myWork->prevAsyncResult = RESULT_WORKING;
mbCancel = false;
unk_0x04 = false;
OSResumeThread(&myWork->thread);
}
@@ -1235,7 +1235,7 @@ namespace ipl {
int result;
OSReport("NandSDWorker: cleaning partial nand app...\n");
for (int i = 0; i < titleIdCount; i++) {
if (mbCancel != false) {
if (unk_0x04 != false) {
return RESULT_UNK_18;
}
@@ -4877,7 +4877,7 @@ namespace ipl {
strncat(fmtStr, fileName, NAND_MAX_PATH);
while (faErr == FA_ERR_SUCCESS) {
if (mbCancel != false) {
if (unk_0x04 != false) {
return RESULT_UNK_18;
}

View File

@@ -1015,28 +1015,51 @@ namespace ipl {
return -1;
}
int Manager::isEqualChannel(ESTitleId titleId0, ESTitleId titleId1) {
if (titleId0 == titleId1) {
return -2;
}
if (TITLE_NO_REGION(titleId0) == TITLE_NO_REGION(titleId1)) {
if (TITLE_REGION(titleId0) != TITLE_REGION_ALL) {
if (TITLE_REGION(titleId1) == TITLE_REGION_ALL) {
return 0;
}
}
if (TITLE_REGION(titleId0) == TITLE_REGION_ALL) {
if (TITLE_REGION(titleId1) != TITLE_REGION_ALL) {
return 1;
}
}
return -1;
}
return -1;
asm int Manager::isEqualChannel(register ESTitleId titleId0, register ESTitleId titleId1) {
nofralloc
xor r3, r6, r8
xor r0, r5, r7
or. r0, r3, r0
bne isEqualChannel_L1
li r3, -2
blr
isEqualChannel_L1:
li r3, -0x100
li r0, -1
and r9, r6, r3
and r3, r8, r3
and r4, r5, r0
and r0, r7, r0
xor r3, r9, r3
xor r0, r4, r0
or. r0, r3, r0
bne isEqualChannel_L4
clrlwi r3, r6, 0x18
xori r0, r3, 0x41
cmpwi r0, 0
beq isEqualChannel_L2
clrlwi r0, r8, 0x18
xori r0, r0, 0x41
cmpwi r0, 0
bne isEqualChannel_L2
li r3, 0
blr
isEqualChannel_L2:
xori r0, r3, 0x41
cmpwi r0, 0
bne isEqualChannel_L3
clrlwi r0, r8, 0x18
xori r0, r0, 0x41
cmpwi r0, 0
beq isEqualChannel_L3
li r3, 1
blr
isEqualChannel_L3:
li r3, -1
blr
isEqualChannel_L4:
li r3, -1
blr
}
int Manager::isDefaultChannel(ESTitleId32 titleType, ESTitleId32 titleCode) {

View File

@@ -196,12 +196,45 @@ namespace ipl {
smArg.mbFontResLoaded = true;
}
#ifdef __MWERKS__
asm void System::constructSND_(register void* work) {
nofralloc
stwu r1, -0x10(r1)
mflr r0
li r4, 0x20
stw r0, 0x14(r1)
stw r31, 0xc(r1)
lis r31, smArg__Q23ipl6System@ha
addi r31, r31, smArg__Q23ipl6System@l
stw r30, 0x8(r1)
lwz r3, 0x14(r31)
lwz r5, 0xf4(r31)
lwz r12, 0(r3)
lwz r30, 0xa0(r5)
lwz r12, 0x24(r12)
mtctr r12
bctrl
lwz r5, 0x14(r31)
lis r7, sSystem__Q23ipl3snd@ha
mr r6, r3
mr r4, r30
addi r3, r7, sSystem__Q23ipl3snd@l
bl initOnMemory__Q33ipl3snd6SystemFPCvPQ23EGG4HeapUl
li r0, 1
stb r0, 0x2b7(r31)
lwz r0, 0x14(r1)
lwz r31, 0xc(r1)
lwz r30, 0x8(r1)
mtlr r0
addi r1, r1, 0x10
blr
}
#else
void System::constructSND_(void* work) {
const void* buffer = smArg.mResources.file[Arg::SOUND]->getBuffer();
u32 size = getSoundHeap()->getAllocatableSize(32);
snd::getSystem()->initOnMemory(buffer, getSoundHeap(), size);
snd::getSystem()->initOnMemory(smArg.mResources.file[Arg::SOUND]->getBuffer(), getSoundHeap(), getSoundHeap()->getAllocatableSize(32));
smArg.mbSndResLoaded = true;
}
#endif
void* System::loadZiDIC_(void* arcData, const char* fileName) {
void* buffer = NULL;

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

@@ -1,122 +0,0 @@
# Data lane d1
Base eecf16f0, fetched origin before inspection. Owned sources agree with origin/main. Initial full quick gate PASS, SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, zero regressions.
| Unit | Initial matched data / total | Initial exact functions | Initial matched code |
|---|---|---|---|
| OSUtf | 0 / 48704 | 4 / 4 | 568 / 568 |
| iplKeyboard | 8 / 1184 | 30 / 32 | 4680 / 6024 |
| iplController | 80 / 696 | 84 / 84 | 5708 / 5708 |
| d_nhttp | 16 / 720 | 22 / 22 | 3180 / 3180 |
All four pool_diff checks identical. Inspected both ELF symbol tables, all owned non-text section bytes, and relocation records with pyelftools.
## OSUtf
The 93 typed u16 lookup pages exactly match. The only 372 differing bytes are the 93 non-null pointers in UcsSjisTable. Original extraction retained absolute DOL addresses without relocation records because symbols.txt marks the pointer table noreloc. Built C table has 93 R_PPC_ADDR32 relocations to the correct UcsXX pages. First original values at offsets 0xba40, 0xba4c, 0xba50 are 0x81674228, 0x81674428, 0x81674628, precisely Ucs00, Ucs03, Ucs04 in symbols.txt. Remove noreloc only from the pointer table and describe data:4byte. Keep the u16 pages noreloc. No symbol address, size, section boundary, source object, or total byte count changes. Regenerated extraction now reports .data 100%, matched_data 48704/48704.
## iplController
All 616 original .data bytes and all 133 relocation records match built prefix exactly. All other sections match. Built .data is 752 bytes: Base vtable is 140 bytes instead of original extraction's 144, followed by a 140-byte weak Interface vtable at 0x264. Original trailing four bytes are zero without relocations, not a virtual slot. Existing original vtables and member-pointer objects have identical typed source and relocations. Extra weak abstract-base vtable is linker discarded in the already Matching unit, and current DOL hash proves linked data. No dummy padding, forced placement, or removing real virtual functions is justified.
## d_nhttp
Built .data 701 bytes is identical to original 704-byte prefix; last three extraction bytes are zero linker alignment. Built .sdata 6 bytes is identical to original 8-byte prefix; last two bytes zero alignment, and this section already scores 100%. The only relocation is __NHTTPVersion to first version string at offset zero on both sides. .sbss 8 bytes exact. No missing table or object. Changing array counts or adding padding would violate task policy. Already Matching DOL proves these linked bytes.
## iplKeyboard
Built .data 1161 bytes is byte-identical to original 1168-byte prefix. Last seven extraction bytes are zero alignment. Built .sdata 6 bytes is identical to original 8-byte prefix, with two zero alignment bytes. .sdata2 exact. All 85 .data relocation offsets and target names match; twelve create switch-table addends differ by exactly four bytes because create has 317 versus 318 instructions. Other data discrepancy is coarse original string symbols versus individual compiler literals. Do not shrink symbols or alter ownership to hide that. Investigate create source variations for switch-table instruction addresses.
Clean full four-unit gate PASS after OSUtf metadata correction; zero regressions, exact counts 4/30/84/22 unchanged, global matched data 93.05085 -> 95.70837. DOL hash correct.
Keyboard create attempt 1: separate ArcResourceLink declaration/assignment and omit value-initialization parentheses. Output unchanged, 317/318 instructions, objdiff 94.18239%. Reverted.
Keyboard create attempt 2: obtain the archive buffer directly at ArcResourceLink::Set instead of extending its lifetime across allocation. 317/318 instructions, 93.03459% objdiff, exact counts unchanged. Reverted.
Keyboard create attempt 3: separate allocator declaration/assignment and declare OEM dictionary before system dictionary. 317/318 instructions, 94.22956% objdiff, exact counts unchanged. Changed loop register assignment but did not recover the missing instruction or switch-table addends. Reverted; fuzzy gain alone is not accepted. Remaining create is 94.18239%, with allocation register lifetimes, loop registers, and one-instruction size discrepancy. Three distinct source attempts complete.
Keyboard getSaveData attempt 1: under a macro defined only by iplKeyboard.cpp, declare the existing virtual getter out of line, then implement the real member as `return mMemoSetting`. This emits the real function already present in the original object, without forcing references or changing any vtable slot. ctxdiff 18/18 instructions, diffs 0; exact-name objdiff 100%. Unit exact functions 30 -> 31 and matched code 4680 -> 4752. No new assembly. Other header consumers retain their existing inline definition. Stop iteration on this function because it is exact.
Final upstream check: origin/main advanced to 9eb08c48 while this leaf was running. None of the four owned units or the guarded getter header changed between eecf16f0 and current origin/main. No rebase or cross-worktree operations performed.
Data-lane audit: OSUtf has no unresolved section; all functions exact. Controller has no unresolved function, no byte or relocation difference in original section ranges, and only the linker-discarded weak Interface table beyond them. NHTTP has no unresolved function and only final zero alignment bytes in .data. Keyboard has exactly one open function, create, with three distinct source attempts above; getter is now exact. No additional non-text sections, missing statics, initializer differences, or pointer-table differences were found in these four original objects. Section ownership and symbol sizes remain unchanged throughout.
## Final verification
Clean non-quick four-unit gate PASS. Full build ok; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; regressions 0; forbidden patterns 0; readability warnings 0. Fresh pool_diff checks all identical. Fresh getter ctxdiff 18/18 instructions, diffs 0. Final exact counts OSUtf 4/4, keyboard 31/32, controller 84/84, NHTTP 22/22. Final matched data OSUtf 48704/48704, keyboard 8/1184, controller 80/696, NHTTP 16/720. Final matched code OSUtf 568/568, keyboard 4752/6024, controller 5708/5708, NHTTP 3180/3180. The gate passes but the all-data-100% objective is not met for the latter three units; no claim of completion for those sections. All remaining genuine unmatched functions have three distinct attempts recorded. Final full gate output is /tmp/data-d1.final-gate.txt.
# Round 2, after #730
Fresh leaf HEAD bcb2ac0e equals fetched origin/main at start. Initial quick three-unit gate PASS, DOL SHA1 correct, zero regressions. Keyboard data 8/1184, exact 31/32, code 4752/6024; controller data 80/696, exact 84/84, code 5708/5708; NHTTP data 16/720, exact 22/22, code 3180/3180. All three pool_diff checks identical. Rechecked ELF bytes, nm, objdump symbol tables and relocations. Prior round's byte/relocation findings remain reproducible.
Inspect the installed objdiff 3.4.5 data comparison algorithm to distinguish relocation mismatches from legal linker tail alignment; do not alter comparison settings or tool code to hide mismatches. Investigate source changes and extraction metadata only when supported by byte/relocation evidence.
Round 2 keyboard create attempt 1: replace the second loop's parallel OEM induction variable with the meaningful expression `i + EZTX_LANG_MAX`. Objdiff create 94.50944%, 313/318 instructions, no exact function loss. Compiler strength-reduces both indices into one byte offset and removes five instructions instead of recovering the target's independently maintained OEM index. Not accepted.
Objdiff 3.4.5 diff_data_section compares bytes up to maximum data symbol extent and only uses raw byte match percentage when every original relocation matches. This explains keyboard .data's 25% despite identical bytes: create jump-table relocations fail. The final keyboard data string ends at 1161 on both sides, so those seven section tail bytes do not obstruct .data matching. NHTTP original last coarse blob includes tail alignment and extends to 704 while built last literal ends at 701, so its 99.786476% score is the byte ratio 2*701/(704+701). Controller's extra weak Interface table extends built symbol extent to 752 against original 616. These are specific measured causes, not guessed missing objects. Do not change symbol sizes or suppress the real extra source vtable to fake matching.
Round 2 keyboard create attempt 2: express both OEM indices as `i + EZTX_LANG_MAX`, removing parallel induction variables. 309/318 instructions, create 92.28616%, no exact function loss. Both loops strength-reduce OEM addressing to the system byte offset plus 40, unlike target's separate index addition and shift. Reverted.
Round 2 keyboard create attempt 4, memo_declaration_order: src 0x4f4 base 0x4f8 insns 317/318; create 94.157234%; code 4752, data 8, exact-name functions 31.
Round 2 keyboard create attempt 5, memo_copy_initialization: src 0x4b8 base 0x4f8 insns 302/318; create 87.8522%; code 4752, data 8, exact-name functions 31.
Round 2 keyboard create attempt 6, dictionary_fallback_order: src 0x4f4 base 0x4f8 insns 317/318; create 93.83648%; code 4752, data 8, exact-name functions 31.
Round 2 keyboard create attempt 7, dictionary_ternary_fallback: src 0x4fc base 0x4f8 insns 319/318; create 93.93082%; code 4752, data 8, exact-name functions 31.
Round 2 keyboard create attempt 8, oem_load_after_system_fallback: src 0x4f4 base 0x4f8 insns 317/318; create 94.57861%; code 4752, data 8, exact-name functions 31.
Round 2 keyboard create attempt 9, signed_counter_unsigned_oem: src 0x4f4 base 0x4f8 insns 317/318; create 94.18239%; code 4752, data 8, exact-name functions 31.
Round 2 keyboard create attempt 3: use unsigned loop induction variables for both dictionaries, retaining parallel OEM indices. Output unchanged at 317/318 instructions and 94.18239%; exact functions remain 31. Reverted.
Round 2 controller vtable attempt 1: make the abstract Interface destructor an inline non-pure destructor under a source-only header guard. Abstractness remains enforced by decide and setForceInvalid; this tests whether the pure destructor caused unwanted table emission. All 84 original functions remain 100%, but extra Interface table remains and .data stays 92.03601%. Reverted both source and header; no justification for changing destructor semantics without a match.
Round 2 keyboard create attempt 10, system_ternary_fallback: src 0x4f8 base 0x4f8 insns 318/318; create 94.00944% ; code 4752, data 1176, exact-name functions 31.
Round 2 keyboard create attempt 11, oem_ternary_fallback: src 0x4f8 base 0x4f8 insns 318/318; create 94.00944% ; code 4752, data 1176, exact-name functions 31.
Round 2 keyboard create attempt 12, system_inverted_ternary: src 0x4f4 base 0x4f8 insns 317/318; create 94.35535% ; code 4752, data 8, exact-name functions 31.
Round 2 keyboard create attempt 13, oem_inverted_ternary: src 0x4f4 base 0x4f8 insns 317/318; create 94.35535% ; code 4752, data 8, exact-name functions 31.
Round 2 candidate: retain attempt 10's ordinary system dictionary fallback selection `usedSystemDict != NULL ? usedSystemDict : systemDict`. OEM selection remains unchanged. The resulting create has 318 instructions, and all twelve destination switch-table relocation addends now exactly match the original object. Both .data byte extents are 1161, and every one of the 85 original .data relocation records matches; objdiff .data is 100%, raising matched_data from 8 to 1176 of 1184. No string, symbol, section ownership, source object, or data byte is altered; no padding or assembly is introduced. This is a genuine relocation-data match from a readable conditional expression, even though create remains instruction-nonexact at 94.00944%. Instruction-exact count remains 31/32. Attempts 11 through 13 are not retained. The data-lane task permits improvements with unchanged exact counts; the generic worker count-growth criterion is not met.
Candidate quick three-unit gate PASS, zero regressions, zero forbidden patterns, zero readability warnings, correct DOL SHA1. Keyboard .data 100%; .sdata remains 85.71429%, .sdata2 100%. Controller .data 92.03601%; other data sections 100%. NHTTP .data 99.786476%; .sdata and .sbss 100%. No original extab/extabindex, .bss, or additional small-data sections are present in the owned objects.
Remaining keyboard .sdata contains `arc\0` at offset 0, followed by empty 16-bit wchar string at offset 4. Source literal is 2 bytes, extraction labels it as a 4-byte object including two alignment zeros. All instructions using it still match exactly. Changing L"" to an artificially longer null literal or enlarging its symbol would fabricate storage; neither is accepted. NHTTP and controller residual section differences remain exactly the extraction alignment/weak-vtable findings above. They contain no unmatched functions. All failed experimental source and header changes were restored before the candidate gate.
Attempts 4-9 detail: 4 reverses the two MemoSetting declarations; 5 uses direct initialization for the loaded setting and copied setting; 6 reverses system/OEM fallback statement order; 7 expresses both fallback selections as ternaries; 8 postpones the OEM pointer load until after system fallback selection; 9 moves OEM induction initialization outside the first loop and uses an unsigned system index. Each was independently compiled, measured, and reverted. Attempts 10/12 use respectively non-null/null-first system ternaries; 11/13 use respectively non-null/null-first OEM ternaries. Only 10 is retained. The single remaining unmatched function, keyboard create, has thirteen distinct source-level experiments in this round, in addition to the three original attempts. Controller and NHTTP have zero remaining unmatched original functions.
Final fetch during verification reached f6fd2780; owned three sources do not differ between this branch's base and fetched origin/main. The worktree remains on its assigned leaf branch.
## Round 2 final clean gate
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
```

View File

@@ -1,395 +0,0 @@
# Data d11 attempts
Baseline HEAD 32f358cd, matching origin/main at start.
All four pools contain no strings and are identical.
## zidawg1
- Rename @etb_81330728 -> @34: extabindex relocation at entry for ZiDAWGGetChild identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_8133144C -> @35: extabindex relocation at entry for ZiDAWGGetChild identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_81330730 -> @85: extabindex relocation at entry for ZiDAWGGetSibling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_81331458 -> @86: extabindex relocation at entry for ZiDAWGGetSibling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_81330738 -> @108: extabindex relocation at entry for ZiDAWGgetCHARattribute identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_81331464 -> @109: extabindex relocation at entry for ZiDAWGgetCHARattribute identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_81330740 -> @159: extabindex relocation at entry for ZiDAWGGetGraphInfo identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_81331470 -> @160: extabindex relocation at entry for ZiDAWGGetGraphInfo identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- extab: target/source lengths 32/32, byte differences [(24, 56, 64)].
- extabindex: target/source lengths 48/48, byte differences [(19, 12, 4), (43, 24, 8)].
## zi8uwd
- Rename @etb_81330700 -> @69: extabindex relocation at entry for Zi8_81480224 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_81331410 -> @70: extabindex relocation at entry for Zi8_81480224 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_81330708 -> @80: extabindex relocation at entry for Zi8_814803F4 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_8133141C -> @81: extabindex relocation at entry for Zi8_814803F4 identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_81330710 -> @88: extabindex relocation at entry for Zi8_8148047C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_81331428 -> @89: extabindex relocation at entry for Zi8_8148047C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_81330718 -> @248: extabindex relocation at entry for Zi8MatchUWDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_81331434 -> @249: extabindex relocation at entry for Zi8MatchUWDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- extab: target/source lengths 32/32, byte differences [(24, 104, 88)].
- extabindex: target/source lengths 48/48, byte differences [(42, 7, 8), (43, 192, 48)].
## zi8pud2
- Rename @etb_813306C0 -> @52: extabindex relocation at entry for ZiGetZHWordSize identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813313B0 -> @53: extabindex relocation at entry for ZiGetZHWordSize identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_813306C8 -> @76: extabindex relocation at entry for Zi8CopyZHSpelling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813313BC -> @77: extabindex relocation at entry for Zi8CopyZHSpelling identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_813306D0 -> @86: extabindex relocation at entry for ZADP_Zi8SetPDremoveOpt identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813313C8 -> @87: extabindex relocation at entry for ZADP_Zi8SetPDremoveOpt identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_813306D8 -> @215: extabindex relocation at entry for Zi8MatchPUDdata_ZHS identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813313D4 -> @216: extabindex relocation at entry for Zi8MatchPUDdata_ZHS identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_813306E0 -> @241: extabindex relocation at entry for Zi8MatchPUDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813313E0 -> @242: extabindex relocation at entry for Zi8MatchPUDdata identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_813306E8 -> @255: extabindex relocation at entry for Zi8_8147FD7C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813313EC -> @256: extabindex relocation at entry for Zi8_8147FD7C identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- extab: target/source lengths 48/48, byte differences [].
- extabindex: target/source lengths 72/72, byte differences [(43, 136, 120)].
## ziswordw
- Rename @etb_81330760 -> @127: extabindex relocation at entry for Zi8IsWordW identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813314A0 -> @128: extabindex relocation at entry for Zi8IsWordW identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @etb_81330768 -> @174: extabindex relocation at entry for Zi8ConvertUC2UserKey identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- Rename @eti_813314AC -> @175: extabindex relocation at entry for Zi8ConvertUC2UserKey identifies the same 8-byte unwind object and 12-byte index record in target and compiler object; address and size unchanged.
- extab: target/source lengths 16/16, byte differences [(0, 48, 40)].
- extabindex: target/source lengths 24/24, byte differences [(7, 128, 136)].
- .sdata2: target/source lengths 8/8, byte differences [].
- ZiDAWGGetChild attempt 1, widen decoded header to match explicit narrowing: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (272, 260). Reverted.
- ZiDAWGGetChild attempt 2, combine encoded displacement before assigning it: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (272, 272). Reverted.
- ZiDAWGGetChild attempt 3, combine short displacement in one assignment: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (272, 272). Reverted.
- ZiDAWGGetSibling attempt 1, decode header in full word temporary: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (524, 488). Reverted.
- ZiDAWGGetSibling attempt 2, invert long-offset branch to target direction: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (524, 516). Reverted.
- ZiDAWGGetSibling attempt 3, retain 16-bit mask in long sibling displacement: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (524, 520). Reverted.
- ZiDAWGgetCHARattribute attempt 1, decode low attribute bytes as one value: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (240, 240). Reverted.
- ZiDAWGgetCHARattribute attempt 2, widen key during decode: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source function sizes (240, 212). Reverted.
- ZiDAWGgetCHARattribute attempt 3, declare output before decoded key: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (240, 240). Reverted.
- ZiDAWGGetGraphInfo attempt 1, keep two header predicates together: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (536, 520). Reverted.
- ZiDAWGGetGraphInfo attempt 2, decode entry header without persistent pair local: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source function sizes (536, 520). Selected.
- ZiDAWGGetGraphInfo attempt 3, widen depth used as loop counter: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (536, 516). Reverted.
- Zi8_81480224 attempt 1, use separate insertion index instead of recycling length: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted.
- Zi8_81480224 attempt 2, compare candidates through incrementing text cursors: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted.
- Zi8_81480224 attempt 3, declare candidate length after list pointers: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (464, 464). Reverted.
- Zi8MatchUWDdata attempt 1, use 32-bit return temporary for converted entry language: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2100). Reverted.
- Zi8MatchUWDdata attempt 2, keep returned entry length in integer temporary: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2096). Reverted.
- Zi8MatchUWDdata attempt 3, use dictionary base fields directly for initial cursor: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source function sizes (1984, 2096). Reverted.
- ZADP_Zi8SetPDremoveOpt attempt 1, return previous option as a full word: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (84, 84). Reverted.
- ZADP_Zi8SetPDremoveOpt attempt 2, retain work pointer explicitly before previous option: build failed, reverted. lib\zi8pud2.c # ------------------------------------------------------ # 54: ziWorkData* work = ZI_WORK; # Error: ^^^^^^^^^^ # (10140) undefined identifier 'ziWorkData' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
- ZADP_Zi8SetPDremoveOpt attempt 3, scope previous option initialization at declaration: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (84, 84). Reverted.
- Zi8MatchPUDdata_ZHS attempt 1, replace compound section-loop condition with explicit language break: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1400). Reverted.
- Zi8MatchPUDdata_ZHS attempt 2, let byte overflow implement Chinese doubled-length mask: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1392). Reverted.
- Zi8MatchPUDdata_ZHS attempt 3, keep Chinese entry length in signed integer: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (1416, 1400). Reverted.
- Zi8MatchPUDdata attempt 1, use byte result matching wrapper return test: instruction-exact 4, identical non-text bytes 48, raw byte matches 118, target/source function sizes (200, 196). Reverted.
- Zi8MatchPUDdata attempt 2, initialize result at call inside explicit loop block: instruction-exact 4, identical non-text bytes 0, raw byte matches 116, target/source function sizes (200, 228). Reverted.
- Zi8MatchPUDdata attempt 3, scope loop flag through explicit zero comparison: instruction-exact 4, identical non-text bytes 48, raw byte matches 119, target/source function sizes (200, 200). Reverted.
- Zi8IsWordW attempt 1, initialize search before saving formats and count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted.
- Zi8IsWordW attempt 2, invert format count branch to target order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted.
- Zi8IsWordW attempt 3, keep candidate count as unsigned word: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source function sizes (1664, 1672). Reverted.
Unwind-name experiment reverted in full: source-generated @ numbers changed extabindex fuzzy pairing but no matched_data count increased; original extraction names are retained. No symbol extents or addresses changed.
- Zi8MatchPUDdata_ZHS followup, preserve target 16-bit narrowing for section count and offset bytes: instruction-exact 4, identical non-text bytes 120, raw byte matches 120, target/source sizes (1416, 1416). Selected.
- ZiDAWGGetSibling followup, combine target branch direction and 16-bit sibling displacement narrowing: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (524, 520). Reverted.
- ZiDAWGGetGraphInfo followup, narrow entry size and key words as shown in target instruction sequence: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (536, 520). Reverted.
- ZADP_Zi8SetPDremoveOpt followup, explicit typed work pointer using actual SDK work structure: instruction-exact 4, identical non-text bytes 0, raw byte matches 118, target/source sizes (84, 96). Reverted.
- Zi8IsWordW followup: correct local Zi8GetCandidatesOrCount return prototype from ziU8 to ziU32. Definition and both declarations in zi8getc2.c return ziU32; target caller moves r3 into r29 without byte narrowing. This changes only ziswordw output.
- Zi8IsWordW attempt 4, initialize Chinese decoding locals in target order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1704). Reverted.
- Zi8IsWordW attempt 5, zero search aggregate after saving original formats: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1648). Reverted.
- Zi8IsWordW attempt 6, match request assignments to target word pointer before capacity: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted.
- Zi8IsWordW attempt 7, use typed byte-pair fields for Chinese decoded offset: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1676). Reverted.
- Zi8IsWordW attempt 8, combined target initialization and request order: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1684). Reverted.
- ZiDAWGGetGraphInfo further followup, return zero on unsupported key as target direct-return block proves: instruction-exact 2, identical non-text bytes 32, raw byte matches 78, target/source sizes (536, 528). Reverted.
- ZiDAWGGetGraphInfo further followup, match top-tested child-search loop with explicit extent exit: instruction-exact 2, identical non-text bytes 32, raw byte matches 77, target/source sizes (536, 492). Reverted.
- ZiDAWGGetSibling further followup, explicit target halfword narrowing at header-table load: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (524, 524). Reverted.
- Zi8MatchUWDdata further followup, advance typed result text cursor once before conversion loop: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2112). Reverted.
- ZiDAWGGetSibling halfword-load followup retained for combined validation: source size now 524 equals target; target lhzx-to-r0 then clrlwi-to-saved-register proves explicit halfword narrowing, instruction-exact counts stay 2/6. One extabindex record now has the exact length.
- ZiDAWGGetGraphInfo combined followup, preserve invalid-key exit and decode graph offset in byte order: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (536, 528). Reverted.
- ZiDAWGGetGraphInfo combined followup, group graph child-count header rejects in one condition: instruction-exact 2, identical non-text bytes 32, raw byte matches 79, target/source sizes (536, 528). Reverted.
- ZiDAWGGetGraphInfo combined followup, split key range rejects matching direct target branches: instruction-exact 2, identical non-text bytes 80, raw byte matches 80, target/source sizes (536, 536). Selected.
- Zi8MatchUWDdata remaining-data followup, reuse language parameter for early and final popped entries as target does: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2092). Reverted.
- Zi8MatchUWDdata remaining-data followup, scope continuation result independently: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source sizes (1984, 2108). Reverted.
- Zi8MatchUWDdata remaining-data followup, combine independent continuation result and reused language: instruction-exact 2, identical non-text bytes 0, raw byte matches 76, target/source sizes (1984, 2104). Reverted.
- Zi8IsWordW remaining-data followup, reorder genuine offset local after ordinal length: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted.
- Count-reuse experiment initially failed to build because the scripted identifier change also changed search.length; restored, corrected the transformation to exclude member names, and retried.
- Zi8IsWordW remaining-data followup, reuse count for length and candidate result matching target r29 lifetime: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted.
- Zi8IsWordW remaining-data followup, fuse terminal Chinese length decrement into single-length test: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted.
- Zi8IsWordW remaining-data followup, reorder genuine offset local after ordinal length: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1668). Reverted.
- Zi8IsWordW final followup, split table base lookup and encoded entry offset: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1680). Reverted.
- Zi8IsWordW final followup, reuse count and split table base lookup: instruction-exact 1, identical non-text bytes 32, raw byte matches 47, target/source sizes (1664, 1664). Selected.
- Zi8IsWordW final followup, declare decoded offset as unsigned word with reused count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1652). Reverted.
- Zi8IsWordW final followup, keep count conversion result and selector in distinct scopes: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1680). Reverted.
- Zi8IsWordW final followup, initialize groups and entry words with reused count: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1676). Reverted.
- Zi8IsWordW selector followup, explicit decoded format selector before switch: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted.
- Zi8IsWordW selector followup, initialize decoded format displacement to target default: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted.
- Zi8IsWordW selector followup, decode selector into unsigned shift variable: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1672). Reverted.
- Zi8IsWordW selector followup, factor selector size defaults before switch: instruction-exact 1, identical non-text bytes 8, raw byte matches 46, target/source sizes (1664, 1660). Reverted.
- Zi8MatchUWDdata loop followup, keep both prefix scan induction variables in the loop update: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2100). Reverted.
- Zi8MatchUWDdata loop followup, initialize ring scan cursor in its own loop: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2096). Reverted.
- Zi8MatchUWDdata loop followup, combine prefix and cursor scan loop induction variables: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2100). Reverted.
- Zi8MatchUWDdata loop followup, use preincrement prefix counter after character test: instruction-exact 2, identical non-text bytes 0, raw byte matches 77, target/source sizes (1984, 2096). Reverted.
## Coverage audit and remaining data classification
- ZADP_Zi8SetPDremoveOpt: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 98.57143%, instruction-exact count retained.
- Zi8MatchPUDdata_ZHS: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 72.59322%, instruction-exact count retained.
- Zi8MatchPUDdata: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 99.1%, instruction-exact count retained.
- Zi8_81480224: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 99.22414%, instruction-exact count retained.
- Zi8MatchUWDdata: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 70.245964%, instruction-exact count retained.
- ZiDAWGGetChild: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 93.60294%, instruction-exact count retained.
- ZiDAWGGetSibling: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 86.854965%, instruction-exact count retained.
- ZiDAWGgetCHARattribute: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 95.5%, instruction-exact count retained.
- ZiDAWGGetGraphInfo: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 81.83582%, instruction-exact count retained.
- Zi8IsWordW: all three initial distinct attempts logged, plus followups where indicated. Initial objdiff 83.33654%, instruction-exact count retained.
- zidawg1: extab and extabindex bytes now identical, including all four owned exception records. No metadata renames or extent changes retained.
- zi8pud2: extab and extabindex bytes now identical; explicit 16-bit section-count/offset decoding follows four target clrlwi instructions. No metadata changes.
- zi8uwd: no literal/global data. Residual extab record for Zi8MatchUWDdata saves r19-r31 in target, r21-r31 in source; extabindex length is target 1984 versus source 2096. These are real code-generation differences, not name/extent errors. Other three extab records and their lengths match.
- ziswordw: .sdata2 and extabindex bytes identical; residual extab for Zi8IsWordW saves r26-r31 in target, r27-r31 in source. Zi8ConvertUC2UserKey unwind bytes and instruction-exact function remain unchanged. The residual is code register allocation, not a data initializer or symbol-name mismatch.
- No symbol-size adjustments, forced sections, alignment objects, volatile casts, or assembly added. All retained code is in owned units.
## Final per-symbol data audit
- zidawg1
- @etb_81330728, extab+0x0, size 8, ZiDAWGGetChild: identical bytes; relocations pair by owning function and unwind entry.
- @etb_81330730, extab+0x8, size 8, ZiDAWGGetSibling: identical bytes; relocations pair by owning function and unwind entry.
- @etb_81330738, extab+0x10, size 8, ZiDAWGgetCHARattribute: identical bytes; relocations pair by owning function and unwind entry.
- @etb_81330740, extab+0x18, size 8, ZiDAWGGetGraphInfo: identical bytes; relocations pair by owning function and unwind entry.
- @eti_8133144C, extabindex+0x0, size 12, ZiDAWGGetChild: identical bytes; relocations pair by owning function and unwind entry.
- @eti_81331458, extabindex+0xc, size 12, ZiDAWGGetSibling: identical bytes; relocations pair by owning function and unwind entry.
- @eti_81331464, extabindex+0x18, size 12, ZiDAWGgetCHARattribute: identical bytes; relocations pair by owning function and unwind entry.
- @eti_81331470, extabindex+0x24, size 12, ZiDAWGGetGraphInfo: identical bytes; relocations pair by owning function and unwind entry.
- zi8uwd
- @etb_81330700, extab+0x0, size 8, Zi8_81480224: identical bytes; relocations pair by owning function and unwind entry.
- @etb_81330708, extab+0x8, size 8, Zi8_814803F4: identical bytes; relocations pair by owning function and unwind entry.
- @etb_81330710, extab+0x10, size 8, Zi8_8148047C: identical bytes; relocations pair by owning function and unwind entry.
- @etb_81330718, extab+0x18, size 8, Zi8MatchUWDdata: real code-derived metadata differences [('0x0', '0x68', '0x58')].
- @eti_81331410, extabindex+0x0, size 12, Zi8_81480224: identical bytes; relocations pair by owning function and unwind entry.
- @eti_8133141C, extabindex+0xc, size 12, Zi8_814803F4: identical bytes; relocations pair by owning function and unwind entry.
- @eti_81331428, extabindex+0x18, size 12, Zi8_8148047C: identical bytes; relocations pair by owning function and unwind entry.
- @eti_81331434, extabindex+0x24, size 12, Zi8MatchUWDdata: real code-derived metadata differences [('0x6', '0x7', '0x8'), ('0x7', '0xc0', '0x30')].
- zi8pud2
- @etb_813306C0, extab+0x0, size 8, ZiGetZHWordSize: identical bytes; relocations pair by owning function and unwind entry.
- @etb_813306C8, extab+0x8, size 8, Zi8CopyZHSpelling: identical bytes; relocations pair by owning function and unwind entry.
- @etb_813306D0, extab+0x10, size 8, ZADP_Zi8SetPDremoveOpt: identical bytes; relocations pair by owning function and unwind entry.
- @etb_813306D8, extab+0x18, size 8, Zi8MatchPUDdata_ZHS: identical bytes; relocations pair by owning function and unwind entry.
- @etb_813306E0, extab+0x20, size 8, Zi8MatchPUDdata: identical bytes; relocations pair by owning function and unwind entry.
- @etb_813306E8, extab+0x28, size 8, Zi8_8147FD7C: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813313B0, extabindex+0x0, size 12, ZiGetZHWordSize: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813313BC, extabindex+0xc, size 12, Zi8CopyZHSpelling: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813313C8, extabindex+0x18, size 12, ZADP_Zi8SetPDremoveOpt: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813313D4, extabindex+0x24, size 12, Zi8MatchPUDdata_ZHS: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813313E0, extabindex+0x30, size 12, Zi8MatchPUDdata: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813313EC, extabindex+0x3c, size 12, Zi8_8147FD7C: identical bytes; relocations pair by owning function and unwind entry.
- ziswordw
- @etb_81330760, extab+0x0, size 8, Zi8IsWordW: real code-derived metadata differences [('0x0', '0x30', '0x28')].
- @etb_81330768, extab+0x8, size 8, Zi8ConvertUC2UserKey: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813314A0, extabindex+0x0, size 12, Zi8IsWordW: identical bytes; relocations pair by owning function and unwind entry.
- @eti_813314AC, extabindex+0xc, size 12, Zi8ConvertUC2UserKey: identical bytes; relocations pair by owning function and unwind entry.
- lbl_81695018, .sdata2+0x0, size 1, : identical bytes; relocations pair by owning function and unwind entry.
- lbl_81695019, .sdata2+0x1, size 1, : identical bytes; relocations pair by owning function and unwind entry.
- lbl_8169501A, .sdata2+0x2, size 1, : identical bytes; relocations pair by owning function and unwind entry.
- lbl_8169501B, .sdata2+0x3, size 1, : identical bytes; relocations pair by owning function and unwind entry.
- lbl_8169501C, .sdata2+0x4, size 1, : identical bytes; relocations pair by owning function and unwind entry.
- lbl_8169501D, .sdata2+0x5, size 1, : identical bytes; relocations pair by owning function and unwind entry.
- lbl_8169501E, .sdata2+0x6, size 1, : identical bytes; relocations pair by owning function and unwind entry.
- lbl_8169501F, .sdata2+0x7, size 1, : identical bytes; relocations pair by owning function and unwind entry.
## Final clean full gate
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 92/1664 data 80/80 functions 2/6 fuzzy 87.7019 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 2/6
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 87.70192
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetChild 93.60294
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetSibling 86.51145
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGgetCHARattribute 95.5
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetGraphInfo 80.268654
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 92/1664 data None functions 2 fuzzy 88.3149
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 208/2656 data None/80 functions 2/4 fuzzy 77.6386 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 2/4
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section .text size 2656 match 77.63856
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extab size 32 match 96.875
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extabindex size 48 match 95.83333
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8_81480224 99.22414
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8MatchUWDdata 70.245964
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] baseline: code 208/2656 data None functions 2 fuzzy 77.6386
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 436/2136 data 120/120 functions 4/7 fuzzy 81.4288 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 4/7
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 81.42884
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: ZADP_Zi8SetPDremoveOpt 98.57143
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata_ZHS 72.19774
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata 99.1
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 436/2136 data 48 functions 4 fuzzy 81.6910
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 364/2028 data 32/48 functions 1/2 fuzzy 88.2229 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 1/2
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 88.22288
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 93.75
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] below 100: Zi8IsWordW 85.64664
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 364/2028 data 8 functions 1 fuzzy 86.3274
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.45609
global complete_code_percent: 63.07103 -> 63.07103
global matched_data_percent: 97.73032 -> 97.73993
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
Data lane incomplete for zi8uwd and ziswordw. All remaining non-exact code functions have at least three logged source attempts. No instruction-exact function count dropped.
## Orchestrator rejection and resumed worker
Restored zidawg1.c and zi8pud2.c from current origin/main. Previous unwind-only changes are rejected: they lower function fuzzy scores, and redundant load masks are not accepted. Kept ziswordw.c. Future candidates must preserve every owned function fuzzy score and improve real target control flow/register use.
Live origin baseline 2f0f5a44c72cb84e23732e09fc8e75487c788f76 built in this worker tree, then owned source restored and rebuilt. Restored full gate passed with correct DOL hash. Function-by-function comparison:
```
zi8pud2 ZiIsPhoneticChar: 100.0 -> 100.0
zi8pud2 ZiGetZHWordSize: 100.0 -> 100.0
zi8pud2 Zi8CopyZHSpelling: 100.0 -> 100.0
zi8pud2 ZADP_Zi8SetPDremoveOpt: 98.57143 -> 98.57143
zi8pud2 Zi8MatchPUDdata_ZHS: 72.59322 -> 72.59322
zi8pud2 Zi8MatchPUDdata: 99.1 -> 99.1
zi8pud2 Zi8_8147FD7C: 100.0 -> 100.0
zi8uwd Zi8_81480224: 99.22414 -> 99.22414
zi8uwd Zi8_814803F4: 100.0 -> 100.0
zi8uwd Zi8_8148047C: 100.0 -> 100.0
zi8uwd Zi8MatchUWDdata: 70.245964 -> 70.245964
zidawg1 ZiDAWGGetChild: 93.60294 -> 93.60294
zidawg1 ZiDAWGGetSibling: 86.854965 -> 86.854965
zidawg1 ZiDAWGgetEOWattribute: 100.0 -> 100.0
zidawg1 ZiDAWGgetCHARattribute: 95.5 -> 95.5
zidawg1 ZiDAWGGetGraph: 100.0 -> 100.0
zidawg1 ZiDAWGGetGraphInfo: 81.83582 -> 81.83582
ziswordw Zi8IsWordW: 83.33654 -> 85.64664
ziswordw Zi8ConvertUC2UserKey: 100.0 -> 100.0
FUZZY REGRESSIONS: 0
```
- Resume ZiDAWGGetSibling, separate original-node base from encoded-offset cursor, target 81480F6C/81480F88 add original r28: objdiff 86.854965 -> 88.59542; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetSibling, decode header from incoming cursor before changing it: objdiff 88.59542 -> 88.63359; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetSibling, emit direct no-sibling return proven by 81480ED4/81480ED8: objdiff 88.63359 -> 88.938934; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetSibling, invert child-offset branch to target long-first control flow: objdiff 88.938934 -> 88.99236; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetSibling, return decoded sibling directly at target 81480F90/81480F94: objdiff 88.99236 -> 89.51145; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetSibling, group original-node plus low displacement byte before encoded high displacement: objdiff 89.51145 -> 87.92367; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; reverted.
- Resume ZiDAWGGetSibling, decode short displacement through its two byte weights: objdiff 89.51145 -> 91.16031; data 0 -> 0; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetGraphInfo, avoid persistent decoded header temporary, target first comparisons use r0: objdiff 81.83582 -> 81.87313; data 0 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetGraphInfo, group empty-root header checks matching branch to 81481240: objdiff 81.87313 -> 85.00746; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetGraphInfo, validate key range with shared zero-return else at 81481308: objdiff 85.00746 -> 87.32089; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetGraphInfo, top-test child search with target extent check and common key comparison: objdiff 87.32089 -> 85.08209; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 504); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
- Resume ZiDAWGGetGraphInfo, decode big-endian header high byte before low byte: objdiff 87.32089 -> 95.19403; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetGraphInfo, group 24-bit offsets as high part plus trailing two-byte value: objdiff 95.19403 -> 98.43284; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetGraphInfo, tie depth and key induction variables to bounded traversal loop: objdiff 98.43284 -> 97.68657; data 32 -> 48; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000004008000000000000; fuzzy regressions []; reverted.
- Resume ZiDAWGGetGraphInfo, treat returned graph address as unsigned value: objdiff 98.43284 -> 98.43284; data 32 -> 32; instruction-exact 2 -> 2; target/source sizes (536, 532); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
- Resume ZiDAWGGetGraphInfo, check entry bounds before the first dereference, target 81481298 branches to 814812DC: objdiff 98.43284 -> 99.17911; data 32 -> 80; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetGraphInfo, use actual graph/end/result byte pointers consistent with caller zi8dawg.c: objdiff 99.17911 -> 99.17911; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (536, 536); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
- Removed redundant outer graph-search scope after root guard. Object metrics unchanged: sibling 91.16031%, graph info 99.17911%, extab/extabindex 100%; exact 2/6 retained.
- Target proof for graph-search invalid key: branches at 81481288 and 81481294 both reach li r3,0 at 81481308 and return via 814813E4; the former break returning prior result was wrong. New shared else models that control flow.
- Current graph info ctxdiff 134/134 instructions, 20 differences remain, principally callee register names plus endpoint arithmetic scheduling. Prologue saves r25-r31, exactly the target range.
- Resume Zi8MatchPUDdata_ZHS, let doubled byte length wrap naturally without redundant pre-mask: objdiff 72.59322 -> 73.46045; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, advance one payload cursor through length/priority/text as target r29: objdiff 73.46045 -> 77.74011; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, search section language with explicit match break: objdiff 77.74011 -> 80.53672; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, test key-token range first matching target 8147F884 branch order: objdiff 80.53672 -> 86.245766; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, treat decoded word and copy counts as signed integers, matching target cmpw: objdiff 86.245766 -> 86.62429; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, use a typed byte view of Chinese search keys: objdiff 86.62429 -> 82.24859; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000701800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, copy UTF16 bytes through typed output view, advancing byte index twice: objdiff 86.62429 -> 83.81638; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1428); source unwind 180800000000000010080000000000001008000000000000681800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, place common next-entry block at target initial rejection branch: objdiff 86.62429 -> 89.27683; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1376); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, store existing key token before converting plain character fallback: objdiff 89.27683 -> 93.54237; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1376); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, place permitted single-key fallback retry before exhausted-table return: objdiff 93.54237 -> 94.68644; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, bind generic work argument to its real work-data structure: objdiff 94.68644 -> 86.056496; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1504); source unwind 180800000000000010080000000000001008000000000000580800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, use payload byte view for Chinese key comparison after retry restructure: objdiff 94.68644 -> 91.09887; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1392); source unwind 180800000000000010080000000000001008000000000000701800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, advance Chinese output byte index after each copied byte: objdiff 94.68644 -> 89.9887; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1428); source unwind 180800000000000010080000000000001008000000000000681800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, decrement both decoded word count and payload size before stripping priority: objdiff 94.68644 -> 94.5226; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1380); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, compare consumed character threshold in target operand order: objdiff 94.68644 -> 94.73447; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, check section index against its declared language count: objdiff 94.73447 -> 94.77683; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, initialize section cursor before loop index as target 8147F75C through 8147F764: objdiff 94.77683 -> 95.341805; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; SELECTED.
- Resume Zi8MatchPUDdata_ZHS, test requested length against decoded word size in target cmpw operand order: objdiff 95.341805 -> 95.29944; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1372); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, decrement remaining payload size before consuming Chinese priority byte: objdiff 95.341805 -> 91.0226; data 48 -> 0; instruction-exact 4 -> 4; target/source sizes (1416, 1408); source unwind 180800000000000010080000000000001008000000000000600800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Resume Zi8MatchPUDdata_ZHS, advance Chinese output index after each byte without new alias: objdiff 95.341805 -> 95.31921; data 48 -> 48; instruction-exact 4 -> 4; target/source sizes (1416, 1368); source unwind 180800000000000010080000000000001008000000000000680800000000000018080000000000000008000000000000; fuzzy regressions []; reverted.
- Reindented matched/rejected PUD paths. Object metrics unchanged, ZHS 95.341805%, data 48/120 and instruction-exact 4/7. No masks were added.
- PUD target prologue saves r19-r31; current source uses that same range. Remaining code gaps include source size 1372 versus target 1416 and decoded count/offset load treatment; unwind-index mismatch is left intact rather than forced.
- Resume ZiDAWGGetSibling, visit encoded child displacement before implicit-child depth increment: objdiff 91.16031 -> 94.21374; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
- Resume ZiDAWGGetSibling, initialize each traversal state where its lifetime starts in target order: objdiff 94.21374 -> 94.21374; data 80 -> 80; instruction-exact 2 -> 2; target/source sizes (524, 524); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; reverted.
- Resume ZiDAWGGetSibling, return scanned sibling directly as original node plus traversal size: objdiff 94.21374 -> 95.24428; data 80 -> 32; instruction-exact 2 -> 2; target/source sizes (524, 520); source unwind 1808000000000000200800000000000028080000000000003808000000000000; fuzzy regressions []; SELECTED.
Latest origin/main cbf6363d0f5e07b6dceadc43693694c14d58a229 fetched before final validation. Owned unit sources and eZiText headers are unchanged from measured origin baseline 2f0f5a44c72cb84e23732e09fc8e75487c788f76.
- Latest sibling direct scan return improves real code 94.21374 -> 95.24428% but source length is 520 versus target 524; extabindex mismatch remains. This source improvement is kept rather than adding an instruction to force the unwind record.
- Removed unreachable final sibling return after all paths already return. Complete object SHA256 equality True.
## Resumed final clean gate and live-origin function audit
```
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] objdiff: code 92/1664 data 32/80 functions 2/6 fuzzy 96.5433 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] instruction-exact functions: 2/6
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section .text size 1664 match 96.54327
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extab size 32 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] section extabindex size 48 match 97.91667
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetChild 93.60294
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetSibling 95.24428
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGgetCHARattribute 95.5
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] below 100: ZiDAWGGetGraphInfo 99.17911
[libs/RVLMiddleware/eZiText/src/clib/zidawg1] baseline: code 92/1664 data None functions 2 fuzzy 88.3149
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] objdiff: code 208/2656 data None/80 functions 2/4 fuzzy 77.6386 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] instruction-exact functions: 2/4
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section .text size 2656 match 77.63856
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extab size 32 match 96.875
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] section extabindex size 48 match 95.83333
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8_81480224 99.22414
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] below 100: Zi8MatchUWDdata 70.245964
[libs/RVLMiddleware/eZiText/src/clib/zi8uwd] baseline: code 208/2656 data None functions 2 fuzzy 77.6386
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] objdiff: code 436/2136 data 48/120 functions 4/7 fuzzy 96.7715 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] instruction-exact functions: 4/7
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section .text size 2136 match 96.77154
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extab size 48 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] section extabindex size 72 match 98.61111
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: ZADP_Zi8SetPDremoveOpt 98.57143
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata_ZHS 95.341805
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] below 100: Zi8MatchPUDdata 99.1
[libs/RVLMiddleware/eZiText/src/clib/zi8pud2] baseline: code 436/2136 data 48 functions 4 fuzzy 81.6910
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] pool: IDENTICAL
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] objdiff: code 364/2028 data 32/48 functions 1/2 fuzzy 88.2229 linked code 0
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] instruction-exact functions: 1/2
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .sdata2 size 8 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section .text size 2028 match 88.22288
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extab size 16 match 93.75
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] section extabindex size 24 match 100.0
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] below 100: Zi8IsWordW 85.64664
[libs/RVLMiddleware/eZiText/src/clib/ziswordw] baseline: code 364/2028 data 8 functions 1 fuzzy 86.3274
regressions vs baseline: 0
global matched_code_percent: 88.57407 -> 88.57407
global fuzzy_match_percent: 99.45531 -> 99.47194
global complete_code_percent: 63.07103 -> 63.07103
global matched_data_percent: 97.73032 -> 97.73338
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
```
zi8pud2 ZiIsPhoneticChar: 100.0 -> 100.0
zi8pud2 ZiGetZHWordSize: 100.0 -> 100.0
zi8pud2 Zi8CopyZHSpelling: 100.0 -> 100.0
zi8pud2 ZADP_Zi8SetPDremoveOpt: 98.57143 -> 98.57143
zi8pud2 Zi8MatchPUDdata_ZHS: 72.59322 -> 95.341805
zi8pud2 Zi8MatchPUDdata: 99.1 -> 99.1
zi8pud2 Zi8_8147FD7C: 100.0 -> 100.0
zi8uwd Zi8_81480224: 99.22414 -> 99.22414
zi8uwd Zi8_814803F4: 100.0 -> 100.0
zi8uwd Zi8_8148047C: 100.0 -> 100.0
zi8uwd Zi8MatchUWDdata: 70.245964 -> 70.245964
zidawg1 ZiDAWGGetChild: 93.60294 -> 93.60294
zidawg1 ZiDAWGGetSibling: 86.854965 -> 95.24428
zidawg1 ZiDAWGgetEOWattribute: 100.0 -> 100.0
zidawg1 ZiDAWGgetCHARattribute: 95.5 -> 95.5
zidawg1 ZiDAWGGetGraph: 100.0 -> 100.0
zidawg1 ZiDAWGGetGraphInfo: 81.83582 -> 99.17911
ziswordw Zi8IsWordW: 83.33654 -> 85.64664
ziswordw Zi8ConvertUC2UserKey: 100.0 -> 100.0
FUZZY REGRESSIONS: 0
```
No redundant load masks or symbol extent changes retained. All four owned units preserve instruction-exact counts. Data remains incomplete; outstanding unwind-index lengths and saved-register mismatches are left for real code matching.

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.

View File

@@ -1,71 +0,0 @@
# Data lane d2
Base HEAD and origin/main: eecf16f0. All four initial pool checks pass.
Initial data: BS2Update 1328/10488; iplSound 188/3316; AOSSLink 48/2432; RakuRakuThread 144/456.
Initial instruction-exact: BS2Update 8/10; iplSound 56/57; AOSSLink 12/14; RakuRakuThread 12/14.
Scope is data matching. Existing nonexact code is retained unless a data correction fixes it; no code-only compiler experiments are required for this lane.
## Initial evidence
- BS2Update: Flags0/Flags1/Thread/header source allocation differs from target. Thread source size 0x1318, target label covers 0x1320 with alignment gap. Static sbss allocation is reversed by compiler optimization, unlike declaration order. Target short literal at 0x81696598 is `.` whereas source is `-`.
- iplSound: .bss bytes and overall size already equal, but extracted `_seBlk` size 0xd8 includes two 12-byte runtime destructor registration records at offsets 0xcc and 0xd8. `sSystem` size 0x63c includes destructor record at offset 0x710 plus alignment. Target startup registers records via r5 = bss base + 0, +0xcc, +0xd8, +0x710 before `__register_global_object`; generated source has separate unnamed compiler records at those exact offsets. No dummy objects or size changes to conceal this discrepancy will be added.
- AOSSLink: source has all real objects. NCDIfConfig sizeof 0x15e versus extracted symbol extent 0x160; NCDIpConfig sizeof 0x7c4 versus extent 0x7c8. These include linker alignment, not missing fields. Source small-data statics are reverse allocated.
- RakuRakuThread: target OSMessageQueue symbol extends 0x24 but actual SDK type is 0x20; trailing four bytes are alignment. Target clock halves have separate symbols, source OSTime has one 8-byte symbol. Store sequence in syncRakuProgress is stw r3 at 0x81698c60 and stw r4 at 0x81698c64, proving one 64-bit clock value. No fabricated queue fields will be added.
## BS2Update attempts
1. Explicit zero initialization allocates static globals in definition order. Flags0 now offset 0, Flags1 offset 0x800, Thread offset 0x1000, headers 0x2320/0x2340. Nonexact init still uses separate symbol references instead of target common bss anchor. No exact function dropped.
2. Initialize public small-data globals too. This restores State 0x10, CurrentEntry 0x14, StartUpdate 0x28, CancelUpdate 0x2c. Replacing the two filename separators with the target `.` makes .sdata 100% and adds 24 matched bytes.
3. Explicit Thread/header zero initialization and a 32-byte aligned Thread type did not improve instruction codegen. Reverted the type alignment because the object-size gap is not enough evidence to change the real type's alignment. Thread is already the correct real OSThread plus 4096-byte stack. Remaining target extent includes eight bytes before the aligned header.
4. Named four anonymous small-data flags by target relocations: 0x81698b10 is set on reboot attributes and tested for State 4 versus State 3; 0x81698b14 is the seat-title flag returned by BS2ContainsSeatTitles; 0x81698b18/1c are cleared by the final UpdateThread block in the source's matching order. Renames preserve all addresses, sizes, split ranges, and total bytes.
## AOSSLink attempts
1. Before starting: fetched origin/main, source still unchanged from base. All pool checks are identical. Explicit zero initialization for cancel flag, IPv4 octets and callback pointers restores the declared target order.
2. Named original anonymous IPv4 and callback symbols using .text relocations: SetNCDIPAddr passes 0x81698c3c/40/44/48/4c to StoreIpv4Octets in address/netmask/gateway/dns1/dns2 order; Alloc and Free load pointers at 0x81698c50/54; Status calls pointer at 0x81698c58. All original addresses and sizes retained.
## RakuRakuThread attempts
1. Fresh origin fetch showed no owned-source changes since HEAD. Split the original 64-bit clock into two real u32 globals, assigned from one local OSTime. `syncRakuProgress` remains 27/27 instructions, diffs 0. The original has separate word relocation targets and getState only reads the low word. This models those real words without label-pinning or raw offset casts.
2. Explicit zero initializers preserve small-data definition order. Named clock words, active flag, message slot, and display state using their direct .text relocations. .sbss now 100%; matched_data 144 -> 160. Original display state is initialized to one and switch stores are identical.
## Proven extraction metadata ownership
Before changing any inferred data extent, checked the target's actual code uses, actual SDK type, generated symbol boundaries and split ranges. These are data-ownership corrections, not removing mismatched payload or changing any function size. Every split range and total section byte count stays unchanged. Alignment bytes remain in the original sections and cannot be represented by fake C++ fields.
- BS2 Thread: OSCreateThread at 0x8137f334 receives object at bss+0x1000, stack top at bss+0x1318+0x1000, size 0x1000. Thus actual Thread payload ends at +0x2318; +0x2318..2320 is alignment before UpdateHeader0. Real SDK OSThread size is 0x318 and stack is 0x1000.
- AOSS interface: memset at 0x813fd76c explicitly receives 0x15e bytes for relocated AOSSi_NcdIfConfig. IP memset at 0x813fd83c explicitly receives 0x7c4 bytes for relocated AOSSi_NcdIpConfig. The 2 and 4 trailing bytes are alignment, not fields.
- Raku queue: constructor passes relocated sRakuMsgQueue to OSInitMessageQueue. Its target implementation initializes two 8-byte queues plus fields at 0x10/14/18/1c, exactly 0x20 bytes. The original extent incorrectly absorbs four bytes of end-of-unit alignment.
- Sound: __sinit at 0x8136c588 loads one bss anchor. Four calls of __register_global_object pass r5 = anchor+0, +0xcc, +0xd8, +0x710. Runtime's real DestructorChain has three pointers, size 0xc. _seBlk starts at +0xc, has 16 elements of 0xc (explicit __construct_array r6=0xc,r7=16), ends at +0xcc. System starts at +0xe4 and the generated real class ends at +0x710. Thus previously inferred `_seBlk` and `sSystem` extents overlap distinct destructor registration objects. Separate those real records in metadata. No source objects, forced sections, force-active entries, assembly, or fabricated padding are added.
Checkpoint quick full gate: GATE PASS, regressions 0, forbidden 0, readability 0, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Data BS2Update 1432, AOSSLink 88, RakuRakuThread 160, Sound 188. Instruction-exact counts unchanged 8/56/12/12.
Ownership corrections result: BS2Update data 10488/10488; AOSSLink data 2432/2432; RakuRakuThread 456/456, every non-text section 100%. Original section totals unchanged. Sound .bss rises to 99.615875%; the remaining 12 bytes are the first real compiler-generated destructor record, originally mislabeled `unk__Q23ipl3snd`. Rename it to its generated local symbol @15968, with the same address and size. The other three record names @15969/70/71 follow generated object metadata and the exact target registration order.
Sound was fetched and checked against origin/main again before this change; no owned-source changes. No source experiment is appropriate because target and generated .bss contain the same real objects at the same offsets, and every code function has objdiff 100%. Existing `UnkCls` destructor name represents the compiler array destructor; instruction-only matching by its old inferred name reports 56/57, while objdiff reports 57/57. No function is deleted or renamed here.
Second quick full gate: GATE PASS, regressions 0, forbidden 0, readability 0, target DOL hash retained. All four matched_data equal their unchanged initial total_data. Every emitted non-text section is 100% in objdiff, including ctors. No extab/extabindex sections exist in these units. Instruction-exact counts remain BS2Update 8/10, Sound 56/57, AOSSLink 12/14, RakuRakuThread 12/14.
Scope audit: no remaining non-text mismatches, so no open data objects require further attempts. Existing code-only mismatches are outside the explicitly assigned DATA LANE and were not tuned. No configure.py or splits.txt changes, no shared headers or other translation units changed, no push or PR.
## Final clean gate
```text
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/BS2/BS2Update] objdiff: code 112/4052 data 10488/10488 functions 8/10 fuzzy 91.6604 linked code 0
[src/BS2/BS2Update] instruction-exact functions: 8/10
[src/sound/iplSound] objdiff: code 5576/5576 data 3316/3316 functions 57/57 fuzzy 100.0000 linked code 5576
[src/sound/iplSound] instruction-exact functions: 56/57
[src/scene/setting/AOSSLink] objdiff: code 668/2196 data 2432/2432 functions 12/14 fuzzy 91.1111 linked code 0
[src/scene/setting/AOSSLink] instruction-exact functions: 12/14
[src/scene/setting/iplRakuRakuThread] objdiff: code 1252/2168 data 456/456 functions 12/14 fuzzy 94.6900 linked code 0
[src/scene/setting/iplRakuRakuThread] instruction-exact functions: 12/14
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
```
Final raw section check: every owned data payload equals original bytes; source section-end omissions are zero linker alignment only. All original split ranges and total_data remain unchanged. nm/objdump symbol and relocation evidence was saved in /tmp/data-d2-<unit>-<obj|src>.*. Source vtable entries match the original by relocation target and offset; relocation list ordering is irrelevant. No deduplicated weak-data exemption needed.
Local source checkpoint 44a7b170; ownership checkpoint 078753b9. These data-symbol corrections require parent review of the evidence above. Remaining code-only nonexact functions were already nonexact at baseline and are outside this data task.

View File

@@ -1,510 +0,0 @@
# data-d3 attempts
Scope: data only. Applied unslop to the log and final report. No instruction-count gain is required for a data-only improvement; instruction-exact counts must not decrease.
Base: eecf16f0, identical to fetched origin/main.
iplSetting: initial instruction-exact 105/112. Initial pool identical.
iplUSBAP: initial instruction-exact 4/4. Initial pool identical.
AOSS: initial instruction-exact 15/21. Initial pool identical.
ATERM: initial instruction-exact 14/26. Initial pool identical.
## Relocation identity evidence
AOSS
lbl_81698C74 => s_accessPointConfig via AOSSi_Init+0xa4,AOSSi_Init+0xb8,AOSSi_Init+0xf8
lbl_81698C70 => s_accessPointList via AOSSi_Init+0xbc,AOSSi_Init+0xd0,AOSSi_Init+0x110
lbl_81698C8C => s_responseBuffer via AOSSi_Init+0xe8,AOSSi_Init+0x13c,AOSSSendDiscoveryRequest+0x14
lbl_81697200 => s_socket via AOSSi_Init+0x174
lbl_81698C88 => s_socketStarted via AOSSi_Init+0x184,AOSSi_Init+0x194,AOSSConnectAndAwaitHost+0x44
lbl_81697204 => s_manufacturer via AOSSHandleDiscoverReply+0x40,AOSSHandleDiscoverReply+0x54,AOSSHandleAuthReply+0x4c
lbl_81698C84 => s_errorCode via AOSSHandleDiscoverReply+0x110,AOSSHandleDiscoverReply+0x134,AOSSHandleDiscoverReply+0x184
lbl_81698C80 => s_connectionState via AOSSHandleDiscoverReply+0x1b8
lbl_81698C78 => s_accessPointName via AOSSCheckAccessPointName+0x8,AOSSCheckAccessPointName+0x1c,AOSSCheckAccessPointName+0x98
ATERM
lbl_81698CDC => gAtermCancelRequested via ATERMScanAccessPoints+0x148,ATERMi_ApConfigStart+0xe8,ATERMi_ApConfigEnd+0x30
lbl_81698C90 => gAtermState via ATERMi_ApConfigStart+0x18,ATERMi_ApConfigStart+0x44,ATERMi_ApConfigStart+0xb0
lbl_8169721C => gAtermScanLimit via ATERMi_ApConfigStart+0x40
lbl_81698C98 => gAtermProgressCallback via ATERMi_ApConfigStart+0x48,ATERMi_ApConfigStart+0x15c,ATERMi_ApConfigEnd+0x1d0
lbl_81698C9C => gAtermAllocate via ATERMi_ApConfigStart+0x4c
lbl_81698CA0 => gAtermRelease via ATERMi_ApConfigStart+0x50,ATERMi_ApConfigEnd+0x14c
lbl_81697220 => gAtermScanBufferSize via ATERMi_ApConfigStart+0x54,ATERMi_ApConfigStart+0x80
lbl_81698CA4 => gAtermAllocation via ATERMi_ApConfigStart+0x64,ATERMi_ApConfigEnd+0x140,ATERMi_ApConfigEnd+0x15c
lbl_81698C94 => gAtermResult via ATERMi_ApConfigStart+0x78,ATERMi_ApConfigStart+0x154,ATERMi_ApConfigEnd+0x1c8
lbl_81697218 => gAtermDeadline via ATERMi_ApConfigStart+0xf4,ATERMi_ApConfigStart+0x104,ATERMi_ApConfigStart+0x148
lbl_81698CA8 => gAtermThreadStarted via ATERMi_ApConfigStart+0x180,ATERMi_ApConfigEnd+0x1c,ATERMi_ApConfigEnd+0x168
iplSetting
lbl_816970E9 => @25504 via prepare__Q33ipl5scene7SettingFv+0xe8,prepare__Q33ipl5scene7SettingFv+0x118,prepare__Q33ipl5scene7SettingFv+0x148
lbl_816970ED => @25507 via prepare__Q33ipl5scene7SettingFv+0x178
lbl_816970F1 => @25617 via create__Q33ipl5scene7SettingFv+0x60
lbl_816970F6 => @25619 via create__Q33ipl5scene7SettingFv+0xc8,create__Q33ipl5scene7SettingFv+0x11c,create__Q33ipl5scene7SettingFv+0x1b4
lbl_816970FA => @25626 via create__Q33ipl5scene7SettingFv+0x1c4
lbl_81697101 => @25627 via create__Q33ipl5scene7SettingFv+0x1e0
lbl_81697010 => sSettingArrowNames__Q23ipl5scene via create__Q33ipl5scene7SettingFv+0x48c,initScroll__Q33ipl5scene7SettingFv+0x26c,initScroll__Q33ipl5scene7SettingFv+0x2f8
lbl_81694C1C => @25796 via updateController___Q33ipl5scene7SettingFv+0x64,updateController___Q33ipl5scene7SettingFv+0x1a8
lbl_8169716E => @26352 via calcFadeout__Q33ipl5scene7SettingFv+0x1d0
lbl_8169718C => @26851 via initProxy__Q33ipl5scene7SettingFv+0x5c,initMTU__Q33ipl5scene7SettingFv+0x34
lbl_816971B1 => @27556 via initScroll__Q33ipl5scene7SettingFv+0x28,initScroll__Q33ipl5scene7SettingFv+0x144
lbl_816971B7 => @27557 via initScroll__Q33ipl5scene7SettingFv+0x50,initScroll__Q33ipl5scene7SettingFv+0x16c
lbl_816971BD => @27558 via initScroll__Q33ipl5scene7SettingFv+0x78,initScroll__Q33ipl5scene7SettingFv+0x194
lbl_816971C3 => @27559 via initScroll__Q33ipl5scene7SettingFv+0xa0,initScroll__Q33ipl5scene7SettingFv+0x1bc
lbl_8169719F => @27405 via initScroll__Q33ipl5scene7SettingFv+0xc8,initScroll__Q33ipl5scene7SettingFv+0x1e4
lbl_816971AB => @27407 via initScroll__Q33ipl5scene7SettingFv+0xf0,initScroll__Q33ipl5scene7SettingFv+0x20c,start_trig_event__Q33ipl5scene7SettingFPCc+0x200
lbl_816971C9 => @27560 via initScroll__Q33ipl5scene7SettingFv+0x2d0,initScroll__Q33ipl5scene7SettingFv+0x374
lbl_816971A5 => @27406 via start_trig_event__Q33ipl5scene7SettingFPCc+0x1b4
lbl_816971D0 => @27862 via validateEULA___Q33ipl5scene7SettingFv+0xa0,validateEULA___Q33ipl5scene7SettingFv+0x104
lbl_816971D4 => @28152 via makeErrorMessage__Q33ipl5scene7SettingFv+0x78,makeSupportCode__Q33ipl5scene7SettingFv+0x54
lbl_81694C38 => @28153 via makeErrorMessage__Q33ipl5scene7SettingFv+0x150,makeErrorMessage__Q33ipl5scene7SettingFv+0x1b8
lbl_81697101 => @25626 via waitStart__Q33ipl5scene7SettingFv+0x34,waitFinish__Q33ipl5scene7SettingFv+0x28
## Initial data audit
- iplSetting: .data raw bytes identical, but extracted symbols combine unrelated literals and pointer arrays, and the retail Setting vtable's 252-byte symbol includes deduplicated weak vtables. Source has 104-byte Setting, 92-byte PaneManager, 24-byte EventHandler and 32-byte Interface vtables. No size edits to mask this. .rodata has one real title-ID initializer mismatch and two missing 20-byte digit tables. Other small sections differ only in trailing linker alignment or symbol identity.
- iplUSBAP: all bytes in the common section extents agree. usbapNickname source is 22 bytes versus the extracted 24-byte extent. The target copies 20 nickname bytes, so the two extra target bytes may be linker alignment; do not enlarge the buffer without further evidence.
- AOSS: all raw data bytes agree. .sbss identities are proven by relocations in instruction-exact functions. Source symbol enumeration differs from target enumeration; objdiff pairs unrelated anonymous globals. Rename only proven target symbols, preserving every byte and size.
- ATERM: all raw bytes agree, including the digest initializer at .data+0xd8. .data consists of compiler-generated switch tables and that initializer; differences are relocation destinations from nonexact functions. .sbss pairs anonymous globals by the wrong enumeration order. gAtermSelectedBssid is six bytes in an eight-byte extracted extent; no unsupported enlargement.
## AOSS accepted candidate
Renamed nine anonymous target data symbols using exact-function relocation identity. No addresses, sizes, splits or section bytes changed. .sbss increased from 42.857143% to 100%; matched_data 3896 -> 3928. Every non-text section is 100%. Existing five code mismatches remain outside this data assignment.
## iplSetting title IDs, attempt 1
Corrected the initializer's region 5 and 6 entries from slots 6 and 7 to slots 5 and 6, matching the 96 retail bytes. Source instructions unchanged. Data score unchanged because symbol pairing excludes this initializer. This is a real runtime correction, not an objdiff score trick.
## ATERM relocation identities, attempt 1
Named proven globals without altering any address or size. Exact ATERMi_ApConfigStart/End relocations prove state, result, allocation, callbacks and thread-started identities. ATERMi_AutoConfigThread proves socket-started at .sbss+0x24 and socket-ready at +0x20. ATERMBuildAssociationRequest relocations prove address buffer at +0x38. RunConfigProtocol target uses state at +0x40 throughout, response mode at +0x34 in receive calls, message length at +0x28, reply length at +0x2c and byte mode at +0x30, matching the same roles and source definitions. MD5Update calls reference the 64-byte .data+0xd8 initializer starting with 0x80, proving gAtermDigestFill. Target relocations at .text+0x1f8a/0x1fae correspond to source +0x1f96/0x1fc6. Bytes and total size unchanged.
## iplUSBAP nickname, attempt 1
Restored the UTF16 nickname object's 24-byte target extent as wchar_t[12]. The prior wchar_t[11] was 22 bytes. Target symbol usbapNickname has a distinct 24-byte allocation; only the first 20 bytes are copied by registration. This changes no instruction or following object offset and adds no dummy object.
## ATERM selected address, attempt 2
Restored the selected-BSSID storage's eight-byte target allocation as u8[8], retaining all six-byte MAC copies. Named it using ATERMDiscoverAccessPoints and BuildAssociationRequest relocations. No subsequent offsets change. .sbss is now 100%, matched_data 18504 -> 18584; instruction-exact remains 14/26. The full quick gate passed with zero regressions and the correct DOL hash.
## iplSetting digit tables, attempts 1 and 2
1. Added the two real ten-element UTF16 digit tables from retail .rodata+0x258 and +0x26c as static const wchar_t. MWCC removed both unreferenced internal tables; output remained 600 bytes.
2. Gave the same typed const objects external linkage so MWCC emits their proven data without forced sections or force-active entries. Target symbol names are scNumber and scNumber2 in namespace ipl::scene.
## iplSetting table identity and definition order, attempt 3
Named the three genuine pointer arrays at .data+0, +0x10 and +0x28 using create/initAP/redrawAP relocations and each table's pointed-to text. Their element counts and target sizes agree, with no size changes. Target relocations +0x6f76/+0x6f7e and source +0x701a/+0x7022 reference the four AP-button names; +0x6c5e/+0x6c6a and source +0x6cfa/+0x6d06 reference the six AP-text names; +0x67b6/+0x67ba and source +0x6846/+0x684a reference the six AP-number names. Reordered browserScrollDirection after the two existing Setting buffer definitions so the actual .sbss symbol offsets become 0, 4, 8 in target order. Named its target using updateScroll's load/store roles. All target addresses, sizes and totals remain unchanged.
Digit tables with external linkage emit at the exact target offsets 0x258 and 0x26c. The complete 640 .rodata bytes now agree, including the corrected title IDs. Score is 38.50412%, so the remaining cause is symbol/relocation partitioning rather than missing bytes.
## Required source-level rounds on all remaining functions
Each trial is compiled independently after the pool check. Only an exact-function gain with no lost instruction-exact functions or matched data can be retained. Three distinct declaration/control-expression trials per remaining function; failed candidates are restored.
createBrowser__Q33ipl5scene7SettingFv attempt 1: readonly mem1 allocation size; source 019fbd2fcb18; objdiff 98.8505%; instructions 299/301, diffs 114; unit exact 105; data 1040/5696.
createBrowser__Q33ipl5scene7SettingFv attempt 2: readonly mem2 allocation size; source 4b07d3801ad0; objdiff 98.8505%; instructions 299/301, diffs 114; unit exact 105; data 1040/5696.
createBrowser__Q33ipl5scene7SettingFv attempt 3: readonly mem1 heap pointer; source b2b32e5fe6d8; objdiff 98.8505%; instructions 299/301, diffs 114; unit exact 105; data 1040/5696.
draw__Q33ipl5scene7SettingFv attempt 1: reverse independent declarations u32 left;,u32 top;,u32 width;; source 52a11cf5440e; objdiff 91.52215%; instructions 595/632, diffs 570; unit exact 105; data 1040/5696.
draw__Q33ipl5scene7SettingFv attempt 2: rotate independent declarations u32 left;,u32 top;,u32 width;; source c3c6cea18781; objdiff 91.52057%; instructions 595/632, diffs 570; unit exact 105; data 1040/5696.
draw__Q33ipl5scene7SettingFv attempt 3: swap first independent declarations u32 left;,u32 top;,u32 width;; source 6848b182e5f8; objdiff 91.523735%; instructions 595/632, diffs 570; unit exact 105; data 1040/5696.
initKeyboard__Q33ipl5scene7SettingFPCc attempt 1: swap independent row/string limits; source f522f2f506e7; objdiff 98.07981%; instructions 215/213, diffs 195; unit exact 105; data 1040/5696.
initKeyboard__Q33ipl5scene7SettingFPCc attempt 2: readonly product area; source ba8ec44cca9c; objdiff 98.38498%; instructions 215/213, diffs 195; unit exact 105; data 1040/5696.
initKeyboard__Q33ipl5scene7SettingFPCc attempt 3: move invalid input declaration after limits; source 85624a719bc3; objdiff 97.99531%; instructions 215/213, diffs 195; unit exact 105; data 1040/5696.
calcKeyboard__Q33ipl5scene7SettingFv attempt 1: initialize selected form text; source 9e80dfbbf396; objdiff 98.0%; instructions 292/290, diffs 258; unit exact 105; data 1040/5696.
calcKeyboard__Q33ipl5scene7SettingFv attempt 2: readonly form identifiers; source 61ea4d9a22ca; objdiff 98.0%; instructions 292/290, diffs 258; unit exact 105; data 1040/5696.
calcKeyboard__Q33ipl5scene7SettingFv attempt 3: explicit pressOK comparison; source 118553a6ca4d; objdiff 98.0%; instructions 292/290, diffs 258; unit exact 105; data 1040/5696.
convertRevIP__Q33ipl5scene7SettingFPUcPCc attempt 1: reverse independent declarations char ascii[20];,int count = 0;,int index;; source a756d29859a8; objdiff 98.15069%; instructions 73/73, diffs 21; unit exact 105; data 1040/5696.
convertRevIP__Q33ipl5scene7SettingFPUcPCc attempt 2: rotate independent declarations char ascii[20];,int count = 0;,int index;; source 6bdcf9862666; objdiff 98.69863%; instructions 73/73, diffs 16; unit exact 105; data 1040/5696.
convertRevIP__Q33ipl5scene7SettingFPUcPCc attempt 3: swap first independent declarations char ascii[20];,int count = 0;,int index;; source 358ff4860b8a; objdiff 98.69863%; instructions 73/73, diffs 16; unit exact 105; data 1040/5696.
scanAP__Q33ipl5scene7SettingFv attempt 1: readonly animation index; source dee07bb51a23; objdiff 95.39338%; instructions 266/272, diffs 160; unit exact 105; data 1040/5696.
scanAP__Q33ipl5scene7SettingFv attempt 2: implicit count test; source 8accc6a48be9; objdiff 95.39338%; instructions 266/272, diffs 160; unit exact 105; data 1040/5696.
scanAP__Q33ipl5scene7SettingFv attempt 3: negated zero offset test; source 2580f28a59e6; objdiff 95.39338%; instructions 266/272, diffs 160; unit exact 105; data 1040/5696.
AOSS_Init_old attempt 1: reverse independent declarations s16 initialWait;,u64 tickRemainder;,AOSSReceiveBuffer* packetBuffer;; source 5c30692bda4a; objdiff 93.78725%; instructions 1575/1584, diffs 1524; unit exact 15; data 3928/3928.
AOSS_Init_old attempt 2: rotate independent declarations s16 initialWait;,u64 tickRemainder;,AOSSReceiveBuffer* packetBuffer;; source 7351eb86a582; objdiff 93.78725%; instructions 1575/1584, diffs 1524; unit exact 15; data 3928/3928.
AOSS_Init_old attempt 3: swap first independent declarations s16 initialWait;,u64 tickRemainder;,AOSSReceiveBuffer* packetBuffer;; source 706a211f5578; objdiff 93.78725%; instructions 1575/1584, diffs 1524; unit exact 15; data 3928/3928.
AOSSDecryptMessage attempt 1: reverse independent declarations u8* decryptedData;,u32 controlFlags;,u32 dataLength;; source f7b3ac943a8c; objdiff 97.3676%; instructions 321/321, diffs 113; unit exact 15; data 3928/3928.
AOSSDecryptMessage attempt 2: rotate independent declarations u8* decryptedData;,u32 controlFlags;,u32 dataLength;; source 7ffd1478855d; objdiff 97.3676%; instructions 321/321, diffs 113; unit exact 15; data 3928/3928.
AOSSDecryptMessage attempt 3: swap first independent declarations u8* decryptedData;,u32 controlFlags;,u32 dataLength;; source fec2235f89c3; objdiff 97.74143%; instructions 321/321, diffs 89; unit exact 15; data 3928/3928.
AOSSApplyAuthOptions attempt 1: reverse independent declarations AOSSConfigRecord* configRecord;,AOSSStoredConfig* wep40Config;,AOSSStoredConfig* wep104Config;; source 95a9300215fa; objdiff 98.59649%; instructions 114/114, diffs 26; unit exact 15; data 3928/3928.
AOSSApplyAuthOptions attempt 2: rotate independent declarations AOSSConfigRecord* configRecord;,AOSSStoredConfig* wep40Config;,AOSSStoredConfig* wep104Config;; source bf6d81c0ba25; objdiff 98.77193%; instructions 114/114, diffs 22; unit exact 15; data 3928/3928.
AOSSApplyAuthOptions attempt 3: swap first independent declarations AOSSConfigRecord* configRecord;,AOSSStoredConfig* wep40Config;,AOSSStoredConfig* wep104Config;; source f1a515f52069; objdiff 98.77193%; instructions 114/114, diffs 22; unit exact 15; data 3928/3928.
AOSSSendHelloRequest attempt 1: reverse independent declarations u32 checksum;,u16 nonce;,u32 stateLength;; source d059ca65aa5d; objdiff 92.190475%; instructions 271/273, diffs 254; unit exact 15; data 3928/3928.
AOSSSendHelloRequest attempt 2: rotate independent declarations u32 checksum;,u16 nonce;,u32 stateLength;; source a7659e25e005; objdiff 92.190475%; instructions 271/273, diffs 254; unit exact 15; data 3928/3928.
AOSSSendHelloRequest attempt 3: swap first independent declarations u32 checksum;,u16 nonce;,u32 stateLength;; source 844865b1bcd2; objdiff 92.190475%; instructions 271/273, diffs 254; unit exact 15; data 3928/3928.
AOSSXorBufferWithKey attempt 1: reverse independent declarations u8* packetHalf;,s32 round;,u8* keyMask;; source f82af7feda7f; objdiff 98.29932%; instructions 147/147, diffs 44; unit exact 15; data 3928/3928.
AOSSXorBufferWithKey attempt 2: rotate independent declarations u8* packetHalf;,s32 round;,u8* keyMask;; source 41287dd9e01e; objdiff 98.061226%; instructions 147/147, diffs 50; unit exact 15; data 3928/3928.
AOSSXorBufferWithKey attempt 3: swap first independent declarations u8* packetHalf;,s32 round;,u8* keyMask;; source e19bed9fdc58; objdiff 98.23129%; instructions 147/147, diffs 45; unit exact 15; data 3928/3928.
ATERMStartNetworkStack attempt 1: reverse independent declarations int status;,int waitCount = 0;,u32 convertedHost;; source 23d42a536d39; objdiff 97.91558%; instructions 154/154, diffs 51; unit exact 14; data 18584/18864.
ATERMStartNetworkStack attempt 2: rotate independent declarations int status;,int waitCount = 0;,u32 convertedHost;; source 347ce0ac1c10; objdiff 97.91558%; instructions 154/154, diffs 51; unit exact 14; data 18584/18864.
ATERMStartNetworkStack attempt 3: swap first independent declarations int status;,int waitCount = 0;,u32 convertedHost;; source ba2fac154a72; objdiff 97.91558%; instructions 154/154, diffs 51; unit exact 14; data 18584/18864.
ATERMFindChangedApRecord attempt 1: reverse independent declarations u32 previousIndex;,u32 currentIndex = 0;,int found = 0;; source 6206e4449cb5; objdiff 99.02299%; instructions 174/174, diffs 31; unit exact 14; data 18584/18864.
ATERMFindChangedApRecord attempt 2: rotate independent declarations u32 previousIndex;,u32 currentIndex = 0;,int found = 0;; source 4d6f8c454685; objdiff 99.56896%; instructions 174/174, diffs 15; unit exact 14; data 18584/18864.
ATERMFindChangedApRecord attempt 3: swap first independent declarations u32 previousIndex;,u32 currentIndex = 0;,int found = 0;; source 479cf7027f9d; objdiff 99.56896%; instructions 174/174, diffs 15; unit exact 14; data 18584/18864.
ATERMDiscoverAccessPoints attempt 1: reverse independent declarations s32 result = -1;,u32 scanBufferBytes;,u32 recordIndex;; source 38bdcd667907; objdiff 95.304184%; instructions 261/263, diffs 221; unit exact 14; data 18584/18864.
ATERMDiscoverAccessPoints attempt 2: rotate independent declarations s32 result = -1;,u32 scanBufferBytes;,u32 recordIndex;; source cf149ff96201; objdiff 95.304184%; instructions 261/263, diffs 221; unit exact 14; data 18584/18864.
ATERMDiscoverAccessPoints attempt 3: swap first independent declarations s32 result = -1;,u32 scanBufferBytes;,u32 recordIndex;; source fa4d3117c7a2; objdiff 95.304184%; instructions 261/263, diffs 221; unit exact 14; data 18584/18864.
ATERMBuildEncryptedMessage attempt 1: reverse independent declarations u8* end;,u8* cursor;,u32 checksum = 0;; source 9d1d353a8172; objdiff 98.072914%; instructions 96/96, diffs 28; unit exact 14; data 18584/18864.
ATERMBuildEncryptedMessage attempt 2: rotate independent declarations u8* end;,u8* cursor;,u32 checksum = 0;; source c8cbce624a1a; objdiff 98.072914%; instructions 96/96, diffs 28; unit exact 14; data 18584/18864.
ATERMBuildEncryptedMessage attempt 3: swap first independent declarations u8* end;,u8* cursor;,u32 checksum = 0;; source f0f6bbeb6b04; objdiff 99.791664%; instructions 96/96, diffs 4; unit exact 14; data 18584/18864.
ATERMBuildAssociationRequest attempt 1: reverse independent declarations u8 scanAddress[8];,u8 interfaceMacAddress[8];,char interfaceMacText[32];; source f5a4706f525e; objdiff 93.3609%; instructions 133/133, diffs 79; unit exact 14; data 18584/18864.
ATERMBuildAssociationRequest attempt 2: rotate independent declarations u8 scanAddress[8];,u8 interfaceMacAddress[8];,char interfaceMacText[32];; source ab3c0949359b; objdiff 93.3609%; instructions 133/133, diffs 79; unit exact 14; data 18584/18864.
ATERMBuildAssociationRequest attempt 3: swap first independent declarations u8 scanAddress[8];,u8 interfaceMacAddress[8];,char interfaceMacText[32];; source 4ba94c960472; objdiff 93.3609%; instructions 133/133, diffs 79; unit exact 14; data 18584/18864.
ATERMParseAssociationResponse attempt 1: reverse independent declarations u8* optionValue;,u16* responseEnd;,u32 optionType;; source ce08a2035d61; objdiff 98.9781%; instructions 137/137, diffs 26; unit exact 14; data 18584/18864.
ATERMParseAssociationResponse attempt 2: rotate independent declarations u8* optionValue;,u16* responseEnd;,u32 optionType;; source 504def96220c; objdiff 98.90511%; instructions 137/137, diffs 28; unit exact 14; data 18584/18864.
ATERMParseAssociationResponse attempt 3: swap first independent declarations u8* optionValue;,u16* responseEnd;,u32 optionType;; source e8f37744718f; objdiff 99.014595%; instructions 137/137, diffs 25; unit exact 14; data 18584/18864.
ATERMRunConfigProtocol attempt 1: reverse independent declarations u8 digestLength[8];,s32 socket = 0;,s32 result = -5;; source 79f186c37484; objdiff 87.43323%; instructions 972/951, diffs 946; unit exact 14; data 18584/18864.
ATERMRunConfigProtocol attempt 2: rotate independent declarations u8 digestLength[8];,s32 socket = 0;,s32 result = -5;; source 89e99ad28a12; objdiff 87.43323%; instructions 972/951, diffs 946; unit exact 14; data 18584/18864.
ATERMRunConfigProtocol attempt 3: swap first independent declarations u8 digestLength[8];,s32 socket = 0;,s32 result = -5;; source e938c8fda52f; objdiff 87.43323%; instructions 972/951, diffs 946; unit exact 14; data 18584/18864.
ATERMi_AutoConfigThread attempt 1: swap independent final-state declarations; source 2765e2a67e64; objdiff 94.75%; instructions 40/40, diffs 3; unit exact 14; data 18584/18864.
ATERMi_AutoConfigThread attempt 2: readonly protocol return; source 16e2c983b7db; objdiff 94.75%; instructions 40/40, diffs 3; unit exact 14; data 18584/18864.
ATERMi_AutoConfigThread attempt 3: implicit socket-started test; source 841ec1376692; objdiff 94.75%; instructions 40/40, diffs 3; unit exact 14; data 18584/18864.
ATERMAesKeyWrap attempt 1: reverse independent declarations u32 initialValue[2];,u8* outputBlock;,s32 blockOffset;; source 85b71a968e5f; objdiff 99.0%; instructions 117/117, diffs 20; unit exact 14; data 18584/18864.
ATERMAesKeyWrap attempt 2: rotate independent declarations u32 initialValue[2];,u8* outputBlock;,s32 blockOffset;; source 1b43fa7e9bd2; objdiff 99.0%; instructions 117/117, diffs 20; unit exact 14; data 18584/18864.
ATERMAesKeyWrap attempt 3: swap first independent declarations u32 initialValue[2];,u8* outputBlock;,s32 blockOffset;; source ed2e22983183; objdiff 99.0%; instructions 117/117, diffs 20; unit exact 14; data 18584/18864.
ATERMAesExpandEncryptKey attempt 1: reverse independent declarations u32 keyWord;,u32 fourthWord;,u32 firstWord;; source 61b1be054e4c; objdiff 98.94403%; instructions 268/268, diffs 49; unit exact 14; data 18584/18864.
ATERMAesExpandEncryptKey attempt 2: rotate independent declarations u32 keyWord;,u32 fourthWord;,u32 firstWord;; source 4cf5bc24589b; objdiff 98.94403%; instructions 268/268, diffs 49; unit exact 14; data 18584/18864.
ATERMAesExpandEncryptKey attempt 3: swap first independent declarations u32 keyWord;,u32 fourthWord;,u32 firstWord;; source 6615e5cd1f74; objdiff 98.94403%; instructions 268/268, diffs 49; unit exact 14; data 18584/18864.
ATERMMd5Update attempt 1: reverse independent declarations u32 bytesToFill;,u32 copiedBytes;,u32 index;; source fd011eb98c20; objdiff 91.263885%; instructions 139/144, diffs 115; unit exact 14; data 18584/18864.
ATERMMd5Update attempt 2: rotate independent declarations u32 bytesToFill;,u32 copiedBytes;,u32 index;; source 35afeb8baa9e; objdiff 91.263885%; instructions 139/144, diffs 115; unit exact 14; data 18584/18864.
ATERMMd5Update attempt 3: swap first independent declarations u32 bytesToFill;,u32 copiedBytes;,u32 index;; source 56d167f0051a; objdiff 91.263885%; instructions 139/144, diffs 115; unit exact 14; data 18584/18864.
## Final open-function coverage
createBrowser__Q33ipl5scene7SettingFv: 98.8505% remains after 3 distinct compiled source trials. No partial trial retained.
draw__Q33ipl5scene7SettingFv: 91.525314% remains after 3 distinct compiled source trials. No partial trial retained.
initKeyboard__Q33ipl5scene7SettingFPCc: 98.38498% remains after 3 distinct compiled source trials. No partial trial retained.
calcKeyboard__Q33ipl5scene7SettingFv: 98.0% remains after 3 distinct compiled source trials. No partial trial retained.
convertRevIP__Q33ipl5scene7SettingFPUcPCc: 98.69863% remains after 3 distinct compiled source trials. No partial trial retained.
scanAP__Q33ipl5scene7SettingFv: 95.39338% remains after 3 distinct compiled source trials. No partial trial retained.
AOSS_Init_old: 93.78725% remains after 3 distinct compiled source trials. No partial trial retained.
AOSSDecryptMessage: 97.74143% remains after 3 distinct compiled source trials. No partial trial retained.
AOSSApplyAuthOptions: 98.77193% remains after 3 distinct compiled source trials. No partial trial retained.
AOSSSendHelloRequest: 92.190475% remains after 3 distinct compiled source trials. No partial trial retained.
AOSSXorBufferWithKey: 98.605446% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMStartNetworkStack: 97.91558% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMFindChangedApRecord: 99.56896% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMDiscoverAccessPoints: 95.304184% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMBuildEncryptedMessage: 99.791664% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMBuildAssociationRequest: 93.44361% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMParseAssociationResponse: 99.56204% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMRunConfigProtocol: 87.43323% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMi_AutoConfigThread: 94.75% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMAesKeyWrap: 99.0% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMAesExpandEncryptKey: 98.94403% remains after 3 distinct compiled source trials. No partial trial retained.
ATERMMd5Update: 91.263885% remains after 3 distinct compiled source trials. No partial trial retained.
Every remaining nonexact function has three compiled trials. Both completed data units remain complete; unresolved data needs the evidence review below.
## iplSetting browser page initializers, attempt 4
A normalized relocation audit found seven real .rodata pointer mismatches that the raw-byte comparison missed. The final region-page entry at .rodata+0x188 must be Setup/ScreenSave.html. The seven direct-page names at +0x18c must be Calendar, Display, Sound, Parental_Control, Internet, Wiiconnect24, Update. Source incorrectly put Calendar in the region pages and duplicated Update in the direct pages. Corrected these ordinary literal initializers without changing either array's count or pool order. All 60 .rodata relocations now agree after resolving section-relative destinations. All 640 raw bytes agree. Objdiff .rodata is now 100%, matched_data 1040 -> 1680. Code scores and instruction-exact counts are unchanged.
This audit supersedes the earlier suggestion that symbol partitioning alone explained the .rodata score. Relocation destinations must be checked as well as raw bytes.
## Remaining data sections
- iplSetting .data: 4016 raw bytes agree, but 104 normalized relocation entries differ. Of these, 73 are switch-table destinations in nonexact initKeyboard, calcKeyboard and scanAP. The other 31 are emitted weak PaneManager/EventHandler/Interface vtable slots where the original DOL extraction has zero bytes and no relocations. Original Setting's 252-byte symbol covers its actual 104-byte vtable plus those 148 deduplicated weak bytes. No target symbol sizes were changed, no tables were replaced with assembly, and no dummy objects were added. The 31 weak slots are the allowed extraction exception; the 73 switch entries are genuine remaining differences. Each affecting function has three distinct compiled attempts above.
- ATERM .data: 280 raw bytes agree, but all 11 entries of the RunConfigProtocol switch table at .data+0xac differ in function-relative destinations. The first 43 jump-table entries agree, and the real 64-byte digest initializer agrees. RunConfigProtocol is 972 instructions versus 951 target instructions. Three declaration-order trials did not reduce this mismatch. It needs code matching before this section can reach 100%.
- iplUSBAP and AOSS: every reported non-text section is 100%, and matched_data equals total_data.
- extab/extabindex: absent in both original and source for all four units. No unmatched exception tables are omitted from this audit.
No split boundaries or symbol sizes changed. Naming corrections only affect the four assigned units. All three-trial candidates were restored; no fuzzy code edits were retained. The data goal is not complete for iplSetting or ATERM.
## ATERM allocation audit and correction
The first full gate passed, but a fresh physical-layout audit found that u8[8] made MWCC align gAtermSelectedBssid to eight bytes. It moved the object from target .sbss+0x44 to +0x48, moved cancellation from +0x4c to +0x50 and grew .sbss from 80 to 84 bytes. Objdiff still reported .sbss 100% because it matched named objects independently of placement. That score was insufficient evidence; the eight-byte source allocation is reverted.
Three further compiled layout trials were rejected:
1. A typed union with a six-byte address and two-word view still occupied +0x48 and grew the section to 84 bytes.
2. u8[8] with ATTRIBUTE_ALIGN(4) still occupied +0x48 and grew the section to 84 bytes.
3. u8[8] with prefix __declspec(align(4)) still occupied +0x48 and grew the section to 84 bytes.
The final source retains the original six-byte MAC object at +0x44 and cancellation at +0x4c. .sbss is exactly 80 zero bytes, and every physical object start agrees with the target. The target's eight-byte symbol extent appears to include two bytes of inter-object alignment. I did not shrink its symbol or add padding to force the score. Final .sbss score is 94.80519%, matched_data remains 18504, and ATERM's data goal remains incomplete. This supersedes the earlier claimed .sbss completion and 18584 matched_data result. No alignment attributes or union trial remain in the source.
## Final full gate
```text
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 6.807248
[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 1040 functions 106 fuzzy 99.1581
[src/scene/setting/iplUSBAP] pool: IDENTICAL
[src/scene/setting/iplUSBAP] objdiff: code 988/988 data 4984/4984 functions 4/4 fuzzy 100.0000 linked code 988
[src/scene/setting/iplUSBAP] instruction-exact functions: 4/4
[src/scene/setting/iplUSBAP] section .bss size 4944 match 100.0
[src/scene/setting/iplUSBAP] section .data size 16 match 100.0
[src/scene/setting/iplUSBAP] section .sbss size 24 match 100.0
[src/scene/setting/iplUSBAP] section .text size 988 match 100.0
[src/scene/setting/iplUSBAP] baseline: code 988/988 data 40 functions 4 fuzzy 100.0000
[src/scene/setting/ATERM] pool: IDENTICAL
[src/scene/setting/ATERM] objdiff: code 9296/19204 data 18504/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 22.857143
[src/scene/setting/ATERM] section .rodata size 10280 match 100.0
[src/scene/setting/ATERM] section .sbss size 80 match 94.80519
[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
[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 3896 functions 16 fuzzy 96.7779
regressions vs baseline: 0
global matched_code_percent: 88.52293 -> 88.52293
global fuzzy_match_percent: 99.44739 -> 99.44739
global complete_code_percent: 62.78043 -> 62.78043
global matched_data_percent: 93.05085 -> 93.35729
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
```
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,267 +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).

View File

@@ -1,582 +0,0 @@
# data-d5 data lane
Baseline 2026-10-02: HEAD and origin/main eecf16f0. All four owned sources equal origin/main before changes. Fresh object build and objdiff report saved in /tmp/data-d5-before.json; instruction-exact baseline in /tmp/data-d5-exact-before.json.
| Unit | matched data | total data | instruction exact |
| --- | ---: | ---: | ---: |
| SDChannelSelect | 224 | 2960 | 117/129 |
| ChannelSelect | 192 | 2336 | 101/102 |
| GCWindow | 248 | 2032 | 47/48 |
| SDMemory | 200 | 3344 | 63/66 |
Pool-first audit: SDChannelSelect 101/101, GCWindow 50/50 and SDMemory 90/90 strings identical. ChannelSelect first divergence index 91, offset 0x653, duplicates WSD_SELECT after its earlier ordinary literal at 0x524. Relocation audit found SDMemory title-pane table at .data+0xc targets A,B,C,D,B_BtnA; source instead uses A,B,B_BtnA,C,D. Correct the typed table initializer.
All raw shared .data bytes already equal for SDChannelSelect, GCWindow and SDMemory. Their unequal section scores also involve coarse extracted symbol boundaries and deduplicated weak data. A raw-byte comparison alone does not prove relocations match. No symbols or splits have been changed.
## SDMemory
Fetched origin before starting; no source changes on origin/main. Attempt 1: corrected the real five-entry title-pane table to A,B,C,D,B_BtnA. Target .data+0x14/+0x18/+0x1c relocations name the corresponding C,D,B_BtnA .sdata literals. Source and target now have identical literal bytes and table targets. Quick gate: data 200 -> 3344/3344, every data section 100%; instruction-exact 63/66 unchanged, objdiff-exact 64/66 unchanged, regressions 0, GATE PASS. No additional data objects or ownership edits needed.
## ChannelSelect
Fetched origin before starting; no source changes on origin/main. Attempt 1: moved the real scSE_WSD_SELECT definition before preparePageScrolling and referenced that object instead of producing another identical literal. Pool 99/98 -> 98/98 strings, identical; .data raw shared bytes now identical. .data objdiff 32.810795 -> 95.60976; instruction-exact 101/102 unchanged. Remaining semantic reloc differences are exclusively weak interpolation/gui vtables, not strings, arrays or live ChannelSelect/event-handler vtable entries. Source .data 2140 versus target 2144 is trailing linker alignment; source .sdata 73 versus target 80 and .sbss 4 versus 8 also contain only trailing zero alignment. No artificial objects added to fill these gaps.
Full clean gate over all four units: GATE PASS, full build ok, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, regressions 0, forbidden patterns 0, readability problems 0. SDMemory all non-text sections 100% and matched_data 3344/3344. Instruction-exact counts remain 117,101,47,63. Source review is three changed lines plus moving one existing definition.
## GCWindow
Fetched origin before starting; no source changes on origin/main. Target nm shows LinearIntp<VEC3> destructor and vtable undefined, while the source instantiated a weak LinearIntp vtable at .data+0x650 and Interporation vtable at +0x660, displacing the real MemCardEventHandler vtable from +0x650 to +0x670. These are explicit-specialization ownership differences rather than missing arrays. The existing LinearIntp constructor is instruction-exact, 4/4 instructions, diffs 0.
Attempt 1: declare the concrete LinearIntp<VEC3> specialization with an out-of-line destructor, preserving Interporation<VEC3> inheritance. First compilation exposed earlier include order, fixed by including math types under the same GCWindow-only macro. Real MemCardEventHandler vtable returned to +0x650; .data 16.997168 -> 99.55357. The remaining weak Interporation vtable moved to the end. All 47 baseline exact functions preserved.
Attempt 2: declare the corresponding concrete Interporation<VEC3> specialization with an out-of-line destructor, keeping its existing fields, initialization and accessors. Both interpolation vtables now have external ownership as the target's LinearIntp relocation proves; no fake zero tables, section attributes or forced references. .data 100%, data 248 -> 2032/2032; all other data sections remain 100%, instruction-exact 47/48 unchanged. Semantic relocations in .data, .rodata and .sdata now agree fully. Every shared-header change is under IPL_GC_WINDOW_CPP, defined only by the owned GCWindow.cpp.
## SDChannelSelect
Fetched origin before starting; no source changes on origin/main. Pool 101/101 identical. All raw shared bytes of .data, .rodata, .sdata and .sdata2 identical. All non-text semantic relocations before .data+0x960 identical, including every pane-name array, dialog page and compiler switch table. Live button/event/scene vtables start at target 0x980/0x99c/0x9b4 versus source 0x960/0x97c/0x994. Target .data+0x960..0x980 is all zero and has no relocation or symbol. Target trailing deduplicated GUI vtables have zero bytes and no relocations, while source emits real weak PaneManager/EventHandler/Interface vtables. No artificial gap object is permitted.
Attempt 1: HermiteIntp<VEC3> specialization inherited the existing Interporation<VEC3> and defined its destructor inline. Preserved all 117 exact functions but generated the two weak vtables at the end, not in the target's earlier anonymous 32-byte gap. .data stayed 35.06984, matched_data 224. Reverted.
Attempt 2: use the primary HermiteIntp template with a VEC3 member-init specialization declaration. Preserved 117 exact functions but instantiated init and weak vtables at the end. .data stayed 35.06984, matched_data 224. Reverted because ownership was less faithful to the target's undefined init symbol.
Attempt 3: retain concrete HermiteIntp<VEC3> destructor/init out of line but inherit Interporation<VEC3>. Preserved 117 exact functions; only the intermediate weak vtable was emitted at the end. .data stayed 35.06984, matched_data 224. Reverted.
Symbol investigation: renamed the two event-handler and scene vtable symbols without changing their extents, using their function-pointer relocations as evidence; .data reached 43.61462, no matched-data gain. Also experimentally split the BaseMask4/Picture_04/ClockPane2 literal-plus-array aggregates at their proven literal lengths and five-/three-pointer table boundaries, preserving section bytes, lengths and all relocations; .data reached 56.610638, no matched-data gain. Reverted all symbols changes. Do not confuse symbol-scoring improvements with exact bytes or acceptance. The anonymous zero gap's exact ownership is not proven, so it remains open rather than being filled with fabricated data.
## Data-lane completion audit
SDMemory and GCWindow have every non-text section at 100% and matched_data equal total_data. ChannelSelect has identical zero-extended raw non-text section bytes and identical live relocations; remaining .data score 95.60976 comes solely from linker-deduplicated weak interpolation/gui data. Per task step 4, record this extraction limitation instead of deleting correct weak tables or adding zeros. SDChannelSelect has three distinct typed-class attempts plus relocation-backed symbol experiments; its missing anonymous 32-byte zero range and shifted live vtable placement remain unresolved. The code-only non-matches are outside this data-lane assignment and have not been changed.
ChannelSelect attempt 2: preserved the Hermite primary template but inherited FrameController directly, with the existing start/end fields instead of the intermediate Interporation base. The intermediate weak vtable disappeared and shifted live event/scene vtables by 16 bytes; .data fell from 95.60976 to 32.810795 despite 101 instruction-exact functions remaining. Reverted.
ChannelSelect attempt 3: kept the VEC3 interpolation hierarchy and declared the concrete f32 Hermite specialization with its real fields/init/get and out-of-line destructor, matching the target's external f32 vtable ownership. .data rose to 96.36185, but compiler literal ordering changed .sdata2 to 88.63636 and instruction-exact functions fell 101 -> 100, objdiff code 24736 -> 24272, data 192 -> 104. Rejected and reverted immediately. No failing experiment was committed.
All three remaining-data source attempts are recorded for ChannelSelect and SDChannelSelect. GCWindow data is exact after two attempts; SDMemory data is exact after one initializer correction. No code decompilation was undertaken in this lane.
## Final clean gate
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
[src/scene/memoryCard/iplGCWindow] objdiff: code 9172/9964 data 2032/2032 functions 47/48 fuzzy 99.8398 linked code 0
[src/scene/memoryCard/iplGCWindow] instruction-exact functions: 47/48
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 14812/20872 data 3344/3344 functions 64/66 fuzzy 98.9810 linked code 0
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 63/66
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
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

@@ -1,266 +0,0 @@
# data-d6 attempts
Applied unslop to this log and final report. Worker scope is the four assigned units; no orchestration or upstream actions.
Baseline HEAD and origin/main: eecf16f0. Fetch checked before each unit; owned source paths have no incoming changes.
Baseline instruction-exact / matched code / matched data:
- CDBRecord: 27/29, 5464/7076, 144/2640.
- sd_drv: 21/26, 8940/11760, 408/3592.
- www_surface: 21/21, 1916/1916, 40/3536.
- iplFocusObject: 88/89, 19772/20332, 408/2576.
Initial full-build quick gate passes, zero regressions, retail DOL SHA1.
## sd_drv data
Pool identical, all 46 strings at identical offsets. nm -n, objdump -t and ELF symbols show target g_pfd_sddrv_info has size 32, source 28; the next object starts at 32 in both. Target .bss is 608 bytes aligned to 32. Source .bss is 608 bytes aligned to 8. Raw BSS bytes are identical. Existing fields occupy 25 bytes; the source type rounds to 28. Recovering eight-byte struct alignment rounds the real type to its original 32-byte extent without adding a field or object.
1. Restore ALIGN32 on SD globals and interrupt event. .sbss g_event moves from 8 to target 32 and section alignment becomes 32, but final size is 36 rather than extracted 40. No data score gain. Not retained.
2. Give the information type 32-byte alignment, with aligned globals. BSS becomes 100%, but code falls from 21 to 17 exact functions. ctxdiff shows changed physical-read increment scheduling and an extra move in get_disk_info. Rejected and restored.
3. Give only the information type eight-byte alignment. BSS becomes 100%; matched_data 408 -> 1016; code remains 8940 and 21 exact functions. No extra fields, padding objects, forced sections or symbol-size edits.
The .data raw bytes match for all 2574 source bytes; target is 2576 bytes, with two trailing zero bytes. All 46 pool strings and offsets match. No source table is missing. The remaining .data score 99.96117 reflects the extracted final section extent. No split correction is justified by relocations; no correction made. .sbss raw zero bytes match, but extracted target includes alignment before g_event and trailing alignment. Objdiff already scores it 100%; this is not proof of identical object layout.
## www_surface data
Pool identical, all 126 strings. .data target 3496/source 3495, every overlapping byte identical and target final byte zero. All export-table relocations resolve to the same exported functions and string offsets. Target .data has no relocations for the discarded message table at 0xc0c..0xc6b; source has a relocation at 0xc64 to IPL_WWW_SURFACE_ZERO. Real manager vtable relocation at 0xd98 matches its destructor. The weak TickTimer report string at 0xd9c is zero-filled in both extracted objects and source, with one final alignment byte only in target. Existing header includes a weak-zero workaround; no additional workaround is added. No table, vtable, or function is deleted to suppress weak relocations. The remaining score is 99.842384, matched_data 40/3536. Object extraction and deduplication explain these differences; no ownership correction has supporting relocation evidence.
## iplFocusObject data
Pool identical, all 80 strings. .data target 2168/source 2164; all overlapping raw bytes identical, final four extracted bytes zero. Relocations through the real event vtable at 0x7c8..0x7df agree. Original has no relocations after 0x7df. Source emits real weak PaneManager, gui::EventHandler and gui::Interface vtables at 0x7e0..0x873 with destructor/method relocations, whereas the extracted original contains zero-filled discarded weak data. No class declarations or virtual methods are deleted to remove required real tables. .rodata, .sdata and .sdata2 already score 100%. Remaining .data score 99.90767 reflects weak relocation metadata and final alignment. No split correction is justified.
## CDBRecord data
Pool first diverges at index 8, offset 0x1b0. Target diagnostic is file-size, source data-size. Target .data is 2496 bytes; source 925. The target retains 47 diagnostic strings, source 19. The absent diagnostics refer to file/data reduction, type getters/setters, maker-code, modification getters, keyword, key/calendar access, duplication and owner change. Target .text has only 29 live functions; these diagnostic-producing functions have no surviving instructions. Definitions cannot be recovered literally from the assigned extracted object. No string blobs, unused diagnostic objects or speculative public functions are added merely to obtain these bytes. Existing typed crypt buffers and AES key match, 144 bytes.
Existing CDBRecord.attempts.md records three distinct CDBCryptBuffer loop variants and at least four distinct CDBRecordEncrypt lifetime/alignment variants. Those are code-lane attempts, not a repair for absent data. Current run checks these functions independently below.
pfd_sddrv_get_total_sectors | one shift expression | objdiff 96.9875%, instructions 80/80, diffs 10; unit code 8940, data 1016, functions 21
pfd_sddrv_get_total_sectors | unsigned shift expression | objdiff 95.8625%, instructions 79/80, diffs different instruction counts; unit code 8940, data 1016, functions 21
pfd_sddrv_get_total_sectors | named shift count | objdiff 96.9875%, instructions 80/80, diffs 10; unit code 8940, data 1016, functions 21
pfd_sddrv_init | unsigned null comparison | objdiff 92.326385%, instructions 144/144, diffs 31; unit code 8940, data 1016, functions 21
pfd_sddrv_init | named null disk | objdiff 92.326385%, instructions 144/144, diffs 31; unit code 8940, data 1016, functions 21
pfd_sddrv_init | explicit device lifetime | objdiff 84.02778%, instructions 145/144, diffs different instruction counts; unit code 8940, data 1016, functions 21
pfd_sddrv_finalize | clear disk before media state | objdiff 92.61404%, instructions 57/57, diffs 5; unit code 8940, data 1016, functions 21
pfd_sddrv_finalize | named remaining flags | objdiff 92.63158%, instructions 57/57, diffs 4; unit code 8940, data 1016, functions 21
pfd_sddrv_finalize | clear drive before flags | objdiff 81.929825%, instructions 57/57, diffs 9; unit code 8940, data 1016, functions 21
pfd_sddrv_store_mbr_buf | name cylinder size | objdiff 99.75247%, instructions 202/202, diffs 9; unit code 8940, data 1016, functions 21
pfd_sddrv_store_mbr_buf | name first sector before CHS | objdiff 99.75247%, instructions 202/202, diffs 9; unit code 8940, data 1016, functions 21
pfd_sddrv_store_mbr_buf | calculate start head before cylinder | objdiff 99.75247%, instructions 202/202, diffs 9; unit code 8940, data 1016, functions 21
pfd_sddrv_build_fat32_mbr_bpb | named sector buffer | objdiff 89.572075%, instructions 230/222, diffs different instruction counts; unit code 8940, data 1016, functions 21
pfd_sddrv_build_fat32_mbr_bpb | reuse initialized format structure | objdiff 90.6982%, instructions 239/222, diffs different instruction counts; unit code 8940, data 1016, functions 21
Ran nm -n, objdump -t and objdump -r -j for every present owned non-text section of both objects. Full output is /tmp/data-d6.symbols-relocations.txt. None of the four objects has extab or extabindex. No splits or symbols were changed.
pfd_sddrv_build_fat32_mbr_bpb | remove unreachable null check from reserved-sector helper | objdiff 97.20721%, instructions 216/222, diffs different instruction counts; unit code 8472, data 1016, functions 20
cmn_calc__Q33ipl5scene12focus_objectFv | name scroller translation vector | objdiff 87.21429%, instructions 140/140, diffs 31; unit code 19772, data 408, functions 88
cmn_calc__Q33ipl5scene12focus_objectFv | name balloon position | objdiff 87.185715%, instructions 140/140, diffs 35; unit code 19772, data 408, functions 88
cmn_calc__Q33ipl5scene12focus_objectFv | separate scroller and fade translations | objdiff 87.185715%, instructions 140/140, diffs 35; unit code 19772, data 408, functions 88
CDBCryptBuffer | for-loop offset lifetime | objdiff 99.97479%, instructions 119/119, diffs 3; unit code 5464, data 144, functions 27
CDBCryptBuffer | remaining-size chunk comparison | objdiff 92.411766%, instructions 118/119, diffs different instruction counts; unit code 5464, data 144, functions 27
CDBCryptBuffer | named chunk pointer | objdiff 98.29412%, instructions 119/119, diffs 5; unit code 5464, data 144, functions 27
CDBRecordEncrypt | file-size and data-size declaration order | objdiff 97.211266%, instructions 283/284, diffs different instruction counts; unit code 5464, data 144, functions 27
CDBRecordEncrypt | signed pointer tests to pointer null tests | objdiff 96.62676%, instructions 284/284, diffs 246; unit code 5464, data 144, functions 27
CDBRecordEncrypt | signature before hash output | objdiff 97.19014%, instructions 283/284, diffs different instruction counts; unit code 5464, data 144, functions 27
## Open-function audit
Every still-open function received three distinct source experiments in this run, individually built and measured, then restored. No experimental code is retained.
- CDBCryptBuffer, 99.97479%, 119/119 instructions, exactly three diagnostic pool offsets differ. The absent pre-crypt diagnostics are the cause. Loop changes cannot repair them.
- CDBRecordEncrypt, 97.19014%, 283/284 instructions, pool offsets plus stack positions and register allocation. Three fresh attempts and prior attempts remain non-exact.
- pfd_sddrv_init, 92.326385%, 144/144 instructions, branch direction, allocation and store scheduling. Unsigned/null tests unchanged; moving the device assignment worsened the result.
- pfd_sddrv_finalize, 92.63158%, 57/57 instructions, four register/scheduling differences. Named flags unchanged; clearing other fields first worsened the result.
- pfd_sddrv_get_total_sectors, 99.5%, 80/80 instructions, six shift/register differences. One expression, unsigned shift and named shift lifetime failed.
- pfd_sddrv_store_mbr_buf, 99.75247%, 202/202 instructions, nine CHS temporary-register differences. Named cylinder size, named first sector and swapped CHS statement order all unchanged.
- pfd_sddrv_build_fat32_mbr_bpb, 94.75225%, 230/222 instructions, inlined reserved-sector null test and scheduling. Naming the buffer and initializing the structure failed. Removing the helper guard produced 216/222 instructions and regressed another exact function, so it was restored.
- cmn_calc__Q33ipl5scene12focus_objectFv, 87.185715%, 140/140 instructions, stack temporary placement and floating-point ordering. Naming the translation reduces 35 differences to 31 but is not exact; naming balloon and fade positions is unchanged.
Data goal remains incomplete. No diagnostic strings, ghost functions, dummy tables, removed virtual methods, artificial padding or section-size edits were used. Type alignment is inferred from the original 32-byte information-object extent, not from a surviving retail type declaration. Weak discarded sections and linker tail alignment are reported as extraction limitations, not as 100% objdiff results.
## Final clean gate
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py libs/RevoEX/src/cdb/CDBRecord libs/RVL_SDK/src/fa/driver/sd_drv src/iplwww/www_surface src/scene/board/iplFocusObject
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RevoEX/src/cdb/CDBRecord] pool: DIVERGES at string 8 (mine=19 orig=47)
[libs/RevoEX/src/cdb/CDBRecord] objdiff: code 5464/7076 data 144/2640 functions 27/29 fuzzy 99.5472 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 50.833576
[libs/RevoEX/src/cdb/CDBRecord] section .rodata size 16 match 100.0
[libs/RevoEX/src/cdb/CDBRecord] section .text size 7076 match 99.5472
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBCryptBuffer 99.97479
[libs/RevoEX/src/cdb/CDBRecord] below 100: CDBRecordEncrypt 97.19014
[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 1016/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 99.96117
[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 408 functions 21 fuzzy 99.0544
[src/iplwww/www_surface] pool: IDENTICAL
[src/iplwww/www_surface] objdiff: code 1916/1916 data 40/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 99.842384
[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 408/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 99.90767
[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.52293 -> 88.52293
global fuzzy_match_percent: 99.44739 -> 99.44739
global complete_code_percent: 62.78043 -> 62.78043
global matched_data_percent: 93.05085 -> 93.08402
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
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

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