Compare commits

..

1 Commits

Author SHA1 Message Date
coah
095d1d857b cleanup(iplUtility): rename BScroller/Scroller unk fields
BScroller: unk_0x08/0x10 → mCurPos/mStartPos
Scroller: unk_0x3C/44/48/4C → mVelocity/mAnimFrom/mFriction/mAccel

Verified: iplUtility 100%/100%, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d
2026-10-02 14:56:48 -05:00
244 changed files with 1774 additions and 38280 deletions

View File

@@ -2,8 +2,8 @@ name: README progress
# runs on the self-hosted runner on cole's server so it doesn't use hosted minutes.
# only push/schedule/manual triggers, never pull_request, so fork PRs can't reach this machine.
# it never commits to main: it rebuilds, publishes the numbers to the job summary, and force-pushes
# the README badge JSON as a single commit on the orphan progress-data branch.
# README progress is written inside each landing commit by the orchestrator, so this job never commits;
# it only rebuilds and publishes the current numbers to the job summary.
on:
push:
branches: [main]
@@ -17,7 +17,7 @@ concurrency:
cancel-in-progress: true
permissions:
contents: write
contents: read
jobs:
progress:
@@ -55,17 +55,3 @@ jobs:
python3 tools/update_readme_progress.py build/43U/report.json README.md "$GITHUB_SHA"
sed -n '/progress:start/,/progress:end/p' README.md >> "$GITHUB_STEP_SUMMARY"
git checkout -- README.md
- name: Publish badges
if: github.ref == 'refs/heads/main'
run: |
out="$RUNNER_TEMP/progress-data"
rm -rf "$out"
python3 tools/progress_badges.py build/43U/report.json "$out"
cd "$out"
git init -q -b progress-data
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -q -m "progress for $GITHUB_SHA"
git push -q -f "https://x-access-token:${{ github.token }}@github.com/$GITHUB_REPOSITORY.git" HEAD:refs/heads/progress-data

View File

@@ -7,23 +7,23 @@
<!--- Github Actions Badge -->
[Build Status]: https://github.com/coah80/wii-ipl/actions/workflows/readme-progress.yml/badge.svg?branch=main
[actions]: https://github.com/coah80/wii-ipl/actions/workflows/readme-progress.yml
[Build Status]: https://github.com/coah80/wii-ipl/actions/workflows/build.yml/badge.svg
[actions]: https://github.com/coah80/wii-ipl/actions/workflows/build.yml
<!--- Discord Badge -->
[Discord Badge]: https://img.shields.io/discord/727908905392275526?color=%237289DA&logo=discord&logoColor=%23FFFFFF
[discord]: https://discord.gg/hKx3FJJgrV
<!-- Progress badges: JSON on the progress-data branch, refreshed by the README progress workflow on every push to main -->
<!-- Progress links -->
[progress]: https://github.com/coah80/wii-ipl/actions/workflows/readme-progress.yml
[DecompiledBadge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcoah80%2Fwii-ipl%2Fprogress-data%2Fdecompiled.json
[MatchedBadge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcoah80%2Fwii-ipl%2Fprogress-data%2Fmatched.json
[LinkedBadge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcoah80%2Fwii-ipl%2Fprogress-data%2Flinked.json
[DataBadge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcoah80%2Fwii-ipl%2Fprogress-data%2Fdata.json
[FunctionsBadge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcoah80%2Fwii-ipl%2Fprogress-data%2Ffunctions.json
[UnitsBadge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcoah80%2Fwii-ipl%2Fprogress-data%2Funits.json
[V43U]: https://decomp.dev/koopthekoopa/wii-ipl/43U
<!--- Version 4.3U progress Badge -->
[DecompBadgeV43U]: https://decomp.dev/koopthekoopa/wii-ipl/43U.svg?&measure=code&label=Decompiled&mode=shield&labelColor=%237c7c7c&color=%2333b8ff&style=plastic
[LinkBadgeV43U]: https://decomp.dev/koopthekoopa/wii-ipl/43U.svg?&measure=complete_code&label=Linked&mode=shield&labelColor=%237c7c7c&color=%2333b8ff&style=plastic
[FuncBadgeV43U]: https://decomp.dev/koopthekoopa/wii-ipl/43U.svg?&measure=functions&label=Functions&mode=shield&labelColor=%237c7c7c&color=%2333b8ff&style=plastic
<!--- Header -->
@@ -43,17 +43,28 @@ Live decomp status
[![Build status]][actions]
Every push to `main` rebuilds 4.3U, checks the DOL hash, and refreshes the progress badges below. Open the latest [README progress run][actions] for the full objdiff summary.
Open the latest successful [Build workflow run][actions] and check its summary for the current objdiff metrics. It includes perfect-match/decompiled, fuzzy-match, fully linked, data, function, unit, and category breakdowns. The run also publishes the 43U report artifact and generated decomp-status report.
Supported versions:
- `43U` - Version **4.3U** (USA)
Progress
========
[![DecompiledBadge]][progress] [![MatchedBadge]][progress] [![LinkedBadge]][progress] [![DataBadge]][progress]
[![FunctionsBadge]][progress] [![UnitsBadge]][progress]
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.59% | 90.94% | 73.37% | 99.37% |
units 960/1027 complete, functions 12369/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 -->
| Version | Progress |
|-----------------------|------------------------------------------------------------------------------|
| [Wii Menu 4.3U][V43U] | [![FuncBadgeV43U]][V43U] [![DecompBadgeV43U]][V43U] [![LinkBadgeV43U]][V43U] |
> You can see the full progress and its history by clicking on one of the versions in the table.
Dependencies
============

View File

@@ -37,9 +37,6 @@ force_active:
# textinput::toolbar::csPaneToAnimation points one past the end of csAninationFile.
block_relocations:
# Run establishes a fixed stack at 0x81600000, not __pformatter + 0x280.
- source: .text:0x8137B468
- source: .text:0x8137B46C
- source: .data:0x8165E15C
- source: .data:0x8165E19C

View File

@@ -18106,7 +18106,7 @@ __vt__Q49textinput6extend4memo15AppearMemoState = .data:0x81667FA0; // type:obje
__vt__Q49textinput6extend4memo13DispMemoState = .data:0x81667FF8; // type:object size:0x58
__vt__Q49textinput6extend4memo5State = .data:0x81668050; // type:object size:0x58
__vt__Q49textinput6extend4memo7Manager = .data:0x816680A8; // type:object size:0x140
lbl_816681E8 = .data:0x816681E8; // type:object size:0x24
lbl_816681E8 = .data:0x816681E8; // type:object size:0x28
lbl_81668210 = .data:0x81668210; // type:object size:0x9 data:string
lbl_8166821C = .data:0x8166821C; // type:object size:0x9 data:string
lbl_81668228 = .data:0x81668228; // type:object size:0x9 data:string
@@ -23275,7 +23275,7 @@ lbl_81698388 = .sdata:0x81698388; // type:object size:0x2 data:string
lbl_8169838C = .sdata:0x8169838C; // type:object size:0x4 data:string
lbl_81698390 = .sdata:0x81698390; // type:object size:0x1 data:byte
lbl_81698391 = .sdata:0x81698391; // type:object size:0x1 data:byte
lbl_81698394 = .sdata:0x81698394; // type:object size:0x4 data:string
lbl_81698394 = .sdata:0x81698394; // type:object size:0x2 data:string
lbl_81698398 = .sdata:0x81698398; // type:object size:0x2 data:string
lbl_8169839C = .sdata:0x8169839C; // type:object size:0x4
drvInitFunc = .sdata:0x816983A0; // type:object size:0x8 scope:local data:4byte

View File

@@ -768,7 +768,7 @@ config.libs = [
IPLSection("channelSelect", [
Object(Matching, "scene/channelSelect/iplChannelSelect.cpp"),
Object(Matching, "scene/channelSelect/iplClock.cpp"),
Object(Matching, "scene/channelSelect/iplChannelObj.cpp"),
Object(Equivalent, "scene/channelSelect/iplChannelObj.cpp"),
]
),
IPLSection("channelTitle", [
@@ -879,7 +879,7 @@ config.libs = [
Object(NonMatching, "scene/setting/AOSSLink.c"),
Object(Matching, "scene/setting/iplRakuRakuThread.cpp"),
Object(NonMatching, "scene/setting/AOSS.c", extra_cflags=["-O4,p", "-inline off"]),
Object(NonMatching, "scene/setting/ATERM.c", extra_cflags=["-O4,p", "-inline on"]),
Object(NonMatching, "scene/setting/ATERM.c", extra_cflags=["-O4,p", "-inline off"]),
]
),
IPLSection("settingSelect", [
@@ -997,7 +997,7 @@ config.libs = [
Object(Matching, "clib/zi8is.c"),
Object(NonMatching, "clib/zi8match.c"),
Object(Matching, "clib/zi8misc.c"),
Object(Matching, "clib/zi8pud2.c"),
Object(NonMatching, "clib/zi8pud2.c"),
Object(Matching, "clib/Zi8punct.c"),
Object(Matching, "clib/zi8space.c"),
Object(NonMatching, "clib/zi8uwd.c"),
@@ -1081,9 +1081,9 @@ config.libs = [
Object(Matching, "nwc24/NWC24Parser.c"),
Object(Matching, "nwc24/NWC24MsgCommit.c"),
Object(Matching, "nwc24/NWC24MsgRead.c"),
Object(Matching, "nwc24/NWC24MsgSubject.c"),
Object(NonMatching, "nwc24/NWC24MsgSubject.c"),
Object(Matching, "nwc24/NWC24Schedule.c"),
Object(Matching, "nwc24/NWC24DateParser.c"),
Object(NonMatching, "nwc24/NWC24DateParser.c"),
Object(Matching, "nwc24/NWC24FriendList.c"),
Object(Matching, "nwc24/NWC24SecretFList.c"),
Object(Matching, "nwc24/NWC24UserId.c"),
@@ -1299,7 +1299,7 @@ config.libs = [
Object(Matching, "ut/ut_RomFont.cpp"),
Object(Matching, "ut/ut_ResFontBase.cpp"),
Object(Matching, "ut/ut_ResFont.cpp"),
Object(Matching, "ut/ut_ArchiveFontBase.cpp"),
Object(NonMatching, "ut/ut_ArchiveFontBase.cpp"),
Object(Matching, "ut/ut_ArchiveFont.cpp"),
Object(Matching, "ut/ut_CharWriter.cpp"),
Object(Matching, "ut/ut_TextWriterBase.cpp"),
@@ -1388,7 +1388,7 @@ config.libs = [
]
),
RVLSDKLib("vi", [
Object(Matching, "vi/vi.c"),
Object(NonMatching, "vi/vi.c"),
Object(Matching, "vi/i2c.c"),
Object(Matching, "vi/vi3in1.c"),
]
@@ -1826,7 +1826,7 @@ config.libs = [
Object(Matching, "fa/pfs_unmount.c"),
Object(Matching, "fa/pf_stub_unicode.c"),
Object(Matching, "fa/api/FAAttach.c"),
Object(NonMatching, "fa/api/FAAttach.c"),
Object(Matching, "fa/api/FABuffering.c"),
Object(Matching, "fa/api/FACreate.c"),
Object(Matching, "fa/api/FACreatedir.c"),
@@ -1970,7 +1970,7 @@ config.libs = [
Object(Matching, "MSL_Common/time.c", extra_cflags=["-Cpp_exceptions on"]),
Object(Matching, "MSL_Common/wctype.c"),
Object(Matching, "MSL_Common/wmem.c"),
Object(Matching, "MSL_Common/wprintf.c", extra_cflags=["-Cpp_exceptions on"]),
Object(NonMatching, "MSL_Common/wprintf.c", extra_cflags=["-Cpp_exceptions on"]),
Object(Matching, "MSL_Common/wstring.c"),
Object(Matching, "MSL_Common/wchar_io.c"),
Object(Matching, "PPC_EABI/time.dolphin.c"),

View File

@@ -24,7 +24,7 @@ typedef struct BS2UpdateHeader {
typedef struct BS2UpdateEntry {
// Update Meta Data
vu32 type; // 0x00
u32 type; // 0x00
u32 attr; // 0x04
u32 size; // 0x08
u32 depend; // 0x0C

View File

@@ -142,6 +142,9 @@ namespace textinput {
// TODO enum?
int getInputType() const;
#if defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
void resetHoldingButton();
#endif
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
#if defined(MYTIMANAGER_IMPLEMENTATION) && defined(TI_CELLPHONE_IMPLEMENTATION)

View File

@@ -69,9 +69,6 @@
virtual bool updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data) override;
virtual bool updateInput(input::HKBManager& hkbManager) override;
#endif
#if defined(TI_CELLPHONE_IMPLEMENTATION) || defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
void resetHoldingButton();
#endif
#ifdef TI_CELLPHONE_IMPLEMENTATION
virtual ~LayoutByNW4R();
virtual void create(MEMAllocator* allocator) override;
@@ -98,6 +95,7 @@
virtual void changeSpaceKeyTop(const PaneNameToCharCode* keys);
void setUpperCaseJP(bool enabled);
void setLangKeyActive(bool enabled);
void resetHoldingButton();
private:
bool mbLineFeedButton;

View File

@@ -163,9 +163,6 @@ namespace ipl {
void init(const f32& start, const f32& end, f32 maxFrame, f32 startTangent, f32 endTangent, int playback = ANIM_TYPE_FORWARD,
f32 speed = 1.0f);
#ifdef IPL_SD_CHANNEL_TITLE_CPP
f32 get() const;
#else
f32 get() const {
f32 var_f27 = mFrame;
f32 var_f28 = 1.0f / mMaxFrame;
@@ -184,7 +181,6 @@ namespace ipl {
return r;
}
#endif
protected:
f32 mStart;

View File

@@ -103,7 +103,7 @@ namespace ipl {
y = r.y;
z = 0.0f;
}
#if defined(IPL_ADDRESS_EDIT_CPP) || defined(IPL_SD_CHANNEL_SELECT_CPP) || defined(IPL_GC_WINDOW_CPP) || defined(IPL_SD_CHANNEL_TITLE_CPP)
#if defined(IPL_ADDRESS_EDIT_CPP) || defined(IPL_SD_CHANNEL_SELECT_CPP) || defined(IPL_GC_WINDOW_CPP)
VEC3(f32 fx, f32 fy, f32 fz);
#else
VEC3(f32 fx, f32 fy, f32 fz) {

View File

@@ -31,12 +31,8 @@ namespace ipl {
virtual void calc();
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual void initCalcNormal();
#else
virtual void initCalcNormal() {
} // 0x4C
#endif
virtual void initCalcFadeout() {
} // 0x50
@@ -53,12 +49,8 @@ namespace ipl {
return FADER_SCN_NEXT;
} // 0x60
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual void calcCommonAfter();
#else
virtual void calcCommonAfter() {
} // 0x64
#endif
int getSceneFadeState() {
return mScnFadeState;

View File

@@ -62,11 +62,7 @@ namespace ipl {
virtual ~Base();
/** @brief If the scene is ready */
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual BOOL isReady() const;
#else
virtual BOOL isReady() const { return FALSE; }
#endif
/** @brief If the user can power off/reset the system */
#ifdef IPL_SD_CHANNEL_TITLE_CPP
@@ -77,11 +73,7 @@ namespace ipl {
/** @brief The scene running code when powering off/resetting the system */
virtual void startResetting() {}
/** @brief If the scene has finished its powering off/resetting task */
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual BOOL isResetProcessDone();
#else
virtual BOOL isResetProcessDone() { return TRUE; }
#endif
/** @brief Prepare to create scene */
virtual void prepare() {}
@@ -94,17 +86,10 @@ namespace ipl {
/** @brief Destroy the scene and clear from memory */
virtual void destroy() {}
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual Base* getParent();
virtual Base* getChild();
virtual Base* getNext();
virtual Base* getPrev();
#else
virtual Base* getParent() { return (Base*)mpParent; }
virtual Base* getChild() { return (Base*)mpChild; }
virtual Base* getNext() { return (Base*)mpNext; }
virtual Base* getPrev() { return (Base*)mpPrev; }
#endif
/** @brief Check if scene has been created.*/
bool isSceneCreated() const { return (mScnState & SCN_STATE_CREATED); }

View File

@@ -65,13 +65,8 @@ namespace ipl {
/** @brief Writes the file contents. */
virtual void write(); // 0x10
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual bool isFinished();
virtual int checkData();
#else
virtual bool isFinished() { return mbDoneTask; } // 0x14
virtual int checkData() { return mResult; } // 0x18
#endif
virtual bool isFatalError(); // 0x1C
u8* getBuffer() const { return mpBuffer; }

View File

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

View File

@@ -51,17 +51,12 @@ namespace ipl {
mArg.mOrthoScale = scale;
}
#ifdef IPL_SD_CHANNEL_TITLE_CPP
static void setOrthoTrans(const math::VEC3& translate);
static void setOrthoScale(const math::VEC2& scale);
#else
static void setOrthoTrans(const math::VEC3& translate) { mArg.mOrthoTrans = translate; }
static void setOrthoScale(const math::VEC2& scale) NO_INLINE {
mArg.mOrthoScale.x = scale.x;
mArg.mOrthoScale.y = scale.y;
}
#endif
private:
static Arg mArg;

View File

@@ -32,8 +32,8 @@ namespace ipl {
void set_arw_param();
int mState; // 0x04
math::VEC2 unk_0x08;
math::VEC2 unk_0x10;
math::VEC2 mCurPos;
math::VEC2 mStartPos;
f32 mSpeed; // 0x18
f32 mSoundFreq; // 0x1C
};
@@ -55,7 +55,7 @@ namespace ipl {
void init() {
mState = 0;
mScroll = 0.0f;
unk_0x3C = 0.0f;
mVelocity = 0.0f;
mUpLimit = 0.0f;
mDownLimit = 0.0f;
}
@@ -92,11 +92,11 @@ namespace ipl {
int mState; // 0x30
f32 mDownLimit; // 0x34
f32 mUpLimit; // 0x38
f32 unk_0x3C;
f32 mVelocity;
f32 mScroll; // 0x40
f32 unk_0x44;
f32 unk_0x48;
f32 unk_0x4C;
f32 mAnimFrom;
f32 mFriction;
f32 mAccel;
};
} // namespace utility
} // namespace ipl

View File

@@ -1120,28 +1120,32 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
case 's':
if (format.argument_options == wchar_argument) {
wchar_t* wcs_ptr = va_arg(args, wchar_t*);
int wideLength;
if (wcs_ptr == NULL) {
wcs_ptr = L"";
}
if (format.alternate_form) {
num_chars = (unsigned char)*wcs_ptr++;
wchar_t first = *wcs_ptr++;
wideLength = (unsigned char)first;
if (format.precision_specified && num_chars > format.precision) {
num_chars = format.precision;
if (format.precision_specified && wideLength > format.precision) {
wideLength = format.precision;
}
} else if (format.precision_specified) {
num_chars = format.precision;
wideLength = format.precision;
if ((string_end = wmemchr(wcs_ptr, 0, num_chars)) != 0) {
num_chars = string_end - wcs_ptr;
if ((string_end = wmemchr((wchar_t*)wcs_ptr, 0, wideLength)) != 0) {
wideLength = string_end - wcs_ptr;
}
} else {
num_chars = wcslen(wcs_ptr);
wideLength = wcslen(wcs_ptr);
}
num_chars = wideLength;
buff_ptr = wcs_ptr;
break;
} else {
@@ -1152,7 +1156,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
}
if (format.alternate_form) {
num_chars = (unsigned char)*buff_ptr;
num_chars = (unsigned char)*(const wchar_t*)wcs_ptr;
if (format.precision_specified && num_chars > format.precision) {
num_chars = format.precision;

View File

@@ -9,7 +9,7 @@ namespace nw4r {
namespace ut {
class Rect {
public:
#if defined(IPL_SOUND_RECT_OUT_OF_LINE) || defined(IPL_SD_CHANNEL_TITLE_CPP)
#ifdef IPL_SOUND_RECT_OUT_OF_LINE
Rect();
#else
Rect() : left(), top(), right(), bottom() {}
@@ -20,7 +20,7 @@ namespace nw4r {
Rect(f32 l, f32 t, f32 r, f32 b) : left(l), top(t), right(r), bottom(b) {}
#endif
#if !defined(IPL_CONTROLLER_TRIVIAL_RECT_DTOR) && !defined(IPL_MEMORYCARD_BASE_CPP) && !defined(IPL_SD_CHANNEL_TITLE_CPP)
#if !defined(IPL_CONTROLLER_TRIVIAL_RECT_DTOR) && !defined(IPL_MEMORYCARD_BASE_CPP)
~Rect() {}
#endif

View File

@@ -37,7 +37,7 @@ namespace nw4r {
} // namespace detail
template <typename TDerived, typename TBase>
#if defined(IPL_BOARD_OBJECT_EXTERNAL_DYNAMIC_CAST) || defined(IPL_MEMORYCARD_BASE_CPP) || defined(IPL_SD_CHANNEL_TITLE_CPP)
#if defined(IPL_BOARD_OBJECT_EXTERNAL_DYNAMIC_CAST) || defined(IPL_MEMORYCARD_BASE_CPP)
TDerived DynamicCast(TBase* pPtr);
#else
inline TDerived DynamicCast(TBase* pPtr) {

View File

@@ -252,17 +252,14 @@ namespace nw4r {
}
inline void updateSheetFlags(const void* glgrHdr, u32 groupIdx, u16* sheetOffsets, u32 flagsStep, const u32* sheetFlags) {
const GlyphGroups* glgr = (const GlyphGroups*)((const u8*)glgrHdr + sizeof(BinaryBlockHeader));
int sheetIndex;
u32 groupBitOffset;
u16* sheetOffset = sheetOffsets;
groupBitOffset = groupIdx * flagsStep * 8;
for (sheetIndex = 0; sheetIndex < glgr->sheetCount; sheetOffset++, sheetIndex++) {
u32 groupBitIdx = sheetIndex + groupBitOffset;
const GlyphGroups* glgr = (GlyphGroups*)((u8*)glgrHdr + sizeof(BinaryBlockHeader));
for (int sheetI = 0; sheetI < glgr->sheetCount; sheetI++) {
u32 groupBitIdx = sheetI + groupIdx * flagsStep * 8;
const u32* bitBlockPtr = sheetFlags + (groupBitIdx & ~0x1F) / 32;
u32 bitBlock = *bitBlockPtr;
u32 bitBlock = *(u32*)bitBlockPtr;
if (((bitBlock << (groupBitIdx & 0x1F)) & 0x80000000) != 0) {
*sheetOffset = 1;
sheetOffsets[sheetI] = 1;
}
}
}
@@ -271,16 +268,14 @@ namespace nw4r {
const u32* bitBlocksPtr, u32 sheetFlagsSize) {
HeaderedGlyphGroups* pGlgr = (HeaderedGlyphGroups*)glgrHdr;
int i;
u16* sheetOffset;
for (i = 0, sheetOffset = sheetOffsets; i < pGlgr->inner.sheetCount; sheetOffset++, i++) {
*sheetOffset = 0;
for (int i = 0; i < pGlgr->inner.sheetCount; i++) {
sheetOffsets[i] = 0;
}
for (int i = 0; i < pGlgr->inner.nameCount; i++) {
const char* includedGroups = ctx->pIncludedGroups;
u16 offset = pGlgr->inner.nameOffsets[i];
char* name = (char*)(offset + (u32)hdr);
char* name = (char*)((u8*)hdr + offset);
if (*includedGroups != 0) {
if (!ArchiveFontBase::IncludeName(includedGroups, name)) {
continue;
@@ -293,23 +288,21 @@ namespace nw4r {
inline void convertSheetOffsetBooleansToOffsets(const void* glgrHdr, u16* sheetOffsets) {
HeaderedGlyphGroups* pGlgr = (HeaderedGlyphGroups*)glgrHdr;
int i;
u16 glyphIdxOffset = 0;
u16* sheetOffset;
for (i = 0, sheetOffset = sheetOffsets; i < pGlgr->inner.sheetCount; sheetOffset++, i++) {
if (*sheetOffset == 1) {
*sheetOffset = glyphIdxOffset;
for (int i = 0; i < pGlgr->inner.sheetCount; i++) {
if (sheetOffsets[i] == 1) {
sheetOffsets[i] = glyphIdxOffset;
} else {
*sheetOffset = -1;
sheetOffsets[i] = -1;
glyphIdxOffset += pGlgr->inner.sheetGlyphCount;
}
}
}
inline void copyFlagOffsets(ArchiveFontBase::ConstructContext* ctx, u16* sheetOffsetsScratch, u32 workSize, const u16* sheetOffsetsScratchEnd) {
inline void copyFlagOffsets(ArchiveFontBase::ConstructContext* ctx, u16* sheetOffsetsScratch, u32 workSize, u32 scratchSize) {
u8* sheetOffsets = ctx->pWorkCurr;
ctx->pWorkCurr = sheetOffsets + workSize;
memmove(sheetOffsets, sheetOffsetsScratch, (sheetOffsetsScratchEnd - sheetOffsetsScratch) * sizeof(u16));
memmove(sheetOffsets, sheetOffsetsScratch, scratchSize);
ctx->pSheetOffsets = (u16*)sheetOffsets;
}
@@ -318,64 +311,31 @@ namespace nw4r {
// *sheetOffsetsScratch = (u16*)ROUNDDOWN((u32)((u8*)fontData + remWorkSpace) - sheetOffsetsSize, 2);
// return sheetOffsetsSize;
// }
class FontGlyphGroupsAcs {
public:
explicit FontGlyphGroupsAcs(const ArchiveFontBinaryLayout* font)
: mFont(font), mGroups(&font->glgr) {}
const GlyphGroups& GetGroups() const { return mGroups->inner; }
void SetSheetFlags(u32 flagsStep, const u32* sheetFlags) {
mFlagsStep = flagsStep;
mSheetFlags = sheetFlags;
}
u16 GetNumSheet() const { return mGroups->inner.sheetCount; }
int GetGlyphsPerSheet() const { return mGroups->inner.sheetGlyphCount; }
u16 GetNumSet() const { return mGroups->inner.nameCount; }
const char* GetSetName(int groupIndex) const {
const u16 nameOffset = mGroups->inner.nameOffsets[groupIndex];
return (const char*)(nameOffset + (u32)mFont);
}
bool IsUseSheet(int groupIndex, int sheetIndex) const {
const u32 groupBitIndex = sheetIndex + groupIndex * mFlagsStep * 8;
const u32* bitBlock = mSheetFlags + (groupBitIndex & ~0x1F) / 32;
return ((*bitBlock << (groupBitIndex & 0x1F)) & 0x80000000) != 0;
}
private:
const ArchiveFontBinaryLayout* mFont;
const HeaderedGlyphGroups* mGroups;
u32 mFlagsStep;
const u32* mSheetFlags;
};
ArchiveFontBase::ConstructState ArchiveFontBase::ConstructOpAnalyzeGLGR(ConstructContext* ctx, CachedStreamReader* reader) {
const u32* flagsSheets;
u32 sheetOffsetsSize;
u32 flagsSheetsOff;
u32 glgrInnerLen;
const ArchiveFontBinaryLayout* font;
u16 sheetGlyphCount;
u32 countSheet;
HeaderedGlyphGroups* pGlgr;
const ArchiveFontBinaryLayout* font;
u8* glgrEnd;
u32 expectedMaxSize;
u32 dataBlockCount;
u16* sheetOffsetsScratch;
int groupIndex;
font = (ArchiveFontBinaryLayout*)ctx->pWorkCurr;
glgrInnerLen = ctx->mNextBlockHdr.size - sizeof(BinaryBlockHeader);
// Check for RFNA
if (font->hdr.signature != SIGNATURE_FONT_ARCHIVE) {
return CONSTRUCT_STATE_FATAL_ERR;
}
// Check that there's enough data available, and the space to
// put that data
ENSURE_READER_HAS_SIZE(ctx, reader, glgrInnerLen);
ENSURE_WORK_HAS_SIZE(ctx, glgrInnerLen);
expectedMaxSize = ctx->mNextBlockHdr.size + sizeof(BinaryFileHeader);
// Copy the glgr to work
{
pGlgr = (HeaderedGlyphGroups*)&font->glgr;
glgrEnd = (u8*)pGlgr + (u32)ctx->mNextBlockHdr.size;
@@ -388,45 +348,80 @@ namespace nw4r {
return CONSTRUCT_STATE_FATAL_ERR;
}
FontGlyphGroupsAcs gg(font);
sheetGlyphCount = gg.GetGlyphsPerSheet();
dataBlockCount = font->hdr.dataBlocks;
countSheet = gg.GetNumSheet();
const u32 stepSheetFlags = detail::CalcSizeFlagSet(countSheet);
flagsSheetsOff = detail::CalcOffsetSheetFlags(gg.GetGroups().nameCount, countSheet, gg.GetGroups().smthCount_0x0a,
gg.GetGroups().smthCount_0x0c);
flagsSheets = (const u32*)((flagsSheetsOff & ~3) + (u32)font);
gg.SetSheetFlags(stepSheetFlags, flagsSheets);
// Before here is fine (other than regswaps)
// u16 sheetGlyphCount = FORCE_REACCESS_2(font->glgr.inner.sheetGlyphCount, u16); // 0x1C
// u16 dataBlockCount = FORCE_REACCESS_2(font->hdr.dataBlocks, u16); // 0x0E
// FORCE_REACCESS_2(font->glgr.inner.sheetCount, u16);
// return ConstructOpAnalyzeGLGRInner(ctx, font, pGlgr, glgrEnd);
sheetOffsetsSize = (RoundUp)(countSheet * sizeof(u16), 4);
// u32 fontSizeToEndOfGlgr;
u16 countSheet;
u16 sheetGlyphCount, dataBlockCount;
u32 stepSheetFlags;
u32 flagsSheetsOff;
const u32* flagsSheets;
u32 sheetOffsetsSize;
u16* sheetOffsetsScratch;
u32 sheetOffsetsScratchSize;
sheetGlyphCount = font->glgr.inner.sheetGlyphCount; // 0x1C
dataBlockCount = font->hdr.dataBlocks; // 0x0E
// countName = font->glgr.inner.nameCount;
countSheet = font->glgr.inner.sheetCount;
// count0A = font->glgr.inner.smthCount_0x0a;
// count0C = font->glgr.inner.smthCount_0x0c;
stepSheetFlags = detail::CalcSizeFlagSet(countSheet);
flagsSheetsOff = detail::CalcOffsetSheetFlags(font->glgr.inner.nameCount, countSheet, font->glgr.inner.smthCount_0x0a,
font->glgr.inner.smthCount_0x0c);
flagsSheets = (const u32*)font + (flagsSheetsOff >> 2);
sheetOffsetsSize = ROUNDUP(countSheet * sizeof(u16), 4);
sheetOffsetsScratch = (u16*)ROUNDDOWN((u32)((u8*)font + ctx->remWorkSpace()) - sheetOffsetsSize, 2);
pGlgr = (HeaderedGlyphGroups*)&font->glgr;
ENSURE_WORK_HAS_SIZE(ctx, glgrEnd - (u8*)font + sheetOffsetsSize);
// if (ctx->pWorkEnd - workCurr < fontSizeToEndOfGlgr + sheetOffsetsSize) {
// return CONSTRUCT_STATE_FATAL_ERR;
// }
{
u16* sheetOffset;
int sheetIndex;
for (sheetIndex = 0, sheetOffset = sheetOffsetsScratch; sheetIndex < gg.GetNumSheet(); sheetOffset++, sheetIndex++) {
*sheetOffset = 0;
}
for (groupIndex = 0; groupIndex < gg.GetNumSet(); groupIndex++) {
const char* includedGroups = ctx->pIncludedGroups;
const char* name = gg.GetSetName(groupIndex);
if (*includedGroups && !ArchiveFontBase::IncludeName(includedGroups, name)) {
continue;
}
for (int sheetIndex = 0; sheetIndex < gg.GetNumSheet(); sheetIndex++) {
if (gg.IsUseSheet(groupIndex, sheetIndex)) {
sheetOffsetsScratch[sheetIndex] = 1;
}
}
}
}
// Clear sheet offsets scratch
// for (s32 i = 0; i < pGlgr->inner.sheetCount; i++) {
// sheetOffsetsScratch[i] = 0;
// }
// for (s32 i = 0; i < pGlgr->inner.nameCount; i++) {
// // const char* includedGroups = ctx->pIncludedGroups;
// u16 offset = pGlgr->inner.nameOffsets[i];
// const char* name = (char*)((u8*)font + offset);
// if (*ctx->pIncludedGroups != 0) {
// if (!ArchiveFontBase::IncludeName(ctx->pIncludedGroups, name)) {
// continue;
// }
// }
// updateSheetFlags(pGlgr, i, sheetOffsetsScratch, stepSheetFlags, flagsSheets);
// }
setSheetOffsetBooleans(ctx, pGlgr, font, sheetOffsetsScratch, flagsSheets, stepSheetFlags);
// u16 glyphIdxOffset = 0;
// for (s32 i = 0; i < pGlgr->inner.sheetCount; i++) {
// if (sheetOffsetsScratch[i] == 1) {
// sheetOffsetsScratch[i] = glyphIdxOffset;
// } else {
// sheetOffsetsScratch[i] = -1;
// glyphIdxOffset += pGlgr->inner.sheetGlyphCount;
// }
// }
convertSheetOffsetBooleansToOffsets(pGlgr, sheetOffsetsScratch);
copyFlagOffsets(ctx, sheetOffsetsScratch, sheetOffsetsSize, sheetOffsetsScratch + (u16)countSheet);
sheetOffsetsScratchSize = (u32)countSheet << 1;
sheetOffsetsScratchSize += (sheetOffsetsScratchSize >> 31);
sheetOffsetsScratchSize &= ~1;
copyFlagOffsets(ctx, sheetOffsetsScratch, sheetOffsetsSize, sheetOffsetsScratchSize);
ctx->mSheetCount = countSheet;
ctx->mGlyphsPerSheet = sheetGlyphCount;

View File

@@ -15,11 +15,11 @@ static void readHuffmanLimit(const TMCHuffmanEntry* entries, TMCHuffmanEntry* li
limit->symbol = entries->symbol;
}
static inline s32 decodeLongHuffman(s32 bitCount, u32* huff_tbl, u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
u16* entry;
static inline s32 decodeLongHuffman(s32 bitCount, const TMCHuffmanEntry* table, const u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
u32 bitData;
u32 code;
u32 length;
const TMCHuffmanEntry* entry;
if (bitCount <= 17) {
s32 result = TMCJPEGDEC_load_buff(work);
@@ -28,16 +28,16 @@ static inline s32 decodeLongHuffman(s32 bitCount, u32* huff_tbl, u8* symbols, TM
}
}
bitCount = work->bitCount;
entry = (u16*)(huff_tbl + 9);
bitData = work->bitBuf;
length = 9;
bitCount -= 9;
code = (bitData >> bitCount) & 0x1FF;
work->bitCount = bitCount;
length = 9;
entry = table + 9;
goto read_entry;
while (1) {
length++;
entry += 2;
entry++;
if (length > 16) {
return TMCC_ERROR_OVERFLOW;
}
@@ -49,23 +49,21 @@ static inline s32 decodeLongHuffman(s32 bitCount, u32* huff_tbl, u8* symbols, TM
code |= (bitData >> bitCount) & 1;
read_entry:
{
limit->bitLength = entry[0];
limit->symbol = entry[1];
readHuffmanLimit(entry, limit);
*decoded = *limit;
if (code > (u32)decoded->bitLength) {
continue;
}
{
u32 relativeCode = code - limit->bitLength;
u32 symbolIndex = relativeCode + limit->symbol;
u32 relativeCode = code - entry->bitLength;
u32 symbolIndex = relativeCode + entry->symbol;
return symbols[symbolIndex & 0xFF];
}
}
}
}
static inline s32 decodeACHuffman(s32 bitCount, u32* huff_tbl, u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
u16* entry;
static inline s32 decodeACHuffman(s32 bitCount, const TMCHuffmanEntry* entry, const u8* symbols, TMCCJPEGDecWork* work, TMCHuffmanEntry* limit, TMCHuffmanEntry* decoded) {
u32 bitData;
u32 code;
u32 length;
@@ -77,16 +75,16 @@ static inline s32 decodeACHuffman(s32 bitCount, u32* huff_tbl, u8* symbols, TMCC
}
}
bitCount = work->bitCount;
entry = (u16*)(huff_tbl + 9);
bitData = work->bitBuf;
length = 9;
bitCount -= 9;
code = (bitData >> bitCount) & 0x1FF;
work->bitCount = bitCount;
length = 9;
entry += 9;
goto read_entry;
while (1) {
length++;
entry += 2;
entry++;
if (length > 16) {
return TMCC_ERROR_OVERFLOW;
}
@@ -98,22 +96,20 @@ static inline s32 decodeACHuffman(s32 bitCount, u32* huff_tbl, u8* symbols, TMCC
code |= (bitData >> bitCount) & 1;
read_entry:
{
limit->bitLength = entry[0];
limit->symbol = entry[1];
readHuffmanLimit(entry, limit);
*decoded = *limit;
if (code > (u32)decoded->bitLength) {
continue;
}
{
u32 relativeCode = code - limit->bitLength;
u32 symbolIndex = relativeCode + limit->symbol;
u32 relativeCode = code - entry->bitLength;
u32 symbolIndex = relativeCode + entry->symbol;
return symbols[symbolIndex & 0xFF];
}
}
}
}
s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) {
TMCHuffmanEntry dcEntry;
TMCHuffmanEntry dcDecoded;
@@ -121,7 +117,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
TMCHuffmanEntry acDecoded;
TMCHuffmanEntry acLimit;
u8* huff_sym;
u16* ac_fast;
const TMCHuffmanEntry* ac_fast;
s32 idx;
u32* huff_tbl;
s32 bit_pos;
@@ -134,13 +130,11 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
s32 t;
s32 zz;
s32 q;
u16* dc_fast;
const TMCHuffmanEntry* dc_fast;
const u8* zztbl;
s32* conv_row;
conv_row = (s32*)conv_row_ptr;
bit_pos = work->bitCount;
dc_fast = work->pDCFast;
dc_fast = (const TMCHuffmanEntry*)work->pDCFast;
if (bit_pos <= 8) {
r = TMCJPEGDEC_load_buff(work);
@@ -152,7 +146,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
bit_pos = work->bitCount;
bit_data = work->bitBuf;
{
dcEntry = readHuffmanEntry((const TMCHuffmanEntry*)dc_fast, (bit_data >> (bit_pos - 8)) & 0xFF);
dcEntry = readHuffmanEntry(dc_fast, (bit_data >> (bit_pos - 8)) & 0xFF);
r = dcEntry.bitLength;
extra = dcEntry.symbol;
}
@@ -163,28 +157,30 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
} else {
huff_sym = work->pDCHuffSym;
huff_tbl = work->pDCHuffTbl;
r = decodeLongHuffman(bit_pos, huff_tbl, huff_sym, work, &dcLimit, &dcDecoded);
r = decodeLongHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work, &dcLimit, &dcDecoded);
if (r < 0) {
return r;
}
}
blk0 = conv_row[0];
blk0 = ((s32*)conv_row_ptr)[0];
if (r != 0) {
if (work->bitCount <= r) {
s32 load_ret;
if (load_ret = TMCJPEGDEC_load_buff(work), load_ret < 0) {
bit_pos = work->bitCount;
if (bit_pos <= r) {
s32 load_ret = TMCJPEGDEC_load_buff(work);
if (load_ret < 0) {
return load_ret;
}
}
tmp = 1UL << r;
bit_pos = work->bitCount - r;
work->bitCount = bit_pos;
bit_pos = work->bitCount;
bit_data = work->bitBuf;
tmp = 1 << r;
extra = tmp - 1;
bit_pos -= r;
work->bitCount = bit_pos;
extra = extra & (bit_data >> bit_pos);
if (((s32)tmp >> 1) > extra) {
extra -= (tmp - 1);
extra -= tmp - 1;
}
dc_predict_row_ptr[0] += extra;
}
@@ -192,7 +188,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
*block = dc_predict_row_ptr[0] * blk0;
{
ac_fast = work->pACFast;
ac_fast = (const TMCHuffmanEntry*)work->pACFast;
huff_tbl = work->pACHuffTbl;
huff_sym = work->pACHuffSym;
@@ -210,7 +206,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
zztbl = TMCJPEGDEC_Zigzag_data;
bit_data = work->bitBuf;
t = bit_pos - 8;
acEntry = readHuffmanEntry((const TMCHuffmanEntry*)ac_fast, (bit_data >> t) & 0xFF);
acEntry = readHuffmanEntry(ac_fast, (bit_data >> t) & 0xFF);
do {
s32 ac_thresh = acEntry.bitLength;
@@ -221,7 +217,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
r = acEntry.symbol;
} else {
bit_pos = work->bitCount;
r = decodeACHuffman(bit_pos, huff_tbl, huff_sym, work, &acLimit, &acDecoded);
r = decodeACHuffman(bit_pos, (const TMCHuffmanEntry*)huff_tbl, huff_sym, work, &acLimit, &acDecoded);
if (r < 0) {
return r;
}
@@ -245,18 +241,19 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
return r;
}
}
tmp = 1UL << t;
bit_pos = work->bitCount - t;
work->bitCount = bit_pos;
bit_pos = work->bitCount;
tmp = 1 << t;
bit_data = work->bitBuf;
extra = tmp - 1;
extra = extra & (bit_data >> bit_pos);
bit_pos -= t;
work->bitCount = bit_pos;
t = bit_pos - 8;
q = conv_row[(u8)zz];
acEntry = readHuffmanEntry((const TMCHuffmanEntry*)ac_fast, (bit_data >> t) & 0xFF);
extra = extra & (bit_data >> bit_pos);
q = ((s32*)conv_row_ptr)[(u8)zz];
acEntry = readHuffmanEntry(ac_fast, (bit_data >> t) & 0xFF);
if (((s32)tmp >> 1) > extra) {
extra -= (tmp - 1);
extra -= tmp - 1;
}
block[(u8)zz] = extra * q;
@@ -277,7 +274,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
bit_pos = work->bitCount;
t = bit_pos - 8;
tmp = ((bit_data >> t) & 0xFF) << 2;
acEntry = readHuffmanEntry((const TMCHuffmanEntry*)ac_fast, tmp >> 2);
acEntry = readHuffmanEntry(ac_fast, tmp >> 2);
idx += 16;
}

View File

@@ -28,36 +28,36 @@ static s32 scalingClampU8(s32 value) {
void TMCJPEGDEC_IdctBlock_Lumi(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigzag) {
s32 tmp[64];
s32* dst;
s32 d;
s32 t;
s32 done;
s32 iter;
s32 i;
s32 y;
s32 e;
s32 b2;
s32 b1;
s32 b3;
s32 b4;
s32 b5;
s32 b6;
s32 b7;
s32 n;
s32 v;
s32 m;
s32 a;
s32 done;
s32 d;
s32 z;
s32 v;
s32 o;
s32 p;
s32 p_part;
s32 m_part;
s32 t;
s32 u;
s32 r;
s32 o;
s32 x;
s32 n;
s32 y;
s32 x_factor;
s32 z_factor;
s32 iter;
s32 m_part;
s32 q;
s32 w;
s32 e;
s32 b3;
s32 x;
s32 b1;
r = (zigzag >> 4) * 8;
dst = tmp;
@@ -93,19 +93,17 @@ void TMCJPEGDEC_IdctBlock_Lumi(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigz
} else {
s32 oddLowSum;
s32 oddHighSum;
s32 oddLowDifference;
s32 oddHighDifference;
s32 dcValue;
t = b2 - b6;
oddLowSum = b5 + b3;
oddLowDifference = b5 - b3;
b5 = b5 - b3;
oddHighSum = b1 + b7;
oddHighDifference = b1 - b7;
b1 = b1 - b7;
u = b6 + b2;
t = t * 0xB5 >> 8;
x_factor = oddHighSum - oddLowSum;
z_factor = oddLowDifference + oddHighDifference;
z_factor = b5 + b1;
dcValue = block[0];
a = dcValue - b4;
x = x_factor * 0xB5 >> 8;
@@ -115,14 +113,14 @@ void TMCJPEGDEC_IdctBlock_Lumi(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigz
z = z_factor * 0x62 >> 8;
w = d + u;
y = d - u;
m_part = oddHighDifference * 0x14E >> 8;
m_part = b1 * 0x14E >> 8;
e = a - t;
m = m_part - z;
oddLowSum += m;
n = oddHighSum + oddLowSum;
o = x + m;
dst[0] = w + n;
p_part = oddLowDifference * 0x8B;
p_part = b5 * 0x8B;
dst[7] = w - n;
p_part >>= 8;
dst[1] = v + o;
@@ -227,7 +225,7 @@ void TMCJPEGDEC_IdctBlock_Lumi(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigz
void TMCJPEGDEC_IdctBlock_Col(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigzag) {
s32 tmp[64];
s32* dst;
s32 a;
s32 done;
s32 iter;
s32 d;
s32 b1;
@@ -239,14 +237,14 @@ void TMCJPEGDEC_IdctBlock_Col(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigza
s32 b7;
s32 v;
s32 r;
s32 done;
s32 a;
s32 i;
s32 m;
s32 n;
s32 o;
s32 x;
s32 q;
s32 e;
s32 y;
s32 u;
s32 w;
s32 p;
@@ -256,7 +254,7 @@ void TMCJPEGDEC_IdctBlock_Col(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigza
s32 z_factor;
s32 m_part;
s32 p_part;
s32 y;
s32 e;
if (zigzag == 0x11) {
s32 val;

View File

@@ -3,7 +3,7 @@
#include <tmc_jpeg_internal.h>
static s32 TMCJPEGDEC_exif_parse(const u8* data, u32 size, TMCCJPEGDecExifData* pInfo);
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, u8* entry);
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, const u8* entry);
static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, const u8* entry);
static s32 TMCJPEGDEC_ThumbnailCheck(TMCCJPEGDecInitParam* param, TMCCJPEGDecExifInfo* info, u32 totalSize);
@@ -280,7 +280,7 @@ static s32 TMCJPEGDEC_exif_parse(const u8* data, u32 size, TMCCJPEGDecExifData*
return -161;
}
for (index = 0; index < count; index++) {
TMCJPEGDEC_IFD0_tag_parse(pInfo, byteOrder, (u8*)entries);
TMCJPEGDEC_IFD0_tag_parse(pInfo, byteOrder, entries);
entries += 12;
}
remaining -= entriesSize;
@@ -331,19 +331,19 @@ static s32 TMCJPEGDEC_exif_parse(const u8* data, u32 size, TMCCJPEGDecExifData*
return -161;
}
for (index = 0; index < count; index++) {
TMCJPEGDEC_IFD0_tag_parse(pInfo, byteOrder, (u8*)entries);
TMCJPEGDEC_IFD0_tag_parse(pInfo, byteOrder, entries);
entries += 12;
}
}
return 0;
}
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, u8* entry) {
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, const u8* entry) {
s32 tag;
u32 type;
u16 type;
tag = readExifU16(entry, byteOrder);
type = readExifU16(entry + 2, byteOrder);
tag = readU16(entry, byteOrder);
type = readU16(entry + 2, byteOrder);
switch (tag) {
case 0x0103:
@@ -366,7 +366,7 @@ static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
return;
}
pInfo->xResNum = readU32(p, byteOrder);
p = pInfo->thumbnailData + (offset + 4);
p = (const u8*)(pInfo->thumbnailData + offset + 4);
if (pInfo->thumbnailData > p) {
return;
}
@@ -386,7 +386,7 @@ static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
return;
}
pInfo->yResNum = readU32(p, byteOrder);
p = pInfo->thumbnailData + (offset + 4);
p = (const u8*)(pInfo->thumbnailData + offset + 4);
if (pInfo->thumbnailData > p) {
return;
}
@@ -501,10 +501,6 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
case 0x8769:
case 0x9000:
case 0x9101:
case 0x011C:
case 0xA000:
case 0xA001:
case 0xA002:
case 0xA003: {
break;
}
@@ -520,7 +516,7 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
return;
}
pInfo->xResNumIfd1 = readU32(p, byteOrder);
p = pInfo->thumbnailData + (offset + 4);
p = (const u8*)(pInfo->thumbnailData + offset + 4);
if (pInfo->thumbnailData > p) {
return;
}
@@ -542,7 +538,7 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
return;
}
pInfo->planarConfigIfd1 = readU32(p, byteOrder);
p = pInfo->thumbnailData + (offset + 4);
p = (const u8*)(pInfo->thumbnailData + offset + 4);
if (pInfo->thumbnailData > p) {
return;
}

View File

@@ -167,28 +167,28 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) {
u16* output;
s32 tileRow;
s32 lumaSkip;
s32 cbValue;
s32 blue;
TMCCJPEGDecState* state;
s32 lumaSkip;
u32 tileWidth;
s32 crValue;
s32 width;
s32 height;
s32 chromaSkip;
u8* cb;
u8* texture;
u8* luminance;
u8* cb;
s32 chromaSkip;
u8* cr;
s32 column;
s32 xEnd;
s32 yEnd;
u8 value;
u32 tileWidth;
s32 greenOffset;
s32 redOffset;
s32 red;
s32 tileRow;
s32 blueOffset;
u8 value;
s32 red;
s32 greenOffset;
s32 green;
luminance = work->convBuf + 4;
@@ -284,9 +284,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x,
s32 yEnd = y + height;
s32 lumaSkip = 32 - width;
s32 chromaSkip = lumaSkip >> 2;
s32 redOffset;
s32 blueOffset;
s32 greenOffset;
s32 redOffset, greenOffset, blueOffset;
ASSERTLINE((x & 3) == 0, __LINE__);
for (; y < yEnd; y++) {
s32 tileRow = (y >> 2) * tileWidth;
@@ -324,11 +322,11 @@ static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32
s32 chromaSkip;
s32 width;
s32 blue;
u16* output;
s32 lumaSkip;
s32 red;
s32 tileRow;
s32 lumaSkip;
s32 redOffset;
u16* output;
u32 tileWidth;
u8* texture;
TMCCJPEGDecState* state;
s32 crValue;
@@ -340,7 +338,7 @@ static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32
s32 cbValue;
s32 xEnd;
s32 yEnd;
u32 tileWidth;
s32 redOffset;
s32 greenOffset;
s32 blueOffset;
s32 green;
@@ -477,22 +475,22 @@ static void TMCJPEGDEC_converterYUV420toRGB565(TMCCJPEGDecWork* work, s32 x, s32
s32 width;
s32 redOffset;
s32 green;
s32 tileRow;
s32 lumaSkip;
u32 tileWidth;
u8* texture;
s32 chromaSkip;
s32 height;
u8* texture;
s32 yEnd;
u8* luminance;
s32 crValue;
s32 value;
u8* cb;
u8* cr;
s32 column;
s32 xEnd;
s32 yEnd;
u32 tileWidth;
s32 cbValue;
s32 column;
u8* cr;
s32 greenOffset;
s32 tileRow;
s32 cbValue;
s32 lumaSkip;
s32 blueOffset;
s32 red;
TMCCJPEGDecState* state;
@@ -565,23 +563,26 @@ static void TMCJPEGDEC_converterYUV420toRGB565(TMCCJPEGDecWork* work, s32 x, s32
}
static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaSkip;
u16* output;
s32 yEnd;
s8 crValue;
s32 tileRow;
u8* texture;
u8* luminance;
s32 width;
s8* cb;
s8 crValue;
s32 width;
s8* cr;
s8 cbValue;
s32 column;
s32 xEnd;
s8 cbValue;
s32 yEnd;
s32 red;
s32 blue;
u32 tileWidth;
s32 height;
TMCCJPEGDecState* state;
s32 green;
s32 lumaSkip;
u32 tileWidth;
s32 chromaSkip;
s32 redOffset;
s32 greenOffset;
s32 blueOffset;
@@ -618,18 +619,16 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x,
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
blueOffset = (cbValue * 454) >> 8;
}
{
s32 value = *luminance++;
s32 red = value + redOffset;
s32 blue = value + blueOffset;
s32 green = value + greenOffset;
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
}
output[(column & 3) + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
blue = *luminance++;
red = blue + redOffset;
green = blue + greenOffset;
blue = blue + blueOffset;
if ((blue | red | green) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
}
output[(column & 3) + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
}
luminance += lumaSkip;
if (y & 1) {
@@ -817,11 +816,15 @@ static void TMCJPEGDEC_converterYUV444toRGB565(TMCCJPEGDecWork* work, s32 x, s32
u8* luminance;
u8* cb;
u8* cr;
s32 value;
s32 column;
s32 xEnd;
s32 cbValue;
s32 yEnd;
u32 tileWidth;
s32 green;
s32 blue;
s32 red;
s32 height;
luminance = work->convBuf + 4;
@@ -841,19 +844,17 @@ static void TMCJPEGDEC_converterYUV444toRGB565(TMCCJPEGDecWork* work, s32 x, s32
for (column = x; column < xEnd; column++) {
cbValue = (s8)*cb++;
crValue = (s8)*cr++;
{
s32 value = *luminance++;
s32 green = value + (-(cbValue * 88 + crValue * 183) >> 8);
s32 red = value + ((crValue * 359) >> 8);
s32 blue = value + ((cbValue * 454) >> 8);
if ((red | green | blue) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
}
output[(column & 3) + (((column >> 2) + tileRow) << 4)] =
((blue & 0xF8) >> 3) + (((red & 0xF8) << 8) + ((green & 0xFC) << 3));
value = *luminance++;
green = value + (-(cbValue * 88 + crValue * 183) >> 8);
red = value + ((crValue * 359) >> 8);
blue = value + ((cbValue * 454) >> 8);
if ((blue | green | red) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
red = red > 255 ? 255 : red < 0 ? 0 : red;
}
output[(column & 3) + (((column >> 2) + tileRow) << 4)] =
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
}
luminance += rowSkip;
cb += rowSkip;

View File

@@ -179,7 +179,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
s32 yEnd;
s32 tileWidth;
s32 blueOffset;
s32 greenOffset;
u16* output;
s32 tileRow;
s32 lumaSkip;
s8 crValue;
@@ -188,7 +188,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
s32 cbValue;
u8 value;
s32 row;
u16* output;
s32 greenOffset;
s32 redOffset;
s32 blue;
@@ -285,9 +285,9 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
}
static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
u16* output;
s32 chromaSkip;
s32 tileRow;
s32 lumaSkip;
s32 xEnd;
u8* texture;
TMCCJPEGDecState* state;
u8* luminance;
@@ -296,15 +296,15 @@ static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 height;
u8* cr;
s32 column;
s32 xEnd;
s32 lumaSkip;
s32 yEnd;
s32 tileWidth;
s32 redOffset;
u16* output;
s32 cbValue;
s8 crValue;
s32 redOffset;
s32 greenOffset;
s32 blueOffset;
s32 chromaSkip;
s32 blue;
s32 red;
s32 green;
@@ -366,11 +366,11 @@ static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaSkip;
u16* output;
s32 cbValue;
s32 tileRow;
TMCCJPEGDecState* state;
s32 lumaSkip;
s32 cbValue;
s32 tileWidth;
TMCCJPEGDecState* state;
u16* output;
u8* texture;
s32 width;
s32 height;
@@ -381,8 +381,8 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
s32 column;
s32 xEnd;
s32 yEnd;
s32 tileWidth;
s32 redOffset;
s32 tileRow;
s32 greenOffset;
s32 blueOffset;
s32 value;
@@ -441,21 +441,21 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
}
static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaSkip;
s32 blue;
u16* output;
s32 tileRow;
s32 lumaSkip;
s32 xEnd;
u8* cr;
TMCCJPEGDecState* state;
u8* texture;
s32 tileWidth;
u8* luminance;
s32 width;
s32 height;
u8* cb;
u8* cr;
u8* texture;
s32 column;
s32 xEnd;
s32 chromaSkip;
s32 yEnd;
s32 tileWidth;
s32 tileRow;
s32 cbValue;
s32 crValue;
s32 redOffset;
@@ -463,8 +463,8 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 blueOffset;
s32 value;
s32 red;
s32 lumaSkip;
s32 green;
s32 blue;
luminance = work->convBuf + 4;
cb = &work->convBuf[132];
@@ -517,27 +517,27 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
}
static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaSkip;
s8 crValue;
s32 lumaSkip;
u16* output;
TMCCJPEGDecState* state;
s32 tileRow;
s8 crValue;
s32 chromaSkip;
u8* luminance;
TMCCJPEGDecState* state;
u8* texture;
s32 width;
s32 height;
s32 green;
s32 blue;
u8* luminance;
u8* cb;
u8* cr;
s32 lumaSkip;
s32 yEnd;
s32 xEnd;
s32 value;
s32 column;
s32 xEnd;
s32 yEnd;
u8* cr;
s32 greenOffset;
s32 tileWidth;
s32 redOffset;
s32 greenOffset;
u8* texture;
u8* cb;
u16* output;
s32 blueOffset;
s32 red;
s32 cbValue;
@@ -641,9 +641,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 xEnd = x + width;
s32 lumaSkip = 16 - width;
s32 chromaSkip = lumaSkip >> 1;
s32 redOffset;
s32 blueOffset;
s32 greenOffset;
s32 redOffset, greenOffset, blueOffset;
ASSERTLINE((x & 1) == 0, __LINE__);
for (; y < yEnd; y++) {
u16* output = (u16*)(texture + ((y & 3) << 3));
@@ -658,10 +656,10 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
blueOffset = (cbValue * 454) >> 8;
}
{
s32 red = *luminance++;
s32 green = red + greenOffset;
s32 blue = red + blueOffset;
red = red + redOffset;
s32 value = *luminance++;
s32 green = value + greenOffset;
s32 red = value + redOffset;
s32 blue = value + blueOffset;
if ((green | red | blue) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
@@ -770,7 +768,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
u16* output;
s32 tileRow;
s32 lumaSkip;
s32 blue;
u8* texture;
u8* luminance;
@@ -785,14 +783,14 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 greenOffset;
s32 yEnd;
s32 cbValue;
s32 tileWidth;
s32 tileRow;
s32 blueOffset;
s32 red;
s8 crValue;
u8 value;
s32 green;
s32 redOffset;
s32 lumaSkip;
s32 tileWidth;
luminance = work->convBuf + 4;
cb = work->convBuf + 132;

View File

@@ -1,20 +1,5 @@
#include <zi8clib/zitypes.h>
typedef struct {
ziU8 countOnly;
ziU8 maxWordLength;
ziU8 lookupMode;
ziU8 suffixOnly;
ziU8 controls[8];
ziU32 maxCount;
ziU16 capacity;
ziU8 minWordLength;
ziU8 flags;
ziU16 candidateCapacity;
ziU8 checkOnly;
ziU8 reserved;
} ZiCandidateOptions;
const ziWChar Zi8PunctTable[40] = {
0xFF0C, 0x3002, 0x3001, 0xFF1A, 0xFF1F, 0xFF01, 0x3005, 0x2026,
0x2015, 0xFF1B, 0xFF0E, 0x30FB, 0x201C, 0x201D, 0xFF08, 0xFF09,
@@ -23,8 +8,8 @@ const ziWChar Zi8PunctTable[40] = {
0xFFE1, 0x20AC, 0x203B, 0xFF20, 0x0000,
};
ziU32 Zi8Punctuation(ziGetParam* param, ziPtr options ZI_NEED_WORK) {
ziS32 limit = ((ZiCandidateOptions*)options)->capacity - 1;
ziS32 Zi8Punctuation(ziGetParam* param ZI_NEED_WORK) {
ziS32 limit = ((ziU16*)__zi8_work_data)[8] - 1;
ziS32 count = 0;
ziU8 i = 0;
ziU16 fc = param->firstCandidate;
@@ -36,7 +21,7 @@ ziU32 Zi8Punctuation(ziGetParam* param, ziPtr options ZI_NEED_WORK) {
}
if (fc == 0) {
count++;
if (((ZiCandidateOptions*)options)->countOnly == 0) {
if (ZI_WORK->getcPhase == 0) {
param->candidates[i++] = Zi8PunctTable[j];
if ((param->context & 0x10) != 0) {
param->candidates[i++] = 0x20;
@@ -48,7 +33,7 @@ ziU32 Zi8Punctuation(ziGetParam* param, ziPtr options ZI_NEED_WORK) {
break;
}
} else {
if (count >= (ziS32)((ZiCandidateOptions*)options)->maxCount) {
if (count >= (ziS32)ZI_WORK->targetCount) {
return count;
}
}
@@ -57,7 +42,7 @@ ziU32 Zi8Punctuation(ziGetParam* param, ziPtr options ZI_NEED_WORK) {
}
j++;
}
if (((ZiCandidateOptions*)options)->countOnly == 0) {
if (ZI_WORK->getcPhase == 0) {
param->letters = count;
}
return count;

View File

@@ -23,7 +23,7 @@ typedef struct ziConversionTable {
} ziConversionTable;
const ziConversionTables Zi8CvrtTables = {0};
ziU16 Zi8GetTableCount(ziU8, ziU8 ZI_NEED_WORK);
ziU32 Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
ziWChar Zi8ConvertUC2UserKey(ziChar, ziU8 ZI_NEED_WORK);
ziWChar Zi8ConvertUC2WC(ziChar character, ziU8 language ZI_NEED_WORK) {
@@ -37,7 +37,7 @@ ziWChar Zi8ConvertUC2WC(ziChar character, ziU8 language ZI_NEED_WORK) {
return 0;
}
if (Zi8GetTableCount(language, 6, __zi8_work_data) != 0) {
table = (ziU8*)Zi8GetTableAddress(language, 6, __zi8_work_data);
table = Zi8GetTableAddress(language, 6, __zi8_work_data);
if (table == 0) {
Zi8LogError(0x6A4, __zi8_work_data);
return 0;
@@ -77,7 +77,7 @@ ziChar Zi8ConvertWC2UC(ziWChar character, ziU8 language ZI_NEED_WORK) {
return 0;
}
if (Zi8GetTableCount(language, 7, __zi8_work_data) != 0) {
table = (ziConversionTable*)Zi8GetTableAddress(language, 7, __zi8_work_data);
table = Zi8GetTableAddress(language, 7, __zi8_work_data);
if (table == 0) {
Zi8LogError(0x6AE, __zi8_work_data);
return 0;
@@ -137,7 +137,7 @@ ziWChar Zi8ConvertUC2Key(ziChar character, ziU8 language ZI_NEED_WORK) {
if (ZI_WORK->userKeys[language] != 0)
return Zi8ConvertUC2UserKey(character, language, __zi8_work_data);
if (Zi8GetTableCount(language, 8, __zi8_work_data) != 0) {
table = (ziConversionTable*)Zi8GetTableAddress(language, 8, __zi8_work_data);
table = Zi8GetTableAddress(language, 8, __zi8_work_data);
if (table == 0) {
Zi8LogError(0x6B8, __zi8_work_data);
return 0;

View File

@@ -15,6 +15,28 @@ typedef struct {
typedef struct { ziU8 keyLow; ziU8 keyHigh; ziU8 code; ziU8 flags; } Zi8AltSoundRecord;
typedef struct {
ziU8 language;
ziU8 getMode;
ziU8 subLanguage;
ziU8 context;
ziU8 getOptions;
ziWChar* elements;
ziU8 elementCount;
ziWChar* currentWord;
ziU8 wordCharCount;
ziWChar* candidates;
ziU8 maxCandidates;
ziU16 firstCandidate;
ziU8 wordCandidates;
ziU8 count;
ziU8 letters;
ziU8* scratch;
ziPtr workspace;
} Zi8OneKeyParam;
typedef struct {
ziU8 countOnly;
ziU8 maxSpellingLength;
@@ -181,15 +203,15 @@ const ziWChar zi8PYfinalSpelling[64][4] = {
const unsigned long long Zi8SOpinyinArray = 0x0303010705000000ULL;
extern ziU16 Zi8Ord2Ord(ziU16, ziPtr);
extern Zi8UInt Zi8Ord2Ord(ziU16, ziPtr);
extern ziU8 Zi8LangSupported(ziU8, ziPtr);
extern ziU16 Zi8GetTableCount(ziU8,ziU8,ziPtr);
extern ziU32 Zi8GetTableAddress(ziU8,ziU8,ziPtr);
extern void Zi8Memset(ziU8*,ziU32,ziS32);
extern ziU8 _Zi8GetCandidates(ziGetParam*,ziPtr);
extern void Zi8InitDupWordBuf(ziPtr);
extern ziU32 Zi8GetPInfo(ziU32,ziWChar *,ziU8,ziPtr);
extern ziU32 Zi8GetZInfo(ziU32,ziWChar *,ziU8,ziPtr);
extern Zi8UInt Zi8GetTableAddress(ziU8,ziU8,ziPtr);
extern void Zi8Memset();
extern int _Zi8GetCandidates();
extern void Zi8InitDupWordBuf();
extern ziU16 Zi8GetPInfo(ziU16,ziWChar *,ziU8,ziPtr);
extern ziU16 Zi8GetZInfo(ziU16,ziWChar *,ziU8,ziPtr);
extern ziBool Zi8IsDupWordW(ziWChar *,ziU8,ziPtr);
extern ziU8 Zi8GetFormatVersion(ziU8,ziPtr);
extern ziU16 Zi8Uni2Ord(ziWChar,ziPtr);
@@ -197,10 +219,10 @@ extern ziU16 Zi8GetPCode(ziU8 *,ziU8 *);
extern ziU8 Zi8MatchOEMdata(ziWChar *,ziU8,ziU8,ziWChar *,ziU16,ziU8,ziU8,ziPtr);
extern ziU8 Zi8MatchPUDdata(ziWChar *,ziU8,ziU8,ziWChar *,ziU16,ziU8,ziU8,ziPtr);
extern ziWChar Zi8Ord2Uni(ziU16,ziPtr);
extern ziU32 Zi8GetZHuwdPtr(ziU32*,ziU16*,ziPtr);
extern ziU8 Zi8GetPyPhonetic(ziWChar*,ziU8,ziU16*,ziU16*,ziU8*,ziU16*,ziU16*,ziPtr);
extern ziU8 Zi8GetBpmfPhonetic(ziWChar*,ziU8,ziU16*,ziU16*,ziU16*,ziU16*,ziPtr);
extern ziU8 _Zi8CheckCandidates(ziGetParam*,ziPtr);
extern Zi8UInt Zi8GetZHuwdPtr(ziU8 **,ziU16 *,ziPtr);
extern int Zi8GetPyPhonetic();
extern ziU8 Zi8GetBpmfPhonetic();
extern int _Zi8CheckCandidates();
Zi8UInt Zi8SpellingZY(ziU16 *output,Zi8UInt key,ziU8 includeTone)
{
@@ -289,21 +311,21 @@ Zi8UInt Zi8SpellingPY(ziU16 *output,Zi8UInt key,ziU8 includeTone)
return length;
}
ziU8 Zi8IsMatch1Key(ziU16 *input,Zi8UInt inputLength,ziU16 key,ziU8 requireFull,ziU8 usePinyin,ziU8 tone)
ziU8 Zi8IsMatch1Key(ziU16 *input,Zi8UInt inputLength,Zi8UInt key,ziU8 requireFull,ziU8 usePinyin,ziU8 tone)
{
ziU16 spelling[16];
Zi8UInt spellingLength;
if (key == 0) {
if ((key & 0xffff) == 0) {
return 0;
}
if ((inputLength & 0xff) == 0) {
return 1;
}
if (usePinyin != 0) {
spellingLength = Zi8SpellingPY(spelling,key,tone & 0xff);
spellingLength = Zi8SpellingPY(spelling,key & 0xffff,tone & 0xff);
} else {
spellingLength = Zi8SpellingZY(spelling,key,tone & 0xff);
spellingLength = Zi8SpellingZY(spelling,key & 0xffff,tone & 0xff);
}
if ((requireFull != 0) && ((inputLength & 0xff) != (spellingLength & 0xff))) {
return 0;
@@ -440,15 +462,15 @@ BACKWARD_SEARCH:
goto BINARY_SEARCH;
}
}
static Zi8UInt Zi8SetFindCand(ziU8 *foundCandidates,ziU16 ordinal,ziPtr work)
static Zi8UInt Zi8SetFindCand(ziU8 *foundCandidates,Zi8UInt ordinal,ziPtr work)
{
Zi8UInt result;
ordinal = Zi8Ord2Ord(ordinal,work);
result = (ziU8)((1 << ((int)ordinal % 8)) &
foundCandidates[(int)ordinal / 8]);
foundCandidates[(int)ordinal / 8] |=
1 << ((int)ordinal % 8);
result = (ziU8)((1 << ((int)(ordinal & 0xffff) % 8)) &
foundCandidates[(int)(ordinal & 0xffff) / 8]);
foundCandidates[(int)(ordinal & 0xffff) / 8] |=
1 << ((int)(ordinal & 0xffff) % 8);
return result;
}
@@ -484,7 +506,7 @@ LAB_return_false:
return 0;
}
ziU32 Zi8Get1KeyPressSpelling(ziGetParam *params,Zi8OneKeyOptions *options,Zi8OneKeyWork *work)
Zi8UInt Zi8Get1KeyPressSpelling(Zi8OneKeyParam *params,Zi8OneKeyOptions *options,Zi8OneKeyWork *work)
{
ziU8 candidateCount;
ziBool exactLength;
@@ -509,18 +531,18 @@ ziU32 Zi8Get1KeyPressSpelling(ziGetParam *params,Zi8OneKeyOptions *options,Zi8On
ziU16 *output;
ziU8 *savedSearchOrder;
ziU16 spellingBuffer[8];
ziGetParam searchParams;
Zi8OneKeyParam searchParams;
candidateCount = 0;
totalCandidates = 0;
optionsMask = params->getOptions;
params->count = 0;
params->letters = 0;
params->completion = 0;
optionsMask = optionsMask & ~0x10;
optionsMask = optionsMask & ~0x20;
optionsMask = optionsMask & ~0x40;
if (options->maxSpellingLength == '\0') {
params->letters = 0;
params->count = 0;
Zi8LogError(100,work);
return 0;
}
@@ -798,7 +820,7 @@ ziU32 Zi8Get1KeyPressSpelling(ziGetParam *params,Zi8OneKeyOptions *options,Zi8On
savedSearchCount = work->searchOrderCount;
convertedInput = false;
savedSearchFlags = work->searchFlags;
Zi8Memset((ziU8*)&searchParams,0,0x2c);
Zi8Memset(&searchParams,0,0x2c);
searchParams.getMode = 0;
searchParams.subLanguage = 0x80;
searchParams.context = 1;
@@ -896,7 +918,7 @@ ziU32 Zi8Get1KeyPressSpelling(ziGetParam *params,Zi8OneKeyOptions *options,Zi8On
work->searchFlags = savedSearchFlags;
work->searchOrder = savedSearchOrder;
work->searchOrderCount = savedSearchCount;
params->letters = searchParams.letters;
params->count = searchParams.count;
work->spellingOnly = 0;
if (convertedInput) {
if (params->getMode == '\x03') {
@@ -915,7 +937,7 @@ ziU32 Zi8Get1KeyPressSpelling(ziGetParam *params,Zi8OneKeyOptions *options,Zi8On
}
}
if ((options->countOnly == '\0') && (params->getMode == '\x03')) {
for (tableIndex = 0; tableIndex < params->letters;) {
for (tableIndex = 0; tableIndex < params->count;) {
while (*output != 0) {
if (*output != 0x27) {
*output++ |= 0xf300;
@@ -1000,12 +1022,12 @@ nextSpelling:
}
}
finishSpelling:
params->letters = candidateCount;
params->count = candidateCount;
Zi8LogError(100,work);
return totalCandidates;
}
ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8OneKeyWork *work)
int Zi8Get1KeyPressCandidates(Zi8OneKeyParam *params,Zi8OneKeyOptions *options,Zi8OneKeyWork *work)
{
ziU16 wordBuffer [64];
ziU16 spelling [8];
@@ -1024,7 +1046,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
ziU8 *phraseEntries;
ziU16 *currentWord;
ziU8 *entryCursor;
ziU32 userEntriesAddress;
ziU8 *userEntries;
int duplicateIndex;
ziU16 alternateCount;
ziU16 ordinalCount;
@@ -1126,8 +1148,8 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
}
languageMask = languageMask << 4;
remaining = params->firstCandidate;
params->count = 0;
params->letters = 0;
params->completion = 0;
inputLength = params->elementCount;
if (inputLength != 0) {
while (inputLength != 0) {
@@ -1249,7 +1271,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
tableCursor = Zi8GetTableCount(1,9,work);
}
if (8 < inputLimit) {
params->count = 0;
params->wordCandidates = 0;
goto finishCandidates;
}
for (index = 0; index < (int)(Zi8UInt)inputLimit; index++) {
@@ -1305,7 +1327,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
}
if (elementIndex == 0) continue;
if (!emitWords) {
if (trackDuplicates && (ziU8)Zi8SetFindCand(params->scratch,candidateOrdinal,work) != 0) continue;
if (trackDuplicates && Zi8SetFindCand(params->scratch,candidateOrdinal,work) != 0) continue;
for (index = 0; index < candidateCount; index++) {
if (candidateCharacter == output[index]) break;
}
@@ -1335,7 +1357,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
output[outputIndex++] = candidateCharacter;
}
if (candidateCount >= params->maxCandidates || outputIndex > outputLimit) {
params->count = candidateCount;
params->wordCandidates = candidateCount;
goto finishCandidates;
}
} else {
@@ -1374,7 +1396,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
}
if (elementIndex == 0) continue;
if (!emitWords) {
if (trackDuplicates && (ziU8)Zi8SetFindCand(params->scratch,candidateOrdinal,work) != 0) continue;
if (trackDuplicates && Zi8SetFindCand(params->scratch,candidateOrdinal,work) != 0) continue;
for (index = 0; index < candidateCount; index++) {
if (candidateCharacter == output[index]) break;
}
@@ -1404,7 +1426,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
output[outputIndex++] = candidateCharacter;
}
if (candidateCount >= params->maxCandidates || outputIndex > outputLimit) {
params->count = candidateCount;
params->wordCandidates = candidateCount;
goto finishCandidates;
}
} else {
@@ -1497,7 +1519,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
}
if (elementIndex == 0) goto nextPhrase;
if (!emitWords) {
if (trackDuplicates && (ziU8)Zi8SetFindCand(params->scratch,phraseCharacter,work) != 0) goto nextPhrase;
if (trackDuplicates && Zi8SetFindCand(params->scratch,phraseCharacter,work) != 0) goto nextPhrase;
for (index = 0; index < candidateCount; index++) {
if (firstOrdinal == output[index]) goto nextPhrase;
}
@@ -1525,7 +1547,7 @@ ziU32 Zi8Get1KeyPressCandidates(ziGetParam *params,Zi8OneKeyOptions *options,Zi8
output[outputIndex++] = firstOrdinal;
}
if (candidateCount >= params->maxCandidates || outputIndex > outputLimit) {
params->count = candidateCount;
params->wordCandidates = candidateCount;
goto finishCandidates;
}
} else {
@@ -1546,7 +1568,7 @@ nextPhrase:
else {
finishPhrases:
if (params->wordCharCount != '\0') {
params->count = candidateCount;
params->wordCandidates = candidateCount;
}
}
if ((options->countOnly == '\0') && (tableCursor != 0)) {
@@ -1579,7 +1601,7 @@ finishPhrases:
}
if (elementIndex == 0) goto nextSortedOrdinal;
if (!emitWords) {
if (trackDuplicates && (ziU8)Zi8SetFindCand(params->scratch,ordinal,work) != 0) goto nextSortedOrdinal;
if (trackDuplicates && Zi8SetFindCand(params->scratch,ordinal,work) != 0) goto nextSortedOrdinal;
ordinal = Zi8Ord2Uni(ordinal,work);
for (index = 0; index < candidateCount; index++) {
if (ordinal == output[index]) break;
@@ -1607,11 +1629,11 @@ nextSortedOrdinal:
;
}
}
if ((options->countOnly == '\0') && (ziU8)Zi8GetZHuwdPtr(&userEntriesAddress,&userCount,work) != 0)
if ((options->countOnly == '\0') && Zi8GetZHuwdPtr(&userEntries,&userCount,work) != 0)
{
for (phraseOrdinal = 0; phraseOrdinal < userCount;) {
if ((params->elementCount == '\0') || ((((ziU8*)userEntriesAddress)[1] & 0x80) != 0)) {
userOrdinal = (ziU16)(((ziU8*)userEntriesAddress)[1] & 0x7f) << 8 | (ziU16)((ziU8*)userEntriesAddress)[2];
if ((params->elementCount == '\0') || ((userEntries[1] & 0x80) != 0)) {
userOrdinal = (userEntries[1] & 0x7f) << 8 | (ziU16)userEntries[2];
phraseTable = syllableTable + (Zi8UInt)userOrdinal * 0xc;
if (((*phraseTable & languageMask) != 0) &&
((characterSetTable == 0 || ((characterSet & characterSetTable[(Zi8UInt)userOrdinal]) != 0)))) {
@@ -1632,7 +1654,7 @@ nextSortedOrdinal:
}
if (elementIndex == 0) goto nextUserOrdinal;
if (!emitWords) {
if (trackDuplicates && (ziU8)Zi8SetFindCand(params->scratch,userOrdinal,work) != 0) goto nextUserOrdinal;
if (trackDuplicates && Zi8SetFindCand(params->scratch,userOrdinal,work) != 0) goto nextUserOrdinal;
userCharacter = Zi8Ord2Uni(userOrdinal,work);
for (duplicateIndex = 0; duplicateIndex < candidateCount; duplicateIndex++) {
if (userCharacter == output[duplicateIndex]) break;
@@ -1655,7 +1677,7 @@ nextSortedOrdinal:
}
nextUserOrdinal:
phraseOrdinal++;
userEntriesAddress = userEntriesAddress + 3;
userEntries = userEntries + 3;
}
}
phraseTable = syllableTable;
@@ -1688,7 +1710,7 @@ nextUserOrdinal:
if (unicodeCharacter == previousCharacter) goto nextOrdinal;
previousCharacter = unicodeCharacter;
if (!emitWords) {
if (trackDuplicates && (ziU8)Zi8SetFindCand(params->scratch,ordinal,work) != 0) goto nextOrdinal;
if (trackDuplicates && Zi8SetFindCand(params->scratch,ordinal,work) != 0) goto nextOrdinal;
for (index = 0; index < candidateCount; index++) {
if (unicodeCharacter == output[index]) break;
}
@@ -1716,14 +1738,15 @@ nextOrdinal:
}
finishCandidates:
if ((emitWords) && (outputIndex != 0)) {
output[outputIndex++] = 0;
output[outputIndex] = 0;
outputIndex++;
}
params->letters = candidateCount;
params->count = candidateCount;
Zi8LogError(100,work);
return totalCandidates;
}
ziBool Zi8ZHCheckSpelling(ziWChar *input,ziWChar *spelling,ziU8 inputLength,ziPtr work)
Zi8UInt Zi8ZHCheckSpelling(ziU16 *input,ziU16 *spelling,Zi8UInt inputLength,char *work)
{
int index;
ziU8 result;
@@ -1738,11 +1761,11 @@ ziBool Zi8ZHCheckSpelling(ziWChar *input,ziWChar *spelling,ziU8 inputLength,ziPt
int syllableStart;
int syllableLength;
Zi8UInt tableOffset;
ziWChar candidateBuffer [16];
ziU16 phoneticCodes [16];
ziU16 phoneticMasks [16];
ziU8 candidateBuffer [32];
ziU8 phoneticCodes [32];
ziU8 phoneticMasks [32];
ziU16 convertedSpelling [64];
ziGetParam getParam;
Zi8OneKeyParam getParam;
ziU8 maskLow;
ziU8 codeLow;
ziU8 maskHigh;
@@ -1783,7 +1806,7 @@ ziBool Zi8ZHCheckSpelling(ziWChar *input,ziWChar *spelling,ziU8 inputLength,ziPt
}
index = 0;
syllableStart = index;
for (; index < (int)inputLength; index = index + 1) {
for (; index < (int)(inputLength & 0xff); index = index + 1) {
switch (spelling[index]) {
case 0xf331:
toneMask = 1;
@@ -1854,7 +1877,7 @@ nextInputCharacter:
}
else {
if ((input[index] == 0x27) || (input[index] == 0xf360)) {
if (index < (int)inputLength) {
if (index < (int)(inputLength & 0xff)) {
convertedSpelling[index] = input[index] = spelling[index];
}
else {
@@ -1896,7 +1919,7 @@ nextInputCharacter:
getParam.elementCount = (ziU8)index;
getParam.currentWord = 0;
getParam.wordCharCount = 0;
getParam.candidates = candidateBuffer;
getParam.candidates = (ziWChar *)candidateBuffer;
getParam.maxCandidates = 1;
getParam.firstCandidate = 0;
if ((ziU8)_Zi8CheckCandidates(&getParam,work) != 0) {

View File

@@ -920,7 +920,8 @@ selectDictionary:
if ((((wordLength == 0) && (*punctuationCursor != 0)) && (dictionaryExact != 0)) &&
((((ZiAlphaWork*)workData)->singleCharacter != 0 && (parameters->elementCount == 2)))) {
*wordCursor = ((ZiAlphaWork*)workData)->singleCharacter;
wordCursor[1] = *punctuationCursor++;
wordCursor[1] = *punctuationCursor;
punctuationCursor = punctuationCursor + 1;
wordCursor[2] = 0;
wordLength = 2;
}
@@ -1067,7 +1068,7 @@ filterVowelCandidate:
(((ZiAlphaWork*)workData)->requiredLength != parameters->elementCount)) &&
(((((ZiAlphaWork*)workData)->prefixLength == '\0' ||
(((ZiAlphaWork*)workData)->prefixLength + 1 >= parameters->elementCount)) && (dictionaryExact != 0)))
))) && ((((currentVowelRestriction && (prefixCount == 0)) && (dictionaryKind != 0xb)) &&
))) && ((((completionAllowed && (prefixCount == 0)) && (dictionaryKind != 0xb)) &&
((((int)dictionaryIndex < (int)(unsigned int)((ZiAlphaWork*)workData)->dictionaryCount &&
(((ZiAlphaOptions*)optionData)->lookupMode == '\0')) &&
(((ZiAlphaWork*)workData)->dictionaries[language] == 0)))))) {
@@ -1083,7 +1084,7 @@ filterVowelCandidate:
goto retryDictionary;
}
}
if ((((((dictionaryExact == 0) || (!currentVowelRestriction)) || (prefixCount != 0)) ||
if ((((((dictionaryExact == 0) || (!completionAllowed)) || (prefixCount != 0)) ||
((dictionaryKind == 0xb ||
(dictionaryIndex >= ((ZiAlphaWork*)workData)->dictionaryCount)))) ||
(elements == 0)) ||
@@ -1138,7 +1139,7 @@ prepareCandidate:
Zi8ChangeWordCase(wordCursor - prefixCount,language,workData);
}
if ((((ZiAlphaOptions*)optionData)->suffixOnly != '\0') &&
((wordLength + prefixCount) > ((ZiAlphaOptions*)optionData)->maxWordLength)) {
((int)((ZiAlphaOptions*)optionData)->maxWordLength < (int)(wordLength + prefixCount))) {
wordLength = ((ZiAlphaOptions*)optionData)->maxWordLength - prefixCount;
wordCursor[wordLength] = 0;
}
@@ -1207,14 +1208,16 @@ emitCandidate:
if (((ZiAlphaOptions*)optionData)->maxResults <= candidateCount) goto finishCandidates;
} else {
if (((ZiAlphaOptions*)optionData)->lookupMode != '\0') {
for (index = 0; index <= wordLength; index++) {
if (wordCursor[index] != ((ZiAlphaOptions*)optionData)->dictionary[index]) break;
for (index = 0;
(index <= (int)wordLength &&
(wordCursor[index] == ((ZiAlphaOptions*)optionData)->dictionary[index]));
index = index + 1) {
}
if ((((((ZiAlphaWork*)workData)->operation != '\0') || (index >= wordLength))
if ((((((ZiAlphaWork*)workData)->operation != '\0') || ((int)wordLength <= index))
&& ((((ZiAlphaWork*)workData)->operation == '\0' ||
((exactLengthOnly == 0 ||
(index >= (int)(ziU16)Zi8WCharCount(((ZiAlphaOptions*)optionData)->dictionary,workData))))))) &&
((exactLengthOnly != 0 || (index >= wordLength)))) {
((int)(ziU16)Zi8WCharCount(((ZiAlphaOptions*)optionData)->dictionary,workData) <= index)))))) &&
((exactLengthOnly != 0 || ((int)wordLength <= index)))) {
candidateCount = 1;
goto finishCandidates;
}
@@ -1364,7 +1367,7 @@ emitCandidate:
}
}
retryDictionary:;
} while (dictionaryIndex != 0);
} while (dictionaryKind != 0);
}
finishDictionaryPass:;
}
@@ -1373,23 +1376,27 @@ finishDictionaryPass:;
(((parameters->elementCount == 1 &&
(((Zi8GetTableCount(parameters->language,0x1f,workData)) & 0x40) == 0)) &&
(*parameters->elements >= 0xeff1)))))) &&
((*parameters->elements <= 0xf010 &&
((*parameters->elements < 0xf011 &&
((Zi8getKeyLayout(parameters->language,*parameters->elements,&punctuationBuffer[0],1,workData)) != '\0')))) {
punctuationCandidate = ZI8_TRUE;
}
if (((candidateCount == 0) && (punctuationCandidate)) && (firstCandidate == 0)) {
candidateCount = 1;
if (((ZiAlphaOptions*)optionData)->countOnly != 0 || (parameters->getOptions & 0xFD) == 0x81) {
if ((((ZiAlphaOptions*)optionData)->countOnly == '\0') && ((parameters->getOptions & 0xfd) != 0x81)) {
*encodedOutput = 0x3e;
encodedOutput[2] = 0;
encodedOutput[1] = 0;
}
else {
if (parameters->getMode == 1) {
*wordCursor = *elements;
} else {
*wordCursor = 0x3E;
}
wordCursor[1] = wordCursor[2] = 0;
wordCursor += 2;
} else {
*encodedOutput = 0x3E;
encodedOutput[1] = encodedOutput[2] = 0;
else {
*wordCursor = 0x3e;
}
wordCursor[2] = 0;
wordCursor[1] = 0;
wordCursor = wordCursor + 2;
}
if (((ZiAlphaOptions*)optionData)->lookupMode == '\0') {
((ZiAlphaWork*)workData)->singleCharacter = 0;
@@ -1399,13 +1406,13 @@ finishDictionaryPass:;
secondLanguagePass = ZI8_TRUE;
languagePassCount = 0;
language = parameters->subLanguage;
completionAllowed = secondaryCompletionAllowed;
currentVowelRestriction = secondaryVowelRestriction;
dictionaryStatus[9] = 0;
dictionaryStatus[5] = 0;
dictionaryStatus[6] = 0;
dictionaryStatus[7] = 0;
dictionaryStatus[8] = 0;
completionAllowed = secondaryCompletionAllowed;
currentVowelRestriction = secondaryVowelRestriction;
if (switchedLanguage) {
secondLanguagePass = ZI8_FALSE;
dictionaryStatus[1] = 0;
@@ -1419,15 +1426,14 @@ finishDictionaryPass:;
if (language == 0) {
language = parameters->language;
}
completionAllowed = secondaryCompletionAllowed;
currentVowelRestriction = secondaryVowelRestriction;
if (language == parameters->language) {
completionAllowed = primaryCompletionAllowed;
currentVowelRestriction = primaryVowelRestriction;
} else {
completionAllowed = secondaryCompletionAllowed;
currentVowelRestriction = secondaryVowelRestriction;
}
if ((((ZiAlphaOptions*)optionData)->lookupMode != '\0') || ((!completionAllowed && (!currentVowelRestriction)))) goto finishCandidates;
if ((currentVowelRestriction) &&
if ((((ZiAlphaOptions*)optionData)->lookupMode != '\0') || ((!currentVowelRestriction && (!completionAllowed)))) goto finishCandidates;
if ((completionAllowed) &&
((((((ZiAlphaWork*)workData)->suffixMode == '\0' && (2 < (int)elementCount)) &&
(elements[elementCount - 2] == 0xeff1)) &&
((int)((ZiAlphaWork*)workData)->prefixCount == elementCount - 2)))) {
@@ -1438,65 +1444,66 @@ finishDictionaryPass:;
prefixPrepared = ZI8_TRUE;
goto preparePrefix;
}
if (currentVowelRestriction && ((ZiAlphaWork*)workData)->suffixMode != 0 &&
((ZiAlphaWork*)workData)->suffixLocked == 0 && elementCount > 2 &&
((elements[elementCount - 2] == 0xEFF1 &&
((ZiAlphaWork*)workData)->suffixCount == elementCount - 2) ||
(((ZiAlphaWork*)workData)->suffixCount == elementCount - 1 &&
Zi8IsAlphaPunct(elements[elementCount - 1]) != 0))) {
if (((ZiAlphaWork*)workData)->prefixEnabled >= 1 && elements[elementCount - 1] == 0xEFF1) {
goto checkPrefixPunctuation;
}
if (!primaryMatched && !secondaryMatched) {
((ZiAlphaWork*)workData)->suffixLocked = 1;
((ZiAlphaWork*)workData)->suffixElementCount = parameters->elementCount - 1;
if (prefixCount != 0) {
if (!((((completionAllowed) && (((ZiAlphaWork*)workData)->suffixMode != '\0')) &&
((((ZiAlphaWork*)workData)->suffixLocked == '\0' && (2 < (int)elementCount)))) &&
(((elements[elementCount - 2] == 0xeff1 &&
((int)((ZiAlphaWork*)workData)->suffixCount == elementCount - 2)) ||
(((int)((ZiAlphaWork*)workData)->suffixCount == elementCount - 1 &&
((Zi8IsAlphaPunct(elements[elementCount - 1])) != '\0'))))))) {
tryAlternatePrefix:
if ((prefixPrepared) && (1 < ((ZiAlphaWork*)workData)->alternatePrefixCount)) {
if (language == parameters->language) {
if (primaryMatched) {
((ZiAlphaWork*)workData)->alternatePrefixCount = 0;
}
}
else if (secondaryMatched) {
((ZiAlphaWork*)workData)->alternatePrefixCount = 0;
}
if (((ZiAlphaWork*)workData)->alternatePrefixCount != '\0') {
wordCursor -= prefixCount;
elements -= prefixCount;
elementCount = elementCount + prefixCount;
wordCapacity = wordCapacity + prefixCount;
prefixCount = 0;
}
goto preparePrefix;
}
}
if ((prefixPrepared) && (1 < ((ZiAlphaWork*)workData)->alternatePrefixCount)) {
if (language == parameters->language) {
if (primaryMatched) {
prefixPrepared = ZI8_FALSE;
((ZiAlphaWork*)workData)->suffixMode = 0;
((ZiAlphaWork*)workData)->suffixLocked = 0;
((ZiAlphaWork*)workData)->suffixCount = 0;
for (index = 0; index < (int)(unsigned int)((ZiAlphaWork*)workData)->alternatePrefixCount; index = index + 1) {
((ZiAlphaWork*)workData)->prefix[index] =
((ZiAlphaWork*)workData)->alternatePrefix[index];
}
((ZiAlphaWork*)workData)->prefixCount = (ziU8)index;
if (((ZiAlphaWork*)workData)->language == parameters->language) {
((ZiAlphaWork*)workData)->language = parameters->subLanguage;
}
else {
((ZiAlphaWork*)workData)->language = parameters->language;
}
((ZiAlphaWork*)workData)->alternatePrefixCount = 0;
}
}
else if (secondaryMatched) {
((ZiAlphaWork*)workData)->alternatePrefixCount = 0;
if ((((primaryMatched) && (secondaryMatched)) || (elementCount == 0)) ||
(((language == parameters->language && (primaryMatched)) || ((language == parameters->subLanguage && (secondaryMatched))))))
goto finishCandidates;
if (completionAllowed) goto checkPrefixPunctuation;
} else {
if ((((ZiAlphaWork*)workData)->prefixEnabled == '\0') || (elements[elementCount - 1] != 0xeff1)) {
if ((!primaryMatched) && (!secondaryMatched)) {
((ZiAlphaWork*)workData)->suffixLocked = 1;
((ZiAlphaWork*)workData)->suffixElementCount = parameters->elementCount - 1;
if (prefixCount != 0) {
wordCursor -= prefixCount;
elements -= prefixCount;
elementCount = elementCount + prefixCount;
wordCapacity = wordCapacity + prefixCount;
prefixCount = 0;
}
goto preparePrefix;
}
goto tryAlternatePrefix;
}
if (((ZiAlphaWork*)workData)->alternatePrefixCount != '\0') {
wordCursor -= prefixCount;
elements -= prefixCount;
elementCount = elementCount + prefixCount;
wordCapacity = wordCapacity + prefixCount;
prefixCount = 0;
prefixPrepared = ZI8_FALSE;
((ZiAlphaWork*)workData)->suffixMode = 0;
((ZiAlphaWork*)workData)->suffixLocked = 0;
((ZiAlphaWork*)workData)->suffixCount = 0;
for (index = 0; index < (int)(unsigned int)((ZiAlphaWork*)workData)->alternatePrefixCount; index = index + 1) {
((ZiAlphaWork*)workData)->prefix[index] =
((ZiAlphaWork*)workData)->alternatePrefix[index];
}
((ZiAlphaWork*)workData)->prefixCount = (ziU8)index;
if (((ZiAlphaWork*)workData)->language == parameters->language) {
((ZiAlphaWork*)workData)->language = parameters->subLanguage;
}
else {
((ZiAlphaWork*)workData)->language = parameters->language;
}
((ZiAlphaWork*)workData)->alternatePrefixCount = 0;
}
}
if ((((primaryMatched) && (secondaryMatched)) || (elementCount == 0)) ||
(((language == parameters->language && (primaryMatched)) || ((language == parameters->subLanguage && (secondaryMatched))))))
goto finishCandidates;
if (currentVowelRestriction) {
checkPrefixPunctuation:
if ((1 < ((ZiAlphaWork*)workData)->prefixEnabled) &&
(parameters->elements[parameters->elementCount - 1] != 0xEFF1))
@@ -1569,17 +1576,17 @@ checkPrefixFields:
finishCandidates:
((ZiAlphaWork*)workData)->usePrefixAsElements = 0;
if (((ZiAlphaOptions*)optionData)->countOnly != '\0') {
parameters->letters = 0;
if (((ZiAlphaOptions*)optionData)->countOnly == '\0') {
parameters->letters = candidateCount;
}
else {
parameters->letters = candidateCount;
parameters->letters = 0;
}
wordCursor[-prefixCount] = 0;
if (((((ZiAlphaOptions*)optionData)->countOnly == '\0') && (((ZiAlphaOptions*)optionData)->lookupMode == '\0')) && (parameters->elementCount != 0)) {
elementIndex = parameters->elementCount - 1;
if (((primaryVowelRestriction) || (secondaryVowelRestriction)) &&
((((ZiAlphaWork*)workData)->prefixEnabled <= 1 ||
((((ZiAlphaWork*)workData)->prefixEnabled < 2 ||
(parameters->elements[elementIndex] == 0xEFF1)))) {
index = 0;
while (elementIndex >= 0) {

View File

@@ -133,16 +133,16 @@ typedef struct {
ziU8 phonetics[11];
} ZiChineseRecord;
extern ziU32 Zi8GetTableAddress(ziU8 language, ziU8 table, ziPtr work);
extern ziPtr Zi8GetTableAddress(ziU8 language, ziU8 table, ziPtr work);
extern ziU16 Zi8GetTableCount(ziU8 language, ziU8 table, ziPtr work);
extern ziU8 Zi8IsDupWChar(ziWChar character, ziPtr work);
extern ziU8 Zi8IsDupWordW(ziWChar* word, ziU8 length, ziPtr work);
extern ziWChar Zi8Ord2Uni(ziU16 ordinal, ziPtr work);
extern ziU8 Zi8MatchPhonetic(ziPtr phonetics, ziU8* records,
ziPtr indexTable, ziU16 indexCount, ziU32 dictionary,
ziU8* record, ziU16* mask, ziU16* match,
ziU16* length, ziU8** matchedRecord,
ziU8** matchedString, ziU8 wordMode, ziU8 partial,
extern ziU8 Zi8MatchPhonetic(ziU8* phonetics, ZiChineseRecord* records,
ziPtr indexTable, ziU16 indexCount, ziPtr dictionary,
ZiChineseRecord* record, ziU16* mask, ziU16* match,
ziU16* length, ZiChineseRecord** matchedRecord,
int* matchedIndex, ziU8 wordMode, ziU8 partial,
ziU8 oneCharacter, ziU16 excludedMask,
ziU16 excludedMatch, ziU8 charset, ziU8 options,
ziU16 ordinal, ziU16* tone, ziU8 spellingOnly,
@@ -160,7 +160,7 @@ extern const ziU8 zi8CangjieCodes[25];
extern const ziWChar ziPuncts[4];
extern const ziWChar ziTones[4];
const ziWChar zi8tones[4];
extern ziU32 Zi8GetZHuwdPtr(ziU32* entries, ziU16* count, ziPtr work);
extern ziU8 Zi8GetZHuwdPtr(ziU8** entries, ziU16* count, ziPtr work);
extern ziBool Zi8IsComponent(ziWChar character, ziPtr work);
extern ziBool Zi8IsCharacter(ziWChar character, ziPtr work);
extern ziU8 Zi8MatchOEMdata(ziWChar* currentWord, ziU8 length, ziU8 language,
@@ -199,7 +199,7 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
ziU8 matchMode;
int index;
ziWChar* currentWord;
ziU32 userEntriesAddress;
ziU8* userEntries;
ziU16 ordinalIndex;
ziU16 tableIndex;
ziU16 phraseOrdinal;
@@ -614,10 +614,10 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
case 56: case 59:
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->fANDh) ordinalIndex = 0xF9FF;
break;
case 60: case 63:
case 52: case 55:
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->bANDp) ordinalIndex = 0xF9FF;
break;
case 52: case 55:
case 60: case 63:
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->gANDk) ordinalIndex = 0xF9FF;
break;
case 38:
@@ -1336,7 +1336,7 @@ dictionary_search:
Zi8GetFormatVersion(1, work) >= 8) {
lastCharHigh = (request->currentWord[request->wordCharCount - 1] >> 8) & 0xFF;
lastCharLow = request->currentWord[request->wordCharCount - 1];
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 28, work);
phoneticGroups = Zi8GetTableAddress(1, 28, work);
rangeCount = Zi8GetTableCount(1, 28, work);
rangeIndex = 0;
while (rangeIndex < rangeCount) {
@@ -1384,7 +1384,7 @@ numeric_setup:
default: ordinalCount = 0; break;
}
}
if (ordinalCount) ordinalTable = (ziU8*)Zi8GetTableAddress(1, 29, work);
if (ordinalCount) ordinalTable = Zi8GetTableAddress(1, 29, work);
}
if (!request->elementCount && (getMode == 7 || getMode == 8 || getMode == 9)) {
resultFallback = 0;
@@ -1451,7 +1451,7 @@ character_range_start:
firstOrdinal = 0;
rangeIndex = Zi8GetTableCount(1, 16, work);
if (Zi8GetFormatVersion(1, work) >= 4 && rangeIndex && elements[0] != 0xEF00) {
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 16, work);
phoneticGroups = Zi8GetTableAddress(1, 16, work);
rangeIndex = 0;
rangeCount = 0;
switch (phase) {
@@ -1612,9 +1612,9 @@ phonetic_ordinal_search:
record = records + phraseOrdinal * 12;
candidateCount = 0;
phoneticGroups = 0;
if (!Zi8MatchPhonetic(phoneticTable, records, alternateTable, alternateCount,
(ziU32)phraseTable, record, match.phon, match.phon2,
&candidateCount, &record, &phoneticGroups,
if (!Zi8MatchPhonetic(phoneticTable, (ZiChineseRecord*)records, alternateTable, alternateCount,
phraseTable, (ZiChineseRecord*)record, match.phon, match.phon2,
&candidateCount, (ZiChineseRecord**)&record, (int*)&phoneticGroups,
0, 1, match.nCand, phoneticMask, phoneticMatch, charset, requireFull,
phraseOrdinal, &candidateOrdinal, 0, work)) continue;
if (charsetTable) {
@@ -1754,10 +1754,10 @@ tone_candidates:
user_character_search:
if (((struct __zi8_work_data_s*)work)->uwdPtrCount && (getMode != 0 || !firstPhoneticPass) &&
!options->countOnly && (match.nCand <= 1 || (getMode != 1 && getMode != 2)) &&
(ziU8)Zi8GetZHuwdPtr(&userEntriesAddress, &userCount, work) && (getMode != 0 || match.nSeg <= 1)) {
Zi8GetZHuwdPtr(&userEntries, &userCount, work) && (getMode != 0 || match.nSeg <= 1)) {
userIndex = 0;
while (userIndex < userCount) {
candidateOrdinal = (ziU16)(((ziU8*)userEntriesAddress)[1] & 0x7F) << 8 | ((ziU8*)userEntriesAddress)[2];
candidateOrdinal = (ziU16)(userEntries[1] & 0x7F) << 8 | userEntries[2];
record = records + candidateOrdinal * 12;
if (!(record[0] & charset)) goto user_character_next;
character = ((ziU16)record[6] << 8) + record[7];
@@ -1792,7 +1792,7 @@ user_character_search:
(ziU8)Zi8SecMatchChar(record, componentTable, &match, 0, work)) candidateStatus = 1;
break;
case 1: case 2:
if (request->elementCount && !(((ziU8*)userEntriesAddress)[1] & 0x80)) candidateStatus = 0;
if (request->elementCount && !(userEntries[1] & 0x80)) candidateStatus = 0;
else {
candidateStatus = (match.first & (ziU16)Zi8GetPCode(phoneticTable, record)) == match.first2;
if (!candidateStatus && (record[0] & 0x80) && !requireFull &&
@@ -1827,7 +1827,7 @@ user_character_search:
}
user_character_next:
++userIndex;
userEntriesAddress += 3;
userEntries += 3;
}
}
if (!prefixLookup) goto phonetic_alt_continue;
@@ -1912,7 +1912,7 @@ cangjie_components:
Zi8GetTableCount(1, 16, work) && elements[0] != 0xEF00 && getMode != 5) {
rangeIndex = 0;
rangeCount = 0;
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 16, work);
phoneticGroups = Zi8GetTableAddress(1, 16, work);
switch (phase) {
case 0: rangeIndex = 0; rangeCount = 2; phase = 1; break;
case 1:
@@ -2199,7 +2199,7 @@ phonetic_main:
if (Zi8GetFormatVersion(1, work) >= 4) rangeCount = Zi8GetTableCount(1, 23, work);
else rangeCount = 0;
if (rangeCount && match.nCand == 2 && emitWords) {
frequencyCursor = (ziU8*)Zi8GetTableAddress(1, 24, work);
frequencyCursor = Zi8GetTableAddress(1, 24, work);
frequencyEntry = frequencyCursor;
duplicateIndex = Zi8GetTableCount(1, 24, work);
if (!duplicateIndex) isFirstCandidate = 1;
@@ -2323,9 +2323,9 @@ phonetic_ordinals:
candidateCount = recordCount;
phoneticGroups = 0;
while (emittedCount < request->maxCandidates && candidateCount) {
if (!Zi8MatchPhonetic(phoneticTable, records, alternateTable, alternateCount,
(ziU32)phraseTable, record, match.phon, match.phon2,
&candidateCount, &record, &phoneticGroups,
if (!Zi8MatchPhonetic(phoneticTable, (ZiChineseRecord*)records, alternateTable, alternateCount,
phraseTable, (ZiChineseRecord*)record, match.phon, match.phon2,
&candidateCount, (ZiChineseRecord**)&record, (int*)&phoneticGroups,
emitWords, singleCharacterPass, match.nCand, phoneticMask, phoneticMatch, charset,
requireFull, recordCount, &candidateOrdinal, filteringMode, work)) break;
ordinalIndex = recordCount - candidateCount - 1;
@@ -2446,7 +2446,7 @@ engine_finish:
return totalResults;
filtered_search:
userIndex = Zi8GetTableCount(1, 31, work);
frequencyTable = (ziU8*)Zi8GetTableAddress(1, 31, work);
frequencyTable = Zi8GetTableAddress(1, 31, work);
for (; userIndex; --userIndex) {
index = frequencyTable[0] & 15;
if (!(*frequencyTable++ & charset)) goto filtered_next;
@@ -2608,10 +2608,10 @@ static int Zi8NewMatchPhonetic(ziGetParam* request, ZiChineseRecord* records,
ziU8* phonetics;
int totalResults;
int emittedCharacters;
ziU8* matchedRecord;
ZiChineseRecord* matchedRecord;
ziU8* phoneticGroups;
ziU8* candidateGroups;
ziU8* matchedString;
int matchedIndex;
int capacity;
ziU8* groupCandidates;
ziU16 phoneticCount;
@@ -2645,20 +2645,20 @@ static int Zi8NewMatchPhonetic(ziGetParam* request, ZiChineseRecord* records,
if ((mask & 7) == 7) {
stopAfterTone = match & 7;
}
phoneticOffsets = (ziU16*)Zi8GetTableAddress(1, 13, work);
ordinalTable = (ziU16*)Zi8GetTableAddress(1, 14, work);
phoneticOffsets = Zi8GetTableAddress(1, 13, work);
ordinalTable = Zi8GetTableAddress(1, 14, work);
if (pinyin) {
phonetics = (ziU8*)Zi8GetTableAddress(1, 3, work);
phonetics = Zi8GetTableAddress(1, 3, work);
phoneticCount = Zi8GetTableCount(1, 3, work);
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 17, work);
phoneticGroups = Zi8GetTableAddress(1, 17, work);
groupCount = Zi8GetTableCount(1, 17, work);
candidateGroups = (ziU8*)Zi8GetTableAddress(1, 18, work);
candidateGroups = Zi8GetTableAddress(1, 18, work);
} else {
phonetics = (ziU8*)Zi8GetTableAddress(1, 4, work);
phonetics = Zi8GetTableAddress(1, 4, work);
phoneticCount = Zi8GetTableCount(1, 4, work);
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 19, work);
phoneticGroups = Zi8GetTableAddress(1, 19, work);
groupCount = Zi8GetTableCount(1, 19, work);
candidateGroups = (ziU8*)Zi8GetTableAddress(1, 20, work);
candidateGroups = Zi8GetTableAddress(1, 20, work);
}
if (groupCount) {
@@ -2782,12 +2782,12 @@ next_group_candidate:
}
}
if (stopAfterTone) {
matchedRecord = (ziU8*)(records + character);
matchedRecord = records + character;
matchedLength = 0;
matchedString = 0;
if (!Zi8MatchPhonetic(phonetics, (ziU8*)records, indexTable, indexCount,
(ziU32)dictionary, matchedRecord, &mask, &match,
&matchedLength, &matchedRecord, &matchedString,
matchedIndex = 0;
if (!Zi8MatchPhonetic(phonetics, records, indexTable, indexCount,
dictionary, matchedRecord, &mask, &match,
&matchedLength, &matchedRecord, &matchedIndex,
wordMode, 1, 1, excludedMask, excludedMatch,
charset, request->getOptions & 0x40, character,
&matchedTone, 0, work)) {

View File

@@ -62,7 +62,7 @@ ziU8 Zi8InitializeDynamic(ziLanguageEntry* langEntries ZI_NEED_WORK) {
return 1;
}
ziU8 Zi8IsZicorpSignature(ziU16* p, ziU16 len ZI_NEED_WORK) {
ziU8 Zi8IsZicorpSignature(ziU16* p, ziU16 len) {
if ((ziU16)len > 6 && p[0] == 0x7A && p[1] == 0x69 && p[2] == 0x63 &&
p[3] == 0x6F && p[4] == 0x72 && p[5] == 0x70) {
return 1;

View File

@@ -254,7 +254,7 @@ ziBool Zi8PriMatchNextComp(ziU8* node, ziU8 mask0, ziU8 value0, ziU8 mask1, ziU8
return 0;
}
ziBool Zi8SecMatchComp(ziPtr nodeAddress, ziMatchParam* matchAddress, ziPtr dictionaryAddress ZI_NEED_WORK) {
ziBool Zi8SecMatchComp(ziPtr nodeAddress, ziMatchParam* matchAddress, ziPtr dictionaryAddress) {
int chainIndex;
ziU16 matchCode;
ziU16 targetCode;
@@ -506,7 +506,7 @@ pinyin_initial:
convertedCount = Zi8PinyinInitials[value];
if (convertedCount != 0) {
if (outputIndex == 0) {
*resultCount += 1;
*resultCount = *resultCount + 1;
}
result++;
initial[outputIndex] = 0x7E00;
@@ -526,7 +526,7 @@ pinyin_initial:
value = *current;
if (value != 0x68 && value != 0xF368) goto scan_final;
if (outputIndex == 0) {
*resultCount += 1;
*resultCount = *resultCount + 1;
}
final[outputIndex] += 0x200;
*bestInitial = initial[0];
@@ -567,7 +567,7 @@ scan_final:
value -= 0xF361;
if (value > 0x19) {
if (outputIndex == 0) {
*resultCount += 1;
*resultCount = *resultCount + 1;
}
goto finish_final;
}
@@ -577,7 +577,7 @@ scan_final:
pinyin[index] = (ziU8)value + 1;
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) == 0) goto try_final_extension;
if (outputIndex == 0) {
*resultCount += 1;
*resultCount = *resultCount + 1;
}
current++;
index++;
@@ -592,7 +592,7 @@ try_final_extension:
pinyin[index + 1] = 0xFF;
if (Zi8GetPyFinal(pinyin, &pyInitial, &pyFinal) != 0) {
if (outputIndex == 0) {
*resultCount += 1;
*resultCount = *resultCount + 1;
}
pinyin[index + 1] = 0;
current++;
@@ -615,7 +615,7 @@ try_final_extension:
finish_final:
if ((index > 3) && (count != 0) && (((value = *current) == 0x27) || (value == 0xF360) || (value == 0x20))) {
if (outputIndex == 0) {
*resultCount += 1;
*resultCount = *resultCount + 1;
}
current++;
count--;
@@ -705,10 +705,11 @@ finish_final:
}
}
}
if (++outputIndex > 0xf) break;
outputIndex++;
if (outputIndex > 0xf) break;
}
if ((result > 1) && (text[*resultCount - 1] >= 0xF341) && (text[*resultCount - 1] <= 0xF35A)) {
*resultCount -= 1;
*resultCount = *resultCount - 1;
}
return result;
@@ -742,9 +743,9 @@ check_row:
return 0;
}
ziU8 Zi8GetBpmfPhonetic(ziWChar* text, ziU8 count, ziU16* initial, ziU16* final, ziU16* bestInitial, ziU16* bestFinal ZI_NEED_WORK) {
ziS32 Zi8GetBpmfPhonetic(ziWChar* text, ziU8 count, ziU16* initial, ziU16* final, ziU16* bestInitial, ziU16* bestFinal ZI_NEED_WORK) {
ziU16 value;
ziU8 resultCount = 0;
ziU32 resultCount = 0;
Zi8LogError(0x64, ZI_WORK);
if (count == 0) {

View File

@@ -17,7 +17,7 @@ typedef struct ziPudHeader {
ziU8 options[4];
ziPudSection sections[1];
} ziPudHeader;
ziU8 Zi8_8147FD7C(ziWChar*, ziU8, ziU8, ziWChar*, ziU16, ziU8, ziU8 ZI_NEED_WORK);
ziU32 Zi8_8147FD7C(ziWChar*, ziU8, ziU8, ziWChar*, ziU16, ziU8, ziU8 ZI_NEED_WORK);
ziU32 ZiIsPhoneticChar(ziWChar character) {
if ((character < 0xF305 || character > 0xF329) && (character < 0xF361 || character > 0xF37A)) return 0;
@@ -56,11 +56,8 @@ ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option, struct __zi8_work_data_s* __zi8_work_da
Zi8LogError(100, __zi8_work_data);
return previous;
}
ziU8 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
struct {
int fallback;
ziPtr workspace;
} match;
ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
int fallback = 0;
ziU8* bytePattern;
ziWChar folded;
ziPudSection* section;
@@ -71,8 +68,6 @@ ziU8 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
ziU32 entrySize;
ziPudHeader* table;
ziU8* byteOutput;
match.workspace = __zi8_work_data;
match.fallback = 0;
if (!(ZI_WORK->pudCount <= 16 && ZI_WORK->pudCount != 0 && ZI_WORK->pudTable[ZI_WORK->pudCount - 1] != 0)) {
Zi8LogError(0x4B0, __zi8_work_data);
return 0;
@@ -93,8 +88,8 @@ ziU8 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
Zi8LogError(0x4F6, __zi8_work_data);
return 0;
}
ZI_WORK->unk_0x314 = ((ziU16)section->count[0] << 8) + (ziU16)section->count[1];
ZI_WORK->unk_0x310 = (ziU32)table + (((ziU16)section->offset[0] << 8) + (ziU16)section->offset[1]);
ZI_WORK->unk_0x314 = section->count[0] * 0x100 + section->count[1];
ZI_WORK->unk_0x310 = (ziU32)table + section->offset[0] * 0x100 + section->offset[1];
ZI_WORK->unk_0x318 = 0;
}
for (;;) {
@@ -135,7 +130,7 @@ matchText:
}
}
matched:
if (match.fallback) {
if (fallback) {
ZI_WORK->unk_0x310 = 0;
ZI_WORK->unk_0x318 = 0;
ZI_WORK->unk_0x314 = 0;
@@ -169,7 +164,7 @@ matched:
}
if (length == 1 && complete != 0 && continuation == 0) {
complete = 0;
match.fallback = 1;
fallback = 1;
ZI_WORK->unk_0x318 = 0;
} else {
ZI_WORK->unk_0x310 = 0;
@@ -179,12 +174,12 @@ matched:
}
}
}
ziU8 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation, struct __zi8_work_data_s* __zi8_work_data) {
ziU8 result;
ziU32 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation, struct __zi8_work_data_s* __zi8_work_data) {
ziU32 result;
if (continuation == 0) __zi8_work_data->pudCount = 1;
for (;;) {
result = Zi8_8147FD7C(pattern, length, language, output, capacity, complete, continuation, __zi8_work_data);
if (result != 0) break;
if ((ziU8)result != 0) break;
if (++__zi8_work_data->pudCount <= 16) {
continuation = 0;
} else {
@@ -194,6 +189,6 @@ ziU8 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* outp
}
return result;
}
ziU8 Zi8_8147FD7C(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
ziU32 Zi8_8147FD7C(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
return Zi8MatchPUDdata_ZHS(pattern, length, language, output, capacity, 0, 0, complete, continuation, __zi8_work_data);
}

View File

@@ -1,13 +1,13 @@
#include <zi8clib/zitypes.h>
ziU16 Zi8GetVersion(ziPtr __zi8_work_data) {
ziU16 Zi8GetVersion() {
return 1802;
}
ziU16 Zi8GetBuildID(ziPtr __zi8_work_data) {
ziU16 Zi8GetBuildID() {
return 41;
}
ziU16 Zi8GetOEMID(ziPtr __zi8_work_data) {
ziU16 Zi8GetOEMID() {
return 249;
}

View File

@@ -11,15 +11,15 @@ typedef struct {
ziU8 characterLow;
} ZiKoreanKeyEntry;
ziU16 Zi8_8148302C(ziU16 key, ziU8* table ZI_NEED_WORK) {
ziU32 Zi8_8148302C(ziU16 key, ziU8* table ZI_NEED_WORK) {
ziU32 value;
ziU16 count;
ziU16 i;
ziU32 i;
count = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
for (i = 0; i < count; i++) {
value = (ziU16)(((ziU16)table[(i << 3) + i + 7] << 8) |
table[(i << 3) + i + 8]);
for (i = 0; (ziU16)i < count; i++) {
value = (ziU16)(((ziU16)table[((i & 0xFFFF) << 3) + (i & 0xFFFF) + 7] << 8) |
table[((i & 0xFFFF) << 3) + (i & 0xFFFF) + 8]);
if (value == key) {
Zi8LogError(0x64, ZI_WORK);
return i;
@@ -313,8 +313,7 @@ ziU32 Zi8GetKOcandidates(ziGetParam* param, ZiKoreanCandidateOptions* options ZI
param->candidates[0] = 0;
}
Zi8LogError(100, ZI_WORK);
if (param->wordCharCount == 0) goto scan_key_table;
{
if (param->wordCharCount != 0) {
if (((search.keyIndex = Zi8_8148302C(param->currentWord[0], keyTable, ZI_WORK)) != 0xFFFF) &&
((((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->keyBytes[4] & 8) != 0)) {
search.wordOffset = ((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->childLow |
@@ -439,7 +438,6 @@ search_table:
param->count = search.candidateCount;
param->letters = search.candidateCount;
}
scan_key_table:
if (param->elementCount > 9) {
param->letters = 0;
return 0;

View File

@@ -280,8 +280,10 @@ savePhonetic:
}
if (buffers.phoneticInput[phoneticLength - 1] == 0xF360) {
match->nCand--;
bestInitial = initial = previousInitial;
bestFinal = final = previousFinal;
bestInitial = previousInitial;
bestFinal = previousFinal;
final = bestFinal;
initial = bestInitial;
goto savePhonetic;
}
if (match->nCand == 1) {

View File

@@ -6,6 +6,11 @@ typedef struct FA_NAND_ATTACH {
u32 size;
} FA_NAND_ATTACH;
typedef struct FA_ATTACH_REQUEST {
FADrvTbl* table;
u32 count;
} FA_ATTACH_REQUEST;
FADisk* gOpenDisk[26];
FAPartition* gOpenPartition[26];
typedef struct FA_DISK_INIT {
@@ -29,13 +34,13 @@ static struct {
} drvInitFunc = {diskInitTbl, 3};
extern s32 pdm_open_disk(FA_DISK_INIT* table, FADisk** disk);
extern s32 pdm_open_partition(FADisk* disk, u32 index, FAPartition** partition);
extern s32 pfstub_attach(FADrvTbl** drives, const void* nand_data);
extern s32 pfstub_attach(FA_ATTACH_REQUEST* request, FA_NAND_ATTACH* nand);
extern s32 pfd_sddrv_is_media_insert(void);
extern s32 pfd_mscdrv_is_media_insert(FADisk* disk);
extern s32 pfd_mscdrv_is_media_insert(void);
FAError FAAttach(u32 device, char* nand_path, u32 nand_size, FADrvTbl* table) {
FADisk* disk;
FADrvTbl* drives[2];
FA_ATTACH_REQUEST request;
FA_NAND_ATTACH nand;
s32 error;
s32 index;
@@ -60,16 +65,16 @@ FAError FAAttach(u32 device, char* nand_path, u32 nand_size, FADrvTbl* table) {
return -1;
}
}
drives[0] = table;
drives[1] = NULL;
request.table = table;
request.count = 0;
if (device == 2) {
memcpy(nand.path, nand_path, 78);
nand.size = nand_size;
}
if (device == 2) {
error = pfstub_attach(drives, &nand);
error = pfstub_attach(&request, &nand);
} else {
error = pfstub_attach(drives, NULL);
error = pfstub_attach(&request, NULL);
}
if (error != 0) {
return -1;
@@ -80,11 +85,11 @@ FAError FAAttach(u32 device, char* nand_path, u32 nand_size, FADrvTbl* table) {
gOpenPartition[index] = table->pPart;
if (device == 0) {
if (pfd_sddrv_is_media_insert()) {
drives[0]->stat |= 0x10;
request.table->stat |= 0x10;
}
} else if (device == 1) {
if (pfd_mscdrv_is_media_insert(disk)) {
drives[0]->stat |= 0x10;
if (pfd_mscdrv_is_media_insert()) {
request.table->stat |= 0x10;
}
}
} else {

View File

@@ -3,7 +3,7 @@
static FAEjectCallback g_detach_func;
static FAInsertCallback g_attach_func;
extern s32 uhf_msc_is_media_insert(FADisk* disk);
extern s32 uhf_msc_is_media_insert(void);
s32 pfd_mscdrv_registar_callback(FAInsertCallback insert, FAEjectCallback eject) {
g_attach_func = insert;
@@ -11,6 +11,6 @@ s32 pfd_mscdrv_registar_callback(FAInsertCallback insert, FAEjectCallback eject)
return 0;
}
s32 pfd_mscdrv_is_media_insert(FADisk* disk) {
return uhf_msc_is_media_insert(disk);
s32 pfd_mscdrv_is_media_insert(void) {
return uhf_msc_is_media_insert();
}

View File

@@ -318,58 +318,58 @@ s32 pfd_sddrv_init(FADisk* disk) {
}
if ((pfd_sddrv_flags(&g_pfd_sddrv_info) & 1) != 0) {
OSReport("INFO SD Card driver is already initialize. pfd_sddrv_init()\n");
if (disk != g_pfd_sddrv_info.disk) {
return -44;
if (disk == g_pfd_sddrv_info.disk) {
return 0;
}
return -44;
}
if ((g_pfd_sddrv_info.flags & 4) == 0) {
g_pfd_sddrv_info.bytes_per_sector = 0x200;
pf_memset(&g_pfd_sddev, 0, 0x28);
sd_result = ISD_InitCard();
if (sd_result != 0) {
OSReport("ERR:Failed to init SD Card Driver in pfd_sddrv_init()\n");
return -40;
}
g_pfd_sddrv_info.flags |= 4;
}
pf_memset(&g_pfd_sddev, 0, 0x28);
device = &g_pfd_sddev.device;
sd_result = ISD_MountCard(0, &device);
if (sd_result != 0) {
OSReport("ERR SD card can not mount [ret = 0x%x]. pfd_sddrv_init()\n", sd_result);
return -41;
}
sd_result = ISD_GetDeviceStatus(device, &status);
if (sd_result != 0) {
OSReport("ERR Failed to get sd card status. [ret = 0x%x]\n", sd_result);
return 21;
}
if ((status & 1) != 0) {
g_pfd_sddrv_info.media_inserted = 1;
}
g_pfd_sddrv_info.device = device;
if (g_pfd_sddrv_info.media_inserted != 0) {
g_event = 2;
sd_result = ISD_RegisterDeviceIntrHandler(device, (SDDevIntrCallback)pfd_st_removal_callback, &g_event);
if (sd_result != 0) {
OSReport("ERR:Failed to regist intr handler1 [ret = 0x%x] pfd_sddrv_init()\n", sd_result);
ISD_UnmountCard(device);
g_pfd_sddrv_info.device = 0;
return -42;
}
} else {
if ((g_pfd_sddrv_info.flags & 4) == 0) {
g_pfd_sddrv_info.bytes_per_sector = 0x200;
pf_memset(&g_pfd_sddev, 0, 0x28);
sd_result = ISD_InitCard();
if (sd_result != 0) {
OSReport("ERR:Failed to init SD Card Driver in pfd_sddrv_init()\n");
return -40;
}
g_pfd_sddrv_info.flags |= 4;
}
pf_memset(&g_pfd_sddev, 0, 0x28);
device = &g_pfd_sddev.device;
sd_result = ISD_MountCard(0, &device);
g_event = 1;
sd_result = ISD_RegisterDeviceIntrHandler(device, (SDDevIntrCallback)pfd_st_inter_callback, &g_event);
if (sd_result != 0) {
OSReport("ERR SD card can not mount [ret = 0x%x]. pfd_sddrv_init()\n", sd_result);
return -41;
OSReport("ERR:Failed to regist intr handler1 [ret = 0x%x] pfd_sddrv_init()\n", sd_result);
ISD_UnmountCard(device);
g_pfd_sddrv_info.device = 0;
return -42;
}
sd_result = ISD_GetDeviceStatus(device, &status);
if (sd_result != 0) {
OSReport("ERR Failed to get sd card status. [ret = 0x%x]\n", sd_result);
return 21;
}
if ((status & 1) != 0) {
g_pfd_sddrv_info.media_inserted = 1;
}
g_pfd_sddrv_info.device = device;
if (g_pfd_sddrv_info.media_inserted != 0) {
g_event = 2;
sd_result = ISD_RegisterDeviceIntrHandler(device, (SDDevIntrCallback)pfd_st_removal_callback, &g_event);
if (sd_result != 0) {
OSReport("ERR:Failed to regist intr handler1 [ret = 0x%x] pfd_sddrv_init()\n", sd_result);
ISD_UnmountCard(device);
g_pfd_sddrv_info.device = 0;
return -42;
}
} else {
g_event = 1;
sd_result = ISD_RegisterDeviceIntrHandler(device, (SDDevIntrCallback)pfd_st_inter_callback, &g_event);
if (sd_result != 0) {
OSReport("ERR:Failed to regist intr handler1 [ret = 0x%x] pfd_sddrv_init()\n", sd_result);
ISD_UnmountCard(device);
g_pfd_sddrv_info.device = 0;
return -42;
}
}
g_pfd_sddrv_info.disk = disk;
g_pfd_sddrv_info.flags |= 1;
}
g_pfd_sddrv_info.disk = disk;
g_pfd_sddrv_info.flags |= 1;
return 0;
}
@@ -749,8 +749,7 @@ s32 pfd_sddrv_get_total_sectors(u32* sectors, u16* bytes_per_sector) {
minimum_multiplier = multiplier >= 9 ? multiplier : 9;
max_multiplier = minimum_multiplier <= 11 ? minimum_multiplier : 11;
multiplier_factor = 1;
max_multiplier = (u16)(max_multiplier - 9);
multiplier_factor = (u16)(multiplier_factor << max_multiplier);
multiplier_factor <<= (u16)(max_multiplier - 9);
*sectors = cluster_blocks * multiplier_factor;
} else {
*sectors = ((csd[1] >> 8 & 0x3fffff) + 1) * 0x400;
@@ -1361,20 +1360,19 @@ s32 pfd_sddrv_store_fat32_bpb_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector
static s32 pfd_sddrv_store_fat32_reserved_buf(u8* sector_buffer) {
PFD_SDDRV_RESERVED_BOOT_SECTOR* reserved_boot_sector;
s32 result = -30;
if (sector_buffer != 0) {
pf_memset(sector_buffer, 0, 0x200);
reserved_boot_sector = (PFD_SDDRV_RESERVED_BOOT_SECTOR*)sector_buffer;
if (((u32)reserved_boot_sector->signature.bytes & 1) != 0) {
reserved_boot_sector->signature.bytes[0] = 0x55;
reserved_boot_sector->signature.bytes[1] = 0xaa;
} else {
reserved_boot_sector->signature.value = 0x55aa;
}
result = 0;
if (sector_buffer == 0) {
return -30;
}
return result;
pf_memset(sector_buffer, 0, 0x200);
reserved_boot_sector = (PFD_SDDRV_RESERVED_BOOT_SECTOR*)sector_buffer;
if (((u32)reserved_boot_sector->signature.bytes & 1) != 0) {
reserved_boot_sector->signature.bytes[0] = 0x55;
reserved_boot_sector->signature.bytes[1] = 0xaa;
} else {
reserved_boot_sector->signature.value = 0x55aa;
}
return 0;
}
s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {

View File

@@ -1,32 +1,25 @@
#include <private/fa/pdm.h>
#include <revolution/types.h>
#define MBR_WORD(buf, offset) \
((pf_u32)(buf)[offset] + ((pf_u32)(buf)[(offset) + 1] << 8) + \
((pf_u32)(buf)[(offset) + 2] << 16) + ((pf_u32)(buf)[(offset) + 3] << 24))
#define MBR_WORD(buf, offset) (((pf_u32)(buf)[(offset) + 3] << 24) + ((pf_u32)(buf)[(offset) + 2] << 16) + ((pf_u32)(buf)[(offset) + 1] << 8) + (buf)[offset])
static inline pf_u16 read_boot_u16(pf_u8* buf, pf_u32 offset) {
if ((pf_u32)&buf[offset] & 1) { return (buf[offset + 1] << 8) | buf[offset]; }
return PF_SWAP_16(*(pf_u16*)&buf[(offset + 1) & ~1]);
}
static inline pf_u32 read_partition_u32(const pf_u8* buf, pf_u32 offset) {
return (((pf_u32)buf[offset + 2] << 16) + buf[offset]) +
(((pf_u32)buf[offset + 3] << 24) + ((pf_u32)buf[offset + 1] << 8));
}
pf_s32 pdm_part_is_master_boot_sector(pf_u8* buf, pf_u32 total, pf_bool* p_is_mbr) {
pf_u32* p_start;
pf_u32* p_count;
pf_s16 index;
pf_u32 start[4];
pf_u32 count[4];
pf_u32* p_start;
pf_u32* p_count;
*p_is_mbr = 0;
if (buf[510] != 0x55 || buf[511] != 0xAA) { return 2; }
p_start = start;
p_count = count;
for (index = 0; index < 4; index++) {
*p_start = 0;
*p_start = read_partition_u32(buf, 454);
*p_count = read_partition_u32(buf, 458);
*p_start = (((pf_u32)buf[456] << 16) + buf[454]) + (((pf_u32)buf[457] << 24) + ((pf_u32)buf[455] << 8));
*p_count = (((pf_u32)buf[460] << 16) + buf[458]) + (((pf_u32)buf[461] << 24) + ((pf_u32)buf[459] << 8));
if (*p_start != 0 && *p_count != 0) {
if (index == 0) { *p_is_mbr = 1; }
} else {
@@ -78,20 +71,15 @@ pf_bool pdm_part_is_boot_sector(pf_u8* buf) {
return is_boot;
}
static inline pf_u32 read_relative_start_sector(pf_u32 base, const pf_u8* buf, pf_u32 offset) {
return base + (buf[offset] + ((unsigned int)buf[offset + 1] << 8) +
((unsigned int)buf[offset + 2] << 16) + ((unsigned int)buf[offset + 3] << 24));
}
pf_s32 pdm_part_get_start_sector(PDM_PARTITION* p_part) {
pf_u32 part_index = 0;
pf_u32 requested = p_part->part_id;
pf_u32 start[4];
pf_u32 count[4];
pf_u32 part_index = 0;
pf_u32 sector;
pf_u32 base;
pf_u16 index;
pf_u16 extended_index;
pf_u32 base;
pf_u32 sector;
pf_u32 length;
pf_bool is_mbr;
pf_u32 success;
@@ -124,14 +112,14 @@ pf_s32 pdm_part_get_start_sector(PDM_PARTITION* p_part) {
sector = base;
for (extended_index = 0; extended_index < 2; extended_index++) {
if (extended_index == 0) {
sector = read_relative_start_sector(sector, buf, 454);
sector = sector + MBR_WORD(buf, 454);
length = MBR_WORD(buf, 458);
err = pdm_disk_physical_read(p_part->p_disk, buf, sector, 1, 512, &success);
if (err != 0) { return err; }
if (requested == part_index) { p_part->start_sector = sector; p_part->total_sector = length; return 0; }
part_index++;
} else {
sector = read_relative_start_sector(base, buf, 470);
sector = base + MBR_WORD(buf, 470);
length = MBR_WORD(buf, 474);
if (sector == 0 || length == 0) { break; }
err = pdm_disk_physical_read(p_part->p_disk, buf, sector, 1, 512, &success);

View File

@@ -1,12 +1,12 @@
#include <revolution/fa/pf_stub.h>
s32 pfstub_attach(FADrvTbl** drives, const void* nand_data) {
s32 pfstub_attach(FADrvTbl* drives, u32 mode) {
PF_STUB_MESSAGE message;
message.operation = 27;
message.object = drives;
message.callback = NULL;
message.data = nand_data;
message.data = (void*)mode;
if (pfstub_com_massage(&message) == -1) {
return -1;
}

View File

@@ -557,14 +557,18 @@ static void kbdSendKey(KBDKeyEventData* event) {
}
}
static inline u32 kbdChannelFlags(u32 channel) {
return kbdData[channel].flags;
}
static void kbd_led_handler(BOOL success, void* callbackArg) {
const KBDLEDCallbackData* callback;
s32 index;
u32 index;
u32 err;
index = (s32)callbackArg;
index = (u32)callbackArg;
callback = &kbdLCBuf[index];
kbdCmdBuf[index].device = 0;
if (callback->callbackAddress == (USBKBDCmdLEDCallback)(u32)kbdCmdBuf[(u32)callbackArg].device) {
if (callback->callbackAddress == (USBKBDCmdLEDCallback)(u32)kbdCmdBuf[index].device) {
return;
}
switch (success) {
@@ -575,12 +579,13 @@ static void kbd_led_handler(BOOL success, void* callbackArg) {
err = 0;
break;
}
kbdLCBuf[(u32)callbackArg].callbackAddress(err, kbdLCBuf[(u32)callbackArg].callbackArg);
kbdLCBuf[index].callbackAddress(err, kbdLCBuf[index].callbackArg);
}
USBKBDErr KBDSetLedsAsync(u32 channel, u32 leds, USBKBDCmdLEDCallback callback, void* callbackArg) {
s32 index;
u32 ofs;
u8 ledBits;
u32 index;
BOOL interrupts;
USBKBDErr result;
if (!kbdInitialized) {
@@ -589,18 +594,14 @@ USBKBDErr KBDSetLedsAsync(u32 channel, u32 leds, USBKBDCmdLEDCallback callback,
if (channel >= 4) {
return 4;
}
{
KBDChannel* data = &kbdData[(s32)channel];
if ((s32)data->flags == 1 || (s32)data->flags == 4) {
return 5;
}
if ((s32)kbdChannelFlags(channel) == 1 || (s32)kbdChannelFlags(channel) == 4) {
return 5;
}
ledBits = leds;
interrupts = OSDisableInterrupts();
for (index = 0; index < 12; index++) {
if (kbdCmdBuf[(s32)index].device == 0) {
KBDChannel* data = &kbdData[channel];
kbdCmdBuf[(s32)index].device = (u32)data->device;
for (index = 0, ofs = 0; index < 12; index++, ofs += sizeof(KBDLEDCommand)) {
if (*(u32*)&((u8*)kbdCmdBuf)[ofs] == 0) {
*(u32*)&((u8*)kbdCmdBuf)[ofs] = (u32)kbdData[channel].device;
break;
}
}
@@ -608,14 +609,11 @@ USBKBDErr KBDSetLedsAsync(u32 channel, u32 leds, USBKBDCmdLEDCallback callback,
if (index == 12) {
return 7;
}
{
KBDChannel* data = &kbdData[channel];
kbdLCBuf[index].callbackAddress = callback;
kbdLCBuf[index].callbackArg = callbackArg;
result = USBKBDSetLEDAsync((u32)data->device, ledBits,
(USBKBDCmdLEDAsync*)&kbdCmdBuf[index],
kbd_led_handler, (void*)index);
}
kbdLCBuf[index].callbackAddress = callback;
kbdLCBuf[index].callbackArg = callbackArg;
result = USBKBDSetLEDAsync((u32)kbdData[channel].device, ledBits,
(USBKBDCmdLEDAsync*)&kbdCmdBuf[index],
kbd_led_handler, (void*)index);
switch (result) {
default:
return 7;
@@ -626,6 +624,7 @@ USBKBDErr KBDSetLedsAsync(u32 channel, u32 leds, USBKBDCmdLEDCallback callback,
USBKBDErr KBDSetLeds(u32 channel, u32 leds) {
u32 index;
KBDLEDCommand* command;
BOOL interrupts;
USBKBDErr result;
u8 ledBits;
@@ -635,16 +634,20 @@ USBKBDErr KBDSetLeds(u32 channel, u32 leds) {
if (channel >= 4) {
return 4;
}
if ((s32)kbdData[(s32)channel].flags == 1 || (s32)kbdData[(s32)channel].flags == 4) {
if ((s32)kbdChannelFlags(channel) == 1 || (s32)kbdChannelFlags(channel) == 4) {
return 5;
}
ledBits = leds & 0xff;
interrupts = OSDisableInterrupts();
for (index = 0; index < 12; index++) {
if (kbdCmdBuf[(s32)index].device == 0) {
kbdCmdBuf[(s32)index].device = (u32)kbdData[channel].device;
index = 0;
command = kbdCmdBuf;
while (index < 12) {
if (command->device == 0) {
command->device = (u32)kbdData[channel].device;
break;
}
index++;
command++;
}
OSRestoreInterrupts(interrupts);
if (index == 12) {
@@ -652,7 +655,7 @@ USBKBDErr KBDSetLeds(u32 channel, u32 leds) {
}
result = USBKBDSetLED((u32)kbdData[channel].device, ledBits,
(USBKBDCmdLED*)&kbdCmdBuf[index]);
kbdCmdBuf[(s32)index].device = 0;
kbdCmdBuf[index].device = 0;
switch (result) {
default:
return 7;

View File

@@ -353,41 +353,38 @@ static void reset_kpad(KPADInside* kpad) {
}
void KPADGetProjectionPos(Vec2* dest, Vec2* src, const Rect* rect, f32 scale) {
f32 aspect;
f32 halfHeight;
f32 half;
f32 x;
f32 height;
height = rect->bottom - rect->top;
half = 0.5f;
halfHeight = height * half;
x = src->x * halfHeight;
aspect = 1.2f;
x = aspect * x;
dest->y = aspect * (src->y * halfHeight);
dest->x = (f32)(x * (0.908 * scale));
f64 scaled;
f32 height = rect->bottom - rect->top;
f32 halfHeight = height * 0.5f;
f32 x = src->x * halfHeight;
f32 y = src->y * halfHeight;
x *= 1.2f;
y *= 1.2f;
scaled = 0.908 * scale;
dest->y = y;
dest->x = (f32)(x * scaled);
}
void KPADSetSensorHeight(s32 chan, f32 sensorHeight) {
KPADInside* kpad;
f32 halfHeightSquared;
f32 halfHeight;
f32 barOffsetX;
f32 barDiagonal;
f32 halfWidthSquared;
f32 halfWidth;
f32 negativeSensorHeight;
f32 zero;
f32 barDiagonalSquared;
f32 halfHeightSquared;
halfWidth = 1.0f;
kpad = chan + inside_kpads;
kpad = &inside_kpads[chan];
halfHeight = 0.75f;
negativeSensorHeight = -sensorHeight;
halfWidthSquared = halfWidth * halfWidth;
halfHeightSquared = halfHeight * halfHeight;
zero = 0.0f;
kpad->sensorBarCenter.x = zero;
kpad->sensorBarCenter.x = 0.0f;
kpad->sensorBarCenter.y = negativeSensorHeight;
barDiagonal = (f32)sqrt(halfWidthSquared + halfHeightSquared);
barDiagonalSquared = halfWidthSquared + halfHeightSquared;
barDiagonal = (f32)sqrt(barDiagonalSquared);
barOffsetX = kpad->sensorBarCenter.x;
if (barOffsetX < 0.0f) {
halfWidth += barOffsetX;
@@ -468,24 +465,29 @@ static void calc_button_repeat(KPADInside* kpad, u8 extension, s32 elapsed) {
}
static void calc_acc_horizon(KPADInside* kpad) {
f32 magnitude;
f32 magnitude = (f32)sqrt(kpad->acceleration.x * kpad->acceleration.x + kpad->acceleration.y * kpad->acceleration.y);
f32 normalizedX;
f32 normalizedY;
f32 targetY;
f32 targetX;
f32 productX;
f32 oldX;
f32 oldY;
f32 blend;
f32 projectedX;
f32 smoothing;
f32 deltaX;
f32 nextX;
f32 nextY;
f32 normalized;
f32 oldCircleY;
f32 circleX;
f32 oldCircleX;
f32 unitY;
f32 unitX;
f32 oldCircleX;
f32 oldCircleY;
f32 unitY;
f32 circleX;
f32 deltaCircleX;
f32 circleY;
f32 deltaCircleY;
magnitude = (f32)sqrt(kpad->acceleration.x * kpad->acceleration.x + kpad->acceleration.y * kpad->acceleration.y);
if (magnitude == 0.0f || magnitude >= 2.0f) {
return;
}
@@ -495,12 +497,17 @@ static void calc_acc_horizon(KPADInside* kpad) {
if (magnitude > 1.0f) {
magnitude = 2.0f - magnitude;
}
targetY = kpad->accelNormal.y;
targetX = kpad->accelNormal.x;
productX = targetX * normalizedX;
oldX = kpad->horizonAxis.x;
oldY = kpad->horizonAxis.y;
blend = magnitude * kp_acc_horizon_pw;
projectedX = kpad->accelNormal.x * normalizedX + kpad->accelNormal.y * normalizedY;
magnitude *= blend;
deltaX = magnitude * (projectedX - kpad->horizonAxis.x);
nextX = kpad->horizonAxis.x + deltaX;
nextY = kpad->horizonAxis.y + magnitude * (((kpad->accelNormal.y * normalizedX) - (kpad->accelNormal.x * normalizedY)) - kpad->horizonAxis.y);
projectedX = productX + targetY * normalizedY;
smoothing = magnitude * blend;
deltaX = smoothing * (projectedX - oldX);
nextX = oldX + deltaX;
nextY = oldY + smoothing * (((targetY * normalizedX) - (targetX * normalizedY)) - oldY);
normalized = (f32)sqrt(nextX * nextX + nextY * nextY);
if (normalized != 0.0f) {
unitX = nextX / normalized;
@@ -571,14 +578,8 @@ static inline f32 clamp_acc_value(f32 value, f32 limit) {
}
static inline void smooth_acc_value(KPADInside* kpad, f32 value, f32* result) {
f32 amount;
f32 delta;
delta = value - *result;
if (delta < 0.0f) {
amount = -delta;
} else {
amount = delta;
}
f32 delta = value - *result;
f32 amount = delta < 0.0f ? -delta : delta;
if (amount >= kpad->value9C) {
amount = 1.0f;
} else {
@@ -618,16 +619,12 @@ static void read_kpad_acc(KPADInside* kpad, KPADSample* status) {
kpad->status.acc_speed = (f32)sqrt(previous.z * previous.z + (previous.x * previous.x + previous.y * previous.y));
calc_acc_horizon(kpad);
calc_acc_vertical(kpad);
if (status->error == 0 && status->device == 1) {
if (status->dataFormat == 4) {
goto read_extension_acceleration;
}
if (status->dataFormat == 5) {
goto read_extension_acceleration;
}
if (status->error != 0 || status->device != 1) {
return;
}
if (status->dataFormat != 4 && status->dataFormat != 5) {
return;
}
return;
read_extension_acceleration:
{
Vec extensionPrevious;
raw.x = clamp_acc_value((f32)-(s32)status->extension.fs.accX * kpad->value4E8, kp_fs_acc_max);
@@ -791,18 +788,24 @@ nextObject:
static s8 select_1obj_first(KPADInside* kpad) {
KPADDPDObject* object = kpad->dpdState.objects;
f32 offsetX = kpad->horizonTangent.x * kpad->horizonAxis.x + kpad->horizonTangent.y * kpad->horizonAxis.y;
f32 offsetY = kpad->horizonTangent.y * kpad->horizonAxis.x - kpad->horizonTangent.x * kpad->horizonAxis.y;
offsetX *= kpad->dpdObjectScale;
offsetY *= kpad->dpdObjectScale;
KPADDPDObject* end = kpad->dpdState.candidates;
f32 scale = kpad->dpdObjectScale;
f32 productX = kpad->horizonTangent.x * kpad->horizonAxis.x;
f32 productY = kpad->horizonTangent.y * kpad->horizonAxis.x;
f32 offsetX = productX + kpad->horizonTangent.y * kpad->horizonAxis.y;
f32 offsetY = productY - kpad->horizonTangent.x * kpad->horizonAxis.y;
offsetX *= scale;
offsetY *= scale;
do {
if ((s8)object->metadata.bytes.flags == 0) {
f32 x = object->x;
f32 y = object->y;
Vec2 leftPosition;
Vec2 rightPosition;
leftPosition.x = object->x - offsetX;
leftPosition.y = object->y - offsetY;
rightPosition.x = object->x + offsetX;
rightPosition.y = object->y + offsetY;
leftPosition.x = x - offsetX;
leftPosition.y = y - offsetY;
rightPosition.x = x + offsetX;
rightPosition.y = y + offsetY;
if (leftPosition.x <= kpad->value4F4 || leftPosition.x >= kpad->value4FC || leftPosition.y <= kpad->value4F8 || leftPosition.y >= kpad->value500) {
if (rightPosition.x > kpad->value4F4 && rightPosition.x < kpad->value4FC && rightPosition.y > kpad->value4F8 && rightPosition.y < kpad->value500) {
kpad->dpdState.candidates[1] = *object;
@@ -819,7 +822,7 @@ static s8 select_1obj_first(KPADInside* kpad) {
return -1;
}
}
} while (++object < kpad->dpdState.candidates);
} while (++object < end);
return 0;
}
@@ -949,20 +952,15 @@ static void calc_dpd_variable(KPADInside* kpad, s8 valid) {
f32 dx;
f32 next;
dx = value - kpad->status.dist;
if (dx < 0.0f) {
magnitude = -dx;
} else {
magnitude = dx;
}
magnitude = dx < 0.0f ? -dx : dx;
if (magnitude >= kpad->value94) {
magnitude = 1.0f;
} else {
magnitude /= kpad->value94;
magnitude = magnitude / kpad->value94;
magnitude *= magnitude;
magnitude *= magnitude;
}
magnitude *= kpad->value98;
next = magnitude * dx;
next = magnitude * kpad->value98 * dx;
kpad->status.dist_vec = next;
if (next < 0.0f) {
kpad->status.dist_speed = -next;
@@ -973,15 +971,12 @@ static void calc_dpd_variable(KPADInside* kpad, s8 valid) {
}
}
{
f32 midpointFactor = 0.5f;
f32 scaleX = midpointFactor * (kpad->dpdState.candidates[0].x + kpad->dpdState.candidates[1].x);
f32 scaleY = midpointFactor * (kpad->dpdState.candidates[0].y + kpad->dpdState.candidates[1].y);
f32 rotatedX = kpad->dpdObjectDirection.x * kpad->horizonTangent.x + kpad->dpdObjectDirection.y * kpad->horizonTangent.y;
f32 rotatedX = kpad->horizonTangent.x * kpad->dpdObjectDirection.x + kpad->horizonTangent.y * kpad->dpdObjectDirection.y;
f32 rotatedY = -kpad->dpdObjectDirection.y * kpad->horizonTangent.x + kpad->dpdObjectDirection.x * kpad->horizonTangent.y;
f32 transformedX = rotatedX * scaleX - rotatedY * scaleY;
f32 transformedY = rotatedY * scaleX + rotatedX * scaleY;
delta.x = kpad->sensorBarScale * (kpad->sensorBarCenter.x - transformedX);
delta.y = kpad->sensorBarScale * (kpad->sensorBarCenter.y - transformedY);
f32 scaleX = 0.5f * (kpad->dpdState.candidates[0].x + kpad->dpdState.candidates[1].x);
f32 scaleY = 0.5f * (kpad->dpdState.candidates[0].y + kpad->dpdState.candidates[1].y);
delta.x = kpad->sensorBarScale * (kpad->sensorBarCenter.x - (rotatedX * scaleX - rotatedY * scaleY));
delta.y = kpad->sensorBarScale * (kpad->sensorBarCenter.y - (rotatedY * scaleX + rotatedX * scaleY));
point.x = -kpad->accelNormal.y * delta.x + kpad->accelNormal.x * delta.y;
point.y = -kpad->accelNormal.x * delta.x - kpad->accelNormal.y * delta.y;
if (kpad->status.dpd_valid_fg == 0) {
@@ -1314,9 +1309,6 @@ static void read_kpad_stick(KPADInside* kpad, KPADSample* status) {
}
s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
u32 changed;
u16 heldButtons;
KPADStatus* output;
KPADInside* kpad = &inside_kpads[chan];
s32 probe;
BOOL interruptState;
@@ -1324,15 +1316,17 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
u32 ringCount;
s32 start;
s32 sampleIndex;
s32 remaining;
u32 remaining;
u32 remainingSamples;
u32 buttons;
u16 previousButtons;
u32 coreButtons;
u32 changed;
u32 extensionButtons;
u32 coreButtons;
u8 device;
KPADSample latestSample;
KPADSample* sample;
KPADStatus* output;
if (WPADGetStatus() != 3) {
return 0;
}
@@ -1366,19 +1360,19 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
if (available > count) {
available = count;
}
remaining = available;
kpad->ringCount = 0;
output = statuses + remaining;
start = kpad->ringIndex - available;
if (start < 0) {
start += 16;
}
--output;
{
KPADStatus* copyOutput;
sampleIndex = start;
remaining = available;
copyOutput = statuses + (available - 1);
while (--remaining != 0) {
output--;
*(KPADSample*)output = kpad->ringData[sampleIndex];
copyOutput--;
*(KPADSample*)copyOutput = kpad->ringData[sampleIndex];
sampleIndex++;
if (sampleIndex >= 16) {
sampleIndex = 0;
@@ -1391,7 +1385,7 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
WPADAccGravityUnit gravity = {1, 1, 1};
WPADAccGravityUnit extensionGravity = {1, 1, 1};
WPADGetAccGravityUnit(chan, WPAD_ACC_GRAVITY_UNIT_CORE, &gravity);
if (gravity.x * gravity.y * gravity.z != 0) {
if (gravity.z * gravity.x * gravity.y != 0) {
kpad->value4DC = 1.0f / gravity.x;
kpad->value4E0 = 1.0f / gravity.y;
kpad->value4E4 = 1.0f / gravity.z;
@@ -1401,7 +1395,7 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
kpad->value4E4 = 0.01f;
}
WPADGetAccGravityUnit(chan, WPAD_ACC_GRAVITY_UNIT_FS, &extensionGravity);
if (extensionGravity.x * extensionGravity.y * extensionGravity.z != 0) {
if (extensionGravity.z * extensionGravity.x * extensionGravity.y != 0) {
kpad->value4E8 = 1.0f / extensionGravity.x;
kpad->value4EC = 1.0f / extensionGravity.y;
kpad->value4F0 = 1.0f / extensionGravity.z;
@@ -1414,8 +1408,8 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
output = statuses + available;
--output;
device = 0xFD;
extensionButtons = 0xFFFF;
coreButtons = 0xFFFF;
extensionButtons = 0xFFFF;
buttons = 0xFFFF;
do {
output--;
@@ -1452,20 +1446,18 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
if (extensionButtons == 0xFFFF) {
extensionButtons = kpad->status.ex_status.cl.hold;
}
buttons = (buttons & 0x9FFF) | (coreButtons & 0x6000);
previousButtons = kpad->status.hold;
heldButtons = (buttons & 0x9FFF) | (coreButtons & 0x6000);
changed = heldButtons ^ previousButtons;
kpad->status.hold = heldButtons;
kpad->status.trig = changed & heldButtons;
changed = previousButtons ^ buttons;
kpad->status.hold = buttons;
kpad->status.trig = changed & buttons;
kpad->status.release = changed & previousButtons;
if (device == 2) {
u16 previousExtensionButtons;
previousExtensionButtons = kpad->status.ex_status.cl.hold;
extensionButtons = (u16)extensionButtons;
kpad->status.ex_status.cl.hold = extensionButtons;
changed = extensionButtons ^ previousExtensionButtons;
previousButtons = kpad->status.ex_status.cl.hold;
kpad->status.ex_status.cl.hold = (u16)extensionButtons;
changed = previousButtons ^ (u16)extensionButtons;
kpad->status.ex_status.cl.trig = changed & extensionButtons;
kpad->status.ex_status.cl.release = changed & previousExtensionButtons;
kpad->status.ex_status.cl.release = changed & previousButtons;
}
calc_button_repeat(kpad, device, ringCount);
remainingSamples = available;
@@ -1510,6 +1502,7 @@ void KPADInit(void) {
f32 zero;
f32 degreesToRadians;
f32 one;
f32* matrix;
u32 i;
s32 chan;
BOOL enabled;
@@ -1520,6 +1513,7 @@ void KPADInit(void) {
one = 1.0f;
zero = 0.0f;
degreesToRadians = 0.017453292f;
matrix = initial_rotation_matrix;
kpad = inside_kpads;
do {
kpad->dpdEnable = 1;
@@ -1547,9 +1541,9 @@ void KPADInit(void) {
}
referenceWidth = referenceWidth < referenceHeight ? referenceWidth : referenceHeight;
initial_rotation_matrix[0] = one;
initial_rotation_matrix[1] = zero;
initial_rotation_matrix[2] = zero;
initial_rotation_matrix[3] = zero;
matrix[1] = zero;
matrix[2] = zero;
matrix[3] = zero;
kpad->sensorBarScale = sensorDistance / referenceWidth;
kpad->value9C = zero;
kpad->value94 = zero;
@@ -1568,18 +1562,18 @@ void KPADInit(void) {
kpad->sensorHeightPending = 1;
kpad->sensorBarPosition = 1;
kpad->freeStyleAccelRotation = 0;
initial_rotation_matrix[4] = zero;
matrix[4] = zero;
rotationElement = (f32)cos(degreesToRadians * sensor_bar_angle_degrees);
initial_rotation_matrix[5] = rotationElement;
matrix[5] = rotationElement;
rotationElement = (f32)-sin(degreesToRadians * sensor_bar_angle_degrees);
initial_rotation_matrix[7] = zero;
initial_rotation_matrix[8] = zero;
initial_rotation_matrix[6] = rotationElement;
matrix[7] = zero;
matrix[8] = zero;
matrix[6] = rotationElement;
rotationElement = (f32)sin(degreesToRadians * sensor_bar_angle_degrees);
initial_rotation_matrix[9] = rotationElement;
matrix[9] = rotationElement;
rotationElement = (f32)cos(degreesToRadians * sensor_bar_angle_degrees);
initial_rotation_matrix[10] = rotationElement;
initial_rotation_matrix[11] = zero;
matrix[10] = rotationElement;
matrix[11] = zero;
{
i = 0;
do {

View File

@@ -580,7 +580,7 @@ void VIInit(void)
u16 displayConfig;
u32 __VIDVDStopFlag_Enable_old;
s32 format;
u16 value;
u32 value;
u32 tv;
u32 bootromTv;

View File

@@ -8,11 +8,13 @@ void CDBCryptBufSysInit(CDBCryptBuf* cryptBuf) {
cryptBuf->allocated = FALSE;
}
CDBErr CDBCryptBufAllocate(CDBCryptBuf** cryptBuf) {
// Some weird crap is going on with these functions.
CDBErr CDBCryptBufAllocate(CDBCryptBuf* cryptBuf) {
CDBErr err = CDB_ERROR_OK;
if (s_cryptBuf->allocated == FALSE) {
*cryptBuf = &s_cryptBuf[err];
cryptBuf->buffer32[0] = (u32)&s_cryptBuf[err];
s_cryptBuf[err].allocated = TRUE;
return CDB_ERROR_OK;
} else {
@@ -21,12 +23,12 @@ CDBErr CDBCryptBufAllocate(CDBCryptBuf** cryptBuf) {
}
}
CDBErr CDBCryptBufFree(CDBCryptBuf** cryptBuf) {
CDBErr CDBCryptBufFree(CDBCryptBuf* cryptBuf) {
CDBErr err = CDB_ERROR_OK;
if (*cryptBuf == s_cryptBuf) {
if ((CDBCryptBuf*)*cryptBuf->buffer32 == s_cryptBuf) {
s_cryptBuf[err].allocated = FALSE;
*cryptBuf = NULL;
*cryptBuf->buffer32 = 0;
return CDB_ERROR_OK;
} else {
CDBReportError("failed to free crypt buffer\n");

View File

@@ -393,67 +393,6 @@ CDBErr CDBRecordGetDataSize(CDBRecord* record, u32* size) {
return err;
}
CDBErr CDBRecordReduceFileSize(CDBRecord* record, u32 newFileSize) {
CDBRecordFile* recordFile;
CDBErr err;
u32 fileSize;
recordFile = record->file;
if (recordFile == NULL) {
CDBReportError("can't reduce file size of the record ; the record is closed\n");
return CDB_ERROR_27;
}
if ((recordFile->allocFlag & 2) == 0) {
CDBReportError("can't reduce file size of the record ; the record is opened as READONLY\n");
return CDB_ERROR_27;
}
CDBAttrGetFileSize(&recordFile->attr, &fileSize);
if (newFileSize > fileSize) {
CDBReportError("can't reduce file size of the record ; file size must be over %d bytes\n", fileSize);
return CDB_ERROR_26;
}
CDBAttrSetFileSize(&recordFile->attr, newFileSize);
recordFile->attr.dirty = TRUE;
err = CDBRecordFileWriteAttrBuf(record);
if (err != CDB_ERROR_OK) {
return err;
}
return CDB_ERROR_OK;
}
CDBErr CDBRecordReduceDataSize(CDBRecord* record, u32 newDataSize) {
CDBRecordFile* recordFile;
CDBErr err = CDB_ERROR_OK;
u32 dataSize;
recordFile = record->file;
if (recordFile == NULL) {
CDBReportError("can't reduce data size of the record ; the record is closed\n");
return CDB_ERROR_27;
}
if ((recordFile->allocFlag & 2) == 0) {
CDBReportError("can't reduce data size of the record ; the record is opened as READONLY\n");
return CDB_ERROR_27;
}
if (!CDBRecordBelongedDBOpenedAsRW(record)) {
CDBReportError("can't reduce data size of the record; permission denied\n");
return CDB_ERROR_ACCESS_DENIED;
}
err = CDBRecordFileGetDataSize(record, &dataSize);
if (err != CDB_ERROR_OK) {
return err;
}
if (newDataSize < dataSize) {
CDBAttrSetFileSize(&recordFile->attr, newDataSize);
recordFile->attr.dirty = TRUE;
}
err = CDBRecordFileWriteAttrBuf(record);
if (err != CDB_ERROR_OK) {
return err;
}
return CDB_ERROR_OK;
}
CDBErr CDBRecordRemove(CDBRecord* record) {
CDBErr err;
CDBLock();
@@ -491,50 +430,6 @@ void CDBRecordGetTypeForce(CDBRecord* record, char* type) {
CDBUnlock();
}
CDBErr CDBRecordSetFileType(CDBRecord* record, const char* fileType) {
CDBRecordDatabaseState* instance;
CDBRecordFile* recordFile;
CDBErr err;
instance = ((CDBDatabase*)record->database)->instance;
recordFile = record->file;
if ((instance->openFlags & 2) == 0) {
CDBReportError("can't set file type of the record; the database is opened as READONLY\n");
return CDB_ERROR_26;
}
if (recordFile == NULL) {
CDBReportError("can't set file type of the record ; the record is closed\n");
return CDB_ERROR_27;
}
if ((recordFile->allocFlag & 2) == 0) {
CDBReportError("can't set file type of the record ; the record is opened as READONLY\n");
return CDB_ERROR_27;
}
if (record->key.location != CDB_FS_LOCATION_NAND) {
CDBReportError("can't set file type of the record ; the record must exsist on NAND\n");
return CDB_ERROR_26;
}
CDBLock();
strcpy(CDBKeyStrType(record->key.keyString), fileType);
CDBAttrSetKeyStr(&recordFile->attr, &record->key);
err = CDBRecordFileWriteAttrBuf(record);
CDBUnlock();
return err;
}
CDBErr CDBRecordGetFileType(CDBRecord* record, char* fileType) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get file type of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToType(record->key.keyString, fileType);
}
CDBUnlock();
return err;
}
void CDBRecordGetGameCodeForce(CDBRecord* record, char* gameCode) {
u32 value;
CDBLock();
@@ -543,122 +438,12 @@ void CDBRecordGetGameCodeForce(CDBRecord* record, char* gameCode) {
CDBUnlock();
}
CDBErr CDBRecordGetGameCode(CDBRecord* record, u32* gameCode) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get game code of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToGameCode(record->key.keyString, gameCode);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetMakerCode(CDBRecord* record, u32* makerCode) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get maker code of the record ; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToMakerCode(record->key.keyString, makerCode);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetModifiedTime(CDBRecord* record, u32* modifiedTime) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get modified time of the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
*modifiedTime = ((CDBRecordFile*)record->file)->attr.buf.lastModifiedDate;
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetModifiedCount(CDBRecord* record, u32* modifiedCount) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get modified count of the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBAttrGetModifiedCount(&((CDBRecordFile*)record->file)->attr, modifiedCount);
}
CDBUnlock();
return err;
}
void CDBRecordGetKeyForce(CDBRecord* record, CDBRecordKey* key) {
CDBLock();
CDBRecordKeyCopy(key, &record->key);
CDBUnlock();
}
CDBErr CDBRecordSetName(CDBRecord* record, const char* name, const char* keyword) {
CDBRecordDatabaseState* instance;
CDBRecordFile* recordFile;
CDBErr err;
instance = ((CDBDatabase*)record->database)->instance;
recordFile = record->file;
if ((instance->openFlags & 2) == 0) {
CDBReportError("can't set a name of the record; the database is opened as READONLY\n");
return CDB_ERROR_26;
}
if (!CDBRecordBelongedDBOpenedAsRW(record)) {
CDBReportError("can't add keyword to the record; permission denied\n");
return CDB_ERROR_ACCESS_DENIED;
}
if (recordFile == NULL) {
CDBReportError("can't set a name of the record; the record is closed\n");
return CDB_ERROR_27;
}
if ((recordFile->allocFlag & 2) == 0) {
CDBReportError("can't set a name of the record; the record is opened as READONLY\n");
return CDB_ERROR_27;
}
CDBLock();
strncpy(recordFile->attr.buf.desc, name, CDB_ATTR_BUF_MAX_DESC_LEN);
recordFile->attr.buf.descLength = strlen(name);
recordFile->attr.dirty = TRUE;
err = CDBRecordFileWriteAttrBuf(record);
CDBUnlock();
return err;
}
CDBErr CDBRecordGetKeyword(CDBRecord* record, char* keyword) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get keyword from the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
strcpy(keyword, ((CDBRecordFile*)record->file)->attr.buf.desc);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetKey(CDBRecord* record, CDBRecordKey* key) {
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get key from the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBRecordKeyCopy(key, &record->key);
}
CDBUnlock();
return err;
}
void CDBRecordGetCalendarTimeForce(CDBRecord* record, int* year, int* month, int* day, int* hour, int* min, int* sec) {
char epochString[64];
CDBDate epoch;
@@ -669,23 +454,6 @@ void CDBRecordGetCalendarTimeForce(CDBRecord* record, int* year, int* month, int
CDBUnlock();
}
CDBErr CDBRecordGetCalendarTime(CDBRecord* record, int* year, int* month, int* day, int* hour, int* min, int* sec) {
char epochString[64];
CDBDate epoch;
CDBErr err = CDB_ERROR_OK;
CDBLock();
if (record->file == NULL) {
CDBReportError("can't get calender time from the record; the record is closed\n");
err = CDB_ERROR_27;
} else {
CDBConvKeyStrToEpochStr(record->key.keyString, epochString);
CDBConvEpochStrToEpochValue(epochString, &epoch);
CDBConvEpochValueToDate(epoch, year, month, day, hour, min, sec);
}
CDBUnlock();
return err;
}
CDBErr CDBRecordGetId(CDBRecord* record, CDBId* id) {
CDBErr err = CDB_ERROR_OK;
CDBRecordFile* recordFile;
@@ -764,27 +532,6 @@ CDBErr CDBRecordUpdateModifiedDate(CDBRecord* record) {
return CDB_ERROR_OK;
}
CDBErr CDBRecordDuplicate(CDBRecord* record, CDBRecord* newRecord) {
CDBRecordFile* recordFile;
CDBErr err;
if (record->key.location != CDB_FS_LOCATION_NAND && record->key.location != CDB_FS_LOCATION_SD) {
OSPanic(__FILE__, __LINE__, "CDBRecordDuplicate invalud location\n");
return CDB_ERROR_1;
}
recordFile = record->file;
if (recordFile == NULL) {
return CDB_ERROR_27;
}
CDBLock();
CDBRecordKeyCopy(&newRecord->key, &record->key);
newRecord->file = NULL;
newRecord->database = record->database;
err = CDBRecordFileCreateBlank(newRecord);
CDBUnlock();
return err;
}
CDBErr CDBRecordBackupToSD(CDBRecord* record) {
CDBErr err;
CDBLock();
@@ -948,7 +695,8 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32
}
{
CDBErr result;
CDBRecordFile* tempFile = record->file;
CDBRecordFile* tempFile;
tempFile = record->file;
if ((s32)tempFile == 0) {
result = CDB_ERROR_27;
} else if (tempFile->allocFlag == 1) {
@@ -1077,7 +825,7 @@ CDBErr CDBRecordEncrypt(CDBRecord* record, void* buffer, CDBRecordKey* key, u32
CDBErr CDBRecordDecrypt(CDBRecord* record, void* buffer, u32 size, u32* dataSize, CDBRecordKey* key) {
CDBErr status;
s32 fileOffset;
int fileOffset;
CDBRecordFile* recordFile;
u32 fileDataSize;
u32 fileSize;
@@ -1212,32 +960,3 @@ CDBErr CDBRecordDecrypt(CDBRecord* record, void* buffer, u32 size, u32* dataSize
}
return CDB_ERROR_OK;
}
CDBErr CDBRecordPrivateChangeOwner(CDBRecord* record, u64 newWiiId) {
CDBRecordFile* recordFile;
char fullPath[256];
char newPath[256];
CDBErr err;
u64 preWiiId;
u64 recordWiiId;
CDBReportError("CDBRecordPrivateChangeOwner\n");
recordFile = record->file;
if (recordFile == NULL) {
return CDB_ERROR_27;
}
preWiiId = CDBGetWiiId();
recordWiiId = record->key.wiiId;
OSReport(" i_pre-wiiid = %lX\n", preWiiId);
OSReport(" record-wiiid = %lX\n", recordWiiId);
CDBConvKeyToFullPath(&record->key, fullPath);
record->key.wiiId = newWiiId;
CDBConvKeyToFullPath(&record->key, newPath);
OSReport("path =%s\n", fullPath);
OSReport("path2=%s\n", newPath);
CDBLock();
err = CDBAttrSetWiiId(&recordFile->attr, newWiiId);
CDBUnlock();
return err;
}

View File

@@ -169,11 +169,11 @@ static const u32 AESiDecryptTable[] = {
};
#define ROTATE(x,n) (((x) << (n)) | ((x) >> (32 - (n))))
#define ENCRYPT(a,b,c,d) (((ROTATE(AESiEncryptTable[((b)>>16)&255],16) ^ ROTATE(AESiEncryptTable[(a)>>24],24)) ^ AESiEncryptTable[(d)&255]) ^ ROTATE(AESiEncryptTable[((c)>>8)&255],8))
#define DECRYPT(a,b,c,d) (((ROTATE(AESiDecryptTable[((b)>>16)&255],16) ^ AESiDecryptTable[(d)&255]) ^ ROTATE(AESiDecryptTable[(a)>>24],24)) ^ ROTATE(AESiDecryptTable[((c)>>8)&255],8))
#define SUBSTITUTE(table,a,b,c,d) ((((u32)table[(a)>>24]<<24) | table[(d)&255]) | (((u32)table[((b)>>16)&255]<<16) | ((u32)table[((c)>>8)&255]<<8)))
#define ENCRYPT(a,b,c,d) (ROTATE(AESiEncryptTable[(a)>>24],24) ^ ROTATE(AESiEncryptTable[((b)>>16)&255],16) ^ ROTATE(AESiEncryptTable[((c)>>8)&255],8) ^ AESiEncryptTable[(d)&255])
#define DECRYPT(a,b,c,d) (ROTATE(AESiDecryptTable[(a)>>24],24) ^ ROTATE(AESiDecryptTable[((b)>>16)&255],16) ^ ROTATE(AESiDecryptTable[((c)>>8)&255],8) ^ AESiDecryptTable[(d)&255])
#define SUBSTITUTE(table,a,b,c,d) (((u32)table[(a)>>24]<<24) | ((u32)table[((b)>>16)&255]<<16) | ((u32)table[((c)>>8)&255]<<8) | table[(d)&255])
#define DECRYPT_FINAL(table,a,b,c,d,key) ((table[(d)&255] ^ ((u32)table[((c)>>8)&255]<<8)) ^ (((u32)table[((b)>>16)&255]<<16) ^ ((key) ^ ((u32)table[(a)>>24]<<24))))
#define SUBSTITUTE_XOR(table,a,b,c,d) (((u32)table[(a)>>24]<<24) ^ ((u32)table[((b)>>16)&255]<<16) ^ ((u32)table[((c)>>8)&255]<<8) ^ table[(d)&255])
void AESiEncryptBlock(AESContext* context, u32* output, const u32* input) {
u32 rounds = context->rounds;
@@ -197,25 +197,22 @@ void AESiEncryptBlock(AESContext* context, u32* output, const u32* input) {
void AESiDecryptBlock(AESContext* context, u32* output, const u32* input) {
u32 rounds=context->rounds;
u32* key=context->keys;
u32 b;
u32 a;
u32 c;
u32 d;
key += rounds*4;
u32* key=context->keys + rounds*4;
u32 a,b,c,d;
if (context->needsTransform) {
u32 round;
for (round=1; round<context->rounds; ++round) {
u32 word;
u32* keys=context->keys + round*4;
for (word=0; word<4; ++word) {
u32 value=context->keys[round*4 + word];
u32 value=keys[word];
u32 twice=DOUBLE_BYTES(value);
u32 four=DOUBLE_BYTES(twice);
u32 eight=DOUBLE_BYTES(four)^value;
u32 mixed=(ROTATE(eight,8) ^ (eight ^ four));
mixed=(ROTATE(mixed,8) ^ (mixed ^ twice));
mixed=(ROTATE(mixed,8) ^ (mixed ^ value));
context->keys[round*4 + word]=mixed;
u32 mixed=eight ^ (four ^ ROTATE(eight,8));
mixed ^= twice ^ ROTATE(mixed,8);
mixed ^= value ^ ROTATE(mixed,8);
keys[word]=mixed;
}
}
context->needsTransform=0;
@@ -230,10 +227,10 @@ void AESiDecryptBlock(AESContext* context, u32* output, const u32* input) {
a=nextA^key[0]; b=nextB^key[1]; c=nextC^key[2]; d=nextD^key[3];
key-=4;
}
output[0]=DECRYPT_FINAL(AESiInvSubShiftTable,a,d,c,b,key[0]);
output[1]=DECRYPT_FINAL(AESiInvSubShiftTable,b,a,d,c,key[1]);
output[2]=DECRYPT_FINAL(AESiInvSubShiftTable,c,b,a,d,key[2]);
output[3]=DECRYPT_FINAL(AESiInvSubShiftTable,d,c,b,a,key[3]);
output[0]=SUBSTITUTE_XOR(AESiInvSubShiftTable,a,d,c,b)^key[0];
output[1]=SUBSTITUTE_XOR(AESiInvSubShiftTable,b,a,d,c)^key[1];
output[2]=SUBSTITUTE_XOR(AESiInvSubShiftTable,c,b,a,d)^key[2];
output[3]=SUBSTITUTE_XOR(AESiInvSubShiftTable,d,c,b,a)^key[3];
}
BOOL NETAESCreateEx(AESContext* context, const void* key, u32 keyLength, const void* iv, const AESBlockMode* mode) {

View File

@@ -68,43 +68,28 @@ void NETMD5GetDigest(NETMD5Context* context, void* digest) {
memset(context, 0, sizeof(*context));
}
static inline u32 rotateSum(u32 state, const u32* word, u32 constant, int shift) {
// Each rotation half reads its own byte-reversed message word.
u32 right = __lwbrx((void*)word, 0);
u32 left = __lwbrx((void*)word, 0);
return ((state + (constant + left)) << shift) | ((constant + (state + right)) >> (32 - shift));
}
static inline u32 rotateNextSum(u32 state, u32** cursor, u32 constant, int shift) {
const u32* word = *cursor;
u32 right = __lwbrx((void*)word, 0);
u32 left = __lwbrx((void*)word, 0);
++*cursor;
return ((state + (constant + left)) << shift) | ((constant + (state + right)) >> (32 - shift));
}
#define STEP_NEXT(a, b, c, d, f, word, n) ((a) = (b) + rotateNextSum((a) + (f), &(word), *constant, n))
#define STEP(a, b, c, d, f, word, n) ((a) = (b) + rotateSum((a) + (f), word, *constant, n))
#define ROTATE(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
#define STEP(a, b, c, d, f, word, n) ((a) += (f), (a) = (b) + ROTATE(__lwbrx(0, (int)(word)) + (*constant + (a)), n))
static void ProcessBlock(NETMD5Context* context) {
static u32 constants[64] = {0xD76AA478, 0xE8C7B756, 0x242070DB, 0xC1BDCEEE, 0xF57C0FAF, 0x4787C62A, 0xA8304613, 0xFD469501, 0x698098D8, 0x8B44F7AF, 0xFFFF5BB1, 0x895CD7BE, 0x6B901122, 0xFD987193, 0xA679438E, 0x49B40821, 0xF61E2562, 0xC040B340, 0x265E5A51, 0xE9B6C7AA, 0xD62F105D, 0x02441453, 0xD8A1E681, 0xE7D3FBC8, 0x21E1CDE6, 0xC33707D6, 0xF4D50D87, 0x455A14ED, 0xA9E3E905, 0xFCEFA3F8, 0x676F02D9, 0x8D2A4C8A, 0xFFFA3942, 0x8771F681, 0x6D9D6122, 0xFDE5380C, 0xA4BEEA44, 0x4BDECFA9, 0xF6BB4B60, 0xBEBFBC70, 0x289B7EC6, 0xEAA127FA, 0xD4EF3085, 0x04881D05, 0xD9D4D039, 0xE6DB99E5, 0x1FA27CF8, 0xC4AC5665, 0xF4292244, 0x432AFF97, 0xAB9423A7, 0xFC93A039, 0x655B59C3, 0x8F0CCC92, 0xFFEFF47D, 0x85845DD1, 0x6FA87E4F, 0xFE2CE6E0, 0xA3014314, 0x4E0811A1, 0xF7537E82, 0xBD3AF235, 0x2AD7D2BB, 0xEB86D391};
static u32 indices[48] = {0x00000001, 0x00000006, 0x0000000B, 0x00000000, 0x00000005, 0x0000000A, 0x0000000F, 0x00000004, 0x00000009, 0x0000000E, 0x00000003, 0x00000008, 0x0000000D, 0x00000002, 0x00000007, 0x0000000C, 0x00000005, 0x00000008, 0x0000000B, 0x0000000E, 0x00000001, 0x00000004, 0x00000007, 0x0000000A, 0x0000000D, 0x00000000, 0x00000003, 0x00000006, 0x00000009, 0x0000000C, 0x0000000F, 0x00000002, 0x00000000, 0x00000007, 0x0000000E, 0x00000005, 0x0000000C, 0x00000003, 0x0000000A, 0x00000001, 0x00000008, 0x0000000F, 0x00000006, 0x0000000D, 0x00000004, 0x0000000B, 0x00000002, 0x00000009};
u32 a = context->a, b = context->b, c = context->c, d = context->d;
u32* index;
u32* block;
u32* constant;
int round;
u32* word;
u32* constant;
u32* index;
int round;
u32* block;
block = context->buffer32;
word = block;
constant = constants;
for (round = 0; round < 4; ++round) {
STEP_NEXT(a,b,c,d,(b & c) | (~b & d),word,7); ++constant;
STEP_NEXT(d,a,b,c,(a & b) | (~a & c),word,12); ++constant;
STEP_NEXT(c,d,a,b,(d & a) | (~d & b),word,17); ++constant;
STEP_NEXT(b,c,d,a,(c & d) | (~c & a),word,22); ++constant;
}
index = indices;
for (round = 0; round < 4; ++round) {
STEP(a,b,c,d,(b & c) | (~b & d),word,7); ++word; ++constant;
STEP(d,a,b,c,(a & b) | (~a & c),word,12); ++word; ++constant;
STEP(c,d,a,b,(d & a) | (~d & b),word,17); ++word; ++constant;
STEP(b,c,d,a,(c & d) | (~c & a),word,22); ++word; ++constant;
}
for (round = 0; round < 4; ++round) {
STEP(a,b,c,d,(b & d) | (c & ~d),block + *index,5); ++index; ++constant;
STEP(d,a,b,c,(a & c) | (b & ~c),block + *index,9); ++index; ++constant;

View File

@@ -7,7 +7,8 @@ s32 NHTTPi_strcmp(const char* left, const char* right) { return strcmp(left,righ
void* NHTTPi_memclr(void* destination, u32 size) { return memset(destination,0,size); }
static int LowerCase(int character) {
return ((character >= 'A') & (character <= 'Z')) ? character + 32 : character;
if((character>='A') & (character<='Z')) character+=32;
return character;
}
s32 NHTTPi_strnicmp(const char* left, const char* right, s32 length) {
@@ -126,13 +127,12 @@ s32 NHTTPi_intToStr(char* destination, u32 value) {
}
s32 NHTTPi_compareToken(const char* left, const char* right) {
u32 rawLeft;
while (LowerCase((s8)(rawLeft = *(const u8*)left)) == LowerCase((s8)*(const u8*)right)) {
if ((s8)rawLeft == 0 || (s8)rawLeft == ' ') {
return 0;
}
++left;
++right;
for (;;) {
int rightCharacter=LowerCase(*right);
int leftCharacter=LowerCase(*left);
if(leftCharacter!=rightCharacter) break;
if(*left==0 || *left==' ') return 0;
++left; ++right;
}
return -1;
}
@@ -158,24 +158,20 @@ s32 NHTTPi_strtonum(const char* string, u32 length) {
}
s32 NHTTPi_Base64Encode(char* destination, const char* source) {
const char* table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
char* output = destination;
s32 length = strlen(source);
s32 consumed = 0;
for (; consumed < length; consumed += 3) {
output[0] = table[source[0] >> 2];
output[1] = table[((source[0] & 3) << 4) + (source[1] >> 4)];
output[2] = table[((source[1] & 15) << 2) + (source[2] >> 6)];
output[3] = table[source[2] & 63];
source += 3;
output += 4;
static char alphabet[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const char* table=alphabet;
char* output=destination;
u32 length=strlen(source);
s32 consumed=0;
for(; consumed<(s32)length; consumed+=3) {
output[0]=table[source[0]>>2];
output[1]=table[((source[0]&3)<<4)+(source[1]>>4)];
output[2]=table[((source[1]&15)<<2)+(source[2]>>6)];
output[3]=table[source[2]&63];
source+=3; output+=4;
}
if (consumed == length + 1) output[-1] = '=';
else if (consumed == length + 2) {
output[-2] = '=';
output[-1] = '=';
}
*output = 0;
if(consumed==length+1) output[-1]='=';
else if(consumed==length+2) { output[-2]='='; output[-1]='='; }
*output=0;
return strlen(destination);
}

View File

@@ -7,9 +7,8 @@ s32 ConvertDateToDays(u16 year, u8 month, u8 day);
void ConvertDaysToDate(u16* year, u8* month, u8* day, s32 days);
static inline BOOL IsLeapYear(u16 year) {
s32 calendarYear = year;
BOOL leap = FALSE;
if ((calendarYear % 4 == 0 && calendarYear % 100 != 0) || calendarYear % 400 == 0)
if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
leap = TRUE;
return leap;
}
@@ -153,7 +152,7 @@ NWC24Err NWC24iIsValidDate(u16 year, u8 month, u8 day) {
s32 ConvertDateToDays(u16 year, u8 month, u8 day) {
s32 daysOfYear;
s32 yearOffset;
s32 totalDays;
s32 centuryLeapDays;
s32 commonLeapDays;
BOOL isLeapYear;
@@ -191,10 +190,11 @@ validDate:
}
yearOffset = year - 1900;
centuryLeapDays = (yearOffset + 299) / 400;
daysOfYear += yearOffset * 365;
totalDays = daysOfYear + (yearOffset + 299) / 400;
daysOfYear += centuryLeapDays;
commonLeapDays = (yearOffset - 1) / 4 - (yearOffset - 1) / 100;
return totalDays + commonLeapDays;
return daysOfYear + commonLeapDays;
}
void ConvertDaysToDate(u16* year, u8* month, u8* day, s32 days) {
@@ -231,7 +231,7 @@ void ConvertDaysToDate(u16* year, u8* month, u8* day, s32 days) {
const u8* parsedMonth = month;
previousDays = days;
currentMonth = *parsedMonth;
if (*parsedMonth == 2 && IsLeapYear(*year)) {
if (currentMonth == 2 && IsLeapYear(*year)) {
days -= 29;
} else {
days -= DAYS_OF_MONTH[currentMonth - 1];

View File

@@ -548,7 +548,7 @@ NWC24Err NWC24DumpDlTask(NWC24DlTask* dlTask) {
NWC24Err NWC24IterateDlTask(NWC24DlId* dlIterateId, BOOL begin) {
DlTaskListHeader* entriesHeader;
const NWC24Work* work;
NWC24Work* work;
u16 taskId;
u16 maxTaskCount;
DlTaskListHeader* header;
@@ -687,10 +687,10 @@ NWC24Err NWC24IterateDlTaskEx(NWC24DlIterateWork* dlIterateWork, NWC24DlId* dlIt
return NWC24_ERR_DONE;
}
static inline NWC24Err SetDlTaskAccessTime(const NWC24DlTask* dlTask, OSTime time) {
static inline NWC24Err SetDlTaskAccessTime(NWC24DlTask* dlTask, OSTime time) {
NWC24Work* work = NWC24WorkP;
DlTaskListHeader* header = work != NULL ? (DlTaskListHeader*)work->dlHead : NULL;
const DlTaskData* task = (const DlTaskData*)dlTask;
DlTaskData* task = (DlTaskData*)dlTask;
NWC24Err result;
u16 taskId;
if (task == NULL) { result = NWC24_ERR_INVALID_VALUE; }
@@ -706,39 +706,19 @@ static inline NWC24Err SetDlTaskAccessTime(const NWC24DlTask* dlTask, OSTime tim
return NWC24_OK;
}
static inline NWC24Err CheckDlTaskForRetry(const DlTaskData* task) {
DlTaskListHeader* header = NWC24WorkP == NULL ? NULL : (DlTaskListHeader*)NWC24WorkP->dlHead;
if (task == NULL) {
return NWC24_ERR_INVALID_VALUE;
}
if (header == NULL) {
return NWC24_ERR_LIB_NOT_OPENED;
}
if (task->id != 0xffff && task->id >= header->maxTaskCount) {
return NWC24_ERR_INVALID_VALUE;
}
static inline NWC24Err CheckDlTaskRetry(NWC24DlTask* dlTask, u8 retryCount) {
DlTaskData* task = (DlTaskData*)dlTask;
NWC24Err result = ValidateDlTask(dlTask, FALSE);
u32 retryMask;
if (result != NWC24_OK) { return result; }
if (task->retryEnabled == 0) { return NWC24_ERR_INVALID_OPERATION; }
retryMask = task->retryMask;
if (retryMask == 0) { return NWC24_ERR_FATAL; }
if (retryCount > 31) { return NWC24_ERR_INVALID_VALUE; }
if ((retryMask & (1 << retryCount)) == 0) { return NWC24_ERR_DISABLED; }
return NWC24_OK;
}
static inline NWC24Err CheckDlTaskRetry(const NWC24DlTask* dlTask, u8 retryCount) {
const DlTaskData* task = (const DlTaskData*)dlTask;
NWC24Err result;
result = CheckDlTaskForRetry(task);
if (result != NWC24_OK) {
return result;
}
if (task->retryEnabled == 0) {
return NWC24_ERR_INVALID_OPERATION;
}
if (task->retryMask == 0) {
return NWC24_ERR_FATAL;
}
if (retryCount > 31) {
return NWC24_ERR_INVALID_VALUE;
}
return ((1U << retryCount) & task->retryMask) == 0 ? NWC24_ERR_DISABLED : NWC24_OK;
}
static inline NWC24Err UpdateDlTaskAccessTime(const NWC24DlTask* dlTask) {
static inline NWC24Err UpdateDlTaskAccessTime(NWC24DlTask* dlTask) {
OSTime universalTime;
NWC24Err result = NWC24iGetUniversalTime(&universalTime);
if (result >= NWC24_OK) {
@@ -748,61 +728,24 @@ static inline NWC24Err UpdateDlTaskAccessTime(const NWC24DlTask* dlTask) {
return result;
}
static inline BOOL IsDlTaskWritableGroup(u32 groupId, u32 flags) {
BOOL allowed = FALSE;
if (flags & 0x40) {
if (groupId == NWC24GetGroupId()) {
allowed = TRUE;
}
}
return allowed;
}
static inline NWC24Err ValidateWritableDlTask(const NWC24DlTask* dlTask) {
const DlTaskData* task = (const DlTaskData*)dlTask;
DlTaskListHeader* header = GetCachedDlHeader();
if (task == NULL) {
return NWC24_ERR_INVALID_VALUE;
}
if (header == NULL) {
return NWC24_ERR_LIB_NOT_OPENED;
}
if (!NWC24IsMsgLibOpenedByTool() && !IsDlTaskOwner(task->appId)) {
BOOL allowed = IsDlTaskWritableGroup(task->groupId, task->flags);
if (!allowed) {
return NWC24_ERR_PROTECTED;
}
}
if (task->id != 0xffff && task->id >= header->maxTaskCount) {
return NWC24_ERR_INVALID_VALUE;
}
return NWC24_OK;
}
static inline NWC24Err ClearDlTaskError(NWC24DlTask* dlTask) {
DlTaskData* task = (DlTaskData*)dlTask;
NWC24Err result;
result = ValidateWritableDlTask(dlTask);
if (result != NWC24_OK) {
return result;
}
task->unknown_0x20 = 0;
task->unknown_0x1a = 0;
return NWC24_OK;
}
NWC24Err NWC24UpdateDlTask(NWC24DlTask* dlTask) {
DlTaskData* task = (DlTaskData*)dlTask;
DlTaskListHeader* header;
u16 taskId;
OSTime universalTime;
NWC24Err result;
result = ValidateWritableDlTask(dlTask);
result = ValidateDlTask(dlTask, TRUE);
if (result != NWC24_OK) { return result; }
taskId = task->id;
if (taskId == 0xffff || taskId >= GetCachedDlHeader()->maxTaskCount) { return NWC24_ERR_INVALID_VALUE; }
result = UpdateDlTaskAccessTime(dlTask);
if (result < NWC24_OK) { return result; }
ClearDlTaskError(dlTask);
result = ValidateDlTask(dlTask, TRUE);
if (result == NWC24_OK) {
task->unknown_0x20 = 0;
task->unknown_0x1a = 0;
}
if (task->retryEnabled == 1) {
while ((result = CheckDlTaskRetry(dlTask, task->retryCount)) == NWC24_ERR_DISABLED) {
task->retryCount = (task->retryCount + 1) & 0x1f;
@@ -1101,7 +1044,6 @@ closeList:
NWC24Err NWC24iCheckDlHeaderConsistency(DlTaskListHeader* header, BOOL repair) {
NWC24DlTask task;
NWC24DlTask* taskPointer = &task;
NWC24DlTask* readTask = &task;
NWC24DlId taskId;
NWC24Err result;
DlTaskListHeader* currentHeader;
@@ -1118,7 +1060,7 @@ NWC24Err NWC24iCheckDlHeaderConsistency(DlTaskListHeader* header, BOOL repair) {
if (currentHeader->entries[taskId].appId == 0) { result = NWC24_ERR_NOT_FOUND; }
}
if (result != NWC24_OK || !shouldRepair) { continue; }
result = ReadDlTaskInline(readTask, taskId);
result = ReadDlTaskInline(taskPointer, taskId);
if (result < NWC24_OK) {
if (ValidateDlTask(taskPointer, FALSE) == NWC24_OK) {
result = DeleteDlTask(taskPointer);
@@ -1285,44 +1227,32 @@ NWC24Err StoreDlTask(NWC24DlTask* dlTask) {
return closeResult;
}
static inline NWC24Err CheckDlUrl(const DlTaskData* task) {
const char* url = task->url;
static inline NWC24Err ValidateDlTaskUrl(NWC24DlTask* dlTask) {
DlTaskData* task = (DlTaskData*)dlTask;
DlTaskListHeader* header = GetCachedDlHeader();
NWC24Err result;
result = NWC24iCheckStringLength(url, 7, 0x100);
if (result < NWC24_OK) {
return result;
if (task->id >= header->maxTaskCount && task->id != 0xffff) { return NWC24_ERR_INVALID_VALUE; }
{
const char* url = task->url;
result = NWC24iCheckStringLength(url, 7, 0x100);
if (result >= NWC24_OK) {
if (strncmp(url, "http://", 7) != 0 && strncmp(url, "https://", 8) != 0) { result = NWC24_ERR_FORMAT; }
else { result = NWC24_OK; }
}
if (result < NWC24_OK) { return result; }
return NWC24_OK;
}
if (strncmp(url, "http://", 7) != 0 && strncmp(url, "https://", 8) != 0) {
return NWC24_ERR_FORMAT;
}
return NWC24_OK;
}
static inline DlTaskEntry* GetDlTaskEntryHeader(u16 taskId) {
return &GetCachedDlHeader()->entries[taskId];
}
static inline NWC24Err ValidateDlTaskUrl(const NWC24DlTask* dlTask) {
const DlTaskData* task = (const DlTaskData*)dlTask;
NWC24Err result;
if (task->id >= GetCachedDlHeader()->maxTaskCount && task->id != 0xffff) {
return NWC24_ERR_INVALID_VALUE;
}
result = CheckDlUrl(task);
if (result < NWC24_OK) {
return result;
}
return NWC24_OK;
}
static inline NWC24Err FindFreeDlTask(NWC24DlTask* dlTask, u32 taskCount, u32 maxTaskCount) {
static inline NWC24Err FindFreeDlTask(NWC24DlTask* dlTask, u16 taskCount, u16 maxTaskCount) {
DlTaskListHeader* header = GetCachedDlHeader();
NWC24DlId taskId;
if (dlTask == NULL || taskCount > maxTaskCount || taskCount >= header->maxTaskCount || maxTaskCount > header->maxTaskCount) {
return NWC24_ERR_INVALID_VALUE;
}
for (taskId = taskCount; taskId < maxTaskCount; taskId++) {
if (GetDlTaskEntryHeader(taskId)->appId == 0) {
header = GetCachedDlHeader();
if (header->entries[taskId].appId == 0) {
((DlTaskData*)dlTask)->id = taskId;
return NWC24_OK;
}
@@ -1330,10 +1260,24 @@ static inline NWC24Err FindFreeDlTask(NWC24DlTask* dlTask, u32 taskCount, u32 ma
return NWC24_ERR_FULL;
}
static inline NWC24Err RetryAndStoreDlTask(NWC24DlTask* dlTask) {
static inline NWC24Err UpdateDlTaskInline(NWC24DlTask* dlTask) {
DlTaskData* task = (DlTaskData*)dlTask;
DlTaskListHeader* header;
u16 taskId;
OSTime universalTime;
NWC24Err result;
result = ValidateDlTask(dlTask, TRUE);
if (result != NWC24_OK) { return result; }
taskId = task->id;
if (taskId == 0xffff || taskId >= GetCachedDlHeader()->maxTaskCount) { return NWC24_ERR_INVALID_VALUE; }
result = UpdateDlTaskAccessTime(dlTask);
if (result < NWC24_OK) { return result; }
result = ValidateDlTask(dlTask, TRUE);
if (result == NWC24_OK) {
task->unknown_0x20 = 0;
task->unknown_0x1a = 0;
}
if (task->retryEnabled == 1) {
while ((result = CheckDlTaskRetry(dlTask, task->retryCount)) == NWC24_ERR_DISABLED) {
task->retryCount = (task->retryCount + 1) & 0x1f;
@@ -1342,19 +1286,6 @@ static inline NWC24Err RetryAndStoreDlTask(NWC24DlTask* dlTask) {
}
return StoreDlTask(dlTask);
}
static inline NWC24Err UpdateDlTaskInline(NWC24DlTask* dlTask) {
DlTaskData* task = (DlTaskData*)dlTask;
NWC24Err result;
result = ValidateWritableDlTask(dlTask);
if (result != NWC24_OK) { return result; }
if (task->id == 0xffff || task->id >= GetCachedDlHeader()->maxTaskCount) { return NWC24_ERR_INVALID_VALUE; }
result = UpdateDlTaskAccessTime(dlTask);
if (result < NWC24_OK) { return result; }
ClearDlTaskError(dlTask);
return RetryAndStoreDlTask(dlTask);
}
NWC24Err AddTaskInternal(NWC24DlTask* dlTask, u16 taskCount, u16 maxTaskCount) {
DlTaskData* task = (DlTaskData*)dlTask;
NWC24Err result;

View File

@@ -73,28 +73,22 @@ NWC24Err NWC24ReadMsgSubjectPublic(const NWC24MsgObj* msg, u16* subject, u32* su
truncated = TRUE;
}
result = NWC24ReadMsgSubject(msg, (char*)work, subjectDataSize);
switch (result) {
case NWC24_OK:
break;
default:
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
break;
}
return result;
if (result != NWC24_OK) {
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
} else {
goto done;
}
}
charsetBuffer = NWC24WorkP->stringWork;
result =
NWC24DecodeMIMEHeaderFieldBody((u8*)charsetBuffer, 0x40, decodedData, decodedCapacity, &decodedSize, work, subjectDataSize);
switch (result) {
case NWC24_OK:
break;
default:
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
break;
}
return result;
if (result != NWC24_OK) {
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
} else {
goto done;
}
}
*subjectSize = originalSize;
result =
@@ -146,15 +140,11 @@ NWC24Err NWC24ReadMsgTextPublic(const NWC24MsgObj* msg, u16* text, u32* textSize
}
charsetBuffer = NWC24WorkP->stringWork + 0x20;
result = NWC24ReadMsgTextEx(msg, (char*)work, textDataSize, charsetBuffer, 0x40);
switch (result) {
case NWC24_OK:
break;
default:
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
break;
}
return result;
if (result != NWC24_OK) {
if (result != NWC24_ERR_OVERFLOW) {
goto done;
}
truncated = TRUE;
}
*textSize = originalSize;
@@ -243,12 +233,11 @@ NWC24Err NWC24SetMsgSubjectAndTextPublic(NWC24MsgObj* msg, const u16* subject, u
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
NWC24Work* nwcWork;
u32 textSourceSize;
u32 textCapacity;
u32 textWorkSize;
BOOL is7Bit;
NWC24Charset charset;
u8* subjectWork;
u32 subjectWorkSize;
u8* subjectWork;
NWC24Err result;
if (((privateMsg->type & 0x100) == 0) || ((privateMsg->type & 0x200) != 0)) {
@@ -284,8 +273,7 @@ NWC24Err NWC24SetMsgSubjectAndTextPublic(NWC24MsgObj* msg, const u16* subject, u
if (NWC24ParseCharsetStr(&charset, nwcWork->stringWork) != NWC24_OK) {
charset = 0;
}
textCapacity = (workSize * textSize) / (textSize + subjectSize * 4);
textWorkSize = textCapacity;
textWorkSize = (workSize * textSize) / (textSize + subjectSize * 4);
subjectWorkSize = workSize - textWorkSize;
subjectWork = work + textWorkSize;
textSourceSize = textSize;

View File

@@ -242,63 +242,14 @@ BOOL BS2IsDiagDisc() { return (u8)(*(u8 *)OSPhysicalToCached(OS_ADDR_BOOT_INFO)
extern vu32 BS2VideoMode;
extern vu32 __DVDLayoutFormat;
asm void Run(u32 entryPoint, void *start, u32 blockCount, u32 argument) {
// clang-format off
#ifdef __MWERKS__
nofralloc
mtctr r5
mtlr r3
li r0, 0
li r2, 0
li r3, 0
li r5, 0
li r7, 0
li r8, 0
li r9, 0
li r10, 0
li r11, 0
li r12, 0
li r13, 0
li r14, 0
li r15, 0
li r16, 0
li r17, 0
li r18, 0
li r19, 0
li r20, 0
li r21, 0
li r22, 0
li r23, 0
li r24, 0
li r25, 0
li r26, 0
li r27, 0
li r28, 0
li r29, 0
li r30, 0
li r31, 0
// The application stack is fixed; it is unrelated to the formatter.
lis r1, 0x8160
ori r1, r1, 0
li r6, 0
b Run_loop_entry
Run_loop:
dcbz r4, r0
dcbf r4, r0
addi r4, r4, 0x20
bdnz Run_loop
b Run_done
Run_done:
li r4, 0
blr
Run_loop_entry:
b Run_loop
#endif
// clang-format on
void Run(u32 entryPoint, void *start, u32 blockCount, u32 argument) {
u8 *block = start;
for (; blockCount != 0; --blockCount) {
__dcbz(block, 0);
__dcbf(block, 0);
block += 32;
}
((void (*)(u32))entryPoint)(argument);
}
BOOL BS2GetLockedTitles(ESTitleId *pTitleIds, u32 *count) {
@@ -488,7 +439,7 @@ BOOL BS2StartLoadingTitle(ESTitleId titleId, ESTicketView *pTicketView) {
return FALSE;
}
static void callback(u32 result) { LowReadResult = result; }
void callback(s32 result) { LowReadResult = result; }
ESError BS2ESGetTicketViews(IOSFd *descriptor, ESTitleId titleId, ESTicketView *views, u32 *count) {
struct {
@@ -725,7 +676,7 @@ void BS2StartGame() {
BS2Report("DVDLowInit done\n");
LowReadResult = 0;
DVDLowReadDiskID(&DiskID, callback);
DVDLowReadDiskID(&DiskID, (DVDLowCallback)callback);
while (LowReadResult == 0) {
}
@@ -739,7 +690,7 @@ void BS2StartGame() {
} else {
OSReport("\nDisk error(%d) has occurred", LowReadResult);
LowReadResult = 0;
DVDLowRequestError(callback);
DVDLowRequestError((DVDLowCallback)callback);
while (LowReadResult == 0) {
}
driveError = DVDLowGetImmBufferReg() & 0xFF000000;
@@ -769,10 +720,10 @@ disk_done:
if (PartitionParams.numTmdBytes != 0) {
DVDLowOpenPartitionWithTmdAndTicketView((u32)((DVDPartitionInfo *)GamePartition)->partition, &PartitionParams.ticketView,
PartitionParams.numTmdBytes, &PartitionParams.tmd, PartitionParams.numCertBytes,
PartitionParams.certificates, callback);
PartitionParams.certificates, (DVDLowCallback)callback);
} else {
DVDLowOpenPartition((u32)((DVDPartitionInfo *)GamePartition)->partition, NULL, 0, NULL, &PartitionParams.tmd,
callback);
(DVDLowCallback)callback);
}
while (LowReadResult == 0) {
}
@@ -790,7 +741,7 @@ disk_done:
} else {
OSReport("\nDisk error(%d) has occurred", LowReadResult);
LowReadResult = 0;
DVDLowRequestError(callback);
DVDLowRequestError((DVDLowCallback)callback);
while (LowReadResult == 0) {
}
driveError = DVDLowGetImmBufferReg() & 0xFF000000;
@@ -852,7 +803,7 @@ void BS2StartGCGame() {
OSTime time;
StartingGame = TRUE;
while (CoverBlock.state != DVD_STATE_IDLE) {
while (DVDGetCommandBlockStatus(&CoverBlock) != DVD_STATE_IDLE) {
}
soundMode = SCGetSoundMode();
@@ -1344,7 +1295,6 @@ BS2State BS2Tick() {
char *ticketByte;
u32 entryCount;
u32 readInterruptsEnabled;
u32 readAddress;
switch (State) {
case 0:
BS2Report("No Disk : %d\n", BS2NoDisk);
@@ -1358,10 +1308,9 @@ BS2State BS2Tick() {
(*(u32 *)0x800030d4) = 0;
DvdTransferred = 0;
DvdTransferLength = 0;
status = BS2NoDisk;
AudioBufferUnconfigured = 1;
CoverBlock.state = 0;
if (status != 0)
if (BS2NoDisk != 0)
State = BS2_STT_NO_DISK;
else if (BS2DriveReset != 0)
State = BS2_STT_2;
@@ -1847,24 +1796,21 @@ invalidRvlRegion:
State = BS2_STT_RESET_SYSTEM;
break;
}
if (GamePartition != 0) {
State = BS2_STT_37;
} else {
if (GamePartition == 0) {
State = BS2_STT_54;
break;
}
case 0x25: {
u32 partitionOffset = (u32)((DVDPartitionInfo *)GamePartition)->partition;
State = BS2_STT_37;
case 0x25:
if (BS2BootFromCache != 0) {
BS2Report("Open partition from cache.dat\n");
NandPending = 1;
BS2NANDDivideReadAsync(&BS2CacheFileInfo, &PartitionParams.tmd, 0x4a00, BS2NANDCallback, &BS2NandBlock);
} else
DVDOpenPartitionAsync(&Block, &PartitionParams.tmd, partitionOffset, BS2DVDCallback);
DVDOpenPartitionAsync(&Block, &PartitionParams.tmd, (u32)((DVDPartitionInfo *)GamePartition)->partition, BS2DVDCallback);
PartitionOpen = 1;
State = BS2_STT_38;
break;
}
case 0x26: {
status = CheckBS2CommandStatus();
if (status == 0)
@@ -1891,16 +1837,13 @@ invalidRvlRegion:
titlePrefix = titleCode >> 0x18;
titleCharacters[3] = (u8)titleCode;
titleCharacters[0] = (char)(titleCode >> 0x18);
switch (titlePrefix) {
case 'D':
case 'R':
case 'S':
case 'T':
if (titlePrefix < 'R') {
if (titlePrefix == 'D')
goto check_title_region;
} else if (titlePrefix < 'U')
goto check_title_region;
default:
regionMatches = TRUE;
goto title_region_checked;
}
regionMatches = TRUE;
goto title_region_checked;
{
check_title_region:
if (titleCharacters[3] == 0x41) {
@@ -2023,9 +1966,8 @@ invalidRvlRegion:
BS2Report("Addr [0x%x] length [0x%x] offset [0x%x]\n", loaderRead.address, loaderRead.length, loaderRead.offset);
readInterruptsEnabled = OSDisableInterrupts();
BS2ReadDiskID((void *)loaderRead.address, loaderRead.length, loaderRead.offset >> __DVDLayoutFormat);
readAddress = loaderRead.address;
LoaderLength = loaderRead.length;
LoaderAddress = readAddress;
LoaderAddress = loaderRead.address;
LoaderOffset = loaderRead.offset;
if ((*(s32 *)DvdProgress != 0) && (BS2BootFromCache == 0)) {
DvdReadPending = 1;
@@ -2059,8 +2001,8 @@ invalidRvlRegion:
if (status == 0)
OSPanic("BS2Mach.c", 0x12c8, "BS2 ERROR >>> Cannnot alloc 0x%08x from MEMAllocator", bannerFile.length);
BannerLength = bannerFile.length;
BannerBuffer = BannerAllocation + 32 - BannerAllocation % 32;
BS2Report("BannerBufferAddr : %08X\n", BannerBuffer);
BannerBuffer = OSRoundDown32B(BannerAllocation) + 32;
BS2Report("BannerBufferAddr : %08X\n");
} else {
if ((BannerBuffer != 0) && (BannerLength != 0)) {
if (BannerLength < ((bannerFile.length + 0x1fU) & 0xffffffe0))

View File

@@ -23,10 +23,10 @@ s32 WADImportDVDForBS(const char* path, void* buffer, u32 length);
s32 WADImportDVDExForBS(const char* path, void* buffer, u32 length);
static BS2UpdateEntry* pEntries = NULL;
static volatile u32 EntriesCount = 0;
static u32 EntriesCount = 0;
static u32* pFlags = NULL;
static void* MemAllocator = NULL;
volatile int State = 0;
int State = 0;
BS2UpdateEntry* CurrentEntry = 0;
static u32 RebootRequired = 0;
static BOOL ContainsSeatTitles = 0;
@@ -77,8 +77,7 @@ void BS2UpdateInit(void* allocator) {
OSResumeThread(&Thread);
}
static inline u32 BS2SelectUpdateEntries(void) {
static void* UpdateThread(void* argument) {
BOOL missingFile;
u32 selectedCount;
u32 requiredBytes;
@@ -90,6 +89,7 @@ static inline u32 BS2SelectUpdateEntries(void) {
u32 selectedSeatCount;
BOOL regionValid;
u32 titleRegion;
s32 importResult;
struct {
u32 freeChannels;
u32 freeBlocks;
@@ -102,6 +102,9 @@ static inline u32 BS2SelectUpdateEntries(void) {
DVDFileInfo file;
} scratch;
BS2Report("Start update thread\n");
StartUpdate = 0;
CancelUpdate = 0;
missingFile = FALSE;
selectedCount = 0;
requiredBytes = 0;
@@ -159,12 +162,12 @@ product_region_checked:
if (!regionValid) {
BS2Report("Error: failed to check product region.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
if (!SCGetProductAreaString(scratch.productArea, sizeof(scratch.productArea))) {
BS2Report("Error: failed to get product information.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
strcpy(scratch.updatePath, "__update.inf");
strcat(scratch.updatePath, ".");
@@ -180,46 +183,46 @@ product_region_checked:
if (DVDConvertPathToEntrynum(scratch.updatePath) < 0) {
BS2Report("Error: update information file is not found.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
break;
default:
BS2Report("Error: update information file is not found.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
}
BS2Report("%s is found.\n", scratch.updatePath);
if (!DVDOpen(scratch.updatePath, &scratch.file)) {
BS2Report("Error: failed to open update information file.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
if (DVDReadPrio(&scratch.file, &UpdateHeader0, sizeof(UpdateHeader0), 0, 2) < 0) {
BS2Report("Error: failed to read update information header.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
if (UpdateHeader0.wadCount == 0) {
BS2Report("Error: no entry.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
if (UpdateHeader0.wadCount > 32) {
BS2Report("Error: found too many entries.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
UpdateHeader0.wadCount += UpdateHeader0.extraCount;
if (UpdateHeader0.wadCount > BS2_UPDATE_ENTRY_COUNT) {
BS2Report("Error: found too many extra entries.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
if (DVDReadPrio(&scratch.file, UPDATE_DISC_ENTRIES, UpdateHeader0.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
BS2Report("Error: failed to read update information.");
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
{
BS2UpdateEntry *discEntries = UPDATE_DISC_ENTRIES;
@@ -242,7 +245,7 @@ product_region_checked:
BS2Report("Cannot get physical MEM2 size\n");
State = 5;
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
if (DVDOpen(discEntries[index].path, &scratch.file) < 0) {
BS2Report("%s is not found\n", discEntries[index].path);
@@ -302,10 +305,8 @@ product_region_checked:
BS2Report("Error: found too many extra entries.");
goto seats_done;
}
seatEntries = UPDATE_DISC_ENTRIES;
seatEntries += UpdateHeader0.wadCount;
selectedSeats = EntriesToImport;
selectedSeats += selectedCount;
seatEntries = &UPDATE_DISC_ENTRIES[UpdateHeader0.wadCount];
selectedSeats = &EntriesToImport[selectedCount];
if (DVDReadPrio(&scratch.file, seatEntries, UpdateHeader1.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
BS2Report("Error: failed to read update information.");
goto seats_done;
@@ -407,7 +408,7 @@ seats_done:
if (missingFile) {
State = 5;
selectedCount = 0;
goto selection_complete;
goto selection_done;
}
pEntries = EntriesToImport;
pFlags = Flags1;
@@ -423,17 +424,8 @@ seats_done:
}
}
}
selection_complete:
return selectedCount;
}
static void* UpdateThread(void* argument) {
u32 index;
s32 importResult;
BS2Report("Start update thread\n");
StartUpdate = 0;
CancelUpdate = 0;
EntriesCount = BS2SelectUpdateEntries();
selection_done:
EntriesCount = selectedCount;
if (EntriesCount == 0) {
State = 5;
StartUpdate = 0;
@@ -457,7 +449,7 @@ static void* UpdateThread(void* argument) {
UpdateProgress++;
continue;
}
if (((const BS2UpdateEntry *)discEntries)[UpdateProgress].type == 1) {
if (discEntries[UpdateProgress].type == 1) {
BS2Report("BS2WADImportDVD : ");
index = UpdateProgress;
if (strcmp(getSuffix(discEntries[index].path), "wad") == 0) {
@@ -510,8 +502,8 @@ static void* UpdateThread(void* argument) {
} else {
State = 3;
}
CurrentEntry = NULL;
UpdateProgress++;
CurrentEntry = NULL;
break;
}
} else if (CancelUpdate != 0) {

View File

@@ -19,10 +19,10 @@
typedef struct {
u64 work[0xD0 / sizeof(u64)];
} NETHMACContext;
extern const void* NETGetSHA1Interface(void);
extern void NETHMACInit(NETHMACContext* ctx, const void* interface, const void* key, u32 keyLen);
extern void NETHMACUpdate(NETHMACContext* ctx, const void* data, u32 len);
extern void NETHMACGetDigest(NETHMACContext* ctx, void* digest);
static const void* NETGetSHA1Interface(void);
static void NETHMACInit(NETHMACContext* ctx, const void* interface, const void* key, u32 keyLen);
static void NETHMACUpdate(NETHMACContext* ctx, const void* data, u32 len);
static void NETHMACGetDigest(NETHMACContext* ctx, void* digest);
extern char VmReportFormat[];
#define CHANSVmDebugLength 1024
@@ -54,6 +54,7 @@ const u64 VmMinusInf = 0xFFF0000000000000ULL;
#define VM_READ_BE_U16(b, o) ((u16)((b)[(o)] << 8 | (b)[(o) + 1]))
#define VM_READ_BE_U24(b, o) ((u32)((b)[(o)] << 16 | (b)[(o) + 1] << 8 | (b)[(o) + 2]))
#define VM_MAKE_U64(hi, lo) ((u64)(u32)(hi) << 32 | (u64)(lo))
#define VM_S64_FROM_U64(v) ((s64)(u32)((v) >> 32) << 32 | (u64)(u32)(v))
void CHANSVmDebugPrintf(const vmString format, ...) {
va_list args;
@@ -1413,7 +1414,7 @@ CHANSVmErr VmCmpGeq(CHANSVm* vm, CHANSVmObjType type, CHANSVmObjHdr* ret, CHANSV
return VmCmpLeq(vm, type, ret, right, left);
}
CHANSVmErr CHANSVmGetBoolean(vmBoolInt* ret, CHANSVmObjHdr* val) {
CHANSVmErr CHANSVmGetBoolean(CHANSVmObjHdr* ret, CHANSVmObjHdr* val) {
vmBoolInt result;
switch (val->type) {
case CHANS_VM_OBJ_TYPE_BLANK: {
@@ -1447,7 +1448,7 @@ CHANSVmErr CHANSVmGetBoolean(vmBoolInt* ret, CHANSVmObjHdr* val) {
}
}
if (ret != vmNull) {
*ret = result;
ret->value.bool_v = result;
}
return CHANS_VM_OK;
}
@@ -3069,22 +3070,20 @@ VmMethodDefine(String, Search) {
return VmStringObjectIndex(VmInst, VmParentObj, VmReturnObj, 1, 1);
}
static inline vmBoolInt VmReplaceStringContents(CHANSVm *VmInst, const CHANSVmObjHdr *VmParentObj, CHANSVmObjHdr *VmReturnObj) {
VmMethodDefine(String, Replace) {
CHANSVmObjHdr* arg0;
vmString replaceStr;
vmString searchStr;
vmString parentStr;
vmString newStr;
u32 dstBufLen;
u32 replaceLen;
u32 dstOffs;
CHANSVmObjHdr* arg1;
u32 searchLen;
u32 srcOffs;
vmString parentStr;
vmString searchStr;
vmString replaceStr;
u32 parentLen;
u32 srcOffs;
u32 dstOffs;
u32 searchLen;
u32 replaceLen;
u32 dstBufLen;
vmString newStr;
u32 segLen;
const vmStringObjVal *parentValue;
const vmStringObjVal *searchValue;
if (((CHANSVmPrivate*)VmInst)->pActiveCtx->argc < 2) {
goto return_input;
@@ -3099,12 +3098,10 @@ static inline vmBoolInt VmReplaceStringContents(CHANSVm *VmInst, const CHANSVmOb
goto return_input;
}
parentValue = VmParentObj->value.string_v;
searchValue = arg0->value.string_v;
parentLen = parentValue->len;
searchLen = searchValue->len;
parentStr = parentValue->spData;
searchStr = searchValue->spData;
parentLen = VmParentObj->value.string_v->len;
searchLen = arg0->value.string_v->len;
parentStr = VmParentObj->value.string_v->spData;
searchStr = arg0->value.string_v->spData;
replaceStr = arg1->value.string_v->spData;
replaceLen = arg1->value.string_v->len;
@@ -3172,16 +3169,12 @@ static inline vmBoolInt VmReplaceStringContents(CHANSVm *VmInst, const CHANSVmOb
return VmReturnObj->value.string_v->len == dstOffs ? vmTrue : vmFalse;
return_input:
return VmStringObjectDup(VmInst, VmReturnObj, (CHANSVmObjHdr *)VmParentObj) ? vmTrue : vmFalse;
return VmStringObjectDup(VmInst, VmReturnObj, VmParentObj) ? vmTrue : vmFalse;
error:
return 0;
}
VmMethodDefine(String, Replace) {
return VmReplaceStringContents(VmInst, VmParentObj, VmReturnObj);
}
VmMethodDefine(String, Splice) {
CHANSVmObjHdr* arg0;
CHANSVmObjHdr* arg1;
@@ -5140,7 +5133,7 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
goto error;
}
argCount++;
totalSize += (s32)((u32)count + 1U) / 2;
totalSize += (count + 1) / 2;
break;
}
}
@@ -5430,7 +5423,7 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
goto error;
}
bufSize = (s32)((u32)count + 1U) / 2;
bufSize = (count + 1) / 2;
if (!CHANSVmBlobHasSpace(parentBlob, bufSize)) {
goto error;
}
@@ -6281,27 +6274,6 @@ vmU32 CHANSVmGetFreeExeSize(CHANSVm* vm) {
void CHANSConvertModuleOfsToPtr(CHANSVmModule* ptr);
static inline int VmFixMethodTable(CHANSVmModule* header, CHANSVm* vm) {
u32 i;
DispatchEntry* methodTable = header->pMethodRefTbl;
for (i = 1; i < header->methodCount; i++) {
if (methodTable[i].nameLength) {
if ((u8*)(methodTable[i].offset + (methodTable[i].nameLength + (vmU32)methodTable)) <=
(u8*)((vmU32)header + header->regionSize)) {
CHANSVmObjHdr* method = (CHANSVmObjHdr*)CHANSVmAddNativeMethodName(vm, (const char*)(methodTable[i].offset + (vmU32)methodTable),
methodTable[i].nameLength);
if (method) {
header->pMethodTbl[i] = (vmU32)method;
continue;
}
}
}
return 0;
}
return 1;
}
CHANSVmErr CHANSVmAddExe(CHANSVm* vm, vmS32 unk0, CHANSVm* execCtx) {
CHANSVmPrivate* pVm = (CHANSVmPrivate*)vm;
ModuleHeader* mod;
@@ -6406,15 +6378,41 @@ CHANSVmErr CHANSVmAddExe(CHANSVm* vm, vmS32 unk0, CHANSVm* execCtx) {
{
u32 i;
for (i = 0; i < header->moduleCount; i++) {
memset(&header->pModuleTbl[i], 0, sizeof(ModuleEntry));
u32 tblOffs;
for (i = 0, tblOffs = 0; i < header->moduleCount;) {
memset((u8*)header->pModuleTbl + tblOffs, 0, sizeof(ModuleEntry));
i++;
tblOffs += sizeof(ModuleEntry);
}
}
CHANSConvertModuleOfsToPtr(header);
if (!VmFixMethodTable(header, vm)) {
goto fail_format;
{
DispatchEntry* methodTable = header->pMethodRefTbl;
u32 i;
int ok;
for (i = 1; i < header->methodCount; i++) {
if (methodTable[i].nameLength) {
if ((u8*)(methodTable[i].nameLength + (vmU32)methodTable + methodTable[i].offset) <= (u8*)((vmU32)header + header->regionSize)) {
CHANSVmObjHdr* method = (CHANSVmObjHdr*)CHANSVmAddNativeMethodName(vm, (const char*)(methodTable[i].offset + (vmU32)methodTable),
methodTable[i].nameLength);
if (method) {
header->pMethodTbl[i] = (vmU32)method;
continue;
}
}
}
ok = 0;
goto check_method;
}
ok = 1;
check_method:
if (ok == 0) {
goto fail_format;
}
}
{
u8* strPtr = header->pStringDataTbl;
@@ -6781,79 +6779,10 @@ static CHANSVmErr VmReturnWithValue(CHANSVm* vm, u32 val) {
return ret;
}
static inline CHANSVmErr VmResolveGlobalModules(CHANSVmModule* module, GlobalObjListNode* head) {
DispatchEntry* dispatchTable;
GlobalObjListNode* gIter;
u32 i;
dispatchTable = module->pDispatchTbl;
for (gIter = head; gIter != vmNull; gIter = gIter->next) {
for (i = 0; i < module->moduleCount; i++) {
DispatchEntry entry = dispatchTable[i];
u8* addr;
if (!gIter->nameLength) {
continue;
}
addr = (u8*)dispatchTable + entry.offset;
if (addr + gIter->nameLength > (u8*)module + module->regionSize || gIter->nameLength != entry.nameLength) {
continue;
}
if (memcmp(gIter->name, addr, gIter->nameLength) != 0) {
continue;
}
if (module->pModuleTbl[i].type) {
return CHANS_VM_ERR_RESOLVE_GLOBAL_OBJECT_REFERENCE;
}
module->pModuleTbl[i].type = CHANS_VM_TYPE_GLOBAL_REF;
module->pModuleTbl[i].pGlobalObj = gIter;
module->pModuleTbl[i].flags = CHANSVM_OBJ_FLAG_READONLY;
}
}
return 0;
}
static inline CHANSVmErr VmResolveNativeModules(CHANSVmModule* module, CHANSVmNativeClass* head) {
DispatchEntry* dispatchTable;
CHANSVmNativeClass* nIter;
u32 i;
dispatchTable = module->pDispatchTbl;
for (nIter = head; nIter != vmNull; nIter = nIter->pNext) {
for (i = 0; i < module->moduleCount; i++) {
DispatchEntry entry = dispatchTable[i];
u8* addr;
if (!nIter->nameLength) {
continue;
}
addr = (u8*)dispatchTable + entry.offset;
if (addr + nIter->nameLength > (u8*)module + module->regionSize || nIter->nameLength != entry.nameLength) {
continue;
}
if (memcmp(nIter->sName, addr, nIter->nameLength) != 0) {
continue;
}
if (module->pModuleTbl[i].type) {
return CHANS_VM_ERR_RESOLVE_NATIVE_METHOD_CALL;
}
module->pModuleTbl[i].type = CHANS_VM_TYPE_CLASS_REF;
module->pModuleTbl[i].pNativeClass = nIter;
module->pModuleTbl[i].flags = CHANSVM_OBJ_FLAG_READONLY;
}
}
return 0;
}
CHANSVmErr CHANSVmLinkModules(CHANSVm* vm, vmS32 unk0) {
CHANSVmPrivate* pVm = (CHANSVmPrivate*)vm;
u32 modIdx;
CHANSVmModule* module;
u32 modIdx;
u32 i;
(void)unk0;
@@ -6865,14 +6794,76 @@ CHANSVmErr CHANSVmLinkModules(CHANSVm* vm, vmS32 unk0) {
while (modIdx < (u32)pVm->depth) {
CHANSVmErr result;
DispatchEntry* dispatchTable;
GlobalObjListNode* gIter;
CHANSVmNativeClass* nIter;
pVm->pActiveCtx->pDbg = module;
result = VmResolveGlobalModules(module, pVm->pGlobalObjList);
dispatchTable = module->pDispatchTbl;
for (gIter = pVm->pGlobalObjList; gIter != vmNull; gIter = gIter->next) {
for (i = 0; i < module->moduleCount; i++) {
DispatchEntry entry = dispatchTable[i];
u8* addr;
if (!gIter->nameLength) {
continue;
}
addr = (u8*)dispatchTable + entry.offset;
if (addr + gIter->nameLength > (u8*)module + module->regionSize || gIter->nameLength != entry.nameLength) {
continue;
}
if (memcmp(gIter->name, addr, gIter->nameLength) != 0) {
continue;
}
if (module->pModuleTbl[i].type) {
result = CHANS_VM_ERR_RESOLVE_GLOBAL_OBJECT_REFERENCE;
goto post_pass1;
}
module->pModuleTbl[i].type = CHANS_VM_TYPE_GLOBAL_REF;
module->pModuleTbl[i].pGlobalObj = gIter;
module->pModuleTbl[i].flags = CHANSVM_OBJ_FLAG_READONLY;
}
}
result = 0;
post_pass1:
if (result) {
return result;
}
result = VmResolveNativeModules(module, pVm->pNativeClasses);
dispatchTable = module->pDispatchTbl;
for (nIter = pVm->pNativeClasses; nIter != vmNull; nIter = nIter->pNext) {
for (i = 0; i < module->moduleCount; i++) {
DispatchEntry entry = dispatchTable[i];
u8* addr;
if (!nIter->nameLength) {
continue;
}
addr = (u8*)dispatchTable + entry.offset;
if (addr + nIter->nameLength > (u8*)module + module->regionSize || nIter->nameLength != entry.nameLength) {
continue;
}
if (memcmp(nIter->sName, addr, nIter->nameLength) != 0) {
continue;
}
if (module->pModuleTbl[i].type) {
result = CHANS_VM_ERR_RESOLVE_NATIVE_METHOD_CALL;
goto post_pass2;
}
module->pModuleTbl[i].type = CHANS_VM_TYPE_CLASS_REF;
module->pModuleTbl[i].pNativeClass = nIter;
module->pModuleTbl[i].flags = CHANSVM_OBJ_FLAG_READONLY;
}
}
result = 0;
post_pass2:
if (result) {
return result;
}
@@ -6938,7 +6929,7 @@ static u8* VmGetOperand(CHANSVm* vm, u32 num, u32 offset) {
}
static CHANSVmErr VmLoadImmInteger(CHANSVm* vm, CHANSVmObjHdr* obj, u8* buf, s32 count) {
u64 acc = 0;
s64 acc = 0;
u8* p = buf;
while (count != 0) {
@@ -6948,7 +6939,7 @@ static CHANSVmErr VmLoadImmInteger(CHANSVm* vm, CHANSVmObjHdr* obj, u8* buf, s32
count--;
}
return CHANSVmSetInteger(vm, obj, (vmInteger)acc);
return CHANSVmSetInteger(vm, obj, acc);
}
CHANSVmErr VmStore(CHANSVm* vm, CHANSVmObjHdr* dest, CHANSVmObjHdr* src) {
@@ -7216,7 +7207,7 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
u32 cmpLow;
struct {
CHANSVmObjType operandTypes[2];
double floatLiteral;
u64 floatBits;
CHANSVmObjHdr copies[2];
CHANSVmObjHdr load;
CHANSVmObjHdr operand;
@@ -7243,7 +7234,7 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
CHANSVmErr result;
u32 newPos;
u32 isTypeMatch;
vmBoolInt shouldBranch;
u32 shouldBranch;
if (pVm->bSignalUpdated != vmFalse && pVm->bSignalBlocked == vmFalse) {
pVm->bSignalUpdated = vmFalse;
@@ -7300,8 +7291,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
case CHANS_VM_OP_LOAD_FLOAT: {
opSize = 9;
operandBuf = VmGetOperand(vm, 1, 9);
memcpy(&scratch.floatLiteral, operandBuf, 8);
result = CHANSVmSetFloat(vm, &pVm->accumulator, scratch.floatLiteral);
memcpy(&scratch.floatBits, operandBuf, 8);
result = CHANSVmSetFloat(vm, &pVm->accumulator, *(double*)&scratch.floatBits);
break;
}
@@ -7450,7 +7441,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
}
if (leftOp == vmNull || rightOp == vmNull) {
return CHANS_VM_ERR_RESULT_TYPE;
result = CHANS_VM_ERR_RESULT_TYPE;
break;
}
result = opFunc(vm, convTypeIdx, &pVm->accumulator, leftOp, rightOp);
@@ -7632,8 +7624,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
case CHANS_VM_OP_LOG_NOT: {
CHANSVmObjHdr* pAcc = &pVm->accumulator;
vmBoolInt bResult;
CHANSVmErr booleanResult = CHANSVmGetBoolean(&bResult, pAcc);
u32 bResult;
CHANSVmErr booleanResult = CHANSVmGetBoolean((CHANSVmObjHdr*)&bResult, pAcc);
if (booleanResult == CHANS_VM_OK) {
s32 boolVal = bResult ? 0 : 1;
booleanResult = CHANSVmSetInteger(vm, pAcc, boolVal);
@@ -7725,27 +7717,30 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
CHANSVmObjHdr* pAcc;
CHANSVmExecutionCtx* ctx;
CHANSVmModule* dbg;
CHANSVmErr loadResult;
opSize = 3;
operandBuf = VmGetOperand(vm, 1, 3);
if (operandBuf == vmNull) {
return CHANS_VM_ERR_CODE_RANGE;
}
pAcc = &pVm->accumulator;
loadResult = CHANSVmDeleteObject(vm, pAcc);
if (loadResult == CHANS_VM_OK) {
result = CHANSVmDeleteObject(vm, pAcc);
if (result == CHANS_VM_OK) {
imm16Val = VM_READ_BE_U16(operandBuf, 0);
ctx = pVm->pActiveCtx;
dbg = ctx->pDbg;
if (imm16Val >= dbg->stringCount || dbg->pStringTbl[imm16Val].pStringData == vmNull) {
loadResult = CHANS_VM_ERR_LOAD_STRING_CONST;
} else {
pAcc->type = CHANS_VM_OBJ_TYPE_STRING;
pAcc->hasData = vmTrue;
pAcc->value.wstring_v = (vmWStringObjVal*)&ctx->pDbg->pStringTbl[imm16Val];
if (imm16Val < dbg->stringCount) {
if (dbg->pStringTbl[imm16Val].pStringData != vmNull) {
goto load_str_ok;
}
}
}
result = loadResult;
result = CHANS_VM_ERR_LOAD_STRING_CONST;
break;
load_str_ok:
pAcc->type = CHANS_VM_OBJ_TYPE_STRING;
pAcc->hasData = vmTrue;
pAcc->value.wstring_v = (vmWStringObjVal*)&ctx->pDbg->pStringTbl[imm16Val];
break;
}
@@ -7778,8 +7773,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
arrayIdx = (u32)stackPtr->value.int_v;
goto set_index_ok;
case CHANS_VM_OBJ_TYPE_FLOAT: {
double stackFloat = stackPtr->value.float_v;
if (stackFloat >= 0.0 && stackFloat <= 4294967294.0) {
double stackFloat = *(double*)stackPtr;
if (stackFloat <= 4294967294.0 && 0.0 <= stackFloat) {
arrayIdx = (u32)stackFloat;
goto set_index_ok;
}
@@ -7790,7 +7785,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
cmpHigh = 0;
cmpLow = -2;
cmpVal = VM_MAKE_U64(cmpHigh, cmpLow);
if (tmp64 <= cmpVal) {
fullVal = VM_S64_FROM_U64(tmp64);
if ((u64)fullVal <= cmpVal) {
arrayIdx = (u32)tmp64;
goto set_index_ok;
}
@@ -7889,7 +7885,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
computedAddr += pVm->pActiveCtx->pc + 5;
}
if (computedAddr < 1 || computedAddr >= pVm->pActiveCtx->pDbg->codeSize) {
return CHANS_VM_ERR_CODE_RANGE;
result = CHANS_VM_ERR_CODE_RANGE;
break;
}
pVm->pActiveCtx->pc = computedAddr;
opSize = 0;
@@ -7937,7 +7934,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
computedAddr += pVm->pActiveCtx->pc + 4;
}
if (computedAddr < 1 || computedAddr >= pVm->pActiveCtx->pDbg->codeSize) {
return CHANS_VM_ERR_CODE_RANGE;
result = CHANS_VM_ERR_CODE_RANGE;
break;
}
pVm->pActiveCtx->pc = computedAddr;
opSize = 0;
@@ -7962,13 +7960,11 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
}
case CHANS_VM_OP_DELETE_INDIRECT: {
CHANSVmObjHdr* accumulator = &pVm->accumulator;
CHANSVmErr deleteResult = CHANS_VM_ERR_DELETE_INDIRECT;
if (accumulator->type == CHANS_VM_TYPE_INDEX_REF) {
foundObj = VmGetArrayElement(vm, accumulator, accumulator->value.data.len, vmFalse);
deleteResult = VmDeleteCommon(vm, foundObj);
result = CHANS_VM_ERR_DELETE_INDIRECT;
if (pVm->accumulator.type == CHANS_VM_TYPE_INDEX_REF) {
foundObj = VmGetArrayElement(vm, &pVm->accumulator, *((u32*)&pVm->accumulator.value + 1), vmFalse);
result = VmDeleteCommon(vm, foundObj);
}
result = deleteResult;
break;
}
@@ -8012,27 +8008,34 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
if (pVm->pActiveCtx->stackDepth != 0 && pVm->pObjStackTopBuf + sizeof(CHANSVmObjHdr) <= pVm->pHeapEnd) {
CHANSVmObjHdr* stackTop = (CHANSVmObjHdr*)pVm->pObjStackTopBuf;
isTypeMatch = 0;
if (stackTop->type == pVm->accumulator.type) {
if (pVm->accumulator.type == stackTop->type) {
switch (stackTop->type) {
case CHANS_VM_OBJ_TYPE_INTEGER: {
isTypeMatch = stackTop->value.int_v == pVm->accumulator.value.int_v;
u32 low1 = *(u32*)stackTop;
u32 low2 = *(u32*)&pVm->accumulator;
u32 high1 = *((u32*)stackTop + 1);
u32 high2 = *((u32*)&pVm->accumulator + 1);
u32 xor1 = low1 ^ low2;
u32 xor2 = high1 ^ high2;
isTypeMatch = !(xor1 | xor2);
goto end_branch_check;
}
case CHANS_VM_OBJ_TYPE_FLOAT: {
isTypeMatch = stackTop->value.float_v == pVm->accumulator.value.float_v;
double stackFloat = stackTop->value.float_v;
double accFloat = pVm->accumulator.value.float_v;
isTypeMatch = stackFloat == accFloat ? 1 : 0;
goto end_branch_check;
}
case CHANS_VM_OBJ_TYPE_STRING: {
u32 len1, len2;
const vmWStringObjVal* accumulatorString = pVm->accumulator.value.wstring_v;
const vmWStringObjVal* stackString = stackTop->value.wstring_v;
CHANSVmObjHdr* stackObj = (CHANSVmObjHdr*)pVm->pObjStackTopBuf;
u32 strEqual;
isTypeMatch = 0;
len1 = stackString->len;
len2 = accumulatorString->len;
len1 = stackObj->value.wstring_v->len;
len2 = pVm->accumulator.value.wstring_v->len;
if (len1 == len2) {
strEqual = 0;
if (len1 == 0 || memcmp(stackString->spData, accumulatorString->spData, len1) == 0) {
if (len1 == 0 || memcmp(stackObj->value.wstring_v->spData, pVm->accumulator.value.wstring_v->spData, len1) == 0) {
strEqual = 1;
}
if (strEqual) {
@@ -8073,14 +8076,14 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
break;
}
case CHANS_VM_OP_BRANCH_FALSE: {
result = CHANSVmGetBoolean(&shouldBranch, &pVm->accumulator);
result = CHANSVmGetBoolean((CHANSVmObjHdr*)&shouldBranch, &pVm->accumulator);
if (result == CHANS_VM_OK) {
shouldBranch = !shouldBranch;
}
break;
}
case CHANS_VM_OP_BRANCH_TRUE: {
result = CHANSVmGetBoolean(&shouldBranch, &pVm->accumulator);
result = CHANSVmGetBoolean((CHANSVmObjHdr*)&shouldBranch, &pVm->accumulator);
break;
}
case CHANS_VM_OP_BRANCH_ALWAYS: {

View File

@@ -394,22 +394,17 @@ namespace textinput {
mOnOffButton.Create(this);
mOnOffButton.Init();
const char* paneNames = scPaneNameTable;
const char* leftScrollBoundName = paneNames + 48;
const char* leftScrollPaneName = paneNames + 68;
mLeftScroll.Create(this, leftScrollPaneName, leftScrollBoundName);
mLeftScroll.Create(this, paneNames + 68, paneNames + 48);
mRightScroll.Create(this, paneNames + 108, paneNames + 88);
mLeftScroll.Init();
mRightScroll.Init();
const char* windowName = scW_predictWindow;
mTextWindow.Create(this, windowName);
mTextWindow.Create(this, scW_predictWindow);
init();
}
void LayoutByNW4R::createAnmPane_(MEMAllocator* allocator) {
CandidateTextAnmPane* pane;
u16 j;
u16 i;
for (i = 0; i < ARRAY_LENGTH(scCandidatePaneData.panes); i++) {
for (u16 i = 0; i < ARRAY_LENGTH(scCandidatePaneData.panes); i++) {
pane = NULL;
const PaneToAnimation& p = scCandidatePaneData.panes[i];
switch (p.type) {
@@ -438,18 +433,16 @@ namespace textinput {
nw4r::ut::List_Append(&mAnmPanes, pane);
const char* forceAddName = p.forceAddName;
u32 animationCount = p.count;
for (j = 0; j < animationCount; j++) {
const AnimationFile* const& animation = p.pAnims[j];
void* pResource = mpMultiArcResourceAccessor->GetResource(0, animation->fileName);
for (u16 j = 0; j < p.count; j++) {
const AnimationFile* animation = p.pAnims[j];
void* pResource = mpMultiArcResourceAccessor->GetResource(0, p.pAnims[j]->fileName);
AnimTransformPane* transform =
static_cast<AnimTransformPane*>(getLayout()->CreateAnimTransform(pResource, mpMultiArcResourceAccessor));
if (forceAddName == NULL) {
if (p.forceAddName == NULL) {
pane->addAnimation(allocator, animation->id, transform, false, true);
} else {
pane->forceAddAnimation(allocator, animation->id, transform, forceAddName, false, true);
pane->forceAddAnimation(allocator, animation->id, transform, p.forceAddName, false, true);
}
}
}
@@ -1089,7 +1082,7 @@ namespace textinput {
nw4r::lyt::TextBox* textPane = mpTextBoxPane[i]->getTextPane();
nw4r::lyt::Bounding* boundPane = mpBoundingPane[i]->getBoundPane();
nw4r::lyt::Size sz1 = textPane->GetSize();
textPane->SetString(scEmptyWChars);
textPane->SetString(L"");
textPane->SetVisible(false);
boundPane->SetSize(nw4r::lyt::Size(0.0f, sz1.height));
}
@@ -1690,9 +1683,9 @@ namespace textinput {
void UIOnOffButton::Create(nw4rmanager::Layout* layout) {
gui::PaneManager* mgr = layout->getPaneManager();
mpOnPictPane = mgr->searchPaneComponent(scP_OnBtn);
mpOnBoundPane = mgr->searchPaneComponent(scB_OnBtn);
mpOnAnmPane = static_cast<OnOffAnmPane*>(layout->searchAnmPane(scP_OnBtn));
mpOnPictPane = mgr->searchPaneComponent("P_OnBtn");
mpOnBoundPane = mgr->searchPaneComponent("B_OnBtn");
mpOnAnmPane = static_cast<OnOffAnmPane*>(layout->searchAnmPane("P_OnBtn"));
mpOffPictPane = mgr->searchPaneComponent(scCandidatePaneData.tail);
mpOffBoundPane = mgr->searchPaneComponent(scPaneNameTable);
mpOffAnmPane = static_cast<OnOffAnmPane*>(layout->searchAnmPane(scCandidatePaneData.tail));

View File

@@ -651,24 +651,6 @@ namespace textinput {
setLanguage(getLanguage());
}
static inline void initializeTogglePane(nw4rmanager::Layout& layout, void* const& inputModeTable,
int inputMode, const char* paneName) {
char textPaneName[17];
memset(textPaneName, 0, sizeof(textPaneName));
strncpy(textPaneName, paneName, strlen(paneName));
textPaneName[0] = 'T';
nw4r::lyt::TextBox* textPane = static_cast<nw4r::lyt::TextBox*>(layout.getPane(textPaneName));
nw4r::lyt::Pane* buttonPane = layout.getPane(paneName);
const KeySet* keySet = static_cast<const LanguageDependencyData*>(inputModeTable)->keySets[inputMode];
if (keySet == NULL) {
buttonPane->SetVisible(false);
} else {
buttonPane->SetVisible(true);
textPane->SetString(static_cast<const LanguageDependencyData*>(inputModeTable)->keySets[inputMode]->szKeySetName, 0);
}
}
void LayoutByNW4R::init() {
Base::init();
@@ -688,7 +670,21 @@ namespace textinput {
setVisible("W_ChngTag_03", true);
for (int i = 0; i < 4; ++i) {
initializeTogglePane(*this, mpInputModeTable, i, csPaneNameToggleAnimationKey[i].name);
const char* paneName = csPaneNameToggleAnimationKey[i].name;
char textPaneName[17];
memset(textPaneName, 0, sizeof(textPaneName));
strncpy(textPaneName, paneName, strlen(paneName));
textPaneName[0] = 'T';
nw4r::lyt::TextBox* textPane = static_cast<nw4r::lyt::TextBox*>(getPane(textPaneName));
nw4r::lyt::Pane* buttonPane = getPane(paneName);
const KeySet* keySet = static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[i];
if (keySet == NULL) {
buttonPane->SetVisible(false);
} else {
buttonPane->SetVisible(true);
textPane->SetString(static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[i]->szKeySetName, 0);
}
}
if (getLanguage() == JP) {

View File

@@ -1169,7 +1169,7 @@ void LayoutByNW4R::create(MEMAllocator* allocator, EditBuffer* editBuffer) {
setVisible("N_2line", true);
mpPaneManager->setAllComponentTriggerTarget(false);
mpPaneManager->setAllBoundingBoxComponentTriggerTarget(true);
nw4r::lyt::Pane* pane = mpLayout->GetRootPane()->FindPaneByName(static_cast<const LanguagePaneData*>(mpLanguageData)->textBox, true);
nw4r::lyt::Pane* pane = getPane(static_cast<const LanguagePaneData*>(mpLanguageData)->textBox);
if (!pane) pane = mpLayout->GetRootPane()->FindPaneByName(getLanguageTextPane() ? static_cast<const LanguagePaneData*>(mpLanguageData)->textBox : "T_2l_TextBox", true);
mpPaneManager->getPaneComponentByPane(pane)->setTriggerTarget(true);
for (u32 buttonIndex = 0; buttonIndex < 2; ++buttonIndex) {
@@ -1187,7 +1187,7 @@ void LayoutByNW4R::create(MEMAllocator* allocator, EditBuffer* editBuffer) {
const char* bindingName = button.bindingName;
count = button.count;
for (u16 animationIndex = 0; animationIndex < count; ++animationIndex) {
const InputFormAnimationFile* const& file = button.files[animationIndex];
const InputFormAnimationFile* file = button.files[animationIndex];
void* resource = mpMultiArcResourceAccessor->GetResource(0, file->fileName, NULL);
AnimTransformPane* transform = static_cast<AnimTransformPane*>(getLayout()->CreateAnimTransform(resource, mpMultiArcResourceAccessor));
if (!bindingName) animationPane->addAnimation(allocator, file->id, transform, false, true);
@@ -1254,13 +1254,6 @@ void LayoutByNW4R::calc() {
}
}
}
static inline const char* selectInputTextName(const nw4rmanager::Layout& layout, const void* const& languageData) {
if (layout.getPane(static_cast<const LanguagePaneData*>(languageData)->textBox)) {
return static_cast<const LanguagePaneData*>(languageData)->textBox;
}
return "T_2l_TextBox";
}
void LayoutByNW4R::setLanguage(Language language) {
Base::setLanguage(language);
if (language == CN) mpLanguageData = &csLanguageDependencyDataCHN__Q29textinput9inputform;
@@ -1271,12 +1264,12 @@ void LayoutByNW4R::setLanguage(Language language) {
else textName = static_cast<const LanguagePaneData*>(mpLanguageData)->textBox;
mpLayoutData = textName;
if (::strcmp(static_cast<const char*>(mpLayoutData), "T_2l_TextBox") != 0) setVisible("T_2l_TextBox", false);
nw4r::lyt::Pane* pane = mpLayout->GetRootPane()->FindPaneByName(selectInputTextName(*this, mpLanguageData), true);
nw4r::lyt::Pane* pane = mpLayout->GetRootPane()->FindPaneByName(getLanguageTextPane() ? static_cast<const LanguagePaneData*>(mpLanguageData)->textBox : "T_2l_TextBox", true);
static_cast<nw4r::lyt::TextBox*>(pane)->SetString(L"", 0);
const VisiblePanes* visibility = static_cast<const LanguagePaneData*>(mpLanguageData)->visibility;
for (u16 index = 0; index < visibility->visibleCount; ++index) setVisible(visibility->visibleNames[index], true);
for (u16 index = 0; index < visibility->hiddenCount; ++index) setVisible(visibility->hiddenNames[index], false);
pane = mpLayout->GetRootPane()->FindPaneByName(selectInputTextName(*this, mpLanguageData), true);
pane = mpLayout->GetRootPane()->FindPaneByName(getLanguageTextPane() ? static_cast<const LanguagePaneData*>(mpLanguageData)->textBox : "T_2l_TextBox", true);
mpPaneManager->getPaneComponentByPane(pane)->setTriggerTarget(true);
if (getPane("T_title_text")) {
nw4r::lyt::TextBox* title = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(getPane("T_title_text"));
@@ -3078,9 +3071,7 @@ bool Base::onCursor(CursorPos* cursor) {
f32 left = glyph.rect.left + GetCursorX();
f32 top = glyph.rect.top + GetCursorY();
f32 right = glyph.rect.right + GetCursorX();
f32 cursorY = GetCursorY();
f32 fontHeight = GetFontHeight();
f32 bottomEdge = fontHeight + cursorY;
f32 bottomEdge = GetCursorY() + GetFontHeight();
candidateBackground.a = muGlobalAlpha;
debug::drawBox_(left, top, right, bottomEdge, 0.0f, 1.0f, candidateBackground);
SetupGX();
@@ -3140,9 +3131,7 @@ bool Base::onCursor(CursorPos* cursor) {
f32 left = glyph.rect.left + GetCursorX();
f32 top = glyph.rect.top + GetCursorY();
f32 right = glyph.rect.right + GetCursorX();
f32 cursorY = GetCursorY();
f32 fontHeight = GetFontHeight();
f32 bottomEdge = fontHeight + cursorY;
f32 bottomEdge = GetCursorY() + GetFontHeight();
kanaBackground.a = muGlobalAlpha;
debug::drawBox_(left, top, right, bottomEdge, 0.0f, 1.0f, kanaBackground);
SetupGX();
@@ -3188,7 +3177,7 @@ u32 Base::calcCursorPos(f32 x, f32 y) {
info.character = *string;
calcRect(info);
lineBottom = lineTop + scale.y * (info.rect.bottom - info.rect.top);
f32 right = cursorX + scale.x * info.rect.GetWidth();
f32 right = cursorX + scale.x * (info.rect.right - info.rect.left);
if (doWordWrap(mpString->getWCString(), pos, cursorX)) {
if (localY >= lineTop && localY <= lineBottom) {
if (pos != 0) return pos - 1;
@@ -3197,14 +3186,14 @@ u32 Base::calcCursorPos(f32 x, f32 y) {
lineTop += scale.y * getLineHeight();
cursorX = getScale().x;
lineBottom = lineTop + scale.y * (info.rect.bottom - info.rect.top);
right = cursorX + scale.x * info.rect.GetWidth();
right = cursorX + scale.x * (info.rect.right - info.rect.left);
}
if (right >= scale.x * mRect.GetWidth()) {
if (right >= scale.x * (mRect.right - mRect.left)) {
if (localY >= lineTop && localY <= lineBottom) return pos;
lineTop += scale.y * getLineHeight();
cursorX = getScale().x;
lineBottom = lineTop + scale.y * (info.rect.bottom - info.rect.top);
right = cursorX + scale.x * info.rect.GetWidth();
right = cursorX + scale.x * (info.rect.right - info.rect.left);
}
if (x <= info.rect.left && localY >= lineTop && localY <= lineBottom) return pos;
if (*string == L'\n') {
@@ -3218,7 +3207,7 @@ u32 Base::calcCursorPos(f32 x, f32 y) {
if (cursorX + 0.5f * (right - cursorX) > x) return pos;
return pos + 1;
}
cursorX += scale.x * info.rect.GetWidth();
cursorX += scale.x * (info.rect.right - info.rect.left);
}
++string;
++pos;

View File

@@ -1610,7 +1610,7 @@ namespace textinput {
}
void Base::setTranslateMode(TranslateMode mode) {
u32 keyMode;
u32 keyMode = mode;
switch (mode) {
case TM_Direct:
keyMode = 0;
@@ -1621,6 +1621,8 @@ namespace textinput {
case TM_Kana:
keyMode = 2;
break;
default:
break;
}
if (keyMode != (mKeyState.abcFlags & 15)) {
if (getLanguage() == KR || getLanguage() == CN)

View File

@@ -5,7 +5,7 @@
extern "C" {
u8 KPRLookAhead(KPRQueue*, wchar_t*, u32);
u8 KPRPutChar(KPRQueue*, wchar_t);
u32 KPRPutChar(KPRQueue*, wchar_t);
wchar_t KPRGetChar(KPRQueue*);
void KPRClearQueue(KPRQueue*);
void KPRInitQueue(KPRQueue*);
@@ -141,28 +141,6 @@ wchar_t StringBase::getLastWChar() {
return 0;
}
namespace {
class CharacterOutput {
public:
CharacterOutput(wchar_t* output) : mpOutput(output), mCount(0) {
mpOutput[0] = 0;
}
void append(wchar_t ch) {
mpOutput[mCount++] = ch;
}
u16 finish() {
mpOutput[mCount] = 0;
return mCount;
}
private:
wchar_t* mpOutput;
u32 mCount;
};
}
void Decolated::inputChar(wchar_t ch) {
if (ch != 0xfffe) {
wchar_t input[8];
@@ -195,9 +173,9 @@ void Decolated::inputChar(wchar_t ch) {
}
nonKana:
if (mTranslateMode == 3) {
CharacterOutput output(input);
output.append(ch);
count = output.finish();
input[0] = ch;
input[1] = 0;
count = 1;
mKanaStream.mOutput[0] = 0;
} else {
count = 1;

View File

@@ -298,6 +298,7 @@ void WithZi::update() {
return;
}
wchar_t* candidateOutput = reinterpret_cast<wchar_t*>(&CandidatesBuffer[0x200]);
mSelectedCandidate = 0;
s32 elementCount = static_cast<u16>(setElementBuffer());
mSearch.language = getPredictLanguage();
@@ -306,7 +307,7 @@ void WithZi::update() {
mSearch.context = 1;
mSearch.getOptions = 0x81;
mSearch.elements = reinterpret_cast<wchar_t*>(ElementBuffer);
mSearch.candidates = reinterpret_cast<wchar_t*>(&CandidatesBuffer[0x200]);
mSearch.candidates = candidateOutput;
mSearch.maxCandidates = 0x28;
mSearch.elementCount = static_cast<u8>(elementCount);
mSearch.firstCandidate = 0;
@@ -354,24 +355,25 @@ void WithZi::update() {
ChangeDictionaryLanguage(getPredictLanguage());
u32 count = EZTXGetCandidates(&mSearch, mpDictionaryWork) & 0xff;
if (getPredictLanguage() == 1 && count == 0x61) {
wchar_t* candidateOutput = reinterpret_cast<wchar_t*>(&CandidatesBuffer[0x200]);
mSearch.firstCandidate = 0x61;
mSearch.candidates = candidateOutput + 0xC2;
mSearch.candidates = reinterpret_cast<wchar_t*>(&CandidatesBuffer[0x2c2]);
mSearch.maxCandidates = 199;
count += EZTXGetCandidates(&mSearch, mpDictionaryWork) & 0xff;
count = EZTXGetCandidates(&mSearch, mpDictionaryWork) & 0xff;
mSearch.firstCandidate = 0;
count += 0x61;
mSearch.candidates = candidateOutput;
}
if (static_cast<s32>(count) > 0x28) {
count = 0x28;
}
if (getPredictLanguage() == 1 && mbContextChanged != 0 &&
(mbContextChanged = 0, mSearch.count == 0)) {
(mbContextChanged = 0, mSearch.wordCharCount == 0)) {
u32 length = mCurrentWordLength;
u32 wordLength = wcslen((wchar_t*)LatestWord) & 0xff;
u32 copied;
u16* source = LatestWord + wordLength - length;
for (copied = 0; copied < length; ++copied) {
LatestWord[copied] = LatestWord[(wordLength - length) + copied];
LatestWord[copied] = source[copied];
}
LatestWord[copied] = 0;
mSearch.wordCharCount = wcslen((wchar_t*)LatestWord);
@@ -394,10 +396,8 @@ void WithZi::update() {
u16* destination = CandidatedWord;
for (s32 index = 0; index < static_cast<s32>(count); index++) {
if (getPredictLanguage() == 1) {
u16* output;
s32 length;
length = 0;
output = destination;
s32 length = 0;
u16* output = destination;
for (; *source != 0x20 && *source != 0; source++) {
*output++ = *source;
++length;
@@ -409,20 +409,16 @@ void WithZi::update() {
destination[1] = 0;
} else if (getPredictLanguage() == 0x12) {
u16* output = destination;
u16 character;
while ((character = *source) >= 0x100) {
*output++ = character;
++source;
while (*source >= 0x100) {
*output++ = *source++;
}
} else if (EZTXCopy(reinterpret_cast<wchar_t*>(destination), &mSearch, index & 0xff, mpDictionaryWork) == 0) {
goto nextCandidate;
}
++mCandidateCount;
{
u16* candidate;
s32 position;
position = 0;
for (candidate = destination; *candidate != 0; ++candidate, ++position) {
s32 position = 0;
for (u16* candidate = destination; *candidate != 0; ++candidate) {
switch (mLetterMode) {
case LM_1:
*candidate = util::toWLower(*candidate);
@@ -434,11 +430,10 @@ void WithZi::update() {
if (position == 0) *candidate = util::toWUpper(*candidate);
else *candidate = util::toWLower(*candidate);
break;
case LM_3:
break;
default:
break;
}
++position;
}
}
nextCandidate:

View File

@@ -1179,10 +1179,10 @@ namespace ipl {
return;
}
switch (mState) {
case STATE_NORMAL:
switch (mMode) {
case 0:
if (mState != STATE_NORMAL || mMode != 0) {
return;
}
if (!mpFriendCache->isThere(buttonNo + mPage * BTN_MAX)) {
return;
}
@@ -1240,8 +1240,6 @@ namespace ipl {
snd::getSystem()->startSEwithPos("WIPL_SE_CH_HOLD", mDrag.mPos.x);
mState = STATE_DRAG;
}
}
}
void Address::start_drag_point_event(const char* paneName, controller::Interface* con) {
@@ -1427,7 +1425,10 @@ namespace ipl {
if (con->downTrg(controller::BTN_INTERACT)) {
Button* button = static_cast<Button*>(System::getScene(SCENE_BUTTON));
if (mState == STATE_COVER_NORMAL || mState == STATE_NORMAL) {
if (mState != STATE_COVER_NORMAL && mState != STATE_NORMAL) {
break;
}
if (Button::cmpButtonName(paneName, Button::BTN_EXIT) == 0) {
MailAddressSelect* mailAddrSel = static_cast<MailAddressSelect*>(System::getScene(SCENE_MAIL_ADDRESS_SELECT));
button->animation(Button::IDANIM_SELECT_CALENDAR_EXIT);
@@ -1476,7 +1477,7 @@ namespace ipl {
snd::getSystem()->startSE("WIPL_SE_FL_PAGE_DEC");
onPreviousPage();
}
}
break;
}
// fallthrough
}
@@ -1778,38 +1779,28 @@ namespace ipl {
}
}
static inline f32 GetDragNameWidth(nw4r::lyt::TextBox* textBox, const NWC24FriendInfo& info) {
f32 width = 0.0f;
if (textBox == NULL) {
return width;
}
const u16* name = info.attr.name;
if (name == NULL) {
return width;
}
textBox->GetFont()->GetWidth();
for (; *name != 0; ++name) {
width += textBox->GetFont()->GetCharWidth(*name);
}
return 0.01f + width;
}
void Address::movePane_onDrag() {
nw4r::math::VEC3 baseTrans = mpLayout->FindPaneByName("N_base_move")->GetTranslate();
math::VEC2 pos = System::getControllerManager()->getController(mDrag.mChan)->getDpdProjectionPos();
nw4r::lyt::TextBox* textBox = static_cast<nw4r::lyt::TextBox*>(mpLayout->GetRootPane()->FindPaneByName("T_name_move", true));
nw4r::lyt::TextBox* textBox = static_cast<nw4r::lyt::TextBox*>(mpLayout->FindPaneByName("T_name_move"));
const u16* name = mpFriendCache->getInfo(mDrag.mButton + mDrag.mPage * BTN_MAX).attr.name;
f32 width = GetDragNameWidth(textBox, mpFriendCache->getInfo(mDrag.mButton + mDrag.mPage * BTN_MAX));
f32 width = 0.0f;
if (textBox != NULL && name != NULL) {
textBox->GetFont()->GetWidth();
for (; *name != 0; name++) {
width += textBox->GetFont()->GetCharWidth(*name);
}
}
width += 0.01f;
nw4r::ut::Rect rect;
nw4r::ut::Rect rect4x3;
System::getProjectionRect(&rect);
System::getProjectionRect4x3(&rect4x3);
f32 rightEdge = baseTrans.x + width;
if (rightEdge < pos.x) {
rightEdge *= rect4x3.GetWidth() / rect.GetWidth();
mDragOffsetX = -rightEdge;
if (baseTrans.x + width < pos.x) {
mDragOffsetX = -((baseTrans.x + width) * (rect4x3.GetWidth() / rect.GetWidth()));
} else {
pos.x *= rect4x3.GetWidth() / rect.GetWidth();
mDragOffsetX = -pos.x;
@@ -1955,10 +1946,11 @@ namespace ipl {
}
void FriendListCache::update(u32 index, const wchar_t* name, u64 fdId) {
mInfos[index].attr.fdId = fdId;
memset(mInfos[index].attr.name, 0, sizeof(mInfos[index].attr.name));
wcsncpy((wchar_t*)getInfo(index).attr.name, name, 10);
System::getNwc24Manager()->updateFriendInfo(&mInfos[static_cast<s32>(index)], index);
NWC24FriendInfo* info = &mInfos[index];
info->attr.fdId = fdId;
memset(info->attr.name, 0, sizeof(info->attr.name));
wcsncpy((wchar_t*)info->attr.name, name, 10);
System::getNwc24Manager()->updateFriendInfo(info, index);
}
void FriendListCache::del(u32 index) {

View File

@@ -140,6 +140,7 @@ void ipl::scene::AddressEdit::reset_gui() {
}
extern "C" void* __nw__FUl(u32);
extern "C" BOOL RFLSearchOfficialData(const RFLCreateID*, u16*);
namespace ipl {
@@ -520,8 +521,7 @@ void ipl::scene::AddressEdit::create() {
set_textbox(textPane, friendText);
textPane = (mpCodeLayout)
->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true);
friendText = mString.mDisplayText;
set_textbox(textPane, friendText);
set_textbox(textPane, mString.mDisplayText);
mState = 0;
break;
}
@@ -583,10 +583,15 @@ create_mode_done:
ipl::System::getKeyboard()->init();
f32 margin4x3 = 30.0f;
f32 margin16x9 = 120.0f;
mpBalloon = new ipl::scene::TextBalloon(getHeap(), mpBalloonFile, "arc",
"my_IplTopBalloon_a.brlyt", ipl::math::VEC3(0.0f, 0.0f, 0.0f), margin16x9, margin4x3);
ipl::scene::TextBalloon* balloon = reinterpret_cast<ipl::scene::TextBalloon*>(__nw__FUl(0x3c));
if (balloon != NULL) {
f32 balloonWidth = 30.0f;
f32 balloonHeight = 120.0f;
EGG::Heap* heap = getHeap();
ipl::math::VEC3 position(0.0f, 0.0f, 0.0f);
balloon = new (balloon) ipl::scene::TextBalloon(heap, mpBalloonFile, "arc", "my_IplTopBalloon_a.brlyt", position, balloonHeight, balloonWidth);
}
mpBalloon = balloon;
}
void ipl::scene::AddressEdit::stt_wait_decide_anm() {
@@ -2774,7 +2779,7 @@ void ipl::scene::AddressEdit::set_err_msg(wchar_t* outErrMsg, u32 outErrMsgLen,
swprintf(nwc24ErrStr, sizeof(nwc24ErrStr) / sizeof(wchar_t), L"%06d\n", errorCode);
wcsncat(outErrMsg, nwc24ErrStr, outErrMsgLen - wcslen(outErrMsg));
u32 messageId;
u32 messageId = MESG_ERROR_NWC24_SERVER;
switch (nwc24Err) {
case NWC24_ERR_NETWORK:
messageId = MESG_ERROR_NWC24_NETWORK;
@@ -2860,7 +2865,10 @@ void ipl::scene::AddressEdit::get_friendinfo() {
memcpy(&ipl::scene::sFriendInfo, &mpFriendCache->getInfo(mSelectedFriend),
sizeof(ipl::scene::sFriendInfo));
mString.setName(reinterpret_cast<const wchar_t*>(ipl::scene::sFriendInfo.attr.name));
set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true), mString.mName);
const wchar_t* name = mString.mName;
nw4r::lyt::Pane* namePane =
mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true);
set_textbox(namePane, name);
wchar_t wiiNo[0x100];
wchar_t email[0x102];
@@ -2873,7 +2881,10 @@ void ipl::scene::AddressEdit::get_friendinfo() {
ipl::utility::CharacterCode::ANSIToUTF16(email, reinterpret_cast<const u8*>(&ipl::scene::sFriendInfo.addr), 0x102);
mString.setEMail(email);
}
set_textbox(mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true), mString.mDisplayText);
const wchar_t* displayText = mString.mDisplayText;
nw4r::lyt::Pane* friendCodePane =
mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true);
set_textbox(friendCodePane, displayText);
memcpy(&mCreateID, &ipl::scene::sFriendInfo.attr.fdId, sizeof(mCreateID));
}

View File

@@ -45,7 +45,7 @@ struct CardThreadState {
MEMAllocator sAllocator_;
static CardThreadState* sThread;
extern "C" void* cardThreadMain(void*);
extern "C" void* cardThreadMain();
static char sCardSlotName[3] = "AB";
FileInfo* getCardDirState() {
@@ -302,7 +302,7 @@ void initCardThread() {
OSInitMessageQueue(&sThread->responses, sThread->responseMessages, 0x10);
OSInitMessageQueue(&sThread->requests, sThread->requestMessages, 0x10);
OSCreateThread(&sThread->thread, cardThreadMain, 0,
OSCreateThread(&sThread->thread, (void* (*)(void*))cardThreadMain, 0,
sThread->stack + sizeof(sThread->stack), 0x8000, 0x11, 0);
OSResumeThread(&sThread->thread);
OSSendMessage(&sThread->requests, (OSMessage)10, 0);
@@ -408,7 +408,7 @@ static inline void sendValidityResponse(u32 command, u32 valid) {
OSSendMessage(&sThread->responses, (OSMessage)reply.value, 1);
}
extern "C" void* cardThreadMain(void*) {
extern "C" void* cardThreadMain() {
struct CardThreadLocals {
u8 compareName[6];
u32 message;
@@ -697,9 +697,9 @@ extern "C" s32 loadCardFileIcons(s32 slot, s32 fileNo, CARDDir* dir) {
s32 sectorSize;
CARDFileInfo fileInfo;
} local;
s32 iconAddressOffset;
u32 iconAddressBase;
s32 result;
u32 iconAddressBase;
s32 iconAddressOffset;
result = CARDFastOpen(slot, fileNo, &local.fileInfo);
if (result < 0) {
return result;
@@ -1004,29 +1004,27 @@ sectorSizeError:
sectorSizeDone:
;
{
s32 permissionResult = 0;
statusResult = __CARDGetStatusEx(slot, fileNo, &checkedStatus);
if (statusResult >= 0) {
switch (command) {
case 2:
if (checkedStatus.permission & 8) {
permissionResult = -10;
}
break;
case 3:
if (checkedStatus.permission & 0x10) {
permissionResult = -10;
}
break;
result = 0;
statusResult = __CARDGetStatusEx(slot, fileNo, &checkedStatus);
if (statusResult >= 0) {
switch (command) {
case 2:
if (checkedStatus.permission & 8) {
result = -10;
}
} else {
permissionResult = CARDGetResultCode(slot);
}
if (permissionResult < 0) {
reportCardThreadError(slot, command, permissionResult);
goto finish;
break;
case 3:
if (checkedStatus.permission & 0x10) {
result = -10;
}
break;
}
} else {
result = CARDGetResultCode(slot);
}
if (result < 0) {
reportCardThreadError(slot, command, result);
goto finish;
}
result = __CARDGetStatusEx(slot, fileNo, &createStatus);
@@ -1200,8 +1198,8 @@ copyIoDone:
renamedStatus = moveStatus;
memset(renamedStatus.company, 0, 2);
memset(renamedStatus.gameName, 0, 4);
memset(renamedStatus.fileName, 0, 0x20);
do {
memset(renamedStatus.fileName, 0, 0x20);
sprintf((char*)renamedStatus.fileName, "Broken File%03d", attempt);
result = __CARDSetStatusEx(slot, fileNo, &renamedStatus);
if (result < 0 && result != -7) {

View File

@@ -237,7 +237,10 @@ bool MemoryCardManager::isIconValidate(u8 slot, s16 index) {
bool MemoryCardManager::isBannerEnable(u8 slot, s16 index) {
CardIcons* icons = reinterpret_cast<CardIcons*>(memorycard::getIconStateArray());
return icons[slot][mFile[slot][index].fileNo].bannerEnable != 0;
u32 file = mFile[slot][index].fileNo;
memorycard::IconState* icon = &icons[slot][file];
u8 enabled = icon->bannerEnable;
return enabled != 0;
}
void MemoryCardManager::update_icon_anm() {
@@ -281,11 +284,7 @@ void MemoryCardManager::update_file_array(u8 slot) {
memorycard::CardState* states = memorycard::getCardSlotState();
states[slot].changed = 0;
sort_file_array(slot);
enum CardCommand {
NoCommand, Format, Copy, Move, Delete,
CopyComplete, MoveComplete, DeleteComplete, FormatComplete
};
CardCommand command = static_cast<CardCommand>(mLastCmd);
long command = mLastCmd;
if ((u32)(command - 1) <= 3) {
if (mLastResult == -0x15) {
mLastResult = memorycard::getCardLastCMDFCmdResult();

View File

@@ -1266,9 +1266,10 @@ namespace ipl {
memoPosition.x = translation.x;
memoPosition.y = translation.y;
memoPosition.z = translation.z;
f32 bodyY = memoPosition.y;
mpDialogLayout->FindPaneByName("header_header");
nw4r::lyt::Pane* bodyPane = mpDialogLayout->FindPaneByName("header_body");
f32 bodyY = memoPosition.y;
if (bodyY < 500.0f) {
mpDialogLayout->draw("header_header");
}
@@ -1281,11 +1282,11 @@ namespace ipl {
++child;
}
s32 lineCount = 0;
f32 messageOffset = 0.0f;
f32 bodyHeight = bodyPane->GetSize().height;
if (mNandTitleCount != 0) {
const wchar_t* messageForCount = System::getMessage(0xCB);
s32 lineCount = 0;
const wchar_t* newline = wcsstr(messageForCount, L"\n");
while (newline != NULL) {
++lineCount;

View File

@@ -1341,11 +1341,13 @@ namespace ipl {
wchar_t* titleName = System::getChannelManager()->getTitleName(
page, channelIndex, 0);
memcpy(titleNames + *titleCount * 0x2a, titleName, 0x2a);
++*titleCount;
u32 nextTitleCount = *titleCount + 1;
*titleCount = nextTitleCount;
if (bytes >= secondUsage[0] && blocks >= secondUsage[1]) {
return true;
if (bytes < secondUsage[0] || blocks < secondUsage[1]) {
continue;
}
return true;
}
}
}
@@ -1406,10 +1408,10 @@ namespace ipl {
getCurrentTitleUsage(&bytes, &blocks);
*titleCount = 0;
ESTitleId titleId;
for (int page = MAX_CHANNEL_PAGE - 1; page >= 0; --page) {
for (int order = 0; order < MAX_CHANNEL_INDEX; ++order) {
int channelIndex = channelOrder[order];
ESTitleId titleId;
const channel::SEntry& channelInfo =
System::getChannelManager()->mChannels[page][channelIndex];
if (channelInfo.loadedBnr) {
@@ -2710,19 +2712,23 @@ namespace ipl {
nw4r::ut::Rect projection;
System::getProjectionRect(&projection);
GXRenderModeObj* renderMode = System::getRenderModeObj();
f32 scissorX;
f32 scissorY;
f32 scissorWidth;
f32 scissorY;
f32 scissorX;
f32 scissorHeight;
u16 framebufferWidth;
u16 framebufferHeight;
if (mState == 7 || mState == 12 || mState == 14) {
nw4r::math::MTX44 matrix;
f32 right = mPosition.x + projection.right / mScale.x;
f32 left = mPosition.x + projection.left / mScale.x;
f32 bottom = mPosition.y - projection.bottom / mScale.y;
f32 top = mPosition.y - projection.top / mScale.y;
f32 rightScale = projection.right / mScale.x;
f32 leftScale = projection.left / mScale.x;
f32 bottomScale = projection.bottom / mScale.y;
f32 topScale = projection.top / mScale.y;
f32 bottom = mPosition.y - bottomScale;
f32 right = mPosition.x + rightScale;
f32 left = mPosition.x + leftScale;
f32 top = mPosition.y - topScale;
MTXOrtho(matrix, top, bottom, left, right, -100.0f, 100.0f);
nw4r::math::VEC4 input(position.x, position.y, 0.0f, 1.0f);
@@ -2730,13 +2736,14 @@ namespace ipl {
nw4r::math::VEC4Transform(&transformed, &matrix, &input);
framebufferWidth = renderMode->fbWidth;
framebufferHeight = renderMode->efbHeight;
const f32 projectionWidth = projection.GetWidth();
scissorX = ((1.0f + transformed.x) * framebufferWidth / 2) -
((mThumbOffsetX * mScale.x) * (framebufferWidth / projectionWidth));
scissorWidth = projection.GetWidth();
scissorY = (framebufferHeight - ((1.0f + transformed.y) * framebufferHeight / 2)) -
(mThumbOffsetY * mScale.y);
f32 widthScale = framebufferWidth / scissorWidth;
scissorX = ((1.0f + transformed.x) * framebufferWidth / 2) -
((mThumbOffsetX * mScale.x) * widthScale);
scissorWidth = 2.0f * (mThumbOffsetX * mScale.x) *
(framebufferWidth / projectionWidth);
(framebufferWidth / scissorWidth);
scissorHeight = 2.0f * (mThumbOffsetY * mScale.y);
} else {
framebufferWidth = renderMode->fbWidth;
@@ -3406,7 +3413,7 @@ namespace ipl {
case ::gui::EventHandler::ON_TRIG:
if (mpScene->mState == 1 && controller != NULL) {
BOOL writeProtected = mpScene->mpSDWorker->is_sd_write_protected();
if (controller->pinchTrg() && iplSDChannelObj_hasAppMeta(channel) &&
if (controller->pinchTrg() && SDChannelSelect::isChannelReady(channel) &&
!mpScene->mbSDCardBroken) {
if (!writeProtected) {
mpScene->startDrag(controller, mpScene->mCurrentPage, index);
@@ -3420,20 +3427,20 @@ namespace ipl {
break;
case ::gui::EventHandler::ON_DRAG:
if (mpScene->mState == 1 && controller != NULL && controller->decide() &&
iplSDChannelObj_hasAppMeta(channel)) {
SDChannelSelect::isChannelReady(channel)) {
mpScene->selectChannel(channel->getPage(), channel->getIndex());
TVRCManager::getHandle()->setEnable(FALSE);
}
break;
case ::gui::EventHandler::ON_POINT:
if (mpScene->mState == 1 && iplSDChannelObj_hasAppMeta(channel)) {
if (mpScene->mState == 1 && SDChannelSelect::isChannelReady(channel)) {
iplSDChannelObj_startAppear(channel, 0);
snd::getSystem()->startSE("WIPL_SE_CH_TARGETTING");
controller->rumble(1);
}
break;
case ::gui::EventHandler::ON_LEFT:
if (mpScene->mState == 1 && iplSDChannelObj_hasAppMeta(channel)) {
if (mpScene->mState == 1 && SDChannelSelect::isChannelReady(channel)) {
iplSDChannelObj_startDisappear(channel, 0);
}
break;

View File

@@ -3,10 +3,6 @@
#define IPL_SDMEMORY_DIALOG_STATE_ACCESSOR
#define IPL_SDMEMORY_COMPLETION_PCT_ACCESSOR
#define IPL_CHANNEL_TITLE_NOVTABLE
#include "math/iplInterporation.h"
#undef IPL_CHANNEL_TITLE_NOVTABLE
#include "scene/sdChannelTitle/iplSDChannelTitle.h"
#include "scene/sdChannelSelect/iplSDChannelSelect.h"
#include "system/iplSystem.h"
@@ -1558,5 +1554,15 @@ void SDChannelTitle::startResetting() {
snd::getSystem()->resetAllSound();
}
extern "C" void iplSDChannelTitle_onTitleButtonEvent(SDTitleButtonEventHandler* handler, u32 component,
u32 event, const controller::Interface* controller) {
handler->onEventDerived(component, event, controller);
}
extern "C" void iplSDChannelTitle_onTitlePaneEvent(SDTitlePaneEventHandler* handler, u32 component,
u32 event, const controller::Interface* controller) {
handler->onEvent(component, event, const_cast<controller::Interface*>(controller));
}
}
}

View File

@@ -167,11 +167,6 @@ typedef struct AOSSKeySchedule {
u32 length;
} AOSSKeySchedule;
typedef struct AOSSKeyMaterial {
u8 nonce[2];
u8 address[8];
} AOSSKeyMaterial;
typedef struct AOSSReceiveBuffer {
s32 socket;
u32 length;
@@ -262,7 +257,8 @@ static AOSSRuntimeState s_runtime;
static AOSSConfigData s_configData;
static u8 s_networkBuffer[0x280];
static struct {
AOSSKeyMaterial key;
u8 keyNonce[2];
u8 keyAddress[8];
u8 payload[0x5e];
} s_packetState;
static u32 s_crcTable[0x100];
@@ -287,10 +283,8 @@ extern int AOSSi_cancel_flag;
extern int AOSSi_WLANGetBSSList(void** list);
extern int AOSSi_Status(int status);
extern int AOSSi_SetNCDIPAddr(u32 ipAddress, u32 netmask, u32 gateway, u32 dns1, u32 dns2);
extern void AOSSi_Sleep(u32 duration);
struct AOSSConnection;
struct AOSSConnectionStatus;
extern int AOSSi_WLANConnect(struct AOSSConnection* connection, struct AOSSConnectionStatus* status);
extern int AOSSi_Sleep(u32 duration);
extern int AOSSi_WLANConnect(void);
extern int SOPoll(AOSSPollDescriptor* descriptors, int count, s32 timeoutHigh, s32 timeoutLow);
extern int SORecvFrom(int socket, void* buffer, int length, int flags, void* address);
extern int SOSendTo(int socket, const void* buffer, int length, int flags, const void* address);
@@ -623,20 +617,6 @@ int AOSS_Init_old(AOSSInitInput* input)
}
resultCode = 0xffffffff;
} else {
/* The original initialization path repeats this status check. */
if (state != 0) {
input->status = 0xf;
if (s_accessPointConfig) {
AOSSi_Free(s_accessPointConfig);
s_accessPointConfig = 0;
}
if (s_accessPointList) {
AOSSi_Free(s_accessPointList);
s_accessPointList = 0;
}
resultCode = 0xffffffff;
goto finish_initialization;
}
s_accessPointConfig = (int *)AOSSi_Alloc(0x58);
if (s_accessPointConfig == 0) {
input->status = 0xf;
@@ -744,15 +724,19 @@ handle_initial_link:
AOSSi_Free(s_accessPointList);
s_accessPointList = 0;
}
{
int recordIndex;
for (recordIndex = 0; recordIndex < 3; recordIndex++) {
memcpy(requestRecords.records[recordIndex].address, input->optionData, 6);
requestRecords.records[recordIndex].transactionId = rand();
requestRecords.records[recordIndex].transactionId =
SOHtoNs(requestRecords.records[recordIndex].transactionId);
}
}
requestResult = 0;
state = 0;
do {
AOSSRequestRecord* currentRecord = &requestRecords.records[requestResult];
u16 transactionId;
memcpy(requestRecords.bytes + state,input->optionData,6);
transactionId = rand();
currentRecord->transactionId = transactionId;
receivedLength = SOHtoNs(transactionId);
currentRecord->transactionId = receivedLength;
requestResult++;
state += sizeof(AOSSRequestRecord);
} while (requestResult < 3);
s_socket = SOSocket(2,2,0);
if (s_socket < 0) {
input->status = 0xf;
@@ -817,7 +801,7 @@ perform_request:
if (s_socketStarted == 1) {
s_socketStarted = 0;
requestResult = SOCleanup();
if (requestResult >= 0) goto request_socket_cleanup_complete;
if (-1 < requestResult) goto request_socket_cleanup_complete;
requestResult = -1;
}
else {
@@ -906,6 +890,7 @@ request_socket_cleanup_complete:
resultCode = 0xffffffff;
goto finish_initialization;
}
initialSleep = remainingWait <= 100 ? remainingWait : 100;
AOSSi_Sleep(remainingWait > 100 ? 100 : remainingWait);
if (remainingWait > 100) initialSleep = 100;
else initialSleep = remainingWait;
@@ -958,76 +943,73 @@ request_socket_cleanup_complete:
goto finish_initialization;
}
}
{
int sendResult;
int requestSocket = s_socket;
switch (protocolState) {
case 0:
if (s_operationState != 2) {
s_operationState = 2;
AOSSi_Status(2);
}
sendResult = AOSSSendDiscoveryRequest(networkAddresses,&requestRecords,requestSocket);
break;
case 1:
if (s_operationState != 3) {
s_operationState = 3;
AOSSi_Status(3);
}
sendResult = AOSSSendHelloRequest(networkAddresses,&requestRecords,requestSocket);
break;
case 2:
if (s_operationState != 5) {
s_operationState = 5;
AOSSi_Status(5);
}
packetWords = s_responseBuffer;
memset(s_responseBuffer,0,0x5dc);
memcpy(messageIdentity,&requestRecords.records[2],8);
manufacturerLength = strlen(s_manufacturer);
AOSSXorBufferWithKey(messageIdentity,8,s_manufacturer,manufacturerLength);
receivedLength = SOHtoNs(1);
packetWords->initialLength = receivedLength;
packetWords->initialType = 0;
packetWords->initialSequence = 0;
packetWords->responseLength = SOHtoNs(0x3000);
packetWords->responseType = 0;
packetWords->finalLength = SOHtoNs(0);
packetWords->finalSequence = SOHtoNs(0);
packetWords->reserved = 0;
packetWords->messageType = 0x11;
memcpy(packetWords->messageIdentity,messageIdentity,8);
memset(&replyAddress,0,8);
replyAddress.family = 2;
replyAddress.port = SOHtoNs(0x5790);
replyAddress.address = SOHtoNl(s_runtime.ipAddress);
if ((s8)s_runtime.active == 0) {
replyAddress.address = 0xffffffff;
}
replyAddress.length = 8;
SOSendTo(requestSocket,packetWords,0x18,0,&replyAddress);
sendResult = 0;
break;
default:
sendResult = -1;
break;
requestResult = s_socket;
switch (protocolState) {
case 0:
if (s_operationState != 2) {
s_operationState = 2;
AOSSi_Status(2);
}
if (sendResult == -1) {
s_errorCode = protocolState + 0x1000;
input->status = 0xf;
if (s_accessPointConfig) {
AOSSi_Free(s_accessPointConfig);
s_accessPointConfig = (int *)0x0;
}
if (s_accessPointList) {
AOSSi_Free(s_accessPointList);
s_accessPointList = 0;
}
resultCode = 0xffffffff;
goto finish_initialization;
requestResult = AOSSSendDiscoveryRequest(networkAddresses,&requestRecords,requestResult);
break;
case 1:
if (s_operationState != 3) {
s_operationState = 3;
AOSSi_Status(3);
}
requestResult = AOSSSendHelloRequest(networkAddresses,&requestRecords,requestResult);
break;
case 2:
if (s_operationState != 5) {
s_operationState = 5;
AOSSi_Status(5);
}
packetWords = s_responseBuffer;
memset(s_responseBuffer,0,0x5dc);
memcpy(messageIdentity,&requestRecords.records[2],8);
manufacturerLength = strlen(s_manufacturer);
AOSSXorBufferWithKey(messageIdentity,8,s_manufacturer,manufacturerLength);
receivedLength = SOHtoNs(1);
packetWords->initialLength = receivedLength;
packetWords->initialType = 0;
packetWords->initialSequence = 0;
packetWords->responseLength = SOHtoNs(0x3000);
packetWords->responseType = 0;
packetWords->finalLength = SOHtoNs(0);
packetWords->finalSequence = SOHtoNs(0);
packetWords->reserved = 0;
packetWords->messageType = 0x11;
memcpy(packetWords->messageIdentity,messageIdentity,8);
memset(&replyAddress,0,8);
replyAddress.family = 2;
replyAddress.port = SOHtoNs(0x5790);
replyAddress.address = SOHtoNl(s_runtime.ipAddress);
if ((s8)s_runtime.active == 0) {
replyAddress.address = 0xffffffff;
}
replyAddress.length = 8;
SOSendTo(requestResult,packetWords,0x18,0,&replyAddress);
requestResult = 0;
break;
default:
requestResult = -1;
break;
}
if (requestResult == -1) {
s_errorCode = protocolState + 0x1000;
input->status = 0xf;
if (s_accessPointConfig) {
AOSSi_Free(s_accessPointConfig);
s_accessPointConfig = (int *)0x0;
}
if (s_accessPointList) {
AOSSi_Free(s_accessPointList);
s_accessPointList = 0;
}
resultCode = 0xffffffff;
goto finish_initialization;
}
memset(packetBuffer,0,0x5f8);
pollTime.seconds = timeoutMilliseconds / 1000;
@@ -1046,12 +1028,10 @@ request_socket_cleanup_complete:
if (0 < requestResult) goto process_received_packet;
receivedPackets = receivedPackets + 1;
if (receivedPackets > attemptCount) {
if (protocolState == 0) {
s_errorCode = 0xf;
} else if (protocolState == 1) {
s_errorCode = 0x10;
} else {
s_errorCode = 0x11;
switch (protocolState) {
case 0: s_errorCode = 0xf; break;
case 1: s_errorCode = 0x10; break;
default: s_errorCode = 0x11; break;
}
protocolResult = -1;
goto close_protocol_socket;
@@ -1118,7 +1098,8 @@ process_received_packet:
}
else {
if (protocolState != requestResult) {
if (requestResult != 2) goto advance_protocol_state;
protocolState = requestResult;
if (requestResult != 2) goto perform_request;
if (s_socket != -1) {
SOClose(s_socket);
}
@@ -1256,8 +1237,7 @@ wait_for_packet:
goto finish_initialization;
}
AOSSi_Sleep(remainingWait > 100 ? 100 : remainingWait);
if (remainingWait > 100) initialSleep = 100;
else initialSleep = remainingWait;
initialSleep = remainingWait <= 100 ? remainingWait : 100;
}
if (AOSSi_cancel_flag == 1) {
input->status = 0xf;
@@ -1314,18 +1294,15 @@ wait_for_packet:
resultCode = 0xffffffff;
goto finish_initialization;
}
advance_protocol_state:
protocolState = requestResult;
goto perform_request;
}
protocolState = requestResult;
if (receivedPackets > waitSettings.halfwords.high) {
if (requestResult == 0) {
s_errorCode = 0xf;
} else if (requestResult == 1) {
s_errorCode = 0x10;
} else {
s_errorCode = 0x11;
switch (requestResult) {
case 0: s_errorCode = 0xf; break;
case 1: s_errorCode = 0x10; break;
default: s_errorCode = 0x11; break;
}
protocolResult = -1;
goto close_protocol_socket;
@@ -1345,7 +1322,8 @@ advance_protocol_state:
resultCode = 0xffffffff;
goto finish_initialization;
}
AOSSi_Sleep(retryDelay > 100 ? 100 : retryDelay);
if (retryDelay > 100) AOSSi_Sleep(100);
else AOSSi_Sleep(retryDelay);
if (retryDelay > 100) delayStep = 100;
else delayStep = retryDelay;
}
@@ -1372,7 +1350,7 @@ close_protocol_socket:
if (s_socketStarted == 1) {
s_socketStarted = 0;
state = SOCleanup();
if (state >= 0) goto protocol_socket_cleanup_complete;
if (-1 < state) goto protocol_socket_cleanup_complete;
state = -1;
}
else {
@@ -1851,22 +1829,24 @@ int AOSSHandleFinalReply(int state, AOSSReceiveBuffer* packet, int* count, AOSSR
}
int AOSSDecryptMessage(AOSSDecryptionMessage* message) {
struct { u32 expected; u32 actual; } integrity;
u32 checksum;
u8 manufacturerAddress[8];
AOSSKeySchedule schedule;
AOSSEncryptedPayload* encrypted = &message->payload.encrypted;
u32 firstValue;
u32 secondValue;
u8* state;
u8* decryptedData;
u32 controlFlags;
u32 dataLength;
u32 i;
s32 crcIndex;
u32 firstIndex;
u32 secondIndex;
u8* decryptedData;
u32 controlFlags;
u32 firstValue;
u32 secondValue;
u32 stateIndex;
u32 crc;
const u8* inputCursor;
u32 dataLength;
u8* state;
u8* outputCursor;
int result;
memcpy(manufacturerAddress, message->manufacturerAddress, sizeof(manufacturerAddress));
@@ -1898,16 +1878,18 @@ int AOSSDecryptMessage(AOSSDecryptionMessage* message) {
return 100;
}
integrity.expected = message->checksum;
checksum = message->checksum;
schedule.bytes = AOSSi_Alloc(dataLength);
if (schedule.bytes == 0) {
s_errorCode = 2;
result = -1;
} else {
memcpy(s_packetState.key.nonce, &encrypted->keyNonce, sizeof(encrypted->keyNonce));
memcpy(s_packetState.key.address, s_accessPointName, sizeof(s_accessPointName));
AOSSInitKeySchedule(&schedule, (const u8*)&s_packetState.key, sizeof(s_packetState.key), dataLength);
memcpy(s_packetState.keyNonce, &encrypted->keyNonce, sizeof(encrypted->keyNonce));
memcpy(s_packetState.keyAddress, s_accessPointName, sizeof(s_accessPointName));
AOSSInitKeySchedule(&schedule, s_packetState.keyNonce,
sizeof(s_packetState.keyNonce) + sizeof(s_packetState.keyAddress), dataLength);
outputCursor = decryptedData;
inputCursor = encrypted->data;
for (i = 0; i < dataLength; i++) {
state = schedule.bytes;
@@ -1920,18 +1902,15 @@ int AOSSDecryptMessage(AOSSDecryptionMessage* message) {
schedule.j = secondIndex;
state[secondIndex] = (u8)firstValue;
state[firstIndex] = (u8)secondValue;
{
u8 streamByte = state[stateIndex % schedule.length];
decryptedData[i] = streamByte ^ *inputCursor++;
}
*outputCursor++ = *inputCursor++ ^ state[stateIndex % schedule.length];
}
integrity.actual = 0xffffffff;
crc = 0xffffffff;
AOSSInitCrc32Table(0, s_crcTable);
for (crcIndex = 0; crcIndex < (s32)dataLength; crcIndex++) {
integrity.actual = (integrity.actual >> 8) ^ s_crcTable[(integrity.actual ^ decryptedData[crcIndex]) & 0xff];
crc = (crc >> 8) ^ s_crcTable[(crc ^ decryptedData[crcIndex]) & 0xff];
}
if (((integrity.actual ^ 0xffffffff) & 0xff) != integrity.expected) {
if (((crc ^ 0xffffffff) & 0xff) != checksum) {
s_errorCode = 0x12;
AOSSi_Free(schedule.bytes);
result = -1;
@@ -2337,8 +2316,8 @@ int AOSSSendHelloRequest(void* packet, void* request, int socket) {
u16 nonce;
u32 stateLength;
u32 index;
u32 firstIndex;
u32 firstByte;
u32 firstIndex;
u32 secondIndex;
u8* state;
u8 value;
@@ -2380,9 +2359,10 @@ int AOSSSendHelloRequest(void* packet, void* request, int socket) {
if (construction.schedule.bytes != 0) {
nonce = (u16)rand();
memcpy(&payload->encrypted.key.nonce, &nonce, 2);
memcpy(s_packetState.key.nonce, payload->encrypted.key.nonceBytes, 2);
memcpy(s_packetState.key.address, s_accessPointName, 8);
AOSSInitKeySchedule(&construction.schedule, (const u8*)&s_packetState.key, sizeof(s_packetState.key), 8);
memcpy(s_packetState.keyNonce, payload->encrypted.key.nonceBytes, 2);
memcpy(s_packetState.keyAddress, s_accessPointName, 8);
AOSSInitKeySchedule(&construction.schedule, s_packetState.keyNonce,
sizeof(s_packetState.keyNonce) + sizeof(s_packetState.keyAddress), 8);
for (index = 0; index < 8; index++) {
state = construction.schedule.bytes;
firstIndex = (construction.schedule.i + 1) % construction.schedule.length & 0xff;
@@ -2566,7 +2546,7 @@ int AOSSConnectAndAwaitHost(void* settings, void* config) {
s32 connectionAttempts = 0;
u32 ticksPerMillisecond;
if (AOSSi_WLANConnect(settings, config) != 0) {
if (AOSSi_WLANConnect() != 0) {
return -1;
}

View File

@@ -126,7 +126,7 @@ int AOSSi_EndLocal(void) {
return 0;
}
int AOSSi_WLANGetBSSList(void** output) {
int AOSSi_WLANGetBSSList(struct AOSSAccessPointList** output) {
int result = -1;
int startupRetries = 0;
WDScanParam scan ATTRIBUTE_ALIGN(32);
@@ -338,7 +338,7 @@ void AOSSi_Sleep(u32 milliseconds) {
AOSSi_SleepMs(milliseconds);
}
int AOSSi_Status(int status) {
int AOSSi_Status(void) {
if (statusCallback != NULL) {
statusCallback();
}

View File

@@ -542,7 +542,7 @@ s32 gAtermState;
void ATERMAlarmWakeQueue(OSAlarm* alarm, OSContext* context);
s32 ATERMRunConfigProtocol(void);
void ATERMMd5Update(AtermMd5Context* context, u8* input, u32 length);
void ATERMMd5Update(AtermMd5Context* context, void* input, u32 length);
extern u8 gAtermDigestFill[64];
extern u8* gAtermRequestOptions;
int ATERMAesKeyWrap(u16* destination, u16* source, u32 length, void* key, u32 keyLength);
@@ -1442,6 +1442,8 @@ s32 ATERMRunConfigProtocol(void) {
AtermSocketAddress peerAddress;
AtermThreadBuffer* response = (AtermThreadBuffer*)&gAtermConfigurationResult.responseLength;
void* sessionKey = gAtermResponseBuffer.session.keyMaterial;
AtermMd5Context digestContext;
u8 digestLength[8];
s32 socket = 0;
s32 result = -5;
s32 failed = 0;
@@ -1545,10 +1547,10 @@ s32 ATERMRunConfigProtocol(void) {
break;
case 5:
{
u8 optionIds[7] = {6, 0, 1, 2, 3, 4, 5};
AtermRequestOption8* shortOption = (AtermRequestOption8*)gAtermRequestOptions;
AtermRequestOption16* longOption;
u16 enabled = SOHtoNs(1);
u8 optionIds[7] = {6, 0, 1, 2, 3, 4, 5};
AtermSocketAddress sendAddress;
u8* optionEnd;
memset(shortOption, 0, 4);
@@ -1610,16 +1612,18 @@ s32 ATERMRunConfigProtocol(void) {
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
if (receivedLength > 0) {
AtermPacket* packet = (AtermPacket*)gAtermConfigurationResult.packetBuffer;
u32 checksum = 0;
s32 sequence = SONtoHs(packet->sequence);
s32 payloadLength = SONtoHs(packet->length);
u32 checksum = 0;
u8* cursor = gAtermConfigurationResult.packetBuffer;
u8* packetEnd = packet->payload + payloadLength;
u8* payload;
u8* payload = packet->payload;
for (; cursor < packetEnd; cursor++) {
checksum += *cursor;
}
payload = (u16)checksum == SONtoHs(*(u16*)packetEnd) ? packet->payload : NULL;
if ((u16)checksum != SONtoHs(*(u16*)packetEnd)) {
payload = NULL;
}
if (payload == NULL) {
payloadLength = 0;
} else if (sequence != 3) {
@@ -1648,8 +1652,6 @@ s32 ATERMRunConfigProtocol(void) {
}
{
AtermProgress progress;
AtermMd5Context digestContext;
u8 digestLength[8];
u32 authenticationTime = (u32)(OSGetTime() /
(__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
u32 index;
@@ -1662,7 +1664,7 @@ s32 ATERMRunConfigProtocol(void) {
digestContext.state[1] = 0xEFCDAB89;
digestContext.state[2] = 0x98BADCFE;
digestContext.state[3] = 0x10325476;
ATERMMd5Update(&digestContext, (u8*)&authenticationTime, sizeof(authenticationTime));
ATERMMd5Update(&digestContext, &authenticationTime, sizeof(authenticationTime));
digestLength[0] = digestContext.bitCountLow;
digestLength[1] = digestContext.bitCountLow >> 8;
digestLength[2] = digestContext.bitCountLow >> 16;
@@ -1675,13 +1677,22 @@ s32 ATERMRunConfigProtocol(void) {
ATERMMd5Update(&digestContext, gAtermDigestFill,
digestBytes < 56 ? 56 - digestBytes : 120 - digestBytes);
ATERMMd5Update(&digestContext, digestLength, sizeof(digestLength));
for (index = 0; index < 4; index++) {
u32 word = digestContext.state[index];
response->authentication.digest[index * 4] = word;
response->authentication.digest[index * 4 + 1] = word >> 8;
response->authentication.digest[index * 4 + 2] = word >> 16;
response->authentication.digest[index * 4 + 3] = word >> 24;
}
response->authentication.digest[0] = digestContext.state[0];
response->authentication.digest[1] = digestContext.state[0] >> 8;
response->authentication.digest[2] = digestContext.state[0] >> 16;
response->authentication.digest[3] = digestContext.state[0] >> 24;
response->authentication.digest[4] = digestContext.state[1];
response->authentication.digest[5] = digestContext.state[1] >> 8;
response->authentication.digest[6] = digestContext.state[1] >> 16;
response->authentication.digest[7] = digestContext.state[1] >> 24;
response->authentication.digest[8] = digestContext.state[2];
response->authentication.digest[9] = digestContext.state[2] >> 8;
response->authentication.digest[10] = digestContext.state[2] >> 16;
response->authentication.digest[11] = digestContext.state[2] >> 24;
response->authentication.digest[12] = digestContext.state[3];
response->authentication.digest[13] = digestContext.state[3] >> 8;
response->authentication.digest[14] = digestContext.state[3] >> 16;
response->authentication.digest[15] = digestContext.state[3] >> 24;
{
u8* contextByte = (u8*)&digestContext;
for (index = 0; index < sizeof(digestContext); index++) {
@@ -1734,16 +1745,18 @@ s32 ATERMRunConfigProtocol(void) {
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
if (receivedLength > 0) {
AtermPacket* packet = (AtermPacket*)gAtermConfigurationResult.packetBuffer;
u32 checksum = 0;
s32 sequence = SONtoHs(packet->sequence);
s32 payloadLength = SONtoHs(packet->length);
u32 checksum = 0;
u8* cursor = gAtermConfigurationResult.packetBuffer;
u8* packetEnd = packet->payload + payloadLength;
u8* payload;
u8* payload = packet->payload;
for (; cursor < packetEnd; cursor++) {
checksum += *cursor;
}
payload = (u16)checksum == SONtoHs(*(u16*)packetEnd) ? packet->payload : NULL;
if ((u16)checksum != SONtoHs(*(u16*)packetEnd)) {
payload = NULL;
}
if (payload == NULL) {
payloadLength = 0;
} else if (sequence != 5) {
@@ -2312,17 +2325,12 @@ void ATERMAesDecryptBlock(const u32* expandedKey, u32 rounds, const u8* input, u
void ATERMMd5Transform(u32 state[4], const u8 block[64]);
static inline void atermMd5Copy(void* output, const void* input, u32 length) {
u32 index;
for (index = 0; index < length; index++) {
((u8*)output)[index] = ((const u8*)input)[index];
}
}
void ATERMMd5Update(AtermMd5Context* context, u8* input, u32 length) {
void ATERMMd5Update(AtermMd5Context* context, void* input, u32 length) {
u8* data = (u8*)input;
u32 bufferIndex = (context->bitCountLow >> 3) & 0x3F;
u32 bytesToFill;
u32 copiedBytes;
u32 index;
context->bitCountLow += length << 3;
if (context->bitCountLow < (length << 3)) {
@@ -2331,16 +2339,20 @@ void ATERMMd5Update(AtermMd5Context* context, u8* input, u32 length) {
context->bitCountHigh += length >> 29;
bytesToFill = 64 - bufferIndex;
if (length >= bytesToFill) {
atermMd5Copy(&context->buffer8[bufferIndex], input, bytesToFill);
for (copiedBytes = 0; copiedBytes < bytesToFill; copiedBytes++) {
context->buffer8[bufferIndex + copiedBytes] = data[copiedBytes];
}
ATERMMd5Transform(context->state, context->buffer8);
for (copiedBytes = bytesToFill; copiedBytes + 63 < length; copiedBytes += 64) {
ATERMMd5Transform(context->state, input + copiedBytes);
ATERMMd5Transform(context->state, data + copiedBytes);
}
bufferIndex = 0;
} else {
copiedBytes = 0;
}
atermMd5Copy(&context->buffer8[bufferIndex], &input[copiedBytes], length - copiedBytes);
for (index = 0; index < length - copiedBytes; index++) {
context->buffer8[bufferIndex + index] = data[copiedBytes + index];
}
}
#define ATERM_MD5_STEP(A, B, C, D, WORD, CONSTANT, SHIFT, F) \

View File

@@ -1379,34 +1379,30 @@ namespace ipl {
return;
}
// One pointer, overwritten by the standard-buffer fetch, so the
// browser `this` and standardBuffer share a callee-saved reg.
void* held = surface->GetBrowserThread();
if (held == NULL) {
ext_ead::www::BrowserThread* browser = surface->GetBrowserThread();
if (browser == NULL) {
return;
}
if (static_cast<ext_ead::www::BrowserThread*>(held)->GetTextureBuffer(0, NULL) == NULL) {
if (browser->GetTextureBuffer(0, NULL) == NULL) {
return;
}
ext_ead::www::BrowserWindow* browserWindow =
static_cast<ext_ead::www::BrowserWindow*>(static_cast<ext_ead::www::BrowserThread*>(held)->mpBrowserWindows[0]);
if ((browserWindow == NULL ? 0 : browserWindow->unk_0x2C4[3]) != 0) {
static_cast<ext_ead::www::BrowserWindow*>(browser->mpBrowserWindows[0]);
if ((browserWindow != NULL ? browserWindow->unk_0x2C4[3] : 0) != 0) {
unk_0x91C[2] = 1;
mState = 0;
browserWindow = static_cast<ext_ead::www::BrowserWindow*>(static_cast<ext_ead::www::BrowserThread*>(held)->mpBrowserWindows[0]);
browserWindow = static_cast<ext_ead::www::BrowserWindow*>(browser->mpBrowserWindows[0]);
if (browserWindow != NULL) {
browserWindow->unk_0x2C4[3] = 0;
}
www::trasition::ScrollState scrollState = www::trasition::GetScrollState();
if (scrollState == www::trasition::SCROLL_LEFT) {
browserScrollDirection = 1;
} else {
browserScrollDirection = scrollState == www::trasition::SCROLL_RIGHT ? -1 : 0;
}
browserScrollDirection = scrollState == www::trasition::SCROLL_LEFT
? 1
: (scrollState == www::trasition::SCROLL_RIGHT ? -1 : 0);
www::trasition::ResetScrollState();
void* changedWideBuffer = static_cast<ext_ead::www::BrowserThread*>(held)->GetTextureBuffer(1, NULL);
void* changedStandardBuffer = static_cast<ext_ead::www::BrowserThread*>(held)->GetTextureBuffer(0, NULL);
void* changedWideBuffer = browser->GetTextureBuffer(1, NULL);
void* changedStandardBuffer = browser->GetTextureBuffer(0, NULL);
OSReport("changed %p %p\n", changedStandardBuffer, changedWideBuffer);
ext_ead::www::Heap::reportLeaHeap();
}
@@ -1419,9 +1415,8 @@ namespace ipl {
WWWRect* standardRect;
WWWRect* wideRect;
void* wideBuffer = static_cast<ext_ead::www::BrowserThread*>(held)->GetTextureBuffer(1, &wideRect);
held = static_cast<ext_ead::www::BrowserThread*>(held)->GetTextureBuffer(0, &standardRect);
void* standardBuffer = held;
void* wideBuffer = browser->GetTextureBuffer(1, &wideRect);
void* standardBuffer = browser->GetTextureBuffer(0, &standardRect);
nw4r::ut::Rect projection4x3;
System::getProjectionRect4x3(&projection4x3);
int screenWidth = abs(static_cast<int>(projection4x3.GetWidth()));
@@ -1448,33 +1443,33 @@ namespace ipl {
int wideWidth = abs(static_cast<int>(projection16x9.GetWidth()));
int wideHeight = abs(static_cast<int>(projection16x9.GetHeight()));
f32 wideLeft = -wideWidth / 2;
f32 wideTopL = wideHeight / 2;
f32 wideTop = wideHeight / 2;
f32 wideRight = wideWidth / 2;
f32 wideTopR = wideHeight / 2;
nw4r::ut::Rect leftSide(wideLeft, wideTopL,
nw4r::ut::Rect leftSide(wideLeft, wideTop,
wideLeft + sideDescriptor->textureHeader->width,
wideTopL - sideDescriptor->textureHeader->height);
wideTop - sideDescriptor->textureHeader->height);
nw4r::ut::Rect rightSide(wideRight - sideDescriptor->textureHeader->width,
wideTopR, wideRight, wideTopR - sideDescriptor->textureHeader->height);
wideTop, wideRight, wideTop - sideDescriptor->textureHeader->height);
if (browserScrollDirection != 0) {
void* wideMaterial =
nw4r::lyt::Material* wideMaterial =
mpChangeLayout->FindPaneByName("N_Tra0")->FindMaterialByName("Tex0");
nw4r::lyt::Material* firstStandardMaterial =
mpChangeLayout->FindPaneByName("N_Tra0")->FindMaterialByName("Tex1");
nw4r::lyt::Material* secondStandardMaterial =
mpChangeLayout->FindPaneByName("N_Tra0")->FindMaterialByName("Tex2");
static_cast<nw4r::lyt::Material*>(wideMaterial)->SetTexture(0, wideTexture);
wideMaterial->SetTexture(0, wideTexture);
firstStandardMaterial->SetTexture(0, standardTexture);
secondStandardMaterial->SetTexture(0, standardTexture);
mpChangeLayout->FindPaneByName("N_Tra0")->SetVisible(true);
if (browserScrollDirection == 1) {
wideMaterial = mpSecondAnimation;
static_cast<utility::FrameController*>(wideMaterial)->initFrame();
static_cast<utility::FrameController*>(wideMaterial)->restart();
utility::FrameController* animation = mpSecondAnimation;
animation->initFrame();
animation->restart();
} else {
wideMaterial = mpFirstAnimation;
static_cast<utility::FrameController*>(wideMaterial)->initFrame();
static_cast<utility::FrameController*>(wideMaterial)->restart();
utility::FrameController* animation = mpFirstAnimation;
animation->initFrame();
animation->restart();
}
mpChangeLayout->calc();
browserScrollDirection = 0;
@@ -1514,44 +1509,13 @@ namespace ipl {
}
if (mpWiiSettingFlag->smthMsgData >= 2 && mpWiiSettingFlag->smthMsgData <= 7) {
GXRenderModeObj* pRmode = System::getRenderModeObj();
GXRenderModeObj renderMode;
volatile GXRenderModeObj* srcMode = pRmode;
volatile GXRenderModeObj* dstMode = &renderMode;
int n = 12;
u8* src;
u8* dst = &renderMode.aa;
src = &pRmode->aa;
dstMode->viTVmode = srcMode->viTVmode;
dstMode->fbWidth = srcMode->fbWidth;
dstMode->efbHeight = srcMode->efbHeight;
dstMode->xfbHeight = srcMode->xfbHeight;
dstMode->viXOrigin = srcMode->viXOrigin;
dstMode->viYOrigin = srcMode->viYOrigin;
dstMode->viWidth = srcMode->viWidth;
dstMode->viHeight = srcMode->viHeight;
dstMode->xFBmode = srcMode->xFBmode;
dstMode->field_rendering = srcMode->field_rendering;
dstMode->aa = srcMode->aa;
for (; n != 0; n--) {
dst[1] = src[1];
dst[2] = src[2];
src += 2;
dst += 2;
}
dstMode->vfilter[0] = srcMode->vfilter[0];
dstMode->vfilter[1] = srcMode->vfilter[1];
dstMode->vfilter[2] = srcMode->vfilter[2];
dstMode->vfilter[3] = srcMode->vfilter[3];
dstMode->vfilter[4] = srcMode->vfilter[4];
dstMode->vfilter[5] = srcMode->vfilter[5];
dstMode->vfilter[6] = srcMode->vfilter[6];
GXRenderModeObj renderMode = *System::getRenderModeObj();
u32 left;
u32 top;
u32 width;
u32 height;
GXGetScissor(&left, &top, &width, &height);
GXSetScissor(0, dstMode->efbHeight / 2 - 0xA4, dstMode->fbWidth, 0x132);
GXSetScissor(0, renderMode.efbHeight / 2 - 0xA4, renderMode.fbWidth, 0x132);
mpMainLayout->draw();
GXSetScissor(left, top, width, height);
}
@@ -2481,28 +2445,25 @@ namespace ipl {
void Setting::convertRevIP(u8* destination, const char* address) {
char ascii[20];
int index;
int componentStart;
int count = 0;
u32 value;
u8 character;
int index;
memset(ascii, 0, sizeof(ascii));
utility::CharacterCode::UTF8ToANSI(reinterpret_cast<u8*>(ascii), address);
index = 0;
componentStart = 0;
for (; index < 0x10; ++index) {
character = static_cast<u8>(ascii[index]);
int componentStart = 0;
u8* output = destination;
for (index = 0; index < 0x10; ++index) {
u8 character = static_cast<u8>(ascii[index]);
if (character == '.' || character == 0) {
if (character == 0) {
index = 0x10;
}
ascii[index] = 0;
value = atoi(ascii + componentStart);
u32 value = atoi(ascii + componentStart);
if (value > 0xff) {
value = 0xff;
}
if (count == 0) {
destination[count] = value;
*output = value;
} else {
destination[1] = destination[2];
destination[2] = destination[3];
@@ -2510,6 +2471,7 @@ namespace ipl {
}
componentStart = index + 1;
++count;
++output;
if (count == 3 && index != 0x10) {
value = atoi(ascii + componentStart);
if (value > 0xff) {
@@ -2706,7 +2668,6 @@ namespace ipl {
}
void Setting::scanAP() {
BOOL playing = FALSE;
switch (unk_0x78) {
case 1:
memset(&mAPScanList.count, 0, 0x800);
@@ -2755,8 +2716,7 @@ namespace ipl {
case 6: {
int animationIndex = unk_0x918;
unk_0xB9C = 1;
playing |= mpMainLayout->getAnim(animationIndex)->isPlaying();
if (!playing) {
if (!mpMainLayout->getAnim(animationIndex)->isPlaying()) {
unk_0x78 = 5;
setAPDraw();
if (unk_0x91C[0] != 0) {
@@ -2779,23 +2739,19 @@ namespace ipl {
}
break;
}
case 7: {
int animationIndex = unk_0x918;
case 7:
unk_0xB9C = 1;
playing |= mpMainLayout->getAnim(animationIndex)->isPlaying();
if (!playing) {
if (!mpMainLayout->getAnim(unk_0x918)->isPlaying()) {
updateScroll();
unk_0x78 = 6;
}
break;
}
case 8:
resetAP();
unk_0x91C[2] = 0;
break;
case 9:
playing |= mpMainLayout->getAnim(unk_0x918)->isPlaying();
if (!playing) {
if (!mpMainLayout->getAnim(unk_0x918)->isPlaying()) {
resetFuncMsgQ();
unk_0x78 = 1;
unk_0x918 = -1;

View File

@@ -211,13 +211,13 @@ namespace ipl {
systemDict = System::getZiDicData(i);
}
if (oemDict == NULL && System::getZiDicData(i) != NULL) {
oemDict = System::getZiOemDicData(oemIndex - EZTX_LANG_MAX);
oemDict = System::getZiDicData(oemIndex);
}
}
for (int i = 0, oemIndex = EZTX_LANG_MAX; i < EZTX_LANG_MAX; i++, oemIndex++) {
u8* usedSystemDict = System::getZiDicData(i);
u8* usedOemDict = System::getZiOemDicData(oemIndex - EZTX_LANG_MAX);
u8* usedOemDict = System::getZiDicData(oemIndex);
usedSystemDict = usedSystemDict != NULL ? usedSystemDict : systemDict;
if (usedOemDict == NULL) {

View File

@@ -466,21 +466,19 @@ static const u8 gArDeconvPlttTbl[3072] = {
0x00, 0xD5, 0x00, 0xD6, 0x00, 0xD8, 0x00, 0xDA, 0x00, 0xDC, 0x00, 0xDE, 0x00, 0xDF, 0x00, 0xE1
};
static const u16 gArDc_luminance_huffTable[] = {
0x0001, 0x8002, 0x0003, 0x0000, 0xC003, 0xC004, 0x8005, 0x0001,
0x0002, 0x0003, 0x0004, 0x0005, 0x8001, 0x0006, 0x8001, 0x0007,
0x8001, 0x0008, 0x8001, 0x0009, 0x8001, 0x000A, 0x8001, 0x000B,
static const u32 gArDc_luminance_huffTable[] = {
0x00018002, 0x00030000, 0xC003C004, 0x80050001, 0x00020003, 0x00040005,
0x80010006, 0x80010007, 0x80010008, 0x80010009, 0x8001000A, 0x8001000B,
};
static const u16 gArDc_chrominance_huffTable[] = {
0x0001, 0xC002, 0x8003, 0x0000, 0x0001, 0x0002, 0x8001, 0x0003,
0x8001, 0x0004, 0x8001, 0x0005, 0x8001, 0x0006, 0x8001, 0x0007,
0x8001, 0x0008, 0x8001, 0x0009, 0x8001, 0x000A, 0x8001, 0x000B,
static const u32 gArDc_chrominance_huffTable[] = {
0x0001C002, 0x80030000, 0x00010002, 0x80010003, 0x80010004, 0x80010005,
0x80010006, 0x80010007, 0x80010008, 0x80010009, 0x8001000A, 0x8001000B,
};
#pragma pack(1)
struct HufftreeData {
const u16* tables[4];
const u32* tables[4];
char messages[0x1BB];
};
#pragma pack()
@@ -933,15 +931,17 @@ void CArGBAOdh::cdj_c_makeHeader(SArCDJ_OdhMaster* master, u32 size) {
}
s32 CArGBAOdh::cdj_c_colorConv(SArCDJ_OdhMaster* master, u8* sourceData, int format) {
u32 paddedWidth;
u16 width;
u16 height;
u8* workPlane;
u8* cbPlane;
int sourceStride;
u8* crPlane;
u8* cbPlane;
u16* dimensions;
int rowIndex;
int sourceStride;
int i;
u16 dimension;
u16 paddedDimensions[2];
dimensions = &master->width;
@@ -952,11 +952,11 @@ s32 CArGBAOdh::cdj_c_colorConv(SArCDJ_OdhMaster* master, u8* sourceData, int for
height = dimensions[1];
for (i = 0; i < 2; i++) {
u16 remainder = dimensions[i] & 7;
if (remainder != 0) {
paddedDimensions[i] = (dimensions[i] + 8) - remainder;
dimension = dimensions[i];
if ((dimension & 7) != 0) {
paddedDimensions[i] = (dimension + 8) - (dimension & 7);
} else {
paddedDimensions[i] = dimensions[i];
paddedDimensions[i] = dimension;
}
}
@@ -972,12 +972,13 @@ s32 CArGBAOdh::cdj_c_colorConv(SArCDJ_OdhMaster* master, u8* sourceData, int for
}
}
paddedWidth = paddedDimensions[0];
for (rowIndex = 0; rowIndex < (s32)height; rowIndex++) {
LineConv11(sourceData + (rowIndex & 3) * 8 + rowIndex / 4 * sourceStride, workPlane, cbPlane, crPlane,
dimensions[0], dimensions[1], (const long*)gArConvPlttTbl, format);
workPlane += paddedDimensions[0];
cbPlane += paddedDimensions[0];
crPlane += paddedDimensions[0];
workPlane += paddedWidth;
cbPlane += paddedWidth;
crPlane += paddedWidth;
}
return 0;
@@ -1361,10 +1362,12 @@ s32 CArGBAOdh::cdj_d_initializeDecompressOdh(SArCDJ_OdhMaster* master, u8* workB
}
s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int workSize) {
int blockStride;
int workBufferSize = workSize;
u8 xSampling;
u8 coefficientIndex;
u16 blockWidth;
int blockRowStride;
int planeOffset;
u32 sourceLimit = srcSize;
int statusOrOffset;
@@ -1377,6 +1380,8 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
blockWidth = master->blocksWide;
blockRowSize = (u32)blockWidth * 0x38;
rowStride = (u32)blockWidth << 3;
blockRowStride = blockRowSize * 2;
blockStride = (u32)blockWidth << 4;
do {
xSampling = master->xSampling;
if ((xSampling == 1U) && (master->ySampling == 1U)) {
@@ -1407,9 +1412,9 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
coefficientIndex = odh_natural_order[naturalIndex];
master->coefficients[coefficientIndex] = master->dcCoefficients[naturalIndex];
}
statusOrOffset = (u32)master->blockX * 8 +
(u32)master->blocksWide * ((u32)master->blockY << 6) +
(u32)master->blocksHigh * ((u32)master->blocksWide << 6);
statusOrOffset = ((u32)master->blockY << 6) * (u32)master->blocksWide +
((u32)master->blocksHigh * ((u32)master->blocksWide << 6) +
(u32)master->blockX * 8);
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
statusOrOffset = -0x7ffffffa;
goto finishBlock;
@@ -1449,14 +1454,14 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
}
planeOffset = (u32)master->blockX * 0x10 +
(u32)master->blocksWide * ((u32)master->blockY << 6) * 2;
requiredBlockEnd = planeOffset + (blockRowSize * 2) + 8;
requiredBlockEnd = planeOffset + blockRowStride + 8;
if (requiredBlockEnd > workBufferSize) {
statusOrOffset = -0x7ffffffa;
goto finishBlock;
}
idct_fast
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
, ((u32)blockWidth << 4));
,blockStride);
statusOrOffset = huffmanDecoder
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
master->chrominanceRequest.bitstream = master->luminanceRequest.bitstream;
@@ -1472,7 +1477,7 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
}
idct_fast
(range_limit,master->quantizationTables,master->coefficients,
(u8*)((u32)planeOffset + (u32)master->workBuffer) + 8, ((u32)blockWidth << 4));
planeOffset + master->workBuffer + 8,blockStride);
statusOrOffset = huffmanDecoder
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 1, sourceLimit);
if (statusOrOffset != 0) return statusOrOffset;
@@ -1538,7 +1543,7 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
coefficientIndex = odh_natural_order[naturalIndex];
master->coefficients[coefficientIndex] = master->dcCoefficients[naturalIndex];
}
planeOffset += (u32)master->blocksWide << 6;
planeOffset = planeOffset + (u32)master->blocksWide * 0x40;
if (planeOffset + blockRowSize + 8 > workBufferSize) {
statusOrOffset = -0x7ffffffa;
goto finishBlock;
@@ -1595,14 +1600,14 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
}
planeOffset = (u32)master->blockX * 0x10 +
(u32)master->blocksWide * ((u32)master->blockY << 6) * 4;
requiredBlockEnd = planeOffset + (blockRowSize * 2) + 8;
requiredBlockEnd = planeOffset + blockRowStride + 8;
if (requiredBlockEnd > workBufferSize) {
statusOrOffset = -0x7ffffffa;
goto finishBlock;
}
idct_fast
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
, ((u32)blockWidth << 4));
,blockStride);
statusOrOffset = huffmanDecoder
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
if (statusOrOffset != 0) return statusOrOffset;
@@ -1613,13 +1618,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
}
int nextOffset = planeOffset + 8;
planeOffset = nextOffset;
if (nextOffset + (blockRowSize * 2) + 8 > workBufferSize) {
if (nextOffset + blockRowStride + 8 > workBufferSize) {
statusOrOffset = -0x7ffffffa;
goto finishBlock;
}
idct_fast
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + nextOffset
, ((u32)blockWidth << 4));
,blockStride);
statusOrOffset = huffmanDecoder
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
if (statusOrOffset != 0) return statusOrOffset;
@@ -1628,16 +1633,15 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
coefficientIndex = odh_natural_order[naturalIndex];
master->coefficients[coefficientIndex] = master->dcCoefficients[naturalIndex];
}
// Store the updated plane in requiredBlockEnd so MWCC keeps it in r15.
requiredBlockEnd = planeOffset + (u32)master->blocksWide * 0x80 + -8;
planeOffset = requiredBlockEnd + (blockRowSize * 2) + 8;
if (planeOffset > workBufferSize) {
planeOffset = planeOffset + (u32)master->blocksWide * 0x80 + -8;
requiredBlockEnd = planeOffset + blockRowStride + 8;
if (requiredBlockEnd > workBufferSize) {
statusOrOffset = -0x7ffffffa;
goto finishBlock;
}
idct_fast
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + requiredBlockEnd
, ((u32)blockWidth << 4));
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
,blockStride);
statusOrOffset = huffmanDecoder
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
master->chrominanceRequest.bitstream = master->luminanceRequest.bitstream;
@@ -1647,13 +1651,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
coefficientIndex = odh_natural_order[naturalIndex];
master->coefficients[coefficientIndex] = master->dcCoefficients[naturalIndex];
}
if (planeOffset + 8 > workBufferSize) {
if (requiredBlockEnd + 8 > workBufferSize) {
statusOrOffset = -0x7ffffffa;
goto finishBlock;
}
idct_fast
(range_limit,master->quantizationTables,master->coefficients,
(u8*)((u32)requiredBlockEnd + (u32)master->workBuffer) + 8, ((u32)blockWidth << 4));
planeOffset + master->workBuffer + 8,blockStride);
statusOrOffset = huffmanDecoder
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 1, sourceLimit);
if (statusOrOffset != 0) return statusOrOffset;
@@ -1692,9 +1696,9 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
rowStride);
}
int nextBlockX = master->blockX + 1;
master->blockX = nextBlockX;
if ((u16)nextBlockX == master->blocksWide) {
blockX = master->blockX + 1;
master->blockX = blockX;
if (blockX == master->blocksWide) {
master->blockX = 0;
master->blockY = master->blockY + 1;
}

View File

@@ -884,187 +884,172 @@ namespace ipl {
return ret;
}
static inline void verifySavedataZD(EGG::Heap* heap, ESTitleId titleId, NANDFileInfo* fileInfo) {
char path[NAND_MAX_PATH];
s32 ret;
u8* saveData = NULL;
BOOL fileOpen = FALSE;
BOOL deleteSaveData = FALSE;
sprintf(path, "/title/%08x/%08x/data/%s", (u32)((titleId & 0x00FFFFFFFFFFFFFFULL) >> 32), (u32)(titleId & 0x00FFFFFFFFFFFFFFULL), "zeldaTp.dat");
if (!ESMisc::ChangeUid(titleId)) {
OSReport("%s::%s: ChangeUid failed\n", __FILE__, __FUNCTION__);
ESMisc::DeleteTitle(heap, titleId);
} else {
ret = NANDPrivateOpen(path, fileInfo, NAND_ACCESS_READ);
if (ret == NAND_RESULT_NOEXISTS) {
OSReport("%s::%s: Does not exist %s: %d\n", __FILE__, __FUNCTION__, path, ret);
} else if (ret != NAND_RESULT_OK) {
OSReport("%s::%s: Open save data file failed: %d\n", __FILE__, __FUNCTION__, ret);
} else {
fileOpen = TRUE;
saveData = (u8*)heap->alloc(0x4000, -DEFAULT_ALIGN);
if (saveData == NULL) {
OSReport("%s::%s: Alloc failed: %d\n", __FILE__, __FUNCTION__, -2);
} else {
memset(saveData, 0, 0x4000);
ret = NANDRead(fileInfo, saveData, 0x4000);
if (ret < 0) {
OSReport("%s::%s: Read file failed: %d\n", __FILE__, __FUNCTION__, ret);
goto cleanup;
} else if (ret != 0x4000) {
OSReport("%s::%s: File size is not correct: %d\n", __FILE__, __FUNCTION__, ret);
deleteSaveData = TRUE;
} else {
u32 offset = 8;
u32 j = 0;
BOOL valid = FALSE;
while (j < 3) {
u8* block = saveData + offset;
if (!checkForNullTermination((char*)block + 0x4e, 8) ||
!checkForNullTermination((char*)block + 0x58, 8) ||
!checkForNullTermination((char*)block + 0x72, 8) ||
!checkForNullTermination((char*)block + 0x8e, 8) ||
!checkForNullTermination((char*)block + 0x1b4, 0x11) ||
!checkForNullTermination((char*)block + 0x1c5, 0x11)) {
goto verify_failed;
}
j++;
offset += 0xa94;
}
offset = 0x2008;
j = 0;
while (j < 3) {
u8* block = saveData + offset;
if (!checkForNullTermination((char*)block + 0x4e, 8) ||
!checkForNullTermination((char*)block + 0x58, 8) ||
!checkForNullTermination((char*)block + 0x72, 8) ||
!checkForNullTermination((char*)block + 0x8e, 8) ||
!checkForNullTermination((char*)block + 0x1b4, 0x11) ||
!checkForNullTermination((char*)block + 0x1c5, 0x11)) {
goto verify_failed;
}
j++;
offset += 0xa94;
}
valid = TRUE;
verify_failed:
if (!valid) {
OSReport("%s::%s: Verify failed for %016llx\n", __FILE__, __FUNCTION__,
titleId);
deleteSaveData = TRUE;
}
}
NANDClose(fileInfo);
fileOpen = FALSE;
if (deleteSaveData) {
ESMisc::DeleteSavedata(titleId, heap);
}
}
}
}
cleanup:
if (saveData != NULL) {
heap->free(saveData);
}
if (fileOpen) {
NANDClose(fileInfo);
}
ESMisc::ChangeUid(SYSMENU_TITLE_ID);
}
static inline s32 DeleteTicketsForce(EGG::Heap* heap, ESTitleId titleId, u8* ticketViews, u32* ticketViewCount) {
ESTicketView* ticketViewList = NULL;
s32 ret;
memset(ticketViews, 0, OSRoundUp32B(sizeof(ESTicketView)));
ret = ES_GetTicketViews(titleId, NULL, ticketViewCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, __FUNCTION__, ret, titleId);
goto cleanup;
}
if (*ticketViewCount == 0) {
return ret;
}
ticketViewList = (ESTicketView*)heap->alloc(*ticketViewCount * OSRoundUp32B(sizeof(ESTicketView)), -DEFAULT_ALIGN);
ret = ES_GetTicketViews(titleId, ticketViewList, ticketViewCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, __FUNCTION__, ret, titleId);
goto cleanup;
}
for (u32 j = 0; j < *ticketViewCount; j++) {
memcpy(ticketViews, (u8*)ticketViewList + j * sizeof(ESTicketView), sizeof(ESTicketView));
ret = ES_DeleteTicket((ESTicketView*)ticketViews);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_DeleteTicket failed: %d for %016llx\n", __FILE__, __FUNCTION__, ret,
((ESTicketView*)ticketViews)->ticketId);
}
}
cleanup:
if (ticketViewList != NULL) {
heap->free(ticketViewList);
}
return ret;
}
static inline s32 InitSavedata(EGG::Heap* heap) {
u8 ticketViews[OSRoundUp32B(sizeof(ESTicketView))] ALIGN32;
NANDFileInfo fileInfo ALIGN32;
u32 ticketViewCount;
ESTitleId* titleIds = NULL;
void ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
u32 titleCount = 0;
ESTitleId* titleIds = NULL;
char path[88];
NANDFileInfo fileInfo ALIGN32;
u8 ticketViews[0xe0] ALIGN32;
u32 ticketViewCount;
ESTicketView* ticketViewList;
s32 ret = ES_ListTitlesOnCard(NULL, &titleCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard1: %d\n", __FILE__, __FUNCTION__, ret);
goto cleanup;
}
titleIds = (ESTitleId*)heap->alloc(OSRoundUp32B(titleCount * sizeof(ESTitleId)), -DEFAULT_ALIGN);
if (ret == ES_ERR_OK) {
titleIds = (ESTitleId*)heap->alloc(OSRoundUp32B(titleCount * sizeof(ESTitleId)), -DEFAULT_ALIGN);
if (titleIds == NULL) {
OSReport("%s::%s: Unable to allocate\n", __FILE__, __FUNCTION__);
goto cleanup;
}
OSReport("%s::%s: Unable to allocate\n", __FILE__, "InitSavedata");
} else {
ret = ES_ListTitlesOnCard(titleIds, &titleCount);
if (ret == ES_ERR_OK) {
ret = ES_ListTitlesOnCard(titleIds, &titleCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard2: %d\n", __FILE__, __FUNCTION__, ret);
goto cleanup;
}
u32 titleIdOffset = 0;
for (u32 i = 0; i < titleCount; i++) {
u32 titleIdHi = *(u32*)((u8*)titleIds + titleIdOffset);
u32 titleIdLo = *(u32*)((u8*)titleIds + titleIdOffset + 4);
{
u8* ticketScratch = ticketViews;
for (u32 i = 0; i < titleCount; i++) {
if ((titleIds[i] & 0xFFFFFFFFFFFFFF00ULL) == 0x00010000525A4400ULL) {
verifySavedataZD(heap, titleIds[i], &fileInfo);
continue;
if ((titleIdLo & 0xffffff00) == 0x525a4400 && titleIdHi == 0x10000) {
u8* saveData = NULL;
BOOL fileOpen = FALSE;
BOOL deleteSaveData = FALSE;
sprintf(path - 8, "/title/%08x/%08x/data/%s", titleIdHi & 0xffffff, titleIdLo, "zeldaTp.dat");
if (!ChangeUid(((ESTitleId)titleIdHi << 32) | titleIdLo)) {
OSReport("%s::%s: ChangeUid failed\n", __FILE__, "verifySavedataZD");
DeleteTitle(heap, ((ESTitleId)titleIdHi << 32) | titleIdLo);
} else {
ret = NANDPrivateOpen(path - 8, (NANDFileInfo*)((u8*)&fileInfo - 0x20), NAND_ACCESS_READ);
if (ret == NAND_RESULT_NOEXISTS) {
OSReport("%s::%s: Does not exist %s: %d\n", __FILE__, "verifySavedataZD", path - 8, ret);
} else if (ret != NAND_RESULT_OK) {
OSReport("%s::%s: Open save data file failed: %d\n", __FILE__, "verifySavedataZD", ret);
} else {
fileOpen = TRUE;
saveData = (u8*)heap->alloc(0x4000, -DEFAULT_ALIGN);
if (saveData == NULL) {
OSReport("%s::%s: Alloc failed: %d\n", __FILE__, "verifySavedataZD", -2);
} else {
memset(saveData, 0, 0x4000);
ret = NANDRead((NANDFileInfo*)((u8*)&fileInfo - 0x20), saveData, 0x4000);
if (ret < 0) {
OSReport("%s::%s: Read file failed: %d\n", __FILE__, "verifySavedataZD", ret);
} else if (ret != 0x4000) {
OSReport("%s::%s: File size is not correct: %d\n", __FILE__, "verifySavedataZD", ret);
deleteSaveData = TRUE;
} else {
u32 offset = 8;
u32 j = 0;
BOOL valid = FALSE;
while (j < 3) {
u8* block = saveData + offset;
if (!checkForNullTermination((char*)block + 0x4e, 8) ||
!checkForNullTermination((char*)block + 0x58, 8) ||
!checkForNullTermination((char*)block + 0x72, 8) ||
!checkForNullTermination((char*)block + 0x8e, 8) ||
!checkForNullTermination((char*)block + 0x1b4, 0x11) ||
!checkForNullTermination((char*)block + 0x1c5, 0x11)) {
goto verify_failed;
}
j++;
offset += 0xa94;
}
offset = 0x2008;
j = 0;
while (j < 3) {
u8* block = saveData + offset;
if (!checkForNullTermination((char*)block + 0x4e, 8) ||
!checkForNullTermination((char*)block + 0x58, 8) ||
!checkForNullTermination((char*)block + 0x72, 8) ||
!checkForNullTermination((char*)block + 0x8e, 8) ||
!checkForNullTermination((char*)block + 0x1b4, 0x11) ||
!checkForNullTermination((char*)block + 0x1c5, 0x11)) {
goto verify_failed;
}
j++;
offset += 0xa94;
}
valid = TRUE;
verify_failed:
if (!valid) {
OSReport("%s::%s: Verify failed for %016llx\n", __FILE__, "verifySavedataZD",
((ESTitleId)titleIdHi << 32) | titleIdLo);
deleteSaveData = TRUE;
}
}
NANDClose((NANDFileInfo*)((u8*)&fileInfo - 0x20));
fileOpen = FALSE;
if (deleteSaveData) {
DeleteSavedata(((ESTitleId)titleIdHi << 32) | titleIdLo, heap);
}
}
}
}
switch (titleIds[i]) {
case 0x0001000844495343ULL:
case 0x000100014A4F4449ULL:
case 0x0001000148415858ULL:
case 0x0001000844564458ULL:
case 0x000100084449534BULL:
ES_DeleteTitle(titleIds[i]);
DeleteTicketsForce(heap, titleIds[i], ticketScratch, &ticketViewCount);
break;
if (saveData != NULL) {
heap->free(saveData);
}
if (fileOpen) {
NANDClose((NANDFileInfo*)((u8*)&fileInfo - 0x20));
}
ChangeUid(SYSMENU_TITLE_ID);
continue;
}
if ((((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x0001000844495343ULL ||
((((ESTitleId)titleIdHi << 32) | titleIdLo) < 0x0001000844495343ULL &&
((((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x000100014a4f4449ULL ||
((((ESTitleId)titleIdHi << 32) | titleIdLo) > 0x000100014a4f4449ULL &&
(((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x0001000148415858ULL))) ||
((((ESTitleId)titleIdHi << 32) | titleIdLo) > 0x0001000844495343ULL &&
((((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x0001000844564458ULL ||
((((ESTitleId)titleIdHi << 32) | titleIdLo) > 0x0001000844564458ULL &&
(((ESTitleId)titleIdHi << 32) | titleIdLo) == 0x000100084449534bULL)))) {
ESTitleId titleId = *(ESTitleId*)((u8*)titleIds + titleIdOffset);
ES_DeleteTitle(titleId);
ticketViewList = NULL;
memset(ticketViews, 0, sizeof(ticketViews));
ret = ES_GetTicketViews(titleId, NULL, &ticketViewCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret, titleId);
} else if (ticketViewCount != 0) {
ticketViewList = (ESTicketView*)heap->alloc(ticketViewCount * 0xe0, -DEFAULT_ALIGN);
ret = ES_GetTicketViews(titleId, ticketViewList, &ticketViewCount);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_GetTicketViews failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret, titleId);
} else {
for (u32 j = 0; j < ticketViewCount; j++) {
memcpy(ticketViews, (u8*)ticketViewList + j * sizeof(ESTicketView), 0xd8);
ret = ES_DeleteTicket((ESTicketView*)ticketViews);
if (ret != ES_ERR_OK) {
OSReport("%s::%s: ES_DeleteTicket failed: %d for %016llx\n", __FILE__, "DeleteTicketsForce", ret,
((ESTicketView*)ticketViews)->ticketId);
}
}
}
}
if (ticketViewList != NULL) {
heap->free(ticketViewList);
}
}
titleIdOffset += 8;
}
} else {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard2: %d\n", __FILE__, "InitSavedata", ret);
}
}
} else {
OSReport("%s::%s: Failed to ES_ListTitlesOnCard1: %d\n", __FILE__, "InitSavedata", ret);
}
cleanup:
if (titleIds != NULL) {
heap->free(titleIds);
}
return ret;
}
s32 ESMisc::DeleteUnauthorizedData(EGG::Heap* heap) {
return InitSavedata(heap);
return;
}
BOOL checkForNullTermination(char* str, u32 len) {

View File

@@ -141,10 +141,10 @@ namespace ipl {
void BScroller::init() {
mState = -1;
unk_0x08.x = 0.0f;
unk_0x08.y = 0.0f;
unk_0x10.x = 0.0f;
unk_0x10.y = 0.0f;
mCurPos.x = 0.0f;
mCurPos.y = 0.0f;
mStartPos.x = 0.0f;
mStartPos.y = 0.0f;
mSpeed = 0.0f;
mSoundFreq = 0.0f;
}
@@ -178,10 +178,10 @@ namespace ipl {
mState = chan;
unk_0x08.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
unk_0x08.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
mCurPos.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
mCurPos.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
unk_0x10 = unk_0x08;
mStartPos = mCurPos;
System::getPointer()->setState(mState, Pointer::STATE_SCROLL);
System::getPointer()->setScrollState(mState);
@@ -199,20 +199,20 @@ namespace ipl {
System::getPointer()->setScrollState(Pointer::NO_SCROLL);
init();
} else if (ctrl->isValidDpd()) {
unk_0x08.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
unk_0x08.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
mCurPos.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
mCurPos.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
mSpeed = _get();
set_arw_param();
} else {
if (math::abs<float>(unk_0x08.x) < math::abs<float>(unk_0x08.y)) {
if (math::abs<float>(mCurPos.x) < math::abs<float>(mCurPos.y)) {
f32 newVal;
if (unk_0x08.y < 0.0f) {
if (mCurPos.y < 0.0f) {
newVal = -1.0f;
} else {
newVal = 1.0f;
}
unk_0x08.y = newVal;
mCurPos.y = newVal;
mSpeed = _get();
set_arw_param();
}
@@ -234,7 +234,7 @@ namespace ipl {
}
f32 BScroller::_get() {
f32 diff = unk_0x08.y - unk_0x10.y;
f32 diff = mCurPos.y - mStartPos.y;
f32 result = 0.f;
if (diff < -0.01f) {
result = -10.0f * (diff * diff);
@@ -259,7 +259,7 @@ namespace ipl {
nw4r::ut::Rect rect;
System::getProjectionRect(&rect);
f32 arrowLen = math::abs<float>(unk_0x10.y - unk_0x08.y) * rect.GetHeight();
f32 arrowLen = math::abs<float>(mStartPos.y - mCurPos.y) * rect.GetHeight();
System::getPointer()->setArrowLength(arrowLen);
System::getPointer()->setCursorScrolling(math::abs<float>(mSpeed) > 0.0f);
@@ -291,11 +291,11 @@ namespace ipl {
mState = 0;
mDownLimit = 0.0f;
mUpLimit = 0.0f;
unk_0x3C = 0.0f;
mVelocity = 0.0f;
mScroll = 0.0f;
unk_0x44 = 0.0f;
unk_0x48 = 0.6f;
unk_0x4C = 1.5f;
mAnimFrom = 0.0f;
mFriction = 0.6f;
mAccel = 1.5f;
anim.init(0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0, 1.0f);
}
@@ -319,26 +319,26 @@ namespace ipl {
switch (mState) {
case Pointer::SCROLL_CON_UP: {
unk_0x3C = unk_0x3C * unk_0x48 - unk_0x4C;
if (unk_0x3C > 0.0f) {
unk_0x3C = 0.0f;
mVelocity = mVelocity * mFriction - mAccel;
if (mVelocity > 0.0f) {
mVelocity = 0.0f;
}
mScroll += unk_0x3C;
mScroll += mVelocity;
mState = Pointer::SCROLL;
break;
}
case Pointer::SCROLL_CON_DOWN: {
unk_0x3C = unk_0x3C * unk_0x48;
unk_0x3C += unk_0x4C;
if (unk_0x3C < 0.0f) {
unk_0x3C = 0.0f;
mVelocity = mVelocity * mFriction;
mVelocity += mAccel;
if (mVelocity < 0.0f) {
mVelocity = 0.0f;
}
mScroll += unk_0x3C;
mScroll += mVelocity;
mState = Pointer::SCROLL;
break;
}
case Pointer::SCROLL_BTN_UP: {
unk_0x44 = oldScroll;
mAnimFrom = oldScroll;
anim.init(0.0f, -300.0f, 20.0f, 0.0f, 0.0f, 0, 1.0f);
anim.initFrame();
anim.restart();
@@ -346,7 +346,7 @@ namespace ipl {
break;
}
case Pointer::SCROLL_BTN_DOWN: {
unk_0x44 = oldScroll;
mAnimFrom = oldScroll;
anim.init(0.0f, 300.0f, 20.0f, 0.0f, 0.0f, 0, 1.0f);
anim.initFrame();
anim.restart();
@@ -355,10 +355,10 @@ namespace ipl {
}
case Pointer::SCROLLING_BY_BTN: {
anim.calc();
mScroll = unk_0x44 + anim.get();
mScroll = mAnimFrom + anim.get();
if (!anim.isPlaying()) {
unk_0x3C = 0.0f;
mVelocity = 0.0f;
anim.initFrame();
anim.calc();
mState = Pointer::SCROLL;

View File

@@ -1,76 +0,0 @@
# BS2 low-level DVD completion callback contract
Base: `9c7d87ab008df7e35558321e3ca297a887d35c44`.
Leaf: `agent/bittle/bs2-dvd-callback-contract`, 43U only.
## Source evidence
`DVDLowCallback` is `void (*)(u32 intType)`. BS2Mach defined its completion
callback with a signed s32 parameter and cast it to the unsigned function
pointer type at five registration sites. DVDLowContext stores DVDLowCallback,
and the original exact doTransactionCallback dispatches through that type.
The callback simply publishes the received word to volatile u32 LowReadResult.
Use the unsigned parameter directly and remove the five casts.
The original callback symbol at 0x8137BA1C is local, while baseline source
emitted it globally. All references are private to BS2Mach.c. Restore static
linkage in a separate measured follow-on; no other function/global changes.
Original evidence was checked independently against the DOL:
- Five registration sites contain ten address-materialization relocations
resolving to callback 0x8137BA1C
- The callback stores the entire r3 word to LowReadResult 0x81698A54, then
returns; the actual SDA base is 0x8169E040
- Original dispatcher invocation is at 0x8154F8C8; doTransactionCallback
remains instruction-exact, 46/46 instructions
- All 123 direct calls in BS2StartGame and BS2StartGCGame agree with original
raw destinations; their request-buffer widths/offsets and ABI inputs agree
- Ordinary NAND completion has its separate signed-result/block contract
and is untouched
## Separately measured trials
1. Unsigned callback parameter and removal of five casts only. Entire MWCC
object byte-identical to baseline, SHA256
`b853f8e58ead247dd8d333f4a7413e56b9c9e92341ad1bf54034fdf2f2be93b6`.
Full report byte-identical across 1,027 units.
2. Add static linkage. Only callback's symbol binding changes, global to
local, matching the original. Every other symbol record and all 1,461
relocation sites/types/target identities/addends remain unchanged.
All five allocated sections retain identical contents, extents, flags
and alignment, including BSS/SBSS extents. Final object SHA256
`154cd050a7295a1178de648a2abacf311cc2b4c96548926eb6d77eedb177c2e4`.
Full report again byte-identical to baseline.
Whole-object identity is claimed only for trial 1; trial 2 changes metadata.
No matching/fuzzy percentage gain or change in boot behavior is claimed.
## Tests and gates
- Fresh baseline configured with `python3 configure.py --version 43U
--wrapper ../toolchain/wibo-build/wibo`; full source/report/DOL build passes
- Candidate object built separately for both trials; final full invocation
`WIBO_SJIS_MISSING_IMPORTS=1 ../.venv/bin/ninja all_source
build/43U/report.json build/43U/ok` passes
- Pool identical: 91/91 strings
- All 25 exact functions independently retain zero instruction differences;
callback remains 2/2 instructions at .text+0xA68, STB_LOCAL as original
- Unit unchanged: 25/29 exact functions, 5,112/16,980 matched code bytes,
155,504/158,528 matched data bytes, fuzzy 99.09658%
- Literal advisory: 28 functions, 97 arguments, no candidates or errors;
skips only BS2Tick because its extents differ
- DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`
- `git diff --check` passes
Host compiler test extracts the baseline and final callback definitions with
fixed-width host equivalents. Direct assignment to DVDLowCallback fails for
the signed baseline under -Werror=incompatible-pointer-types and succeeds for
the final definition. The final callback preserves 200,007 tested words under
UBSan, including 0, 1, 2, 0x40, INT32_MAX, 0x80000000 and UINT32_MAX.
This is a compile-time function-type counterexample; GCC UBSan is not claimed
to detect the baseline's incompatible indirect call.
Private evidence: `/tmp/bs2-boot-contract/` and workspace-parent
`validation/bs2-boot-contract-20261003/`. Original binary/disassembly is not
committed. No shared header, volatility, Run body, state, or linking change.

View File

@@ -29,26 +29,3 @@ Additional Decrypt correction: restored 0x3E800 size limit, actual seek/read err
Remaining: CDBCryptBuffer 99.97479%, 119/119 instructions, three pool offsets; CDBRecordEncrypt 97.19014%, register allocation and one instruction; CDBRecordDecrypt 99.96789%, stack placement.
The four forced field accessors end with CDBUnlock and do not produce a CDBErr result. Their void declarations are gated by CDB_RECORD_IMPLEMENTATION, preserving all other translation units and avoiding fall-through non-void definitions.
## w1008/cdb leaf — dead-fn fossil + Encrypt coloring (worker w1008)
SOLVED — link-deadstrip fossil mechanism: orig .data's fossil literals (0x398-0x9be)
come from ~15 dead functions whose code mwldeppc stripped at link. Added all dead
fns (CDBRecordGetFileSize through CDBRecordPrivateChangeOwner) as GLOBAL fns in
fossil-emission order; global (not static) emits standalone code AND auto-inlines
at use sites. .data content byte-identical (orig has 2B reconstruction tail pad).
Verified at DOL level: fossil strings land at exact expected vaddrs.
SOLVED — Encrypt +0x40 code gap: `err = CDBRecordGetFileSize(record, &fileSize)`
calls the dead fn which auto-inlines, reproducing orig's expanded block.
`(s32)ptr == 0` → `cmpwi r0,0` required (== NULL gives cmplw). 284/284 insns
identical, 0 stream diffs.
WALL — CDBRecordEncrypt 57 byte diffs, pure callee-reg coloring on identical
web structure. Orig packs {key+err}→r24, {tempFile+fileOffset}→r31, pool→r25,
args→r26-29; mine packs {tempFile+err}→r24, {key+fileOffset}→r29, pool→r31,
args→r25-28. Equal-cost packings (tie-break). ~18 probes all neutral/regressed:
recordFile/err/tempFile/fileOffset decl order+scope+init forms, per-block vs
shared `result`, single-web fileOffset (-69), fn-scope tempFile, `register`,
err dead-init (emits, +4B/831), u32/s32 types, decl+init forms.
DOL-verified: the entire DOL diff vs orig = exactly these 57 bytes.

View File

@@ -1,53 +0,0 @@
# CHANSVm boolean output contract
Base: `fc114afd44065fb99f9ff2fe2969f393a504fe03` (43U).
Leaf: `agent/bittle/chans-scalar-contracts`.
## Correction and evidence
`CHANSVmGetBoolean` writes an optional four-byte `vmBoolInt` result, but its
source formal described a `CHANSVmObjHdr*`. All three callers cast addresses
of scalar locals to that object pointer. The original helper's only output
write is a word store at `0x8144C664`. Its Step call destinations at
`0x81456B08`, `0x81457584`, and `0x814575B0` were verified directly in the
original DOL, as were 48 nonrelocated helper words and its direct callees.
The actual MWCC layout probe confirms object alignment/size 8/16 and scalar
alignment/size 4/4. Step's two conditional-branch callers pass sp+0x0C, which
has scalar alignment but not object alignment. Declaring a whole object at
that address is an incorrect source contract even though the generated
helper only performs one word store.
Use `vmBoolInt*` as the output formal, assign through `*ret`, make both
receiving locals `vmBoolInt`, and remove all three casts. No shared header
contains a declaration, and no header changed. A repository-wide source
search found exactly this definition and these three calls. A complete
original-object relocation scan found only those calls plus ten labels in
the helper's own switch table; no additional callback was found.
## Tests and gates
- Source-extracted baseline reproduces a UBSan misaligned-object access when
passed a four-byte-aligned, non-eight-byte-aligned scalar destination.
- Candidate passes 1,283 typed-output cases, corresponding null-output calls,
and surrounding-byte canaries. Coverage includes all 256 discriminator
values, signed integer boundaries, zero/nonzero string lengths, finite
floating values, signed zero, infinities, NaN, and error/no-write paths.
- This is a focused host helper harness with a modeled object layout and
`isnan` shim, not full VM or Wii runtime execution. Target layout was
independently checked with the configured MWCC compiler.
- Entire compiled object is byte-identical, including code, data, symbols
and relocations. SHA256:
`5bf3f4a0a404e2a574287c16de81d702a1402d9fca416455e84dc1df67c9eb76`.
- All 1,027 report units unchanged. Exact CHANS functions 222/233; exact code
38,136/53,564; data 6,904/6,904. GetBoolean remains 100%; Step 96.98723%.
- Pool: 125/125 identical. `git diff --check` passes.
- Full 43U `all_source`, report, and `ok` gates pass with the existing cached
tools selected through documented configure overrides. DOL SHA1:
`26116613f624061ba99c8d1a299aaa6efa85670d`.
Artifacts: `/tmp/chans-step-abi/`, including `test_boolean.py`, the MWCC
alignment probe, `check_boolean_original.py`, and build/test results.
No original binary or disassembly is committed.
GATE: coherent scalar-output source correction; no fuzzy/exact/data/link gain.

View File

@@ -1,79 +0,0 @@
# CHANSVm HMAC external declarations
Base: `20ba34a80f9d0a09c4a8fad51352f0dd97d84be0` (43U).
Leaf: `agent/bittle/chans-hmac-linkage`.
## Source evidence
The four HMAC/SHA1 helper declarations at the top of `CHANSVm.c` had
`static` linkage but no definitions in that translation unit. A fresh MWCC
compile emitted four warning 10532 diagnostics. The definitions in
`libs/RevoEX/src/net/sha1.c` and `hmac.c` have external linkage;
`CDBRecord.c` already declares these imports `extern`.
The original CHANS object imports all four as `STB_GLOBAL`, `SHN_UNDEF`.
The baseline source object instead imported them as `STB_LOCAL`,
`SHN_UNDEF`. Change only the four declaration storage classes to `extern`.
Do not change the context, parameter types, shared headers, or linking flags.
Independent original-DOL call decoding agrees with the extracted relocations:
| Caller | Call address | Destination | Import |
| --- | --- | --- | --- |
| VmBlobCalcHMAC | 0x81452720 | 0x81494144 | NETGetSHA1Interface |
| VmBlobCalcHMAC | 0x81452734 | 0x814944EC | NETHMACInit |
| VmBlobCalcHMAC | 0x81452744 | 0x81494728 | NETHMACUpdate |
| VmBlobCalcHMAC | 0x81452750 | 0x81494738 | NETHMACGetDigest |
| VmBlobCalcRangeHMAC | 0x814528F4 | 0x81494144 | NETGetSHA1Interface |
| VmBlobCalcRangeHMAC | 0x81452908 | 0x814944EC | NETHMACInit |
| VmBlobCalcRangeHMAC | 0x81452918 | 0x81494728 | NETHMACUpdate |
| VmBlobCalcRangeHMAC | 0x81452924 | 0x81494738 | NETHMACGetDigest |
The ABI contracts agree: Init takes context/interface/key/u32 length in
r3-r6, Update takes context/data/u32 length, and GetDigest takes
context/output. The interface helper returns its pointer in r3.
Original caller context addresses are sp+8 and sp+0x10. The exact HMAC
implementation uses the interface at 0x00-0x1B, key length at 0x1C,
96-byte digest state at 0x20, and 64-byte key at 0x80, totaling 0xC0.
The existing CHANS opaque context reserves 0xD0 with 8-byte alignment.
That storage is unchanged. Caller opaque types and callee named types
remain separate declarations; this change fixes linkage only, not complete
cross-translation-unit type compatibility.
## Validation
- Configured 43U with `../toolchain/wibo-build/wibo`; fresh baseline full
source/report/DOL build passed, followed by a forced owned-object rebuild.
- Baseline emitted exactly four warning 10532 diagnostics; candidate emitted
none. No other compiler warning appeared in the candidate object build.
- The four imports now have exactly the original symbol records, including
global undefined binding. Every other symbol record is unchanged.
- All six allocated sections retain identical contents, extents, alignment,
type and flags, including the NOBITS section's extent.
- All 2,010 relocation sites, types, symbol identities and addends are
unchanged. Comparison resolves symbol indexes because binding changes
can reorder the ELF symbol table.
- All 1,027 unit report records are unchanged. CHANS: fuzzy 99.4341%,
exact code 38,136/53,564 bytes, exact functions 222/233,
matched data 6,904/6,904 bytes.
- Independently compared all 222 exact functions against original
instruction streams, with zero differences.
- The two HMAC callers remain 64/64 and 119/119 instructions, diffs 0.
- Pool: identical 125/125 entries. Literal advisory: 233 functions,
40 arguments, no candidates, errors, or skips.
- Eight call destinations and 392 nonrelocated instruction words across
the two callers and four helpers agree with original DOL bytes.
- Final `WIBO_SJIS_MISSING_IMPORTS=1 ../.venv/bin/ninja all_source
build/43U/report.json build/43U/ok` passes; DOL SHA1 remains
`26116613f624061ba99c8d1a299aaa6efa85670d`. `git diff --check` passes.
Whole-object identity is intentionally not claimed: symbol bindings changed.
SHA256 before:
`f971cabf817dba7e5cb240df01e1e8f814bb0a973e357a594d031046a56e691b`.
SHA256 after:
`5bf3f4a0a404e2a574287c16de81d702a1402d9fca416455e84dc1df67c9eb76`.
Private reproducibility artifacts are under
`validation/chans-hmac-linkage-20261003/` in the workspace parent and
`/tmp/chans-hmac-linkage/`. No original binary or disassembly is committed.
This is a source declaration correction with no decompilation percentage gain.

View File

@@ -1,57 +0,0 @@
# CHANSVm immediate integer accumulation
Base: `a52b3390` on `agent/bittle/chans-scalar-contracts` (43U).
This isolated commit follows, but does not alter, the boolean-output correction.
## Correction
`VmLoadImmInteger` assembled bytes by repeatedly left-shifting a signed
64-bit accumulator. An eight-byte immediate beginning with 0x80 through
0xFF can overflow that signed shift on the final iteration. Use an unsigned
64-bit accumulator, then convert the final word to the existing signed
`vmInteger` argument of `CHANSVmSetInteger`.
The original helper at `0x81455D88` shifts and combines high/low 32-bit words
modulo 64 bits. It reads unsigned bytes in big-endian order. Short immediate
widths do not sign-extend: one-byte 0xFF is 255, not -1. The target tail call
preserves VM/object in r3/r4 and supplies high/low value words in r5/r6.
Step's two call sites supply counts 1, 2, 4, or 8 for immediate loads, and
1 for binary immediate operations. No negative-width caller was found.
Unsigned shifts are defined. The final out-of-range unsigned-to-signed
conversion is implementation-defined in C; configured MWCC probes verify
bit-preserving conversion for bit 63, all bits set, and dynamic input.
The dynamic conversion emits only a return instruction. Host GCC tests
independently verify the selected implementation's behavior. No universal
portable-C conversion claim is made.
## Verification
- Source-extracted baseline UBSan fails while assembling `80 00 00 00 00
00 00 00`. The candidate passes 315,813 cases: every combination of
0x00/0x7F/0x80/0xFF at widths 1/2/4/8, generated inputs, and zero width.
Tests check value bits, VM/object callback arguments, and propagated result.
- A bounded interpreter executes the original helper's 16 nonbranch-tail
instruction words, independently checked against the original DOL.
The tail branch destination is verified as `CHANSVmSetInteger`.
All 165,813 original-DOL cases agree with an independent big-endian
unsigned reference and with r3/r4/r5:r6 call contracts.
- These are focused host/helper-slice tests, not complete VM or Wii runtime
execution. Counts outside the observed 1/2/4/8 contract are not generally
validated; zero was checked as an additional no-read boundary.
- VmLoadImmInteger remains exact: 17/17 instructions, ctxdiff 0 differences.
- Entire CHANSVm.o remains byte-identical to both the preceding commit and
initial branch baseline, including code/data/symbols/relocations. SHA256:
`5bf3f4a0a404e2a574287c16de81d702a1402d9fca416455e84dc1df67c9eb76`.
- All 1,027 report units remain unchanged. All 222 exact functions were
independently compared with the original and have zero differences.
- Pool: 125/125. Literal advisory: 233 functions, 40 arguments, no
candidates/errors/skips. `git diff --check` passes.
- Full 43U `all_source`, report, and `ok` gate passes with existing cached
tooling. DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
Artifacts: `/tmp/chans-step-abi/test_immediate.py`,
`check_immediate_original.py`, conversion probe, and build/test results.
No original binary or disassembly is committed.
GATE: source-width correctness correction; no fuzzy/exact/data/link gain.

View File

@@ -1,71 +0,0 @@
# CHANSVm string-index width correction
Baseline: `7b8dbf2c96aa9b4490df35932850c59886f76be3` in the prepared
`agent/bittle/chinese-code-width` leaf. Before editing, the owned CHANSVm source
was also identical to the available `origin/main` at `6619098e`. The earlier
Chinese investigation remains unchanged. Only CHANSVm.c and this log change.
## Correction
The SET_INDEX string path parsed into a `u64`, reconstructed that value through
`VM_S64_FROM_U64`, then cast it back to `u64` for the bound check. The macro's
signed 64-bit high-word left shift overflows when the parsed value has bit 63
set. For example, parsing "-1" reaches a signed shift of 4294967295 by 32.
Compare the original `u64` directly against the existing `0xFFFFFFFE` bound.
Remove the now-unused macro. The integer and floating paths are unchanged.
This removes undefined source behavior; it does not claim a change to the
current MWCC executable, a fuzzy gain, or a new exact function.
## Original evidence
- Original CHANSVmStep is at `0x81456354`, with extent `0x1394`.
- `0x814563B8` and `0x814563BC` establish the bound's high and low words as
zero and `0xFFFFFFFE`.
- The parsed-string check at `0x81456E90` through `0x81456EB4` reads the two
parsed words and performs an unsigned two-word comparison. Values greater
than the bound select the existing SET_INDEX error; accepted values forward
their low word as the index.
- These instruction words were checked directly against the original DOL,
independently of relocation matching. The DOL has the required SHA1 below.
- CHANSVmParseInt calls `strtoull` and stores its unsigned result. The local MSL
implementation (`strtoul.c`, lines 327–348) explicitly applies a negative sign
in unsigned width. Both helpers are already exact in the live report.
- Prior CHANSVm attempt logs were checked; the typed integer/float comparison
work did not address this signed reconstruction in the parsed-string path.
## Tests and measurements
- Baseline source-extracted UBSan harness fails on "-1" with signed left-shift
overflow. The candidate passes 300,028 parsed-value and unsigned-boundary
cases without a sanitizer error.
- Inputs include zero, `0xFFFFFFFE`, `0xFFFFFFFF`, `0x100000000`, signed-64
boundaries, maximum unsigned-64, negative decimal strings, parse failures,
and deterministic generated values. The unusual unsigned parsing of
"-18446744073709551615" to 1 remains accepted, matching the existing parser.
- A separate bounded interpreter executes the original DOL comparison slice
for 300,010 values, checking its error branch and accepted index against an
independent high-word/low-word bound reference. Every case passes.
- These are focused host/slice tests, not complete VM or Wii runtime tests.
The parser harness uses a UTF-16-to-ASCII shim and host `strtoull`; MSL's
negative-sign behavior was also checked in its local source.
- Entire compiled object, including all code, data and relocations, is
byte-identical before/after. SHA256:
`f971cabf817dba7e5cb240df01e1e8f814bb0a973e357a594d031046a56e691b`.
- Complete 1,027-unit report is unchanged. CHANSVmStep remains 96.98723%,
1,253/1,253 instructions. Unit fuzzy remains 99.4341%.
- Exact functions remain 222/233, each individually checked with ctxdiff:
zero differences. Exact code remains 38,136/53,564 bytes; data 6,904/6,904.
- Pool: 125/125 strings identical. Literal advisory: 233 functions, 40 arguments,
no candidates, skips or errors.
- Full 43U `all_source`, report and `ok` gates pass using the assigned wrapper
and WIBO_SJIS_MISSING_IMPORTS=1. `git diff --check` passes.
- DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
Private local reproduction files are in `/tmp/chans-index-width/`, including
baseline/candidate sources and objects, test_width.py, check_original.py,
sanitizer output, original-address checks, pool/literal results and build logs.
No original binary or disassembly is committed. No header, metadata, compiler,
linking, other-region, remote, or register-allocation change was made.
GATE: source-width correctness fix; compiler output and all progress preserved.

View File

@@ -1,88 +0,0 @@
# CHANSVm packed-hex count rounding
Base: `a30b5cecb68f4549ef83565a567cc5dd7bd4c0de` (43U).
Leaf: `agent/bittle/chans-pack-union`.
## Retained source-width correction
The sizing and writing passes of `VmBlobPackCommon` both computed
`(count + 1) / 2` in signed 32-bit arithmetic for hexadecimal strings.
The existing parser accepts `H2147483647`, making the addition overflow.
Both sites now add in unsigned 32-bit width, convert the wrapped word to
`s32`, then perform the existing signed division.
This preserves the target's unusual boundary behavior. It does not change
`INT_MAX` into a positive rounded-up size. The original result is
`-1073741824`; the writing pass forwards its signed extension to the existing
`CHANSVmBlobHasSpace` check, which rejects negative sizes. All surrounding
count, size, allocation, and error checks are unchanged.
Unsigned addition is defined modulo 2^32. Converting an out-of-range `u32`
to `s32` is implementation-defined in C, not signed-overflow undefined
behavior. Separate MWCC probes confirm the configured 32-bit compiler's
bit-preserving conversion: `0x80000000` becomes `INT_MIN`, and `0xffffffff`
becomes -1. Its dynamic rounding probe emits the same add, arithmetic-shift,
and carry-add sequence as the original. The host GCC harness uses explicit
32-bit typedefs and independently confirms that conversion behavior.
This is not a claim of portable behavior for every possible C implementation.
## Original and prior-work evidence
- Original `VmBlobPackCommon`: address `0x81453670`, extent `0xA70`.
- Sizing-pass rounding: relative `+0x320` through `+0x330`.
- Writing-pass rounding and signed call argument: `+0x940` through `+0x954`.
- Those words agree directly with the original DOL, independently of the
extracted object's relocations.
- Earlier CHANS logs covered count validation, padding, parser locals,
declaration orders, loop structure, and source/getter types. No earlier
packed-hex `count + 1` wrap correction was found.
## Validation
- Source-extracted baseline arithmetic fails UBSan at `INT_MAX + 1`.
- Candidate passes 1,000,022 direct arithmetic inputs and 11 source-extracted
parser cases, including `H2147483647`, neighboring odd/even limits, zero,
ordinary counts, `H*` (-1), and the existing overflowing-digit rejection.
Star-derived string lengths include zero and the largest u32 byte lengths.
- Two bounded original-DOL instruction interpreters each pass 1,000,013
inputs against an independent widened-arithmetic reference, including
INT_MAX neighbors, negative boundaries, and generated nonnegative counts.
The second slice also verifies signed 64-bit argument extension.
- These are focused parser/arithmetic/slice tests, not complete VM or Wii
runtime tests. The parser is unchanged and is not generally proven free
from other arithmetic issues.
- Entire CHANSVm object is byte-identical before/after, including code,
data, symbols and relocations. SHA256:
`5bf3f4a0a404e2a574287c16de81d702a1402d9fca416455e84dc1df67c9eb76`.
- All 1,027 report units are unchanged. CHANS exact functions: 222/233;
exact code: 38,136/53,564; exact data: 6,904/6,904.
- All 222 objdiff-exact functions independently have identical original
instruction streams. PackCommon remains 97.949104%, 668/668 instructions;
CHANSVmStep remains 96.98723%, 1,253/1,253 instructions.
- Pool: 125/125 identical. Literal advisory: 233 functions, 40 arguments,
no candidates, errors, or skips. `git diff --check` passes.
- Final full 43U `all_source`, report, and `ok` gates pass. DOL SHA1:
`26116613f624061ba99c8d1a299aaa6efa85670d`.
- The initial final-build run stopped when an automatic BSTool refresh was
blocked. Its resume attempt found that the process had ended. The final
build used configure.py's supported explicit paths to the existing cached
compiler, binutils, DTK, objdiff, sjiswrap, and BSTool. No executable was
replaced and no download was needed. All 1,027 source objects were rebuilt.
- The final object and complete report remain identical to their fresh
baseline after that full rebuild.
GATE: source-width correctness correction; zero fuzzy, exact, data, or linking
metric changes. The unit remains NonMatching and no linking flags changed.
## Rejected separate scratch-buffer trial
Before the overflow change, one bounded trial replaced PackCommon's cast-based
scratch array with a union whose integer-width members were all used.
MWCC removed two scratch-clearing stores: 668 -> 666 instructions, fuzzy
97.949104% -> 97.500000%. The trial was fully restored; the restored whole
object was verified byte-identical before starting the overflow change.
No union change is retained, and no declaration or register sweep was run.
Reproduction artifacts are in `/tmp/chans-pack-rounding/` and
`/tmp/chans-pack-union/`. No original binary or disassembly is committed.

View File

@@ -1,41 +0,0 @@
# CHANSVm load-constant error preservation
Baseline: 449529d92405f8f7fda610660c7794914a81dfe6. Scope: CHANSVm.c only; no linking classifications or headers changed.
## Retained correction
LOAD_STRING_CONST must preserve a failure from CHANSVmDeleteObject. The original object tests the deletion return and branches directly to the local result merge when it is nonzero. The load-string error is selected only after deletion succeeds and the constant index is out of range or has no string payload. The prior C instead overwrote every deletion error with CHANS_VM_ERR_LOAD_STRING_CONST.
A native destructor that returns false is a concrete error-producing path through CHANSVmDeleteObject; this distinction is observable, not merely a compiler-scheduling preference.
The new local loadResult preserves that error, keeps constant validation and installation inside the successful-deletion block, and merges the result afterward. Target and rebuilt blocks have the same instruction count and control-flow destinations; remaining operand differences are registers. No strings, data layout, or generated jump-table destinations changed.
## Measurements
- All 233 target functions have compiled C implementations; this is not a claim that all are exact or independently behavior-proven.
- Instruction-exact functions: 221/233 -> 221/233; every objdiff-exact function also passes ctxdiff.
- Unit decompiled/fuzzy: 99.364426% -> 99.383840%.
- Exact code: 37608/53564 bytes -> 37608/53564 bytes (70.211334%).
- Exact data: 6904/6904 bytes -> 6904/6904 bytes (100%).
- CHANSVmStep: 96.466080% -> 96.673584%; 1253/1253 instructions; ctxdiff differing positions 314 -> 297.
- Per-function score regressions relative to the fresh baseline report: zero.
- The unit remains NonMatching/unlinked; no link flags were changed.
## Attempts
1. Read previous round/wave logs and recent local trials; establish live baseline and run pool_diff first: 125 strings identical.
2. Replace the load-string shared error/goto path with a typed local error result and successful-deletion-only constant validation. Retained: correct error behavior, higher fuzzy score, unchanged exact code/data.
3. Separately tried consolidating GET_PROPERTY_NAME's local found flag and removing two unused array-index assignments. Rejected and restored completely: Step shrank to 1249 instructions and data dropped to 2232/6904. This unrelated trial is absent from the final source.
## Validation
- Full 43U build passed with the assigned wibo wrapper and WIBO_SJIS_MISSING_IMPORTS=1.
- DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d.
- pool_diff: 125/125 identical strings.
- .data: 4672/4672 bytes identical; all 352 canonical relocations identical.
- .rodata: 1432/1432 bytes identical; all 258 canonical relocations identical.
- All 233 functions compared with ctxdiff/odiff: 221 exact; no falsely exact objdiff functions.
- git diff --check passed.
- Source-extracted host C harness passed six load-constant cases: missing operand; deletion failure with valid index; deletion failure with invalid index; invalid index after successful deletion; null payload; successful installation. The harness stubs surrounding VM dependencies and checks C behavior only; no Wii runtime execution is claimed.
Source is paused after this focused candidate for parent review. The remaining 12 functions are still non-exact.

View File

@@ -1,49 +0,0 @@
# CHANSVm opcode error-path reconstruction
Baseline: 2f399716. This is a separate structural-reconstruction candidate; it preserves the preceding LOAD_STRING_CONST behavior fix. Only CHANSVm.c changed apart from this log. No headers, linking flags, remote branches, or original assets were changed.
## Retained changes and target evidence
- Failed binary-operand conversion returns CHANS_VM_ERR_RESULT_TYPE directly. Target Step relative +0x410 selects the error and +0x414 returns through +0x1364.
- Invalid GET_PROPERTY_NAME and JUMP destinations return CHANS_VM_ERR_CODE_RANGE directly. Target error tails are +0xd90/+0xd94 and +0xefc/+0xf00, respectively, both ending at +0x1364.
- DELETE_INDIRECT has a typed accumulator and a local deletion result, and reads the index through value.data.len rather than an offset-based u32 pointer cast. SET_INDEX elsewhere in the same function establishes this field as the index-reference index. The target holds the opcode-local result until the merge at +0xfb0, then assigns the common interpreter status. The rebuilt +0xf80 through +0xfb4 block is instruction-identical to the target.
These preserve existing C behavior. Unlike the preceding deletion-error fix, no new behavioral defect is claimed.
## Measurements
- Exact functions: 221/233 -> 221/233. Every previously exact function remains instruction-exact, not merely objdiff-exact.
- Decompiled/fuzzy unit: 99.383840% -> 99.406320%.
- CHANSVmStep: 96.673584% -> 96.913800%; 1253/1253 instructions; differing positions 297 -> 285.
- Exact code: unchanged, 37608/53564 bytes (70.211334%).
- Exact data: unchanged, 6904/6904 bytes (100%).
- Per-function score regressions: zero.
- Unit remains NonMatching/unlinked; twelve functions remain non-exact.
## Rejected investigations
All rejected source changes were restored, and no register forcing or declaration-order sweep was used.
- GET_PROPERTY_NAME output-state separation: a local found flag, initialized flag, shared index/output, and inline helper. These produced 1251-1253 instructions but moved generated data-table destinations; rejected.
- Direct result-type-table accesses, an explicit zero-count normalization/pretested loop, and indexed operand-type enumeration: 1254-1257 instructions; generated data-table destinations moved; rejected.
- Internal linkage for result-type or constant-header tables, individually and together, did not change those results; restored.
- CASE strict-comparison result separation, case-local match state, byte-sized operand types, and indexed operand enumeration: improved some local structure but introduced an operand-type spill and 1254-1255 instructions; generated tables moved; rejected.
- Direct exceptional returns alone: retained for combination, 96.697525%, data 100%.
- Typed DELETE_INDIRECT and local result alone: retained for combination, 96.889860%, data 100%.
- Combined direct returns and typed deletion result: accepted candidate, 96.913800%, data 100%.
- A first combination script used an obsolete substring end offset and did not compile; restored, corrected, and rerun. No source from the malformed attempt remains.
- Adding strict-comparison restructuring to the retained combination still produced 1254 instructions and data regression; rejected.
## Validation
- Full 43U build passed with the assigned wrapper and WIBO_SJIS_MISSING_IMPORTS=1.
- DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d.
- pool_diff: 125/125 strings identical.
- .data: 4672/4672 raw bytes and 352/352 canonical relocations identical.
- .rodata: 1432/1432 raw bytes and 258/258 canonical relocations identical.
- All 233 target functions compared: 221 instruction-exact; zero falsely exact objdiff functions; zero per-function score regressions from 2f399716.
- Narrow-string-reference audit: all 233 functions analyzed, 40 arguments checked, no candidates/errors/skips.
- Source-extracted host C tests: four DELETE_INDIRECT cases passed (wrong type, successful deletion, deletion failure, and null element forwarding), including exact unsigned index forwarding. The six prior LOAD_STRING_CONST cases also passed unchanged. These stub surrounding VM dependencies and are not Wii runtime tests.
- git diff --check passed.
The focused candidate is paused for independent parent review.

View File

@@ -1,52 +0,0 @@
# CHANSVm typed comparison reconstruction
Baseline: ec75ddb0. This candidate is separate from the accepted load-string and opcode-error-path work. Those commits and their logs are unchanged. Only CHANSVm.c and this log changed; no headers, linking classifications, metadata, or original assets changed.
## Retained reconstruction
- LOAD_FLOAT copies the eight-byte literal into a double scratch member and passes that value directly. This replaces a u64 temporary followed by a double-pointer reinterpretation. Scratch alignment, member offsets, and emitted code are unchanged.
- SET_INDEX reads the floating operand through its union member and checks its lower bound before its upper bound, matching the target's comparison order. The accepted interval remains [0, 4294967294], with NaN and infinities rejected.
- Strict integer equality uses the declared 64-bit integer values rather than four offset-based u32 loads and manual XOR/OR expressions.
- Strict floating equality uses the declared floating values directly.
- Strict string equality uses named, read-only payload pointers rather than recreating a header pointer. The stack operand is consistently first in the outer type comparison, following the target.
This is structural/type reconstruction, not a newly discovered behavior fix. No register forcing, declaration sweep, or alignment padding was introduced.
## Target evidence
After rebuilding, the integer-comparison block (Step instructions 1093-1102), floating-comparison block (1103-1108), string-comparison block (1109-1128), and floating-index block (703-712) have the same instructions, control flow, constants, and memory offsets as the target after register names are normalized. This comparison is advisory: register differences remain, and Step is not exact.
The floating range's instruction forms now use the target's lower-bound-first order. Integer equality emits the same target ten-instruction two-word equality sequence naturally from the 64-bit value comparison. LOAD_FLOAT retains its original eight-byte copy and call sequence without a pointer reinterpretation.
## Measurements
- Instruction-exact functions: 221/233 -> 221/233; no previously exact function regressed.
- Unit Decompiled/fuzzy: 99.406320% -> 99.413185%.
- Step: 96.913800% -> 96.987230%; 1253/1253 instructions; differing positions 285 -> 276.
- Exact code: unchanged at 37608/53564 bytes (70.211334%).
- Exact data: unchanged at 6904/6904 bytes (100%).
- Per-function score regressions: zero.
- Unit remains NonMatching/unlinked, with twelve non-exact functions.
## Attempts
- Direct 64-bit equality alone: Step 96.933760%, data 100%; retained for combination.
- Typed integer/float/string comparison paths: 96.971270%, data 100%; retained.
- Those typed paths plus a separate strict-comparison local error result: 1254 instructions, table relocations moved; rejected.
- Floating index member access alone preserves the typed-comparison score. Lower-bound-first range checking raises it to 96.983240%, data 100%; retained.
- A union literal temporary produced the same code; simplified to a direct double member instead, also with identical code.
- Stack-first type comparison raises Step to 96.987230% with unchanged data; retained.
## Verification
- Full 43U build passed with the assigned wrapper and WIBO_SJIS_MISSING_IMPORTS=1.
- DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d.
- pool_diff: all 125 strings identical.
- .data: 4672/4672 raw bytes and 352/352 canonical relocations identical.
- .rodata: 1432/1432 raw bytes and 258/258 canonical relocations identical.
- All 233 functions checked with ctxdiff/odiff: 221 instruction-exact; no falsely exact objdiff functions.
- Literal-reference audit: 233 functions analyzed, 40 resolvable call-string arguments checked, no candidates/errors/skips.
- Source-extracted host C harnesses passed 20 strict-comparison cases, nine floating-index-bound cases, and eight floating-literal bit patterns. Coverage includes signed integer extremes, differing high words, signed zero, NaN, infinities, strings, references, deletion errors, and literal payload preservation. They stub surrounding dependencies and do not constitute Wii runtime execution.
- git diff --check passed.
Source is paused for independent parent verification.

View File

@@ -1,88 +0,0 @@
# a5h high-effort CHANSVm round
Owned worktree data-d5, branch agent/w1003/astra-a5-high, starting HEAD/origin f170531a. Read a5 prior attempts and final gate, shared prompt and all ten levers, CHANSVm policy entries, local CHANSVm/fz1/big1 histories. Prior-art index has no entry. Prior medium round gained no exact functions; its Step operand-order change is absent from this fresh main. Baseline 222/233 exact, code 38136/53564, data 6904/6904, fuzzy 99.4341. Pool first: 125/125 identical. All data sections already exact; no symbol edits warranted.
High-round focus: float parser store/compare scheduling, document-writer lifetime reuse, formatter temporary lifetimes, executable table fixup registers. Do not repeat previously logged plain declaration permutations or five orchestrator writer shapes. No target evidence permits an uninitialized local; preserve every initialization. No eZiText optimization-off lever applies. Follow helpers/types/const/lifetimes before allocation searches. Remaining functions receive at least three new source forms before handoff.
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "end-pointer scratch initialized by inline parser formal argument", "source": "fcfdea703d2c", "build": 0, "fuzzy": 95.180725, "insns": [83, 83], "diffs": 3, "code": "38136", "data": "6904"}
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "caller owns addressable end pointer, parser initializes via formal output", "source": "3dcf785ca76e", "build": 0, "fuzzy": 97.59036, "insns": [83, 83], "diffs": 2, "code": "38136", "data": "6904"}
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "parser output is native float object instead of scalar field address", "source": "ea36389b824e", "build": 0, "fuzzy": 97.59036, "insns": [83, 83], "diffs": 2, "code": "38136", "data": "6904"}
- {"function": "VmWinEmuWrite", "attempt": "whole writer body through vm-only inline helper", "source": "aa8222d6230b", "build": 0, "fuzzy": 99.10448, "insns": [67, 67], "diffs": 13, "code": "38136", "data": "6904"}
- {"function": "VmWinEmuWrite", "attempt": "argument index passed through whole writer helper", "source": "0b85ce17d3ad", "build": 0, "fuzzy": 99.10448, "insns": [67, 67], "diffs": 13, "code": "38136", "data": "6904"}
- {"function": "VmWinEmuWrite", "attempt": "writer conversion type through inline formal enum", "source": "c37487e4baa2", "build": 0, "fuzzy": 99.10448, "insns": [67, 67], "diffs": 13, "code": "38136", "data": "6904"}
- {"function": "CHANSVmFormatString", "attempt": "native formatted string ownership record: const wchar_t* data; CHANSVmObjHdr* object;", "source": "4195315f4732", "build": 0, "fuzzy": 99.84919, "insns": [431, 431], "diffs": 13, "code": "38136", "data": "6904"}
- {"function": "CHANSVmFormatString", "attempt": "native formatted string ownership record: CHANSVmObjHdr* object; const wchar_t* data;", "source": "e9b3a96255b6", "build": 0, "fuzzy": 99.84919, "insns": [431, 431], "diffs": 13, "code": "38136", "data": "6904"}
- {"function": "CHANSVmFormatString", "attempt": "native formatted string ownership record: const wchar_t* data; CHANSVmObjHdr* object; s32 length;", "source": "a8e576986777", "build": 0, "fuzzy": 99.84919, "insns": [431, 431], "diffs": 13, "code": "38136", "data": "6904"}
- {"function": "CHANSVmFormatString", "attempt": "only string input gets independent typed lifetime; existing cleanup and output counts retained", "source": "5923077b2fa8", "build": 0, "fuzzy": 99.187935, "insns": [431, 431], "diffs": 53, "code": "38136", "data": "6904"}
- {"function": "VmDateDtor", "attempt": "calendar table indices widened explicitly to unsigned native indices", "source": "f1be39516ed0", "build": 0, "fuzzy": 94.96703, "insns": [91, 91], "diffs": 7, "code": "38136", "data": "6904"}
- {"function": "VmDateDtor", "attempt": "calendar table lookup uses shared unsigned accessor with month evaluated as helper first", "source": "e39110d7d93c", "build": 0, "fuzzy": 94.96703, "insns": [91, 91], "diffs": 7, "code": "38136", "data": "6904"}
- {"function": "VmDateDtor", "attempt": "calendar format call receives returned date value through inline boundary", "source": "f1da6f67f1a2", "build": 0, "fuzzy": 72.98901, "insns": [107, 91], "diffs": 97, "code": "38136", "data": "6904"}
- {"function": "VmWinEmuWrite", "attempt": "argument acquisition and conversion in inline helper with CHANSVm*", "source": "dd098720f2f6", "build": 0, "fuzzy": 99.62687, "insns": [67, 67], "diffs": 5, "code": "38136", "data": "6904"}
- {"function": "VmWinEmuWrite", "attempt": "argument acquisition and conversion in inline helper with const CHANSVm*", "source": "e2aa528796b4", "build": 0, "fuzzy": 99.62687, "insns": [67, 67], "diffs": 5, "code": "38136", "data": "6904"}
- {"function": "VmWinEmuWrite", "attempt": "encoder scratch and bound scoped after successful converted-object check", "source": "292969d911b0", "build": 0, "fuzzy": 99.62687, "insns": [67, 67], "diffs": 5, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method fixup helper header precedes VM in formal argument order", "source": "666757906e2a", "build": 0, "fuzzy": 99.744095, "insns": [254, 254], "diffs": 10, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method fixup helper gets table as independent const formal", "source": "f4b21b6a6f11", "build": 0, "fuzzy": 99.88189, "insns": [254, 254], "diffs": 4, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method fixup helper gets table as independent mutable formal", "source": "315f755a9816", "build": 0, "fuzzy": 99.88189, "insns": [254, 254], "diffs": 4, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method helper counter declaration before table binding", "source": "e9373aac8d33", "build": 0, "fuzzy": 99.88189, "insns": [254, 254], "diffs": 4, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method helper table pointer const binding", "source": "7b539fde55dc", "build": 0, "fuzzy": 99.744095, "insns": [254, 254], "diffs": 10, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "module clear uses offset declared before index", "source": "5a52a46d26af", "build": 0, "fuzzy": 99.66535, "insns": [254, 254], "diffs": 13, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "module initialization loop through header-only helper", "source": "bd1650d81d65", "build": 0, "fuzzy": 99.744095, "insns": [254, 254], "diffs": 10, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "typed module entry indexed memset with compiler-managed byte stride", "source": "e766de18a400", "build": 0, "fuzzy": 99.96063, "insns": [254, 254], "diffs": 1, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "module stride is function-scoped beside region offsets", "source": "78e9121d89c6", "build": 0, "fuzzy": 99.80315, "insns": [254, 254], "diffs": 7, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "module clear offset is native signed byte offset", "source": "a710deff2beb", "build": 0, "fuzzy": 99.88189, "insns": [254, 254], "diffs": 4, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method name end address: (vmU32)methodTable + methodTable[i].nameLength + methodTable[i].offset", "source": "3a910e6ab28e", "build": 0, "fuzzy": 99.88189, "insns": [254, 254], "diffs": 4, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method name end address: methodTable[i].offset + (methodTable[i].nameLength + (vmU32)methodTable)", "source": "1a3385de7f93", "build": 0, "fuzzy": 99.92126, "insns": [254, 254], "diffs": 3, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "method name end address: (vmU32)((u8*)methodTable + methodTable[i].nameLength) + methodTable[i].offset", "source": "83c732793800", "build": 0, "fuzzy": 99.88189, "insns": [254, 254], "diffs": 4, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "typed clear plus method end address: (vmU32)methodTable + methodTable[i].nameLength + methodTable[i].offset", "source": "688f0a2ef623", "build": 0, "fuzzy": 99.96063, "insns": [254, 254], "diffs": 1, "code": "38136", "data": "6904"}
- {"function": "CHANSVmAddExe", "attempt": "typed clear plus method end address: methodTable[i].offset + (methodTable[i].nameLength + (vmU32)methodTable)", "source": "16bc72f47d1f", "build": 0, "fuzzy": 100.0, "insns": [254, 254], "diffs": 0, "code": "39152", "data": "6904"}
## CHANSVmAddExe exact candidate
Method-table fixup has its own loop and success/failure result in target instructions183..214. Extracting it with index declared before table pointer fixes the initial module/type register exchange and method loop registers. Typed module entry indexing gives target compiler-managed stride r29 instead of manual offset r28. Reassociating the validated end address as offset+(nameLength+table) gives target add r3,r5,r28. All arithmetic operands remain unsigned32 with identical wrap behavior; table validation and calls retain order. Result100.0%,254/254instructions,diffs0,code39152,data6904. Quick full-build GATE PASS, zero regressions/forbidden/readability, exact223/233, correctDOL. Formatting cleanup follows, then fresh gate before local commit.
- {"function": "VmBlobGetHexString", "attempt": "raw byte encoder inline boundary with output first", "source": "3e7e12925d9d", "build": 0, "fuzzy": 97.35366, "insns": [82, 82], "diffs": 32, "code": "39152", "data": "6904"}
- {"function": "VmBlobGetHexString", "attempt": "raw byte encoder read-only source and explicit digit table", "source": "91218592b8d3", "build": 0, "fuzzy": 97.35366, "insns": [82, 82], "diffs": 32, "code": "39152", "data": "6904"}
- {"function": "VmBlobGetHexString", "attempt": "raw byte encoder loop counter initialized at helper boundary", "source": "5e32f6e45a16", "build": 0, "fuzzy": 97.35366, "insns": [82, 82], "diffs": 32, "code": "39152", "data": "6904"}
- {"function": "VmStringSplit", "attempt": "typed real metadata record for parent split span", "source": "fb732f313bac", "build": 0, "fuzzy": 97.567566, "insns": [222, 222], "diffs": 84, "code": "39152", "data": "6904"}
- {"function": "VmStringSplit", "attempt": "typed real metadata record for delimiter split span", "source": "190fa665d513", "build": 0, "fuzzy": 97.72523, "insns": [222, 222], "diffs": 76, "code": "39152", "data": "6904"}
- {"function": "VmStringSplit", "attempt": "typed real metadata record for both split spans", "source": "b88a5d1ad181", "build": 0, "fuzzy": 97.432434, "insns": [222, 222], "diffs": 90, "code": "39152", "data": "6904"}
- {"function": "VmBlobPackCommon", "attempt": "native blob copy and zero-fill helper with BlobHeader* source", "source": "8af1bfdec68f", "build": 0, "fuzzy": 97.97156, "insns": [668, 668], "diffs": 242, "code": "39152", "data": "6904"}
- {"function": "VmBlobPackCommon", "attempt": "native blob copy and zero-fill helper with const BlobHeader* source", "source": "718b0dd3c12a", "build": 0, "fuzzy": 97.97156, "insns": [668, 668], "diffs": 242, "code": "39152", "data": "6904"}
- {"function": "VmBlobPackCommon", "attempt": "integer staging buffer lifetime belongs to packing iteration", "source": "9c318ea16d63", "build": 0, "fuzzy": 97.949104, "insns": [668, 668], "diffs": 244, "code": "39152", "data": "6904"}
- {"function": "VmBlobUnpack", "attempt": "integer staging union lifetime belongs to unpacking iteration", "source": "6017037ff266", "build": 0, "fuzzy": 98.452614, "insns": [517, 517], "diffs": 141, "code": "39152", "data": "6904"}
- {"function": "VmBlobUnpack", "attempt": "signed and unsigned integer decoding helper with u32* input", "source": "e6f7a5f031d0", "build": 0, "fuzzy": 95.46228, "insns": [526, 517], "diffs": 366, "code": "39152", "data": "6904"}
- {"function": "VmBlobUnpack", "attempt": "signed and unsigned integer decoding helper with const u32* input", "source": "52628f4f9f18", "build": 0, "fuzzy": 95.46228, "insns": [526, 517], "diffs": 366, "code": "39152", "data": "6904"}
- {"function": "CHANSVmLinkModules", "attempt": "third module pass separated with CHANSVmModule* input", "source": "c2880482ee9c", "build": 0, "fuzzy": 98.677246, "insns": [189, 189], "diffs": 43, "code": "39152", "data": "6904"}
- {"function": "CHANSVmLinkModules", "attempt": "third module pass separated with const CHANSVmModule* input", "source": "50e11723d30b", "build": 0, "fuzzy": 98.677246, "insns": [189, 189], "diffs": 43, "code": "39152", "data": "6904"}
- {"function": "CHANSVmLinkModules", "attempt": "shared typed dispatch-name validation and comparison boundary", "source": "47e9680b69cd", "build": 0, "fuzzy": 84.08995, "insns": [173, 189], "diffs": 169, "code": "39152", "data": "6904"}
- {"function": "CHANSVmStep", "attempt": "floating immediate load uses typed scratch output helper", "source": "319c356e86f7", "build": 0, "fuzzy": 96.98723, "insns": [1253, 1253], "diffs": 276, "code": "39152", "data": "6904"}
- {"function": "CHANSVmStep", "attempt": "signal consumption isolated as initialized boolean helper", "source": "ad852802744f", "build": 0, "fuzzy": 96.73743, "insns": [1257, 1253], "diffs": 1160, "code": "39152", "data": "2232"}
- {"function": "CHANSVmStep", "attempt": "instruction range validation through const execution-context helper", "source": "75bd6182f4ed", "build": 0, "fuzzy": 96.47805, "insns": [1260, 1253], "diffs": 1214, "code": "39152", "data": "2232"}
- {"function": "CHANSVmFormatString", "attempt": "formatted ownership record assigned before copy call", "source": "3bf8fcb93c2c", "build": 0, "fuzzy": 96.92575, "insns": [431, 431], "diffs": 150, "code": "39152", "data": "6904"}
- {"function": "CHANSVmFormatString", "attempt": "formatted owner is allocated directly into cleanup record", "source": "af2098b87259", "build": 0, "fuzzy": 97.38979, "insns": [431, 431], "diffs": 147, "code": "39152", "data": "6904"}
- {"function": "CHANSVmFormatString", "attempt": "direct formatted owner with character ownership initialized before data binding", "source": "e4428eea5fcd", "build": 0, "fuzzy": 96.89095, "insns": [430, 431], "diffs": 249, "code": "39152", "data": "2232"}
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "float parser tag dispatch expressed as single supported switch case", "source": "72a9cfd97545", "build": 0, "fuzzy": 96.26506, "insns": [84, 83], "diffs": 69, "code": "39152", "data": "6904"}
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "float parser tag guard branches to common invalid result", "source": "d2b34ee3b2d0", "build": 0, "fuzzy": 97.59036, "insns": [83, 83], "diffs": 2, "code": "39152", "data": "6904"}
## Coverage and retained result
New high-round boundaries were compiled for every remaining function. Split222, Hex82, Pack668, Unpack517 and Link189 already share the target CFG and instruction counts; their new span/encoder/decoder/pass boundaries tested real lifetime changes. Rejected all fuzzy-only experiments. Step1253 has structural and allocation differences; its floating load boundary changes no instructions, while signal/range boolean helpers add instructions and lose jump-table data. Restored all three. Formatter431 keeps its13register differences; ownership-record stores before copy regress allocation. Parser83 still has the adjacent initialization-store/type-compare inversion; target initializes the end pointer, so removal/volatile tricks are unwarranted. Writer67 still has5register differences; whole writer and argument-acquisition boundaries do not resolve vm/string register reuse. Date91 retains7table and varargs scheduling differences.
All ten levers reviewed: helpers, true field types, const views, separate locals and scopes tested; new AddExe graph and typed indexing resolve register lifetimes without another exhaustive declaration sweep. No eZiText-specific lever applies. Counted traversal preserves Hex CTR. Prior-art index has no matching entry. Target initialization audit from the preceding round remains valid; no undefined values introduced. All data already100%, so no relocation rename/extent correction applies.
Distinct successful source forms this round:
- CHANSVmConvertToFloatFromStr: 5
- VmWinEmuWrite: 6
- CHANSVmFormatString: 7
- VmDateDtor: 3
- CHANSVmAddExe: 15
- VmBlobGetHexString: 3
- VmStringSplit: 3
- VmBlobPackCommon: 3
- VmBlobUnpack: 3
- CHANSVmLinkModules: 3
- CHANSVmStep: 3
Only CHANSVmAddExe source changes retained, exact100.0 with254/254instructions anddiffs0. Initial candidate committed470bb80e after fresh quick full-build gate. Full clean final gate follows. Worker result remains subject to independent parent verification.
Final fetch 934587c4: owned source unchanged from startingmain. No concurrent match duplicated. All54successful distinct source trials recorded; temporary variants will be removed after final measurements.
Final clean non-quick GATE PASS. CHANSVm exact222/233 ->223/233, code38136 ->39152/53564, data6904/6904unchanged, fuzzy99.43410 ->99.44119. No regressions, forbidden additions or readability warnings. Full43Ubuild, pool and targetDOLhash pass. Regenerated live progress/report and build/43U/ok, then independently rechecked AddExe254/254,diffs0. No source changes after470bb80e. Parent verification required before acceptance.

View File

@@ -1,30 +0,0 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/channelScript/CHANSVm] pool: IDENTICAL
[src/channelScript/CHANSVm] objdiff: code 39152/53564 data 6904/6904 functions 223/233 fuzzy 99.4412 linked code 0
[src/channelScript/CHANSVm] instruction-exact functions: 223/233
[src/channelScript/CHANSVm] section .data size 4672 match 100.0
[src/channelScript/CHANSVm] section .rodata size 1432 match 100.0
[src/channelScript/CHANSVm] section .sbss size 16 match 100.0
[src/channelScript/CHANSVm] section .sdata size 600 match 100.0
[src/channelScript/CHANSVm] section .sdata2 size 184 match 100.0
[src/channelScript/CHANSVm] section .text size 53564 match 99.44119
[src/channelScript/CHANSVm] below 100: CHANSVmConvertToFloatFromStr 97.59036
[src/channelScript/CHANSVm] below 100: VmDateDtor 94.96703
[src/channelScript/CHANSVm] below 100: VmStringSplit 98.04054
[src/channelScript/CHANSVm] below 100: CHANSVmFormatString 99.84919
[src/channelScript/CHANSVm] below 100: VmBlobGetHexString 98.71951
[src/channelScript/CHANSVm] below 100: VmBlobPackCommon 97.949104
[src/channelScript/CHANSVm] below 100: VmBlobUnpack 98.452614
[src/channelScript/CHANSVm] below 100: VmWinEmuWrite 99.62687
[src/channelScript/CHANSVm] below 100: CHANSVmLinkModules 98.677246
[src/channelScript/CHANSVm] below 100: CHANSVmStep 96.98723
[src/channelScript/CHANSVm] baseline: code 38136/53564 data 6904 functions 222 fuzzy 99.4341
regressions vs baseline: 0
global matched_code_percent: 92.26770 -> 92.30162
global fuzzy_match_percent: 99.73349 -> 99.73362
global complete_code_percent: 74.91312 -> 74.91312
global matched_data_percent: 99.78196 -> 99.78196
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,30 +0,0 @@
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/channelScript/CHANSVm] pool: IDENTICAL
[src/channelScript/CHANSVm] objdiff: code 39152/53564 data 6904/6904 functions 223/233 fuzzy 99.4412 linked code 0
[src/channelScript/CHANSVm] instruction-exact functions: 223/233
[src/channelScript/CHANSVm] section .data size 4672 match 100.0
[src/channelScript/CHANSVm] section .rodata size 1432 match 100.0
[src/channelScript/CHANSVm] section .sbss size 16 match 100.0
[src/channelScript/CHANSVm] section .sdata size 600 match 100.0
[src/channelScript/CHANSVm] section .sdata2 size 184 match 100.0
[src/channelScript/CHANSVm] section .text size 53564 match 99.44119
[src/channelScript/CHANSVm] below 100: CHANSVmConvertToFloatFromStr 97.59036
[src/channelScript/CHANSVm] below 100: VmDateDtor 94.96703
[src/channelScript/CHANSVm] below 100: VmStringSplit 98.04054
[src/channelScript/CHANSVm] below 100: CHANSVmFormatString 99.84919
[src/channelScript/CHANSVm] below 100: VmBlobGetHexString 98.71951
[src/channelScript/CHANSVm] below 100: VmBlobPackCommon 97.949104
[src/channelScript/CHANSVm] below 100: VmBlobUnpack 98.452614
[src/channelScript/CHANSVm] below 100: VmWinEmuWrite 99.62687
[src/channelScript/CHANSVm] below 100: CHANSVmLinkModules 98.677246
[src/channelScript/CHANSVm] below 100: CHANSVmStep 96.98723
[src/channelScript/CHANSVm] baseline: code 38136/53564 data 6904 functions 222 fuzzy 99.4341
regressions vs baseline: 0
global matched_code_percent: 92.26770 -> 92.30162
global fuzzy_match_percent: 99.73349 -> 99.73362
global complete_code_percent: 74.91312 -> 74.91312
global matched_data_percent: 99.78196 -> 99.78196
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,144 +0,0 @@
# a5h2 second high round
Owned data-d5 branch agent/w1003/astra-a5-high2, baseline a120e478. Read AGENTS, a5/common/levers and prior a5h, a5, g8, ult14 and CHANSVm/big1/fz1 histories. Prior-art index has no matching unit entry. Pool checked before code work: 125/125 identical. Baseline {"fuzzy_match_percent": 99.44119, "total_code": "53564", "matched_code": "39152", "matched_code_percent": 73.093864, "total_data": "6904", "matched_data": "6904", "matched_data_percent": 100.0, "total_functions": 233, "matched_functions": 223, "matched_functions_percent": 95.70815, "total_units": 1}
All data sections already 100%; no metadata corrections warranted. No linking/config changes. New trials focus on additional self-contained boundaries rather than repeating logged whole-body or leading-declaration searches. Every candidate remains subject to full clean gate and parent verification.
## CHANSVmConvertToFloatFromStr
Origin a120e478; owned source unchanged.
Target83/83: only adjacent initialized end-pointer store and type comparison differ. Allocation, byte-copy, constants loop, integer parse, decimal parse and final store have identical order. Preserve end-pointer initialization. New inner boundaries below do not repeat whole-parser inputs/record trials.
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "constant-name recognition loop returns boolean and parsed output through inline helper", "source": "470ece29b1ca", "build": 0, "pool": true, "fuzzy": 86.90362, "insns": [91, 83], "diffs": 87, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "ASCII copy and terminator inline helper returns end-of-buffer pointer", "source": "bb74cf8f9171", "build": 0, "pool": true, "fuzzy": 86.445786, "insns": [88, 83], "diffs": 63, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmConvertToFloatFromStr", "attempt": "numeric text dispatch in inline scalar helper with caller-owned initialized end pointer", "source": "c80e2b8dee27", "build": 0, "pool": true, "fuzzy": 97.59036, "insns": [83, 83], "diffs": 2, "code": "39152", "data": "6904", "regress": []}
## VmDateDtor
Origin a120e478; owned source unchanged.
Target91/91: sec/min/hour/mday/month/year/weekday signed guards and conversion calls match; seven differences in month/day table loads and varargs year store. No volatile or missing-initialization evidence. Try full value-producing boundary and split guard success joins.
- {"function": "VmDateDtor", "attempt": "calendar initialization, guards and formatting owned by full inline helper CHANSVm* vm, CHANSVmObjHdr* output", "source": "5342727a6e16", "build": 0, "pool": true, "fuzzy": 94.96703, "insns": [91, 91], "diffs": 7, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmDateDtor", "attempt": "calendar initialization, guards and formatting owned by full inline helper CHANSVmObjHdr* output, CHANSVm* vm", "source": "3ae0a6c99c81", "build": 0, "pool": true, "fuzzy": 94.96703, "insns": [91, 91], "diffs": 7, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmDateDtor", "attempt": "formatted length validation and string setter share an inline status boundary", "source": "11e45fb5ff7b", "build": 0, "pool": true, "fuzzy": 90.51649, "insns": [95, 91], "diffs": 40, "code": "39152", "data": "6904", "regress": []}
## VmStringSplit
Origin a120e478; owned source unchanged.
Target222/222 CFG: convert separator, optional limit, load input views, two scans for nonempty separator, array-only fallback, per-character loop for empty separator. New boundaries isolate the empty-separator loop and array-only fallback instead of the previously tried segment-copy helper.
- {"function": "VmStringSplit", "attempt": "empty-separator per-character array creation helper with char input", "source": "3a58af0a6ae9", "build": 0, "pool": true, "fuzzy": 97.10361, "insns": [224, 222], "diffs": 100, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmStringSplit", "attempt": "empty-separator per-character array creation helper with const char input", "source": "ef29a67c630c", "build": 0, "pool": true, "fuzzy": 97.10361, "insns": [224, 222], "diffs": 100, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmStringSplit", "attempt": "null-separator and zero-limit array creation share value-count inline helper", "source": "4c78ba884a67", "build": 0, "pool": true, "fuzzy": 97.10361, "insns": [224, 222], "diffs": 142, "code": "39152", "data": "6904", "regress": []}
## CHANSVmFormatString
Origin a120e478; owned source unchanged.
Target431/431: only r14/r18 lifetimes for character/string temporary and common string-format cleanup differ. Existing record/allocation helpers unsuccessful. Test actual format-tail conversion and precision digit loops as independent boundaries, leaving ownership and argument order intact.
- {"function": "CHANSVmFormatString", "attempt": "wide-format conversion and varargs call helper with string argument", "source": "4e2f34b8c42d", "build": 0, "pool": true, "fuzzy": 99.84919, "insns": [431, 431], "diffs": 13, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmFormatString", "attempt": "wide-format conversion and varargs call helper with const string argument", "source": "9b4e8dd5e61f", "build": 0, "pool": true, "fuzzy": 99.84919, "insns": [431, 431], "diffs": 13, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmFormatString", "attempt": "signed numeric formatting dispatch through const object helper", "source": "38bd330f8674", "build": 0, "pool": true, "fuzzy": 99.84919, "insns": [431, 431], "diffs": 13, "code": "39152", "data": "6904", "regress": []}
## VmBlobGetHexString
Origin a120e478; owned source unchanged.
Target82/82: blob validation, argument conversion, count and range guards, allocation, CTR nibble loop, offset commit. Fourteen differences are allocation only. Prior raw encoder boundaries failed; test whole-method input alias lifetime and shared allocation+loop boundary.
- {"function": "VmBlobGetHexString", "attempt": "full hex method helper formal parent object", "source": "20658c1480f8", "build": 0, "pool": true, "fuzzy": 97.13415, "insns": [82, 82], "diffs": 33, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmBlobGetHexString", "attempt": "full hex method helper formal const parent object", "source": "1a29e5ffa85b", "build": 2, "error": "/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 -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c -MMD -c src/channelScript/CHANSVm.c -o build/43U/src/src/channelScript && \"/usr/bin/python3\" tools/transform_dep.py build/43U/src/src/channelScript/CHANSVm.d build/43U/src/src/channelScript/CHANSVm.d\n### mwcceppc.exe Compiler:\n# File: src\\channelScript\\CHANSVm.c\n# ------------------------------------\n# 4286: BlobHeader* blob = (BlobHeader*)VmGetStrFromObjHdr(VmParentObj); \n# Error: ^\n# (10209) illegal implicit conversion from 'const struct CHANSVmObjHdr *' to\n# 'struct CHANSVmObjHdr *'\n# Too many errors printed, aborting program\n\nUser break, cancelled...\nninja: build stopped: subcommand failed.\n"}
- {"function": "VmBlobGetHexString", "attempt": "hex allocation, CTR loop and offset commit in one typed inline boundary", "source": "8f2e23a952ee", "build": 0, "pool": true, "fuzzy": 97.13415, "insns": [82, 82], "diffs": 33, "code": "39152", "data": "6904", "regress": []}
## VmBlobPackCommon
Origin a120e478; owned source unchanged.
Target668/668: first parser scan computes extent, optional blob allocation, second parser scan writes payloads, optional offset reset. Remaining244 differences are register allocation. New boundaries isolate first-pass sizing, string payload conversion and endian staging; retain parser initialization and alias-sensitive blob reloads.
- {"function": "VmBlobPackCommon", "attempt": "entire sizing scan through const source-blob helper with explicit extent output", "source": "9f2ebb529fe8", "build": 2, "error": "s/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 -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c -MMD -c src/channelScript/CHANSVm.c -o build/43U/src/src/channelScript && \"/usr/bin/python3\" tools/transform_dep.py build/43U/src/src/channelScript/CHANSVm.d build/43U/src/src/channelScript/CHANSVm.d\n### mwcceppc.exe Compiler:\n# File: src\\channelScript\\CHANSVm.c\n# ------------------------------------\n# 4987: u32 totalSize = flag != 0 ? 0 : parentBlob->offset; \n# Error: ^^^\n# (10141) expression syntax error\n# Too many errors printed, aborting program\n\nUser break, cancelled...\nninja: build stopped: subcommand failed.\n"}
- {"function": "VmBlobPackCommon", "attempt": "string zero-fill, width conversion and offset update use const input helper", "source": "0111155c50f2", "build": 2, "error": "bs/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 -W nomissingreturn -ipa file -gccinc -fp_contract off -O4,s -enc SJIS -lang=c -MMD -c src/channelScript/CHANSVm.c -o build/43U/src/src/channelScript && \"/usr/bin/python3\" tools/transform_dep.py build/43U/src/src/channelScript/CHANSVm.d build/43U/src/src/channelScript/CHANSVm.d\n### mwcceppc.exe Compiler:\n# File: src\\channelScript\\CHANSVm.c\n# ------------------------------------\n# 4983: srcData = (u8*)VmGetStrFromObjHdr(strObj); \n# Error: ^\n# (10209) illegal implicit conversion from 'const struct CHANSVmObjHdr *' to\n# 'struct CHANSVmObjHdr *'\n# Too many errors printed, aborting program\n\nUser break, cancelled...\nninja: build stopped: subcommand failed.\n"}
- {"function": "VmBlobPackCommon", "attempt": "endianness staging switch owns integer-buffer alias boundary", "source": "0a4f0ab31810", "build": 0, "pool": true, "fuzzy": 97.62724, "insns": [668, 668], "diffs": 253, "code": "39152", "data": "6904", "regress": []}
## VmBlobUnpack
Origin a120e478; owned source unchanged.
Target517/517: parser extent/count pass, array allocation, parser decode pass. New sizing/helper split and blob-element allocation distinguish code from previously tried integer value decoder and hex/zero trimming helpers.
- {"function": "VmBlobUnpack", "attempt": "complete count scan through const blob-and-format inline helper", "source": "2cdadc9a90a6", "build": 0, "pool": true, "fuzzy": 94.471954, "insns": [538, 517], "diffs": 502, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmBlobUnpack", "attempt": "endianness conversion separated before signedness decoding", "source": "b4e6a55b58ac", "build": 0, "pool": true, "fuzzy": 98.03675, "insns": [517, 517], "diffs": 150, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmBlobUnpack", "attempt": "blob-element allocation, source copy and cursor advancement helper", "source": "3fa61d774d6e", "build": 0, "pool": true, "fuzzy": 97.05996, "insns": [522, 517], "diffs": 402, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmBlobGetHexString", "attempt": "formal const parent with explicit legacy accessor adaptation, accessor does not write header", "source": "80c44abc68dd", "build": 0, "pool": true, "fuzzy": 97.13415, "insns": [82, 82], "diffs": 33, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmBlobPackCommon", "attempt": "first-pass sizing helper with C89 declarations and const blob input", "source": "55c48705e748", "build": 0, "pool": true, "fuzzy": 94.18563, "insns": [691, 668], "diffs": 655, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmBlobPackCommon", "attempt": "string payload conversion helper preserving mutable legacy accessor signature", "source": "2e4063c2b5e3", "build": 0, "pool": true, "fuzzy": 97.03443, "insns": [666, 668], "diffs": 362, "code": "39152", "data": "6904", "regress": []}
## VmWinEmuWrite
Origin a120e478; owned source unchanged.
Target67/67 reuses dead VM r27 for converted object; baseline instead uses r29 and uses r27 for length. Earlier whole-writer, whole-loop, typed accessor and call-only helpers already failed. Isolate real per-chunk locals and report handling, leaving object reload in caller.
- {"function": "VmWinEmuWrite", "attempt": "whole per-chunk encoder and report helper owns its actual scratch buffer", "source": "2b5a13b8d79d", "build": 0, "pool": true, "fuzzy": 87.0, "insns": [71, 67], "diffs": 48, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmWinEmuWrite", "attempt": "per-chunk encoding/report helper receives caller-owned buffer and lengths", "source": "fdbef89ce98b", "build": 0, "pool": true, "fuzzy": 87.07462, "insns": [71, 67], "diffs": 47, "code": "39152", "data": "6904", "regress": []}
- {"function": "VmWinEmuWrite", "attempt": "successful SJIS buffer termination and report use separate inline helper", "source": "983e5f910cb8", "build": 0, "pool": true, "fuzzy": 99.62687, "insns": [67, 67], "diffs": 5, "code": "39152", "data": "6904", "regress": []}
## CHANSVmLinkModules
Origin a120e478; owned source unchanged.
Target189/189, 43 allocation differences. Global pass owns r25 table/r26 list/r27 index; native pass owns r27 table/r26 list/r25 index, module lives r23. Separate list-input helpers remove shared loop-index/table variable lifetimes; earlier pVm-input pass helpers were not exact.
- {"function": "CHANSVmLinkModules", "attempt": "resolution passes (1,) receive list head directly, module formal first", "source": "8177855f3d19", "build": 0, "pool": true, "fuzzy": 99.07407, "insns": [189, 189], "diffs": 31, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmLinkModules", "attempt": "resolution passes (2,) receive list head directly, module formal first", "source": "3e72e69edb87", "build": 0, "pool": true, "fuzzy": 98.783066, "insns": [189, 189], "diffs": 39, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmLinkModules", "attempt": "resolution passes (1, 2) receive list head directly, module formal first", "source": "dc852938244a", "build": 0, "pool": true, "fuzzy": 99.33862, "insns": [189, 189], "diffs": 23, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmLinkModules", "attempt": "resolution passes (1, 2) receive list head directly, module formal second", "source": "a6f0eff3d448", "build": 0, "pool": true, "fuzzy": 99.33862, "insns": [189, 189], "diffs": 23, "code": "39152", "data": "6904", "regress": []}
Both list-input helpers reduce LinkModules43 to23 diffs. All inner-pass registers now match; only module r24 versus targetr23 and outer index r23 versus targetr24 differ. Try natural caller declaration/initialization order on this new graph, then third pass boundary.
- {"function": "CHANSVmLinkModules", "attempt": "declare outer index before module pointer with two list-input helpers", "source": "63a498a10d6e", "build": 0, "pool": true, "fuzzy": 100.0, "insns": [189, 189], "diffs": 0, "code": "39908", "data": "6904", "regress": []}
- {"function": "CHANSVmLinkModules", "attempt": "initialize outer index before binding module list with two list-input helpers", "source": "3c99bfc27a2f", "build": 0, "pool": true, "fuzzy": 99.33862, "insns": [189, 189], "diffs": 23, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmLinkModules", "attempt": "outer module traversal expressed as counted for loop with two list-input helpers", "source": "46540aabf2f8", "build": 0, "pool": true, "fuzzy": 99.33862, "insns": [189, 189], "diffs": 23, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmLinkModules", "attempt": "three typed pass helpers with const module input for local method scan", "source": "8cc52683bdc5", "build": 0, "pool": true, "fuzzy": 99.33862, "insns": [189, 189], "diffs": 23, "code": "39152", "data": "6904", "regress": []}
## CHANSVmStep
Origin a120e478; owned source unchanged.
Target1253/1253 with276 differences. Previous count/property/type-enumeration boundaries audited and not repeated. Test independently scoped constant-string, indirect-load and indirect-store handlers; preserve frame scratch outputs and return paths.
- {"function": "CHANSVmStep", "attempt": "constant-string validation and accumulator publication form one inline handler", "source": "ca8f3b843126", "build": 0, "pool": true, "fuzzy": 96.98723, "insns": [1253, 1253], "diffs": 276, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmStep", "attempt": "LOAD_INDIRECT copy lookup store cleanup owned by inline handler with explicit scratch reference", "source": "9cd14aeb2e8e", "build": 0, "pool": true, "fuzzy": 96.98723, "insns": [1253, 1253], "diffs": 276, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmStep", "attempt": "STORE_INDIRECT copy lookup store cleanup owned by inline handler with explicit scratch reference", "source": "d3d015790c88", "build": 0, "pool": true, "fuzzy": 96.98723, "insns": [1253, 1253], "diffs": 276, "code": "39152", "data": "6904", "regress": []}
- {"function": "CHANSVmLinkModules", "attempt": "format exact helper candidate and remove caller declarations and labels made obsolete by extraction", "source": "b620541da10c", "build": 0, "pool": true, "fuzzy": 100.0, "insns": [189, 189], "diffs": 0, "code": "39908", "data": "6904", "regress": []}
## Exact candidate
CHANSVmLinkModules now100.0%,189/189instructions,diffs0. The global and native dispatch walks each take their module and list head as arguments, own their own table/index/list locals, and return the existing error code. This reproduces target inner-loop register lifetimes. Declaring the outer module counter before its module pointer fixes the final r23/r24 exchange. Calls, traversal order, bounds checks, error joins, writes and literal pool are unchanged. No assembly, undefined values, volatile, metadata or linking change. Cleaned obsolete caller locals/labels and helper indentation; exact status and all233 baseline function scores rechecked. Candidate adds756 matched code bytes, keeps6904/6904 data, and raises223->224 exact functions. Parent validation still required.
All ten remaining baseline functions have at least3 distinct compiled source forms. Failed compiles do not count. Parser/date/formatter/writer scheduling and register ties remain; blob sizing boundaries introduce control-flow cost, so all are restored. Step's three new handler boundaries reproduce the original1253instructions/276diffs unchanged. Only LinkModules is retained.
Quick gate PASS: full43Ubuild, targetDOL26116613f624061ba99c8d1a299aaa6efa85670d, pool identical, instruction-exact224/233, matched code39908/53564, data6904/6904; regressions0, forbidden0, readability0. Focused diff reviewed: only the two dispatch walks extracted and caller index declaration moved. Local checkpoint commit follows; final non-quick clean gate remains required.
## Final coverage and clean gate
- CHANSVmConvertToFloatFromStr: 97.59036%; 83/83 instructions, 2 differences; 3 distinct successful trials.
- VmDateDtor: 94.96703%; 91/91 instructions, 7 differences; 3 distinct successful trials.
- VmStringSplit: 98.04054%; 222/222 instructions, 66 differences; 3 distinct successful trials.
- CHANSVmFormatString: 99.84919%; 431/431 instructions, 13 differences; 3 distinct successful trials.
- VmBlobGetHexString: 98.71951%; 82/82 instructions, 14 differences; 3 distinct successful trials.
- VmBlobPackCommon: 97.949104%; 668/668 instructions, 244 differences; 3 distinct successful trials.
- VmBlobUnpack: 98.452614%; 517/517 instructions, 141 differences; 3 distinct successful trials.
- VmWinEmuWrite: 99.62687%; 67/67 instructions, 5 differences; 3 distinct successful trials.
- CHANSVmStep: 96.98723%; 1253/1253 instructions, 276 differences; 3 distinct successful trials.
36 distinct successful source trials, including final formatting; 3 failed compilation trials excluded. All 9 remaining functions received at least 3 distinct compiling attempts. Only CHANSVmLinkModules source changes retained.
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/channelScript/CHANSVm] pool: IDENTICAL
[src/channelScript/CHANSVm] objdiff: code 39908/53564 data 6904/6904 functions 224/233 fuzzy 99.4599 linked code 0
[src/channelScript/CHANSVm] instruction-exact functions: 224/233
[src/channelScript/CHANSVm] section .data size 4672 match 100.0
[src/channelScript/CHANSVm] section .rodata size 1432 match 100.0
[src/channelScript/CHANSVm] section .sbss size 16 match 100.0
[src/channelScript/CHANSVm] section .sdata size 600 match 100.0
[src/channelScript/CHANSVm] section .sdata2 size 184 match 100.0
[src/channelScript/CHANSVm] section .text size 53564 match 99.45986
[src/channelScript/CHANSVm] below 100: CHANSVmConvertToFloatFromStr 97.59036
[src/channelScript/CHANSVm] below 100: VmDateDtor 94.96703
[src/channelScript/CHANSVm] below 100: VmStringSplit 98.04054
[src/channelScript/CHANSVm] below 100: CHANSVmFormatString 99.84919
[src/channelScript/CHANSVm] below 100: VmBlobGetHexString 98.71951
[src/channelScript/CHANSVm] below 100: VmBlobPackCommon 97.949104
[src/channelScript/CHANSVm] below 100: VmBlobUnpack 98.452614
[src/channelScript/CHANSVm] below 100: VmWinEmuWrite 99.62687
[src/channelScript/CHANSVm] below 100: CHANSVmStep 96.98723
[src/channelScript/CHANSVm] baseline: code 39152/53564 data 6904 functions 223 fuzzy 99.4412
regressions vs baseline: 0
global matched_code_percent: 92.30162 -> 92.32686
global fuzzy_match_percent: 99.73362 -> 99.73394
global complete_code_percent: 74.91312 -> 74.91312
global matched_data_percent: 99.78196 -> 99.78196
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
Final non-quick clean gate PASS. Instruction-exact functions 223/233 -> 224/233, code 39152 -> 39908/53564, data 6904/6904 unchanged. Source commit 594bce67. Fresh post-gate objdiff/report, pool125/125, ctxdiff189/189 with zero differences, full43U build and build/43U/ok agree. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Regressions, forbidden additions and readability warnings are all zero. Origin remains a120e478; no concurrent owned-source changes. No push, PR, merge, rebase or other worktree edits.
Parent acceptance remains pending. This worker round has a new exact function; the full unit still has 9 nonexact functions and remains unlinked. The compiler source shapes behind those remaining allocation and scheduling differences are unresolved. No source changes occurred after the clean gate.

View File

@@ -1,79 +0,0 @@
# Address drag-width reconstruction, 2026-10-03 UTC
Base `e4a94492`, branch `agent/bittle/address-drag-reconstruction`, 43U only.
Only `src/scene/address/iplAddress.cpp` and this log changed. Headers, metadata,
linking flags, other worktrees and earlier attempt logs are untouched.
## Recovered behavior and source structure
The original movePane_onDrag null-text-box and null-name exits skip the 0.01f
text-width margin. The baseline incorrectly added that margin unconditionally.
This was visible in the original branch destinations and also documented in
older fz10 attempts, but the incomplete correction had not been retained.
The new typed inline GetDragNameWidth helper receives the text box and a reference
to the real friend record. It evaluates the record address before entering the
measurement path, checks the text box, then derives/checks the name address.
This recovers the target's two early-exit regions, delayed name-member address,
font calls, character-width loop, and successful-only margin. An empty but valid
name still receives the margin, as the target does. The existing unused GetWidth
call and per-character GetFont lookup remain present.
The text box lookup now spells out the root-pane FindPaneByName call already
used by layout::Object's wrapper. An explicit right-edge value preserves the
existing single-precision add, ratio multiply, and negation sequence; it does
not combine ratios, reassociate operations, or change the comparison. Together,
these source boundaries make the complete function instruction-exact.
## Attempts
- Read scene4, data-d7, sol-med and fz10 drag-width evidence before iterating.
- Moving only the margin to the measured branch improved 92.451614 -> 93.741936%.
The target's margin-first addition reached 93.80645%.
- Computing the typed friend-record reference before the guard reached 98.064514%.
- A nullable name-pointer helper reached 98.741936% but 156/155 instructions.
The friend-record-reference helper recovered 155/155 and 99.80645%.
- An explicit projected right-edge accumulator recovered the target FP register
lifetime and reached 99.870964%. Mutating the translation vector instead grew
the function and was rejected.
- Direct root-pane lookup resolved the last four receiver/literal register
operands, reaching 100.0%. No parameter or declaration sweep was used.
- No new assembly, use-site volatile, dummy storage, padding, uninitialized
values, compiler-option changes or linking experiments were introduced.
## Verification
Before -> after:
- movePane_onDrag: 92.451614 -> 100.0% objdiff; 153 -> 155 instructions against
target 155; ctxdiff diffs 0 across the whole 0x26C-byte function.
- Unit fuzzy: 99.69818 -> 99.89328%.
- Exact functions 97/101 -> 98/101; matched code 21236 -> 21856 / 23988 bytes.
- Data 1964/1964 (100%) and linked status unchanged.
- Fresh baseline/candidate object comparison: all 97 previously objdiff-exact
function streams are unchanged. Raw .data, .rodata, .sbss, .sdata, .sdata2 and
.ctors bytes/extents are unchanged.
- Pool: all 81 strings identical to target.
- Literal audit: 86 arguments checked across 100 functions, no candidates or
errors. FriendListCache::update is skipped for its pre-existing size mismatch.
- Full 1027-unit report has no exact-function/code/data/fuzzy regressions.
- Full 43U build and build/43U/ok passed. DOL SHA1 remains
`26116613f624061ba99c8d1a299aaa6efa85670d`.
Host behavior verification extracts the production helper and method bodies and
uses deterministic UI/controller/font stubs. With -fno-fast-math,
-ffp-contract=off and undefined-behavior/bounds sanitizers, all 200,000 geometry
cases agree bit-for-bit with an independent target-ordered FP reference. Coverage
includes 66,667 null-text-box cases, empty/nonempty UTF-16 names, page offsets,
varied projection widths, both clamp branches and comparison boundaries. Font
lookup/width/character-call counts are also checked. Embedded name arrays are
valid objects; invalid-record/null-name pointer execution and Wii runtime UI
behavior are not claimed.
Private evidence: `/tmp/address-drag-reconstruction/` contains baseline/final
reports and source objects, drag-final.ctx, pool/literal audits, full-build.log,
validate_drag.py and drag-tests.log, plus the rejected source experiments. No
retail assembly or binary is included in this commit.
GATE: movePane_onDrag exact, behavior correction verified, all prior exact/data
metrics preserved. Other unit remainders and linking remain open. Frozen for
independent parent validation.

View File

@@ -1,83 +0,0 @@
# AES final-round word reconstruction, 2026-10-02
Base: `813660b9` plus local cherry-pick `97035641` of the parent's already queued
`fce31442`. The imported candidate and its log are unchanged. This follow-on
changes only two final-round expression lines in `libs/RevoEX/src/net/aes.c`
and this new log. 43U only; no configuration, metadata, headers or linking edits.
## Retained reconstruction
The last cipher round substitutes four bytes, places them in distinct unsigned
word lanes, and combines them before AddRoundKey. Encryption combines the high
and low lanes, combines the two middle lanes, then ORs those pieces. Decryption
combines high/low first, then the lower-middle and upper-middle lanes by XOR.
These expressions preserve byte indices, shifts, S-box identity, key traversal,
output order and all input/state reads. The four lane contributions are disjoint;
all operands are unsigned and have no side effects. No value, algorithmic path,
or table is newly invented. This is arithmetic-dependency reconstruction rather
than a new implementation or an exact-match claim.
The target evidence is the original split object's final substitution and
packing regions in `AESiEncryptBlock` and `AESiDecryptBlock`. Those regions
contain the same sixteen byte loads and word-lane insertion/XOR operations.
The retained grouping improves the whole-function instruction similarity at
the target's existing body sizes. It does not reproduce every target dependency
or register assignment: exact matching remains open, and positional ctxdiff
counts are slightly worse despite the improved aligned objdiff scores.
## Explored alternatives
- MD5 third-round Boolean grouping and four typed step helpers were tested.
The best small Boolean change only reached 94.37255% from 94.30719%; a larger
helper reached 94.43791%. Both were discarded as too little benefit for the
added change. MD5 source is byte-for-byte unchanged.
- Typed inverse-key word, round and complete-schedule helper scopes were tested.
A round helper reached 69.72908% decrypt similarity, but interacted poorly
with the better final-round grouping. No helper is retained.
- Fusing AddRoundKey into each intermediate column regressed both directions.
- Typed final-substitution helpers, packed-byte intermediates, and explicit
T-table column helpers were evaluated. Their source complexity was unnecessary
or they scored below the two retained macro changes.
- Twelve unsigned lane-combination expressions were checked for each final-round
macro. Two independently improving forms are retained. No register/declaration
sweep, assembly, volatile qualifier, undefined value, padding or compiler-option
change was used.
## Verification
Before -> after:
- AESiEncryptBlock: 62.58228 -> 65.81013% fuzzy; 158/158 instructions unchanged;
final ctxdiff 137 positional differences (baseline 133).
- AESiDecryptBlock: 67.64143 -> 69.69323% fuzzy; 251/251 instructions unchanged;
final ctxdiff 227 positional differences (baseline 224).
- AES unit: 79.601746 -> 81.09157% fuzzy; exact functions 7/9 and exact code
1116/2752 bytes unchanged. Data 2800/2800 (100%) and linking unchanged.
- All seven exact AES APIs/CBC functions retain objdiff 100% and ctxdiff diffs 0:
NETAESCreateEx 108/108, NETAESCreate 2/2, NETAESDelete 1/1, NETAESEncrypt 46/46,
NETAESDecrypt 46/46, NETiAESEncryptoBlock 39/39, NETiAESDecryptoBlock 37/37.
- AES pool: all four strings identical. .rodata 2592 bytes and .sdata2 8 bytes
identical. .data has the same 197-byte prefix of the 200-byte target, retaining
the existing three-byte target alignment extent; no padding was introduced.
- MD5 remains unit 96.179825%, ProcessBlock 94.30719% (306/306 instructions),
exact functions 3/4, exact code 600/1824, data 456/456. Its three exact APIs
retain ctxdiff diffs 0. All 448 .data bytes are identical; .sdata retains its
existing one-byte source/seven-byte target-alignment extent difference.
- Full 1027-unit report: no exact-function, exact-code, data or fuzzy regression
versus the locally imported parent candidate.
- Full 43U build and build/43U/ok passed. DOL SHA1 remains
`26116613f624061ba99c8d1a299aaa6efa85670d`.
Host tests compile production source unchanged with private copies of the existing
PPC type/intrinsic shims. Both final AES and the imported parent baseline passed
all 2,406 AES-128/192/256 known-answer and seeded randomized CBC checks, including
separate/in-place buffers and single/incremental calls. Unchanged MD5 passed all
3,088 known-answer/random/chunking checks. The MD5 test supplies RFC1321 padding
externally; GetDigest's target-endian length stores remain outside host coverage.
Private local evidence: `/tmp/crypto-reconstruction-next/` contains baseline/final
reports, pool/section/ctxdiff results, full-build.log, host validation scripts and
results, and the rejected experiments. No retail assembly or binary is committed
or uploaded. Prior worker logs under `/tmp/crypto-remainder/` are untouched.
GATE: validated partial arithmetic reconstruction with no report regressions.
Exact matching and linking remain open. Candidate frozen for parent validation.

View File

@@ -1,78 +0,0 @@
# AES key-schedule cursor reconstruction, 2026-10-02
Source baseline: `449529d9`. This separate candidate follows the frozen MD5
commit `521056a9`; it changes only `libs/RevoEX/src/net/aes.c` and this log.
43U only. No linking flags, configuration, tables, or public API edits.
## Target evidence and retained change
`AESiDecryptBlock` in `build/43U/obj/libs/RevoEX/src/net/aes.o` is 0x3EC bytes /
251 instructions. Its entry first forms the key-schedule base at context+0x10
(function-relative offset 0x18), extracts the last-round offset from the flags
word (offset 0x24), and adds that offset to the already formed base (offset
0x28). The baseline combined initializer produced 249 instructions. Explicitly
initializing the typed key pointer to `context->keys` before advancing it by
`rounds*4` recovers the target's two-stage pointer construction and body size.
The retained change is two added source lines and one removed line. All AES
round expressions, lazy inverse key transformation, tables and CBC chaining
remain unchanged.
This is a structural matching improvement, not a newly implemented AES path.
Both existing block algorithms were already present and pass the behavior tests.
## Explored and rejected alternatives
- Inlined single-word round helpers, byte-typed table lookups and table-rotation
helpers changed scheduling but regressed encryption or added source complexity.
- Staging four inverse-mix column outputs through a typed round helper improved
decrypt similarity but required substantially more source and still did not
match. Not retained.
- Alternate inverse-key-transform local lifetimes and an inverse-key helper
gave only small extra fuzzy movement, without new algorithm reconstruction.
- Context-relative key indexing and row/word loop variants did not improve the
minimal key-base candidate.
- Moving next-state locals outside the round loop did not change codegen.
- Reordering key-base declarations produced a negligible score change; the
original natural declaration order was kept.
- Two exploratory C89-incompatible mixed-declaration variants failed to compile
and were immediately discarded. No failed source is retained.
## Verification
Before -> after:
- AESiDecryptBlock: 249 -> 251 instructions against target 251;
fuzzy 61.49004 -> 63.836655%. Final ctxdiff: 224 positional differences.
- AESiEncryptBlock: unchanged, 158/158 instructions and 60.348103% fuzzy.
- Unit fuzzy: 76.844475 -> 77.700584%.
- Exact functions: 7/9 -> 7/9. Exact code: 1116/2752 bytes unchanged.
- Data: objdiff 2800/2800, 100%, unchanged. Linked status unchanged.
- All seven exact functions have ctxdiff diffs 0: NETAESCreateEx 108/108,
NETAESCreate 2/2, NETAESDelete 1/1, NETAESEncrypt 46/46, NETAESDecrypt 46/46,
NETiAESEncryptoBlock 39/39, NETiAESDecryptoBlock 37/37.
- String pool: all four strings identical.
- .rodata: 2592 identical bytes; .sdata2: 8 identical bytes. Source .data is
197 bytes with the same prefix as the 200-byte target section; three target
alignment bytes are an existing extent difference. No padding was added.
- The full 1027-unit report has no regressions in exact functions/code/data or
fuzzy score against the baseline report. Frozen MD5 metrics are unchanged.
- Full 43U build passed with the configured wibo wrapper; build/43U/ok passed.
DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
Host validation: `python3 /tmp/crypto-remainder/validate_aes.py` compiles the
production C unchanged with minimal types/OSReport shims. Input, key and IV
words are represented with their PPC big-endian numeric values, so native host
byte order does not change the algorithm. Known-answer tests cover AES-128,
AES-192 and AES-256; seeded randomized CBC tests compare against cryptography's
AES implementation for all three key sizes. Each tests separate/in-place
buffers and single/incremental calls.
Result: all 2,406 production-source known-answer/randomized checks passed. The
original baseline had independently passed the same coverage before changes.
A separate saved helper experiment also passed but is not part of this commit.
Local evidence, not committed or uploaded: `/tmp/crypto-remainder/aes-final.ctx`,
`aes-final.json`, `aes-full-build.log`, `aes-vectors.log`, `aes-decrypt.target`,
and `validate_aes.py` plus its header shims. No retail assembly is included.
GATE: validated partial structural candidate; no regressions. Exact matching
and linking remain open.

View File

@@ -1,71 +0,0 @@
# AES round-expression reconstruction, 2026-10-02
Separate follow-on to AES key-cursor candidate `2a537c14`. Frozen MD5 candidate
`8a6461f9` and prior logs are untouched. This commit changes five expression
lines in `libs/RevoEX/src/net/aes.c`, plus this log. 43U only; no linking changes.
## Evidence and reconstruction
Target evidence remains the original split `aes.o`, AESiEncryptBlock and
AESiDecryptBlock. Both round bodies use four cyclic T-table columns: rotations
of 24, 16 and 8 bits plus the unrotated low-byte column. Their XOR dependencies
and the inverse-key transform's successive rotate/XOR dependencies lower in a
different order from the previous source. The retained expressions associate
these same unsigned contributions so compiler scheduling moves closer to the
target. Byte indices, rotation counts, table identity, key traversal, row order,
loop conditions and final substitution are unchanged.
The inverse-key transform still computes doubled/four-times/eight-times byte
values in the same GF(2^8) representation. Each subsequent stage combines its
old mixed value, its 8-bit rotation and the same added contribution. Explicit
XOR assignment replaces the compound assignment; all RHS values are evaluated
before the assignment, with no side effects or undefined evaluation order.
No source body or algorithm was missing. This is further instruction-shape
reconstruction, not a new functional path or an exact-match claim.
## Attempts
- Eight staged column/round helpers and six explicit table-load stages did not
improve both functions; reverted.
- Tested 120 associative/permutation forms of four T-table contributions,
retaining the independent improving expression for each cipher direction.
- Tested twelve uniform inverse-key XOR forms plus per-stage refinements. The
retained rotate-first XOR form improves all three stages without new helpers.
- Array/struct state views, a 15-by-4 round-key view, initial-key cursor forms,
and typed table helpers were evaluated. Small gains that required larger
changes were rejected, along with all regressions.
- No register declaration sweep, inline assembly, volatile qualifier, padding,
undefined input, compiler-option change or table change was used.
## Verification
Before -> after:
- AESiEncryptBlock fuzzy 60.348103 -> 62.58228%; 158/158 instructions unchanged;
final ctxdiff has 133 positional differences.
- AESiDecryptBlock fuzzy 63.836655 -> 67.64143%; 251/251 instructions unchanged;
final ctxdiff has 224 positional differences.
- Unit fuzzy 77.700584 -> 79.601746%.
- Exact functions 7/9, exact code 1116/2752 bytes, data 2800/2800 (100%), and
linked status are unchanged. All seven exact functions retain ctxdiff diffs 0.
- All four pool strings match. Table and data source is unchanged.
- Frozen MD5 source/metrics are unchanged: unit96.179825%, ProcessBlock94.30719%.
- The full 1027-unit report has zero exact-function/code/data/fuzzy regressions
against the immediately preceding frozen MD5/AES source report.
- Full 43U build and build/43U/ok passed. DOL SHA1 remains
`26116613f624061ba99c8d1a299aaa6efa85670d`.
`python3 /tmp/crypto-remainder/validate_aes.py` passed all 2,406 production-source
known-answer/randomized AES-128/192/256 CBC checks, including in-place buffers
and incremental calls. The frozen AES parent source independently passed the
same coverage in the same run. Input/key/IV words carry their PPC big-endian
numeric values in the native host harness; production source is unmodified.
Local evidence, not committed or uploaded: `/tmp/crypto-remainder/` contains
`aes.xor-results.json`, `aes.invmix-results.json`, `aes-rounds-final.json`,
`aes-rounds-AESiEncryptBlock.ctx`, `aes-rounds-AESiDecryptBlock.ctx`,
`aes-rounds-vectors.log`, `aes-rounds-full-build.log`, and `validate_aes.py`.
No original retail assembly or binary is included in this commit.
GATE: validated partial arithmetic/data-flow candidate; no regressions. Exact
matching and linking remain open.

View File

@@ -1,142 +0,0 @@
# AES decrypt state declaration order
Base `7b32451989deae9f6732e74fc2ed95f3afb27b28`, leaf
`agent/bittle/aes-state-declaration-order`. Only the existing four uninitialized
AESiDecryptBlock state declarations and this log change. No initializer,
expression, assignment, scope, type, helper, table, ABI or linking change.
## Source and original-object screening
Baseline aes.c SHA256:
`5829cc15a496ed08767b7b857d4fa5ad099974dfc48182fd0f8a0eb00d61725a`.
It is byte-identical to the accepted #1020 source. The original/source audit
found no new missing round, key/table access, width or ownership operation.
It confirmed cyclic T-table byte indices/rotations, forward/backward four-word
key traversal, lazy inverse-key writes and round-count reload, transform-flag
clear, and final key-load/output-store ordering. Existing source/target alias
proofs from #1020 remain relevant; keys must not be snapshotted before earlier
output stores. The residual also includes arithmetic scheduling and dependency
shape, so it is not described as exclusively register coloring.
Earlier key-base/local trials in `/tmp/crypto-remainder/` moved initialized
rounds/key declarations or changed initialized next-state lifetimes/scopes.
Those precede the accepted round and final-expression changes. The three
allhands AES logs and #1020's five-trial evidence show no four-state declaration
search in the current expression context. Initialized encryption/round
locals were excluded.
## Neutral split, followed by exactly one official search
The original line201, `u32 a,b,c,d;`, was first split in place into four plain
`u32` declarations in the same a,b,c,d order. This adds no state or initializer.
All four values are assigned by the existing input/key sequence before their
first use; the preceding lazy-transform branch does not access them.
Before any order search, a fresh compiler rebuild proved the **entire object
byte-identical** to baseline, SHA256:
`426958cfec4e8d48869177e56a9f9d8afed12af28934980d88918c8bd6d05177`.
The fresh full 1027-unit report was also byte-identical. This neutral split
was an explicit prerequisite to the following single authorized run:
```sh
WIBO_SJIS_MISSING_IMPORTS=1 NINJA=../.venv/bin/ninja PYTHONPATH=../local-tools \
../.venv/bin/python tools/decomp-assist/declsearch.py libs/RevoEX/src/net/aes \
AESiDecryptBlock --lines 201 204 --max-evals 24
```
The official tool was unchanged, SHA256
`9642fe689ee3a4d80236b5f790fdda83397214cd209c62ce07088b3f2b3726bb`.
It performed ordinary compiler rebuilds; Ninja records the split rebuild,
17 evaluation rebuilds and the final selected-order rebuild after baseline.
Official score trajectory:
`(93,217) -> (68,215) -> (61,214) -> (60,205)`.
It stopped at a **local fixed point after 17 unique evaluated orders**, below
the 24 cap. This covers the final swap/move neighborhood and orders visited
along the improving path, **not all 24 permutations**. No second run occurred.
Retained declarations, in their original scope:
```c
u32 d;
u32 b;
u32 c;
u32 a;
```
All source text outside the old grouped declaration is byte-for-byte unchanged.
This is a compiler declaration-order gain, not newly reconstructed behavior.
## Fresh measures and full gates
- AESiDecryptBlock: **72.30677 -> 76.70518%**, 251/251 instructions;
positional differences217 ->205.
- AESiEncryptBlock: **65.81013% unchanged**, 158/158, emitted body unchanged.
- Unit fuzzy: **82.04506 ->83.64971%**.
- Exact functions **7/9**, exact code **1116/2752**, data **2800/2800**, unchanged.
- All eight sibling function instruction streams and resolved relocations
unchanged, including all seven exact API/CBC functions.
- Every allocated non-code section preserves bytes, extent and alignment.
- Full1027-unit comparison: AES is the only changed unit; no exact function,
code, data, function-size total or per-function fuzzy regression.
- Pool4/4 identical. Literal audit: nine functions, five arguments, no
candidates, skips or errors.
- Full43U build, default `progress build/43U/report.json`, and `build/43U/ok`
pass with `../toolchain/wibo-build/wibo` and `WIBO_SJIS_MISSING_IMPORTS=1`.
- DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
- `git diff --check` passes.
## Independent behavior and alias validation
Private scripts use the actual production C unchanged and minimal native
PPC-type/OS shims, with key/input/IV words represented in target-endian numeric
form. Known-answer/randomized outputs are checked against an independent AES
implementation. Native libraries use UBSan with no recovery.
- `validate_aes.py`: candidate and actual baseline each pass **2406**
AES-128/192/256 CBC cases, including separate/in-place buffers and incremental
calls, with no UBSan failure.
- `test_input_overlap.py`: candidate passes **2688** direct-block cases with
output displaced -3 through +3 words relative to input, in both directions.
- `final_publication_audit.py`: interprets actual source and original final-round
instructions; **4608** final-state cases pass for both, including separate
output and eight output placements overlapping/adjoining final key words.
Every case checks K0-load/O0-store/K1-load/O1-store/K2-load/O2-store/K3-load/
O3-store ordering against an independent word/publication oracle.
The candidate's incoming decrypt state registers are r10/r6/r5/r0, established
from actual input-key XORs and round-result assignments; the final key cursor
is r9. Only this register map was updated in the saved interpreter. The actual
instruction streams, original-object data, and independent oracle are read
rather than replaced by synthetic code.
Pure immutable S-box load scheduling still differs: candidate decrypt has
5/12/16/16 table loads before successive output stores versus target5/11/16/16.
The key-load/store sequence is preserved. This remaining instruction mismatch
does not justify another source variant or a changed alias contract. The
key-overlap cases are diagnostics, not a new public-API support promise.
No live Wii runtime execution is claimed.
## Reproduction and freeze
Private evidence directory: `/tmp/aes-state-declaration-order/`. From this leaf:
```sh
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aes-state-declaration-order/verify_candidate.py
python3 /tmp/aes-state-declaration-order/validate_aes.py
python3 /tmp/aes-state-declaration-order/test_input_overlap.py
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aes-state-declaration-order/final_publication_audit.py
```
The directory also contains baseline/split/searched/final reports, baseline
and candidate source/objects, search trajectory, build/default-progress logs,
vector/overlap/publication outputs, and pool/ctxdiff/literal evidence. Retail
objects/disassembly remain private and are not committed.
Final source SHA256:
`29f201a50b18799eea47820c52ebdb26254e5ccdc2904c858ffffe71cea9f109`.
Final source-object SHA256:
`9eaf814a28a1585d780efa84a36f8981711b95c64566f67cf99469154eefc970`.
GATE PASS: strict official partial fuzzy gain; all exact/code/data/behavior
and full43U/DOL gates preserved. Candidate frozen; no further search running.

View File

@@ -1,149 +0,0 @@
# AES four-state declaration order: exhaustive official-fuzzy comparison
Base `a2c008c4`; leaf `agent/bittle/aes-state-order-exhaustive`. The accepted
`ce3cbf5f` source is the baseline: decrypt76.70518%, existing state declaration
order d,b,c,a. The previous frozen candidate remains preserved.
Only four existing uninitialized `u32` declarations are reordered to b,a,c,d.
All other source bytes, initializers, expressions, assignments, scopes, types,
helpers, tables, public APIs, configuration and linking status are unchanged.
This is a declaration-order matching gain, not new algorithmic behavior.
## Why a complete comparison was needed
The prior official search reached a local fixed point after17 evaluated orders,
optimizing `(structural difference, positional difference)` rather than official
objdiff fuzzy. Its saved log did not record intermediate orders. Before this
experiment, a read-only traversal reconstruction admitted three possible
17-order histories, so the original complete visited set was not recoverable
uniquely from saved artifacts alone. The remaining seven could not be reliably
named, and the prior intermediate orders had no official-fuzzy measurements.
The authorized experiment therefore deliberately rebuilt all24 permutations.
The official search tool, compiler, options and cache behavior were untouched.
A separate private driver changed only lines201-204, invoked ordinary Ninja
compilation and the official objdiff report tool for every order, and saved
source/object/report snapshots plus a manifest. No compilation was skipped,
no surrogate score replaced objdiff, and no restart or extra dimension occurred.
The fresh dbca baseline was rebuilt and measured first. The other23 orders were
then compiled once each. There are12 distinct whole-object hashes across the24
orders. After selection, one additional ordinary object rebuild restored the
best source. Ninja independently records25 successful object rebuilds after the
saved baseline, matching24 evaluations plus the final selection rebuild.
## Complete results
Every row passed all preservation gates: every other unit's full report is
identical; all eight sibling functions retain their instruction streams and
resolved relocations; every existing exact function/code/data measure is
preserved; all allocated non-code bytes, extents and alignments are identical;
and source text outside the four declarations is unchanged. Each row has a
fresh official report, source snapshot/hash and object snapshot/hash in the
private manifest. Object hashes below are SHA256 of the entire compiled AES
object, not instruction-score hashes.
| Order | Official decrypt fuzzy | Structural/raw | Preservation gates | Object SHA256 |
|---|---:|---:|---|---|
| dbca | 76.70518 | 60/205 | PASS | `9eaf814a28a1585d780efa84a36f8981711b95c64566f67cf99469154eefc970` |
| abcd | 72.30677 | 93/217 | PASS | `426958cfec4e8d48869177e56a9f9d8afed12af28934980d88918c8bd6d05177` |
| abdc | 70.972115 | 72/216 | PASS | `5adf70c02ada68e520d1c533339eb830e4c86227c99dba537113e4ea1d47bf1c` |
| acbd | 72.30677 | 93/217 | PASS | `426958cfec4e8d48869177e56a9f9d8afed12af28934980d88918c8bd6d05177` |
| acdb | 72.123505 | 93/217 | PASS | `f7779c0547ac63397ed0f8631cbcafeed598ca9f734e271eadb68568a396bb69` |
| adbc | 70.972115 | 72/216 | PASS | `5adf70c02ada68e520d1c533339eb830e4c86227c99dba537113e4ea1d47bf1c` |
| adcb | 76.525894 | 68/216 | PASS | `44f7dd4aea84e4d62c9bca2ba6c034c368ca48c1e8bb7497924124641f34c558` |
| bacd | 78.95618 | 68/215 | PASS | `1a37fcb561221b6b60fb66feaf06411cc02fafef101d705b60ce2c69a4379569` |
| badc | 74.99602 | 71/213 | PASS | `427ae222f6c756f3a525e53f7aba7cf232c9d509c80d37c0c87b3ad5ffe5e9e1` |
| bcad | 78.95618 | 68/215 | PASS | `1a37fcb561221b6b60fb66feaf06411cc02fafef101d705b60ce2c69a4379569` |
| bcda | 76.525894 | 78/211 | PASS | `57052da319d896c187a83017e6e31d69e7bc4fd0bda1f1cf8f4795aa8d838e3b` |
| bdac | 74.99602 | 71/213 | PASS | `427ae222f6c756f3a525e53f7aba7cf232c9d509c80d37c0c87b3ad5ffe5e9e1` |
| bdca | 78.876495 | 65/213 | PASS | `8398c78fc241ecfb72a89ad0b14fc9b71118dd9f64cca7bc071ee5730f2001ec` |
| cabd | 73.32271 | 70/214 | PASS | `79f077cea200aefb8fb66ae2d108fbd2ef2985e4977d0b5fd63b108b9cde5114` |
| cadb | 73.32271 | 70/214 | PASS | `79f077cea200aefb8fb66ae2d108fbd2ef2985e4977d0b5fd63b108b9cde5114` |
| cbad | 73.836655 | 63/216 | PASS | `7651aa61c79c62ebe0af0b750639552ba00079357cd9865b4dedf7b884271f9b` |
| cbda | 73.836655 | 63/216 | PASS | `7651aa61c79c62ebe0af0b750639552ba00079357cd9865b4dedf7b884271f9b` |
| cdab | 73.32271 | 70/214 | PASS | `79f077cea200aefb8fb66ae2d108fbd2ef2985e4977d0b5fd63b108b9cde5114` |
| cdba | 73.836655 | 63/216 | PASS | `7651aa61c79c62ebe0af0b750639552ba00079357cd9865b4dedf7b884271f9b` |
| dabc | 75.76892 | 61/214 | PASS | `e0190031dca922706310bbe3d26ffff12e9224a7f13442fd1ecad4f83a0cf416` |
| dacb | 75.76892 | 61/214 | PASS | `e0190031dca922706310bbe3d26ffff12e9224a7f13442fd1ecad4f83a0cf416` |
| dbac | 76.70518 | 60/205 | PASS | `9eaf814a28a1585d780efa84a36f8981711b95c64566f67cf99469154eefc970` |
| dcab | 75.76892 | 61/214 | PASS | `e0190031dca922706310bbe3d26ffff12e9224a7f13442fd1ecad4f83a0cf416` |
| dcba | 76.70518 | 60/205 | PASS | `9eaf814a28a1585d780efa84a36f8981711b95c64566f67cf99469154eefc970` |
The maximum official fuzzy is **78.95618%**, shared by bacd and bcad, which
produce byte-identical objects. The first strictly improving maximum, bacd,
is retained. All24 orders are covered; this four-declaration space is now
exhausted for this exact expression/compiler context.
Using the newly measured score table, a read-only replay of the unchanged
hill-climbing traversal reproduces the original trajectory and17-order count:
`abcd (93,217) -> bacd (68,215) -> dacb (61,214) -> dbca (60,205)`.
Thus the best official-fuzzy form had been the first improvement in the old
run, then was displaced by its structural-first objective. This replay uses
new exhaustive measurements; it is not claimed as recovery from old logs alone.
## Final measures and gates
- AESiDecryptBlock: **76.70518 ->78.95618%**,251/251 instructions.
- AESiEncryptBlock: **65.81013% unchanged**,158/158; entire function unchanged.
- AES unit fuzzy: **83.64971 ->84.47093%**.
- Exact functions **7/9**, exact code **1116/2752**, data **2800/2800**, unchanged.
- Full1027-unit baseline/final comparison: only AES changes, no existing exact,
code, data or per-function fuzzy regression in the retained result.
- Pool4/4 identical; literal audit covers nine functions/five arguments, with
no candidates, skips or errors.
- Fresh full43U baseline and final full43U builds pass using
`../toolchain/wibo-build/wibo` and `WIBO_SJIS_MISSING_IMPORTS=1`.
- Default `progress build/43U/report.json` and `build/43U/ok` pass.
- DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
- `git diff --check` passes. No remote action or linking change.
## Behavior and alias validation
The production C is compiled unchanged for native tests with minimal PPC-type/
OS shims and target-endian numeric words. Candidate and actual baseline each
pass2406 independent AES-128/192/256 known-answer/randomized CBC comparisons,
including in-place/separate buffers and incremental calls. The candidate also
passes2688 direct-block input/output overlaps at offsets-3..+3 words. Both
native validation paths run under UBSan with no recovery and no runtime error.
An interpreter of actual source and original final-round instructions passes
4608 cases for both, against an independent packing/publication oracle. These
include separate output and eight placements overlapping/adjoining final key
words. The interleaved K0-load/O0-store through K3-load/O3-store event sequence
is preserved. Candidate decrypt's incoming state registers are r6/r0/r5/r10,
verified from actual input/key XORs and round-result assignments; its key cursor
is r9. Only that map was adapted from the existing independent interpreter.
Immutable S-box load scheduling remains nonexact: source has5/13/16/16 table
loads before successive stores, versus target5/11/16/16. This does not change
the key-load/store alias order and is not hidden by the fuzzy gain. Key-overlap
cases remain diagnostics, not a new supported public API promise. No live Wii
runtime execution is claimed.
## Reproduction and frozen evidence
Private evidence directory: `/tmp/aes-state-order-exhaustive/`. It contains
`manifest.json` with every order/hash/score/gate,24 corresponding source/object/
report snapshots, compiler logs, baseline/final reports, the enumeration driver,
known-answer/overlap/publication scripts and results, and full/default-progress/
pool/ctxdiff/literal gates. Retail objects and disassembly remain private.
Do not rerun the exhausted enumeration. Read-only reproduction checks and tests:
```sh
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aes-state-order-exhaustive/verify_exhaustive.py
python3 /tmp/aes-state-order-exhaustive/validate_aes.py
python3 /tmp/aes-state-order-exhaustive/test_input_overlap.py
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aes-state-order-exhaustive/final_publication_audit.py
```
Baseline source SHA256:
`29f201a50b18799eea47820c52ebdb26254e5ccdc2904c858ffffe71cea9f109`.
Final source SHA256:
`af7e472e1d862675b353679af97ff4f90115891d14eb9b327941995e56dae48c`.
Final whole-object SHA256:
`1a37fcb561221b6b60fb66feaf06411cc02fafef101d705b60ce2c69a4379569`.
GATE PASS: strict official fuzzy gain, complete24-order coverage, all exact/
code/data/source/alias/default-progress/43U/DOL gates preserved. Source frozen;
no further order experiment running or needed in this context.

View File

@@ -1,20 +0,0 @@
# AOSS WLAN connection argument contract
Base 9c7d87ab, 43U. This correction is separate from the key-material representation work.
AOSSConnectAndAwaitHost receives settings and config pointers but previously called AOSSi_WLANConnect through a false no-argument declaration. The actual callee takes a connection record and status output. In the original caller, incoming r3/r4 are forwarded untouched to the first call; the callee preserves r3/r4 and consumes both. The compiler happened to retain the same register contents despite the missing source arguments, hiding this defect behind exact generated code.
The local declaration now uses forward-declared struct AOSSConnection and struct AOSSConnectionStatus, matching the existing tags in AOSSLink.c. The wrapper explicitly passes settings and config. No shared header or AOSSLink.c edit. All three original outer callsites supply r3 = sp+0xb8 (settings) and r4 = s_accessPointConfig, matching the source caller expressions. No arguments are reordered or synthesized.
Validation:
- Configured/built 43U using the approved wibo wrapper and WIBO_SJIS_MISSING_IMPORTS=1
- AOSSConnectAndAwaitHost remains 60/60 instructions, ctxdiff zero
- Every code/data/relocation section, section header, and symbol record is byte-identical to baseline; only five compiler-generated anonymous local symbol spellings change in .strtab
- Full-project objdiff report unchanged: AOSS unit 97.71665% fuzzy, 16/21 exact, 6436 exact code bytes and 3928/3928 data bytes; no matching gain claimed
- Pool identical, 1/1 strings; literal audit checks 12 arguments across 19 functions, no candidates/errors; AOSS_Init_old and AOSSSendHelloRequest are skipped for their existing unequal sizes
- ASan/UBSan extracted-production wrapper harness passes 30,600 cases, asserting actual typed callee pointer identities, driver/startup failures, host readiness, cancellation, all retry boundaries and the original timeout behavior (cleanup and status clear, then return zero). No network calls occur; platform functions are controlled stubs
- LeakSanitizer disabled for ptrace restriction; address/undefined instrumentation enabled
- Full 43U build and ok gate pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d
- git diff --check passes
Private reproducible evidence: /tmp/aoss-key-call-contracts, with original caller/callee disassembly retained privately under /tmp/aoss-decrypt-audit.

View File

@@ -1,158 +0,0 @@
# AOSS decrypt declaration order: official-fuzzy intermediate recovery
Base: `f46483afafa066cf1dfaa6e7603241b9c7beeff4`.
Leaf: `agent/bittle/aoss-decrypt-declaration-order`.
Only the existing uninitialized `controlFlags` and `secondValue` declaration
positions are exchanged in `src/scene/setting/AOSS.c`. No expression, assignment,
initializer, scope, type, array, aggregate, helper, configuration or linking
setting changes. The initialized encrypted-payload pointer remains fixed.
## Current source and historical coverage
The source baseline SHA256 is
`ac7a459ef23327c3dd415b3146391da10553ce8bddeb82b9a4030c120dbd44b4`.
The AOSSDecryptMessage definition SHA256, excluding trailing whitespace, is
`6ea09d2a3ac78a6b0b498073f5e3423ca8898752fb8e92e5c53502c4b0ad8fdf`.
The selected source SHA256 is
`3176094eb46f60ea3fbfad5d70d3d169752650d58fadafa30d17ca7add7567ba`.
Original and baseline have 321 instructions, the same frame and branch/call
positions, and structural/raw score (0,87). The actual key-schedule boundary
passes schedule, complete ten-byte key, key length 10 and dataLength in r3-r6.
The callee consumes those arguments. Allocation error exits, CRC comparison,
success copy and cleanup agree with original. No new semantic defect is claimed.
The earlier `big1.attempts.md` search tried the full 19-declaration leading
block, stopping at its 300-evaluation cap with no structural improvement.
That immediate neighborhood has 477 nonbaseline neighbors, or 478 unique
evaluations including the baseline. Earlier 110/120 capped
searches also do not establish completion. The older improving 180-evaluation
search recorded no complete per-order history, so its exact overlap is unknown.
Current lines 1858-1872 form a contiguous block of 15 existing uninitialized
scalar/pointer declarations. The other four leading declarations include
arrays/aggregate storage and an initializer, and remain fixed. Read-only replay
of the unchanged tool's ordering shows that 154 of this block's 288 evaluated
orders (the baseline plus 153 neighbors) lie in the known old 300-evaluation
prefix, while 134 nonbaseline neighbors lie beyond it.
The current function differs from the recorded older function only through the
accepted, whole-object-neutral complete-key-subobject correction.
The selected order is itself within the previously covered swap prefix.
This gain is recovery through official-fuzzy ranking, not a claim of historical
novelty. Unknown old per-order scores are not reconstructed or invented.
## One official run and complete snapshot scoring
One unchanged official invocation was used:
```
tools/decomp-assist/declsearch.py src/scene/setting/AOSS AOSSDecryptMessage \
--lines 1858 1872 --max-evals 288
```
Tool SHA256 before/after:
`9642fe689ee3a4d80236b5f790fdda83397214cd209c62ce07088b3f2b3726bb`.
The ordinary compiler wrapper was `../toolchain/wibo-release64/wibo`, with
`WIBO_SJIS_MISSING_IMPORTS=1`. No compiler/configuration/tool/cache changes.
An external NINJA recorder passed every argument unchanged to real Ninja.
It saved source and object after every successful actual MWCC invocation,
checked source stability across the build, and recorded full hashes and the
unchanged Ninja/objdiff configuration hashes. There were 288 unique evaluations:
one baseline plus 287 nonbaseline neighbors. The tool's final baseline-restoration
rebuild adds one further snapshot, for 289 successful snapshots in total.
No compilation was skipped, substituted, reused or deduplicated.
Every snapshot received a fresh official objdiff report in its own private
project. Each project retained the full 1027-unit configuration, changing only
the owned object's base path to that immutable snapshot. A private baseline
report first reproduced the complete live baseline report byte-for-byte.
No snapshot was copied over the live object to obtain a report.
The structural tool retained no improvement: (0,87) throughout, source restored.
It hit its numerical cap exactly after the baseline and all 287 distinct
nonbaseline neighbors had been visited. For 15 locals, there are 105 swaps and
196 distinct moves, with 14 orders common to both sets: 105 + 196 - 14 = 287
neighbors. Recorded orders cover that complete swap/move neighborhood plus the
baseline, establishing a structural local fixed point. This is not exhaustive
coverage of 15! orders.
Official fuzzy ranking recovered snapshot 021 at **97.88162%**, above baseline
**97.74143%**, despite the same structural/raw score (0,87). It swaps only
controlFlags and secondValue. All 289 snapshots were scored and gated; the
first admissible official maximum was selected. No second run or adaptive
expression/declaration variant was attempted. Selection was followed by a real
ordinary rebuild; the object and full live report reproduce snapshot 021 exactly.
The companion CSV records every snapshot, declaration order, full source/object
hashes, official fuzzy, structural/raw scores and preservation result. The last
row is the tool's restoration, not another unique evaluation. Snapshot 000 is
labelled baseline_evaluation; snapshots 001-287 are neighbor_evaluation; snapshot 288
is restoration. All rows pass
every existing sibling, exact/code/data/link and allocated-data gate.
## Behavioral and integration verification
The emitted candidate differs from the baseline in only 18 register operands,
inside three call-free keystream regions: 0x1A8-0x1CC, 0x21C-0x244 and
0x2A8-0x2D0. A symbolic evaluator runs the actual instructions and verifies
identical ordered memory reads/stores, resulting memory and all registers at
each region exit. It does not assume distinct state/stack/input addresses.
All other instructions, branches and all 23 call sites/destinations are
unchanged. Thus call inputs and resource-observation timing remain intact.
The production decryptor and its actual key-schedule, CRC, address-check and
manufacturer-scrambling functions were extracted without body changes into a
native UBSan harness. Candidate and baseline each passed 2,120 cases:
- Every valid payload length 0 through 1472, plus 512 seeded randomized cases,
with an independent stream-cipher oracle and zlib CRC expectations
- Checksum mismatch, disabled encryption, missing/mismatched/stored address,
and failure at each of four allocations
- Whole-packet publication, output length, key bytes, access-point state,
error code and allocation call count checked; allocation guard bytes,
ownership/free count and trailing packet-state bytes checked
The allocator and byte-order wrappers are controlled test scaffolding. No
network operation or real-device test was performed. Undefined-behavior
instrumentation uses no recovery; candidate and baseline both pass.
- AOSSDecryptMessage: 97.74143% -> 97.88162%, 321/321 instructions
- Unit fuzzy: 97.71665% -> 97.72777%
- Exact functions 16/21, exact code 6436/16192, data 3928/3928 and linking unchanged
- All 20 sibling reports and instruction/relocation streams unchanged
- Allocated non-code bytes, extents, alignment and relocations unchanged
- Every other 1026 unit report unchanged, for every scored snapshot
- Pool identical 1/1; literal audit 19 functions/12 arguments, no candidates or
errors; the existing unequal-size AOSS_Init_old/AOSSSendHelloRequest skips remain
- Full 43U build, default progress/report/ok and DOL SHA1 pass:
`26116613f624061ba99c8d1a299aaa6efa85670d`
Baseline object SHA256:
`8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09`.
Selected object SHA256:
`243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0`.
Private reproduction evidence is `/tmp/aoss-decrypt-declaration-order/`, including
all source/object snapshots, compiler outputs, full-config private projects,
official reports, scored manifest, symbolic audit and host harness. Original
objects and disassembly remain private. From this leaf, run:
```
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aoss-decrypt-declaration-order/verify_evidence.py
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aoss-decrypt-declaration-order/audit_changed_regions.py
python3 /tmp/aoss-decrypt-declaration-order/validate_decrypt.py
```
Setup note: the first baseline command's session was cancelled with empty logs
and no usable outputs, without a policy-denial or compiler-error reason. After
confirming the session was gone and no matching process remained, the parent
authorized one retry. That full baseline completed. The declaration experiment
itself ran exactly once and was never restarted.
The parent's later JPEG-only main update does not change this baseline's AOSS
source; parent integration still requires its independent current-main gates.
GATE PASS: strict official-fuzzy partial gain; exact/code/data/link and source
semantics preserved; all snapshots scored; full 43U/default progress/DOL pass.

View File

@@ -1,290 +0,0 @@
snapshot,phase,declaration_order,source_sha256,object_sha256,official_fuzzy,structural,positional,all_preservation_gates
000,baseline_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,ac7a459ef23327c3dd415b3146391da10553ce8bddeb82b9a4030c120dbd44b4,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
001,neighbor_evaluation,controlFlags;decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,bd7bb99ed8fe4640af628acb0fbc4c696a693953e588cb68438a34255fe3964b,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
002,neighbor_evaluation,dataLength;controlFlags;decryptedData;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,c13059f53348beb7b1fd1b7dbdf41eac349fe5f920d0440e06ec6792cda5fbee,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
003,neighbor_evaluation,i;controlFlags;dataLength;decryptedData;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,b305035a80e364ab59448a9fac02a6b960376879b0cd49b01232a14b9b4a9caf,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
004,neighbor_evaluation,crcIndex;controlFlags;dataLength;i;decryptedData;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,01d6fb3194473ed0fbf088b6ad73ed25d8ca5c34d52d92a3fbc07bf7df8cfb67,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
005,neighbor_evaluation,firstIndex;controlFlags;dataLength;i;crcIndex;decryptedData;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,2d80d00656c99771fc14bde95dbe924839b6aa5735da13f1d22b5878c1a86b76,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
006,neighbor_evaluation,secondIndex;controlFlags;dataLength;i;crcIndex;firstIndex;decryptedData;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,f1f974567f22b792fdb70cb1148dd9c2dc82dbe22c7868f6b753517ff2a46ef7,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
007,neighbor_evaluation,firstValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;decryptedData;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,8fc1ac8da211bbcd586cb297f610b83ce0aa681248c6b313f653d47bb7f5783d,af9e53e57abe1f29ba277e0fa3d93ac1537d1dd55c6983d1887fb4df831d6f7e,97.18069,0,114,PASS
008,neighbor_evaluation,secondValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;decryptedData;stateIndex;crc;inputCursor;state;outputCursor;result,ec512ca3dc20f47f11c8313c90d519fca6f8704ad6a2cda3fab0d15c8a02c96f,7ee4d39e1a67501811d70d7dd390be007a4a6569559fb4e4db8484326428b1ee,97.50779,0,111,PASS
009,neighbor_evaluation,stateIndex;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;decryptedData;crc;inputCursor;state;outputCursor;result,fa8763db1dfaff3a416740297bb608e75ad2f6883e2a11c2face7b85a03c3202,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
010,neighbor_evaluation,crc;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;decryptedData;inputCursor;state;outputCursor;result,5052d3e5d9aa5c88af059a09f139eb2be9a21440cc23b24663f5cfa6341dabf1,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
011,neighbor_evaluation,inputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;decryptedData;state;outputCursor;result,75389dafa261d5beb9c175bcf67ee987668f2c8b10815ec8bbc691abfae2f54a,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
012,neighbor_evaluation,state;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;decryptedData;outputCursor;result,b8aa6701790457056f4f5aff8649a7f0b9dc0f52dd847944c8bc690543e076fb,45ae50ab82aac571e27d2468ea03dce70cf9c93e4a4f659ee4861d967359a964,97.47664,0,114,PASS
013,neighbor_evaluation,outputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;decryptedData;result,25213304e9d5c56a2703ba442eb3597421b398f56057910d7a495bce756e1c15,28a1072e2f0eefc7856786e6009d0dc9d96435f3f9333261837ae4a52fc9705b,96.978195,0,123,PASS
014,neighbor_evaluation,result;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;decryptedData,5c2021c80f57cfad18f6efc3b209e1dc28bc92f0629ac04cbc6ad632af5c850b,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
015,neighbor_evaluation,decryptedData;dataLength;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,de7958fd273001f69c212b279e5a5b1e41986c129cf3f34c3e832bf6cf79a04c,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
016,neighbor_evaluation,decryptedData;i;dataLength;controlFlags;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,be76e65bd34e051f386ff563a5b61f40eef29024d833e6ea389136e661895301,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
017,neighbor_evaluation,decryptedData;crcIndex;dataLength;i;controlFlags;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,d8dc726b9c68e9a60ed72c29072de58639a86b6decfc14e9d933ffe031ad0a33,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
018,neighbor_evaluation,decryptedData;firstIndex;dataLength;i;crcIndex;controlFlags;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,5531b1b82f267e6e71e09da48fd390979707bf3fd7b9c886a3bf57e0acbe65b8,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
019,neighbor_evaluation,decryptedData;secondIndex;dataLength;i;crcIndex;firstIndex;controlFlags;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,b8e80977eafb456d5eeba6390bb0e6978a6057bf770e82105a7a5139569ce89e,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
020,neighbor_evaluation,decryptedData;firstValue;dataLength;i;crcIndex;firstIndex;secondIndex;controlFlags;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,82eb7d1c9430e24f0c33765148fb42d31b1f39c1a92e0137b8ebb0b97b33beb5,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
021,neighbor_evaluation,decryptedData;secondValue;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;controlFlags;stateIndex;crc;inputCursor;state;outputCursor;result,3176094eb46f60ea3fbfad5d70d3d169752650d58fadafa30d17ca7add7567ba,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
022,neighbor_evaluation,decryptedData;stateIndex;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;controlFlags;crc;inputCursor;state;outputCursor;result,4e86a3bd664ac8147ac18f130c70490751b38ba5300acc7e62f44a857aadf606,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
023,neighbor_evaluation,decryptedData;crc;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;controlFlags;inputCursor;state;outputCursor;result,8c95e28e7c5e93034a6b14c40817a4a7d859d280ce06585a2dad9cfabb9a0a90,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
024,neighbor_evaluation,decryptedData;inputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;controlFlags;state;outputCursor;result,d40512a2239096edbc72332c91447c958f90f5f70374c2d0dc01519e60223593,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
025,neighbor_evaluation,decryptedData;state;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;controlFlags;outputCursor;result,61719eaa2a794139c2ab0d116ccb316e669c35519315dd759a7a858a07d533c2,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
026,neighbor_evaluation,decryptedData;outputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;controlFlags;result,5a1e1a0470e5210f172dbd1106d0413a33e2672be4e6dd9fab285f3df18d8906,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
027,neighbor_evaluation,decryptedData;result;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;controlFlags,7458e66a2ab56a4a094e6227c6574ff2947e0c6bd41d3dbed9dce7cd25c626d4,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
028,neighbor_evaluation,decryptedData;controlFlags;i;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,004d94d0cb2551ab70a64e53b0a5e1fa9a6907e8af1c4a89cd1b5e1a1410485a,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
029,neighbor_evaluation,decryptedData;controlFlags;crcIndex;i;dataLength;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,970d5e82bed0ffebbffb959a418c6bc128f638730d69d034f1df977feb56171f,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
030,neighbor_evaluation,decryptedData;controlFlags;firstIndex;i;crcIndex;dataLength;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,c76c9baa5413609c6bd0b39983302cc41cfa509e6da7cadce50e4249c1f8aaa0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
031,neighbor_evaluation,decryptedData;controlFlags;secondIndex;i;crcIndex;firstIndex;dataLength;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,55149890656d1b7b69f9187ec8c9e64fafa5c8d3fff077c23359844986f04f4e,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
032,neighbor_evaluation,decryptedData;controlFlags;firstValue;i;crcIndex;firstIndex;secondIndex;dataLength;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,6179794b0bdb552eaf295a2de60c641aeae1da3904647e770256933aa90638ef,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
033,neighbor_evaluation,decryptedData;controlFlags;secondValue;i;crcIndex;firstIndex;secondIndex;firstValue;dataLength;stateIndex;crc;inputCursor;state;outputCursor;result,2972c1b6f45de1084eda38aa10d16c5015590d7ef2d45c1850a97ff185b574e4,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
034,neighbor_evaluation,decryptedData;controlFlags;stateIndex;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;dataLength;crc;inputCursor;state;outputCursor;result,7c37c38c0740200abd0e6df414116a72d0f80e892b117406986d0f1d13d88758,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
035,neighbor_evaluation,decryptedData;controlFlags;crc;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;dataLength;inputCursor;state;outputCursor;result,26eaa3fbab33630bbc146feb650f62af2a4cc89abc18c4a653f6402f261f18d1,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
036,neighbor_evaluation,decryptedData;controlFlags;inputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;dataLength;state;outputCursor;result,7b8a785fe6b48b4966385283bfb9db14ae40cf2d0cb091af831eec8e51ec001e,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
037,neighbor_evaluation,decryptedData;controlFlags;state;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;dataLength;outputCursor;result,9c9ccfa8eb90fe1e6677162c5c9333005bf935ad9ed35a70e7e740274caac2a0,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
038,neighbor_evaluation,decryptedData;controlFlags;outputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;dataLength;result,f4c86ac9fb3c318ecd8cfb0e44d180687de71d7d971f2a9fec5181984e9eb610,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
039,neighbor_evaluation,decryptedData;controlFlags;result;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;dataLength,662c6f95a287893ac9bf1821250445a3bc3e8b899cd360044106679a657263ca,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
040,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,f868923747a4af0a4314b06bd13fa46133ce5ca1b89fb9efbd982192a1227aac,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
041,neighbor_evaluation,decryptedData;controlFlags;dataLength;firstIndex;crcIndex;i;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,dcc6769722be12417d301321b909407ceba45cd271edcaee9e2eb65a64cb4cf3,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
042,neighbor_evaluation,decryptedData;controlFlags;dataLength;secondIndex;crcIndex;firstIndex;i;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,e9b8c12176c63481bc24c8fc45e202c3743812f4f7e20a498b8b3ed3f0232997,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
043,neighbor_evaluation,decryptedData;controlFlags;dataLength;firstValue;crcIndex;firstIndex;secondIndex;i;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,574cd3789b2bbc37edf9be15be31d2e2b7113161b2d6983033f03dea14692b50,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
044,neighbor_evaluation,decryptedData;controlFlags;dataLength;secondValue;crcIndex;firstIndex;secondIndex;firstValue;i;stateIndex;crc;inputCursor;state;outputCursor;result,705a67d3a1100051fe9ec607d0817ea9d74c5f92b3e0b98b044a7935f1ee054d,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
045,neighbor_evaluation,decryptedData;controlFlags;dataLength;stateIndex;crcIndex;firstIndex;secondIndex;firstValue;secondValue;i;crc;inputCursor;state;outputCursor;result,033dacd1cff730049f6f3fd997dd6fecf5753695ebc332fa8547c659dce9c9ca,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
046,neighbor_evaluation,decryptedData;controlFlags;dataLength;crc;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;i;inputCursor;state;outputCursor;result,764ce380e0b2edc6c2cd1c03d8ea629f5b7b908d2c931cd6a47d2191dc94cb51,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
047,neighbor_evaluation,decryptedData;controlFlags;dataLength;inputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;i;state;outputCursor;result,c57e875efad0b642dd7de626750bba3d2a8750cdcd5bd30f61b90adbcf086658,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
048,neighbor_evaluation,decryptedData;controlFlags;dataLength;state;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;i;outputCursor;result,147ae81794cb92ee7787afc0e577d25b8e2dad59752dc4971a5eb8bc4b1d19b8,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
049,neighbor_evaluation,decryptedData;controlFlags;dataLength;outputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;i;result,65193c71a368f0f89f45333c4cb88e72b2e99312e027ee9e55cfaaeec11d9399,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
050,neighbor_evaluation,decryptedData;controlFlags;dataLength;result;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;i,027ef02ea8b4d486bd3518c782ef68374e4cf47b7ef2a360e722000c2fe93611,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
051,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,f22cbce2ca9a96e32a6a23678c3467951021da046126d1e35897f2465385e621,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
052,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;secondIndex;firstIndex;crcIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,0e2b045d9e1aad4fc910e1e0a8bed5a6acecf316aa60d99bdb6dea99ccaf3256,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
053,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstValue;firstIndex;secondIndex;crcIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,9a2b311c997e64e578bf3130ba6170716111da01fe5c0b23607b647020e9bebb,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
054,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;secondValue;firstIndex;secondIndex;firstValue;crcIndex;stateIndex;crc;inputCursor;state;outputCursor;result,c87705486c00c20b5ec401c8ac74cddab408f0b7c0734b12a2ed9dbb0f790e3e,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
055,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;stateIndex;firstIndex;secondIndex;firstValue;secondValue;crcIndex;crc;inputCursor;state;outputCursor;result,5fa64025c8cd11f0e559481fe5e04bc2ac373378a9523c4827944d10b67597b3,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
056,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crc;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crcIndex;inputCursor;state;outputCursor;result,dfaa1e2803bd399ba3d410b999cedae2639fc5959a9ad69dcf86805ec7443e19,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
057,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;inputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;crcIndex;state;outputCursor;result,d32f3d3d495b9b77e1d4a97d65435dfea85b984de6997a7d989f0dba9780efda,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
058,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;state;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;crcIndex;outputCursor;result,fa232d8464fe92558fccbf0c5b6bb652b1356a9428c3849c293de63127d7f105,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
059,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;outputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;crcIndex;result,ab49b901db85846560cc60aa2b33dc2e11d375c27d3af2b720553d9d485b9f2d,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
060,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;result;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;crcIndex,1a38e9640df6dd883a0b1528c98bd8f7afa2a4acc406533fffa1d708d7ba8ec3,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
061,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,3435dd06302c38c6c4c9fa3d53fa9bcf04c928991f0a26c5ab24623c1aef2f81,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
062,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstValue;secondIndex;firstIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,77d8858c8b64535d221ce7d33cfeae7f26cdc09ee4586357d89ba4da738c67b1,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
063,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondValue;secondIndex;firstValue;firstIndex;stateIndex;crc;inputCursor;state;outputCursor;result,02ef2ada13a67e6efa4bdf5ee373a735d755d6a11954986b3d4046d0dbd8d254,9dbfefa84c20a3c9ab86bc16d69b3aa78ac4f3908cd1251ea06252bf7186cc30,97.6947,0,90,PASS
064,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;stateIndex;secondIndex;firstValue;secondValue;firstIndex;crc;inputCursor;state;outputCursor;result,3dfd3337f076294e19f4ba3af971570e5469e81039794ebc75693146a68888eb,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
065,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;crc;secondIndex;firstValue;secondValue;stateIndex;firstIndex;inputCursor;state;outputCursor;result,eca4656eee951a5aeb01cfce5406faeb5cad91f1d384eb1502f199bd0c359ee9,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
066,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;inputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;firstIndex;state;outputCursor;result,e994023c99882a16c35bb79d93a0593a2c58fc8fc6eafd428fa1477d1957c411,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
067,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;state;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;firstIndex;outputCursor;result,075fe407c85db568c6458f10337920b281fc29868887830016fd7ef20b3f963e,8a55aba5330fae20c4240be0dca0d31ec8fb667edd92051cc40082d4473494f9,97.66355,0,96,PASS
068,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;outputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;firstIndex;result,db5f7f382eeed73d11a5bb59dacecf31a17464c75c159846125213853c774949,34e8f037e80705d9217584ae290c863380c3ed23e4cc92e99433050945b9db8e,97.25857,0,102,PASS
069,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;result;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstIndex,926cd5ae5b24c1037694c04a3cb0623ae557a256679f5e11d7e9e9613f1a99ce,b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0,97.38318,0,99,PASS
070,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,545dec997e2e5c7c3f04cddfb226feaf14871212a42183ff90b288f30b49b8e0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
071,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondValue;firstValue;secondIndex;stateIndex;crc;inputCursor;state;outputCursor;result,10ac6e7594a3f3ed05a195d68e6e0605abea7c1b9791cc2efae5809add89b0ca,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
072,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;stateIndex;firstValue;secondValue;secondIndex;crc;inputCursor;state;outputCursor;result,7c5dbb3bff721ff5a86e7b15fd6c1de6550c93a5490311597818c0d9e7c9377d,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
073,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;crc;firstValue;secondValue;stateIndex;secondIndex;inputCursor;state;outputCursor;result,939f7df59b5bd617588ea87756cb1e7e1ed0a118b4f1c30fe73d7645cf167d22,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
074,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;inputCursor;firstValue;secondValue;stateIndex;crc;secondIndex;state;outputCursor;result,525ec6a9cb4bd64bde1ec05f3c20e2b6d4e72687a6c227ed3866430216043fc6,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
075,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;state;firstValue;secondValue;stateIndex;crc;inputCursor;secondIndex;outputCursor;result,bcf03832727fd0fd3d8372b27ef6c0174b68db56735f0bb88c43261050eb23d4,46711b4995ef7ea8250ae1ffe0cf9b9fdf30329f79d6ca2a0a507db357500c50,97.52336,0,99,PASS
076,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;outputCursor;firstValue;secondValue;stateIndex;crc;inputCursor;state;secondIndex;result,8fc129cbc6057fffda52320cdbdd818a7f7a6e95de4e02430fac3704e18ce4cc,48e81fc2d04617885af36d62282efb79e42b539b710f6c23d74fa8294c375927,97.39875,0,102,PASS
077,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;result;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;secondIndex,3dd88ebb46b500ea05c85a476006b2c686bb643941ae627e55c80c29be8ab0fc,43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f,97.52336,0,99,PASS
078,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,3feaccd957fdb2cb72b25426d25daa14400ce1888b13ad6043635f681e1126e8,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
079,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;stateIndex;secondValue;firstValue;crc;inputCursor;state;outputCursor;result,0e49a622a231bb91231ea00da5bb8936b116bde72e4de07eddf80f262dac13c0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
080,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;crc;secondValue;stateIndex;firstValue;inputCursor;state;outputCursor;result,f547a72b8e7809b6bd2bbf93206e1ae96d39855a81dc9d632f416294b8f5e560,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
081,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;inputCursor;secondValue;stateIndex;crc;firstValue;state;outputCursor;result,e462b1757f010565ff01e7fab8fe5cfb59fccd3de03f3657a62bd7077d2fb000,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
082,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;state;secondValue;stateIndex;crc;inputCursor;firstValue;outputCursor;result,9d22cfc69ca8f323e0924b797e0cfbe6976f9ddc48d51c7422bd10dafaa9efc5,129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad,97.38318,0,99,PASS
083,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;outputCursor;secondValue;stateIndex;crc;inputCursor;state;firstValue;result,c9389396badfb8538806a36c163d5f92451070b147374725963d97ea9c613a01,daaad75347097ddc758342014179d97d4b222a0b4aa15789d8451ac51d970df3,97.25857,0,102,PASS
084,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;result;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstValue,7999ba494fbe9e00b1b943b7e940ea296df7b4eb74bff334fb64cf288f74dfcc,129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad,97.38318,0,99,PASS
085,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;secondValue;crc;inputCursor;state;outputCursor;result,36e8617149cd9cf73607a469a0411b36527bb4d6fcd99df6b031bccf05e14952,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
086,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;crc;stateIndex;secondValue;inputCursor;state;outputCursor;result,b6ef16ea45f39a6c59fdc623912479509525a5be9d5dfc6f32c59e2a761644f6,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
087,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;inputCursor;stateIndex;crc;secondValue;state;outputCursor;result,782088af731e6b757fdbf6903bce46fcd12cb299843175ac2bf111fb73dbfcc7,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
088,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;state;stateIndex;crc;inputCursor;secondValue;outputCursor;result,718deca4435fdb43076a0bd3671c9f8ae811c33c3c330e3931c9b28def80d68b,fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510,97.38318,0,99,PASS
089,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;outputCursor;stateIndex;crc;inputCursor;state;secondValue;result,0ce295f10671706d1104c6fc19bfebf9b5a28f68ae2bfc5b283b152eef073b7b,484b432e3698e2d706c2a9136080516ffd5ff49012f8e406a0e6ee9498439138,97.25857,0,102,PASS
090,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;result;stateIndex;crc;inputCursor;state;outputCursor;secondValue,19aa0724e5ff05ed864e77c97a40a42c79eaaf4ec78f16224d8cfec23a812007,fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510,97.38318,0,99,PASS
091,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;stateIndex;inputCursor;state;outputCursor;result,3a2c26deb323d25ccb9631ecb0c7b6fd8aa738652f5bfd240b6589839ba3e008,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
092,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;inputCursor;crc;stateIndex;state;outputCursor;result,29f0be9bf2873eef9082981147aade19cc1835f6ddd50cd543dea258d195a9b0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
093,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;state;crc;inputCursor;stateIndex;outputCursor;result,9af272ac8e445c07753878248581ab6896eba69f642c0ed94feecde3a6c52764,f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30,97.47664,0,96,PASS
094,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;outputCursor;crc;inputCursor;state;stateIndex;result,dc2771a85d86c0d265666193f155f72eea79669d65ce2048f3ef5083e4c51f9a,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
095,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;result;crc;inputCursor;state;outputCursor;stateIndex,20cfa2be2d927092a5a376521a299f052e12eae735f5a2087da84e7e0a8e7379,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
096,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;crc;state;outputCursor;result,8d706d22c1833f8d195118441a9fe62be0d941c082fcb7a463ea23979ecd8d4c,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
097,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;state;inputCursor;crc;outputCursor;result,5a34e76072d8f1757cfcda6223de28535fc9a7faf187c8d70f224aedc91f424e,f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30,97.47664,0,96,PASS
098,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;outputCursor;inputCursor;state;crc;result,1667a36b982c31a18ee8474ef2f07c50c20838c21632face055ddeda496beda4,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
099,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;result;inputCursor;state;outputCursor;crc,3ddc24bf83a2868df7c17483d82d679653086ace7a961fd8d8d8959ac9fa5322,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
100,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;inputCursor;outputCursor;result,998774f243b2846d4df82548e36805b6a11b4b42814f2f13ed5b5e290fc5614a,f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30,97.47664,0,96,PASS
101,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;outputCursor;state;inputCursor;result,bf2a6e2ee27dd0fcc2cc5b3ce0811275fb6391674be4925b650d9f37f90f52a3,e672227d226240623ecc01688f1ccb1b15663a29bedcc59a3f2a95c5a6995694,97.49221,0,96,PASS
102,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;result;state;outputCursor;inputCursor,b21a8535d58ea5d2bcc0658c542307c1bec418d71a09422a6c9cf189089123b5,860b0d2fb48899eaef9d4754b3a6c3ffe56ea14ee7e76c1407aec3914556f0b4,97.35203,0,102,PASS
103,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;state;result,2dc0f24565e406e7a0c98e344f26108f7a0a757855ff3052e4a5c9414f7d125e,0535a63eb8c8d27a21c5e9629babd82e6b732ddf85fa9eef08f154604468eef5,97.47664,0,99,PASS
104,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;result;outputCursor;state,1e9433b84b968f1240e33fa0668adc5cf5289f0938e858a3e3fd82b2cb03d8a1,0535a63eb8c8d27a21c5e9629babd82e6b732ddf85fa9eef08f154604468eef5,97.47664,0,99,PASS
105,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result;outputCursor,61c71eb6cbb204edb4e20aadcc254596ce72d386b84c4d61e6a941ad5e25ed42,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
106,neighbor_evaluation,controlFlags;dataLength;decryptedData;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,5d82b8663050fa80ff15986b0f228f160a1f85547ab6754a96f36b73bd17848c,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
107,neighbor_evaluation,controlFlags;dataLength;i;decryptedData;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,a4e2ad874ed7506b55dd20e25e48117b30638bc04dd033634de5417d650271a1,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
108,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;decryptedData;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,97f539dc0bdd7ecc76724863a640fed709665cb8615102c773ca52cefe410cd9,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
109,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;decryptedData;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,c76d775ea6e9a22058086fec3202e588d3a8319467fd1cc7773735ae95fc8c5f,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
110,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;decryptedData;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,1a6e4f501ec923258582f613ca027e750504db3f6d9e5168ccbd38e70330d42f,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
111,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;decryptedData;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,5413e13990d304d46937bea506c90ea1a8eb7ec83d868cbae302156f240c4dfa,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
112,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;decryptedData;stateIndex;crc;inputCursor;state;outputCursor;result,10701e936a7646abc630d8d65935819219fcfb3c36aea55ebaee3a615bdf2938,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
113,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;decryptedData;crc;inputCursor;state;outputCursor;result,cda583486b9cd95c8fc4f7af8839cc29dd190d936d2e6e0ac1b6cfe1ba0a56b7,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
114,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;decryptedData;inputCursor;state;outputCursor;result,32f414c7aed00008f621fecf673ff869af84759b2fe0fbed470e34e146caf93c,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
115,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;decryptedData;state;outputCursor;result,ef5d066094113841367bee0a9675777b0bea7a1f2dccbf0e801484df9d9289f5,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
116,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;decryptedData;outputCursor;result,f79a18f6eb10d0e3f7e8be261413baa88415c27a0b40800aa5ec90acdc7b6306,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
117,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;decryptedData;result,4f1ed44c185fac54f7ce6ed8a599bb0906c3d122d4c54526222a9575d8ca259d,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
118,neighbor_evaluation,controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;decryptedData,ad16173e279455146a8c1f3d969d4349fc2329880c769716ea63eac3e017dac9,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
119,neighbor_evaluation,decryptedData;dataLength;i;controlFlags;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,db253e35073ff1accf08f5fd057476ac4fe0d4b4a81dccf3e9b8f4ed5209463a,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
120,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;controlFlags;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,7e67e7377f1a1205590c1d8866c158d5cbd1c002e5ac302312c333b3e6881866,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
121,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;controlFlags;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,15ec2b7f90b826f9c6d9575b06ab8aba4ada500043bf9b3aff0cf69095ad5edc,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
122,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;controlFlags;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,0130ce73973072a4b73d470379f7ac44e9e7d81a9ae7ac6d0ea6c1b744c42828,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
123,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;controlFlags;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,536a7b1b11eb02587c5f3ee49f121a0bb1d2de24cc261778e9c89eb14e967c9d,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
124,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;controlFlags;stateIndex;crc;inputCursor;state;outputCursor;result,db824439667e6778073162bb4c1a74f412801296950fcfe892fa9de216c91537,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
125,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;controlFlags;crc;inputCursor;state;outputCursor;result,f55fdb5dc25a85bcacbc8a72fa0ebe1989e60d7d978bd381dd86741c0a083bc6,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
126,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;controlFlags;inputCursor;state;outputCursor;result,3ee4ddfddebaef3880f48daf2a56fc5ecaaab745df0bfb12391e8cf78e0f2f4a,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
127,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;controlFlags;state;outputCursor;result,79966f03e8c16d4ebb789c18c47ae39bde402c1a5eedc5fb2aca632f48c62bf0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
128,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;controlFlags;outputCursor;result,df6e1f2d784d14810395451a4ea2831cdab6bba16e0d1888707f4691d125166d,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
129,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;controlFlags;result,0af00c7fffa6393daacaab79ea4efc891406e781ac1c4f59fc3087afd26a8923,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
130,neighbor_evaluation,decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;controlFlags,3d5f5fe0dd8f84ac9672577d35b11c271d4feb58d26e96062c8d719320603fd8,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
131,neighbor_evaluation,dataLength;decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,99b7b33a4e2f8b5ce731f1fe91cef5b3884149f571c6ad7e480821b099fb6215,6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2,97.3676,0,111,PASS
132,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;dataLength;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,56e3052397aac1da94f00261644d640c7a46829ef85b3b00122dcf3f7e3fb928,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
133,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;dataLength;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,091eecec7ed8be89251f8e84f396096ced82a9473405d81442c1a192d4fd4f30,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
134,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;dataLength;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,b9e161b2dd91820efda2ba086d2ba522d680a92558f535f6c7c69b485e251266,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
135,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;dataLength;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,ecfae0d4407d5ba634d93ed3aff45d1c295c9532f9317fafebecb503aec4ab7b,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
136,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;dataLength;stateIndex;crc;inputCursor;state;outputCursor;result,bd45d3d9012ebf890261d78c7f8b483ccd6fd6553f082326a2479c1da0b67919,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
137,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;dataLength;crc;inputCursor;state;outputCursor;result,1d1ebf81e7c6567a66752d9eb3b66b565d5b7c85bf4b7eabae33a2b1cb38f739,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
138,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;dataLength;inputCursor;state;outputCursor;result,3eef322f4ecee12f93c92de963666d685e1aa162c08182d3929de9da568e4a01,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
139,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;dataLength;state;outputCursor;result,d6284b4aa47eb6e08aa78296fbb730f75aebe909463df5ce9701f96866b206c8,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
140,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;dataLength;outputCursor;result,d7b0a56b73e8b6cc76164d902bd3693574aa88e65657f69b1a1cbd2a82bbdac0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
141,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;dataLength;result,abb57e36888b35cc9766d8731b4110884a1f547739f95a0c188349cacd501f51,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
142,neighbor_evaluation,decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;dataLength,920ec26746cb9426daf60f618aac2456152bc376e9de2aeb40907840c4070e68,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
143,neighbor_evaluation,i;decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,4b0ca2735b15befced2f41752e8cb64723fa4dfc99ab489193be7086669f1240,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
144,neighbor_evaluation,decryptedData;i;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,dddde9ecc0e76b2fbe656ba4f2bcf812cb10f912b1c202703e4001c2c2528ec1,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
145,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;i;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,cd98ea18bbde7a5c6738ac344ba99cdfdb5a449ffd131a16e21f4f6fe7a5f48b,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
146,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;i;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,03ef2a1e820288a65da09500dce1827254522913c2b50f3fa8dc48d4539bd118,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
147,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;i;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,b04f3338f87f6b95be081255ca36e6ab33c686ff55b348f55d2432e735143182,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
148,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;i;stateIndex;crc;inputCursor;state;outputCursor;result,005fc1b174f2ae59c5db5d78c1516e7dc39d60495e9c03dfad17c978e8dba3ac,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
149,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;i;crc;inputCursor;state;outputCursor;result,c236902f7acb284e27bf53c7d3e6c96750f19050bc191cc17f7515c593f534a3,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
150,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;i;inputCursor;state;outputCursor;result,3237cef5ce15bcd869fffc0fc39117c420ee38e870c70941895c49fa1f705825,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
151,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;i;state;outputCursor;result,879d94969dc9a357051a210ecb0dceb44108dd68a47c10bd1459c29f5c5074ef,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
152,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;i;outputCursor;result,62e2ba88b9f68e5b1634d24779d62c097b24e6df079c73acd9420ec3741e6adf,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
153,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;i;result,df8c86f35934981961e83c7ab6b92a241c2e0d102bf8783ac8ca6da66dbb9aff,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
154,neighbor_evaluation,decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;i,1528b4072a224f244ae6511b78e5893a8c99934307aa6db039e8960a9f15d17c,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
155,neighbor_evaluation,crcIndex;decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,cdb1571b020527e67242f3e783fbe807ba71d1b53811398e09a10e86685bdacc,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
156,neighbor_evaluation,decryptedData;crcIndex;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,24218f70d545503e7f70416d86d421ed123e9ef24b3bcb7e7515c987e0bde33c,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
157,neighbor_evaluation,decryptedData;controlFlags;crcIndex;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,750a6bbcc9692c44d73398c5e7687f327c926e6b9465c3b8b2be72ed47d6176b,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
158,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;crcIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,1fc564a1fc478652e322c4f456ccb1b4cfcd72934c70f361393297b4d1c11268,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
159,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;crcIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,fd2ebe3b94d9febcdf6fbf6dac4bea6174af2370b7d655669361d8940d512561,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
160,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;crcIndex;stateIndex;crc;inputCursor;state;outputCursor;result,729bd40a2f38967d1ec95a5b50d08b977fdf693f02c032ad0455d9a8734808cd,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
161,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crcIndex;crc;inputCursor;state;outputCursor;result,f71ada13da4c1044ef433047ee236db305990a25a3db23fb1d76fc9b0c5c2533,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
162,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;crcIndex;inputCursor;state;outputCursor;result,c928bae5e62d2171b1c70c8d4b19ab6eee8ecab7241cbf22d01441686f11dba3,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
163,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;crcIndex;state;outputCursor;result,19c55cb1dcf53291e7597331adcee21697cc061c991c642835b22940a10ef436,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
164,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;crcIndex;outputCursor;result,5f8b5dcb34125f7e4c44b7e9da6f7686bb8fc205112a64448c1348e15d8f160c,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
165,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;crcIndex;result,f30db6c9590b0e64bb31ae5a7de6e8eab1870e6aa0701dae13cbdc25749a2549,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
166,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;crcIndex,f7d1ee3a26bb79c3b61f64e2d28e1e9dcfa871f584f7832611d714e32905ff8c,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
167,neighbor_evaluation,firstIndex;decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,433f6772769698e53fb12832cc8b05bda0cd923e095444d219a61ef3103e5f84,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
168,neighbor_evaluation,decryptedData;firstIndex;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,f18e89f62d613d0eb2b7bca08b7a1f3a2d88ed77028ab2300c726e2f41050dc6,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
169,neighbor_evaluation,decryptedData;controlFlags;firstIndex;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,bf8fd30938f115f9807d19463ce1d0cb6ad9418fc0ec318f480206b8bf25fc9a,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
170,neighbor_evaluation,decryptedData;controlFlags;dataLength;firstIndex;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,7960c0c2b0959a268a9f73e3fe3776ab09eb05b3e297ed9b23b5b2d6f86b4a98,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
171,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;firstIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,d0939beebbfcd9d31dc7c45877d1c04b6069dcf132b1192d78e1a7c0b7f0a7cc,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
172,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;firstIndex;stateIndex;crc;inputCursor;state;outputCursor;result,5c8204ce34ad595fd2c9ef43cf21583c79e9aecda8d07d207e49ac33a98b05cc,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
173,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;firstIndex;crc;inputCursor;state;outputCursor;result,017df3e777c6c5b67f0c21171dbdf42b98c143317acf059300e81284a3ff3dee,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
174,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;firstIndex;inputCursor;state;outputCursor;result,4e900a1351b932a180bfb94b09a64a8fc2296f73c799bcd41c549df2e524a43b,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
175,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;firstIndex;state;outputCursor;result,dfc638c112d0a6d23924afb8cc74c116ed456206b06197063c043e45cd25f122,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
176,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;firstIndex;outputCursor;result,975ecf9a0813048ab2e4aa597f52236ec7eb25d9297d9a3c4b9591897d014089,b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0,97.38318,0,99,PASS
177,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstIndex;result,74c33bf685dd8d324be2bde37ff6b7036451235b312e5d8717da247e2aeb83fa,b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0,97.38318,0,99,PASS
178,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;firstIndex,e9bfd7ba969dee8ff972c3c5ee2f84b866b4cd93638e7892bb5853a303429ef1,b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0,97.38318,0,99,PASS
179,neighbor_evaluation,secondIndex;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,3ae6451b0f16f96106112a68d7fbd022b6d9999376fd131a4e6e7dd4324c5ab9,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
180,neighbor_evaluation,decryptedData;secondIndex;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,5eac57d483abc25beeac93e51bc230d26b5ba04f55551c32ab47630921426260,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
181,neighbor_evaluation,decryptedData;controlFlags;secondIndex;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,6ad4db6d7f44bf7bb8cef0f8dfb8fc063bae5af0098ff9e9554bffc7f7e366a3,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
182,neighbor_evaluation,decryptedData;controlFlags;dataLength;secondIndex;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,8da3d1793f1bf03c85c9713ebd098910ea9457ae95d0a16a9c54372c1abb4797,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
183,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;secondIndex;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,5a3a1dc6fbf7d82cb1128c697364d80dd716b810c352721d369551c70cc95572,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
184,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;secondIndex;stateIndex;crc;inputCursor;state;outputCursor;result,de5577237bfd8b1ee7f9ca410933172ba207aca9b6656af4deeae605f3bae99d,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
185,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;secondIndex;crc;inputCursor;state;outputCursor;result,7e69cf06b6240ddf9ed22d543d940eb39f1990dda36cbaa9705ee1f1893b16df,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
186,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;secondIndex;inputCursor;state;outputCursor;result,20c50adaf33f2277d96fc3443e7ccd841113992edc94a17c40e9b9befffa7816,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
187,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;secondIndex;state;outputCursor;result,9e4002bae513e5c412b00985a749f2211021f2151115a2934fe459e536ef2bae,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
188,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;secondIndex;outputCursor;result,71c674b1706633c01dd254b958ba78b0f68e372ee3fb985ae99e0208c9b86b30,43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f,97.52336,0,99,PASS
189,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;secondIndex;result,11f77c5f0513bd9619800310527df71cca7e2923a5ad44447d33e8294d0bb059,43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f,97.52336,0,99,PASS
190,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;secondIndex,fd52a1c3062ad9290de395f4c1144c04e4138960d49b34b94d3366838c4f5a6c,43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f,97.52336,0,99,PASS
191,neighbor_evaluation,firstValue;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,59bf42a2d386ffcad40dce9cd5ed505ce2a72d3b7c7ae89481708768e285748e,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
192,neighbor_evaluation,decryptedData;firstValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,d8da0319c5de286857de25f3bc14c6ac3b7c2778985ccd965b02dc8e2d6ee3fe,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
193,neighbor_evaluation,decryptedData;controlFlags;firstValue;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,5eec80083b26d05a4b6eabdc6d5de8770a31cd1b7fd4167dd3ea908655481a45,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
194,neighbor_evaluation,decryptedData;controlFlags;dataLength;firstValue;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,7b9d37230383d19ccfe341d3c1bc42c97898f44db6dbaa0bc3fa2a91f68d5ce2,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
195,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;firstValue;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,ed1a8a10e2c8ba01e099538bc17113121621d13cba922d8ff5ff79b432d52a85,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
196,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstValue;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,bb910cb71ccd1883de76bf97baab39d635a948e6e03db04893679c48d9be0906,b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac,97.55452,0,90,PASS
197,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;firstValue;crc;inputCursor;state;outputCursor;result,7a07d0a7d60538fb6ee5cb8e91e19dfc510cd38b5f92643f1deeac7cbdf403c1,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
198,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;firstValue;inputCursor;state;outputCursor;result,1cc6024dd9aebdbcf33cae274e4be45184c195cb652e67032f492003255fcea0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
199,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;firstValue;state;outputCursor;result,c50a2fe89038af446b7829b4c5ffaf428a0216123d1b367c92efe632feacf8ab,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
200,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;firstValue;outputCursor;result,aa466a5b78e61492a24c1b81f7023afe9ffb123a79fe492128dae72a7d4f88db,129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad,97.38318,0,99,PASS
201,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstValue;result,7eb0f22b9eef6636042e91c1001450154a7d13eccf5a5d873ecb0c0fed0b437f,129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad,97.38318,0,99,PASS
202,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;firstValue,116661d87699d8adaa7475e00c9414f88bd325bc391d6e2caaf815152f2c1ec6,129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad,97.38318,0,99,PASS
203,neighbor_evaluation,secondValue;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,b0805cd066b3d3f9657a99b13b1987a07f81aa93d91740192bd4fcf04ae20955,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
204,neighbor_evaluation,decryptedData;secondValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,ab77aeb3042713d041dcbd1cea6cfb9ac4aeeab1b9f2aa01273c62b2057d82bf,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
205,neighbor_evaluation,decryptedData;controlFlags;secondValue;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,3e7ec46c34a257b42031f82e357ae02e0a63a8e2f7917afe13bebca36c2f0d27,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
206,neighbor_evaluation,decryptedData;controlFlags;dataLength;secondValue;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,481e784f7a49915367680ab0e5a1b5fbaa45842d85719249508ffe0d401df1cb,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
207,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;secondValue;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,a36bba88fbc16e2764a8551f336df9b3ca232b1a964bddad140ae751fd1217e6,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
208,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;secondValue;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,d503e9bc002cf0a6767d88809967295ca24cd3ef0ba3fdf24f0858d7d30552f1,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
209,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondValue;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result,51641cfa436f62b85bc6b39354f14375094418ba8001ee88ff8a488d059a0821,243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0,97.88162,0,87,PASS
210,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;secondValue;inputCursor;state;outputCursor;result,a139583cce43fa43dbd21e8806aff3a2a5e4bd7072c5f2908288d1e7d0d0c6ca,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
211,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;secondValue;state;outputCursor;result,e941f094dcc1139c029e2c311e5cee790269232ed39350791221b113fc0a33d3,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
212,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;secondValue;outputCursor;result,671c291f8c35acb5710975f00eba34033794528e06a1fb25a934580f8e16f382,fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510,97.38318,0,99,PASS
213,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;secondValue;result,c62baff8c404ff81f3ca99fc7d63a689bdd26f61f4ae6df7f289c2419bf7e240,fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510,97.38318,0,99,PASS
214,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result;secondValue,3ed15ca2ec62477b4a99d523ea16acd05b49579ce9a50df51237d1e1b1495f65,fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510,97.38318,0,99,PASS
215,neighbor_evaluation,stateIndex;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,70faab5f816cf5475b00b75fd7d72d88d91e2d0824e74041f29042cee74e4473,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
216,neighbor_evaluation,decryptedData;stateIndex;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,a536ca12e2702e9cf624e3be1f6ba0b0dcb4d23eb957f43875fdc857f1bffc17,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
217,neighbor_evaluation,decryptedData;controlFlags;stateIndex;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,1fbde72a04e15df7365b5eb36186bdce47850744b20a7601dd58bcf0adbd9392,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
218,neighbor_evaluation,decryptedData;controlFlags;dataLength;stateIndex;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,49aa96859167593a24e79655efbc3f6c2433e9526f45b945dd959f17c9a30b49,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
219,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;stateIndex;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,de8c31842c066e0f6b827f7a458ba8ca0dcaac438da1192b86aa63d344c4d85d,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
220,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;stateIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,9cfaad939dd016a34ea1be663be5658d36290f2a84eb1af3c5a4e20f039f9517,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
221,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;stateIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,ac3f3fa218fc2fdb184e78ec2658cde9ed348033a8b4e3abec4dd1dc47911299,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
222,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;stateIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result,5a1babb9d0d3b8a2534beb162b5718cc7177bcd8d7825f2d490c19b13591b899,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
223,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;stateIndex;state;outputCursor;result,078a8ac0a43de90b7d9cdf4bb610c465697a537b038ded169d08d4a4a7bbb4dd,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
224,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;stateIndex;outputCursor;result,974cf1555245234732862f6e97d8b9ce473849af09e30869bf80a37bf558336a,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
225,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;stateIndex;result,93b6186c34e60145be619f48aa04eaf944a954d9ab9670d0351dad9a8ee16800,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
226,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result;stateIndex,65c34714d51dc1caa1f0cfc91b5f0f30285dadac9e736ff9092a1f35260f6265,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
227,neighbor_evaluation,crc;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,a31c91cae001c118b3fdd14a1fd7e7280a81d4c087c19bec454812f6ad2f11a1,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
228,neighbor_evaluation,decryptedData;crc;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,effd94a1446dbc7a397f579227734ee751a173ee44062ea8dc54ae5a2e833a84,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
229,neighbor_evaluation,decryptedData;controlFlags;crc;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,a5f56993a9f6c92c29dec4429d63e00439acae4c9c802281b8dbd5bac2ecba9f,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
230,neighbor_evaluation,decryptedData;controlFlags;dataLength;crc;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,7698fb67c2e3732a86089376224026233f5f00e4da6be63d7bc79c55164d6fcf,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
231,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crc;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,d32ac6f4e6f2be79f7ae350f887447ee24c76e03d2e371f6a0b177426c8b6c95,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
232,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;crc;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,7ebeeec5ba4900e41566a2b90b8536f4474838d4dd5fb182748b3a5ece55ca95,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
233,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;crc;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,6906fc7048a479839459d8160ce297e7ede06d09709b860fbeb5321e2cf40316,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
234,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;crc;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result,bbf49984d8411c0a0815a5ff29a6d4e7fff4d0abda708c609d0887d94fe9e921,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
235,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;crc;secondValue;stateIndex;inputCursor;state;outputCursor;result,057757741bbd1ab5551e49d418b14a612900f1222aefb4a1532773689d8eb59d,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
236,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;crc;outputCursor;result,1204686761100883579978ddb176c0623b7410243c92bd3037e553f50c867e3d,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
237,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;crc;result,42a711b90e5e69c2d06fff1df0b2cb545748e9ba27e89aa5b8b2f8408c65d260,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
238,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result;crc,bb314af09d84f1c30df11e81fb4a97390e31b8f3be193c3bd4a071c4d53d1241,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
239,neighbor_evaluation,inputCursor;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,a50a669f1ee1c4ca96fa562060567c19ab19f5c0a6f208c0287f15e8f1cff445,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
240,neighbor_evaluation,decryptedData;inputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,4482867226c369780f5cca3a572512d41419e7e8faa76ffb05651e54b21e0d02,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
241,neighbor_evaluation,decryptedData;controlFlags;inputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,fb4a6c8f824d12bc9c20b7e82d9c8239bff3c9b96160bfc78544f13387153fa4,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
242,neighbor_evaluation,decryptedData;controlFlags;dataLength;inputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,1689196b03346ea5c61c26641f95fdc25ceaf93849cc22005dca9d61bc8f7ff9,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
243,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;inputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,1459cb5d073ebee1ae9644fe21aab1272ef14de78712a6aa5aa0782785c633e1,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
244,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;inputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,679e50ad2369357419b2d97e7fe82e4a4db56540cab3fd723591333ee8cb9050,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
245,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;inputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,f277c4c7bc584f31bb06b1aee7aa02c445ded7fd6cef40a63c14a8834be793fc,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
246,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;inputCursor;firstValue;secondValue;stateIndex;crc;state;outputCursor;result,bb5ae44aeccf514b66a37ed17298c55c2a275f819069678478da8c15143b9b4b,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
247,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;inputCursor;secondValue;stateIndex;crc;state;outputCursor;result,4104131dc0c331ed76dde4d645847c61adc9f949481a4df7c0aad3f9d2af9296,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
248,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;inputCursor;stateIndex;crc;state;outputCursor;result,7093b81184b5ec13929dfd47436dba408282621a5ea9153a14944d146cd8cf00,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
249,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;inputCursor;result,31c224b690cfdfe7c172034df685173db1da619f0ecfa3afe22303d2c1536cb1,860b0d2fb48899eaef9d4754b3a6c3ffe56ea14ee7e76c1407aec3914556f0b4,97.35203,0,102,PASS
250,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result;inputCursor,f15195ab0bd353c5f5909019cbc82113be1ba6ae0d1dc0fcd7cb5fd9816f996a,860b0d2fb48899eaef9d4754b3a6c3ffe56ea14ee7e76c1407aec3914556f0b4,97.35203,0,102,PASS
251,neighbor_evaluation,state;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,83f75cf4dbe63e6d8bef5f684950fd34c0e98c72ba5e7992b2fbd36abb434eac,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
252,neighbor_evaluation,decryptedData;state;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,ae21b0c0d38d61276e5154934008b1542100ffe93289c4e25b5734aa67a325f2,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
253,neighbor_evaluation,decryptedData;controlFlags;state;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,1a2a2d24304dff73a925c8570a448eac5341582529b524cc36aa221fa798ed22,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
254,neighbor_evaluation,decryptedData;controlFlags;dataLength;state;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,a3fb6f400789dcc5e18a6d4d92b837adb77111e1f9c7d4cde9a8185d9db22ced,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
255,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;state;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,0a87c9ce186c1f8d5d9562ee648270f06e2543b6ec75bab1ce09b77f9eab0ad4,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
256,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;state;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,0ecf95a2414884be17e62d057994f7f54d53878385200266ba8e78cc1f0fd2af,dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667,97.850464,0,93,PASS
257,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;state;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,c133c39f34e792c4ffdccc166c35671aeb2a7ccbb5c9a259b401e4889169b5ed,129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad,97.38318,0,99,PASS
258,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;state;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result,d6b30ef7f5b599ff66da5bb9c6e97657886254c39eee19037e608622caf10d54,129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad,97.38318,0,99,PASS
259,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;state;secondValue;stateIndex;crc;inputCursor;outputCursor;result,2651f320de2975fa099bfcdd6f88eb026c47f91fe8817a6af943c2afbddc901b,fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510,97.38318,0,99,PASS
260,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;state;stateIndex;crc;inputCursor;outputCursor;result,23e17f7b930c0819720c76a3f077cdeb85f9cb4a6620012a3e752cab37f3b27c,f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30,97.47664,0,96,PASS
261,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;state;crc;inputCursor;outputCursor;result,4bcea611ab7043f964611128c38fa68a2fc701f4f13fdbe01806de2c45d3bf2b,f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30,97.47664,0,96,PASS
262,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result;state,18b7157bc1de678f4c4479cf9d9938d467239c49cc26e2a04cbd6f6a460ff6d9,0535a63eb8c8d27a21c5e9629babd82e6b732ddf85fa9eef08f154604468eef5,97.47664,0,99,PASS
263,neighbor_evaluation,outputCursor;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,32e29f7f3deeeabcdf0ffb867f752e0c1e1311180c5cf1db9baa06739dd23e3e,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
264,neighbor_evaluation,decryptedData;outputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,b04c9d137db3d9edd42ec55d5a333e487f9ab17cd27f6eff9f42b4b89b6cdaf3,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
265,neighbor_evaluation,decryptedData;controlFlags;outputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,1deb0279a3ff6407283a6a9025ba741be9be3b3ca8e05cae5b2bddd2f0f82523,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
266,neighbor_evaluation,decryptedData;controlFlags;dataLength;outputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,3f80665e3e62367a7c346a3bc6ffce01b2f1446824fae4bdc353d08fed5d57c3,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
267,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;outputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,7571e60fed5554a5442bba097c3d719ca13e8e66e7e71f96a13812ca581f72bc,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
268,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;outputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,69a0e9ab50375736a659e4beaa23c42c51d27a57323f119e90fc1b4446ab84e8,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
269,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;outputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,8674ea7f253975e1a371ded2961b48a185efd37f3d422933faf5fcf5dfb453cd,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
270,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;outputCursor;firstValue;secondValue;stateIndex;crc;inputCursor;state;result,f960040d362b4386d9605b74d25c25c8cf8f3de5da28b0f00cfb0f9182d06b6e,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
271,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;outputCursor;secondValue;stateIndex;crc;inputCursor;state;result,1bf8488c8798909fc284b622efadd535a24606e36f90f1f5e164e4a575c990f1,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
272,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;outputCursor;stateIndex;crc;inputCursor;state;result,1a140e7a30b25a8a4f43b4008cb15a926fec8632ab7be0bfe555004fb0223a16,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
273,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;outputCursor;crc;inputCursor;state;result,310b766e1662b200eb07b442cb926b8ad42950ac4a1bdd8e78bbb69cc0be0628,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
274,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;outputCursor;inputCursor;state;result,6d75c3424c42f71d35891b2a8961fa9b1f3ee7b6fdb2049d0348db3bba4ca8e8,c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644,97.35203,0,102,PASS
275,neighbor_evaluation,result;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,b2f72ac7f27349ac0b5dcd5a81fe1f1ac6b1a5067e046069982ebafe9523124f,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
276,neighbor_evaluation,decryptedData;result;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,6d868b9600e0611d22178815ac9c8cc3094d2ff0ad91d57fd0bada39285080db,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
277,neighbor_evaluation,decryptedData;controlFlags;result;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,906d41ea55243df8467b7b931b1e8149bacf9487e376a41e78d1280e1deb1dad,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
278,neighbor_evaluation,decryptedData;controlFlags;dataLength;result;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,24ba1196cf65dbb0c791c48110a1decac7fbc13d844739cb0b1ba47c830a1336,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
279,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;result;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,3a60d1e08edd080b5df86e286abbd8ecebac3e756da2cc369162509badee0a11,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
280,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;result;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,8a497e8d985a912db6252f043b7f848f57ef9357b6c32253e63d449c91bf8d94,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
281,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;result;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,57159cd7ef307ab7a3bae9a0577587d7b64d551b095f4a935cdb623f49e170bb,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
282,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;result;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor,014b2f02267901989709a194ccbf46a94be71e9b42835be1123cdafd95c2111c,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
283,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;result;secondValue;stateIndex;crc;inputCursor;state;outputCursor,47c5577caac682a3e9560ba52ce3edf1e2372f312d1b740cf02719e25447c018,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
284,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;result;stateIndex;crc;inputCursor;state;outputCursor,a9daf6f6c19cfceebd009dc47630fcb951e893e95157973db6408ec0fc38e0d5,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
285,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;result;crc;inputCursor;state;outputCursor,5a1236861f764ae70b73df542b38fe9ca70811d6f7f8f102cc60bfb8c23f0449,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
286,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;result;inputCursor;state;outputCursor,7b2c513c64ca4e2da056bc2626a66a119557cb13bf80a8e229e760ddf0b82be0,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
287,neighbor_evaluation,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;result;state;outputCursor,8e96ade46bfc83ea6a6d51226e29ecea96e4e66140ab910a408e2904a8512ef9,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
288,restoration,decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result,ac7a459ef23327c3dd415b3146391da10553ce8bddeb82b9a4030c120dbd44b4,8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09,97.74143,0,87,PASS
1 snapshot phase declaration_order source_sha256 object_sha256 official_fuzzy structural positional all_preservation_gates
2 000 baseline_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result ac7a459ef23327c3dd415b3146391da10553ce8bddeb82b9a4030c120dbd44b4 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
3 001 neighbor_evaluation controlFlags;decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result bd7bb99ed8fe4640af628acb0fbc4c696a693953e588cb68438a34255fe3964b 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
4 002 neighbor_evaluation dataLength;controlFlags;decryptedData;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result c13059f53348beb7b1fd1b7dbdf41eac349fe5f920d0440e06ec6792cda5fbee 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
5 003 neighbor_evaluation i;controlFlags;dataLength;decryptedData;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result b305035a80e364ab59448a9fac02a6b960376879b0cd49b01232a14b9b4a9caf 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
6 004 neighbor_evaluation crcIndex;controlFlags;dataLength;i;decryptedData;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 01d6fb3194473ed0fbf088b6ad73ed25d8ca5c34d52d92a3fbc07bf7df8cfb67 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
7 005 neighbor_evaluation firstIndex;controlFlags;dataLength;i;crcIndex;decryptedData;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 2d80d00656c99771fc14bde95dbe924839b6aa5735da13f1d22b5878c1a86b76 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
8 006 neighbor_evaluation secondIndex;controlFlags;dataLength;i;crcIndex;firstIndex;decryptedData;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result f1f974567f22b792fdb70cb1148dd9c2dc82dbe22c7868f6b753517ff2a46ef7 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
9 007 neighbor_evaluation firstValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;decryptedData;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 8fc1ac8da211bbcd586cb297f610b83ce0aa681248c6b313f653d47bb7f5783d af9e53e57abe1f29ba277e0fa3d93ac1537d1dd55c6983d1887fb4df831d6f7e 97.18069 0 114 PASS
10 008 neighbor_evaluation secondValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;decryptedData;stateIndex;crc;inputCursor;state;outputCursor;result ec512ca3dc20f47f11c8313c90d519fca6f8704ad6a2cda3fab0d15c8a02c96f 7ee4d39e1a67501811d70d7dd390be007a4a6569559fb4e4db8484326428b1ee 97.50779 0 111 PASS
11 009 neighbor_evaluation stateIndex;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;decryptedData;crc;inputCursor;state;outputCursor;result fa8763db1dfaff3a416740297bb608e75ad2f6883e2a11c2face7b85a03c3202 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
12 010 neighbor_evaluation crc;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;decryptedData;inputCursor;state;outputCursor;result 5052d3e5d9aa5c88af059a09f139eb2be9a21440cc23b24663f5cfa6341dabf1 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
13 011 neighbor_evaluation inputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;decryptedData;state;outputCursor;result 75389dafa261d5beb9c175bcf67ee987668f2c8b10815ec8bbc691abfae2f54a 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
14 012 neighbor_evaluation state;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;decryptedData;outputCursor;result b8aa6701790457056f4f5aff8649a7f0b9dc0f52dd847944c8bc690543e076fb 45ae50ab82aac571e27d2468ea03dce70cf9c93e4a4f659ee4861d967359a964 97.47664 0 114 PASS
15 013 neighbor_evaluation outputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;decryptedData;result 25213304e9d5c56a2703ba442eb3597421b398f56057910d7a495bce756e1c15 28a1072e2f0eefc7856786e6009d0dc9d96435f3f9333261837ae4a52fc9705b 96.978195 0 123 PASS
16 014 neighbor_evaluation result;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;decryptedData 5c2021c80f57cfad18f6efc3b209e1dc28bc92f0629ac04cbc6ad632af5c850b 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
17 015 neighbor_evaluation decryptedData;dataLength;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result de7958fd273001f69c212b279e5a5b1e41986c129cf3f34c3e832bf6cf79a04c 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
18 016 neighbor_evaluation decryptedData;i;dataLength;controlFlags;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result be76e65bd34e051f386ff563a5b61f40eef29024d833e6ea389136e661895301 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
19 017 neighbor_evaluation decryptedData;crcIndex;dataLength;i;controlFlags;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result d8dc726b9c68e9a60ed72c29072de58639a86b6decfc14e9d933ffe031ad0a33 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
20 018 neighbor_evaluation decryptedData;firstIndex;dataLength;i;crcIndex;controlFlags;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 5531b1b82f267e6e71e09da48fd390979707bf3fd7b9c886a3bf57e0acbe65b8 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
21 019 neighbor_evaluation decryptedData;secondIndex;dataLength;i;crcIndex;firstIndex;controlFlags;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result b8e80977eafb456d5eeba6390bb0e6978a6057bf770e82105a7a5139569ce89e 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
22 020 neighbor_evaluation decryptedData;firstValue;dataLength;i;crcIndex;firstIndex;secondIndex;controlFlags;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 82eb7d1c9430e24f0c33765148fb42d31b1f39c1a92e0137b8ebb0b97b33beb5 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
23 021 neighbor_evaluation decryptedData;secondValue;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;controlFlags;stateIndex;crc;inputCursor;state;outputCursor;result 3176094eb46f60ea3fbfad5d70d3d169752650d58fadafa30d17ca7add7567ba 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
24 022 neighbor_evaluation decryptedData;stateIndex;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;controlFlags;crc;inputCursor;state;outputCursor;result 4e86a3bd664ac8147ac18f130c70490751b38ba5300acc7e62f44a857aadf606 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
25 023 neighbor_evaluation decryptedData;crc;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;controlFlags;inputCursor;state;outputCursor;result 8c95e28e7c5e93034a6b14c40817a4a7d859d280ce06585a2dad9cfabb9a0a90 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
26 024 neighbor_evaluation decryptedData;inputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;controlFlags;state;outputCursor;result d40512a2239096edbc72332c91447c958f90f5f70374c2d0dc01519e60223593 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
27 025 neighbor_evaluation decryptedData;state;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;controlFlags;outputCursor;result 61719eaa2a794139c2ab0d116ccb316e669c35519315dd759a7a858a07d533c2 dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
28 026 neighbor_evaluation decryptedData;outputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;controlFlags;result 5a1e1a0470e5210f172dbd1106d0413a33e2672be4e6dd9fab285f3df18d8906 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
29 027 neighbor_evaluation decryptedData;result;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;controlFlags 7458e66a2ab56a4a094e6227c6574ff2947e0c6bd41d3dbed9dce7cd25c626d4 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
30 028 neighbor_evaluation decryptedData;controlFlags;i;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 004d94d0cb2551ab70a64e53b0a5e1fa9a6907e8af1c4a89cd1b5e1a1410485a 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
31 029 neighbor_evaluation decryptedData;controlFlags;crcIndex;i;dataLength;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 970d5e82bed0ffebbffb959a418c6bc128f638730d69d034f1df977feb56171f 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
32 030 neighbor_evaluation decryptedData;controlFlags;firstIndex;i;crcIndex;dataLength;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result c76c9baa5413609c6bd0b39983302cc41cfa509e6da7cadce50e4249c1f8aaa0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
33 031 neighbor_evaluation decryptedData;controlFlags;secondIndex;i;crcIndex;firstIndex;dataLength;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 55149890656d1b7b69f9187ec8c9e64fafa5c8d3fff077c23359844986f04f4e 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
34 032 neighbor_evaluation decryptedData;controlFlags;firstValue;i;crcIndex;firstIndex;secondIndex;dataLength;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 6179794b0bdb552eaf295a2de60c641aeae1da3904647e770256933aa90638ef b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
35 033 neighbor_evaluation decryptedData;controlFlags;secondValue;i;crcIndex;firstIndex;secondIndex;firstValue;dataLength;stateIndex;crc;inputCursor;state;outputCursor;result 2972c1b6f45de1084eda38aa10d16c5015590d7ef2d45c1850a97ff185b574e4 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
36 034 neighbor_evaluation decryptedData;controlFlags;stateIndex;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;dataLength;crc;inputCursor;state;outputCursor;result 7c37c38c0740200abd0e6df414116a72d0f80e892b117406986d0f1d13d88758 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
37 035 neighbor_evaluation decryptedData;controlFlags;crc;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;dataLength;inputCursor;state;outputCursor;result 26eaa3fbab33630bbc146feb650f62af2a4cc89abc18c4a653f6402f261f18d1 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
38 036 neighbor_evaluation decryptedData;controlFlags;inputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;dataLength;state;outputCursor;result 7b8a785fe6b48b4966385283bfb9db14ae40cf2d0cb091af831eec8e51ec001e 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
39 037 neighbor_evaluation decryptedData;controlFlags;state;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;dataLength;outputCursor;result 9c9ccfa8eb90fe1e6677162c5c9333005bf935ad9ed35a70e7e740274caac2a0 dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
40 038 neighbor_evaluation decryptedData;controlFlags;outputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;dataLength;result f4c86ac9fb3c318ecd8cfb0e44d180687de71d7d971f2a9fec5181984e9eb610 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
41 039 neighbor_evaluation decryptedData;controlFlags;result;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;dataLength 662c6f95a287893ac9bf1821250445a3bc3e8b899cd360044106679a657263ca 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
42 040 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result f868923747a4af0a4314b06bd13fa46133ce5ca1b89fb9efbd982192a1227aac 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
43 041 neighbor_evaluation decryptedData;controlFlags;dataLength;firstIndex;crcIndex;i;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result dcc6769722be12417d301321b909407ceba45cd271edcaee9e2eb65a64cb4cf3 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
44 042 neighbor_evaluation decryptedData;controlFlags;dataLength;secondIndex;crcIndex;firstIndex;i;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result e9b8c12176c63481bc24c8fc45e202c3743812f4f7e20a498b8b3ed3f0232997 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
45 043 neighbor_evaluation decryptedData;controlFlags;dataLength;firstValue;crcIndex;firstIndex;secondIndex;i;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 574cd3789b2bbc37edf9be15be31d2e2b7113161b2d6983033f03dea14692b50 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
46 044 neighbor_evaluation decryptedData;controlFlags;dataLength;secondValue;crcIndex;firstIndex;secondIndex;firstValue;i;stateIndex;crc;inputCursor;state;outputCursor;result 705a67d3a1100051fe9ec607d0817ea9d74c5f92b3e0b98b044a7935f1ee054d 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
47 045 neighbor_evaluation decryptedData;controlFlags;dataLength;stateIndex;crcIndex;firstIndex;secondIndex;firstValue;secondValue;i;crc;inputCursor;state;outputCursor;result 033dacd1cff730049f6f3fd997dd6fecf5753695ebc332fa8547c659dce9c9ca 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
48 046 neighbor_evaluation decryptedData;controlFlags;dataLength;crc;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;i;inputCursor;state;outputCursor;result 764ce380e0b2edc6c2cd1c03d8ea629f5b7b908d2c931cd6a47d2191dc94cb51 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
49 047 neighbor_evaluation decryptedData;controlFlags;dataLength;inputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;i;state;outputCursor;result c57e875efad0b642dd7de626750bba3d2a8750cdcd5bd30f61b90adbcf086658 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
50 048 neighbor_evaluation decryptedData;controlFlags;dataLength;state;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;i;outputCursor;result 147ae81794cb92ee7787afc0e577d25b8e2dad59752dc4971a5eb8bc4b1d19b8 dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
51 049 neighbor_evaluation decryptedData;controlFlags;dataLength;outputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;i;result 65193c71a368f0f89f45333c4cb88e72b2e99312e027ee9e55cfaaeec11d9399 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
52 050 neighbor_evaluation decryptedData;controlFlags;dataLength;result;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;i 027ef02ea8b4d486bd3518c782ef68374e4cf47b7ef2a360e722000c2fe93611 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
53 051 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result f22cbce2ca9a96e32a6a23678c3467951021da046126d1e35897f2465385e621 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
54 052 neighbor_evaluation decryptedData;controlFlags;dataLength;i;secondIndex;firstIndex;crcIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 0e2b045d9e1aad4fc910e1e0a8bed5a6acecf316aa60d99bdb6dea99ccaf3256 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
55 053 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstValue;firstIndex;secondIndex;crcIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 9a2b311c997e64e578bf3130ba6170716111da01fe5c0b23607b647020e9bebb b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
56 054 neighbor_evaluation decryptedData;controlFlags;dataLength;i;secondValue;firstIndex;secondIndex;firstValue;crcIndex;stateIndex;crc;inputCursor;state;outputCursor;result c87705486c00c20b5ec401c8ac74cddab408f0b7c0734b12a2ed9dbb0f790e3e 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
57 055 neighbor_evaluation decryptedData;controlFlags;dataLength;i;stateIndex;firstIndex;secondIndex;firstValue;secondValue;crcIndex;crc;inputCursor;state;outputCursor;result 5fa64025c8cd11f0e559481fe5e04bc2ac373378a9523c4827944d10b67597b3 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
58 056 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crc;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crcIndex;inputCursor;state;outputCursor;result dfaa1e2803bd399ba3d410b999cedae2639fc5959a9ad69dcf86805ec7443e19 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
59 057 neighbor_evaluation decryptedData;controlFlags;dataLength;i;inputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;crcIndex;state;outputCursor;result d32f3d3d495b9b77e1d4a97d65435dfea85b984de6997a7d989f0dba9780efda 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
60 058 neighbor_evaluation decryptedData;controlFlags;dataLength;i;state;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;crcIndex;outputCursor;result fa232d8464fe92558fccbf0c5b6bb652b1356a9428c3849c293de63127d7f105 dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
61 059 neighbor_evaluation decryptedData;controlFlags;dataLength;i;outputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;crcIndex;result ab49b901db85846560cc60aa2b33dc2e11d375c27d3af2b720553d9d485b9f2d c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
62 060 neighbor_evaluation decryptedData;controlFlags;dataLength;i;result;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;crcIndex 1a38e9640df6dd883a0b1528c98bd8f7afa2a4acc406533fffa1d708d7ba8ec3 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
63 061 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 3435dd06302c38c6c4c9fa3d53fa9bcf04c928991f0a26c5ab24623c1aef2f81 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
64 062 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstValue;secondIndex;firstIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 77d8858c8b64535d221ce7d33cfeae7f26cdc09ee4586357d89ba4da738c67b1 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
65 063 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondValue;secondIndex;firstValue;firstIndex;stateIndex;crc;inputCursor;state;outputCursor;result 02ef2ada13a67e6efa4bdf5ee373a735d755d6a11954986b3d4046d0dbd8d254 9dbfefa84c20a3c9ab86bc16d69b3aa78ac4f3908cd1251ea06252bf7186cc30 97.6947 0 90 PASS
66 064 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;stateIndex;secondIndex;firstValue;secondValue;firstIndex;crc;inputCursor;state;outputCursor;result 3dfd3337f076294e19f4ba3af971570e5469e81039794ebc75693146a68888eb b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
67 065 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;crc;secondIndex;firstValue;secondValue;stateIndex;firstIndex;inputCursor;state;outputCursor;result eca4656eee951a5aeb01cfce5406faeb5cad91f1d384eb1502f199bd0c359ee9 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
68 066 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;inputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;firstIndex;state;outputCursor;result e994023c99882a16c35bb79d93a0593a2c58fc8fc6eafd428fa1477d1957c411 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
69 067 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;state;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;firstIndex;outputCursor;result 075fe407c85db568c6458f10337920b281fc29868887830016fd7ef20b3f963e 8a55aba5330fae20c4240be0dca0d31ec8fb667edd92051cc40082d4473494f9 97.66355 0 96 PASS
70 068 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;outputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;firstIndex;result db5f7f382eeed73d11a5bb59dacecf31a17464c75c159846125213853c774949 34e8f037e80705d9217584ae290c863380c3ed23e4cc92e99433050945b9db8e 97.25857 0 102 PASS
71 069 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;result;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstIndex 926cd5ae5b24c1037694c04a3cb0623ae557a256679f5e11d7e9e9613f1a99ce b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0 97.38318 0 99 PASS
72 070 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 545dec997e2e5c7c3f04cddfb226feaf14871212a42183ff90b288f30b49b8e0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
73 071 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondValue;firstValue;secondIndex;stateIndex;crc;inputCursor;state;outputCursor;result 10ac6e7594a3f3ed05a195d68e6e0605abea7c1b9791cc2efae5809add89b0ca 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
74 072 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;stateIndex;firstValue;secondValue;secondIndex;crc;inputCursor;state;outputCursor;result 7c5dbb3bff721ff5a86e7b15fd6c1de6550c93a5490311597818c0d9e7c9377d 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
75 073 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;crc;firstValue;secondValue;stateIndex;secondIndex;inputCursor;state;outputCursor;result 939f7df59b5bd617588ea87756cb1e7e1ed0a118b4f1c30fe73d7645cf167d22 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
76 074 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;inputCursor;firstValue;secondValue;stateIndex;crc;secondIndex;state;outputCursor;result 525ec6a9cb4bd64bde1ec05f3c20e2b6d4e72687a6c227ed3866430216043fc6 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
77 075 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;state;firstValue;secondValue;stateIndex;crc;inputCursor;secondIndex;outputCursor;result bcf03832727fd0fd3d8372b27ef6c0174b68db56735f0bb88c43261050eb23d4 46711b4995ef7ea8250ae1ffe0cf9b9fdf30329f79d6ca2a0a507db357500c50 97.52336 0 99 PASS
78 076 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;outputCursor;firstValue;secondValue;stateIndex;crc;inputCursor;state;secondIndex;result 8fc129cbc6057fffda52320cdbdd818a7f7a6e95de4e02430fac3704e18ce4cc 48e81fc2d04617885af36d62282efb79e42b539b710f6c23d74fa8294c375927 97.39875 0 102 PASS
79 077 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;result;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;secondIndex 3dd88ebb46b500ea05c85a476006b2c686bb643941ae627e55c80c29be8ab0fc 43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f 97.52336 0 99 PASS
80 078 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result 3feaccd957fdb2cb72b25426d25daa14400ce1888b13ad6043635f681e1126e8 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
81 079 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;stateIndex;secondValue;firstValue;crc;inputCursor;state;outputCursor;result 0e49a622a231bb91231ea00da5bb8936b116bde72e4de07eddf80f262dac13c0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
82 080 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;crc;secondValue;stateIndex;firstValue;inputCursor;state;outputCursor;result f547a72b8e7809b6bd2bbf93206e1ae96d39855a81dc9d632f416294b8f5e560 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
83 081 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;inputCursor;secondValue;stateIndex;crc;firstValue;state;outputCursor;result e462b1757f010565ff01e7fab8fe5cfb59fccd3de03f3657a62bd7077d2fb000 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
84 082 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;state;secondValue;stateIndex;crc;inputCursor;firstValue;outputCursor;result 9d22cfc69ca8f323e0924b797e0cfbe6976f9ddc48d51c7422bd10dafaa9efc5 129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad 97.38318 0 99 PASS
85 083 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;outputCursor;secondValue;stateIndex;crc;inputCursor;state;firstValue;result c9389396badfb8538806a36c163d5f92451070b147374725963d97ea9c613a01 daaad75347097ddc758342014179d97d4b222a0b4aa15789d8451ac51d970df3 97.25857 0 102 PASS
86 084 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;result;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstValue 7999ba494fbe9e00b1b943b7e940ea296df7b4eb74bff334fb64cf288f74dfcc 129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad 97.38318 0 99 PASS
87 085 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;secondValue;crc;inputCursor;state;outputCursor;result 36e8617149cd9cf73607a469a0411b36527bb4d6fcd99df6b031bccf05e14952 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
88 086 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;crc;stateIndex;secondValue;inputCursor;state;outputCursor;result b6ef16ea45f39a6c59fdc623912479509525a5be9d5dfc6f32c59e2a761644f6 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
89 087 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;inputCursor;stateIndex;crc;secondValue;state;outputCursor;result 782088af731e6b757fdbf6903bce46fcd12cb299843175ac2bf111fb73dbfcc7 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
90 088 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;state;stateIndex;crc;inputCursor;secondValue;outputCursor;result 718deca4435fdb43076a0bd3671c9f8ae811c33c3c330e3931c9b28def80d68b fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510 97.38318 0 99 PASS
91 089 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;outputCursor;stateIndex;crc;inputCursor;state;secondValue;result 0ce295f10671706d1104c6fc19bfebf9b5a28f68ae2bfc5b283b152eef073b7b 484b432e3698e2d706c2a9136080516ffd5ff49012f8e406a0e6ee9498439138 97.25857 0 102 PASS
92 090 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;result;stateIndex;crc;inputCursor;state;outputCursor;secondValue 19aa0724e5ff05ed864e77c97a40a42c79eaaf4ec78f16224d8cfec23a812007 fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510 97.38318 0 99 PASS
93 091 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;stateIndex;inputCursor;state;outputCursor;result 3a2c26deb323d25ccb9631ecb0c7b6fd8aa738652f5bfd240b6589839ba3e008 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
94 092 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;inputCursor;crc;stateIndex;state;outputCursor;result 29f0be9bf2873eef9082981147aade19cc1835f6ddd50cd543dea258d195a9b0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
95 093 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;state;crc;inputCursor;stateIndex;outputCursor;result 9af272ac8e445c07753878248581ab6896eba69f642c0ed94feecde3a6c52764 f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30 97.47664 0 96 PASS
96 094 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;outputCursor;crc;inputCursor;state;stateIndex;result dc2771a85d86c0d265666193f155f72eea79669d65ce2048f3ef5083e4c51f9a c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
97 095 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;result;crc;inputCursor;state;outputCursor;stateIndex 20cfa2be2d927092a5a376521a299f052e12eae735f5a2087da84e7e0a8e7379 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
98 096 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;crc;state;outputCursor;result 8d706d22c1833f8d195118441a9fe62be0d941c082fcb7a463ea23979ecd8d4c 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
99 097 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;state;inputCursor;crc;outputCursor;result 5a34e76072d8f1757cfcda6223de28535fc9a7faf187c8d70f224aedc91f424e f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30 97.47664 0 96 PASS
100 098 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;outputCursor;inputCursor;state;crc;result 1667a36b982c31a18ee8474ef2f07c50c20838c21632face055ddeda496beda4 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
101 099 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;result;inputCursor;state;outputCursor;crc 3ddc24bf83a2868df7c17483d82d679653086ace7a961fd8d8d8959ac9fa5322 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
102 100 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;inputCursor;outputCursor;result 998774f243b2846d4df82548e36805b6a11b4b42814f2f13ed5b5e290fc5614a f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30 97.47664 0 96 PASS
103 101 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;outputCursor;state;inputCursor;result bf2a6e2ee27dd0fcc2cc5b3ce0811275fb6391674be4925b650d9f37f90f52a3 e672227d226240623ecc01688f1ccb1b15663a29bedcc59a3f2a95c5a6995694 97.49221 0 96 PASS
104 102 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;result;state;outputCursor;inputCursor b21a8535d58ea5d2bcc0658c542307c1bec418d71a09422a6c9cf189089123b5 860b0d2fb48899eaef9d4754b3a6c3ffe56ea14ee7e76c1407aec3914556f0b4 97.35203 0 102 PASS
105 103 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;state;result 2dc0f24565e406e7a0c98e344f26108f7a0a757855ff3052e4a5c9414f7d125e 0535a63eb8c8d27a21c5e9629babd82e6b732ddf85fa9eef08f154604468eef5 97.47664 0 99 PASS
106 104 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;result;outputCursor;state 1e9433b84b968f1240e33fa0668adc5cf5289f0938e858a3e3fd82b2cb03d8a1 0535a63eb8c8d27a21c5e9629babd82e6b732ddf85fa9eef08f154604468eef5 97.47664 0 99 PASS
107 105 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result;outputCursor 61c71eb6cbb204edb4e20aadcc254596ce72d386b84c4d61e6a941ad5e25ed42 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
108 106 neighbor_evaluation controlFlags;dataLength;decryptedData;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 5d82b8663050fa80ff15986b0f228f160a1f85547ab6754a96f36b73bd17848c 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
109 107 neighbor_evaluation controlFlags;dataLength;i;decryptedData;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result a4e2ad874ed7506b55dd20e25e48117b30638bc04dd033634de5417d650271a1 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
110 108 neighbor_evaluation controlFlags;dataLength;i;crcIndex;decryptedData;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 97f539dc0bdd7ecc76724863a640fed709665cb8615102c773ca52cefe410cd9 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
111 109 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;decryptedData;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result c76d775ea6e9a22058086fec3202e588d3a8319467fd1cc7773735ae95fc8c5f 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
112 110 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;decryptedData;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 1a6e4f501ec923258582f613ca027e750504db3f6d9e5168ccbd38e70330d42f 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
113 111 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;decryptedData;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 5413e13990d304d46937bea506c90ea1a8eb7ec83d868cbae302156f240c4dfa 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
114 112 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;decryptedData;stateIndex;crc;inputCursor;state;outputCursor;result 10701e936a7646abc630d8d65935819219fcfb3c36aea55ebaee3a615bdf2938 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
115 113 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;decryptedData;crc;inputCursor;state;outputCursor;result cda583486b9cd95c8fc4f7af8839cc29dd190d936d2e6e0ac1b6cfe1ba0a56b7 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
116 114 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;decryptedData;inputCursor;state;outputCursor;result 32f414c7aed00008f621fecf673ff869af84759b2fe0fbed470e34e146caf93c 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
117 115 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;decryptedData;state;outputCursor;result ef5d066094113841367bee0a9675777b0bea7a1f2dccbf0e801484df9d9289f5 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
118 116 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;decryptedData;outputCursor;result f79a18f6eb10d0e3f7e8be261413baa88415c27a0b40800aa5ec90acdc7b6306 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
119 117 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;decryptedData;result 4f1ed44c185fac54f7ce6ed8a599bb0906c3d122d4c54526222a9575d8ca259d 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
120 118 neighbor_evaluation controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;decryptedData ad16173e279455146a8c1f3d969d4349fc2329880c769716ea63eac3e017dac9 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
121 119 neighbor_evaluation decryptedData;dataLength;i;controlFlags;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result db253e35073ff1accf08f5fd057476ac4fe0d4b4a81dccf3e9b8f4ed5209463a 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
122 120 neighbor_evaluation decryptedData;dataLength;i;crcIndex;controlFlags;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 7e67e7377f1a1205590c1d8866c158d5cbd1c002e5ac302312c333b3e6881866 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
123 121 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;controlFlags;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 15ec2b7f90b826f9c6d9575b06ab8aba4ada500043bf9b3aff0cf69095ad5edc 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
124 122 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;controlFlags;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 0130ce73973072a4b73d470379f7ac44e9e7d81a9ae7ac6d0ea6c1b744c42828 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
125 123 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;controlFlags;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 536a7b1b11eb02587c5f3ee49f121a0bb1d2de24cc261778e9c89eb14e967c9d 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
126 124 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;controlFlags;stateIndex;crc;inputCursor;state;outputCursor;result db824439667e6778073162bb4c1a74f412801296950fcfe892fa9de216c91537 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
127 125 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;controlFlags;crc;inputCursor;state;outputCursor;result f55fdb5dc25a85bcacbc8a72fa0ebe1989e60d7d978bd381dd86741c0a083bc6 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
128 126 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;controlFlags;inputCursor;state;outputCursor;result 3ee4ddfddebaef3880f48daf2a56fc5ecaaab745df0bfb12391e8cf78e0f2f4a 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
129 127 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;controlFlags;state;outputCursor;result 79966f03e8c16d4ebb789c18c47ae39bde402c1a5eedc5fb2aca632f48c62bf0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
130 128 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;controlFlags;outputCursor;result df6e1f2d784d14810395451a4ea2831cdab6bba16e0d1888707f4691d125166d 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
131 129 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;controlFlags;result 0af00c7fffa6393daacaab79ea4efc891406e781ac1c4f59fc3087afd26a8923 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
132 130 neighbor_evaluation decryptedData;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;controlFlags 3d5f5fe0dd8f84ac9672577d35b11c271d4feb58d26e96062c8d719320603fd8 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
133 131 neighbor_evaluation dataLength;decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 99b7b33a4e2f8b5ce731f1fe91cef5b3884149f571c6ad7e480821b099fb6215 6e6272af3b8a7e6faa9a778e84481375d4f8f7c5baf28058e462f6b453e706c2 97.3676 0 111 PASS
134 132 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;dataLength;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 56e3052397aac1da94f00261644d640c7a46829ef85b3b00122dcf3f7e3fb928 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
135 133 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;dataLength;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 091eecec7ed8be89251f8e84f396096ced82a9473405d81442c1a192d4fd4f30 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
136 134 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;dataLength;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result b9e161b2dd91820efda2ba086d2ba522d680a92558f535f6c7c69b485e251266 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
137 135 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;dataLength;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result ecfae0d4407d5ba634d93ed3aff45d1c295c9532f9317fafebecb503aec4ab7b 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
138 136 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;dataLength;stateIndex;crc;inputCursor;state;outputCursor;result bd45d3d9012ebf890261d78c7f8b483ccd6fd6553f082326a2479c1da0b67919 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
139 137 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;dataLength;crc;inputCursor;state;outputCursor;result 1d1ebf81e7c6567a66752d9eb3b66b565d5b7c85bf4b7eabae33a2b1cb38f739 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
140 138 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;dataLength;inputCursor;state;outputCursor;result 3eef322f4ecee12f93c92de963666d685e1aa162c08182d3929de9da568e4a01 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
141 139 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;dataLength;state;outputCursor;result d6284b4aa47eb6e08aa78296fbb730f75aebe909463df5ce9701f96866b206c8 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
142 140 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;dataLength;outputCursor;result d7b0a56b73e8b6cc76164d902bd3693574aa88e65657f69b1a1cbd2a82bbdac0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
143 141 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;dataLength;result abb57e36888b35cc9766d8731b4110884a1f547739f95a0c188349cacd501f51 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
144 142 neighbor_evaluation decryptedData;controlFlags;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;dataLength 920ec26746cb9426daf60f618aac2456152bc376e9de2aeb40907840c4070e68 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
145 143 neighbor_evaluation i;decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 4b0ca2735b15befced2f41752e8cb64723fa4dfc99ab489193be7086669f1240 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
146 144 neighbor_evaluation decryptedData;i;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result dddde9ecc0e76b2fbe656ba4f2bcf812cb10f912b1c202703e4001c2c2528ec1 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
147 145 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;i;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result cd98ea18bbde7a5c6738ac344ba99cdfdb5a449ffd131a16e21f4f6fe7a5f48b 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
148 146 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;i;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 03ef2a1e820288a65da09500dce1827254522913c2b50f3fa8dc48d4539bd118 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
149 147 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;i;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result b04f3338f87f6b95be081255ca36e6ab33c686ff55b348f55d2432e735143182 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
150 148 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;i;stateIndex;crc;inputCursor;state;outputCursor;result 005fc1b174f2ae59c5db5d78c1516e7dc39d60495e9c03dfad17c978e8dba3ac 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
151 149 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;i;crc;inputCursor;state;outputCursor;result c236902f7acb284e27bf53c7d3e6c96750f19050bc191cc17f7515c593f534a3 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
152 150 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;i;inputCursor;state;outputCursor;result 3237cef5ce15bcd869fffc0fc39117c420ee38e870c70941895c49fa1f705825 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
153 151 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;i;state;outputCursor;result 879d94969dc9a357051a210ecb0dceb44108dd68a47c10bd1459c29f5c5074ef 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
154 152 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;i;outputCursor;result 62e2ba88b9f68e5b1634d24779d62c097b24e6df079c73acd9420ec3741e6adf 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
155 153 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;i;result df8c86f35934981961e83c7ab6b92a241c2e0d102bf8783ac8ca6da66dbb9aff 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
156 154 neighbor_evaluation decryptedData;controlFlags;dataLength;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;i 1528b4072a224f244ae6511b78e5893a8c99934307aa6db039e8960a9f15d17c 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
157 155 neighbor_evaluation crcIndex;decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result cdb1571b020527e67242f3e783fbe807ba71d1b53811398e09a10e86685bdacc 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
158 156 neighbor_evaluation decryptedData;crcIndex;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 24218f70d545503e7f70416d86d421ed123e9ef24b3bcb7e7515c987e0bde33c 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
159 157 neighbor_evaluation decryptedData;controlFlags;crcIndex;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 750a6bbcc9692c44d73398c5e7687f327c926e6b9465c3b8b2be72ed47d6176b 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
160 158 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;crcIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 1fc564a1fc478652e322c4f456ccb1b4cfcd72934c70f361393297b4d1c11268 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
161 159 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;crcIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result fd2ebe3b94d9febcdf6fbf6dac4bea6174af2370b7d655669361d8940d512561 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
162 160 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;crcIndex;stateIndex;crc;inputCursor;state;outputCursor;result 729bd40a2f38967d1ec95a5b50d08b977fdf693f02c032ad0455d9a8734808cd 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
163 161 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crcIndex;crc;inputCursor;state;outputCursor;result f71ada13da4c1044ef433047ee236db305990a25a3db23fb1d76fc9b0c5c2533 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
164 162 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;crcIndex;inputCursor;state;outputCursor;result c928bae5e62d2171b1c70c8d4b19ab6eee8ecab7241cbf22d01441686f11dba3 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
165 163 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;crcIndex;state;outputCursor;result 19c55cb1dcf53291e7597331adcee21697cc061c991c642835b22940a10ef436 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
166 164 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;crcIndex;outputCursor;result 5f8b5dcb34125f7e4c44b7e9da6f7686bb8fc205112a64448c1348e15d8f160c 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
167 165 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;crcIndex;result f30db6c9590b0e64bb31ae5a7de6e8eab1870e6aa0701dae13cbdc25749a2549 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
168 166 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;crcIndex f7d1ee3a26bb79c3b61f64e2d28e1e9dcfa871f584f7832611d714e32905ff8c 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
169 167 neighbor_evaluation firstIndex;decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 433f6772769698e53fb12832cc8b05bda0cd923e095444d219a61ef3103e5f84 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
170 168 neighbor_evaluation decryptedData;firstIndex;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result f18e89f62d613d0eb2b7bca08b7a1f3a2d88ed77028ab2300c726e2f41050dc6 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
171 169 neighbor_evaluation decryptedData;controlFlags;firstIndex;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result bf8fd30938f115f9807d19463ce1d0cb6ad9418fc0ec318f480206b8bf25fc9a 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
172 170 neighbor_evaluation decryptedData;controlFlags;dataLength;firstIndex;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 7960c0c2b0959a268a9f73e3fe3776ab09eb05b3e297ed9b23b5b2d6f86b4a98 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
173 171 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;firstIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result d0939beebbfcd9d31dc7c45877d1c04b6069dcf132b1192d78e1a7c0b7f0a7cc b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
174 172 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;firstIndex;stateIndex;crc;inputCursor;state;outputCursor;result 5c8204ce34ad595fd2c9ef43cf21583c79e9aecda8d07d207e49ac33a98b05cc b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
175 173 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;firstIndex;crc;inputCursor;state;outputCursor;result 017df3e777c6c5b67f0c21171dbdf42b98c143317acf059300e81284a3ff3dee b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
176 174 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;firstIndex;inputCursor;state;outputCursor;result 4e900a1351b932a180bfb94b09a64a8fc2296f73c799bcd41c549df2e524a43b b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
177 175 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;firstIndex;state;outputCursor;result dfc638c112d0a6d23924afb8cc74c116ed456206b06197063c043e45cd25f122 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
178 176 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;firstIndex;outputCursor;result 975ecf9a0813048ab2e4aa597f52236ec7eb25d9297d9a3c4b9591897d014089 b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0 97.38318 0 99 PASS
179 177 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstIndex;result 74c33bf685dd8d324be2bde37ff6b7036451235b312e5d8717da247e2aeb83fa b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0 97.38318 0 99 PASS
180 178 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;firstIndex e9bfd7ba969dee8ff972c3c5ee2f84b866b4cd93638e7892bb5853a303429ef1 b0ce1f50ff50b105be5d5dcddcf060f57bea98820f6720237a02754811613cb0 97.38318 0 99 PASS
181 179 neighbor_evaluation secondIndex;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 3ae6451b0f16f96106112a68d7fbd022b6d9999376fd131a4e6e7dd4324c5ab9 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
182 180 neighbor_evaluation decryptedData;secondIndex;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 5eac57d483abc25beeac93e51bc230d26b5ba04f55551c32ab47630921426260 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
183 181 neighbor_evaluation decryptedData;controlFlags;secondIndex;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 6ad4db6d7f44bf7bb8cef0f8dfb8fc063bae5af0098ff9e9554bffc7f7e366a3 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
184 182 neighbor_evaluation decryptedData;controlFlags;dataLength;secondIndex;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 8da3d1793f1bf03c85c9713ebd098910ea9457ae95d0a16a9c54372c1abb4797 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
185 183 neighbor_evaluation decryptedData;controlFlags;dataLength;i;secondIndex;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 5a3a1dc6fbf7d82cb1128c697364d80dd716b810c352721d369551c70cc95572 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
186 184 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;secondIndex;stateIndex;crc;inputCursor;state;outputCursor;result de5577237bfd8b1ee7f9ca410933172ba207aca9b6656af4deeae605f3bae99d 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
187 185 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;secondIndex;crc;inputCursor;state;outputCursor;result 7e69cf06b6240ddf9ed22d543d940eb39f1990dda36cbaa9705ee1f1893b16df 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
188 186 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;secondIndex;inputCursor;state;outputCursor;result 20c50adaf33f2277d96fc3443e7ccd841113992edc94a17c40e9b9befffa7816 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
189 187 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;secondIndex;state;outputCursor;result 9e4002bae513e5c412b00985a749f2211021f2151115a2934fe459e536ef2bae 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
190 188 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;secondIndex;outputCursor;result 71c674b1706633c01dd254b958ba78b0f68e372ee3fb985ae99e0208c9b86b30 43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f 97.52336 0 99 PASS
191 189 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;secondIndex;result 11f77c5f0513bd9619800310527df71cca7e2923a5ad44447d33e8294d0bb059 43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f 97.52336 0 99 PASS
192 190 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;secondIndex fd52a1c3062ad9290de395f4c1144c04e4138960d49b34b94d3366838c4f5a6c 43a330c5bc669cf5785f6a565954e1f4b7214e5293930464555ca9182ff7b52f 97.52336 0 99 PASS
193 191 neighbor_evaluation firstValue;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 59bf42a2d386ffcad40dce9cd5ed505ce2a72d3b7c7ae89481708768e285748e b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
194 192 neighbor_evaluation decryptedData;firstValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result d8da0319c5de286857de25f3bc14c6ac3b7c2778985ccd965b02dc8e2d6ee3fe b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
195 193 neighbor_evaluation decryptedData;controlFlags;firstValue;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 5eec80083b26d05a4b6eabdc6d5de8770a31cd1b7fd4167dd3ea908655481a45 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
196 194 neighbor_evaluation decryptedData;controlFlags;dataLength;firstValue;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result 7b9d37230383d19ccfe341d3c1bc42c97898f44db6dbaa0bc3fa2a91f68d5ce2 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
197 195 neighbor_evaluation decryptedData;controlFlags;dataLength;i;firstValue;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result ed1a8a10e2c8ba01e099538bc17113121621d13cba922d8ff5ff79b432d52a85 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
198 196 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstValue;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result bb910cb71ccd1883de76bf97baab39d635a948e6e03db04893679c48d9be0906 b5db6ee4f1a9ca5ffb476bd3e00e266108c408f6b35732bf7458cd193de9a9ac 97.55452 0 90 PASS
199 197 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;firstValue;crc;inputCursor;state;outputCursor;result 7a07d0a7d60538fb6ee5cb8e91e19dfc510cd38b5f92643f1deeac7cbdf403c1 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
200 198 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;firstValue;inputCursor;state;outputCursor;result 1cc6024dd9aebdbcf33cae274e4be45184c195cb652e67032f492003255fcea0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
201 199 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;firstValue;state;outputCursor;result c50a2fe89038af446b7829b4c5ffaf428a0216123d1b367c92efe632feacf8ab 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
202 200 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;firstValue;outputCursor;result aa466a5b78e61492a24c1b81f7023afe9ffb123a79fe492128dae72a7d4f88db 129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad 97.38318 0 99 PASS
203 201 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;firstValue;result 7eb0f22b9eef6636042e91c1001450154a7d13eccf5a5d873ecb0c0fed0b437f 129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad 97.38318 0 99 PASS
204 202 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result;firstValue 116661d87699d8adaa7475e00c9414f88bd325bc391d6e2caaf815152f2c1ec6 129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad 97.38318 0 99 PASS
205 203 neighbor_evaluation secondValue;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result b0805cd066b3d3f9657a99b13b1987a07f81aa93d91740192bd4fcf04ae20955 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
206 204 neighbor_evaluation decryptedData;secondValue;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result ab77aeb3042713d041dcbd1cea6cfb9ac4aeeab1b9f2aa01273c62b2057d82bf 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
207 205 neighbor_evaluation decryptedData;controlFlags;secondValue;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result 3e7ec46c34a257b42031f82e357ae02e0a63a8e2f7917afe13bebca36c2f0d27 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
208 206 neighbor_evaluation decryptedData;controlFlags;dataLength;secondValue;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result 481e784f7a49915367680ab0e5a1b5fbaa45842d85719249508ffe0d401df1cb 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
209 207 neighbor_evaluation decryptedData;controlFlags;dataLength;i;secondValue;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result a36bba88fbc16e2764a8551f336df9b3ca232b1a964bddad140ae751fd1217e6 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
210 208 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;secondValue;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result d503e9bc002cf0a6767d88809967295ca24cd3ef0ba3fdf24f0858d7d30552f1 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
211 209 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondValue;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result 51641cfa436f62b85bc6b39354f14375094418ba8001ee88ff8a488d059a0821 243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0 97.88162 0 87 PASS
212 210 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;secondValue;inputCursor;state;outputCursor;result a139583cce43fa43dbd21e8806aff3a2a5e4bd7072c5f2908288d1e7d0d0c6ca 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
213 211 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;secondValue;state;outputCursor;result e941f094dcc1139c029e2c311e5cee790269232ed39350791221b113fc0a33d3 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
214 212 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;secondValue;outputCursor;result 671c291f8c35acb5710975f00eba34033794528e06a1fb25a934580f8e16f382 fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510 97.38318 0 99 PASS
215 213 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;secondValue;result c62baff8c404ff81f3ca99fc7d63a689bdd26f61f4ae6df7f289c2419bf7e240 fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510 97.38318 0 99 PASS
216 214 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;stateIndex;crc;inputCursor;state;outputCursor;result;secondValue 3ed15ca2ec62477b4a99d523ea16acd05b49579ce9a50df51237d1e1b1495f65 fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510 97.38318 0 99 PASS
217 215 neighbor_evaluation stateIndex;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result 70faab5f816cf5475b00b75fd7d72d88d91e2d0824e74041f29042cee74e4473 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
218 216 neighbor_evaluation decryptedData;stateIndex;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result a536ca12e2702e9cf624e3be1f6ba0b0dcb4d23eb957f43875fdc857f1bffc17 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
219 217 neighbor_evaluation decryptedData;controlFlags;stateIndex;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result 1fbde72a04e15df7365b5eb36186bdce47850744b20a7601dd58bcf0adbd9392 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
220 218 neighbor_evaluation decryptedData;controlFlags;dataLength;stateIndex;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result 49aa96859167593a24e79655efbc3f6c2433e9526f45b945dd959f17c9a30b49 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
221 219 neighbor_evaluation decryptedData;controlFlags;dataLength;i;stateIndex;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result de8c31842c066e0f6b827f7a458ba8ca0dcaac438da1192b86aa63d344c4d85d 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
222 220 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;stateIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result 9cfaad939dd016a34ea1be663be5658d36290f2a84eb1af3c5a4e20f039f9517 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
223 221 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;stateIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result ac3f3fa218fc2fdb184e78ec2658cde9ed348033a8b4e3abec4dd1dc47911299 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
224 222 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;stateIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result 5a1babb9d0d3b8a2534beb162b5718cc7177bcd8d7825f2d490c19b13591b899 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
225 223 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;stateIndex;state;outputCursor;result 078a8ac0a43de90b7d9cdf4bb610c465697a537b038ded169d08d4a4a7bbb4dd 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
226 224 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;stateIndex;outputCursor;result 974cf1555245234732862f6e97d8b9ce473849af09e30869bf80a37bf558336a 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
227 225 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;stateIndex;result 93b6186c34e60145be619f48aa04eaf944a954d9ab9670d0351dad9a8ee16800 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
228 226 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;crc;inputCursor;state;outputCursor;result;stateIndex 65c34714d51dc1caa1f0cfc91b5f0f30285dadac9e736ff9092a1f35260f6265 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
229 227 neighbor_evaluation crc;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result a31c91cae001c118b3fdd14a1fd7e7280a81d4c087c19bec454812f6ad2f11a1 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
230 228 neighbor_evaluation decryptedData;crc;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result effd94a1446dbc7a397f579227734ee751a173ee44062ea8dc54ae5a2e833a84 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
231 229 neighbor_evaluation decryptedData;controlFlags;crc;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result a5f56993a9f6c92c29dec4429d63e00439acae4c9c802281b8dbd5bac2ecba9f 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
232 230 neighbor_evaluation decryptedData;controlFlags;dataLength;crc;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result 7698fb67c2e3732a86089376224026233f5f00e4da6be63d7bc79c55164d6fcf 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
233 231 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crc;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result d32ac6f4e6f2be79f7ae350f887447ee24c76e03d2e371f6a0b177426c8b6c95 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
234 232 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;crc;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result 7ebeeec5ba4900e41566a2b90b8536f4474838d4dd5fb182748b3a5ece55ca95 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
235 233 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;crc;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result 6906fc7048a479839459d8160ce297e7ede06d09709b860fbeb5321e2cf40316 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
236 234 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;crc;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result bbf49984d8411c0a0815a5ff29a6d4e7fff4d0abda708c609d0887d94fe9e921 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
237 235 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;crc;secondValue;stateIndex;inputCursor;state;outputCursor;result 057757741bbd1ab5551e49d418b14a612900f1222aefb4a1532773689d8eb59d 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
238 236 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;crc;outputCursor;result 1204686761100883579978ddb176c0623b7410243c92bd3037e553f50c867e3d 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
239 237 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;crc;result 42a711b90e5e69c2d06fff1df0b2cb545748e9ba27e89aa5b8b2f8408c65d260 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
240 238 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;inputCursor;state;outputCursor;result;crc bb314af09d84f1c30df11e81fb4a97390e31b8f3be193c3bd4a071c4d53d1241 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
241 239 neighbor_evaluation inputCursor;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result a50a669f1ee1c4ca96fa562060567c19ab19f5c0a6f208c0287f15e8f1cff445 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
242 240 neighbor_evaluation decryptedData;inputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result 4482867226c369780f5cca3a572512d41419e7e8faa76ffb05651e54b21e0d02 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
243 241 neighbor_evaluation decryptedData;controlFlags;inputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result fb4a6c8f824d12bc9c20b7e82d9c8239bff3c9b96160bfc78544f13387153fa4 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
244 242 neighbor_evaluation decryptedData;controlFlags;dataLength;inputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result 1689196b03346ea5c61c26641f95fdc25ceaf93849cc22005dca9d61bc8f7ff9 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
245 243 neighbor_evaluation decryptedData;controlFlags;dataLength;i;inputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result 1459cb5d073ebee1ae9644fe21aab1272ef14de78712a6aa5aa0782785c633e1 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
246 244 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;inputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result 679e50ad2369357419b2d97e7fe82e4a4db56540cab3fd723591333ee8cb9050 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
247 245 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;inputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result f277c4c7bc584f31bb06b1aee7aa02c445ded7fd6cef40a63c14a8834be793fc 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
248 246 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;inputCursor;firstValue;secondValue;stateIndex;crc;state;outputCursor;result bb5ae44aeccf514b66a37ed17298c55c2a275f819069678478da8c15143b9b4b 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
249 247 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;inputCursor;secondValue;stateIndex;crc;state;outputCursor;result 4104131dc0c331ed76dde4d645847c61adc9f949481a4df7c0aad3f9d2af9296 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
250 248 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;inputCursor;stateIndex;crc;state;outputCursor;result 7093b81184b5ec13929dfd47436dba408282621a5ea9153a14944d146cd8cf00 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
251 249 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;inputCursor;result 31c224b690cfdfe7c172034df685173db1da619f0ecfa3afe22303d2c1536cb1 860b0d2fb48899eaef9d4754b3a6c3ffe56ea14ee7e76c1407aec3914556f0b4 97.35203 0 102 PASS
252 250 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;state;outputCursor;result;inputCursor f15195ab0bd353c5f5909019cbc82113be1ba6ae0d1dc0fcd7cb5fd9816f996a 860b0d2fb48899eaef9d4754b3a6c3ffe56ea14ee7e76c1407aec3914556f0b4 97.35203 0 102 PASS
253 251 neighbor_evaluation state;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result 83f75cf4dbe63e6d8bef5f684950fd34c0e98c72ba5e7992b2fbd36abb434eac dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
254 252 neighbor_evaluation decryptedData;state;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result ae21b0c0d38d61276e5154934008b1542100ffe93289c4e25b5734aa67a325f2 dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
255 253 neighbor_evaluation decryptedData;controlFlags;state;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result 1a2a2d24304dff73a925c8570a448eac5341582529b524cc36aa221fa798ed22 dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
256 254 neighbor_evaluation decryptedData;controlFlags;dataLength;state;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result a3fb6f400789dcc5e18a6d4d92b837adb77111e1f9c7d4cde9a8185d9db22ced dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
257 255 neighbor_evaluation decryptedData;controlFlags;dataLength;i;state;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result 0a87c9ce186c1f8d5d9562ee648270f06e2543b6ec75bab1ce09b77f9eab0ad4 dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
258 256 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;state;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result 0ecf95a2414884be17e62d057994f7f54d53878385200266ba8e78cc1f0fd2af dfd1d67850d1a29039c7d60ad6673ff04cbe0d18eb2128f75be6ab5f96255667 97.850464 0 93 PASS
259 257 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;state;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result c133c39f34e792c4ffdccc166c35671aeb2a7ccbb5c9a259b401e4889169b5ed 129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad 97.38318 0 99 PASS
260 258 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;state;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result d6b30ef7f5b599ff66da5bb9c6e97657886254c39eee19037e608622caf10d54 129ab39726f8470900ddad876f0ceb3e0ef26f7a018b728c6a4995198f0b8aad 97.38318 0 99 PASS
261 259 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;state;secondValue;stateIndex;crc;inputCursor;outputCursor;result 2651f320de2975fa099bfcdd6f88eb026c47f91fe8817a6af943c2afbddc901b fcc905302c7248d4657b3d1f11f336bed804f7451cbb410dea9da51459053510 97.38318 0 99 PASS
262 260 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;state;stateIndex;crc;inputCursor;outputCursor;result 23e17f7b930c0819720c76a3f077cdeb85f9cb4a6620012a3e752cab37f3b27c f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30 97.47664 0 96 PASS
263 261 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;state;crc;inputCursor;outputCursor;result 4bcea611ab7043f964611128c38fa68a2fc701f4f13fdbe01806de2c45d3bf2b f12ea45b2cb514f94502d8a9c4230f11882c76dcbb75d90e0ac291e80697ad30 97.47664 0 96 PASS
264 262 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;outputCursor;result;state 18b7157bc1de678f4c4479cf9d9938d467239c49cc26e2a04cbd6f6a460ff6d9 0535a63eb8c8d27a21c5e9629babd82e6b732ddf85fa9eef08f154604468eef5 97.47664 0 99 PASS
265 263 neighbor_evaluation outputCursor;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result 32e29f7f3deeeabcdf0ffb867f752e0c1e1311180c5cf1db9baa06739dd23e3e c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
266 264 neighbor_evaluation decryptedData;outputCursor;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result b04c9d137db3d9edd42ec55d5a333e487f9ab17cd27f6eff9f42b4b89b6cdaf3 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
267 265 neighbor_evaluation decryptedData;controlFlags;outputCursor;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result 1deb0279a3ff6407283a6a9025ba741be9be3b3ca8e05cae5b2bddd2f0f82523 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
268 266 neighbor_evaluation decryptedData;controlFlags;dataLength;outputCursor;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result 3f80665e3e62367a7c346a3bc6ffce01b2f1446824fae4bdc353d08fed5d57c3 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
269 267 neighbor_evaluation decryptedData;controlFlags;dataLength;i;outputCursor;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result 7571e60fed5554a5442bba097c3d719ca13e8e66e7e71f96a13812ca581f72bc c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
270 268 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;outputCursor;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result 69a0e9ab50375736a659e4beaa23c42c51d27a57323f119e90fc1b4446ab84e8 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
271 269 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;outputCursor;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;result 8674ea7f253975e1a371ded2961b48a185efd37f3d422933faf5fcf5dfb453cd c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
272 270 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;outputCursor;firstValue;secondValue;stateIndex;crc;inputCursor;state;result f960040d362b4386d9605b74d25c25c8cf8f3de5da28b0f00cfb0f9182d06b6e c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
273 271 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;outputCursor;secondValue;stateIndex;crc;inputCursor;state;result 1bf8488c8798909fc284b622efadd535a24606e36f90f1f5e164e4a575c990f1 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
274 272 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;outputCursor;stateIndex;crc;inputCursor;state;result 1a140e7a30b25a8a4f43b4008cb15a926fec8632ab7be0bfe555004fb0223a16 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
275 273 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;outputCursor;crc;inputCursor;state;result 310b766e1662b200eb07b442cb926b8ad42950ac4a1bdd8e78bbb69cc0be0628 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
276 274 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;outputCursor;inputCursor;state;result 6d75c3424c42f71d35891b2a8961fa9b1f3ee7b6fdb2049d0348db3bba4ca8e8 c3d0eece71331fb9838998c684bc7963e5b63fb6eb7fbef9ce3c6ca7d5d20644 97.35203 0 102 PASS
277 275 neighbor_evaluation result;decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor b2f72ac7f27349ac0b5dcd5a81fe1f1ac6b1a5067e046069982ebafe9523124f 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
278 276 neighbor_evaluation decryptedData;result;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor 6d868b9600e0611d22178815ac9c8cc3094d2ff0ad91d57fd0bada39285080db 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
279 277 neighbor_evaluation decryptedData;controlFlags;result;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor 906d41ea55243df8467b7b931b1e8149bacf9487e376a41e78d1280e1deb1dad 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
280 278 neighbor_evaluation decryptedData;controlFlags;dataLength;result;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor 24ba1196cf65dbb0c791c48110a1decac7fbc13d844739cb0b1ba47c830a1336 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
281 279 neighbor_evaluation decryptedData;controlFlags;dataLength;i;result;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor 3a60d1e08edd080b5df86e286abbd8ecebac3e756da2cc369162509badee0a11 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
282 280 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;result;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor 8a497e8d985a912db6252f043b7f848f57ef9357b6c32253e63d449c91bf8d94 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
283 281 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;result;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor 57159cd7ef307ab7a3bae9a0577587d7b64d551b095f4a935cdb623f49e170bb 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
284 282 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;result;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor 014b2f02267901989709a194ccbf46a94be71e9b42835be1123cdafd95c2111c 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
285 283 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;result;secondValue;stateIndex;crc;inputCursor;state;outputCursor 47c5577caac682a3e9560ba52ce3edf1e2372f312d1b740cf02719e25447c018 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
286 284 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;result;stateIndex;crc;inputCursor;state;outputCursor a9daf6f6c19cfceebd009dc47630fcb951e893e95157973db6408ec0fc38e0d5 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
287 285 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;result;crc;inputCursor;state;outputCursor 5a1236861f764ae70b73df542b38fe9ca70811d6f7f8f102cc60bfb8c23f0449 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
288 286 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;result;inputCursor;state;outputCursor 7b2c513c64ca4e2da056bc2626a66a119557cb13bf80a8e229e760ddf0b82be0 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
289 287 neighbor_evaluation decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;result;state;outputCursor 8e96ade46bfc83ea6a6d51226e29ecea96e4e66140ab910a408e2904a8512ef9 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS
290 288 restoration decryptedData;controlFlags;dataLength;i;crcIndex;firstIndex;secondIndex;firstValue;secondValue;stateIndex;crc;inputCursor;state;outputCursor;result ac7a459ef23327c3dd415b3146391da10553ce8bddeb82b9a4030c120dbd44b4 8dcc1e9c2c25201b4cc4e70f04951c5526b171da95c30cd462a094136e702e09 97.74143 0 87 PASS

View File

@@ -1,144 +0,0 @@
# AOSS decrypt: one fixed-center declaration neighborhood
Base: `5a2bf89d0c590bbc5996636cb8cfa0c791287caf`.
Leaf: `agent/bittle/aoss-decrypt-fixed-neighbors`.
Only the existing uninitialized `state` and `dataLength` declaration positions
are exchanged in `src/scene/setting/AOSS.c`. All other source bytes, including
initializers, arrays, aggregate storage, expressions, assignments and scopes,
remain unchanged. No types, helpers, configuration or linking changes.
## Scope and coverage
The previous accepted center scores 97.88162%. Its source SHA256 is
`3176094eb46f60ea3fbfad5d70d3d169752650d58fadafa30d17ca7add7567ba`;
its whole-object SHA256 is
`243e1cae7fc57681cee68ea32b602aa57c2c97a5454e8afb517ad11c2885d0d0`.
A fresh baseline build and official full report reproduce verified main's
object and full report byte-for-byte. The baseline pool is identical.
One fixed-center experiment covers the same 15 plain uninitialized declarations
at lines 1858-1872. The unchanged swap/move generation block is extracted
verbatim from the repository's `declsearch.py`, whose SHA256 is
`9642fe689ee3a4d80236b5f790fdda83397214cd209c62ce07088b3f2b3726bb`.
The center never changes. Duplicate generated orders are removed before
evaluation, retaining the official generation order; every resulting order is
actually compiled and officially scored.
There are 105 distinct swaps and 196 distinct moves, with 14 common orders:
287 nonbaseline neighbors, plus one baseline, for **288 evaluations**.
All 288 completed. The stop reason is complete fixed-center coverage, with
no adaptive search, restart, numerical-cap truncation or subsequent trial.
Six orders overlap the preceding recorded 288-order neighborhood; 282 are
beyond that recorded set. Additional older historical coverage is unknown.
This does not claim coverage of all 15! orders or a fixed point around the
newly selected order. The tested center has a strictly better neighbor.
## Real builds and official scoring
Configuration uses the supported cached tool paths to avoid downloads:
```
python3 configure.py --version 43U \
--wrapper ../toolchain/wibo-release64/wibo \
--dtk build/tools/dtk --objdiff build/tools/objdiff-cli \
--sjiswrap build/tools/sjiswrap.exe --bstool build/tools/bstool \
--compilers build/compilers --binutils build/binutils
```
Every evaluation invokes real Ninja with `WIBO_SJIS_MISSING_IMPORTS=1` and
requires successful actual MWCC compilation. A recorder snapshots source and
object only after checking that source stayed stable across compilation. Each
record includes source/object hashes, full configuration hashes and compiler
output. No compilation is skipped or replaced by a cached/surrogate score.
Every immutable snapshot gets a fresh official objdiff report in a private
project retaining the complete 1,027-unit configuration; only the owned object's
base path changes to its snapshot. A private baseline report first reproduced
the full live baseline report byte-for-byte. No live object swapping is used
for scoring, and identical objects still receive separate official reports.
All 288 snapshots pass the declaration-only source constraint, every sibling
report and instruction/relocation comparison, allocated non-code bytes,
extents/alignment/relocations, exact/code/data/link measures and the other
1,026 complete unit reports.
The first official-fuzzy maximum is **snapshot 037**, swapping `state` with
`dataLength`: **97.88162% -> 97.990654%**. Nine orders tie this maximum and
produce one identical whole object. The structural/raw diagnostic changes
from (0,87) to (0,90); it is not used to rank candidates. The companion CSV
records all 288 orders, source/object hashes, official scores and preservation
gates. Snapshot 000 is the baseline; 001-287 are nonbaseline neighbors.
After selection, an ordinary fresh rebuild reproduces snapshot 037's whole
object and full official report byte-for-byte. Selected source SHA256:
`059dfba32d87ac92600fe0352fd2eb282dc2980cd679aa8da9a9e2edbd6e7f4c`.
Selected object SHA256:
`870d93a96190004b296f96bd7f41d05a547d6e69274574123b33f3caf2503509`.
## Current-object semantic verification
The selected and baseline objects contain the same 321 instruction opcodes.
Only 87 register operands differ, within 0x154-0x2E8. Every instruction outside
that region and all 23 call positions/destinations remain unchanged.
A symbolic evaluator checks the actual current object against the fresh
baseline. It proves the initialization, paired-byte loop, parity/count setup,
single-byte tail and exit setup independently. Equal live input roles and
arbitrary common memory give identical ordered memory reads/stores, resulting
memory, CTR/CR values, branch predicates and live output roles. The loop steps
preserve their entry invariant, including input/output advancement. Scratch
registers are excluded only after checking their actual read-before-write
behavior; the proof does not assume that state, stack and payload addresses
are distinct.
The original `AOSSInitCrc32Table` callee is inspected directly: its only live
GPR input is r4. It overwrites r3/r5 and does not observe the changed r6-r10
scratch values. The unchanged caller tail overwrites those values before use,
or reaches a call which does not accept them. Original `AOSSi_Free` forwards
the owned buffer from r3 into the callback's r4 and explicitly sets its other
two arguments; no changed scratch register enters that contract. Key-schedule
arguments and all preceding calls are untouched. Cleanup/error paths and
publication order remain the existing retail behavior.
The actual production decryptor and key-schedule, CRC, address-check and
manufacturer-scrambling functions are extracted without body changes into a
native UBSan harness. Selected and baseline versions each pass **2,120 cases**:
- Every valid payload length 0 through 1472, plus 512 seeded random cases,
checked against independent stream-cipher and zlib CRC expectations
- Checksum mismatch, disabled encryption, missing/mismatched/stored address,
and each of four allocation failures
- Whole-packet bytes, output length, key bytes, address state, error code,
allocation counts, allocation guard bytes and complete cleanup ownership
The allocator and byte-order wrappers are controlled scaffolding. No network
or real-device test is claimed. UBSan runs without recovery.
## Final gates and reproduction
- AOSSDecryptMessage: 97.88162% -> 97.990654%, 321/321 instructions
- Unit fuzzy: 97.72777% -> 97.73641%
- Exact functions 16/21, exact code 6436/16192, data 3928/3928 and linking unchanged
- All 20 siblings and other 1,026 unit reports preserved for all 288 snapshots
- Pool identical 1/1; literal audit 19 functions/12 arguments, no candidates/errors
- Existing unequal-size AOSS_Init_old/AOSSSendHelloRequest literal skips unchanged
- Full 43U build, default progress/report/ok and source diff checks pass
- DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`
Private reproduction evidence is `/tmp/aoss-decrypt-fixed-neighbors/`:
`run_fixed_neighbors.py`, the verbatim official generation fragment,
`orders.json`, all 288 source/object snapshots and compiler outputs,
full-config private projects/reports, `scored-manifest.json`, selection and
full-build logs, symbolic audit and host harness. Original objects and
disassembly remain private. The enumeration has an exclusive started marker
and must not be restarted. From this leaf, the read-only evidence checks and
host validation are:
```
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aoss-decrypt-fixed-neighbors/verify_evidence.py
PYTHONPATH=../local-tools ../.venv/bin/python /tmp/aoss-decrypt-fixed-neighbors/audit_changed_regions.py
python3 /tmp/aoss-decrypt-fixed-neighbors/validate_decrypt.py
```
GATE PASS: strict official-fuzzy partial gain; complete fixed-center coverage;
source semantics and exact/code/data/link preserved; full 43U/default/DOL pass.

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