Compare commits

...

188 Commits

Author SHA1 Message Date
coah
52ff8fb9ca decomp(cdb): recover exact search callback with REA 2026-10-05 01:30:17 +00:00
coah
9d40859ee8 decomp(nup): match __nupGetTitleSize and __nupGetBootVersion with a typed TMD view and literal tag lookups (f14 astra max) (worker b4da4bd9) (#1163) 2026-10-04 20:10:16 -05:00
coah
0292750816 decomp: replace asm bodies of doSave, makeTmpList, pushTitleCache and compressGbaOdh with C++ (da1 astra max) (worker d78193c6) (#1162) 2026-10-04 20:02:52 -05:00
coah
bfe77b7f8e link(iplKeyboard): emit memo::Manager::getSaveData at its original position and mark Matching (lnkkbd astra max) (worker 0c8071ee) (#1161) 2026-10-04 19:24:12 -05:00
coah
a461786f08 decomp(iplKeyboard): match Manager::create (f12 astra max) (worker 7f64b0e8) (#1160) 2026-10-04 19:12:33 -05:00
coah
491bba6ae3 decomp(Address): match start_drag_event through the portrait accessor and root-pane lookup (f5 astra max) (worker 1a15738b) (#1159) 2026-10-04 19:03:19 -05:00
coah
f5874959b2 decomp(MemoryCardManager): match isMoveEnable/isCopyEnable by indexing the card directory directly (orch) (worker 799a643a) (#1158) 2026-10-04 18:16:09 -05:00
coah
4aaede9980 data(zi8cgetc 100%): align zi8InternalGetZH case layout with its four jump tables (sz2b astra max) (worker 66e2b232) (#1155) 2026-10-04 13:48:34 -05:00
coah
d1ad0d8238 data(ATERM 100%): RunConfigProtocol case layout and real protocol buffers (sz3 astra max) (worker bf49a5f7) (#1154) 2026-10-04 13:37:02 -05:00
coah
5acae0d661 data(zkokeyp, zprepare 100%): match function sizes for extab and jump-table layout (sz1 astra max) (worker a377ff13) (#1153) 2026-10-04 13:25:01 -05:00
coah
99ba99ee2f data(zi8alpha 100%): align Zi8AlphaGetCandidates case layout with the jump table (sz2 astra max) (worker 43f654d5) (#1152) 2026-10-04 13:14:24 -05:00
coah
f598e41020 Keep CHANS hexadecimal decoding in one value lifetime (#1151) 2026-10-03 22:08:33 -05:00
coah
631f31b7f8 Isolate the CHANSVm blob copy and padding block (#1150) 2026-10-03 21:39:40 -05:00
coah
4508f455db Align ATERM discovery record induction scheduling (#1149) 2026-10-03 20:42:08 -05:00
coah
f7a1067224 Recover ATERM discovery MAC loop and shared timeout exit (#1148) 2026-10-03 20:22:18 -05:00
coah
c5e1fe9cca Recover counted MAC-format loops in ATERM association request (#1147) 2026-10-03 19:26:15 -05:00
coah
9aa4a0d887 Improve card loader comment bounds with lazy shared rejection (#1146) 2026-10-03 18:27:11 -05:00
coah
db6157b693 decomp(tiZiString): split candidate buffers at original boundaries, match clearCandidates and setElementBuffer (agg astra max) (worker 8cb13c23) (#1145) 2026-10-03 16:58:37 -05:00
coah
6cc5d74418 Improve NWC24InitDlTask through existing writable validation helper (#1144) 2026-10-03 16:33:15 -05:00
coah
38cb84c8ab decomp(ATERM): match StartNetworkStack with real IP/interface config globals (h2b astra max) (worker 7d5610ae) (#1143) 2026-10-03 16:17:12 -05:00
coah
bd5efc9c56 Improve WADBackupEx file-owner initialization order (#1142) 2026-10-03 15:58:18 -05:00
coah
34858f3fe1 decomp(ATERM): match ParseAssociationResponse via hex-encode helper (h2 astra max) (worker e589875a) (#1141) 2026-10-03 15:43:48 -05:00
coah
ae5a5769e1 link(eggAudioExpMgr): restore thunk order with the dead-stripped ExpAudioMgr (orch) (worker 83b6503f) (#1140) 2026-10-03 15:39:05 -05:00
coah
924328eadb Improve WADBackupEx zero-initialization order with exact state proof (#1139) 2026-10-03 15:38:29 -05:00
coah
56f64ea49a decomp(tiCellPhone): match onKey via key lookup helpers (a23m astra max) (worker eaae1b60) (#1138) 2026-10-03 15:17:22 -05:00
coah
49be1c79c5 data(BS2Mach 100%): name boot info and device code (worker 7003f256) (#1137) 2026-10-03 15:00:35 -05:00
coah
5473a84f21 link(pf_cache, zconvert): mark as Matching (worker 01feb2d8) (#1136) 2026-10-03 14:52:27 -05:00
coah
0b671e4883 link(tiPcKeyboard): restore inline-method emission and destructor thunk order (lnkx astra xhigh) (worker 45d2d3ca) (#1135) 2026-10-03 14:50:36 -05:00
coah
5bfe5eaec0 match(zconvert 4/4) (a7m astra max) (worker 2a9742a0) (#1134) 2026-10-03 14:49:09 -05:00
coah
8621ed6c36 match(pf_cache 36/36): inline end-overlap expression (worker 554a8a8a) (#1133) 2026-10-03 14:47:32 -05:00
coah
4de92186c8 Improve CandidateBox create with right-scroll address captures (#1132) 2026-10-03 13:37:34 -05:00
coah
5af01fa8b9 match(tiCandidateBox 109/112) (a23h astra high) (worker 5e20580b) (#1131) 2026-10-03 13:11:40 -05:00
coah
d0c82cfe83 Improve CandidateBox create with explicit left-scroll name captures (#1130) 2026-10-03 13:08:21 -05:00
coah
b0abd1851f match(CHANSVm 224/233) (a5h2 astra high) (worker 1c37888a) (#1129) 2026-10-03 13:00:20 -05:00
coah
a120e4780c match(CHANSVm 223/233) (a5h astra high) (worker 89583696) (#1128) 2026-10-03 12:45:17 -05:00
coah
934587c4a9 Refine RGBA411 edge chroma-skip declaration allocation (#1127) 2026-10-03 12:34:37 -05:00
coah
f170531aa3 match(AOSS 17/21) (a4 astra) (worker 6f8307e2) (#1126) 2026-10-03 12:21:28 -05:00
coah
8479c50afd match(tiPcKeyboard 141/141): uninitialized key mode on invalid input (worker 3b354cf1) (#1125) 2026-10-03 12:17:43 -05:00
coah
30d968099a Retain candidate-window name address across pane lookups (#1124) 2026-10-03 12:11:46 -05:00
coah
1701b591a6 Improve RGBA411 edge declaration order using official fuzzy scores (#1123) 2026-10-03 12:06:41 -05:00
coah
b6fce1251c Improve AOSS hello RC4 scalar allocation with lifetime proof (#1122) 2026-10-03 12:00:27 -05:00
coah
201de1982d Align tiZiString case-loop increment order with original (#1121) 2026-10-03 11:48:11 -05:00
coah
57c17ebe2a Improve RGB565422 tile-width declaration allocation (#1120) 2026-10-03 11:29:52 -05:00
coah
da41bad952 Improve tiZiString case-conversion scalar allocation with restoration proof (#1119) 2026-10-03 11:24:46 -05:00
coah
b6786bb798 Improve RGBA422 edge declaration order using official fuzzy scores (#1118) 2026-10-03 11:20:03 -05:00
coah
bb662f37e6 Improve card icon-loader scalar declaration allocation (#1117) 2026-10-03 11:13:26 -05:00
coah
246c3f8056 Improve RGB565422 declaration allocation using official fuzzy scores (#1116) 2026-10-03 11:08:42 -05:00
coah
0fa58cf361 match(kbd_lib 17/21) (perm6b) (worker 2b9c7ebd) (#1115) 2026-10-03 11:01:05 -05:00
coah
86e5694193 Improve tiZiString candidate-copy scalar allocation with continuation evidence (#1114) 2026-10-03 10:53:26 -05:00
coah
a4a4374cd2 Improve RGB565420 row endpoint declaration allocation (#1113) 2026-10-03 10:33:37 -05:00
coah
1f260c24e5 Improve RGBA420 texture and tile-row declaration allocation (#1112) 2026-10-03 10:22:28 -05:00
coah
d4b9850a45 Improve RGB565420 declaration allocation with verified texture/yEnd order (#1111) 2026-10-03 10:13:13 -05:00
coah
636f8eb03a decomp(jpeg): refine RGBA420 tile row declaration order (#1110) 2026-10-03 09:57:55 -05:00
coah
1e0643fee3 decomp(jpeg): improve normal RGB565420 official-fuzzy declaration order (#1109) 2026-10-03 09:47:09 -05:00
coah
d124cf0530 decomp(jpeg): refine RGBA420 output declaration order (#1108) 2026-10-03 09:34:52 -05:00
coah
ccffee8af5 decomp(jpeg): improve RGBA420 order using official snapshot scores (#1107) 2026-10-03 09:15:01 -05:00
coah
36f0d43f2d decomp(jpeg): improve RGB565411 tile width declaration order (#1106) 2026-10-03 08:55:12 -05:00
coah
c1b8318a1d decomp(jpeg): improve RGBA422 order using official snapshot scores (#1105) 2026-10-03 08:45:56 -05:00
coah
07a021918e decomp(jpeg): improve RGB565411 red offset declaration order (#1104) 2026-10-03 08:38:09 -05:00
coah
e8c465a082 decomp(jpeg): improve RGB565411 allocation with fixed-neighbor audit (#1103) 2026-10-03 08:21:21 -05:00
coah
e7ade28ae7 decomp(jpeg): improve RGBA411 allocation with output declaration order (#1102) 2026-10-03 08:04:33 -05:00
coah
17e497e06d decomp(ATERM): initialize case-eight checksum before conversions (#1101) 2026-10-03 07:38:41 -05:00
coah
343d53bbb5 decomp(jpeg): improve Col allocation with done and a declarations (#1100) 2026-10-03 07:32:27 -05:00
coah
d901e5cf88 decomp(ATERM): initialize case-six checksum before conversions (#1099) 2026-10-03 07:23:12 -05:00
coah
405fc376c5 decomp(jpeg): retain best observed Col declaration swap (#1098) 2026-10-03 07:15:28 -05:00
coah
50d1494474 decomp(ATERM): align case-five option initialization order (#1097) 2026-10-03 07:04:41 -05:00
coah
02d634d30b decomp(aoss): improve decrypt allocation with fixed-neighbor audit (#1096) 2026-10-03 06:55:25 -05:00
coah
059ed52b0b decomp(jpeg): retain best fixed-neighborhood Lumi order (#1095) 2026-10-03 06:38:36 -05:00
coah
5a2bf89d0c decomp(aoss): retain fuzzy-best decrypt declaration order (#1094) 2026-10-03 06:33:52 -05:00
coah
b41f95f9fe decomp(jpeg): retain observed Lumi outer declaration order (#1093) 2026-10-03 06:20:06 -05:00
coah
ca5ac04a65 fix(ezitext): align Chinese table-address return contract (#1092) 2026-10-03 06:18:23 -05:00
coah
3dd12f63de decomp(jpeg): refine Lumi butterfly declaration order (#1091) 2026-10-03 06:00:04 -05:00
coah
f46483afaf decomp(jpeg): refine grouped edge chroma declarations (#1090) 2026-10-03 05:08:34 -05:00
coah
17130b4b26 decomp(jpeg): retain observed RGB565411 fuzzy-best order (#1089) 2026-10-03 04:50:15 -05:00
coah
180e620c37 decomp(aes): select best exhaustive state declaration order (#1088) 2026-10-03 04:22:54 -05:00
coah
9f39cd84ca decomp(jpeg): refine RGBA422 edge declaration order (#1087) 2026-10-03 04:21:12 -05:00
coah
b25e03773c fix(aoss): align status definition with caller contract (#1086) 2026-10-03 04:14:58 -05:00
coah
a2c008c486 fix(aoss): align sleep declaration with void definition (#1085) 2026-10-03 04:04:12 -05:00
coah
ce3cbf5f91 decomp(aes): refine decrypt state declaration order (#1084) 2026-10-03 04:02:29 -05:00
coah
9e8ca608aa decomp(jpeg): refine RGBA211 edge declaration order (#1083) 2026-10-03 03:59:15 -05:00
coah
7b32451989 decomp(jpeg): refine RGBA411 edge declaration order (#1082) 2026-10-03 03:42:26 -05:00
coah
2c7fa34189 decomp(jpeg): refine RGB565420 normal declaration order (#1081) 2026-10-03 03:40:44 -05:00
coah
dc3eede8d3 decomp(jpeg): refine RGBA422 declaration order (#1080) 2026-10-03 03:22:25 -05:00
coah
f3f295c628 decomp(bs2): capture loader address before publication (#1079) 2026-10-03 02:50:31 -05:00
coah
cd0db8fde0 decomp(fat): separate existing and new SD initialization (#1078) 2026-10-03 02:40:52 -05:00
coah
93e97b7ff1 decomp(bs2): restore disk-presence read before cover reset (#1077) 2026-10-03 02:37:39 -05:00
coah
d170fbb804 decomp(jpeg): refine RGBA420 local declaration order (#1076) 2026-10-03 02:25:22 -05:00
coah
f710d11ff5 decomp(jpeg): refine RGB565420 edge declaration order (#1075) 2026-10-03 02:22:07 -05:00
coah
84d0c74f0a decomp(keyboard): refine existing animation local order (#1074) 2026-10-03 02:06:49 -05:00
coah
bdac66bb07 match(tiCellPhone 84/86) (ult22b) (worker 96a80226) (#1073) 2026-10-03 02:01:40 -05:00
coah
6f96cb5274 decomp(md5): refine verified local declaration order (#1072) 2026-10-03 01:57:35 -05:00
coah
4aafd41e10 link(zi8pud2): mark as Matching (worker 2d8a2a2f) (#1071) 2026-10-03 01:48:17 -05:00
coah
83efd95924 match(zi8pud2 7/7) (ult25) (worker c7cdef3d) (#1070) 2026-10-03 01:46:52 -05:00
coah
43375de179 match(NWC24Download 29/30) (ult20b) (worker 8e26eab8) (#1069) 2026-10-03 01:41:07 -05:00
coah
a4d145c010 match(MemoryCardManager 19/26, tiInputForm 217/221) (ult22) (worker 3363cfb8) (#1068) 2026-10-03 01:30:03 -05:00
coah
e0d3ef0345 match(NWC24Download 28/30) (ult20) (worker 2146dd8f) (#1067) 2026-10-03 01:22:23 -05:00
coah
32be36cb4e decomp(sd-select): align the traversal title declaration lifetime (#1066) 2026-10-03 01:16:20 -05:00
coah
1b5b2da635 decomp(keyboard): group the animation traversal declarations (#1065) 2026-10-03 01:16:15 -05:00
coah
36cbab079f decomp(fat): align MBR traversal declarations (#1064) 2026-10-03 01:15:49 -05:00
coah
b7a06e9d82 decomp(nhttp): distinguish raw token bytes from signed folds (#1063) 2026-10-03 01:03:31 -05:00
coah
b7d9c4fb65 match(ATERM 17/26) (ult15) (worker c46e48b5) (#1062) 2026-10-03 01:01:35 -05:00
coah
e3095dfb97 decomp(jpeg): scope RGB565420 edge pixel values (#1061) 2026-10-03 00:54:15 -05:00
coah
f5a929c9d7 decomp(keyboard): express literal input through an output builder (#1060) 2026-10-03 00:54:10 -05:00
coah
a41f565889 decomp(card): scope the permission-check result (#1059) 2026-10-03 00:52:05 -05:00
coah
d54f8be29a decomp(nwc24): scope writable task validation (#1058) 2026-10-03 00:51:39 -05:00
coah
81ba279958 decomp(fat): clarify reserved-sector initialization success path (#1057) 2026-10-03 00:43:53 -05:00
coah
57ccda3883 fix(chans): assemble integer immediates without signed-shift overflow (#1056) 2026-10-03 00:27:04 -05:00
coah
fd49a94c00 decomp(sd-memory): reconstruct transfer-title scalar lifetimes (#1055) 2026-10-03 00:26:58 -05:00
coah
55ff13a222 decomp(md5): express sequential word consumption (#1054) 2026-10-03 00:26:52 -05:00
coah
d3f5682bc0 link(NWC24DateParser): mark as Matching (worker 566803d4) (#1053) 2026-10-03 00:21:36 -05:00
coah
404a8675f1 refactor(kpad): initialize rotation matrix through its global array (#1051) 2026-10-03 00:20:18 -05:00
coah
878fda2a94 match(NWC24DateParser 8/8) (perm8d) (worker 42a119d6) (#1052) 2026-10-03 00:19:25 -05:00
coah
9131f07806 fix(chans): use the boolean helper's scalar output contract (#1050) 2026-10-03 00:15:35 -05:00
coah
a3e3725c1f match(zi8match 9/10) (ult8) (worker 3f8379ba) (#1049) 2026-10-03 00:08:56 -05:00
coah
fc114afd44 fix(chans): preserve wrapped hex-count rounding without signed overflow (#1048) 2026-10-03 00:01:49 -05:00
coah
409ef82dd8 fix(ezitext): restore Chinese user-dictionary address contract (#1046) 2026-10-02 23:55:35 -05:00
coah
98d8a5220f match(pdm_partition 19/20) (perm8c) (worker 1bb708e7) (#1047) 2026-10-02 23:54:05 -05:00
coah
bb93f1dd8e match(KPAD 28/29) (perm7c) (worker d199502a) (#1045) 2026-10-02 23:52:36 -05:00
coah
140117ea91 fix(keyboard): declare KPRPutChar byte return (#1044) 2026-10-02 23:49:22 -05:00
coah
e58cd9e734 fix(card): match the OS thread entry parameter contract (#1043) 2026-10-02 23:46:07 -05:00
coah
a30b5cecb6 match(NHTTP_stdlib 12/14, NWC24Download 27/30) (perm2b) (worker 26173bfd) (#1042) 2026-10-02 23:44:03 -05:00
coah
5dcbc4372f fix(ezitext): restore version query workspace formals (#1040) 2026-10-02 23:38:24 -05:00
coah
98239e660a match(iplSDChannelSelect 123/129) (ult3) (worker 938cccae) (#1041) 2026-10-02 23:36:12 -05:00
coah
be7ded2fdc match(Texture_MCUtoRGB565 7/13) (tex1) (worker 1a706bf6) (#1039) 2026-10-02 23:26:08 -05:00
coah
fdd68ddd30 fix(aoss): restore WLAN arguments and complete key bounds (#1038) 2026-10-02 23:18:15 -05:00
coah
74dcb16a50 fix(bs2): preserve unsigned local DVD callback contract (#1037) 2026-10-02 23:05:56 -05:00
coah
7c582f0e41 link(FAAttach): mark as Matching (worker 23024341) (#1036) 2026-10-02 23:03:05 -05:00
coah
333eea81e9 match(iplSetting 111/112) (gk1) (worker 9f73134e) (#1035) 2026-10-02 22:57:26 -05:00
coah
a791e598a1 match(iplAddress 98/101) (gk3) (worker 34504409) (#1034) 2026-10-02 22:47:46 -05:00
coah
7654dc33e1 match(NWC24DateParser 7/8) (perm8b) (worker 48b04748) (#1033) 2026-10-02 22:39:49 -05:00
coah
9c7d87ab00 fix(ezitext): recover options receiver and workspace contracts (#1032) 2026-10-02 22:29:31 -05:00
coah
885cdfeee6 fix(fa): align attach adapter pointer contracts (#1031) 2026-10-02 22:22:46 -05:00
coah
cc94a7530c fix(aoss): match scan result output slot contract (#1030) 2026-10-02 22:16:11 -05:00
coah
82da7899a1 fix(fa): preserve the USB disk receiver and match FAAttach (#1029) 2026-10-02 22:14:03 -05:00
coah
bf8ebfa353 fix(chans): declare HMAC helpers with external linkage (#1028) 2026-10-02 21:55:22 -05:00
coah
7649d9b1ec fix(cdb): correct crypt-buffer ownership slot types (#1027) 2026-10-02 21:51:37 -05:00
coah
ce2130f867 fix(ezitext): correct conversion table address return contract (#1026) 2026-10-02 21:49:30 -05:00
coah
20ba34a80f fix(odh): represent Huffman trees as halfword nodes (#1025) 2026-10-02 21:32:37 -05:00
coah
634d8ab6a1 decomp(ezitext): pair current and best phonetic restoration (#1024) 2026-10-02 21:29:22 -05:00
coah
a5e49ea578 decomp(ezitext): recover PUD byte contracts and packed header decoding (#1023) 2026-10-02 21:26:06 -05:00
coah
5e0816c3f1 fix(chansvm): compare parsed indices without signed shift overflow (#1022) 2026-10-02 21:16:47 -05:00
coah
5d7760d341 fix(ezitext): reconcile one-key caller and parameter contracts (#1021) 2026-10-02 21:13:10 -05:00
coah
a894ff5cb7 decomp(aes): recover decrypt final-round dependency tree (#1020) 2026-10-02 21:08:24 -05:00
coah
adea4fb5d1 tools: audit direct call destinations against original DOL (#1019) 2026-10-02 21:05:09 -05:00
coah
e221614209 fix(keyboard): recover original cursor query evaluation order (#1018) 2026-10-02 21:01:53 -05:00
coah
6619098ea7 decomp(kpad): preserve read refinements alongside exact DPD math (#1014) 2026-10-02 20:58:37 -05:00
coah
e9c8986139 link(NWC24MsgSubject) (worker 4edf8de1) (#1017) 2026-10-02 20:42:12 -05:00
coah
b9bda11dea match(NWC24MsgSubject 12/12) (perm8) (worker af25492d) (#1016) 2026-10-02 20:39:46 -05:00
coah
7b8dbf2c96 fix(keyboard): declare cellphone reset on its owning class (#1015) 2026-10-02 20:32:23 -05:00
coah
b7a4105bd6 match(address): reconstruct nullable drag text measurement (#1013) 2026-10-02 20:31:57 -05:00
coah
bc2b18090b match(KPAD 26/29) (perm7, permuter) (worker 7dd8a460) (#1012) 2026-10-02 20:15:24 -05:00
coah
674722c158 decomp(sd): recover scissor projection expressions (#1011) 2026-10-02 20:08:42 -05:00
coah
e81aed2882 fix(sd): restore event metadata predicates (#1010) 2026-10-02 20:08:15 -05:00
coah
7d6057adf6 decomp: reconstruct AddressEdit balloon construction (#1009) 2026-10-02 19:54:25 -05:00
coah
16a170f944 decomp: restore Korean scan entry and lookup widths (#1008) 2026-10-02 19:53:58 -05:00
coah
0904bf9161 match(CHANSVm 222/233) (big1c) (worker bb2bb6af) (#1007) 2026-10-02 19:47:59 -05:00
coah
e5987de5ad fix(nwc24): use a defined unsigned retry mask (#1006) 2026-10-02 19:43:11 -05:00
coah
11bd51b3a9 fix(keyboard): use bounded OEM dictionary accessor (#1005) 2026-10-02 19:42:46 -05:00
coah
e4a9449256 decomp(keyboard): reconstruct candidate animation descriptor lifetimes (#1004) 2026-10-02 19:33:27 -05:00
coah
b940710632 decomp: align Bopomofo consumed-count return contract (#1003) 2026-10-02 19:25:17 -05:00
coah
1fa33882ae decomp(inputform): recover pane lookup and animation slot flow (#1002) 2026-10-02 19:15:58 -05:00
coah
aba50ea278 decomp: recover AOSS initialization guards and request lifetimes (#1001) 2026-10-02 19:15:32 -05:00
coah
14a8b23adb decomp: correct Chinese phonetic contracts and Zhuyin dispatch (#1000) 2026-10-02 19:07:43 -05:00
coah
b8931fae6f decomp: recover card rename retry reset boundary (#999) 2026-10-02 19:07:35 -05:00
coah
bcac23375a decomp(keyboard): correct prediction refresh and character flow (#998) 2026-10-02 19:07:28 -05:00
coah
ed49ada973 decomp: recover ATERM digest and payload lifetimes (#997) 2026-10-02 19:07:02 -05:00
coah
fa0cb9b7b4 decomp(nhttp): recover token loop and Base64 byte flow (#996) 2026-10-02 18:51:40 -05:00
coah
8ffaa9d25a decomp(bs2): preserve update publications and repeated entry reads (#995) 2026-10-02 18:49:17 -05:00
coah
cc812ad30e ci: live README progress badges from a progress-data branch (#994)
The README progress table only changed when a landing commit rewrote it, so
merges outside land.sh left it stale, and the decomp.dev badges showed
upstream's numbers. The progress workflow now publishes shields.io endpoint
JSON to an orphan progress-data branch (one force-pushed commit), so the
badges refresh on every push to main without extra commits on main.
The build badge now points at the workflow that actually builds (Build is
disabled: it needs upstream's private container).
2026-10-02 18:47:05 -05:00
coah
3d3448e3a8 decomp(kbd): reconstruct asynchronous LED dispatch and completion (#993) 2026-10-02 18:42:29 -05:00
coah
654c65dd27 decomp: align EXIF rational denominator address structure (#992) 2026-10-02 18:37:40 -05:00
coah
bb93684b95 decomp: reconstruct alpha boundary and output expressions (#991) 2026-10-02 18:37:35 -05:00
coah
39648c8aa6 decomp(aes): reconstruct final-round word dependencies (#990) 2026-10-02 18:37:29 -05:00
coah
230c3af28f decomp: recover typed partition word decoding (#989) 2026-10-02 18:37:04 -05:00
coah
13881c99fb match(kbd): reconstruct synchronous LED command reservation (#988) 2026-10-02 18:29:15 -05:00
coah
b26e248bb0 decomp: reconstruct BS2 partition and banner paths (#987) 2026-10-02 18:12:23 -05:00
coah
8350f2b4df decomp: recover EXIF entry aliasing and tag semantics (#986) 2026-10-02 18:11:57 -05:00
coah
3851d2cc74 decomp: reconstruct one-key phonetic and result widths (#985) 2026-10-02 18:10:11 -05:00
coah
7bdf4629fd decomp: refine AES table and inverse-key XOR dependencies (#984) 2026-10-02 18:09:45 -05:00
coah
5a222cdec4 match(fa): pfd_sddrv_get_total_sectors byte-identical (#983)
Fold the (max_multiplier - 9) shift count back into max_multiplier so the literal 1 stays in r0 and the count is an in-place clrlwi on r3.
2026-10-02 17:55:54 -05:00
coah
ac8d46d231 fix: model Run stack address independently of printf (#982) 2026-10-02 17:49:33 -05:00
coah
813660b96e match(iplSetting): Setting::draw byte-identical (#980)
draw is 632/632 against retail. The TU stays NonMatching, so the DOL is unchanged.
2026-10-02 17:36:11 -05:00
coah
e82417345a decomp: refine JPEG butterfly and color source structure (#978) 2026-10-02 17:32:07 -05:00
coah
230c2f8d34 decomp: reconstruct typed CHANSVm operands (#977) 2026-10-02 17:31:41 -05:00
coah
524350ed8f decomp: reconstruct alpha output and dictionary scan (#976) 2026-10-02 17:31:14 -05:00
coah
c62453dac9 decomp: recover ESMisc ticket scratch lifetime and cleanup flow (#975) 2026-10-02 17:30:27 -05:00
coah
6b17698b84 match(odh): cdj_c_colorConv byte-identical (#974)
Pad with a named remainder and declare sourceStride after rowIndex so cbPlane stays r22 and the stride stays r29. decompressLoop is unchanged.
2026-10-02 17:28:16 -05:00
devin-ai-integration[bot]
f9358f6e46 Decode BS2Mach Run asm + nup dead-static fossil (stays NonMatching) (#973)
* decomp: BS2Mach Run asm + CoverBlock/state decodes; nup dead-static fossil

- BS2Mach::Run: retail zeroes r0-r31 and installs a custom stack
  (__pformatter+640) before the dcbz/dcbf flush loop and tail jump —
  inexpressible in C, so asm with the exact retail sequence.
- BS2StartGCGame: CoverBlock.state direct member read (orig inlined
  DVDGetCommandBlockStatus accessor).
- BS2StateMachine: GamePartition!=0 polarity fold.
- nup.cpp __nupOp: 'static u32 lo' dead static reproduces orig's second
  .sbss word (orig .sbss=8: rvThread$2389 + 4B dead static).

Verified vs main: BS2Mach 25/29 fns byte-exact, nup 20/23 + .sbss 8=8.
Units stay NonMatching. Full build + DOL sha1 verified.

Co-authored-by: coah80 <usernamecole7@gmail.com>
Co-Authored-By: wch <usernamecole7@gmail.com>

* decomp: drop dead 'static u32 lo' padding from __nupOp

Per review: the extra .sbss word is a padding object — no relocation
references it, and nup data is already exact without it. Left unowned
for the linking pass.

Co-Authored-By: wch <usernamecole7@gmail.com>

---------

Co-authored-by: devin <devin@cognition.ai>
Co-authored-by: coah80 <usernamecole7@gmail.com>
2026-10-02 17:26:43 -05:00
264 changed files with 47758 additions and 2262 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.
# 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.
# 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.
on:
push:
branches: [main]
@@ -17,7 +17,7 @@ concurrency:
cancel-in-progress: true
permissions:
contents: read
contents: write
jobs:
progress:
@@ -55,3 +55,17 @@ 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/build.yml/badge.svg
[actions]: https://github.com/coah80/wii-ipl/actions/workflows/build.yml
[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
<!--- Discord Badge -->
[Discord Badge]: https://img.shields.io/discord/727908905392275526?color=%237289DA&logo=discord&logoColor=%23FFFFFF
[discord]: https://discord.gg/hKx3FJJgrV
<!-- Progress links -->
<!-- Progress badges: JSON on the progress-data branch, refreshed by the README progress workflow on every push to main -->
[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
[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
<!--- Header -->
@@ -43,28 +43,17 @@ Live decomp status
[![Build status]][actions]
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.
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.
Supported versions:
- `43U` - Version **4.3U** (USA)
Progress
========
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 99.59% | 91.16% | 74.57% | 99.56% |
units 964/1027 complete, functions 12378/12563 matched.
[![DecompiledBadge]][progress] [![MatchedBadge]][progress] [![LinkedBadge]][progress] [![DataBadge]][progress]
[![FunctionsBadge]][progress] [![UnitsBadge]][progress]
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,6 +37,9 @@ 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

@@ -95,11 +95,15 @@ AOSS_810BDF18 = .bss:0x810BDF18; // type:object size:0x6A0
AOSS_810BE5B8 = .bss:0x810BE5B8; // type:object size:0x280
AOSS_810BE838 = .bss:0x810BE838; // type:object size:0x68
AOSS_810BE8A0 = .bss:0x810BE8A0; // type:object size:0x400
ATERM_810BECA0 = .bss:0x810BECA0; // type:object size:0x924 data:4byte
gAtermIpConfig = .bss:0x810BECA0; // type:object size:0x7C4 data:4byte
gAtermIfConfig = .bss:0x810BF464; // type:object size:0x15E
ATERM_810BF5C4 = .bss:0x810BF5C4; // type:object size:0x24
ATERM_810BF5E8 = .bss:0x810BF5E8; // type:object size:0x258
ATERM_810BF840 = .bss:0x810BF840; // type:object size:0x900
ATERM_810C0140 = .bss:0x810C0140; // type:object size:0x818 data:2byte
gAtermConfigurationResult = .bss:0x810BF840; // type:object size:0xE8
gAtermAssociationRequest = .bss:0x810BF928; // type:object size:0x10
gAtermPacketBuffer = .bss:0x810BF938; // type:object size:0x800
gAtermDecodedResponse = .bss:0x810C0138; // type:object size:0x800 data:2byte
gAtermSession = .bss:0x810C0938; // type:object size:0x20
AtermThread = .bss:0x810C0958; // type:object size:0x318 scope:local align:32
Voices = .bss:0x810C0C80; // type:object size:0x1800 data:4byte
sZeroMem = .bss:0x810C2480; // type:object size:0x100 data:byte
@@ -114,7 +118,9 @@ ziStringColorRightDestructorRecord = .bss:0x810C65CC; // type:object size:0xC da
underlateColorDestructorRecord = .bss:0x810C65D8; // type:object size:0xC data:4byte
unInputedWCharColorSpaceDestructorRecord = .bss:0x810C65E4; // type:object size:0xC data:4byte
ElementBuffer__Q39textinput8tistring6WithZi = .bss:0x810C65F0; // type:object size:0x200 data:2byte
CandidatesBuffer__Q39textinput8tistring6WithZi = .bss:0x810C67F0; // type:object size:0x600 data:2byte
CandidatesBuffer__Q39textinput8tistring6WithZi = .bss:0x810C67F0; // type:object size:0x200 data:2byte
ElementWorkBuffer__Q39textinput8tistring6WithZi = .bss:0x810C69F0; // type:object size:0x200 data:2byte
PredictionBuffer__Q39textinput8tistring6WithZi = .bss:0x810C6BF0; // type:object size:0x200 data:2byte
CandidatedWord__Q39textinput8tistring6WithZi = .bss:0x810C6DF0; // type:object size:0x1400 data:2byte
LatestWord__Q39textinput8tistring6WithZi = .bss:0x810C81F0; // type:object size:0x80 data:2byte
snWidthTable__Q29textinput10textdrawer = .bss:0x810C8270; // type:object size:0x580 data:4byte

View File

@@ -648,7 +648,7 @@ config.libs = [
Object(Matching, "system/iplDialogWindow.cpp"),
Object(Matching, "system/iplHomeButtonMenu.cpp"),
Object(Matching, "system/iplNandSDWorker.cpp"),
Object(Equivalent, "system/iplKeyboard.cpp"),
Object(Matching, "system/iplKeyboard.cpp"),
Object(Matching, "system/iplErrorHandler.cpp"),
Object(Matching, "system/iplResetHandler.cpp"),
Object(Matching, "system/iplWarningHandler.cpp"),
@@ -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 off"]),
Object(NonMatching, "scene/setting/ATERM.c", extra_cflags=["-O4,p", "-inline on"]),
]
),
IPLSection("settingSelect", [
@@ -908,7 +908,7 @@ config.libs = [
),
# it decides to do fast optimization for this one
IPLSection("keyboard", [
Object(NonMatching, "keyboard/tiPcKeyboard.cpp", extra_cflags=["-O4,p"]),
Object(Matching, "keyboard/tiPcKeyboard.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiCellPhone.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiInputForm.cpp", extra_cflags=["-O4,p"]),
Object(NonMatching, "keyboard/tiCandidateBox.cpp", extra_cflags=["-O4,p"]),
@@ -982,7 +982,7 @@ config.libs = [
),
ZI8Lib("zi8clib", [
Object(Matching, "clib/zaddress.c"),
Object(NonMatching, "clib/zconvert.c"),
Object(Matching, "clib/zconvert.c"),
Object(NonMatching, "clib/zi81key.c"),
Object(NonMatching, "clib/zi8alpha.c"),
Object(Matching, "clib/zi8alts.c"),
@@ -997,7 +997,7 @@ config.libs = [
Object(Matching, "clib/zi8is.c"),
Object(NonMatching, "clib/zi8match.c"),
Object(Matching, "clib/zi8misc.c"),
Object(NonMatching, "clib/zi8pud2.c"),
Object(Matching, "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(NonMatching, "nwc24/NWC24MsgSubject.c"),
Object(Matching, "nwc24/NWC24MsgSubject.c"),
Object(Matching, "nwc24/NWC24Schedule.c"),
Object(NonMatching, "nwc24/NWC24DateParser.c"),
Object(Matching, "nwc24/NWC24DateParser.c"),
Object(Matching, "nwc24/NWC24FriendList.c"),
Object(Matching, "nwc24/NWC24SecretFList.c"),
Object(Matching, "nwc24/NWC24UserId.c"),
@@ -1691,7 +1691,7 @@ config.libs = [
Object(Matching, "fa/pdm_bpb.c"),
Object(Matching, "fa/pdm_disk.c"),
Object(NonMatching, "fa/pdm_partition.c"),
Object(NonMatching, "fa/pf_cache.c"),
Object(Matching, "fa/pf_cache.c"),
Object(Matching, "fa/pf_cluster.c"),
Object(Matching, "fa/pf_dir.c"),
Object(Matching, "fa/pf_entry.c"),
@@ -1826,7 +1826,7 @@ config.libs = [
Object(Matching, "fa/pfs_unmount.c"),
Object(Matching, "fa/pf_stub_unicode.c"),
Object(NonMatching, "fa/api/FAAttach.c"),
Object(Matching, "fa/api/FAAttach.c"),
Object(Matching, "fa/api/FABuffering.c"),
Object(Matching, "fa/api/FACreate.c"),
Object(Matching, "fa/api/FACreatedir.c"),
@@ -1908,7 +1908,7 @@ config.libs = [
[
Object(Matching, "core/eggAllocator.cpp"),
Object(Matching, "core/eggAudioArcPlayerMgr.cpp"),
Object(Equivalent, "core/eggAudioExpMgr.cpp"),
Object(Matching, "core/eggAudioExpMgr.cpp"),
Object(Matching, "core/eggAudioFxMgr.cpp"),
Object(Matching, "core/eggAudioMgr.cpp"),
Object(Matching, "core/eggAudioHeapMgr.cpp"),

View File

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

View File

@@ -142,9 +142,6 @@ 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,6 +69,9 @@
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;
@@ -95,7 +98,6 @@
virtual void changeSpaceKeyTop(const PaneNameToCharCode* keys);
void setUpperCaseJP(bool enabled);
void setLangKeyActive(bool enabled);
void resetHoldingButton();
private:
bool mbLineFeedButton;

View File

@@ -74,8 +74,16 @@ namespace textinput {
virtual void onEvent(GUIComponent& comp, u32 event, void* data) {} // 0x0C
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void setLatestEventCtrlNo(int ctrlNo);
#else
virtual void setLatestEventCtrlNo(int ctrlNo) { muLatestEventCtrlNo = ctrlNo; } // 0x10
#endif
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual int getLatestEventCtrlNo();
#else
virtual int getLatestEventCtrlNo() { return muLatestEventCtrlNo; } // 0x14
#endif
protected:
int muLatestEventCtrlNo; // 0x04
@@ -109,7 +117,11 @@ namespace textinput {
: GUIInterface(), mbInitialize(false), mDraggingButton(0xFFFF), mID(id), mbTriggerTarget(false), mpManager(NULL), mpListener(NULL) {
init();
}
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual ~GUIComponent();
#else
virtual ~GUIComponent() {} // 0x08
#endif
virtual u32 getID() { return mID; } // 0x20
@@ -146,7 +158,11 @@ namespace textinput {
}
virtual bool isTriggerTarget() { return mbTriggerTarget; } // 0x48
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void setTriggerTarget(bool bEnable);
#else
virtual void setTriggerTarget(bool bEnable) { mbTriggerTarget = bEnable; } // 0x4C
#endif
void setParentManager(GUIManager* manager) { mpManager = manager; }
GUIManager* getParentManager() { return mpManager; }

View File

@@ -47,7 +47,11 @@ namespace textinput {
#else
virtual Language getLanguage() const { return meLanguage; }
#endif
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void update();
#else
virtual void update() {}
#endif
#else
virtual Language getLanguage() const;
virtual void update();

View File

@@ -64,7 +64,11 @@ namespace textinput {
virtual void setWCString(const wchar_t* string);
virtual void setLanguage(Language language);
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual Language getLanguage() const;
#else
virtual Language getLanguage() const { return meLanguage; }
#endif
#ifdef MYTIMANAGER_IMPLEMENTATION
Language getLanguageForMemo() const { return meLanguage; }
#endif
@@ -129,10 +133,18 @@ namespace textinput {
virtual const InputForm* getInputForm() const { return mpInputForm; }
virtual keyboard::hwkey::HWKeyboard* getHWKeyboard() { return mpHWKeyboard; }
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual const keyboard::hwkey::HWKeyboard* getHWKeyboard() const;
#else
virtual const keyboard::hwkey::HWKeyboard* getHWKeyboard() const { return mpHWKeyboard; }
#endif
virtual keyboard::pctype::LayoutByNW4R* getPCKeyboard() { return mpPCKeyboard; }
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual const keyboard::pctype::LayoutByNW4R* getPCKeyboard() const;
#else
virtual const keyboard::pctype::LayoutByNW4R* getPCKeyboard() const { return mpPCKeyboard; }
#endif
virtual keyboard::cellphonetype::LayoutByNW4R* getCellPhoneKeyboard() { return mpCellPhoneKeyboard; }
virtual const keyboard::cellphonetype::LayoutByNW4R* getCellPhoneKeyboard() const { return mpCellPhoneKeyboard; }
@@ -149,7 +161,11 @@ namespace textinput {
virtual const candidatebox::LayoutByNW4R* getCandidateBox() const { return mpCandidateBox; }
virtual toolbar::LayoutByNW4R* getToolBar() { return mpToolBar; }
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual const toolbar::LayoutByNW4R* getToolBar() const;
#else
virtual const toolbar::LayoutByNW4R* getToolBar() const { return mpToolBar; }
#endif
#ifdef TIMANAGER_IMPLEMENTATION
virtual void* getPredictLanguageSelectDialog();

View File

@@ -36,7 +36,11 @@ namespace textinput {
virtual void onTiEvent(gui::PaneComponent* paneComponent, u32 event, Input* input) = 0; // 0x18
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void setEventObserver(EventObserver *event);
#else
virtual void setEventObserver(EventObserver *event) { mpEventObserver = event; } // 0x1C
#endif
protected:
EventObserver* mpEventObserver; // 0x08
@@ -97,25 +101,19 @@ namespace textinput {
virtual void calc(); // 0x0C
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void onAnmEvent(AnmPaneEvent) {}
virtual void onAnmEvent(AnmPaneEvent);
#else
virtual void onAnmEvent(AnmPaneEvent paneEvent);
#endif // 0x10
virtual void changeAnimation(u32 id); // 0x14
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual bool isInAnimation() { return mpCurrentAnim != NULL; }
virtual bool isInAnimation();
#else
virtual bool isInAnimation();
#endif // 0x18
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual Anim* searchAnimation(u32 id) {
for (Anim* animation = static_cast<Anim*>(nw4r::ut::List_GetNext(&mAnms, NULL)); animation != NULL;
animation = static_cast<Anim*>(nw4r::ut::List_GetNext(&mAnms, animation))) {
if (animation->muID == id) return animation;
}
return NULL;
}
virtual Anim* searchAnimation(u32 id);
#else
virtual Anim* searchAnimation(u32 id);
#endif // 0x1C
@@ -247,14 +245,22 @@ namespace textinput {
virtual bool updateInput(int point, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data); // 0x20
virtual bool updateInput(input::HKBManager& hkbManager); // 0x24
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual TiLayout* getLayout();
#else
virtual TiLayout* getLayout() { return mpLayout; } // 0x28
#endif
virtual nw4r::lyt::Pane* getPane(const char* paneName); // 0x2C
virtual const nw4r::lyt::Pane* getPane(const char* paneName) const; // 0x30
virtual u32 getFlightDuration(int point, const char* paneName); // 0x34
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void setAnimOn(bool flag);
#else
virtual void setAnimOn(bool flag) { mbAnimOn = flag; } // 0x38
#endif
virtual void drawPane(const char* paneName); // 0x3C
@@ -282,8 +288,16 @@ namespace textinput {
virtual AnmPane* searchAnmPane(const char* paneName); // 0x60
virtual AnmPane* searchAnmPane(wchar_t ch); // 0x64
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual nw4r::ut::List& getAnmPaneList();
#else
virtual nw4r::ut::List& getAnmPaneList() { return mAnmPanes; } // 0x68
#endif
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual gui::PaneManager* getPaneManager();
#else
virtual gui::PaneManager* getPaneManager() { return mpPaneManager; } // 0x6C
#endif
virtual void AdjustPaneMtx(Mtx& mtx, const nw4r::lyt::DrawInfo& drawInfo, const nw4r::math::MTX34& mGlobalMtx); // 0x70

View File

@@ -191,7 +191,11 @@ namespace textinput {
#endif
virtual ~Base();
virtual void create(MEMAllocator* allocator);
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void init();
#else
virtual inline void init();
#endif
virtual void updateFromReceiver(u32 command, void* data);
virtual void onKey(u32 event, void* data);
virtual int getType();
@@ -223,6 +227,9 @@ namespace textinput {
virtual void updateFixMode();
protected:
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
inline void initializeKeyState();
#endif
State mState;
const LanguageData* mpInitialLanguageData;
KeyState mKeyState;
@@ -301,6 +308,8 @@ namespace textinput {
LayoutByNW4R(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* accessor, EventObserver* observer, const char* layoutName)
: Base(manager), nw4rmanager::Layout(accessor, layoutName, observer), mpKeyboardEventHandler(NULL),
mShiftButton(1, this, this), mCapsButton(0, this, this), mModePanel(2, this, this) {}
#elif defined(TI_PC_KEYBOARD_IMPLEMENTATION)
LayoutByNW4R(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* accessor, EventObserver* observer, const char* layoutName);
#endif
virtual ~LayoutByNW4R();
virtual void create(MEMAllocator* allocator);
@@ -352,6 +361,15 @@ namespace textinput {
UIModePanel mModePanel;
};
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
class Sample : public LayoutByNW4R {
public:
Sample(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* accessor, EventObserver* observer, const char* layoutName)
: LayoutByNW4R(manager, accessor, observer, layoutName) {}
virtual ~Sample() {}
};
#endif
class AnmPane : public nw4rmanager::AnmPane {
public:
AnmPane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer) : nw4rmanager::AnmPane(pane, observer), mAnimation(0) {}

View File

@@ -14,9 +14,17 @@ namespace textinput {
Base(Manager* manager) : mQwerty(true), meLanguage(USA), mpAllocator(NULL), mpManager(manager) {}
#endif
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual void create(MEMAllocator* allocator);
#else
virtual void create(MEMAllocator* allocator) { mpAllocator = allocator; }
#endif
virtual void init() {}
#ifdef TI_PC_KEYBOARD_IMPLEMENTATION
virtual bool isQwerty() const;
#else
virtual bool isQwerty() const { return mQwerty; }
#endif
virtual void setQwerty(bool qwerty);
virtual void setLanguage(Language language) { meLanguage = language; }
virtual Language getLanguage() const { return meLanguage; }

View File

@@ -39,7 +39,9 @@ public:
};
static u16 ElementBuffer[0x100];
static u16 CandidatesBuffer[0x300];
static u16 CandidatesBuffer[0x100];
static u16 ElementWorkBuffer[0x100];
static u16 PredictionBuffer[0x100];
static u16 CandidatedWord[0xa00];
static u16 LatestWord[0x40];

View File

@@ -141,6 +141,9 @@ namespace ipl {
void init(nw4r::lyt::Pane* pane);
void set(u64 fdId);
void reset();
#ifdef IPL_ADDRESS_MATCHING
nigaoe::Object* getPortrait() const { return mpNigaoe; }
#endif
static void create_callback(nigaoe::Object* object, void* work);

View File

@@ -21,6 +21,12 @@ namespace EGG {
virtual void initialize(IAudioMgr::Arg* arg);
};
class ExpAudioMgr : public SimpleAudioMgr, public AudioFxMgr {
public:
ExpAudioMgr();
virtual ~ExpAudioMgr();
};
} // namespace EGG
#endif // EGG_AUDIO_EXP_MGR_H

View File

@@ -29,4 +29,10 @@ namespace EGG {
mHeap.SaveState();
}
ExpAudioMgr::ExpAudioMgr() {
}
ExpAudioMgr::~ExpAudioMgr() {
}
} // namespace EGG

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 done;
s32 iter;
s32 d;
s32 t;
s32 i;
s32 e;
s32 y;
s32 b2;
s32 b3;
s32 b1;
s32 b4;
s32 b5;
s32 b6;
s32 b7;
s32 v;
s32 n;
s32 m;
s32 a;
s32 d;
s32 done;
s32 z;
s32 o;
s32 v;
s32 p;
s32 p_part;
s32 t;
s32 m_part;
s32 u;
s32 r;
s32 n;
s32 y;
s32 o;
s32 x;
s32 x_factor;
s32 z_factor;
s32 m_part;
s32 iter;
s32 q;
s32 w;
s32 x;
s32 b1;
s32 e;
s32 b3;
r = (zigzag >> 4) * 8;
dst = tmp;
@@ -93,17 +93,19 @@ 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;
b5 = b5 - b3;
oddLowDifference = b5 - b3;
oddHighSum = b1 + b7;
b1 = b1 - b7;
oddHighDifference = b1 - b7;
u = b6 + b2;
t = t * 0xB5 >> 8;
x_factor = oddHighSum - oddLowSum;
z_factor = b5 + b1;
z_factor = oddLowDifference + oddHighDifference;
dcValue = block[0];
a = dcValue - b4;
x = x_factor * 0xB5 >> 8;
@@ -113,14 +115,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 = b1 * 0x14E >> 8;
m_part = oddHighDifference * 0x14E >> 8;
e = a - t;
m = m_part - z;
oddLowSum += m;
n = oddHighSum + oddLowSum;
o = x + m;
dst[0] = w + n;
p_part = b5 * 0x8B;
p_part = oddLowDifference * 0x8B;
dst[7] = w - n;
p_part >>= 8;
dst[1] = v + o;
@@ -225,7 +227,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 done;
s32 a;
s32 iter;
s32 d;
s32 b1;
@@ -237,14 +239,14 @@ void TMCJPEGDEC_IdctBlock_Col(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigza
s32 b7;
s32 v;
s32 r;
s32 a;
s32 done;
s32 i;
s32 m;
s32 n;
s32 o;
s32 x;
s32 q;
s32 y;
s32 e;
s32 u;
s32 w;
s32 p;
@@ -254,7 +256,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 e;
s32 y;
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, const u8* entry);
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, 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, entries);
TMCJPEGDEC_IFD0_tag_parse(pInfo, byteOrder, (u8*)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, entries);
TMCJPEGDEC_IFD0_tag_parse(pInfo, byteOrder, (u8*)entries);
entries += 12;
}
}
return 0;
}
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, const u8* entry) {
static void TMCJPEGDEC_IFD0_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder, u8* entry) {
s32 tag;
u16 type;
u32 type;
tag = readU16(entry, byteOrder);
type = readU16(entry + 2, byteOrder);
tag = readExifU16(entry, byteOrder);
type = readExifU16(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 = (const u8*)(pInfo->thumbnailData + offset + 4);
p = 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 = (const u8*)(pInfo->thumbnailData + offset + 4);
p = pInfo->thumbnailData + (offset + 4);
if (pInfo->thumbnailData > p) {
return;
}
@@ -501,6 +501,10 @@ 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;
}
@@ -516,7 +520,7 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
return;
}
pInfo->xResNumIfd1 = readU32(p, byteOrder);
p = (const u8*)(pInfo->thumbnailData + offset + 4);
p = pInfo->thumbnailData + (offset + 4);
if (pInfo->thumbnailData > p) {
return;
}
@@ -538,7 +542,7 @@ static void TMCJPEGDEC_IFD1_tag_parse(TMCCJPEGDecExifData* pInfo, u16 byteOrder,
return;
}
pInfo->planarConfigIfd1 = readU32(p, byteOrder);
p = (const u8*)(pInfo->thumbnailData + offset + 4);
p = 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 lumaSkip;
s32 tileRow;
s32 cbValue;
s32 blue;
TMCCJPEGDecState* state;
u32 tileWidth;
s32 lumaSkip;
s32 crValue;
s32 width;
s32 height;
u8* cb;
s32 chromaSkip;
u8* texture;
u8* luminance;
s32 chromaSkip;
u8* cb;
u8* cr;
s32 column;
s32 xEnd;
s32 yEnd;
s32 redOffset;
s32 tileRow;
s32 blueOffset;
u8 value;
s32 red;
u32 tileWidth;
s32 greenOffset;
s32 redOffset;
s32 red;
s32 blueOffset;
s32 green;
luminance = work->convBuf + 4;
@@ -284,7 +284,9 @@ static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x,
s32 yEnd = y + height;
s32 lumaSkip = 32 - width;
s32 chromaSkip = lumaSkip >> 2;
s32 redOffset, greenOffset, blueOffset;
s32 redOffset;
s32 blueOffset;
s32 greenOffset;
ASSERTLINE((x & 3) == 0, __LINE__);
for (; y < yEnd; y++) {
s32 tileRow = (y >> 2) * tileWidth;
@@ -322,11 +324,11 @@ static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32
s32 chromaSkip;
s32 width;
s32 blue;
s32 lumaSkip;
u16* output;
s32 red;
s32 tileRow;
u16* output;
u32 tileWidth;
s32 lumaSkip;
s32 redOffset;
u8* texture;
TMCCJPEGDecState* state;
s32 crValue;
@@ -338,7 +340,7 @@ static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32
s32 cbValue;
s32 xEnd;
s32 yEnd;
s32 redOffset;
u32 tileWidth;
s32 greenOffset;
s32 blueOffset;
s32 green;
@@ -475,22 +477,22 @@ static void TMCJPEGDEC_converterYUV420toRGB565(TMCCJPEGDecWork* work, s32 x, s32
s32 width;
s32 redOffset;
s32 green;
u32 tileWidth;
u8* texture;
s32 tileRow;
s32 lumaSkip;
s32 chromaSkip;
s32 height;
s32 yEnd;
u8* texture;
u8* luminance;
s32 crValue;
s32 value;
u8* cb;
s32 xEnd;
s32 column;
u8* cr;
s32 greenOffset;
s32 tileRow;
s32 column;
s32 xEnd;
s32 yEnd;
u32 tileWidth;
s32 cbValue;
s32 lumaSkip;
s32 greenOffset;
s32 blueOffset;
s32 red;
TMCCJPEGDecState* state;
@@ -563,26 +565,23 @@ static void TMCJPEGDEC_converterYUV420toRGB565(TMCCJPEGDecWork* work, s32 x, s32
}
static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
s32 chromaSkip;
u16* output;
s8 crValue;
s32 yEnd;
s32 tileRow;
u8* texture;
u8* luminance;
s8* cb;
s32 width;
s8* cb;
s8 crValue;
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;
s32 chromaSkip;
u32 tileWidth;
s32 redOffset;
s32 greenOffset;
s32 blueOffset;
@@ -619,16 +618,18 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x,
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
blueOffset = (cbValue * 454) >> 8;
}
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;
{
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);
}
output[(column & 3) + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
}
luminance += lumaSkip;
if (y & 1) {
@@ -816,15 +817,11 @@ 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;
@@ -844,17 +841,19 @@ static void TMCJPEGDEC_converterYUV444toRGB565(TMCCJPEGDecWork* work, s32 x, s32
for (column = x; column < xEnd; column++) {
cbValue = (s8)*cb++;
crValue = (s8)*cr++;
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;
{
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));
}
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;
u16* output;
s32 greenOffset;
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;
s32 greenOffset;
u16* output;
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) {
s32 chromaSkip;
u16* output;
s32 tileRow;
s32 xEnd;
s32 lumaSkip;
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 lumaSkip;
s32 xEnd;
s32 yEnd;
s32 tileWidth;
u16* output;
s32 redOffset;
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;
s32 lumaSkip;
s32 cbValue;
s32 tileWidth;
TMCCJPEGDecState* state;
u16* output;
s32 cbValue;
s32 tileRow;
TMCCJPEGDecState* state;
s32 lumaSkip;
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 blue;
s32 chromaSkip;
u16* output;
s32 xEnd;
u8* cr;
s32 tileRow;
s32 lumaSkip;
TMCCJPEGDecState* state;
s32 tileWidth;
u8* texture;
u8* luminance;
s32 width;
s32 height;
u8* cb;
u8* texture;
u8* cr;
s32 column;
s32 chromaSkip;
s32 xEnd;
s32 yEnd;
s32 tileRow;
s32 tileWidth;
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 tileRow;
s8 crValue;
s32 chromaSkip;
u8* luminance;
s8 crValue;
s32 lumaSkip;
u16* output;
TMCCJPEGDecState* state;
u8* texture;
s32 tileRow;
s32 width;
s32 height;
s32 green;
s32 blue;
s32 lumaSkip;
s32 yEnd;
s32 xEnd;
u8* luminance;
u8* cb;
u8* cr;
s32 value;
s32 column;
u8* cr;
s32 greenOffset;
s32 xEnd;
s32 yEnd;
s32 tileWidth;
s32 redOffset;
u8* cb;
u16* output;
s32 greenOffset;
u8* texture;
s32 blueOffset;
s32 red;
s32 cbValue;
@@ -641,7 +641,9 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 xEnd = x + width;
s32 lumaSkip = 16 - width;
s32 chromaSkip = lumaSkip >> 1;
s32 redOffset, greenOffset, blueOffset;
s32 redOffset;
s32 blueOffset;
s32 greenOffset;
ASSERTLINE((x & 1) == 0, __LINE__);
for (; y < yEnd; y++) {
u16* output = (u16*)(texture + ((y & 3) << 3));
@@ -656,10 +658,10 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
blueOffset = (cbValue * 454) >> 8;
}
{
s32 value = *luminance++;
s32 green = value + greenOffset;
s32 red = value + redOffset;
s32 blue = value + blueOffset;
s32 red = *luminance++;
s32 green = red + greenOffset;
s32 blue = red + blueOffset;
red = red + redOffset;
if ((green | red | blue) >> 8) {
blue = blue > 255 ? 255 : blue < 0 ? 0 : blue;
green = green > 255 ? 255 : green < 0 ? 0 : green;
@@ -768,7 +770,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
u16* output;
s32 lumaSkip;
s32 tileRow;
s32 blue;
u8* texture;
u8* luminance;
@@ -783,14 +785,14 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
s32 greenOffset;
s32 yEnd;
s32 cbValue;
s32 tileRow;
s32 tileWidth;
s32 blueOffset;
s32 red;
s8 crValue;
u8 value;
s32 green;
s32 redOffset;
s32 tileWidth;
s32 lumaSkip;
luminance = work->convBuf + 4;
cb = work->convBuf + 132;

View File

@@ -1,5 +1,20 @@
#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,
@@ -8,8 +23,8 @@ const ziWChar Zi8PunctTable[40] = {
0xFFE1, 0x20AC, 0x203B, 0xFF20, 0x0000,
};
ziS32 Zi8Punctuation(ziGetParam* param ZI_NEED_WORK) {
ziS32 limit = ((ziU16*)__zi8_work_data)[8] - 1;
ziU32 Zi8Punctuation(ziGetParam* param, ziPtr options ZI_NEED_WORK) {
ziS32 limit = ((ZiCandidateOptions*)options)->capacity - 1;
ziS32 count = 0;
ziU8 i = 0;
ziU16 fc = param->firstCandidate;
@@ -21,7 +36,7 @@ ziS32 Zi8Punctuation(ziGetParam* param ZI_NEED_WORK) {
}
if (fc == 0) {
count++;
if (ZI_WORK->getcPhase == 0) {
if (((ZiCandidateOptions*)options)->countOnly == 0) {
param->candidates[i++] = Zi8PunctTable[j];
if ((param->context & 0x10) != 0) {
param->candidates[i++] = 0x20;
@@ -33,7 +48,7 @@ ziS32 Zi8Punctuation(ziGetParam* param ZI_NEED_WORK) {
break;
}
} else {
if (count >= (ziS32)ZI_WORK->targetCount) {
if (count >= (ziS32)((ZiCandidateOptions*)options)->maxCount) {
return count;
}
}
@@ -42,7 +57,7 @@ ziS32 Zi8Punctuation(ziGetParam* param ZI_NEED_WORK) {
}
j++;
}
if (ZI_WORK->getcPhase == 0) {
if (((ZiCandidateOptions*)options)->countOnly == 0) {
param->letters = count;
}
return count;

View File

@@ -1,3 +1,8 @@
#include <zi8clib/zitypes.h>
#undef ZI_NEED_WORK
#define ZI_NEED_WORK , struct __zi8_work_data_s* __zi8_work_data
#undef ZI_WORK
#define ZI_WORK __zi8_work_data
#include <zi8clib/zconvert.h>
#include <zi8clib/zierror.h>
@@ -23,7 +28,7 @@ typedef struct ziConversionTable {
} ziConversionTable;
const ziConversionTables Zi8CvrtTables = {0};
ziU16 Zi8GetTableCount(ziU8, ziU8 ZI_NEED_WORK);
ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
ziU32 Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
ziWChar Zi8ConvertUC2UserKey(ziChar, ziU8 ZI_NEED_WORK);
ziWChar Zi8ConvertUC2WC(ziChar character, ziU8 language ZI_NEED_WORK) {
@@ -37,7 +42,7 @@ ziWChar Zi8ConvertUC2WC(ziChar character, ziU8 language ZI_NEED_WORK) {
return 0;
}
if (Zi8GetTableCount(language, 6, __zi8_work_data) != 0) {
table = Zi8GetTableAddress(language, 6, __zi8_work_data);
table = (ziU8*)Zi8GetTableAddress(language, 6, __zi8_work_data);
if (table == 0) {
Zi8LogError(0x6A4, __zi8_work_data);
return 0;
@@ -77,7 +82,7 @@ ziChar Zi8ConvertWC2UC(ziWChar character, ziU8 language ZI_NEED_WORK) {
return 0;
}
if (Zi8GetTableCount(language, 7, __zi8_work_data) != 0) {
table = Zi8GetTableAddress(language, 7, __zi8_work_data);
table = (ziConversionTable*)Zi8GetTableAddress(language, 7, __zi8_work_data);
if (table == 0) {
Zi8LogError(0x6AE, __zi8_work_data);
return 0;
@@ -137,7 +142,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 = Zi8GetTableAddress(language, 8, __zi8_work_data);
table = (ziConversionTable*)Zi8GetTableAddress(language, 8, __zi8_work_data);
if (table == 0) {
Zi8LogError(0x6B8, __zi8_work_data);
return 0;

View File

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

View File

@@ -351,6 +351,7 @@ int Zi8AlphaGetCandidates(ziGetParam* parameters, ziPtr optionData, ziPtr workDa
int candidateCount;
ziU8 *keyLayout;
ziU8 *keyLayoutCursor;
ziPtr workspace;
ziU16 prefixTableFlags;
ziU16 prefixVowelFlags;
ziU8 prefixMode;
@@ -406,6 +407,7 @@ int Zi8AlphaGetCandidates(ziGetParam* parameters, ziPtr optionData, ziPtr workDa
contextEnabled = 0;
keyLayoutCount = 0;
keyLayout = 0;
workspace = workData;
phoneticInput = 0;
phoneticSeparator = 0;
if ((((((language == 0x7c) || (language == 0x7d)) || (language == 0x7b)) ||
@@ -920,9 +922,8 @@ selectDictionary:
if ((((wordLength == 0) && (*punctuationCursor != 0)) && (dictionaryExact != 0)) &&
((((ZiAlphaWork*)workData)->singleCharacter != 0 && (parameters->elementCount == 2)))) {
*wordCursor = ((ZiAlphaWork*)workData)->singleCharacter;
wordCursor[1] = *punctuationCursor;
punctuationCursor = punctuationCursor + 1;
wordCursor[2] = 0;
wordCursor[1] = *punctuationCursor++;
wordLength = 2;
}
if (((apostropheIndex != 0) && (wordLength != 0)) && (elementCount == parameters->elementCount)) {
@@ -1005,7 +1006,7 @@ filterVowelCandidate:
case 3:
case 7:
while( ZI8_TRUE ) {
wordLength = Zi8MatchUWDdata(elements,elementCount & 0xff,
wordLength = Zi8MatchUWDdata(elements,elementCount,
parameters->currentWord,parameters->wordCharCount,
language,wordCursor,wordCapacity & 0xffff,dictionaryExact,
dictionaryStatus[dictionaryKind] & 0xff,workData);
@@ -1016,8 +1017,8 @@ filterVowelCandidate:
case 4:
case 8:
if (elementCount != 0) {
wordLength = Zi8MatchOEMdata(elements,elementCount & 0xff,language,wordCursor,
wordCapacity & 0xffff,dictionaryExact,
wordLength = Zi8MatchOEMdata(elements,elementCount,language,wordCursor,
wordCapacity,dictionaryExact,
dictionaryStatus[dictionaryKind] & 0xff,workData);
}
break;
@@ -1139,7 +1140,7 @@ prepareCandidate:
Zi8ChangeWordCase(wordCursor - prefixCount,language,workData);
}
if ((((ZiAlphaOptions*)optionData)->suffixOnly != '\0') &&
((int)((ZiAlphaOptions*)optionData)->maxWordLength < (int)(wordLength + prefixCount))) {
((wordLength + prefixCount) > ((ZiAlphaOptions*)optionData)->maxWordLength)) {
wordLength = ((ZiAlphaOptions*)optionData)->maxWordLength - prefixCount;
wordCursor[wordLength] = 0;
}
@@ -1194,7 +1195,9 @@ checkKeyLayout:
break;
}
emitCandidate:
if (firstCandidate == 0) {
if (firstCandidate != 0) {
--firstCandidate;
} else {
if (((ZiAlphaOptions*)optionData)->countOnly != '\0') {
if (((ZiAlphaOptions*)optionData)->suffixOnly != '\0') {
if ((int)((ZiAlphaOptions*)optionData)->shortestWord > (int)(wordLength + prefixCount)) {
@@ -1204,20 +1207,17 @@ emitCandidate:
((ZiAlphaOptions*)optionData)->longestWord = wordLength + prefixCount;
}
}
candidateCount = candidateCount + 1;
if (((ZiAlphaOptions*)optionData)->maxResults <= candidateCount) goto finishCandidates;
if (++candidateCount >= ((ZiAlphaOptions*)optionData)->maxResults) goto finishCandidates;
} else {
if (((ZiAlphaOptions*)optionData)->lookupMode != '\0') {
for (index = 0;
(index <= (int)wordLength &&
(wordCursor[index] == ((ZiAlphaOptions*)optionData)->dictionary[index]));
index = index + 1) {
for (index = 0; index <= wordLength; index++) {
if (wordCursor[index] != ((ZiAlphaOptions*)optionData)->dictionary[index]) break;
}
if ((((((ZiAlphaWork*)workData)->operation != '\0') || ((int)wordLength <= index))
if ((((((ZiAlphaWork*)workData)->operation != '\0') || (index >= wordLength))
&& ((((ZiAlphaWork*)workData)->operation == '\0' ||
((exactLengthOnly == 0 ||
((int)(ziU16)Zi8WCharCount(((ZiAlphaOptions*)optionData)->dictionary,workData) <= index)))))) &&
((exactLengthOnly != 0 || ((int)wordLength <= index)))) {
(index >= (int)(ziU16)Zi8WCharCount(((ZiAlphaOptions*)optionData)->dictionary,workData))))))) &&
((exactLengthOnly != 0 || (index >= wordLength)))) {
candidateCount = 1;
goto finishCandidates;
}
@@ -1326,8 +1326,7 @@ emitCandidate:
wordCursor = wordCursor + wordLength;
wordCapacity = wordCapacity - wordLength;
}
candidateCount = candidateCount + 1;
if ((int)(unsigned int)parameters->maxCandidates <= candidateCount) {
if (++candidateCount >= (int)(unsigned int)parameters->maxCandidates) {
prefixCount = 0;
goto finishCandidates;
}
@@ -1359,9 +1358,6 @@ emitCandidate:
}
}
}
else {
firstCandidate = firstCandidate - 1;
}
}
}
}
@@ -1376,27 +1372,23 @@ finishDictionaryPass:;
(((parameters->elementCount == 1 &&
(((Zi8GetTableCount(parameters->language,0x1f,workData)) & 0x40) == 0)) &&
(*parameters->elements >= 0xeff1)))))) &&
((*parameters->elements < 0xf011 &&
((*parameters->elements <= 0xf010 &&
((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)) {
*encodedOutput = 0x3e;
encodedOutput[2] = 0;
encodedOutput[1] = 0;
}
else {
if (((ZiAlphaOptions*)optionData)->countOnly != 0 || (parameters->getOptions & 0xFD) == 0x81) {
if (parameters->getMode == 1) {
*wordCursor = *elements;
} else {
*wordCursor = 0x3E;
}
else {
*wordCursor = 0x3e;
}
wordCursor[2] = 0;
wordCursor[1] = 0;
wordCursor = wordCursor + 2;
wordCursor[1] = wordCursor[2] = 0;
wordCursor += 2;
} else {
*encodedOutput = 0x3E;
encodedOutput[1] = encodedOutput[2] = 0;
}
if (((ZiAlphaOptions*)optionData)->lookupMode == '\0') {
((ZiAlphaWork*)workData)->singleCharacter = 0;
@@ -1576,17 +1568,17 @@ checkPrefixFields:
finishCandidates:
((ZiAlphaWork*)workData)->usePrefixAsElements = 0;
if (((ZiAlphaOptions*)optionData)->countOnly == '\0') {
parameters->letters = candidateCount;
if (((ZiAlphaOptions*)optionData)->countOnly != '\0') {
parameters->letters = 0;
}
else {
parameters->letters = 0;
parameters->letters = candidateCount;
}
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 < 2 ||
((((ZiAlphaWork*)workData)->prefixEnabled <= 1 ||
(parameters->elements[elementIndex] == 0xEFF1)))) {
index = 0;
while (elementIndex >= 0) {

View File

@@ -133,16 +133,16 @@ typedef struct {
ziU8 phonetics[11];
} ZiChineseRecord;
extern ziPtr Zi8GetTableAddress(ziU8 language, ziU8 table, ziPtr work);
extern ziU32 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(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,
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,
ziU8 oneCharacter, ziU16 excludedMask,
ziU16 excludedMatch, ziU8 charset, ziU8 options,
ziU16 ordinal, ziU16* tone, ziU8 spellingOnly,
@@ -160,13 +160,13 @@ extern const ziU8 zi8CangjieCodes[25];
extern const ziWChar ziPuncts[4];
extern const ziWChar ziTones[4];
const ziWChar zi8tones[4];
extern ziU8 Zi8GetZHuwdPtr(ziU8** entries, ziU16* count, ziPtr work);
extern ziU32 Zi8GetZHuwdPtr(ziU32* 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,
ziWChar* output, ziU16 capacity, ziU8 mode, ziU8 next, ziPtr work);
extern ziU16 Zi8Uni2Ord(ziWChar character, ziPtr work);
extern int Zi8GetPCode(ziU8* table, ziU8* record);
extern ziU16 Zi8GetPCode(ziU8* table, ziU8* record);
extern ziU16 Zi8MatchAltSound(ziPtr table, ziU16 count, ziPtr phonetics,
ziU16 ordinal, ziU16 mask, ziU16 value, ziU8 flags, ziPtr work);
extern ziU32 Zi8SecMatchChar(ziPtr record, ziU8* dictionary, ziMatchParam* match, ziU16* code, ziPtr work);
@@ -199,7 +199,7 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
ziU8 matchMode;
int index;
ziWChar* currentWord;
ziU8* userEntries;
ziU32 userEntriesAddress;
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 52: case 55:
case 60: case 63:
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->bANDp) ordinalIndex = 0xF9FF;
break;
case 60: case 63:
case 52: case 55:
if (((ziFuzzyZYPairs*)&((struct __zi8_work_data_s*)work)->unk_0x1B2C.word)->gANDk) ordinalIndex = 0xF9FF;
break;
case 38:
@@ -755,8 +755,8 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
componentOrdinals = (ziU8*)Zi8GetTableAddress(1, 7, work);
componentTable = componentCursor = (ziU8*)Zi8GetTableAddress(1, 2, work);
componentCursor += 8;
componentIndex = componentCount - 1;
--componentCount;
componentIndex = componentCount;
alternateCharacter = 0;
phoneticRetry = 1;
}
@@ -1299,8 +1299,8 @@ context_word_lookup:
if (emitWords) {
++emittedCount;
outputIndex += emittedWords;
output[outputIndex++] = ' ';
if (outputIndex > outputLimit) {
output[outputIndex] = ' ';
if (++outputIndex > outputLimit) {
request->letters = emittedCount;
request->count = emittedCount;
goto engine_finish;
@@ -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 = Zi8GetTableAddress(1, 28, work);
phoneticGroups = (ziU8*)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 = Zi8GetTableAddress(1, 29, work);
if (ordinalCount) ordinalTable = (ziU8*)Zi8GetTableAddress(1, 29, work);
}
if (!request->elementCount && (getMode == 7 || getMode == 8 || getMode == 9)) {
resultFallback = 0;
@@ -1434,8 +1434,8 @@ candidate_dictionary_search:
if (emitWords) {
++emittedCount;
output[outputIndex++] = character;
output[outputIndex++] = ' ';
if (outputIndex > outputLimit) goto engine_finish;
output[outputIndex] = ' ';
if (++outputIndex > outputLimit) goto engine_finish;
} else output[emittedCount++] = character;
if (emittedCount >= request->maxCandidates) goto engine_finish;
}
@@ -1451,7 +1451,7 @@ character_range_start:
firstOrdinal = 0;
rangeIndex = Zi8GetTableCount(1, 16, work);
if (Zi8GetFormatVersion(1, work) >= 4 && rangeIndex && elements[0] != 0xEF00) {
phoneticGroups = Zi8GetTableAddress(1, 16, work);
phoneticGroups = (ziU8*)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, (ZiChineseRecord*)records, alternateTable, alternateCount,
phraseTable, (ZiChineseRecord*)record, match.phon, match.phon2,
&candidateCount, (ZiChineseRecord**)&record, (int*)&phoneticGroups,
if (!Zi8MatchPhonetic(phoneticTable, records, alternateTable, alternateCount,
(ziU32)phraseTable, record, match.phon, match.phon2,
&candidateCount, &record, &phoneticGroups,
0, 1, match.nCand, phoneticMask, phoneticMatch, charset, requireFull,
phraseOrdinal, &candidateOrdinal, 0, work)) continue;
if (charsetTable) {
@@ -1676,8 +1676,8 @@ tone_candidates:
if (emitWords) {
++emittedCount;
output[outputIndex++] = character;
output[outputIndex++] = ' ';
if (outputIndex > outputLimit) goto engine_finish;
output[outputIndex] = ' ';
if (++outputIndex > outputLimit) goto engine_finish;
} else output[emittedCount++] = character;
if (emittedCount >= request->maxCandidates) goto engine_finish;
} else if (totalResults >= options->maxResults) goto engine_finish;
@@ -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)) &&
Zi8GetZHuwdPtr(&userEntries, &userCount, work) && (getMode != 0 || match.nSeg <= 1)) {
(ziU8)Zi8GetZHuwdPtr(&userEntriesAddress, &userCount, work) && (getMode != 0 || match.nSeg <= 1)) {
userIndex = 0;
while (userIndex < userCount) {
candidateOrdinal = (ziU16)(userEntries[1] & 0x7F) << 8 | userEntries[2];
candidateOrdinal = (ziU16)(((ziU8*)userEntriesAddress)[1] & 0x7F) << 8 | ((ziU8*)userEntriesAddress)[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 && !(userEntries[1] & 0x80)) candidateStatus = 0;
if (request->elementCount && !(((ziU8*)userEntriesAddress)[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;
userEntries += 3;
userEntriesAddress += 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 = Zi8GetTableAddress(1, 16, work);
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 16, work);
switch (phase) {
case 0: rangeIndex = 0; rangeCount = 2; phase = 1; break;
case 1:
@@ -2052,7 +2052,7 @@ component_record_next:
if (getMode != 5) {
while (exactPhrase) {
while (match.count) {
if (!candidateCount--) goto frequency_range_retry;
if ((candidateCount -= 1) == 0xFFFF) goto frequency_range_retry;
if (match.arrD[0] == (record[0] & match.arr1[0]) &&
(ziU8)Zi8SecMatchChar(record, componentTable, &match, &candidateOrdinal, work)) goto frequency_accept;
record += 12;
@@ -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 = Zi8GetTableAddress(1, 24, work);
frequencyCursor = (ziU8*)Zi8GetTableAddress(1, 24, work);
frequencyEntry = frequencyCursor;
duplicateIndex = Zi8GetTableCount(1, 24, work);
if (!duplicateIndex) isFirstCandidate = 1;
@@ -2298,7 +2298,7 @@ phonetic_pair_next:
alternateCursor += 4;
}
phonetic_group_next:
++ordinalIndex;
ordinalIndex += 1;
frequencyCursor += 5;
}
}
@@ -2323,9 +2323,9 @@ phonetic_ordinals:
candidateCount = recordCount;
phoneticGroups = 0;
while (emittedCount < request->maxCandidates && candidateCount) {
if (!Zi8MatchPhonetic(phoneticTable, (ZiChineseRecord*)records, alternateTable, alternateCount,
phraseTable, (ZiChineseRecord*)record, match.phon, match.phon2,
&candidateCount, (ZiChineseRecord**)&record, (int*)&phoneticGroups,
if (!Zi8MatchPhonetic(phoneticTable, records, alternateTable, alternateCount,
(ziU32)phraseTable, record, match.phon, match.phon2,
&candidateCount, &record, &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 = Zi8GetTableAddress(1, 31, work);
frequencyTable = (ziU8*)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;
ZiChineseRecord* matchedRecord;
ziU8* matchedRecord;
ziU8* phoneticGroups;
ziU8* candidateGroups;
int matchedIndex;
ziU8* matchedString;
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 = Zi8GetTableAddress(1, 13, work);
ordinalTable = Zi8GetTableAddress(1, 14, work);
phoneticOffsets = (ziU16*)Zi8GetTableAddress(1, 13, work);
ordinalTable = (ziU16*)Zi8GetTableAddress(1, 14, work);
if (pinyin) {
phonetics = Zi8GetTableAddress(1, 3, work);
phonetics = (ziU8*)Zi8GetTableAddress(1, 3, work);
phoneticCount = Zi8GetTableCount(1, 3, work);
phoneticGroups = Zi8GetTableAddress(1, 17, work);
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 17, work);
groupCount = Zi8GetTableCount(1, 17, work);
candidateGroups = Zi8GetTableAddress(1, 18, work);
candidateGroups = (ziU8*)Zi8GetTableAddress(1, 18, work);
} else {
phonetics = Zi8GetTableAddress(1, 4, work);
phonetics = (ziU8*)Zi8GetTableAddress(1, 4, work);
phoneticCount = Zi8GetTableCount(1, 4, work);
phoneticGroups = Zi8GetTableAddress(1, 19, work);
phoneticGroups = (ziU8*)Zi8GetTableAddress(1, 19, work);
groupCount = Zi8GetTableCount(1, 19, work);
candidateGroups = Zi8GetTableAddress(1, 20, work);
candidateGroups = (ziU8*)Zi8GetTableAddress(1, 20, work);
}
if (groupCount) {
@@ -2782,12 +2782,12 @@ next_group_candidate:
}
}
if (stopAfterTone) {
matchedRecord = records + character;
matchedRecord = (ziU8*)(records + character);
matchedLength = 0;
matchedIndex = 0;
if (!Zi8MatchPhonetic(phonetics, records, indexTable, indexCount,
dictionary, matchedRecord, &mask, &match,
&matchedLength, &matchedRecord, &matchedIndex,
matchedString = 0;
if (!Zi8MatchPhonetic(phonetics, (ziU8*)records, indexTable, indexCount,
(ziU32)dictionary, matchedRecord, &mask, &match,
&matchedLength, &matchedRecord, &matchedString,
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) {
ziU8 Zi8IsZicorpSignature(ziU16* p, ziU16 len ZI_NEED_WORK) {
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) {
ziBool Zi8SecMatchComp(ziPtr nodeAddress, ziMatchParam* matchAddress, ziPtr dictionaryAddress ZI_NEED_WORK) {
int chainIndex;
ziU16 matchCode;
ziU16 targetCode;
@@ -506,7 +506,7 @@ pinyin_initial:
convertedCount = Zi8PinyinInitials[value];
if (convertedCount != 0) {
if (outputIndex == 0) {
*resultCount = *resultCount + 1;
*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 = *resultCount + 1;
*resultCount += 1;
}
final[outputIndex] += 0x200;
*bestInitial = initial[0];
@@ -567,7 +567,7 @@ scan_final:
value -= 0xF361;
if (value > 0x19) {
if (outputIndex == 0) {
*resultCount = *resultCount + 1;
*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 = *resultCount + 1;
*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 = *resultCount + 1;
*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 = *resultCount + 1;
*resultCount += 1;
}
current++;
count--;
@@ -705,11 +705,10 @@ finish_final:
}
}
}
outputIndex++;
if (outputIndex > 0xf) break;
if (++outputIndex > 0xf) break;
}
if ((result > 1) && (text[*resultCount - 1] >= 0xF341) && (text[*resultCount - 1] <= 0xF35A)) {
*resultCount = *resultCount - 1;
*resultCount -= 1;
}
return result;
@@ -743,9 +742,9 @@ check_row:
return 0;
}
ziS32 Zi8GetBpmfPhonetic(ziWChar* text, ziU8 count, ziU16* initial, ziU16* final, ziU16* bestInitial, ziU16* bestFinal ZI_NEED_WORK) {
ziU8 Zi8GetBpmfPhonetic(ziWChar* text, ziU8 count, ziU16* initial, ziU16* final, ziU16* bestInitial, ziU16* bestFinal ZI_NEED_WORK) {
ziU16 value;
ziU32 resultCount = 0;
ziU8 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;
ziU32 Zi8_8147FD7C(ziWChar*, ziU8, ziU8, ziWChar*, ziU16, ziU8, ziU8 ZI_NEED_WORK);
ziU8 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,8 +56,11 @@ ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option, struct __zi8_work_data_s* __zi8_work_da
Zi8LogError(100, __zi8_work_data);
return previous;
}
ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
int fallback = 0;
ziU8 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;
ziU8* bytePattern;
ziWChar folded;
ziPudSection* section;
@@ -68,6 +71,8 @@ ziU32 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;
@@ -88,8 +93,8 @@ ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar*
Zi8LogError(0x4F6, __zi8_work_data);
return 0;
}
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_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_0x318 = 0;
}
for (;;) {
@@ -130,7 +135,7 @@ matchText:
}
}
matched:
if (fallback) {
if (match.fallback) {
ZI_WORK->unk_0x310 = 0;
ZI_WORK->unk_0x318 = 0;
ZI_WORK->unk_0x314 = 0;
@@ -164,7 +169,7 @@ matched:
}
if (length == 1 && complete != 0 && continuation == 0) {
complete = 0;
fallback = 1;
match.fallback = 1;
ZI_WORK->unk_0x318 = 0;
} else {
ZI_WORK->unk_0x310 = 0;
@@ -174,12 +179,12 @@ matched:
}
}
}
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;
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;
if (continuation == 0) __zi8_work_data->pudCount = 1;
for (;;) {
result = Zi8_8147FD7C(pattern, length, language, output, capacity, complete, continuation, __zi8_work_data);
if ((ziU8)result != 0) break;
if (result != 0) break;
if (++__zi8_work_data->pudCount <= 16) {
continuation = 0;
} else {
@@ -189,6 +194,6 @@ ziU32 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* out
}
return result;
}
ziU32 Zi8_8147FD7C(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
ziU8 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() {
ziU16 Zi8GetVersion(ziPtr __zi8_work_data) {
return 1802;
}
ziU16 Zi8GetBuildID() {
ziU16 Zi8GetBuildID(ziPtr __zi8_work_data) {
return 41;
}
ziU16 Zi8GetOEMID() {
ziU16 Zi8GetOEMID(ziPtr __zi8_work_data) {
return 249;
}

View File

@@ -11,15 +11,15 @@ typedef struct {
ziU8 characterLow;
} ZiKoreanKeyEntry;
ziU32 Zi8_8148302C(ziU16 key, ziU8* table ZI_NEED_WORK) {
ziU16 Zi8_8148302C(ziU16 key, ziU8* table ZI_NEED_WORK) {
ziU32 value;
ziU16 count;
ziU32 i;
ziU16 i;
count = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
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]);
for (i = 0; i < count; i++) {
value = (ziU16)(((ziU16)table[(i << 3) + i + 7] << 8) |
table[(i << 3) + i + 8]);
if (value == key) {
Zi8LogError(0x64, ZI_WORK);
return i;
@@ -119,28 +119,19 @@ ziU32 Zi8_814833F0(const ziGetParam* param, ziU16 key ZI_NEED_WORK) {
ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
ziU8* inserted ZI_NEED_WORK) {
struct {
ziBool matches;
ziU8 candidateIndex;
ziU16 tableCount;
ziS32 compactIndex;
ZiKoreanKeyEntry* entry;
ziU8* tableB;
ziU8* tableA;
union {
ziU32 firstWord;
ziU8 bytes[5];
} keys;
} filter;
ziU32 j;
ziU8* tableA;
ziU8* tableB;
ZiKoreanKeyEntry* entry;
ziS32 compactIndex;
ziU16 tableCount;
ziU32 j = 0;
ziU8 candidateIndex = 0;
ziU8 matched = 0;
ziBool matches;
ziU8 keys[5] = {0};
ziS32 i;
ziS32 candidate;
ziU8 matched;
j = 0;
filter.candidateIndex = 0;
matched = 0;
filter.keys.bytes[4] = filter.keys.firstWord = 0;
Zi8LogError(0x64, ZI_WORK);
if (param->elementCount == 0) {
if (*remaining >= *count) {
@@ -166,40 +157,40 @@ ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
return 0;
}
filter.tableA = (ziU8*)Zi8GetTableAddress(param->language, 9, ZI_WORK);
filter.tableB = (ziU8*)Zi8GetTableAddress(param->language, 10, ZI_WORK);
if (filter.tableA == 0) {
tableA = (ziU8*)Zi8GetTableAddress(param->language, 9, ZI_WORK);
tableB = (ziU8*)Zi8GetTableAddress(param->language, 10, ZI_WORK);
if (tableA == 0) {
Zi8ReplaceLastError(0x76C, ZI_WORK);
return 0;
} else if (filter.tableB == 0) {
} else if (tableB == 0) {
Zi8ReplaceLastError(0x776, ZI_WORK);
return 0;
} else {
filter.tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
Zi8_81483118(param, filter.keys.bytes);
tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
Zi8_81483118(param, keys);
i = 0;
while (i < filter.tableCount && matched < *count) {
filter.matches = ZI8_TRUE;
filter.entry = (ZiKoreanKeyEntry*)&filter.tableA[(i << 3) + i];
while (i < tableCount && matched < *count) {
matches = ZI8_TRUE;
entry = (ZiKoreanKeyEntry*)&tableA[(i << 3) + i];
j = 0;
if (param->elementCount > 1) {
for (j = 0; (int)(j & 0xFF) < (int)param->elementCount / 2; j++) {
if (filter.keys.bytes[j & 0xFF] != filter.entry->keyBytes[j & 0xFF]) {
filter.matches = ZI8_FALSE;
if (keys[j & 0xFF] != entry->keyBytes[j & 0xFF]) {
matches = ZI8_FALSE;
break;
}
}
}
if (filter.matches && (param->elementCount % 2) != 0 &&
((filter.keys.bytes[j & 0xFF] & 0xF0) != (filter.entry->keyBytes[j & 0xFF] & 0xF0))) {
filter.matches = ZI8_FALSE;
if (matches && (param->elementCount % 2) != 0 &&
((keys[j & 0xFF] & 0xF0) != (entry->keyBytes[j & 0xFF] & 0xF0))) {
matches = ZI8_FALSE;
}
if (filter.matches) {
for (filter.candidateIndex = 0; filter.candidateIndex < *count; filter.candidateIndex++) {
if (param->candidates[filter.candidateIndex] ==
(((ziU16)((ZiKoreanKeyEntry*)filter.tableA)[i].characterHigh << 8) | (ziU16)((ZiKoreanKeyEntry*)filter.tableA)[i].characterLow)) {
if (matches) {
for (candidateIndex = 0; candidateIndex < *count; candidateIndex++) {
if (param->candidates[candidateIndex] ==
(((ziU16)((ZiKoreanKeyEntry*)tableA)[i].characterHigh << 8) | (ziU16)((ZiKoreanKeyEntry*)tableA)[i].characterLow)) {
matched++;
param->candidates[filter.candidateIndex] &= 0x7FFF;
param->candidates[candidateIndex] &= 0x7FFF;
break;
}
}
@@ -225,10 +216,10 @@ ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
}
*remaining = 0;
} else {
for (filter.compactIndex = 0; filter.compactIndex < *count; filter.compactIndex++) {
if ((param->candidates[filter.compactIndex] & 0x8000) == 0) {
param->candidates[filter.compactIndex] |= 0x8000;
Zi8_81483308(param, param->candidates[filter.compactIndex], inserted, ZI_WORK);
for (compactIndex = 0; compactIndex < *count; compactIndex++) {
if ((param->candidates[compactIndex] & 0x8000) == 0) {
param->candidates[compactIndex] |= 0x8000;
Zi8_81483308(param, param->candidates[compactIndex], inserted, ZI_WORK);
}
}
*remaining = *remaining - matched;
@@ -287,8 +278,7 @@ ziU32 Zi8GetKOcandidates(ziGetParam* param, ZiKoreanCandidateOptions* options ZI
search.resultCount = 0;
search.packedKeys.firstWord = 0;
search.packedKeys.bytes[4] = 0;
search.remainingLetters = 0;
search.wordIndex = 0;
search.wordIndex = search.remainingLetters = 0;
search.candidateCount = 0;
search.keyByte = 0;
search.remainingCandidates = param->firstCandidate;
@@ -313,7 +303,8 @@ ziU32 Zi8GetKOcandidates(ziGetParam* param, ZiKoreanCandidateOptions* options ZI
param->candidates[0] = 0;
}
Zi8LogError(100, ZI_WORK);
if (param->wordCharCount != 0) {
if (param->wordCharCount == 0) goto scan_key_table;
{
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 |
@@ -438,6 +429,7 @@ search_table:
param->count = search.candidateCount;
param->letters = search.candidateCount;
}
scan_key_table:
if (param->elementCount > 9) {
param->letters = 0;
return 0;

View File

@@ -21,6 +21,7 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
ziWChar bestFinal;
ziWChar previousInitial;
ziWChar previousFinal;
ziBool hasComponent;
ziU8 elementCount;
ziU8 elementIndex;
ziU8 stroke;
@@ -43,6 +44,7 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
stroke = 0;
contextMask = 0x20;
Zi8Memset(match,0,0x1ee);
hasComponent = 0;
nibbles = 0;
elementIndex = 0;
elementCount = request->elementCount;
@@ -58,13 +60,15 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
}
}
if (elementCount != 0) {
match->comp = element = request->elements[0];
element = request->elements[0];
match->comp = element;
if (Zi8IsComponent(element,__zi8_work_data) != 0) {
elementIndex++;
hasComponent = 1;
buffers.component = (ziU8*)Zi8GetTableAddress(1,2,__zi8_work_data);
buffers.componentIndex = (ziU8*)Zi8GetTableAddress(1,6,__zi8_work_data);
buffers.componentIndex += (element - 0xef10) * 2;
match->field22 = (((ziU16)buffers.componentIndex[1] & 0x3f) << 8) + *buffers.componentIndex;
match->field22 = ((buffers.componentIndex[1] & 0x3f) << 8) + *buffers.componentIndex;
buffers.component += (ziU32)match->field22 * 8;
switch(*buffers.component & 0xf) {
case 0:
@@ -219,13 +223,14 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
Zi8Memcpy((ziU8 (*)[12])match->segs1 + match->nSeg,buffers.masks,0xc);
Zi8Memcpy((ziU8 (*)[12])match->segsD + match->nSeg,buffers.strokes,0xc);
match->nSeg++;
if (stroke != 0xff || elementIndex >= elementCount || match->nSeg >= 0x10) goto complete;
if (stroke != 0xff || elementIndex >= elementCount || match->nSeg >= 0x10) break;
Zi8Memset(buffers.masks,0,0xc);
Zi8Memset(buffers.strokes,0,0xc);
buffers.masks[0] = match->arr1[0] & 0xf0;
buffers.strokes[0] = match->arrD[0] & 0xf0;
nibbles = 1;
} while (1);
return 1;
}
match->length = nibbles;
if (elementCount != 0) {
@@ -244,15 +249,13 @@ ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode Z
else {
initial = 0;
final = 0;
bestInitial = 0;
bestFinal = 0;
previousInitial = 0;
previousFinal = 0;
bestFinal = bestInitial = 0;
previousFinal = previousInitial = 0;
buffers.phoneticInput = request->elements;
match->nCand = 0;
request->completion = request->elementCount;
phoneticLength = 1;
for (index = 0; index < elementCount; index++) {
for (index = 0; index < elementCount;) {
stroke = Zi8GetBpmfPhonetic(buffers.phoneticInput,phoneticLength,&initial,&final,&bestInitial,&bestFinal,
__zi8_work_data);
if (stroke != 0) {
@@ -280,10 +283,8 @@ savePhonetic:
}
if (buffers.phoneticInput[phoneticLength - 1] == 0xF360) {
match->nCand--;
bestInitial = previousInitial;
bestFinal = previousFinal;
final = bestFinal;
initial = bestInitial;
bestInitial = initial = previousInitial;
bestFinal = final = previousFinal;
goto savePhonetic;
}
if (match->nCand == 1) {
@@ -293,6 +294,7 @@ savePhonetic:
phoneticLength = 0;
index--;
}
index++;
phoneticLength++;
}
if (elementCount != 0) {
@@ -331,6 +333,5 @@ savePhonetic:
}
}
}
complete:
return 1;
}

View File

@@ -6,11 +6,6 @@ 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 {
@@ -34,13 +29,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(FA_ATTACH_REQUEST* request, FA_NAND_ATTACH* nand);
extern s32 pfstub_attach(FADrvTbl** drives, const void* nand_data);
extern s32 pfd_sddrv_is_media_insert(void);
extern s32 pfd_mscdrv_is_media_insert(void);
extern s32 pfd_mscdrv_is_media_insert(FADisk* disk);
FAError FAAttach(u32 device, char* nand_path, u32 nand_size, FADrvTbl* table) {
FADisk* disk;
FA_ATTACH_REQUEST request;
FADrvTbl* drives[2];
FA_NAND_ATTACH nand;
s32 error;
s32 index;
@@ -65,16 +60,16 @@ FAError FAAttach(u32 device, char* nand_path, u32 nand_size, FADrvTbl* table) {
return -1;
}
}
request.table = table;
request.count = 0;
drives[0] = table;
drives[1] = NULL;
if (device == 2) {
memcpy(nand.path, nand_path, 78);
nand.size = nand_size;
}
if (device == 2) {
error = pfstub_attach(&request, &nand);
error = pfstub_attach(drives, &nand);
} else {
error = pfstub_attach(&request, NULL);
error = pfstub_attach(drives, NULL);
}
if (error != 0) {
return -1;
@@ -85,11 +80,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()) {
request.table->stat |= 0x10;
drives[0]->stat |= 0x10;
}
} else if (device == 1) {
if (pfd_mscdrv_is_media_insert()) {
request.table->stat |= 0x10;
if (pfd_mscdrv_is_media_insert(disk)) {
drives[0]->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(void);
extern s32 uhf_msc_is_media_insert(FADisk* disk);
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(void) {
return uhf_msc_is_media_insert();
s32 pfd_mscdrv_is_media_insert(FADisk* disk) {
return uhf_msc_is_media_insert(disk);
}

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 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;
if (disk != g_pfd_sddrv_info.disk) {
return -44;
}
} 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;
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 {
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,7 +749,8 @@ 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;
multiplier_factor <<= (u16)(max_multiplier - 9);
max_multiplier = (u16)(max_multiplier - 9);
multiplier_factor = (u16)(multiplier_factor << max_multiplier);
*sectors = cluster_blocks * multiplier_factor;
} else {
*sectors = ((csd[1] >> 8 & 0x3fffff) + 1) * 0x400;
@@ -1360,19 +1361,20 @@ 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) {
return -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;
}
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;
return result;
}
s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {

View File

@@ -1,25 +1,32 @@
#include <private/fa/pdm.h>
#include <revolution/types.h>
#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])
#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))
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 = (((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));
*p_start = read_partition_u32(buf, 454);
*p_count = read_partition_u32(buf, 458);
if (*p_start != 0 && *p_count != 0) {
if (index == 0) { *p_is_mbr = 1; }
} else {
@@ -71,15 +78,20 @@ 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;
@@ -112,14 +124,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 = sector + MBR_WORD(buf, 454);
sector = read_relative_start_sector(sector, 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 = base + MBR_WORD(buf, 470);
sector = read_relative_start_sector(base, 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

@@ -550,15 +550,6 @@ pf_s32 PFCACHE_DoWriteSector(PF_VOLUME* p_vol, PF_CACHE_PAGE** pp_head, const pf
#pragma dont_inline reset
static inline pf_u32 PFCACHE_RecordPageEndOverlap(PF_CACHE_PAGE* p_page, pf_u32 end_sector, pf_u32* p_num_success, pf_u32* p_num_rest_sector) {
pf_u32 last_sector = end_sector - 1;
pf_u32 num_overlap = end_sector - p_page->sector;
*p_num_success += num_overlap;
*p_num_rest_sector -= num_overlap;
p_page->stat |= 2;
return last_sector;
}
pf_s32 PFCACHE_DoWriteNumSectorAndFreeIfNeeded(PF_VOLUME* p_vol, PF_CACHE_PAGE** pp_head, const pf_u8* p_buf, pf_u32 sector,
pf_u32 num_sector, pf_u32* p_num_success) {
PF_CACHE_PAGE* p_page = PF_NULL;
@@ -566,8 +557,6 @@ pf_s32 PFCACHE_DoWriteNumSectorAndFreeIfNeeded(PF_VOLUME* p_vol, PF_CACHE_PAGE**
pf_u32 num_rest_sector = num_sector;
pf_u8* p_sbuf;
pf_u8* p_ebuf;
pf_u32 num_overlap;
pf_u32 last_sector;
*p_num_success = 0;
do {
if (p_page == PF_NULL) {
@@ -617,10 +606,10 @@ pf_s32 PFCACHE_DoWriteNumSectorAndFreeIfNeeded(PF_VOLUME* p_vol, PF_CACHE_PAGE**
(p_page->sector + p_page->size) >= (sector + num_sector)) {
pf_memcpy(p_page->buffer, (pf_u8*)&p_buf[(p_page->sector - sector) << p_vol->bpb.log2_bytes_per_sector],
(sector + num_sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector);
num_overlap = num_sector;
num_overlap += sector;
last_sector = PFCACHE_RecordPageEndOverlap(p_page, num_overlap, p_num_success, &num_rest_sector);
p_ebuf = &p_page->buffer[(last_sector - p_page->sector) << p_vol->bpb.log2_bytes_per_sector];
num_rest_sector -= p_page->size - ((p_page->sector + p_page->size) - (sector + num_sector));
*p_num_success += p_page->size - ((p_page->sector + p_page->size) - (sector + num_sector));
p_page->stat |= 2;
p_ebuf = &p_page->buffer[(p_page->size - ((p_page->sector + p_page->size) - (sector + num_sector)) - 1) << p_vol->bpb.log2_bytes_per_sector];
p_page->p_mod_sbuf = p_page->buffer;
if (p_page->p_mod_ebuf == NULL || p_page->p_mod_ebuf < p_ebuf) {
p_page->p_mod_ebuf = p_ebuf;

View File

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

View File

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

View File

@@ -571,8 +571,14 @@ static inline f32 clamp_acc_value(f32 value, f32 limit) {
}
static inline void smooth_acc_value(KPADInside* kpad, f32 value, f32* result) {
f32 delta = value - *result;
f32 amount = delta < 0.0f ? -delta : delta;
f32 amount;
f32 delta;
delta = value - *result;
if (delta < 0.0f) {
amount = -delta;
} else {
amount = delta;
}
if (amount >= kpad->value9C) {
amount = 1.0f;
} else {
@@ -612,12 +618,16 @@ 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) {
return;
}
if (status->dataFormat != 4 && status->dataFormat != 5) {
return;
if (status->error == 0 && status->device == 1) {
if (status->dataFormat == 4) {
goto read_extension_acceleration;
}
if (status->dataFormat == 5) {
goto read_extension_acceleration;
}
}
return;
read_extension_acceleration:
{
Vec extensionPrevious;
raw.x = clamp_acc_value((f32)-(s32)status->extension.fs.accX * kpad->value4E8, kp_fs_acc_max);
@@ -939,15 +949,20 @@ static void calc_dpd_variable(KPADInside* kpad, s8 valid) {
f32 dx;
f32 next;
dx = value - kpad->status.dist;
magnitude = dx < 0.0f ? -dx : dx;
if (dx < 0.0f) {
magnitude = -dx;
} else {
magnitude = dx;
}
if (magnitude >= kpad->value94) {
magnitude = 1.0f;
} else {
magnitude = magnitude / kpad->value94;
magnitude /= kpad->value94;
magnitude *= magnitude;
magnitude *= magnitude;
}
next = magnitude * kpad->value98 * dx;
magnitude *= kpad->value98;
next = magnitude * dx;
kpad->status.dist_vec = next;
if (next < 0.0f) {
kpad->status.dist_speed = -next;
@@ -958,12 +973,15 @@ static void calc_dpd_variable(KPADInside* kpad, s8 valid) {
}
}
{
f32 rotatedX = kpad->horizonTangent.x * kpad->dpdObjectDirection.x + kpad->horizonTangent.y * kpad->dpdObjectDirection.y;
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 rotatedY = -kpad->dpdObjectDirection.y * kpad->horizonTangent.x + kpad->dpdObjectDirection.x * kpad->horizonTangent.y;
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));
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);
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) {
@@ -1296,6 +1314,9 @@ 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;
@@ -1303,17 +1324,15 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
u32 ringCount;
s32 start;
s32 sampleIndex;
u32 remaining;
s32 remaining;
u32 remainingSamples;
u32 buttons;
u16 previousButtons;
u32 changed;
u32 extensionButtons;
u32 coreButtons;
u32 extensionButtons;
u8 device;
KPADSample latestSample;
KPADSample* sample;
KPADStatus* output;
if (WPADGetStatus() != 3) {
return 0;
}
@@ -1347,19 +1366,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) {
copyOutput--;
*(KPADSample*)copyOutput = kpad->ringData[sampleIndex];
output--;
*(KPADSample*)output = kpad->ringData[sampleIndex];
sampleIndex++;
if (sampleIndex >= 16) {
sampleIndex = 0;
@@ -1372,7 +1391,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.z * gravity.x * gravity.y != 0) {
if (gravity.x * gravity.y * gravity.z != 0) {
kpad->value4DC = 1.0f / gravity.x;
kpad->value4E0 = 1.0f / gravity.y;
kpad->value4E4 = 1.0f / gravity.z;
@@ -1382,7 +1401,7 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
kpad->value4E4 = 0.01f;
}
WPADGetAccGravityUnit(chan, WPAD_ACC_GRAVITY_UNIT_FS, &extensionGravity);
if (extensionGravity.z * extensionGravity.x * extensionGravity.y != 0) {
if (extensionGravity.x * extensionGravity.y * extensionGravity.z != 0) {
kpad->value4E8 = 1.0f / extensionGravity.x;
kpad->value4EC = 1.0f / extensionGravity.y;
kpad->value4F0 = 1.0f / extensionGravity.z;
@@ -1395,8 +1414,8 @@ s32 KPADRead(s32 chan, KPADStatus* statuses, u32 count) {
output = statuses + available;
--output;
device = 0xFD;
coreButtons = 0xFFFF;
extensionButtons = 0xFFFF;
coreButtons = 0xFFFF;
buttons = 0xFFFF;
do {
output--;
@@ -1433,18 +1452,20 @@ 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;
changed = previousButtons ^ buttons;
kpad->status.hold = buttons;
kpad->status.trig = changed & buttons;
heldButtons = (buttons & 0x9FFF) | (coreButtons & 0x6000);
changed = heldButtons ^ previousButtons;
kpad->status.hold = heldButtons;
kpad->status.trig = changed & heldButtons;
kpad->status.release = changed & previousButtons;
if (device == 2) {
previousButtons = kpad->status.ex_status.cl.hold;
kpad->status.ex_status.cl.hold = (u16)extensionButtons;
changed = previousButtons ^ (u16)extensionButtons;
u16 previousExtensionButtons;
previousExtensionButtons = kpad->status.ex_status.cl.hold;
extensionButtons = (u16)extensionButtons;
kpad->status.ex_status.cl.hold = extensionButtons;
changed = extensionButtons ^ previousExtensionButtons;
kpad->status.ex_status.cl.trig = changed & extensionButtons;
kpad->status.ex_status.cl.release = changed & previousButtons;
kpad->status.ex_status.cl.release = changed & previousExtensionButtons;
}
calc_button_repeat(kpad, device, ringCount);
remainingSamples = available;
@@ -1489,7 +1510,6 @@ void KPADInit(void) {
f32 zero;
f32 degreesToRadians;
f32 one;
f32* matrix;
u32 i;
s32 chan;
BOOL enabled;
@@ -1500,7 +1520,6 @@ void KPADInit(void) {
one = 1.0f;
zero = 0.0f;
degreesToRadians = 0.017453292f;
matrix = initial_rotation_matrix;
kpad = inside_kpads;
do {
kpad->dpdEnable = 1;
@@ -1528,9 +1547,9 @@ void KPADInit(void) {
}
referenceWidth = referenceWidth < referenceHeight ? referenceWidth : referenceHeight;
initial_rotation_matrix[0] = one;
matrix[1] = zero;
matrix[2] = zero;
matrix[3] = zero;
initial_rotation_matrix[1] = zero;
initial_rotation_matrix[2] = zero;
initial_rotation_matrix[3] = zero;
kpad->sensorBarScale = sensorDistance / referenceWidth;
kpad->value9C = zero;
kpad->value94 = zero;
@@ -1549,18 +1568,18 @@ void KPADInit(void) {
kpad->sensorHeightPending = 1;
kpad->sensorBarPosition = 1;
kpad->freeStyleAccelRotation = 0;
matrix[4] = zero;
initial_rotation_matrix[4] = zero;
rotationElement = (f32)cos(degreesToRadians * sensor_bar_angle_degrees);
matrix[5] = rotationElement;
initial_rotation_matrix[5] = rotationElement;
rotationElement = (f32)-sin(degreesToRadians * sensor_bar_angle_degrees);
matrix[7] = zero;
matrix[8] = zero;
matrix[6] = rotationElement;
initial_rotation_matrix[7] = zero;
initial_rotation_matrix[8] = zero;
initial_rotation_matrix[6] = rotationElement;
rotationElement = (f32)sin(degreesToRadians * sensor_bar_angle_degrees);
matrix[9] = rotationElement;
initial_rotation_matrix[9] = rotationElement;
rotationElement = (f32)cos(degreesToRadians * sensor_bar_angle_degrees);
matrix[10] = rotationElement;
matrix[11] = zero;
initial_rotation_matrix[10] = rotationElement;
initial_rotation_matrix[11] = zero;
{
i = 0;
do {

View File

@@ -64,7 +64,7 @@ struct NUPTitleInfo {
u32 ticketCertificateSize;
void* tmdCertificate;
u32 tmdCertificateSize;
void* tmdView;
ESTmdView* tmdView;
u32 tmdViewSize;
u8 hasTicket;
u8 hasTmd;
@@ -165,7 +165,7 @@ static ESError __nupHttpBufferFlushES(u8* buffer, unsigned long size, unsigned l
return result;
}
static inline char* __nupFindTag(char* response, const char* endTag, const char* startTag,
static inline char* __nupFindTag(char* response, const char* startTag, const char* endTag,
char** value, size_t* length) {
char* start;
char* end;
@@ -188,10 +188,7 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
size_t titleCount;
{
const char* versionEndTag = "</Version>";
const char* versionStartTag = "<Version>";
afterEnd = __nupFindTag(response, versionEndTag, versionStartTag,
&start, &valueLength);
afterEnd = __nupFindTag(response, "<Version>", "</Version>", &start, &valueLength);
if (afterEnd == 0 || valueLength != strlen("1.0") || strncmp(start, "1.0", valueLength) != 0) {
result = -5004;
goto done;
@@ -199,10 +196,7 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
}
{
const char* deviceIdEndTag = "</DeviceId>";
const char* deviceIdStartTag = "<DeviceId>";
afterEnd = __nupFindTag(response, deviceIdEndTag, deviceIdStartTag,
&start, &valueLength);
afterEnd = __nupFindTag(response, "<DeviceId>", "</DeviceId>", &start, &valueLength);
if (afterEnd == 0 || strtoull(start, 0, 10) != deviceId) {
result = -5004;
goto done;
@@ -210,10 +204,7 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
}
{
const char* messageIdEndTag = "</MessageId>";
const char* messageIdStartTag = "<MessageId>";
afterEnd = __nupFindTag(response, messageIdEndTag, messageIdStartTag,
&start, &valueLength);
afterEnd = __nupFindTag(response, "<MessageId>", "</MessageId>", &start, &valueLength);
if (afterEnd == 0 || valueLength != strlen(messageId) || strncmp(start, messageId, valueLength) != 0) {
result = -5004;
goto done;
@@ -221,10 +212,7 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
}
{
const char* errorCodeEndTag = "</ErrorCode>";
const char* errorCodeStartTag = "<ErrorCode>";
afterEnd = __nupFindTag(response, errorCodeEndTag, errorCodeStartTag,
&start, &valueLength);
afterEnd = __nupFindTag(response, "<ErrorCode>", "</ErrorCode>", &start, &valueLength);
if (afterEnd == 0 || valueLength != strlen("0") || strncmp(start, "0", valueLength) != 0) {
result = -5004;
goto done;
@@ -232,10 +220,7 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
}
{
const char* uploadAuditEndTag = "</UploadAuditData>";
const char* uploadAuditStartTag = "<UploadAuditData>";
afterEnd = __nupFindTag(response, uploadAuditEndTag, uploadAuditStartTag,
&start, &valueLength);
afterEnd = __nupFindTag(response, "<UploadAuditData>", "</UploadAuditData>", &start, &valueLength);
if (afterEnd == 0 || valueLength != strlen("0") || (*start != '0' && *start != '1')) {
result = -5004;
goto done;
@@ -248,10 +233,7 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
}
{
const char* contentPrefixEndTag = "</ContentPrefixURL>";
const char* contentPrefixStartTag = "<ContentPrefixURL>";
afterEnd = __nupFindTag(response, contentPrefixEndTag, contentPrefixStartTag,
&start, &valueLength);
afterEnd = __nupFindTag(response, "<ContentPrefixURL>", "</ContentPrefixURL>", &start, &valueLength);
if (afterEnd == 0 || valueLength == 0) {
result = -5004;
goto done;
@@ -266,10 +248,7 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
}
{
const char* uncachedPrefixEndTag = "</UncachedContentPrefixURL>";
const char* uncachedPrefixStartTag = "<UncachedContentPrefixURL>";
afterEnd = __nupFindTag(response, uncachedPrefixEndTag, uncachedPrefixStartTag,
&start, &valueLength);
afterEnd = __nupFindTag(response, "<UncachedContentPrefixURL>", "</UncachedContentPrefixURL>", &start, &valueLength);
if (afterEnd == 0 || valueLength == 0) {
result = -5004;
goto done;
@@ -286,14 +265,8 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
titleCount = 0;
cursor = response;
{
const char* versionEndTag = "</Version>";
const char* versionStartTag = "<Version>";
const char* titleIdEndTag = "</TitleId>";
const char* titleIdStartTag = "<TitleId>";
while ((cursor = __nupFindTag(cursor, titleIdEndTag, titleIdStartTag,
&start, &valueLength)) != 0 &&
(cursor = __nupFindTag(cursor, versionEndTag, versionStartTag,
&start, &valueLength)) != 0) {
while ((cursor = __nupFindTag(cursor, "<TitleId>", "</TitleId>", &start, &valueLength)) != 0 &&
(cursor = __nupFindTag(cursor, "<Version>", "</Version>", &start, &valueLength)) != 0) {
titleCount++;
}
}
@@ -306,19 +279,13 @@ static s32 __nupParseServerInfo(NUPContextInfo* context, char* response, char* m
memset(context->titles, 0, titleCount * sizeof(NUPTitleInfo));
cursor = response;
{
const char* versionEndTag = "</Version>";
const char* versionStartTag = "<Version>";
const char* titleIdEndTag = "</TitleId>";
const char* titleIdStartTag = "<TitleId>";
char* titleStart;
char* versionStart;
size_t titleLength;
size_t versionLength;
char* parsedEnd;
while ((cursor = __nupFindTag(cursor, titleIdEndTag, titleIdStartTag,
&titleStart, &titleLength)) != 0 &&
(cursor = __nupFindTag(cursor, versionEndTag, versionStartTag,
&versionStart, &versionLength)) != 0) {
while ((cursor = __nupFindTag(cursor, "<TitleId>", "</TitleId>", &titleStart, &titleLength)) != 0 &&
(cursor = __nupFindTag(cursor, "<Version>", "</Version>", &versionStart, &versionLength)) != 0) {
unsigned long long titleId = strtoull(titleStart, &parsedEnd, 16);
if (parsedEnd != titleStart + titleLength) {
result = -5004;
@@ -727,7 +694,7 @@ static s32 __nupGetBootVersion(NUPContextInfo* context, ESTitleVersion* title) {
title->hasContent = 1;
result = __nupSetBootTitleVersion(title);
} else {
u32 i;
s32 i;
for (i = 0; i < context->ownedTitleCount; i++) {
if (context->ownedTitleIds[i] == title->titleId) {
break;
@@ -764,18 +731,16 @@ static s32 __nupGetBootVersion(NUPContextInfo* context, ESTitleVersion* title) {
goto done;
}
}
u32 installedContentCount = title->contentCount;
if (installedContentCount < tmdView->head.numContents) {
if (title->contentCount < tmdView->head.numContents) {
goto done;
}
s32 contentIndex;
for (contentIndex = 0; contentIndex < tmdView->head.numContents; contentIndex++) {
if (!__nupHasInstalledContent(title, tmdView->contents[contentIndex].cid,
installedContentCount)) {
for (i = 0; i < tmdView->head.numContents; i++) {
ESContentId contentId = tmdView->contents[i].cid;
if (!__nupHasInstalledContent(title, contentId, title->contentCount)) {
break;
}
}
if (contentIndex < tmdView->head.numContents) {
if (i < tmdView->head.numContents) {
goto done;
}
title->hasContent = 1;
@@ -870,7 +835,7 @@ static s32 __nupGetTmd(NUPTitleInfo* title, char* contentPrefixUrl) {
result = ES_DiGetTmdView((ESTitleMeta*)title->tmd, title->tmdSize, 0,
&title->tmdViewSize);
if (result == 0) {
title->tmdView = nup::__nupMalloc(title->tmdViewSize);
title->tmdView = (ESTmdView*)nup::__nupMalloc(title->tmdViewSize);
if (title->tmdView == 0) {
result = -5000;
} else {
@@ -907,23 +872,26 @@ static s32 __nupGetTitleSize(NUPTitleInfo* title) {
if (title->hasTmd == 0 && title->contentCount == 0) {
title->progressStep += 4;
}
title->progressStep += 5;
title->installedContentSize += 0x4000;
title->progressStep++;
title->installedContentSize += (title->tmdSize + 0x3fff) & 0xffffc000;
title->progressStep++;
title->installedContentSize += 0x8000;
title->progressStep++;
title->installedContentSize += 0x4000;
title->progressStep++;
title->installedContentSize += 0x4000;
for (contentIndex = 0; contentIndex < ((ESTmdView*)title->tmdView)->head.numContents; contentIndex++) {
ESCmdView* content = &((ESTmdView*)title->tmdView)->contents[contentIndex];
ESContentId contentId = content->cid;
title->progressStep++;
for (contentIndex = 0; contentIndex < title->tmdView->head.numContents; contentIndex++) {
ESContentId contentId = title->tmdView->contents[contentIndex].cid;
if (!__nupHasContent(title, contentId) ||
title->titleId == 0x0000000100000001ULL) {
if (content->size > 0xffffffefULL) {
if (title->tmdView->contents[contentIndex].size > 0xffffffefULL) {
result = -0x1394;
break;
}
title->updateContentSize += (content->size + 0xf) & 0xfffffffffffffff0ULL;
title->installedContentSize += (((ESTmdView*)title->tmdView)->contents[contentIndex].size + 0x3fff) & 0xffffffffffffc000ULL;
title->updateContentSize += (title->tmdView->contents[contentIndex].size + 0xf) & 0xfffffffffffffff0ULL;
title->installedContentSize += (title->tmdView->contents[contentIndex].size + 0x3fff) & 0xffffffffffffc000ULL;
title->progressStep++;
}
}

View File

@@ -1260,12 +1260,12 @@ s32 WADBackupEx(u64 titleId, u32 flags, MEMAllocator* allocator, char* path, u32
titleMetaSize = 0;
contentDataSize = 0;
titleMetaBuffer = 0;
titleMeta = 0;
files = 0;
titleMeta = 0;
outputBuffer = 0;
titleMetaBuffer = 0;
fileCount = 0;
importedSize = 0;
outputBuffer = 0;
encryptionBuffer = 0;
fileDataSize = 0;
installedContentCount = 0;

View File

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

View File

@@ -12,7 +12,7 @@ extern CDBErr CDBDatabaseFree(CDBDatabase* database);
extern CDBErr CDBRecordCreateAtOnce(CDBRecord* record, CDBDatabase* database, const char* desc, char* fileType, CDBDate epoch, int gameCode, u16 makerCode, void* buffer, u32 size);
extern void CDBRecordInitDescriptor(CDBRecord* record, CDBDatabase* database, CDBRecordKey* key);
extern BOOL CDBRecordIsExistFile(CDBRecord* record);
extern void CDBRecordOpenReadOnly();
extern CDBErr CDBRecordOpenReadOnly(CDBRecord* record);
extern void CDBRecordKeyArrayInit();
extern void CDBRecordKeyArraySetReverse();
extern void CDBRecordKeyArraySize();
@@ -357,79 +357,43 @@ CDBErr CDBDatabaseSearchConditionsIsMatch(CDBSearchConditions* conditions, char*
return CDB_ERROR_1;
}
asm CDBErr CDBDatabaseSearchCallCallback() {
#ifdef __MWERKS__
nofralloc
stwu r1, -0x20(r1)
mflr r0
stw r0, 0x24(r1)
stw r31, 0x1c(r1)
mr r31, r3
stw r30, 0x18(r1)
mr r30, r5
stw r29, 0x14(r1)
mr r29, r4
bl CDBLock
lwz r3, 0x8(r31)
cmpwi r3, 0x0
beq CDBDatabaseSearchCallCallback_L_81487C78
addis r3, r3, 0x1
lwz r31, -0x3ff0(r3)
b CDBDatabaseSearchCallCallback_L_81487C7C
CDBDatabaseSearchCallCallback_L_81487C78:
li r31, 0x0
CDBDatabaseSearchCallCallback_L_81487C7C:
bl CDBUnlock
mr r3, r29
addi r4, r30, 0x8
bl CDBDatabaseSearchConditionsIsMatch
cmpwi r3, 0x0
beq CDBDatabaseSearchCallCallback_L_81487D0C
lwz r0, 0x24(r29)
cmpwi r0, 0x0
beq CDBDatabaseSearchCallCallback_L_81487CCC
rlwinm. r0, r31, 0, 30, 30
beq CDBDatabaseSearchCallCallback_L_81487CB4
mr r3, r30
bl CDBRecordOpen
b CDBDatabaseSearchCallCallback_L_81487CBC
CDBDatabaseSearchCallCallback_L_81487CB4:
mr r3, r30
bl CDBRecordOpenReadOnly
CDBDatabaseSearchCallCallback_L_81487CBC:
cmpwi r3, 0x20
bne CDBDatabaseSearchCallCallback_L_81487CD0
li r3, 0x0
b CDBDatabaseSearchCallCallback_L_81487D10
CDBDatabaseSearchCallCallback_L_81487CCC:
li r3, 0x0
CDBDatabaseSearchCallCallback_L_81487CD0:
cmpwi r3, 0x0
bne CDBDatabaseSearchCallCallback_L_81487D10
lwz r12, 0x18(r29)
mr r4, r30
lwz r3, 0x1c(r29)
mtctr r12
bctrl
stw r3, 0x20(r29)
lwz r0, 0x38(r30)
cmpwi r0, 0x0
beq CDBDatabaseSearchCallCallback_L_81487D0C
mr r3, r30
bl CDBRecordClose
b CDBDatabaseSearchCallCallback_L_81487D0C
b CDBDatabaseSearchCallCallback_L_81487D10
CDBDatabaseSearchCallCallback_L_81487D0C:
li r3, 0x0
CDBDatabaseSearchCallCallback_L_81487D10:
lwz r0, 0x24(r1)
lwz r31, 0x1c(r1)
lwz r30, 0x18(r1)
lwz r29, 0x14(r1)
mtlr r0
addi r1, r1, 0x20
blr
#endif
CDBErr CDBDatabaseSearchCallCallback(CDBDatabase* database, CDBSearchConditions* conditions, CDBRecord* record) {
CDBDatabaseState* instance;
u32 flags;
CDBErr result;
CDBLock();
instance = database->instance;
if (instance != NULL) {
flags = instance->flags;
} else {
flags = 0;
}
CDBUnlock();
if (CDBDatabaseSearchConditionsIsMatch(conditions, record->key.keyString)) {
if (conditions->openRecord) {
if (flags & 2) {
result = CDBRecordOpen(record);
} else {
result = CDBRecordOpenReadOnly(record);
}
if (result == CDB_ERROR_32) {
return CDB_ERROR_OK;
}
} else {
result = CDB_ERROR_OK;
}
if (result == CDB_ERROR_OK) {
conditions->keepSearching = conditions->callback(conditions->callbackArg, record);
if (record->file != NULL) {
CDBRecordClose(record);
}
} else {
return result;
}
}
return CDB_ERROR_OK;
}
asm CDBErr CDBDatabaseSearchRecordLayer() {

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[(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 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 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])
#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))))
void AESiEncryptBlock(AESContext* context, u32* output, const u32* input) {
u32 rounds = context->rounds;
@@ -198,22 +198,24 @@ 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 a,b,c,d;
u32 b;
u32 a;
u32 c;
u32 d;
key += rounds*4;
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=keys[word];
u32 value=context->keys[round*4 + word];
u32 twice=DOUBLE_BYTES(value);
u32 four=DOUBLE_BYTES(twice);
u32 eight=DOUBLE_BYTES(four)^value;
u32 mixed=eight ^ (four ^ ROTATE(eight,8));
mixed ^= twice ^ ROTATE(mixed,8);
mixed ^= value ^ ROTATE(mixed,8);
keys[word]=mixed;
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;
}
}
context->needsTransform=0;
@@ -228,10 +230,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]=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];
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]);
}
BOOL NETAESCreateEx(AESContext* context, const void* key, u32 keyLength, const void* iv, const AESBlockMode* mode) {

View File

@@ -75,25 +75,34 @@ static inline u32 rotateSum(u32 state, const u32* word, u32 constant, int shift)
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))
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* word;
u32* constant;
u32* index;
int round;
u32* block;
u32* constant;
int round;
u32* word;
block = context->buffer32;
word = block;
constant = constants;
for (round = 0; round < 4; ++round) {
STEP(a,b,c,d,(b & c) | (~b & d),word++,7); ++constant;
STEP(d,a,b,c,(a & b) | (~a & c),word++,12); ++constant;
STEP(c,d,a,b,(d & a) | (~d & b),word++,17); ++constant;
STEP(b,c,d,a,(c & d) | (~c & a),word++,22); ++constant;
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) {

View File

@@ -7,8 +7,7 @@ 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) {
if((character>='A') & (character<='Z')) character+=32;
return character;
return ((character >= 'A') & (character <= 'Z')) ? character + 32 : character;
}
s32 NHTTPi_strnicmp(const char* left, const char* right, s32 length) {
@@ -127,12 +126,13 @@ s32 NHTTPi_intToStr(char* destination, u32 value) {
}
s32 NHTTPi_compareToken(const char* left, const char* right) {
for (;;) {
int rightCharacter=LowerCase(*right);
int leftCharacter=LowerCase(*left);
if(leftCharacter!=rightCharacter) break;
if(*left==0 || *left==' ') return 0;
++left; ++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;
}
return -1;
}
@@ -158,20 +158,24 @@ s32 NHTTPi_strtonum(const char* string, u32 length) {
}
s32 NHTTPi_Base64Encode(char* destination, const char* source) {
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;
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;
}
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,8 +7,9 @@ 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 ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
if ((calendarYear % 4 == 0 && calendarYear % 100 != 0) || calendarYear % 400 == 0)
leap = TRUE;
return leap;
}
@@ -152,7 +153,7 @@ NWC24Err NWC24iIsValidDate(u16 year, u8 month, u8 day) {
s32 ConvertDateToDays(u16 year, u8 month, u8 day) {
s32 daysOfYear;
s32 yearOffset;
s32 centuryLeapDays;
s32 totalDays;
s32 commonLeapDays;
BOOL isLeapYear;
@@ -190,11 +191,10 @@ validDate:
}
yearOffset = year - 1900;
centuryLeapDays = (yearOffset + 299) / 400;
daysOfYear += yearOffset * 365;
daysOfYear += centuryLeapDays;
totalDays = daysOfYear + (yearOffset + 299) / 400;
commonLeapDays = (yearOffset - 1) / 4 - (yearOffset - 1) / 100;
return daysOfYear + commonLeapDays;
return totalDays + 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 (currentMonth == 2 && IsLeapYear(*year)) {
if (*parsedMonth == 2 && IsLeapYear(*year)) {
days -= 29;
} else {
days -= DAYS_OF_MONTH[currentMonth - 1];

View File

@@ -253,6 +253,37 @@ static inline NWC24Err GetMaxDlTaskCount(u16* count) {
return NWC24_OK;
}
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;
}
NWC24Err NWC24InitDlTask(NWC24DlTask* dlTask, NWC24DLType dlType) {
char homePath[64] = {0};
u32 nwc24IdHigh;
@@ -304,7 +335,7 @@ NWC24Err NWC24InitDlTask(NWC24DlTask* dlTask, NWC24DLType dlType) {
strcpy(task->fileName, "content.bin");
}
result = ValidateDlTask(dlTask, TRUE);
result = ValidateWritableDlTask(dlTask);
return result >> 31;
}
@@ -687,10 +718,10 @@ NWC24Err NWC24IterateDlTaskEx(NWC24DlIterateWork* dlIterateWork, NWC24DlId* dlIt
return NWC24_ERR_DONE;
}
static inline NWC24Err SetDlTaskAccessTime(NWC24DlTask* dlTask, OSTime time) {
static inline NWC24Err SetDlTaskAccessTime(const NWC24DlTask* dlTask, OSTime time) {
NWC24Work* work = NWC24WorkP;
DlTaskListHeader* header = work != NULL ? (DlTaskListHeader*)work->dlHead : NULL;
DlTaskData* task = (DlTaskData*)dlTask;
const DlTaskData* task = (const DlTaskData*)dlTask;
NWC24Err result;
u16 taskId;
if (task == NULL) { result = NWC24_ERR_INVALID_VALUE; }
@@ -706,19 +737,39 @@ static inline NWC24Err SetDlTaskAccessTime(NWC24DlTask* dlTask, OSTime time) {
return NWC24_OK;
}
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; }
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;
}
return NWC24_OK;
}
static inline NWC24Err UpdateDlTaskAccessTime(NWC24DlTask* dlTask) {
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) {
OSTime universalTime;
NWC24Err result = NWC24iGetUniversalTime(&universalTime);
if (result >= NWC24_OK) {
@@ -728,24 +779,30 @@ static inline NWC24Err UpdateDlTaskAccessTime(NWC24DlTask* dlTask) {
return result;
}
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 = ValidateDlTask(dlTask, TRUE);
result = ValidateWritableDlTask(dlTask);
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;
}
ClearDlTaskError(dlTask);
if (task->retryEnabled == 1) {
while ((result = CheckDlTaskRetry(dlTask, task->retryCount)) == NWC24_ERR_DISABLED) {
task->retryCount = (task->retryCount + 1) & 0x1f;
@@ -1044,6 +1101,7 @@ closeList:
NWC24Err NWC24iCheckDlHeaderConsistency(DlTaskListHeader* header, BOOL repair) {
NWC24DlTask task;
NWC24DlTask* taskPointer = &task;
NWC24DlTask* readTask = &task;
NWC24DlId taskId;
NWC24Err result;
DlTaskListHeader* currentHeader;
@@ -1060,7 +1118,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(taskPointer, taskId);
result = ReadDlTaskInline(readTask, taskId);
if (result < NWC24_OK) {
if (ValidateDlTask(taskPointer, FALSE) == NWC24_OK) {
result = DeleteDlTask(taskPointer);
@@ -1227,32 +1285,44 @@ NWC24Err StoreDlTask(NWC24DlTask* dlTask) {
return closeResult;
}
static inline NWC24Err ValidateDlTaskUrl(NWC24DlTask* dlTask) {
DlTaskData* task = (DlTaskData*)dlTask;
DlTaskListHeader* header = GetCachedDlHeader();
static inline NWC24Err CheckDlUrl(const DlTaskData* task) {
const char* url = task->url;
NWC24Err 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;
result = NWC24iCheckStringLength(url, 7, 0x100);
if (result < NWC24_OK) {
return result;
}
if (strncmp(url, "http://", 7) != 0 && strncmp(url, "https://", 8) != 0) {
return NWC24_ERR_FORMAT;
}
return NWC24_OK;
}
static inline NWC24Err FindFreeDlTask(NWC24DlTask* dlTask, u16 taskCount, u16 maxTaskCount) {
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) {
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++) {
header = GetCachedDlHeader();
if (header->entries[taskId].appId == 0) {
if (GetDlTaskEntryHeader(taskId)->appId == 0) {
((DlTaskData*)dlTask)->id = taskId;
return NWC24_OK;
}
@@ -1260,24 +1330,10 @@ static inline NWC24Err FindFreeDlTask(NWC24DlTask* dlTask, u16 taskCount, u16 ma
return NWC24_ERR_FULL;
}
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;
}
static inline NWC24Err RetryAndStoreDlTask(NWC24DlTask* dlTask) {
DlTaskData* task = (DlTaskData*)dlTask;
NWC24Err result;
if (task->retryEnabled == 1) {
while ((result = CheckDlTaskRetry(dlTask, task->retryCount)) == NWC24_ERR_DISABLED) {
task->retryCount = (task->retryCount + 1) & 0x1f;
@@ -1286,6 +1342,19 @@ static inline NWC24Err UpdateDlTaskInline(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,22 +73,28 @@ NWC24Err NWC24ReadMsgSubjectPublic(const NWC24MsgObj* msg, u16* subject, u32* su
truncated = TRUE;
}
result = NWC24ReadMsgSubject(msg, (char*)work, subjectDataSize);
if (result != NWC24_OK) {
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
} else {
goto done;
}
switch (result) {
case NWC24_OK:
break;
default:
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
break;
}
return result;
}
charsetBuffer = NWC24WorkP->stringWork;
result =
NWC24DecodeMIMEHeaderFieldBody((u8*)charsetBuffer, 0x40, decodedData, decodedCapacity, &decodedSize, work, subjectDataSize);
if (result != NWC24_OK) {
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
} else {
goto done;
}
switch (result) {
case NWC24_OK:
break;
default:
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
break;
}
return result;
}
*subjectSize = originalSize;
result =
@@ -140,11 +146,15 @@ NWC24Err NWC24ReadMsgTextPublic(const NWC24MsgObj* msg, u16* text, u32* textSize
}
charsetBuffer = NWC24WorkP->stringWork + 0x20;
result = NWC24ReadMsgTextEx(msg, (char*)work, textDataSize, charsetBuffer, 0x40);
if (result != NWC24_OK) {
if (result != NWC24_ERR_OVERFLOW) {
goto done;
}
truncated = TRUE;
switch (result) {
case NWC24_OK:
break;
default:
if (result == NWC24_ERR_OVERFLOW) {
truncated = TRUE;
break;
}
return result;
}
*textSize = originalSize;
@@ -233,11 +243,12 @@ NWC24Err NWC24SetMsgSubjectAndTextPublic(NWC24MsgObj* msg, const u16* subject, u
NWC24MsgObjPrivate* privateMsg = (NWC24MsgObjPrivate*)msg;
NWC24Work* nwcWork;
u32 textSourceSize;
u32 textCapacity;
u32 textWorkSize;
BOOL is7Bit;
NWC24Charset charset;
u32 subjectWorkSize;
u8* subjectWork;
u32 subjectWorkSize;
NWC24Err result;
if (((privateMsg->type & 0x100) == 0) || ((privateMsg->type & 0x200) != 0)) {
@@ -273,7 +284,8 @@ NWC24Err NWC24SetMsgSubjectAndTextPublic(NWC24MsgObj* msg, const u16* subject, u
if (NWC24ParseCharsetStr(&charset, nwcWork->stringWork) != NWC24_OK) {
charset = 0;
}
textWorkSize = (workSize * textSize) / (textSize + subjectSize * 4);
textCapacity = (workSize * textSize) / (textSize + subjectSize * 4);
textWorkSize = textCapacity;
subjectWorkSize = workSize - textWorkSize;
subjectWork = work + textWorkSize;
textSourceSize = textSize;

View File

@@ -8,6 +8,7 @@
#include <private/dvd.h>
#include <private/nand.h>
#include <private/os.h>
#include <revolution/os/OSBootInfo.h>
#include <private/vi.h>
#include <private/hollywood/flipper.h>
@@ -242,14 +243,63 @@ BOOL BS2IsDiagDisc() { return (u8)(*(u8 *)OSPhysicalToCached(OS_ADDR_BOOT_INFO)
extern vu32 BS2VideoMode;
extern vu32 __DVDLayoutFormat;
void Run(u32 entryPoint, void *start, u32 blockCount, u32 argument) {
u8 *block = start;
for (; blockCount != 0; --blockCount) {
__dcbz(block, 0);
__dcbf(block, 0);
block += 32;
}
((void (*)(u32))entryPoint)(argument);
asm void Run(u32 entryPoint, void *start, u32 blockCount, u32 argument) {
// clang-format off
#ifdef __MWERKS__
nofralloc
mtctr r5
mtlr r3
li r0, 0
li r2, 0
li r3, 0
li r5, 0
li r7, 0
li r8, 0
li r9, 0
li r10, 0
li r11, 0
li r12, 0
li r13, 0
li r14, 0
li r15, 0
li r16, 0
li r17, 0
li r18, 0
li r19, 0
li r20, 0
li r21, 0
li r22, 0
li r23, 0
li r24, 0
li r25, 0
li r26, 0
li r27, 0
li r28, 0
li r29, 0
li r30, 0
li r31, 0
// 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
}
BOOL BS2GetLockedTitles(ESTitleId *pTitleIds, u32 *count) {
@@ -439,7 +489,7 @@ BOOL BS2StartLoadingTitle(ESTitleId titleId, ESTicketView *pTicketView) {
return FALSE;
}
void callback(s32 result) { LowReadResult = result; }
static void callback(u32 result) { LowReadResult = result; }
ESError BS2ESGetTicketViews(IOSFd *descriptor, ESTitleId titleId, ESTicketView *views, u32 *count) {
struct {
@@ -676,7 +726,7 @@ void BS2StartGame() {
BS2Report("DVDLowInit done\n");
LowReadResult = 0;
DVDLowReadDiskID(&DiskID, (DVDLowCallback)callback);
DVDLowReadDiskID(&DiskID, callback);
while (LowReadResult == 0) {
}
@@ -690,7 +740,7 @@ void BS2StartGame() {
} else {
OSReport("\nDisk error(%d) has occurred", LowReadResult);
LowReadResult = 0;
DVDLowRequestError((DVDLowCallback)callback);
DVDLowRequestError(callback);
while (LowReadResult == 0) {
}
driveError = DVDLowGetImmBufferReg() & 0xFF000000;
@@ -720,10 +770,10 @@ disk_done:
if (PartitionParams.numTmdBytes != 0) {
DVDLowOpenPartitionWithTmdAndTicketView((u32)((DVDPartitionInfo *)GamePartition)->partition, &PartitionParams.ticketView,
PartitionParams.numTmdBytes, &PartitionParams.tmd, PartitionParams.numCertBytes,
PartitionParams.certificates, (DVDLowCallback)callback);
PartitionParams.certificates, callback);
} else {
DVDLowOpenPartition((u32)((DVDPartitionInfo *)GamePartition)->partition, NULL, 0, NULL, &PartitionParams.tmd,
(DVDLowCallback)callback);
callback);
}
while (LowReadResult == 0) {
}
@@ -741,7 +791,7 @@ disk_done:
} else {
OSReport("\nDisk error(%d) has occurred", LowReadResult);
LowReadResult = 0;
DVDLowRequestError((DVDLowCallback)callback);
DVDLowRequestError(callback);
while (LowReadResult == 0) {
}
driveError = DVDLowGetImmBufferReg() & 0xFF000000;
@@ -803,7 +853,7 @@ void BS2StartGCGame() {
OSTime time;
StartingGame = TRUE;
while (DVDGetCommandBlockStatus(&CoverBlock) != DVD_STATE_IDLE) {
while (CoverBlock.state != DVD_STATE_IDLE) {
}
soundMode = SCGetSoundMode();
@@ -1295,6 +1345,9 @@ BS2State BS2Tick() {
char *ticketByte;
u32 entryCount;
u32 readInterruptsEnabled;
u32 readAddress;
const char *discTitle;
const DVDDiskID *bootDisc;
switch (State) {
case 0:
BS2Report("No Disk : %d\n", BS2NoDisk);
@@ -1308,9 +1361,10 @@ BS2State BS2Tick() {
(*(u32 *)0x800030d4) = 0;
DvdTransferred = 0;
DvdTransferLength = 0;
status = BS2NoDisk;
AudioBufferUnconfigured = 1;
CoverBlock.state = 0;
if (BS2NoDisk != 0)
if (status != 0)
State = BS2_STT_NO_DISK;
else if (BS2DriveReset != 0)
State = BS2_STT_2;
@@ -1389,11 +1443,13 @@ BS2State BS2Tick() {
case 5:
status = CheckBS2CommandStatus();
if (status != 0) {
if (((*(u32 *)0x8000002c) & 0xf0000000) == 0)
(*(u16 *)0x800030e6) = 0x8002;
else
(*(u16 *)0x800030e6) = DriveInfo.deviceCode | 0x8000;
State = BS2_STT_8;
if ((((const OSBootInfo *)0x80000000)->consoleType & 0xf0000000) == 0) {
__OSDeviceCode = 0x8002;
State = BS2_STT_8;
} else {
__OSDeviceCode = DriveInfo.deviceCode | 0x8000;
State = BS2_STT_8;
}
}
break;
case 6:
@@ -1417,17 +1473,17 @@ BS2State BS2Tick() {
break;
case 9:
case 10: {
DVDDiskID *bootDisc;
status = CheckBS2CommandStatus();
if (status == 0)
break;
memcpy((void *)0x80000000, &DiskID, sizeof(DVDDiskID));
bootDisc = (DVDDiskID *)0x80000000;
bootDisc = (const DVDDiskID *)0x80000000;
if (bootDisc->rvlMagic == 0x5d1c9ea3) {
status = strncmp((char *)bootDisc, "RAAE", 4);
if (status == 0 || strncmp((char *)bootDisc, "408", 3) == 0 ||
strncmp((char *)bootDisc, "410", 3) == 0 ||
strncmp((char *)bootDisc, "410", 3) == 0)
discTitle = (const char *)0x80000000;
status = strncmp(discTitle, "RAAE", 4);
if (status == 0 || strncmp(discTitle, "408", 3) == 0 ||
strncmp(discTitle, "410", 3) == 0 ||
strncmp(discTitle, "410", 3) == 0)
regionMatches = FALSE;
else
regionMatches = TRUE;
@@ -1449,8 +1505,8 @@ BS2State BS2Tick() {
State = BS2_STT_11;
}
case 0xb: {
DVDDiskID *bootDisc = (DVDDiskID *)0x80000000;
u32 audioBufferSize;
bootDisc = (const DVDDiskID *)0x80000000;
if (AudioBufferUnconfigured == 0) {
State = BS2_STT_GC_GAME;
break;
@@ -1796,21 +1852,24 @@ invalidRvlRegion:
State = BS2_STT_RESET_SYSTEM;
break;
}
if (GamePartition == 0) {
if (GamePartition != 0) {
State = BS2_STT_37;
} else {
State = BS2_STT_54;
break;
}
State = BS2_STT_37;
case 0x25:
case 0x25: {
u32 partitionOffset = (u32)((DVDPartitionInfo *)GamePartition)->partition;
if (BS2BootFromCache != 0) {
BS2Report("Open partition from cache.dat\n");
NandPending = 1;
BS2NANDDivideReadAsync(&BS2CacheFileInfo, &PartitionParams.tmd, 0x4a00, BS2NANDCallback, &BS2NandBlock);
} else
DVDOpenPartitionAsync(&Block, &PartitionParams.tmd, (u32)((DVDPartitionInfo *)GamePartition)->partition, BS2DVDCallback);
DVDOpenPartitionAsync(&Block, &PartitionParams.tmd, partitionOffset, BS2DVDCallback);
PartitionOpen = 1;
State = BS2_STT_38;
break;
}
case 0x26: {
status = CheckBS2CommandStatus();
if (status == 0)
@@ -1837,13 +1896,16 @@ invalidRvlRegion:
titlePrefix = titleCode >> 0x18;
titleCharacters[3] = (u8)titleCode;
titleCharacters[0] = (char)(titleCode >> 0x18);
if (titlePrefix < 'R') {
if (titlePrefix == 'D')
goto check_title_region;
} else if (titlePrefix < 'U')
switch (titlePrefix) {
case 'D':
case 'R':
case 'S':
case 'T':
goto check_title_region;
regionMatches = TRUE;
goto title_region_checked;
default:
regionMatches = TRUE;
goto title_region_checked;
}
{
check_title_region:
if (titleCharacters[3] == 0x41) {
@@ -1966,8 +2028,9 @@ 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 = loaderRead.address;
LoaderAddress = readAddress;
LoaderOffset = loaderRead.offset;
if ((*(s32 *)DvdProgress != 0) && (BS2BootFromCache == 0)) {
DvdReadPending = 1;
@@ -2001,8 +2064,8 @@ invalidRvlRegion:
if (status == 0)
OSPanic("BS2Mach.c", 0x12c8, "BS2 ERROR >>> Cannnot alloc 0x%08x from MEMAllocator", bannerFile.length);
BannerLength = bannerFile.length;
BannerBuffer = OSRoundDown32B(BannerAllocation) + 32;
BS2Report("BannerBufferAddr : %08X\n");
BannerBuffer = BannerAllocation + 32 - BannerAllocation % 32;
BS2Report("BannerBufferAddr : %08X\n", BannerBuffer);
} 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 u32 EntriesCount = 0;
static volatile u32 EntriesCount = 0;
static u32* pFlags = NULL;
static void* MemAllocator = NULL;
int State = 0;
volatile int State = 0;
BS2UpdateEntry* CurrentEntry = 0;
static u32 RebootRequired = 0;
static BOOL ContainsSeatTitles = 0;
@@ -77,7 +77,8 @@ void BS2UpdateInit(void* allocator) {
OSResumeThread(&Thread);
}
static void* UpdateThread(void* argument) {
static inline u32 BS2SelectUpdateEntries(void) {
BOOL missingFile;
u32 selectedCount;
u32 requiredBytes;
@@ -89,7 +90,6 @@ static void* UpdateThread(void* argument) {
u32 selectedSeatCount;
BOOL regionValid;
u32 titleRegion;
s32 importResult;
struct {
u32 freeChannels;
u32 freeBlocks;
@@ -102,9 +102,6 @@ static void* UpdateThread(void* argument) {
DVDFileInfo file;
} scratch;
BS2Report("Start update thread\n");
StartUpdate = 0;
CancelUpdate = 0;
missingFile = FALSE;
selectedCount = 0;
requiredBytes = 0;
@@ -162,12 +159,12 @@ product_region_checked:
if (!regionValid) {
BS2Report("Error: failed to check product region.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
if (!SCGetProductAreaString(scratch.productArea, sizeof(scratch.productArea))) {
BS2Report("Error: failed to get product information.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
strcpy(scratch.updatePath, "__update.inf");
strcat(scratch.updatePath, ".");
@@ -183,46 +180,46 @@ product_region_checked:
if (DVDConvertPathToEntrynum(scratch.updatePath) < 0) {
BS2Report("Error: update information file is not found.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
break;
default:
BS2Report("Error: update information file is not found.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
}
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_done;
goto selection_complete;
}
if (DVDReadPrio(&scratch.file, &UpdateHeader0, sizeof(UpdateHeader0), 0, 2) < 0) {
BS2Report("Error: failed to read update information header.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
if (UpdateHeader0.wadCount == 0) {
BS2Report("Error: no entry.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
if (UpdateHeader0.wadCount > 32) {
BS2Report("Error: found too many entries.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
UpdateHeader0.wadCount += UpdateHeader0.extraCount;
if (UpdateHeader0.wadCount > BS2_UPDATE_ENTRY_COUNT) {
BS2Report("Error: found too many extra entries.");
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
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_done;
goto selection_complete;
}
{
BS2UpdateEntry *discEntries = UPDATE_DISC_ENTRIES;
@@ -245,7 +242,7 @@ product_region_checked:
BS2Report("Cannot get physical MEM2 size\n");
State = 5;
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
if (DVDOpen(discEntries[index].path, &scratch.file) < 0) {
BS2Report("%s is not found\n", discEntries[index].path);
@@ -305,8 +302,10 @@ product_region_checked:
BS2Report("Error: found too many extra entries.");
goto seats_done;
}
seatEntries = &UPDATE_DISC_ENTRIES[UpdateHeader0.wadCount];
selectedSeats = &EntriesToImport[selectedCount];
seatEntries = UPDATE_DISC_ENTRIES;
seatEntries += UpdateHeader0.wadCount;
selectedSeats = EntriesToImport;
selectedSeats += selectedCount;
if (DVDReadPrio(&scratch.file, seatEntries, UpdateHeader1.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
BS2Report("Error: failed to read update information.");
goto seats_done;
@@ -408,7 +407,7 @@ seats_done:
if (missingFile) {
State = 5;
selectedCount = 0;
goto selection_done;
goto selection_complete;
}
pEntries = EntriesToImport;
pFlags = Flags1;
@@ -424,8 +423,17 @@ seats_done:
}
}
}
selection_done:
EntriesCount = selectedCount;
selection_complete:
return selectedCount;
}
static void* UpdateThread(void* argument) {
u32 index;
s32 importResult;
BS2Report("Start update thread\n");
StartUpdate = 0;
CancelUpdate = 0;
EntriesCount = BS2SelectUpdateEntries();
if (EntriesCount == 0) {
State = 5;
StartUpdate = 0;
@@ -449,7 +457,7 @@ selection_done:
UpdateProgress++;
continue;
}
if (discEntries[UpdateProgress].type == 1) {
if (((const BS2UpdateEntry *)discEntries)[UpdateProgress].type == 1) {
BS2Report("BS2WADImportDVD : ");
index = UpdateProgress;
if (strcmp(getSuffix(discEntries[index].path), "wad") == 0) {
@@ -502,8 +510,8 @@ selection_done:
} else {
State = 3;
}
UpdateProgress++;
CurrentEntry = NULL;
UpdateProgress++;
break;
}
} else if (CancelUpdate != 0) {

View File

@@ -19,10 +19,10 @@
typedef struct {
u64 work[0xD0 / sizeof(u64)];
} NETHMACContext;
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 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);
extern char VmReportFormat[];
#define CHANSVmDebugLength 1024
@@ -54,7 +54,6 @@ 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;
@@ -1414,7 +1413,7 @@ CHANSVmErr VmCmpGeq(CHANSVm* vm, CHANSVmObjType type, CHANSVmObjHdr* ret, CHANSV
return VmCmpLeq(vm, type, ret, right, left);
}
CHANSVmErr CHANSVmGetBoolean(CHANSVmObjHdr* ret, CHANSVmObjHdr* val) {
CHANSVmErr CHANSVmGetBoolean(vmBoolInt* ret, CHANSVmObjHdr* val) {
vmBoolInt result;
switch (val->type) {
case CHANS_VM_OBJ_TYPE_BLANK: {
@@ -1448,7 +1447,7 @@ CHANSVmErr CHANSVmGetBoolean(CHANSVmObjHdr* ret, CHANSVmObjHdr* val) {
}
}
if (ret != vmNull) {
ret->value.bool_v = result;
*ret = result;
}
return CHANS_VM_OK;
}
@@ -3070,20 +3069,22 @@ VmMethodDefine(String, Search) {
return VmStringObjectIndex(VmInst, VmParentObj, VmReturnObj, 1, 1);
}
VmMethodDefine(String, Replace) {
static inline vmBoolInt VmReplaceStringContents(CHANSVm *VmInst, const CHANSVmObjHdr *VmParentObj, CHANSVmObjHdr *VmReturnObj) {
CHANSVmObjHdr* arg0;
CHANSVmObjHdr* arg1;
vmString parentStr;
vmString searchStr;
vmString replaceStr;
u32 parentLen;
u32 srcOffs;
u32 dstOffs;
u32 searchLen;
u32 replaceLen;
u32 dstBufLen;
vmString searchStr;
vmString parentStr;
vmString newStr;
u32 dstBufLen;
u32 replaceLen;
u32 dstOffs;
CHANSVmObjHdr* arg1;
u32 searchLen;
u32 srcOffs;
u32 parentLen;
u32 segLen;
const vmStringObjVal *parentValue;
const vmStringObjVal *searchValue;
if (((CHANSVmPrivate*)VmInst)->pActiveCtx->argc < 2) {
goto return_input;
@@ -3098,10 +3099,12 @@ VmMethodDefine(String, Replace) {
goto return_input;
}
parentLen = VmParentObj->value.string_v->len;
searchLen = arg0->value.string_v->len;
parentStr = VmParentObj->value.string_v->spData;
searchStr = arg0->value.string_v->spData;
parentValue = VmParentObj->value.string_v;
searchValue = arg0->value.string_v;
parentLen = parentValue->len;
searchLen = searchValue->len;
parentStr = parentValue->spData;
searchStr = searchValue->spData;
replaceStr = arg1->value.string_v->spData;
replaceLen = arg1->value.string_v->len;
@@ -3169,12 +3172,16 @@ VmMethodDefine(String, Replace) {
return VmReturnObj->value.string_v->len == dstOffs ? vmTrue : vmFalse;
return_input:
return VmStringObjectDup(VmInst, VmReturnObj, VmParentObj) ? vmTrue : vmFalse;
return VmStringObjectDup(VmInst, VmReturnObj, (CHANSVmObjHdr *)VmParentObj) ? vmTrue : vmFalse;
error:
return 0;
}
VmMethodDefine(String, Replace) {
return VmReplaceStringContents(VmInst, VmParentObj, VmReturnObj);
}
VmMethodDefine(String, Splice) {
CHANSVmObjHdr* arg0;
CHANSVmObjHdr* arg1;
@@ -4968,6 +4975,24 @@ exit:
return curPos;
}
static inline void VmBlobCopyPadded(BlobHeader* parentBlob, const BlobHeader* srcBlob, s32 copySize) {
u32 srcOff;
u32 dataSize;
u8* dest;
srcOff = srcBlob->offset;
dataSize = srcBlob->size - srcOff;
dest = parentBlob->pData + parentBlob->offset;
if (dataSize > copySize) {
dataSize = copySize;
}
memmove(dest, srcBlob->pData + srcOff, dataSize);
if (dataSize < copySize) {
memset(dest + dataSize, 0, copySize - dataSize);
}
parentBlob->offset += copySize;
}
static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, CHANSVmObjHdr* VmReturnObj, vmU32 flag) {
u32 packBuf[2];
BlobHeader* parentBlob;
@@ -4983,8 +5008,6 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
CHANSVmObjHdr* obj;
BlobHeader* srcBlob;
s32 copySize;
u32 dataSize;
u32 srcOff;
CHANSVmObjHdr* strObj;
u8* srcData;
u32 charCount;
@@ -5133,7 +5156,7 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
goto error;
}
argCount++;
totalSize += (count + 1) / 2;
totalSize += (s32)((u32)count + 1U) / 2;
break;
}
}
@@ -5206,17 +5229,7 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
goto error;
}
srcOff = srcBlob->offset;
dataSize = srcBlob->size - srcOff;
dest = parentBlob->pData + parentBlob->offset;
if (dataSize > copySize) {
dataSize = copySize;
}
memmove(dest, srcBlob->pData + srcOff, dataSize);
if (dataSize < copySize) {
memset(dest + dataSize, 0, copySize - dataSize);
}
parentBlob->offset += copySize;
VmBlobCopyPadded(parentBlob, srcBlob, copySize);
break;
}
case 5: {
@@ -5423,7 +5436,7 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
goto error;
}
bufSize = (count + 1) / 2;
bufSize = (s32)((u32)count + 1U) / 2;
if (!CHANSVmBlobHasSpace(parentBlob, bufSize)) {
goto error;
}
@@ -5434,22 +5447,20 @@ static vmBoolInt VmBlobPackCommon(CHANSVm* VmInst, CHANSVmObjHdr* VmParentObj, C
memset(dest, 0, bufSize);
for (i = 0; (s32)i < count; i++) {
u32 nibble;
ch = ((const u16*)srcData)[i];
if (ch >= 0x30 && ch <= 0x39) {
nibble = ch - 0x30;
ch -= 0x30;
} else if (ch >= 0x61 && ch <= 0x66) {
nibble = ch - 0x57;
ch -= 0x57;
} else if (ch >= 0x41 && ch <= 0x46) {
nibble = ch - 0x37;
ch -= 0x37;
} else {
nibble = 0;
ch = 0;
}
if ((i & 1) == 0) {
nibble *= 16;
ch *= 16;
}
*dest |= nibble & 0xFF;
*dest |= ch & 0xFF;
if (i & 1) {
dest++;
}
@@ -6274,6 +6285,27 @@ 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;
@@ -6378,41 +6410,15 @@ CHANSVmErr CHANSVmAddExe(CHANSVm* vm, vmS32 unk0, CHANSVm* execCtx) {
{
u32 i;
u32 tblOffs;
for (i = 0, tblOffs = 0; i < header->moduleCount;) {
memset((u8*)header->pModuleTbl + tblOffs, 0, sizeof(ModuleEntry));
i++;
tblOffs += sizeof(ModuleEntry);
for (i = 0; i < header->moduleCount; i++) {
memset(&header->pModuleTbl[i], 0, sizeof(ModuleEntry));
}
}
CHANSConvertModuleOfsToPtr(header);
{
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;
}
if (!VmFixMethodTable(header, vm)) {
goto fail_format;
}
{
u8* strPtr = header->pStringDataTbl;
@@ -6779,10 +6785,79 @@ 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;
CHANSVmModule* module;
u32 modIdx;
CHANSVmModule* module;
u32 i;
(void)unk0;
@@ -6794,76 +6869,14 @@ CHANSVmErr CHANSVmLinkModules(CHANSVm* vm, vmS32 unk0) {
while (modIdx < (u32)pVm->depth) {
CHANSVmErr result;
DispatchEntry* dispatchTable;
GlobalObjListNode* gIter;
CHANSVmNativeClass* nIter;
pVm->pActiveCtx->pDbg = module;
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:
result = VmResolveGlobalModules(module, pVm->pGlobalObjList);
if (result) {
return result;
}
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:
result = VmResolveNativeModules(module, pVm->pNativeClasses);
if (result) {
return result;
}
@@ -6929,7 +6942,7 @@ static u8* VmGetOperand(CHANSVm* vm, u32 num, u32 offset) {
}
static CHANSVmErr VmLoadImmInteger(CHANSVm* vm, CHANSVmObjHdr* obj, u8* buf, s32 count) {
s64 acc = 0;
u64 acc = 0;
u8* p = buf;
while (count != 0) {
@@ -6939,7 +6952,7 @@ static CHANSVmErr VmLoadImmInteger(CHANSVm* vm, CHANSVmObjHdr* obj, u8* buf, s32
count--;
}
return CHANSVmSetInteger(vm, obj, acc);
return CHANSVmSetInteger(vm, obj, (vmInteger)acc);
}
CHANSVmErr VmStore(CHANSVm* vm, CHANSVmObjHdr* dest, CHANSVmObjHdr* src) {
@@ -7207,7 +7220,7 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
u32 cmpLow;
struct {
CHANSVmObjType operandTypes[2];
u64 floatBits;
double floatLiteral;
CHANSVmObjHdr copies[2];
CHANSVmObjHdr load;
CHANSVmObjHdr operand;
@@ -7234,7 +7247,7 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
CHANSVmErr result;
u32 newPos;
u32 isTypeMatch;
u32 shouldBranch;
vmBoolInt shouldBranch;
if (pVm->bSignalUpdated != vmFalse && pVm->bSignalBlocked == vmFalse) {
pVm->bSignalUpdated = vmFalse;
@@ -7291,8 +7304,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
case CHANS_VM_OP_LOAD_FLOAT: {
opSize = 9;
operandBuf = VmGetOperand(vm, 1, 9);
memcpy(&scratch.floatBits, operandBuf, 8);
result = CHANSVmSetFloat(vm, &pVm->accumulator, *(double*)&scratch.floatBits);
memcpy(&scratch.floatLiteral, operandBuf, 8);
result = CHANSVmSetFloat(vm, &pVm->accumulator, scratch.floatLiteral);
break;
}
@@ -7623,8 +7636,8 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
case CHANS_VM_OP_LOG_NOT: {
CHANSVmObjHdr* pAcc = &pVm->accumulator;
u32 bResult;
CHANSVmErr booleanResult = CHANSVmGetBoolean((CHANSVmObjHdr*)&bResult, pAcc);
vmBoolInt bResult;
CHANSVmErr booleanResult = CHANSVmGetBoolean(&bResult, pAcc);
if (booleanResult == CHANS_VM_OK) {
s32 boolVal = bResult ? 0 : 1;
booleanResult = CHANSVmSetInteger(vm, pAcc, boolVal);
@@ -7769,8 +7782,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 = *(double*)stackPtr;
if (stackFloat <= 4294967294.0 && 0.0 <= stackFloat) {
double stackFloat = stackPtr->value.float_v;
if (stackFloat >= 0.0 && stackFloat <= 4294967294.0) {
arrayIdx = (u32)stackFloat;
goto set_index_ok;
}
@@ -7781,8 +7794,7 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
cmpHigh = 0;
cmpLow = -2;
cmpVal = VM_MAKE_U64(cmpHigh, cmpLow);
fullVal = VM_S64_FROM_U64(tmp64);
if ((u64)fullVal <= cmpVal) {
if (tmp64 <= cmpVal) {
arrayIdx = (u32)tmp64;
goto set_index_ok;
}
@@ -8004,34 +8016,27 @@ 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 (pVm->accumulator.type == stackTop->type) {
if (stackTop->type == pVm->accumulator.type) {
switch (stackTop->type) {
case CHANS_VM_OBJ_TYPE_INTEGER: {
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);
isTypeMatch = stackTop->value.int_v == pVm->accumulator.value.int_v;
goto end_branch_check;
}
case CHANS_VM_OBJ_TYPE_FLOAT: {
double stackFloat = stackTop->value.float_v;
double accFloat = pVm->accumulator.value.float_v;
isTypeMatch = stackFloat == accFloat ? 1 : 0;
isTypeMatch = stackTop->value.float_v == pVm->accumulator.value.float_v;
goto end_branch_check;
}
case CHANS_VM_OBJ_TYPE_STRING: {
u32 len1, len2;
CHANSVmObjHdr* stackObj = (CHANSVmObjHdr*)pVm->pObjStackTopBuf;
const vmWStringObjVal* accumulatorString = pVm->accumulator.value.wstring_v;
const vmWStringObjVal* stackString = stackTop->value.wstring_v;
u32 strEqual;
isTypeMatch = 0;
len1 = stackObj->value.wstring_v->len;
len2 = pVm->accumulator.value.wstring_v->len;
len1 = stackString->len;
len2 = accumulatorString->len;
if (len1 == len2) {
strEqual = 0;
if (len1 == 0 || memcmp(stackObj->value.wstring_v->spData, pVm->accumulator.value.wstring_v->spData, len1) == 0) {
if (len1 == 0 || memcmp(stackString->spData, accumulatorString->spData, len1) == 0) {
strEqual = 1;
}
if (strEqual) {
@@ -8072,14 +8077,14 @@ CHANSVmErr CHANSVmStep(CHANSVm* vm, int stepCount) {
break;
}
case CHANS_VM_OP_BRANCH_FALSE: {
result = CHANSVmGetBoolean((CHANSVmObjHdr*)&shouldBranch, &pVm->accumulator);
result = CHANSVmGetBoolean(&shouldBranch, &pVm->accumulator);
if (result == CHANS_VM_OK) {
shouldBranch = !shouldBranch;
}
break;
}
case CHANS_VM_OP_BRANCH_TRUE: {
result = CHANSVmGetBoolean((CHANSVmObjHdr*)&shouldBranch, &pVm->accumulator);
result = CHANSVmGetBoolean(&shouldBranch, &pVm->accumulator);
break;
}
case CHANS_VM_OP_BRANCH_ALWAYS: {

View File

@@ -394,17 +394,24 @@ namespace textinput {
mOnOffButton.Create(this);
mOnOffButton.Init();
const char* paneNames = scPaneNameTable;
mLeftScroll.Create(this, paneNames + 68, paneNames + 48);
mRightScroll.Create(this, paneNames + 108, paneNames + 88);
const char* leftScrollBoundName = paneNames + 48;
const char* leftScrollPaneName = paneNames + 68;
mLeftScroll.Create(this, leftScrollPaneName, leftScrollBoundName);
const char* rightScrollBoundName = paneNames + 88;
const char* rightScrollPaneName = paneNames + 108;
mRightScroll.Create(this, rightScrollPaneName, rightScrollBoundName);
mLeftScroll.Init();
mRightScroll.Init();
mTextWindow.Create(this, scW_predictWindow);
const char* windowName = scW_predictWindow;
mTextWindow.Create(this, windowName);
init();
}
void LayoutByNW4R::createAnmPane_(MEMAllocator* allocator) {
CandidateTextAnmPane* pane;
for (u16 i = 0; i < ARRAY_LENGTH(scCandidatePaneData.panes); i++) {
u16 j;
u16 i;
for (i = 0; i < ARRAY_LENGTH(scCandidatePaneData.panes); i++) {
pane = NULL;
const PaneToAnimation& p = scCandidatePaneData.panes[i];
switch (p.type) {
@@ -433,16 +440,18 @@ namespace textinput {
nw4r::ut::List_Append(&mAnmPanes, pane);
for (u16 j = 0; j < p.count; j++) {
const AnimationFile* animation = p.pAnims[j];
void* pResource = mpMultiArcResourceAccessor->GetResource(0, p.pAnims[j]->fileName);
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);
AnimTransformPane* transform =
static_cast<AnimTransformPane*>(getLayout()->CreateAnimTransform(pResource, mpMultiArcResourceAccessor));
if (p.forceAddName == NULL) {
if (forceAddName == NULL) {
pane->addAnimation(allocator, animation->id, transform, false, true);
} else {
pane->forceAddAnimation(allocator, animation->id, transform, p.forceAddName, false, true);
pane->forceAddAnimation(allocator, animation->id, transform, forceAddName, false, true);
}
}
}
@@ -1065,11 +1074,19 @@ namespace textinput {
return calcStringWidth(pTextBox->GetString(), pTextBox);
}
static inline void setCandidatePaneSize(nw4r::lyt::Pane* pane, const nw4r::lyt::Size& original, f32 width) {
nw4r::lyt::Size size;
size.width = width;
size.height = original.height;
pane->SetSize(size);
}
static inline void setCandidatePanePosition(nw4r::lyt::Pane* pane, f32 x, f32 y) {
nw4r::math::VEC2 position(x, y);
pane->SetTranslate(position);
}
void UITextArea::CalcPaneLocate_() {
// NONMATCHING - only regswaps, hopefully
// The calcStringWidth inline may be partially responsible,
// so looking into the smaller functions utilizing that inline
// might be simpler (GetNextPageIdx / GetPrevPageIdx)
f32 widthScale = GetWidthScale_();
f32 margin = GetMargin_();
f32 xOffset = mfXOffset;
@@ -1082,9 +1099,9 @@ namespace textinput {
nw4r::lyt::TextBox* textPane = mpTextBoxPane[i]->getTextPane();
nw4r::lyt::Bounding* boundPane = mpBoundingPane[i]->getBoundPane();
nw4r::lyt::Size sz1 = textPane->GetSize();
textPane->SetString(L"");
textPane->SetString(scEmptyWChars);
textPane->SetVisible(false);
boundPane->SetSize(nw4r::lyt::Size(0.0f, sz1.height));
setCandidatePaneSize(boundPane, sz1, 0.0f);
}
int i = NUM_PANES;
@@ -1112,16 +1129,16 @@ namespace textinput {
textPane->SetVisible(true);
nw4r::lyt::Size sz2 = textPane->GetSize();
f32 stringWidth = calcStringWidth(textPane);
textPane->SetSize(nw4r::lyt::Size(stringWidth, sz2.height));
boundPane->SetSize(nw4r::lyt::Size(stringWidth * widthScale, sz2.height));
setCandidatePaneSize(textPane, sz2, stringWidth);
setCandidatePaneSize(boundPane, sz2, stringWidth * widthScale);
xOffset -= margin;
xOffset -= stringWidth * widthScale;
stringWidth *= widthScale;
f32 x = stringWidth / 2.0f + (areaPaneXOffset + xOffset);
textPane->SetTranslate(nw4r::math::VEC2(x, 0.0f));
boundPane->SetTranslate(nw4r::math::VEC2(x, 0.0f));
setCandidatePanePosition(textPane, x, 0.0f);
setCandidatePanePosition(boundPane, x, 0.0f);
if (offsetIdx == selectedIdx) {
mpTextAnmPane[i]->onAnmEvent(nw4rmanager::AnmPane::PE_1);
@@ -1150,13 +1167,13 @@ namespace textinput {
textPane->SetVisible(true);
nw4r::lyt::Size sz2 = textPane->GetSize();
f32 stringWidth = calcStringWidth(textPane);
textPane->SetSize(nw4r::lyt::Size(stringWidth, sz2.height));
boundPane->SetSize(nw4r::lyt::Size(stringWidth * widthScale, sz2.height));
setCandidatePaneSize(textPane, sz2, stringWidth);
setCandidatePaneSize(boundPane, sz2, stringWidth * widthScale);
stringWidth *= widthScale;
f32 x = stringWidth / 2.0f + (areaPaneXOffset + xOffset);
textPane->SetTranslate(nw4r::math::VEC2(x, 0.0f));
boundPane->SetTranslate(nw4r::math::VEC2(x, 0.0f));
setCandidatePanePosition(textPane, x, 0.0f);
setCandidatePanePosition(boundPane, x, 0.0f);
if (offsetIdx == selectedIdx) {
mpTextAnmPane[i]->onAnmEvent(nw4rmanager::AnmPane::PE_1);
@@ -1683,9 +1700,9 @@ namespace textinput {
void UIOnOffButton::Create(nw4rmanager::Layout* layout) {
gui::PaneManager* mgr = layout->getPaneManager();
mpOnPictPane = mgr->searchPaneComponent("P_OnBtn");
mpOnBoundPane = mgr->searchPaneComponent("B_OnBtn");
mpOnAnmPane = static_cast<OnOffAnmPane*>(layout->searchAnmPane("P_OnBtn"));
mpOnPictPane = mgr->searchPaneComponent(scP_OnBtn);
mpOnBoundPane = mgr->searchPaneComponent(scB_OnBtn);
mpOnAnmPane = static_cast<OnOffAnmPane*>(layout->searchAnmPane(scP_OnBtn));
mpOffPictPane = mgr->searchPaneComponent(scCandidatePaneData.tail);
mpOffBoundPane = mgr->searchPaneComponent(scPaneNameTable);
mpOffAnmPane = static_cast<OnOffAnmPane*>(layout->searchAnmPane(scCandidatePaneData.tail));

View File

@@ -206,6 +206,33 @@ namespace textinput {
return 0x1B;
}
static inline const PaneNameToCharCode* inputKeys(const LanguageDependencyData* table, u32 mode) {
return table->keySets[mode]->pPaneNameToCharCode;
}
struct NumericKeyView {
const PaneNameToCharCode& key;
NumericKeyView(const KeySet& set, u16 index) : key(set.pPaneNameToCharCode[index]) {}
bool matches(const char* paneName) const { return util::strcmp(key.szPaneName, paneName); }
wchar_t character() const { return key.wc[0]; }
};
static inline const PaneNameToCharCode* findLowerCaseKey(const LanguageDependencyData* table, const char* paneName) {
u16 index = 0;
const PaneNameToCharCode* keys = table->keySets[Base::IM_01]->pPaneNameToCharCode;
for (; index < 12; ++index) {
if (util::strcmp(keys[index].szPaneName, paneName)) { return &keys[index]; }
}
return NULL;
}
static inline const PaneNameToCharCode* findKeyInSet(const KeySet& set, const char* paneName) {
const PaneNameToCharCode* keys = set.pPaneNameToCharCode;
for (u16 index = 0; index < 12; ++index) {
if (util::strcmp(keys[index].szPaneName, paneName)) { return &keys[index]; }
}
return NULL;
}
void Base::onKey(u32 event, void* data) {
struct KeyEvent { const char* paneName; u8 state; };
@@ -234,8 +261,7 @@ namespace textinput {
} else if (static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[inputMode]->uType == KEY_TYPE_ABC_UPPER && !mbUpperCaseMode) {
inputMode = IM_01;
}
const PaneNameToCharCode* keys = static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[inputMode]->pPaneNameToCharCode;
mHoldingButton = findKeyForPane(keys, paneName);
mHoldingButton = findKeyInSet(*static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[inputMode], paneName);
if (state) {
mPreviousInputMode = 15;
while (mHoldingButton->wc[mPreviousInputMode] == 0) { mPreviousInputMode--; }
@@ -271,11 +297,10 @@ namespace textinput {
}
}
} else {
const PaneNameToCharCode* keys = csKeySetNumber.pPaneNameToCharCode;
for (u16 index = 0; index < 12; index++) {
const PaneNameToCharCode* pane = &keys[index];
if (util::strcmp(pane->szPaneName, paneName)) {
wchar_t character = pane->wc[0];
const NumericKeyView key(csKeySetNumber, index);
if (key.matches(paneName)) {
wchar_t character = key.character();
ConfirmInput commandData = {0};
commandData.character = character;
commandData.letterMode = mCurrentInputMode;
@@ -291,12 +316,11 @@ namespace textinput {
mPreviousInputMode = 0;
mHoldingButton = NULL;
} else {
const PaneNameToCharCode* currentKeys = static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[mCurrentInputMode]->pPaneNameToCharCode;
const PaneNameToCharCode* currentKeys = inputKeys(static_cast<const LanguageDependencyData*>(mpInputModeTable), mCurrentInputMode);
commandData.holdingKey = findKeyForPane(currentKeys, paneName);
if (static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[mCurrentInputMode]->uType == KEY_TYPE_ABC_UPPER && !mbAbcMode) {
commandData.letterMode = IM_01;
currentKeys = static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[IM_01]->pPaneNameToCharCode;
commandData.holdingKey = findKeyForPane(currentKeys, paneName);
commandData.holdingKey = findLowerCaseKey(static_cast<const LanguageDependencyData*>(mpInputModeTable), paneName);
}
commandData.character = convertToZiCellphoneInput_(commandData.character);
sendCommand(5, &commandData);
@@ -651,6 +675,24 @@ 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();
@@ -670,21 +712,7 @@ namespace textinput {
setVisible("W_ChngTag_03", true);
for (int i = 0; i < 4; ++i) {
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);
}
initializeTogglePane(*this, mpInputModeTable, i, csPaneNameToggleAnimationKey[i].name);
}
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 = getPane(static_cast<const LanguagePaneData*>(mpLanguageData)->textBox);
nw4r::lyt::Pane* pane = mpLayout->GetRootPane()->FindPaneByName(static_cast<const LanguagePaneData*>(mpLanguageData)->textBox, true);
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* file = button.files[animationIndex];
const InputFormAnimationFile* const& 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,6 +1254,13 @@ 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;
@@ -1264,12 +1271,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(getLanguageTextPane() ? static_cast<const LanguagePaneData*>(mpLanguageData)->textBox : "T_2l_TextBox", true);
nw4r::lyt::Pane* pane = mpLayout->GetRootPane()->FindPaneByName(selectInputTextName(*this, mpLanguageData), 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(getLanguageTextPane() ? static_cast<const LanguagePaneData*>(mpLanguageData)->textBox : "T_2l_TextBox", true);
pane = mpLayout->GetRootPane()->FindPaneByName(selectInputTextName(*this, mpLanguageData), 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"));
@@ -3071,7 +3078,9 @@ bool Base::onCursor(CursorPos* cursor) {
f32 left = glyph.rect.left + GetCursorX();
f32 top = glyph.rect.top + GetCursorY();
f32 right = glyph.rect.right + GetCursorX();
f32 bottomEdge = GetCursorY() + GetFontHeight();
f32 cursorY = GetCursorY();
f32 fontHeight = GetFontHeight();
f32 bottomEdge = fontHeight + cursorY;
candidateBackground.a = muGlobalAlpha;
debug::drawBox_(left, top, right, bottomEdge, 0.0f, 1.0f, candidateBackground);
SetupGX();
@@ -3131,7 +3140,9 @@ bool Base::onCursor(CursorPos* cursor) {
f32 left = glyph.rect.left + GetCursorX();
f32 top = glyph.rect.top + GetCursorY();
f32 right = glyph.rect.right + GetCursorX();
f32 bottomEdge = GetCursorY() + GetFontHeight();
f32 cursorY = GetCursorY();
f32 fontHeight = GetFontHeight();
f32 bottomEdge = fontHeight + cursorY;
kanaBackground.a = muGlobalAlpha;
debug::drawBox_(left, top, right, bottomEdge, 0.0f, 1.0f, kanaBackground);
SetupGX();
@@ -3177,7 +3188,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.right - info.rect.left);
f32 right = cursorX + scale.x * info.rect.GetWidth();
if (doWordWrap(mpString->getWCString(), pos, cursorX)) {
if (localY >= lineTop && localY <= lineBottom) {
if (pos != 0) return pos - 1;
@@ -3186,14 +3197,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.right - info.rect.left);
right = cursorX + scale.x * info.rect.GetWidth();
}
if (right >= scale.x * (mRect.right - mRect.left)) {
if (right >= scale.x * mRect.GetWidth()) {
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.right - info.rect.left);
right = cursorX + scale.x * info.rect.GetWidth();
}
if (x <= info.rect.left && localY >= lineTop && localY <= lineBottom) return pos;
if (*string == L'\n') {
@@ -3207,7 +3218,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.right - info.rect.left);
cursorX += scale.x * info.rect.GetWidth();
}
++string;
++pos;

View File

@@ -11,6 +11,18 @@
#include "keyboard/tiLanguageIndependentData.h"
namespace textinput {
const keyboard::hwkey::HWKeyboard* Manager::getHWKeyboard() const {
return mpHWKeyboard;
}
bool toolbar::Base::isQwerty() const {
return mQwerty;
}
const toolbar::LayoutByNW4R* Manager::getToolBar() const {
return mpToolBar;
}
namespace keyboard {
namespace pctype {
struct SelectorPosition {
@@ -1317,6 +1329,20 @@ namespace textinput {
}
}
}
}
const keyboard::pctype::LayoutByNW4R* Manager::getPCKeyboard() const {
return mpPCKeyboard;
}
Language Manager::getLanguage() const {
return meLanguage;
}
namespace keyboard {
namespace pctype {
bool Base::isCapsOn() const {
return (mKeyState.abcFlags >> 6) & 1;
}
@@ -1325,7 +1351,7 @@ namespace textinput {
mpAllocator = allocator;
}
void Base::init() {
inline void Base::initializeKeyState() {
mState.rejected = false;
Language language = getLanguage();
mKeyState.inputType = 0;
@@ -1343,6 +1369,10 @@ namespace textinput {
sendCommand(18, &mode);
}
void Base::init() {
initializeKeyState();
}
void Base::inputCharCode(wchar_t code) {
sendInputWChar(code, false);
}
@@ -1610,7 +1640,7 @@ namespace textinput {
}
void Base::setTranslateMode(TranslateMode mode) {
u32 keyMode = mode;
u32 keyMode;
switch (mode) {
case TM_Direct:
keyMode = 0;
@@ -1621,8 +1651,6 @@ namespace textinput {
case TM_Kana:
keyMode = 2;
break;
default:
break;
}
if (keyMode != (mKeyState.abcFlags & 15)) {
if (getLanguage() == KR || getLanguage() == CN)
@@ -1944,8 +1972,18 @@ namespace textinput {
AnmPane::~AnmPane() {
}
}
}
TiLayout* nw4rmanager::Layout::getLayout() {
return mpLayout;
}
namespace keyboard {
namespace pctype {
void LayoutByNW4R::init() {
Base::init();
initializeKeyState();
setLineFeedButton(true);
setPredictLanguageButton(true);
setSignWindowButton(true);
@@ -2293,6 +2331,15 @@ namespace textinput {
}
}
}
}
void nw4rmanager::AnmPane::onAnmEvent(AnmPaneEvent) {
}
namespace keyboard {
namespace pctype {
void LayoutByNW4R::cancelStateFocusIn() {
for (AnmPane* pane = static_cast<AnmPane*>(nw4r::ut::List_GetFirst(&mAnmPanes)); pane != NULL;
pane = static_cast<AnmPane*>(nw4r::ut::List_GetNext(&mAnmPanes, pane))) {
@@ -3077,6 +3124,20 @@ namespace textinput {
: UIObj(id, layout, listener), mpPaneComponent(NULL), mpBoundingComponent(NULL), mpAnimation(NULL), mbOn(false) {
}
}
}
gui::PaneManager* nw4rmanager::Layout::getPaneManager() {
return mpPaneManager;
}
void gui::GUIComponent::setTriggerTarget(bool triggerTarget) {
mbTriggerTarget = triggerTarget;
}
namespace keyboard {
namespace pctype {
void UIModifierButton::onGUIEvent(gui::PaneComponent&, u32 event, nw4rmanager::TiEventHandler::Input* input) {
const char* name = "P_key_CAPS";
if (mId == 1)
@@ -3132,6 +3193,43 @@ namespace textinput {
void UIModePanel::onGUIEvent(gui::PaneComponent&, u32, nw4rmanager::TiEventHandler::Input*) {
}
}
}
void keyboard::KeyboardBase::update() {
}
nw4r::ut::List& nw4rmanager::Layout::getAnmPaneList() {
return mAnmPanes;
}
void nw4rmanager::Layout::setAnimOn(bool flag) {
mbAnimOn = flag;
}
nw4rmanager::Anim* nw4rmanager::AnmPane::searchAnimation(u32 id) {
for (Anim* animation = static_cast<Anim*>(nw4r::ut::List_GetNext(&mAnms, NULL)); animation != NULL;
animation = static_cast<Anim*>(nw4r::ut::List_GetNext(&mAnms, animation))) {
if (animation->muID == id) return animation;
}
return NULL;
}
bool nw4rmanager::AnmPane::isInAnimation() {
return mpCurrentAnim != NULL;
}
int gui::EventHandler::getLatestEventCtrlNo() {
return muLatestEventCtrlNo;
}
void gui::EventHandler::setLatestEventCtrlNo(int ctrlNo) {
muLatestEventCtrlNo = ctrlNo;
}
namespace keyboard {
namespace pctype {
Base::InputMode Base::getAIUInputMode() const {
switch (static_cast<int>(mKeyState.aiuFlags & 15)) {
case 0:
@@ -3190,6 +3288,16 @@ namespace textinput {
void UIObj::onGUIEvent(gui::PaneComponent&, u32, nw4rmanager::TiEventHandler::Input*) {
}
}
}
void nw4rmanager::TiEventHandler::setEventObserver(EventObserver* event) {
mpEventObserver = event;
}
namespace keyboard {
namespace pctype {
void Base::setInputModeCK(u32) {
}

View File

@@ -5,7 +5,7 @@
extern "C" {
u8 KPRLookAhead(KPRQueue*, wchar_t*, u32);
u32 KPRPutChar(KPRQueue*, wchar_t);
u8 KPRPutChar(KPRQueue*, wchar_t);
wchar_t KPRGetChar(KPRQueue*);
void KPRClearQueue(KPRQueue*);
void KPRInitQueue(KPRQueue*);
@@ -141,6 +141,28 @@ 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];
@@ -173,9 +195,9 @@ void Decolated::inputChar(wchar_t ch) {
}
nonKana:
if (mTranslateMode == 3) {
input[0] = ch;
input[1] = 0;
count = 1;
CharacterOutput output(input);
output.append(ch);
count = output.finish();
mKanaStream.mOutput[0] = 0;
} else {
count = 1;

View File

@@ -15,7 +15,9 @@ struct OEMDictionary {
};
u16 WithZi::ElementBuffer[0x100];
u16 WithZi::CandidatesBuffer[0x300];
u16 WithZi::CandidatesBuffer[0x100];
u16 WithZi::ElementWorkBuffer[0x100];
u16 WithZi::PredictionBuffer[0x100];
u16 WithZi::CandidatedWord[0xa00];
u16 WithZi::LatestWord[0x40];
@@ -116,8 +118,8 @@ void WithZi::clearCandidates() {
mCandidateCount = 0;
memset(ElementBuffer, 0, 0x1fe);
memset(candidates, 0, 0x200);
memset(candidates + 0x100, 0, 0x1fe);
memset(candidates + 0x200, 0, 0x200);
memset(ElementWorkBuffer, 0, 0x1fe);
memset(PredictionBuffer, 0, 0x200);
memset(CandidatedWord, 0, 0x1400);
memset(&mSearch, 0, sizeof(mSearch) + sizeof(mSearchState));
mSearch.language = getPredictLanguage();
@@ -126,7 +128,7 @@ void WithZi::clearCandidates() {
mSearch.context = 1;
mSearch.getOptions = 0x81;
mSearch.elements = reinterpret_cast<wchar_t*>(ElementBuffer);
mSearch.candidates = reinterpret_cast<wchar_t*>(&candidates[0x200]);
mSearch.candidates = reinterpret_cast<wchar_t*>(PredictionBuffer);
mSearch.maxCandidates = 0x28;
mSearch.elementCount = 0;
mSearch.firstCandidate = 0;
@@ -298,7 +300,6 @@ void WithZi::update() {
return;
}
wchar_t* candidateOutput = reinterpret_cast<wchar_t*>(&CandidatesBuffer[0x200]);
mSelectedCandidate = 0;
s32 elementCount = static_cast<u16>(setElementBuffer());
mSearch.language = getPredictLanguage();
@@ -307,7 +308,7 @@ void WithZi::update() {
mSearch.context = 1;
mSearch.getOptions = 0x81;
mSearch.elements = reinterpret_cast<wchar_t*>(ElementBuffer);
mSearch.candidates = candidateOutput;
mSearch.candidates = reinterpret_cast<wchar_t*>(PredictionBuffer);
mSearch.maxCandidates = 0x28;
mSearch.elementCount = static_cast<u8>(elementCount);
mSearch.firstCandidate = 0;
@@ -351,29 +352,28 @@ void WithZi::update() {
EZTXGetCandidates(&mSearch, mpDictionaryWork);
}
else {
memcpy(&CandidatesBuffer[0x200], CandidatesBuffer, 0x200);
memcpy(PredictionBuffer, CandidatesBuffer, 0x200);
ChangeDictionaryLanguage(getPredictLanguage());
u32 count = EZTXGetCandidates(&mSearch, mpDictionaryWork) & 0xff;
if (getPredictLanguage() == 1 && count == 0x61) {
wchar_t* candidateOutput = reinterpret_cast<wchar_t*>(PredictionBuffer);
mSearch.firstCandidate = 0x61;
mSearch.candidates = reinterpret_cast<wchar_t*>(&CandidatesBuffer[0x2c2]);
mSearch.candidates = candidateOutput + 0xC2;
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.wordCharCount == 0)) {
(mbContextChanged = 0, mSearch.count == 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] = source[copied];
LatestWord[copied] = LatestWord[(wordLength - length) + copied];
}
LatestWord[copied] = 0;
mSearch.wordCharCount = wcslen((wchar_t*)LatestWord);
@@ -396,8 +396,10 @@ void WithZi::update() {
u16* destination = CandidatedWord;
for (s32 index = 0; index < static_cast<s32>(count); index++) {
if (getPredictLanguage() == 1) {
s32 length = 0;
u16* output = destination;
u16* output;
s32 length;
length = 0;
output = destination;
for (; *source != 0x20 && *source != 0; source++) {
*output++ = *source;
++length;
@@ -409,16 +411,20 @@ void WithZi::update() {
destination[1] = 0;
} else if (getPredictLanguage() == 0x12) {
u16* output = destination;
while (*source >= 0x100) {
*output++ = *source++;
u16 character;
while ((character = *source) >= 0x100) {
*output++ = character;
++source;
}
} else if (EZTXCopy(reinterpret_cast<wchar_t*>(destination), &mSearch, index & 0xff, mpDictionaryWork) == 0) {
goto nextCandidate;
}
++mCandidateCount;
{
s32 position = 0;
for (u16* candidate = destination; *candidate != 0; ++candidate) {
u16* candidate;
s32 position;
position = 0;
for (candidate = destination; *candidate != 0; ++candidate, ++position) {
switch (mLetterMode) {
case LM_1:
*candidate = util::toWLower(*candidate);
@@ -430,10 +436,11 @@ void WithZi::update() {
if (position == 0) *candidate = util::toWUpper(*candidate);
else *candidate = util::toWLower(*candidate);
break;
case LM_3:
break;
default:
break;
}
++position;
}
}
nextCandidate:
@@ -510,22 +517,28 @@ scanDone:
return 0;
}
u32 WithZi::setElementBuffer() {
struct ElementInputView {
u16* elements;
u16* candidates;
const u16* candidates;
ElementInputView() : elements(WithZi::ElementBuffer), candidates(WithZi::CandidatesBuffer) {}
u16 read(u16 index) const { return candidates[index]; }
u16& element(u16 index) const { return elements[index]; }
};
u32 WithZi::setElementBuffer() {
u16 inputCharacter;
u32 count = 0;
memset(ElementBuffer, 0, 0x1fe);
memset(&CandidatesBuffer[0x100], 0, 0x1fe);
elements = ElementBuffer;
candidates = CandidatesBuffer;
while ((inputCharacter = candidates[static_cast<u16>(count)]) != 0 && static_cast<u16>(count) < 0xff) {
memset(ElementWorkBuffer, 0, 0x1fe);
ElementInputView buffers;
while ((inputCharacter = buffers.read(static_cast<u16>(count))) != 0 && static_cast<u16>(count) < 0xff) {
u16 index = count;
elements[index] = inputCharacter;
buffers.element(index) = inputCharacter;
if (getPredictLanguage() == 1) {
s32 character = elements[index];
if (0x30 <= character && character <= 0x39) elements[index] = character + 0xf300;
else if ((0x61 <= character && character <= 0x7a) || (0x41 <= character && character <= 0x5a)) elements[index] += 0xf300;
s32 character = buffers.element(index);
if (0x30 <= character && character <= 0x39) buffers.element(index) = character + 0xf300;
else if ((0x61 <= character && character <= 0x7a) || (0x41 <= character && character <= 0x5a)) buffers.element(index) += 0xf300;
}
++count;
}

View File

@@ -1208,9 +1208,9 @@ namespace ipl {
wchar_t blank[2] = {0, 0};
static_cast<nw4r::lyt::TextBox*>(mpLayout->FindPaneByName(sTextNameB[mDrag.mButton]))->SetString(blank, 0);
nigaoe::Object* nigaoe = mMiiObj[buttonNo].mpNigaoe;
nigaoe::Object* nigaoe = mMiiObj[buttonNo].getPortrait();
if (nigaoe != NULL) {
nw4r::lyt::Pane* miiPane = mpLayout->FindPaneByName("mii_move");
nw4r::lyt::Pane* miiPane = mpLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("mii_move", true);
miiPane->SetVisible(true);
mDragTexObj = nigaoe->getIconTexture();
@@ -1778,30 +1778,38 @@ 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->FindPaneByName("T_name_move"));
nw4r::lyt::TextBox* textBox = static_cast<nw4r::lyt::TextBox*>(mpLayout->GetRootPane()->FindPaneByName("T_name_move", true));
f32 width = 0.0f;
if (textBox != NULL) {
const u16* name = mpFriendCache->getInfo(mDrag.mButton + mDrag.mPage * BTN_MAX).attr.name;
if (name != NULL) {
textBox->GetFont()->GetWidth();
for (; *name != 0; name++) {
width += textBox->GetFont()->GetCharWidth(*name);
}
}
}
width += 0.01f;
f32 width = GetDragNameWidth(textBox, mpFriendCache->getInfo(mDrag.mButton + mDrag.mPage * BTN_MAX));
nw4r::ut::Rect rect;
nw4r::ut::Rect rect4x3;
System::getProjectionRect(&rect);
System::getProjectionRect4x3(&rect4x3);
if (baseTrans.x + width < pos.x) {
mDragOffsetX = -((baseTrans.x + width) * (rect4x3.GetWidth() / rect.GetWidth()));
f32 rightEdge = baseTrans.x + width;
if (rightEdge < pos.x) {
rightEdge *= rect4x3.GetWidth() / rect.GetWidth();
mDragOffsetX = -rightEdge;
} else {
pos.x *= rect4x3.GetWidth() / rect.GetWidth();
mDragOffsetX = -pos.x;
@@ -1950,7 +1958,7 @@ namespace ipl {
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(&getInfo(index), index);
System::getNwc24Manager()->updateFriendInfo(&mInfos[static_cast<s32>(index)], index);
}
void FriendListCache::del(u32 index) {

View File

@@ -140,7 +140,6 @@ void ipl::scene::AddressEdit::reset_gui() {
}
extern "C" void* __nw__FUl(u32);
extern "C" BOOL RFLSearchOfficialData(const RFLCreateID*, u16*);
namespace ipl {
@@ -584,15 +583,10 @@ create_mode_done:
ipl::System::getKeyboard()->init();
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;
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);
}
void ipl::scene::AddressEdit::stt_wait_decide_anm() {

View File

@@ -45,7 +45,7 @@ struct CardThreadState {
MEMAllocator sAllocator_;
static CardThreadState* sThread;
extern "C" void* cardThreadMain();
extern "C" void* cardThreadMain(void*);
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, (void* (*)(void*))cardThreadMain, 0,
OSCreateThread(&sThread->thread, 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() {
extern "C" void* cardThreadMain(void*) {
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 result;
u32 iconAddressBase;
s32 iconAddressOffset;
u32 iconAddressBase;
s32 result;
result = CARDFastOpen(slot, fileNo, &local.fileInfo);
if (result < 0) {
return result;
@@ -873,29 +873,28 @@ iconSpeedDone:
if (result < 0) {
goto clearComment;
}
if ((s32)iconAddressBase < 0) {
result = 0;
} else {
u32 fileSize = (u32)dir->length * local.commentSectorSize;
if (iconAddressBase > fileSize) {
{
u32 fileSize;
if ((s32)iconAddressBase < 0 ||
iconAddressBase > (fileSize = (u32)dir->length * local.commentSectorSize)) {
result = 0;
goto clearComment;
}
u32 endOffset = iconAddressBase + imageSize;
if ((s32)endOffset < 0 || endOffset > fileSize) {
} else {
u32 endOffset = iconAddressBase + imageSize;
if ((s32)endOffset < 0 || endOffset > fileSize) {
result = 0;
goto clearComment;
}
result = CARDRead(&local.fileInfo, sThread->commentBuffer, imageSize,
iconAddressBase);
if (result < 0) {
goto clearComment;
}
memset(sThread->comments[slot][fileNo], 0, 0x40);
memcpy(sThread->comments[slot][fileNo],
sThread->commentBuffer + commentDataOffset, 0x40);
result = 0;
goto clearComment;
goto commentDone;
}
result = CARDRead(&local.fileInfo, sThread->commentBuffer, imageSize,
iconAddressBase);
if (result < 0) {
goto clearComment;
}
memset(sThread->comments[slot][fileNo], 0, 0x40);
memcpy(sThread->comments[slot][fileNo],
sThread->commentBuffer + commentDataOffset, 0x40);
result = 0;
goto commentDone;
}
clearComment:
@@ -1004,27 +1003,29 @@ sectorSizeError:
sectorSizeDone:
;
result = 0;
statusResult = __CARDGetStatusEx(slot, fileNo, &checkedStatus);
if (statusResult >= 0) {
switch (command) {
case 2:
if (checkedStatus.permission & 8) {
result = -10;
{
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;
}
break;
case 3:
if (checkedStatus.permission & 0x10) {
result = -10;
}
break;
} else {
permissionResult = CARDGetResultCode(slot);
}
if (permissionResult < 0) {
reportCardThreadError(slot, command, permissionResult);
goto finish;
}
} else {
result = CARDGetResultCode(slot);
}
if (result < 0) {
reportCardThreadError(slot, command, result);
goto finish;
}
result = __CARDGetStatusEx(slot, fileNo, &createStatus);
@@ -1198,8 +1199,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

@@ -147,14 +147,13 @@ bool MemoryCardManager::isMoveEnable(u8 slot, u32 index, long* code) {
CardDirectory* dirs = reinterpret_cast<CardDirectory*>(memorycard::getCardDirState());
memorycard::CardState* states = memorycard::getCardSlotState();
u32 file = mFile[slot][index].fileNo;
memorycard::FileInfo* dir = NULL;
long result;
bool enabled = false;
if (isDistSlot(slot, NULL) &&
((dir = &dirs[slot][file])->canMove != 0) &&
dirs[slot][file].canMove != 0 &&
states[slot].key == states[slot ^ 1].key &&
states[slot ^ 1].freeBlocks >= dir->size && states[slot ^ 1].unk_0x0E != 0 &&
dir->unk_0x06 == 0) {
states[slot ^ 1].freeBlocks >= dirs[slot][file].size && states[slot ^ 1].unk_0x0E != 0 &&
dirs[slot][file].unk_0x06 == 0) {
result = -0x15;
enabled = true;
} else {
@@ -167,13 +166,13 @@ bool MemoryCardManager::isMoveEnable(u8 slot, u32 index, long* code) {
} else {
result = -0x1c;
}
} else if ((dir = &dirs[slot][file])->canMove == 0) {
} else if (dirs[slot][file].canMove == 0) {
result = -0x1a;
} else if (states[slot].key != states[slot ^ 1].key) {
result = -0x1b;
} else if (states[slot ^ 1].freeBlocks < dir->size || states[slot ^ 1].unk_0x0E == 0) {
} else if (states[slot ^ 1].freeBlocks < dirs[slot][file].size || states[slot ^ 1].unk_0x0E == 0) {
result = -0x19;
} else if (dir->unk_0x06 != 0) {
} else if (dirs[slot][file].unk_0x06 != 0) {
result = -0x18;
}
}
@@ -187,14 +186,13 @@ bool MemoryCardManager::isCopyEnable(u8 slot, u32 index, long* code) {
CardDirectory* dirs = reinterpret_cast<CardDirectory*>(memorycard::getCardDirState());
memorycard::CardState* states = memorycard::getCardSlotState();
u32 file = mFile[slot][index].fileNo;
memorycard::FileInfo* dir = NULL;
long result;
bool enabled = false;
if (isDistSlot(slot, NULL) &&
((dir = &dirs[slot][file])->canCopy != 0) &&
dirs[slot][file].canCopy != 0 &&
states[slot].key == states[slot ^ 1].key &&
states[slot ^ 1].freeBlocks >= dir->size && states[slot ^ 1].unk_0x0E != 0 &&
dir->unk_0x06 == 0) {
states[slot ^ 1].freeBlocks >= dirs[slot][file].size && states[slot ^ 1].unk_0x0E != 0 &&
dirs[slot][file].unk_0x06 == 0) {
result = -0x15;
enabled = true;
} else {
@@ -207,13 +205,13 @@ bool MemoryCardManager::isCopyEnable(u8 slot, u32 index, long* code) {
} else {
result = -0x1c;
}
} else if ((dir = &dirs[slot][file])->canCopy == 0) {
} else if (dirs[slot][file].canCopy == 0) {
result = -0x1a;
} else if (states[slot].key != states[slot ^ 1].key) {
result = -0x1b;
} else if (states[slot ^ 1].freeBlocks < dir->size || states[slot ^ 1].unk_0x0E == 0) {
} else if (states[slot ^ 1].freeBlocks < dirs[slot][file].size || states[slot ^ 1].unk_0x0E == 0) {
result = -0x19;
} else if (dir->unk_0x06 != 0) {
} else if (dirs[slot][file].unk_0x06 != 0) {
result = -0x18;
}
}
@@ -281,7 +279,11 @@ void MemoryCardManager::update_file_array(u8 slot) {
memorycard::CardState* states = memorycard::getCardSlotState();
states[slot].changed = 0;
sort_file_array(slot);
long command = mLastCmd;
enum CardCommand {
NoCommand, Format, Copy, Move, Delete,
CopyComplete, MoveComplete, DeleteComplete, FormatComplete
};
CardCommand command = static_cast<CardCommand>(mLastCmd);
if ((u32)(command - 1) <= 3) {
if (mLastResult == -0x15) {
mLastResult = memorycard::getCardLastCMDFCmdResult();

View File

@@ -1266,10 +1266,9 @@ 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");
}
@@ -1282,11 +1281,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

@@ -1406,10 +1406,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,23 +2710,19 @@ namespace ipl {
nw4r::ut::Rect projection;
System::getProjectionRect(&projection);
GXRenderModeObj* renderMode = System::getRenderModeObj();
f32 scissorWidth;
f32 scissorY;
f32 scissorX;
f32 scissorY;
f32 scissorWidth;
f32 scissorHeight;
u16 framebufferWidth;
u16 framebufferHeight;
if (mState == 7 || mState == 12 || mState == 14) {
nw4r::math::MTX44 matrix;
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;
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;
MTXOrtho(matrix, top, bottom, left, right, -100.0f, 100.0f);
nw4r::math::VEC4 input(position.x, position.y, 0.0f, 1.0f);
@@ -2734,14 +2730,13 @@ namespace ipl {
nw4r::math::VEC4Transform(&transformed, &matrix, &input);
framebufferWidth = renderMode->fbWidth;
framebufferHeight = renderMode->efbHeight;
scissorWidth = projection.GetWidth();
const f32 projectionWidth = projection.GetWidth();
scissorX = ((1.0f + transformed.x) * framebufferWidth / 2) -
((mThumbOffsetX * mScale.x) * (framebufferWidth / projectionWidth));
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 / scissorWidth);
(framebufferWidth / projectionWidth);
scissorHeight = 2.0f * (mThumbOffsetY * mScale.y);
} else {
framebufferWidth = renderMode->fbWidth;
@@ -3411,7 +3406,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() && SDChannelSelect::isChannelReady(channel) &&
if (controller->pinchTrg() && iplSDChannelObj_hasAppMeta(channel) &&
!mpScene->mbSDCardBroken) {
if (!writeProtected) {
mpScene->startDrag(controller, mpScene->mCurrentPage, index);
@@ -3425,20 +3420,20 @@ namespace ipl {
break;
case ::gui::EventHandler::ON_DRAG:
if (mpScene->mState == 1 && controller != NULL && controller->decide() &&
SDChannelSelect::isChannelReady(channel)) {
iplSDChannelObj_hasAppMeta(channel)) {
mpScene->selectChannel(channel->getPage(), channel->getIndex());
TVRCManager::getHandle()->setEnable(FALSE);
}
break;
case ::gui::EventHandler::ON_POINT:
if (mpScene->mState == 1 && SDChannelSelect::isChannelReady(channel)) {
if (mpScene->mState == 1 && iplSDChannelObj_hasAppMeta(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 && SDChannelSelect::isChannelReady(channel)) {
if (mpScene->mState == 1 && iplSDChannelObj_hasAppMeta(channel)) {
iplSDChannelObj_startDisappear(channel, 0);
}
break;

View File

@@ -167,6 +167,11 @@ typedef struct AOSSKeySchedule {
u32 length;
} AOSSKeySchedule;
typedef struct AOSSKeyMaterial {
u8 nonce[2];
u8 address[8];
} AOSSKeyMaterial;
typedef struct AOSSReceiveBuffer {
s32 socket;
u32 length;
@@ -257,8 +262,7 @@ static AOSSRuntimeState s_runtime;
static AOSSConfigData s_configData;
static u8 s_networkBuffer[0x280];
static struct {
u8 keyNonce[2];
u8 keyAddress[8];
AOSSKeyMaterial key;
u8 payload[0x5e];
} s_packetState;
static u32 s_crcTable[0x100];
@@ -283,8 +287,10 @@ 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 int AOSSi_Sleep(u32 duration);
extern int AOSSi_WLANConnect(void);
extern void AOSSi_Sleep(u32 duration);
struct AOSSConnection;
struct AOSSConnectionStatus;
extern int AOSSi_WLANConnect(struct AOSSConnection* connection, struct AOSSConnectionStatus* status);
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);
@@ -617,6 +623,20 @@ 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;
@@ -724,19 +744,15 @@ handle_initial_link:
AOSSi_Free(s_accessPointList);
s_accessPointList = 0;
}
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);
{
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);
}
}
s_socket = SOSocket(2,2,0);
if (s_socket < 0) {
input->status = 0xf;
@@ -801,7 +817,7 @@ perform_request:
if (s_socketStarted == 1) {
s_socketStarted = 0;
requestResult = SOCleanup();
if (-1 < requestResult) goto request_socket_cleanup_complete;
if (requestResult >= 0) goto request_socket_cleanup_complete;
requestResult = -1;
}
else {
@@ -890,7 +906,6 @@ 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;
@@ -943,73 +958,76 @@ request_socket_cleanup_complete:
goto finish_initialization;
}
}
requestResult = s_socket;
switch (protocolState) {
case 0:
if (s_operationState != 2) {
s_operationState = 2;
AOSSi_Status(2);
}
requestResult = AOSSSendDiscoveryRequest(networkAddresses,&requestRecords,requestResult);
break;
case 1:
if (s_operationState != 3) {
s_operationState = 3;
AOSSi_Status(3);
}
requestResult = AOSSSendHelloRequest(networkAddresses,&requestRecords,requestResult);
{
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(requestResult,packetWords,0x18,0,&replyAddress);
requestResult = 0;
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:
requestResult = -1;
break;
}
if (requestResult == -1) {
s_errorCode = protocolState + 0x1000;
input->status = 0xf;
if (s_accessPointConfig) {
AOSSi_Free(s_accessPointConfig);
s_accessPointConfig = (int *)0x0;
break;
default:
sendResult = -1;
break;
}
if (s_accessPointList) {
AOSSi_Free(s_accessPointList);
s_accessPointList = 0;
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;
}
resultCode = 0xffffffff;
goto finish_initialization;
}
memset(packetBuffer,0,0x5f8);
pollTime.seconds = timeoutMilliseconds / 1000;
@@ -1028,10 +1046,12 @@ request_socket_cleanup_complete:
if (0 < requestResult) goto process_received_packet;
receivedPackets = receivedPackets + 1;
if (receivedPackets > attemptCount) {
switch (protocolState) {
case 0: s_errorCode = 0xf; break;
case 1: s_errorCode = 0x10; break;
default: s_errorCode = 0x11; break;
if (protocolState == 0) {
s_errorCode = 0xf;
} else if (protocolState == 1) {
s_errorCode = 0x10;
} else {
s_errorCode = 0x11;
}
protocolResult = -1;
goto close_protocol_socket;
@@ -1098,8 +1118,7 @@ process_received_packet:
}
else {
if (protocolState != requestResult) {
protocolState = requestResult;
if (requestResult != 2) goto perform_request;
if (requestResult != 2) goto advance_protocol_state;
if (s_socket != -1) {
SOClose(s_socket);
}
@@ -1237,7 +1256,8 @@ wait_for_packet:
goto finish_initialization;
}
AOSSi_Sleep(remainingWait > 100 ? 100 : remainingWait);
initialSleep = remainingWait <= 100 ? remainingWait : 100;
if (remainingWait > 100) initialSleep = 100;
else initialSleep = remainingWait;
}
if (AOSSi_cancel_flag == 1) {
input->status = 0xf;
@@ -1294,15 +1314,18 @@ wait_for_packet:
resultCode = 0xffffffff;
goto finish_initialization;
}
advance_protocol_state:
protocolState = requestResult;
goto perform_request;
}
protocolState = requestResult;
if (receivedPackets > waitSettings.halfwords.high) {
switch (requestResult) {
case 0: s_errorCode = 0xf; break;
case 1: s_errorCode = 0x10; break;
default: s_errorCode = 0x11; break;
if (requestResult == 0) {
s_errorCode = 0xf;
} else if (requestResult == 1) {
s_errorCode = 0x10;
} else {
s_errorCode = 0x11;
}
protocolResult = -1;
goto close_protocol_socket;
@@ -1322,8 +1345,7 @@ wait_for_packet:
resultCode = 0xffffffff;
goto finish_initialization;
}
if (retryDelay > 100) AOSSi_Sleep(100);
else AOSSi_Sleep(retryDelay);
AOSSi_Sleep(retryDelay > 100 ? 100 : retryDelay);
if (retryDelay > 100) delayStep = 100;
else delayStep = retryDelay;
}
@@ -1350,7 +1372,7 @@ close_protocol_socket:
if (s_socketStarted == 1) {
s_socketStarted = 0;
state = SOCleanup();
if (-1 < state) goto protocol_socket_cleanup_complete;
if (state >= 0) goto protocol_socket_cleanup_complete;
state = -1;
}
else {
@@ -1829,24 +1851,22 @@ int AOSSHandleFinalReply(int state, AOSSReceiveBuffer* packet, int* count, AOSSR
}
int AOSSDecryptMessage(AOSSDecryptionMessage* message) {
u32 checksum;
struct { u32 expected; u32 actual; } integrity;
u8 manufacturerAddress[8];
AOSSKeySchedule schedule;
AOSSEncryptedPayload* encrypted = &message->payload.encrypted;
u8* decryptedData;
u32 controlFlags;
u32 dataLength;
u32 firstValue;
u32 secondValue;
u8* state;
u32 i;
s32 crcIndex;
u32 firstIndex;
u32 secondIndex;
u32 firstValue;
u32 secondValue;
u8* decryptedData;
u32 controlFlags;
u32 stateIndex;
u32 crc;
const u8* inputCursor;
u8* state;
u8* outputCursor;
u32 dataLength;
int result;
memcpy(manufacturerAddress, message->manufacturerAddress, sizeof(manufacturerAddress));
@@ -1878,18 +1898,16 @@ int AOSSDecryptMessage(AOSSDecryptionMessage* message) {
return 100;
}
checksum = message->checksum;
integrity.expected = message->checksum;
schedule.bytes = AOSSi_Alloc(dataLength);
if (schedule.bytes == 0) {
s_errorCode = 2;
result = -1;
} else {
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);
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);
outputCursor = decryptedData;
inputCursor = encrypted->data;
for (i = 0; i < dataLength; i++) {
state = schedule.bytes;
@@ -1902,15 +1920,18 @@ int AOSSDecryptMessage(AOSSDecryptionMessage* message) {
schedule.j = secondIndex;
state[secondIndex] = (u8)firstValue;
state[firstIndex] = (u8)secondValue;
*outputCursor++ = *inputCursor++ ^ state[stateIndex % schedule.length];
{
u8 streamByte = state[stateIndex % schedule.length];
decryptedData[i] = streamByte ^ *inputCursor++;
}
}
crc = 0xffffffff;
integrity.actual = 0xffffffff;
AOSSInitCrc32Table(0, s_crcTable);
for (crcIndex = 0; crcIndex < (s32)dataLength; crcIndex++) {
crc = (crc >> 8) ^ s_crcTable[(crc ^ decryptedData[crcIndex]) & 0xff];
integrity.actual = (integrity.actual >> 8) ^ s_crcTable[(integrity.actual ^ decryptedData[crcIndex]) & 0xff];
}
if (((crc ^ 0xffffffff) & 0xff) != checksum) {
if (((integrity.actual ^ 0xffffffff) & 0xff) != integrity.expected) {
s_errorCode = 0x12;
AOSSi_Free(schedule.bytes);
result = -1;
@@ -2316,8 +2337,8 @@ int AOSSSendHelloRequest(void* packet, void* request, int socket) {
u16 nonce;
u32 stateLength;
u32 index;
u32 firstByte;
u32 firstIndex;
u32 firstByte;
u32 secondIndex;
u8* state;
u8 value;
@@ -2359,10 +2380,9 @@ 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.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);
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);
for (index = 0; index < 8; index++) {
state = construction.schedule.bytes;
firstIndex = (construction.schedule.i + 1) % construction.schedule.length & 0xff;
@@ -2546,7 +2566,7 @@ int AOSSConnectAndAwaitHost(void* settings, void* config) {
s32 connectionAttempts = 0;
u32 ticksPerMillisecond;
if (AOSSi_WLANConnect() != 0) {
if (AOSSi_WLANConnect(settings, config) != 0) {
return -1;
}

View File

@@ -126,7 +126,7 @@ int AOSSi_EndLocal(void) {
return 0;
}
int AOSSi_WLANGetBSSList(struct AOSSAccessPointList** output) {
int AOSSi_WLANGetBSSList(void** 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(void) {
int AOSSi_Status(int status) {
if (statusCallback != NULL) {
statusCallback();
}

View File

@@ -357,11 +357,6 @@ extern int SOBind(int socket, void* address);
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, void* address);
typedef struct {
NCDIpConfig ipConfig;
NCDIfConfig ifConfig;
} AtermNetworkSettings;
typedef struct {
u32 ssidLength;
u8 ssid[32];
@@ -400,10 +395,13 @@ typedef struct {
u8 value[4];
} AtermRequestOption8;
typedef struct {
u8 firstAddress[6];
u8 secondAddress[6];
char productName[4];
typedef union {
struct {
u8 firstAddress[6];
u8 secondAddress[6];
char productName[4];
};
u8 keyMaterial[16];
} AtermAssociationRequest;
typedef struct {
@@ -460,10 +458,6 @@ typedef struct {
u32 securityMode;
u8 reserved028[0x80];
u8 keyMaterial[0x40];
u8 connectionPrefix[0x10];
u8 packetBuffer[0x800];
u16 responseLength;
u8 trailingData[6];
} AtermConfigurationResult;
typedef struct {
@@ -473,25 +467,12 @@ typedef struct {
} AtermDecodedPayload;
typedef union {
u8 data[0x818];
u8 keyMaterial[32];
struct {
u8 encryptedOptions[0x7F8];
u8 keyMaterial[24];
} session;
struct {
union {
u8 payload[0x800];
AtermDecodedPayload decoded;
};
union {
struct {
u8 challenge[8];
u8 digest[16];
};
u8 keyMaterial[24];
};
} authentication;
} AtermThreadBuffer;
u8 challenge[8];
u8 digest[16];
};
} AtermSession;
typedef struct {
u32 state[4];
@@ -504,11 +485,15 @@ typedef void (*AtermProgressCallback)(void*);
typedef void* (*AtermAllocateCallback)(u32);
typedef void (*AtermFreeCallback)(void*);
AtermNetworkSettings gNetworkSettings;
NCDIpConfig gAtermIpConfig;
NCDIfConfig gAtermIfConfig;
char gAccessPointName[0x24];
AtermScanSettings gScanSettings;
AtermConfigurationResult gAtermConfigurationResult;
AtermThreadBuffer gAtermResponseBuffer;
AtermAssociationRequest gAtermAssociationRequest;
u8 gAtermPacketBuffer[0x800];
AtermDecodedPayload gAtermDecodedResponse;
AtermSession gAtermSession;
static OSThread sAtermThread;
u32 gAtermDeadline = 0xFFFFFFFF;
u32 gAtermScanLimit = 0x40;
@@ -542,7 +527,7 @@ s32 gAtermState;
void ATERMAlarmWakeQueue(OSAlarm* alarm, OSContext* context);
s32 ATERMRunConfigProtocol(void);
void ATERMMd5Update(AtermMd5Context* context, void* input, u32 length);
void ATERMMd5Update(AtermMd5Context* context, u8* input, u32 length);
extern u8 gAtermDigestFill[64];
extern u8* gAtermRequestOptions;
int ATERMAesKeyWrap(u16* destination, u16* source, u32 length, void* key, u32 keyLength);
@@ -569,7 +554,7 @@ int ATERMStartNetworkStack(void) {
OSMessage hostQueueBuffer;
OSAlarm hostAlarm;
ipConfig = &gNetworkSettings.ipConfig;
ipConfig = &gAtermIpConfig;
memset(ipConfig, 0, sizeof(*ipConfig));
ipConfig->adjust.maxTransferUnit = 0x514;
ipConfig->adjust.tcpRetransTimeout = 100;
@@ -583,8 +568,8 @@ int ATERMStartNetworkStack(void) {
memcpy(ipConfig->ip.dns2, &gDefaultSecondaryDns, 4);
NCDSetIpConfig(ipConfig);
memset(&gNetworkSettings.ifConfig, 0, sizeof(gNetworkSettings.ifConfig));
ifConfig = &gNetworkSettings.ifConfig;
memset(&gAtermIfConfig, 0, sizeof(gAtermIfConfig));
ifConfig = &gAtermIfConfig;
ifConfig->selectedMedia = 1;
ifConfig->netif.wireless.rateset = 0;
ifConfig->netif.wireless.configMethod = 0;
@@ -870,6 +855,38 @@ int ATERMFindChangedApRecord(AtermApRecordSet* currentRecords, AtermApRecordSet*
return result;
}
static inline s32 atermFormatHexByte(char* output, u8 byte) {
s32 nibbles[2];
s32 index;
char* encoded = output;
nibbles[0] = (byte & 0xF0) >> 4;
nibbles[1] = byte & 0xF;
for (index = 0; index < 2; index++) {
s32 nibble = nibbles[index];
if (nibble <= 9) {
*encoded++ = nibble + '0';
} else {
*encoded++ = nibble + '7';
}
}
*encoded = 0;
return encoded - output;
}
static inline void atermFormatMacAddress(char* text, const u8* address) {
const u8* input = address;
char* output = text;
s32 index;
for (index = 0; index < 6; index++) {
u8 byte = *input++;
output += atermFormatHexByte(output, byte);
if (index < 5) {
*output++ = ':';
}
}
*output = 0;
}
int ATERMDiscoverAccessPoints(void) {
s32 result = -1;
u32 scanBufferBytes;
@@ -948,8 +965,8 @@ int ATERMDiscoverAccessPoints(void) {
sizeof(currentRecords->entries[recordIndex].bssid));
descriptorWords += descriptor->length;
ssidCursor += sizeof(AtermApRecord);
bssidCursor += sizeof(AtermApRecord);
recordIndex++;
bssidCursor += sizeof(AtermApRecord);
}
}
@@ -963,35 +980,7 @@ int ATERMDiscoverAccessPoints(void) {
memcpy(gAtermSelectedBssid,
selectedRecord->bssid,
sizeof(selectedRecord->bssid));
{
u8* addressCursor = gAtermSelectedBssid;
s32 addressIndex = 0;
char* output = selectedMacText;
for (addressIndex = 0; ; addressIndex++) {
u8 addressByte = *addressCursor++;
char* encoded = output;
s32 highNibble = (addressByte & 0xF0) >> 4;
s32 lowNibble = addressByte & 0xF;
if (highNibble <= 9) {
*encoded++ = highNibble + '0';
} else {
*encoded++ = highNibble + '7';
}
if (lowNibble <= 9) {
*encoded++ = lowNibble + '0';
} else {
*encoded++ = lowNibble + '7';
}
*encoded = 0;
output += encoded - output;
if (addressIndex == 5) {
break;
}
*output++ = ':';
}
*output = '\0';
}
atermFormatMacAddress(selectedMacText, gAtermSelectedBssid);
break;
}
@@ -1010,18 +999,18 @@ int ATERMDiscoverAccessPoints(void) {
iteration++;
}
if (iteration < 300) {
now = (u32)OSTicksToMilliseconds(OSGetTime());
if (now > gAtermDeadline) {
result = -3;
} else {
result = 1;
if (gAtermCancelRequested != 0) {
result = -8;
}
}
} else {
if (iteration >= 300) {
goto timed_out;
}
now = (u32)OSTicksToMilliseconds(OSGetTime());
if (now > gAtermDeadline) {
timed_out:
result = -3;
} else {
result = 1;
if (gAtermCancelRequested != 0) {
result = -8;
}
}
cleanup:
@@ -1143,7 +1132,7 @@ int ATERMParsePacket(AtermPacket* packet, u32* setupType) {
return 0;
}
int ATERMBuildAssociationRequest(AtermAssociationRequest* request) {
int ATERMBuildAssociationRequest(AtermAssociationRequest* request, AtermSocketAddress* address) {
u8 scanAddress[8];
u8 interfaceMacAddress[8];
char interfaceMacText[32];
@@ -1164,77 +1153,36 @@ int ATERMBuildAssociationRequest(AtermAssociationRequest* request) {
memcpy(request->secondAddress, interfaceMacAddress, 6);
}
if (gAtermUseSharedAddress != 0) {
{
const u8* addressCursor = interfaceMacAddress;
const u8* addressEnd = interfaceMacAddress + 6;
int addressIndex;
char* textCursor = interfaceMacText;
addressIndex = 0;
do {
u8 addressByte = *addressCursor++;
char* encoded = textCursor;
s32 highNibble = (addressByte & 0xF0) >> 4;
s32 lowNibble = addressByte & 0xF;
if (highNibble <= 9) {
*encoded++ = highNibble + '0';
} else {
*encoded++ = highNibble + '7';
}
if (lowNibble <= 9) {
*encoded++ = lowNibble + '0';
} else {
*encoded++ = lowNibble + '7';
}
*encoded = 0;
textCursor += encoded - textCursor;
if (addressIndex < 5) {
*textCursor++ = ':';
}
addressIndex++;
} while (addressCursor < addressEnd);
*textCursor = '\0';
}
{
const u8* addressCursor = scanAddress;
const u8* addressEnd = scanAddress + 6;
int addressIndex;
char* textCursor = scanAddressText;
addressIndex = 0;
do {
u8 addressByte = *addressCursor++;
char* encoded = textCursor;
s32 highNibble = (addressByte & 0xF0) >> 4;
s32 lowNibble = addressByte & 0xF;
if (highNibble <= 9) {
*encoded++ = highNibble + '0';
} else {
*encoded++ = highNibble + '7';
}
if (lowNibble <= 9) {
*encoded++ = lowNibble + '0';
} else {
*encoded++ = lowNibble + '7';
}
*encoded = 0;
textCursor += encoded - textCursor;
if (addressIndex < 5) {
*textCursor++ = ':';
}
addressIndex++;
} while (addressCursor < addressEnd);
*textCursor = '\0';
}
atermFormatMacAddress(interfaceMacText, interfaceMacAddress);
atermFormatMacAddress(scanAddressText, scanAddress);
}
return 1;
}
static inline s32 atermEncodeHexByte(char* key, u8 sourceByte) {
char* encoded = key;
s32 lowNibble = sourceByte & 0xF;
s32 highNibble = (sourceByte & 0xF0) >> 4;
if (highNibble <= 9) {
*encoded++ = highNibble + '0';
} else {
*encoded++ = highNibble + '7';
}
if (lowNibble <= 9) {
*encoded++ = lowNibble + '0';
} else {
*encoded++ = lowNibble + '7';
}
*encoded = 0;
return encoded - key;
}
int ATERMParseAssociationResponse(u16* response) {
u16* optionCursor = response + 4;
u8* optionValue;
u16* responseEnd;
u32 optionType;
s32 optionLength;
char* key;
u32 value;
s32 result = 0;
@@ -1272,6 +1220,7 @@ int ATERMParseAssociationResponse(u16* response) {
case 0x208:
case 0x209:
{
char* key;
u32 keyIndex = optionType - 0x206;
key = gScanSettings.wirelessKeys[keyIndex].key;
memset(key, 0, sizeof(gScanSettings.wirelessKeys[keyIndex].key));
@@ -1279,21 +1228,7 @@ int ATERMParseAssociationResponse(u16* response) {
s32 byteIndex;
for (byteIndex = 0; byteIndex < optionLength; byteIndex++) {
u8 sourceByte = *optionValue++;
char* encoded = key;
s32 highNibble = (sourceByte & 0xF0) >> 4;
s32 lowNibble = sourceByte & 0xF;
if (highNibble <= 9) {
*encoded++ = highNibble + '0';
} else {
*encoded++ = highNibble + '7';
}
if (lowNibble <= 9) {
*encoded++ = lowNibble + '0';
} else {
*encoded++ = lowNibble + '7';
}
*encoded = 0;
key += encoded - key;
key += atermEncodeHexByte(key, sourceByte);
}
} else {
memcpy(key, optionValue, optionLength);
@@ -1433,6 +1368,26 @@ int ATERMApplyScanSecuritySettings(void) {
return result;
}
static inline u8* atermAppendOption(u8* cursor, u16 type, u16 length, const void* value) {
AtermPacketOption* option = (AtermPacketOption*)cursor;
u32 recordSize = (length + 4 + 7) & ~7;
memset(option, 0, 4);
option->type = SOHtoNs(type);
option->length = SOHtoNs(length);
memset(option->value, 0, recordSize - 4);
memcpy(option->value, value, length);
return cursor + recordSize;
}
static inline u8* atermAppendLongOption(AtermRequestOption16* option, u16 type, u16 length, const void* value) {
option = memset(option, 0, 4);
option->type = SOHtoNs(type);
option->length = SOHtoNs(length);
memset(option->value, 0, sizeof(option->value));
memcpy(option->value, value, length);
return (u8*)(option + 1);
}
s32 ATERMRunConfigProtocol(void) {
OSMessageQueue waitQueue;
OSMessage waitBuffer[1];
@@ -1440,20 +1395,29 @@ s32 ATERMRunConfigProtocol(void) {
OSAlarm waitAlarm;
AtermSocketAddress socketBindAddress;
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;
s32 retries = 0;
u32 lastSendTime = 0;
AtermAssociationRequest* request;
AtermDecodedPayload* response;
AtermPacket* packet;
AtermSession* session;
s32 socket;
s32 result;
s32 failed;
s32 retries;
u32 lastSendTime;
u32 now;
s32 receivedLength;
u32 reciprocal = 0x10624DD3;
gAtermProtocolState = 1;
request = &gAtermAssociationRequest;
packet = (AtermPacket*)gAtermPacketBuffer;
response = &gAtermDecodedResponse;
session = &gAtermSession;
socket = 0;
result = -5;
lastSendTime = 0;
retries = 0;
failed = 0;
while (failed == 0 && gAtermCancelRequested == 0) {
OSInitMessageQueue(&waitQueue, waitBuffer, 1);
OSCreateAlarm(&waitAlarm);
@@ -1526,11 +1490,11 @@ s32 ATERMRunConfigProtocol(void) {
break;
}
peerAddress.length = 8;
ATERMBuildAssociationRequest((AtermAssociationRequest*)gAtermConfigurationResult.connectionPrefix);
receivedLength = SORecvFrom(socket, gAtermConfigurationResult.packetBuffer,
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
ATERMBuildAssociationRequest(request, &peerAddress);
receivedLength = SORecvFrom(socket, gAtermPacketBuffer,
sizeof(gAtermPacketBuffer), 4, &peerAddress);
if (receivedLength > 0 &&
ATERMParsePacket((AtermPacket*)gAtermConfigurationResult.packetBuffer, &gAtermResponseMode)) {
ATERMParsePacket((AtermPacket*)gAtermPacketBuffer, &gAtermResponseMode)) {
AtermProgress progress;
gAtermDeadline = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6)) + 30000;
gAtermProtocolState = 5;
@@ -1547,55 +1511,30 @@ s32 ATERMRunConfigProtocol(void) {
break;
case 5:
{
u8 optionIds[7] = {6, 0, 1, 2, 3, 4, 5};
AtermRequestOption8* shortOption = (AtermRequestOption8*)gAtermRequestOptions;
AtermRequestOption16* longOption;
u8* optionEnd = gAtermRequestOptions;
AtermRequestOption16* longOptions;
u16 enabled = SOHtoNs(1);
u8 optionIds[7] = {6, 0, 1, 2, 3, 4, 5};
AtermSocketAddress sendAddress;
u8* optionEnd;
memset(shortOption, 0, 4);
shortOption->type = SOHtoNs(1);
shortOption->length = SOHtoNs(2);
memset(shortOption->value, 0, sizeof(shortOption->value));
memcpy(shortOption->value, &enabled, sizeof(enabled));
shortOption++;
memset(shortOption, 0, 4);
shortOption->type = SOHtoNs(2);
shortOption->length = SOHtoNs(2);
memset(shortOption->value, 0, sizeof(shortOption->value));
memcpy(shortOption->value, &enabled, sizeof(enabled));
shortOption++;
s32 messageLength;
optionEnd = atermAppendOption(optionEnd, 1, 2, &enabled);
optionEnd = atermAppendOption(optionEnd, 2, 2, &enabled);
if (gAtermResponseMode != 0) {
memset(shortOption, 0, 4);
shortOption->type = SOHtoNs(5);
shortOption->length = SOHtoNs(2);
memset(shortOption->value, 0, sizeof(shortOption->value));
memcpy(shortOption->value, &enabled, sizeof(enabled));
shortOption++;
optionEnd = atermAppendOption(optionEnd, 5, 2, &enabled);
}
longOption = (AtermRequestOption16*)shortOption;
memset(longOption, 0, 4);
longOption->type = SOHtoNs(3);
longOption->length = SOHtoNs(7);
memset(longOption->value, 0, sizeof(longOption->value));
memcpy(longOption->value, optionIds, sizeof(optionIds));
longOption++;
longOptions = (AtermRequestOption16*)optionEnd;
optionEnd = atermAppendLongOption(longOptions, 3, sizeof(optionIds), optionIds);
if (gAtermResponseMode != 0) {
memset(longOption, 0, 4);
longOption->type = SOHtoNs(4);
longOption->length = SOHtoNs(6);
memset(longOption->value, 0, sizeof(longOption->value));
memcpy(longOption->value, gAtermAddressBuffer, 6);
longOption++;
optionEnd = atermAppendLongOption(longOptions + 1, 4, 6, gAtermAddressBuffer);
}
optionEnd = (u8*)longOption;
gAtermMessageLength = ATERMBuildEncryptedMessage((u16*)gAtermConfigurationResult.packetBuffer, 2,
(u16*)response->data, optionEnd - gAtermRequestOptions + 8, NULL);
messageLength = ATERMBuildEncryptedMessage((u16*)gAtermPacketBuffer, 2,
(u16*)response, optionEnd - gAtermRequestOptions + 8, NULL);
gAtermMessageLength = messageLength;
sendAddress.length = 8;
sendAddress.family = 2;
sendAddress.address = 0xFFFFFFFF;
sendAddress.port = SOHtoNs(0xE601);
SOSendTo(socket, gAtermConfigurationResult.packetBuffer, gAtermMessageLength, 0, &sendAddress);
SOSendTo(socket, gAtermPacketBuffer, messageLength, 0, &sendAddress);
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
gAtermProtocolState = 6;
break;
@@ -1608,36 +1547,38 @@ s32 ATERMRunConfigProtocol(void) {
failed = 1;
break;
}
receivedLength = SORecvFrom(socket, gAtermConfigurationResult.packetBuffer,
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
receivedLength = SORecvFrom(socket, gAtermPacketBuffer,
sizeof(gAtermPacketBuffer), 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* cursor = (u8*)packet;
u8* packetEnd = packet->payload + payloadLength;
u8* payload = packet->payload;
u8* payload;
u16 packetChecksum;
for (; cursor < packetEnd; cursor++) {
checksum += *cursor;
}
if ((u16)checksum != SONtoHs(*(u16*)packetEnd)) {
packetChecksum = SONtoHs(*(u16*)packetEnd);
payload = packet->payload;
if ((u16)checksum != packetChecksum) {
payload = NULL;
}
if (payload == NULL) {
payloadLength = 0;
} else if (sequence != 3) {
payloadLength = 0;
} else if (gAtermConfigurationResult.connectionPrefix != NULL) {
ATERMAesKeyUnwrap((u16*)response->authentication.payload, (u16*)payload,
payloadLength, gAtermConfigurationResult.connectionPrefix, 16);
} else if (gAtermAssociationRequest.keyMaterial != NULL) {
ATERMAesKeyUnwrap((u16*)response, (u16*)payload,
payloadLength, gAtermAssociationRequest.keyMaterial, 16);
payloadLength -= 8;
} else {
memcpy(response->authentication.payload, payload, payloadLength);
memcpy(response, payload, payloadLength);
}
if (payloadLength != 0) {
AtermPacketOption* option = (AtermPacketOption*)response->authentication.decoded.options;
u8* optionEnd = (u8*)option + SONtoHs(response->authentication.decoded.length);
AtermPacketOption* option = (AtermPacketOption*)response->options;
u8* optionEnd = (u8*)option + SONtoHs(response->length);
s32 optionType;
u8* optionValue;
if ((u8*)option >= optionEnd) {
@@ -1647,24 +1588,26 @@ s32 ATERMRunConfigProtocol(void) {
SONtoHs(option->length);
optionValue = option->value;
}
if (optionValue == NULL || optionType != 0x101) {
if (optionType != 0x101) {
break;
}
{
AtermProgress progress;
AtermMd5Context digestContext;
u8 digestLength[8];
u32 authenticationTime = (u32)(OSGetTime() /
(__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
u32 index;
u32 digestBytes;
memcpy(response->authentication.challenge,
optionValue, 8);
AtermSession* authentication;
authentication = memcpy(session->challenge, optionValue, 8);
digestContext.bitCountHigh = 0;
digestContext.bitCountLow = 0;
digestContext.state[0] = 0x67452301;
digestContext.state[1] = 0xEFCDAB89;
digestContext.state[2] = 0x98BADCFE;
digestContext.state[3] = 0x10325476;
ATERMMd5Update(&digestContext, &authenticationTime, sizeof(authenticationTime));
ATERMMd5Update(&digestContext, (u8*)&authenticationTime, sizeof(authenticationTime));
digestLength[0] = digestContext.bitCountLow;
digestLength[1] = digestContext.bitCountLow >> 8;
digestLength[2] = digestContext.bitCountLow >> 16;
@@ -1677,27 +1620,15 @@ s32 ATERMRunConfigProtocol(void) {
ATERMMd5Update(&digestContext, gAtermDigestFill,
digestBytes < 56 ? 56 - digestBytes : 120 - digestBytes);
ATERMMd5Update(&digestContext, digestLength, sizeof(digestLength));
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++) {
*contextByte++ = 0;
}
for (index = 0; index < 4; index++) {
u32 word = digestContext.state[index];
authentication->digest[index * 4] = word;
authentication->digest[index * 4 + 1] = word >> 8;
authentication->digest[index * 4 + 2] = word >> 16;
authentication->digest[index * 4 + 3] = word >> 24;
}
for (index = sizeof(digestContext); index != 0; index--) {
((u8*)&digestContext)[index - 1] = 0;
}
gAtermProtocolState = 7;
gAtermState = 5;
@@ -1718,58 +1649,62 @@ s32 ATERMRunConfigProtocol(void) {
break;
case 7:
{
AtermRequestOption16* option = (AtermRequestOption16*)response->authentication.decoded.options;
AtermRequestOption16* option = (AtermRequestOption16*)response->options;
AtermSocketAddress sendAddress;
memset(response->data, 0, 8);
s32 messageLength;
memset(response, 0, 8);
memset(option, 0, 4);
option->type = SOHtoNs(0x102);
option->length = SOHtoNs(8);
memset(option->value, 0, sizeof(option->value));
memcpy(option->value, response->authentication.digest, 8);
gAtermReplyLength = (u8*)(option + 1) - response->data;
response->authentication.decoded.length = gAtermReplyLength - 8;
gAtermMessageLength = ATERMBuildEncryptedMessage((u16*)gAtermConfigurationResult.packetBuffer, 4,
(u16*)response->data, gAtermReplyLength, gAtermConfigurationResult.connectionPrefix);
memcpy(option->value, session->digest, 8);
gAtermReplyLength = (u8*)(option + 1) - (u8*)response;
response->length = gAtermReplyLength - 8;
messageLength = ATERMBuildEncryptedMessage((u16*)gAtermPacketBuffer, 4,
(u16*)response, gAtermReplyLength, gAtermAssociationRequest.keyMaterial);
gAtermMessageLength = messageLength;
sendAddress.length = 8;
sendAddress.family = 2;
sendAddress.address = 0xFFFFFFFF;
sendAddress.port = SOHtoNs(0xE601);
SOSendTo(socket, gAtermConfigurationResult.packetBuffer, gAtermMessageLength, 0, &sendAddress);
SOSendTo(socket, gAtermPacketBuffer, messageLength, 0, &sendAddress);
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
memset(&gScanSettings, 0, 0x254);
gAtermProtocolState = 8;
break;
}
case 8:
receivedLength = SORecvFrom(socket, gAtermConfigurationResult.packetBuffer,
sizeof(gAtermConfigurationResult.packetBuffer), 4, &peerAddress);
receivedLength = SORecvFrom(socket, gAtermPacketBuffer,
sizeof(gAtermPacketBuffer), 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* cursor = (u8*)packet;
u8* packetEnd = packet->payload + payloadLength;
u8* payload = packet->payload;
u8* payload;
u16 packetChecksum;
for (; cursor < packetEnd; cursor++) {
checksum += *cursor;
}
if ((u16)checksum != SONtoHs(*(u16*)packetEnd)) {
packetChecksum = SONtoHs(*(u16*)packetEnd);
payload = packet->payload;
if ((u16)checksum != packetChecksum) {
payload = NULL;
}
if (payload == NULL) {
payloadLength = 0;
} else if (sequence != 5) {
payloadLength = 0;
} else if (sessionKey != NULL) {
ATERMAesKeyUnwrap((u16*)response->authentication.payload, (u16*)payload,
payloadLength, sessionKey, 16);
} else if (session->keyMaterial != NULL) {
ATERMAesKeyUnwrap((u16*)response, (u16*)payload,
payloadLength, session->keyMaterial, 16);
payloadLength -= 8;
} else {
memcpy(response->authentication.payload, payload, payloadLength);
memcpy(response, payload, payloadLength);
}
gAtermReplyLength = payloadLength;
if (payloadLength != 0 && ATERMParseAssociationResponse((u16*)response->data)) {
if (payloadLength != 0 && ATERMParseAssociationResponse((u16*)response)) {
gAtermProtocolState = 9;
retries = 0;
gAtermMode = gScanSettings.ssid[0] != 0;
@@ -1789,18 +1724,20 @@ s32 ATERMRunConfigProtocol(void) {
break;
case 9:
{
AtermRequestOption8* option = (AtermRequestOption8*)response->authentication.decoded.options;
AtermRequestOption8* option = (AtermRequestOption8*)response->options;
AtermSocketAddress sendAddress;
memset(response->data, 0, 8);
s32 messageLength;
memset(response, 0, 8);
memset(option, 0, 4);
option->type = SOHtoNs(0x301);
option->length = SOHtoNs(1);
memset(option->value, 0, sizeof(option->value));
memcpy(option->value, &gAtermMode, 1);
gAtermReplyLength = (u8*)(option + 1) - response->data;
response->authentication.decoded.length = gAtermReplyLength - 8;
gAtermMessageLength = ATERMBuildEncryptedMessage((u16*)gAtermConfigurationResult.packetBuffer, 6,
(u16*)response->data, gAtermReplyLength, sessionKey);
gAtermReplyLength = (u8*)(option + 1) - (u8*)response;
response->length = gAtermReplyLength - 8;
messageLength = ATERMBuildEncryptedMessage((u16*)gAtermPacketBuffer, 6,
(u16*)response, gAtermReplyLength, session->keyMaterial);
gAtermMessageLength = messageLength;
if (NCDGetLinkStatus() != 5) {
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6)) + 1000;
retries = 10;
@@ -1811,7 +1748,7 @@ s32 ATERMRunConfigProtocol(void) {
sendAddress.family = 2;
sendAddress.address = 0xFFFFFFFF;
sendAddress.port = SOHtoNs(0xE601);
SOSendTo(socket, gAtermConfigurationResult.packetBuffer, gAtermMessageLength, 0, &sendAddress);
SOSendTo(socket, gAtermPacketBuffer, messageLength, 0, &sendAddress);
lastSendTime = (u32)(OSGetTime() / (__mulhwu(reciprocal, OS_BUS_CLOCK >> 2) >> 6));
gAtermProtocolState = 10;
break;
@@ -2325,12 +2262,17 @@ void ATERMAesDecryptBlock(const u32* expandedKey, u32 rounds, const u8* input, u
void ATERMMd5Transform(u32 state[4], const u8 block[64]);
void ATERMMd5Update(AtermMd5Context* context, void* input, u32 length) {
u8* data = (u8*)input;
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) {
u32 bufferIndex = (context->bitCountLow >> 3) & 0x3F;
u32 bytesToFill;
u32 copiedBytes;
u32 index;
context->bitCountLow += length << 3;
if (context->bitCountLow < (length << 3)) {
@@ -2339,20 +2281,16 @@ void ATERMMd5Update(AtermMd5Context* context, void* input, u32 length) {
context->bitCountHigh += length >> 29;
bytesToFill = 64 - bufferIndex;
if (length >= bytesToFill) {
for (copiedBytes = 0; copiedBytes < bytesToFill; copiedBytes++) {
context->buffer8[bufferIndex + copiedBytes] = data[copiedBytes];
}
atermMd5Copy(&context->buffer8[bufferIndex], input, bytesToFill);
ATERMMd5Transform(context->state, context->buffer8);
for (copiedBytes = bytesToFill; copiedBytes + 63 < length; copiedBytes += 64) {
ATERMMd5Transform(context->state, data + copiedBytes);
ATERMMd5Transform(context->state, input + copiedBytes);
}
bufferIndex = 0;
} else {
copiedBytes = 0;
}
for (index = 0; index < length - copiedBytes; index++) {
context->buffer8[bufferIndex + index] = data[copiedBytes + index];
}
atermMd5Copy(&context->buffer8[bufferIndex], &input[copiedBytes], length - copiedBytes);
}
#define ATERM_MD5_STEP(A, B, C, D, WORD, CONSTANT, SHIFT, F) \
@@ -2588,7 +2526,7 @@ int ATERMi_ApConfigGetVersion(void) {
return 0x106;
}
u8* gAtermRequestOptions = gAtermResponseBuffer.data;
u8* gAtermRequestOptions = gAtermDecodedResponse.options;
u32 gAtermUseSharedAddress = 1;
char gAtermProductName[5] = "WARP";

View File

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

View File

@@ -13,11 +13,6 @@
#undef IPL_SOUND_RECT_OUT_OF_LINE
extern "C" ipl::System::Arg smArg__Q23ipl6System;
extern "C" void __as__Q49textinput6extend8savedata11MemoSettingFRCQ49textinput6extend8savedata11MemoSetting();
extern "C" void setMemoSetting__Q33ipl8savedata7ManagerFRCQ49textinput6extend8savedata11MemoSetting();
extern "C" void flushAsync__Q33ipl8savedata7ManagerFPQ23EGG4Heap();
namespace ipl {
namespace keyboard {
// clang-format off
@@ -170,11 +165,17 @@ namespace ipl {
mpKeyboardMgr->cancel();
}
static inline textinput::extend::savedata::MemoSetting loadMemoSetting() {
textinput::extend::savedata::MemoSetting memoSetting;
memoSetting = System::getSaveData()->getMemoSetting();
return memoSetting;
}
void Manager::create(nand::File* file, EGG::Heap* heap) {
u8* arcBuffer = file->getBuffer();
// Open arc
nw4r::lyt::ArcResourceLink* arcLink = new (heap, 4) nw4r::lyt::ArcResourceLink();
nw4r::lyt::ArcResourceLink* const arcLink = new (heap, 4) nw4r::lyt::ArcResourceLink();
arcLink->Set(arcBuffer, "arc");
nw4r::lyt::MultiArcResourceAccessor* multiArc = new (heap, 4) nw4r::lyt::MultiArcResourceAccessor();
multiArc->Attach(arcLink);
@@ -198,7 +199,7 @@ namespace ipl {
multiArc->RegistFont(&wbf2Private);
// Allocators
EGG::Allocator* allocator = new (heap, 4) EGG::Allocator(heap, 4);
EGG::Allocator* const allocator = new (heap, 4) EGG::Allocator(heap, 4);
nw4r::lyt::Layout::SetAllocator(allocator);
u8* systemDict = NULL;
@@ -206,20 +207,22 @@ namespace ipl {
#ifdef USE_ZI8
// Zi dictionaries
for (int i = 0, oemIndex = EZTX_LANG_MAX; i < EZTX_LANG_MAX; i++, oemIndex++) {
for (u32 i = 0; i < EZTX_LANG_MAX; i++) {
if (systemDict == NULL && System::getZiDicData(i) != NULL) {
systemDict = System::getZiDicData(i);
}
if (oemDict == NULL && System::getZiDicData(i) != NULL) {
oemDict = System::getZiDicData(oemIndex);
oemDict = System::getZiDicData()[static_cast<int>(i + EZTX_LANG_MAX)];
}
}
for (int i = 0, oemIndex = EZTX_LANG_MAX; i < EZTX_LANG_MAX; i++, oemIndex++) {
for (u32 i = 0; i < EZTX_LANG_MAX; i++) {
u8* usedSystemDict = System::getZiDicData(i);
u8* usedOemDict = System::getZiDicData(oemIndex);
u8* usedOemDict = System::getZiDicData()[static_cast<int>(i + EZTX_LANG_MAX)];
usedSystemDict = usedSystemDict != NULL ? usedSystemDict : systemDict;
if (usedSystemDict == NULL) {
usedSystemDict = systemDict;
}
if (usedOemDict == NULL) {
usedOemDict = oemDict;
}
@@ -230,11 +233,7 @@ namespace ipl {
#endif // USE_ZI8
// Save data
textinput::extend::savedata::MemoSetting memoSettingCopy;
textinput::extend::savedata::MemoSetting memoSetting;
memoSetting = System::getSaveData()->getMemoSetting();
memoSettingCopy = memoSetting;
mSaveData = memoSettingCopy;
mSaveData = textinput::extend::savedata::MemoSetting(loadMemoSetting());
// Memo manager
mpManager = new (heap, 4) textinput::MemoManager(allocator, multiArc, &mEvent);
@@ -630,97 +629,30 @@ namespace ipl {
#endif // JAPANESE_BUILD
}
asm void Manager::doSave() {
nofralloc
stwu r1, -0x30(r1)
mflr r0
stw r0, 0x34(r1)
stw r31, 0x2c(r1)
mr r31, r3
stw r30, 0x28(r1)
lwz r3, 4(r3)
lwz r12, 0(r3)
lwz r12, 0xd8(r12)
mtctr r12
bctrl
srwi r10, r4, 0x18
srwi r9, r3, 0x18
stb r10, 0x1c(r1)
rlwinm r10, r4, 0x10, 0x18, 0x1f
li r5, 8
stb r9, 0x18(r1)
rlwinm r9, r3, 0x10, 0x18, 0x1f
lbz r6, 0x1c(r1)
stb r10, 0x1d(r1)
rlwinm r10, r4, 0x18, 0x18, 0x1f
lbz r8, 0x18(r1)
stb r9, 0x19(r1)
rlwinm r9, r3, 0x18, 0x18, 0x1f
lbz r0, 0x1d(r1)
lbz r7, 0x19(r1)
stb r10, 0x1e(r1)
stb r4, 0x1f(r1)
stb r4, 0xf(r1)
addi r4, r1, 8
stb r9, 0x1a(r1)
stb r3, 0x1b(r1)
stb r3, 0xb(r1)
addi r3, r1, 0x10
stb r8, 8(r1)
stb r7, 9(r1)
stb r9, 0xa(r1)
stb r6, 0xc(r1)
stb r0, 0xd(r1)
stb r10, 0xe(r1)
lbz r6, 0x2e(r31)
lbz r0, 0x2f(r31)
stb r6, 0x10(r1)
stb r0, 0x11(r1)
lbz r6, 0x30(r31)
lbz r0, 0x31(r31)
stb r6, 0x12(r1)
stb r0, 0x13(r1)
lbz r6, 0x32(r31)
lbz r0, 0x33(r31)
stb r6, 0x14(r1)
stb r0, 0x15(r1)
lbz r6, 0x34(r31)
lbz r0, 0x35(r31)
stb r6, 0x16(r1)
stb r0, 0x17(r1)
bl memcmp
cntlzw r0, r3
li r3, 0
rlwinm. r0, r0, 0x1b, 5, 0x1f
bne doSave_L1
lwz r0, 0x38(r31)
cmpwi r0, 0
bne doSave_L1
li r3, 1
doSave_L1:
cmpwi r3, 0
beq doSave_L2
addi r3, r31, 0x2e
addi r4, r1, 0x18
bl __as__Q49textinput6extend8savedata11MemoSettingFRCQ49textinput6extend8savedata11MemoSetting
lis r30, smArg__Q23ipl6System@ha
addi r4, r31, 0x2e
addi r30, r30, smArg__Q23ipl6System@l
lwz r3, 0x94(r30)
bl setMemoSetting__Q33ipl8savedata7ManagerFRCQ49textinput6extend8savedata11MemoSetting
lwz r3, 0x94(r30)
lwz r4, 0x28(r30)
bl flushAsync__Q33ipl8savedata7ManagerFPQ23EGG4Heap
stw r3, 0x38(r31)
doSave_L2:
lwz r0, 0x34(r1)
lwz r31, 0x2c(r1)
lwz r30, 0x28(r1)
mtlr r0
addi r1, r1, 0x30
blr
static inline bool sameMemoSetting(textinput::extend::savedata::MemoSetting first,
textinput::extend::savedata::MemoSetting second) {
return memcmp(&first, &second, sizeof(first)) == 0;
}
void Manager::doSave() {
textinput::extend::savedata::MemoSetting setting = mpManager->getSaveData();
bool unchanged = sameMemoSetting(mSaveData, setting);
bool shouldSave = !unchanged && mpSaveFile == NULL;
if (shouldSave) {
mSaveData = setting;
System::getSaveData()->setMemoSetting(mSaveData);
mpSaveFile = System::getSaveData()->flushAsync(System::getMem2App());
}
}
}
}
textinput::extend::savedata::MemoSetting textinput::extend::memo::Manager::getSaveData() {
return mMemoSetting;
}
namespace ipl {
namespace keyboard {
void Manager::touchFormInDisp(int unused) {
mpManager->changeState(textinput::extend::memo::Manager::STL_Transition);
snd::getSystem()->startSE("WIPL_SE_SK_OPEN");
@@ -744,7 +676,3 @@ namespace ipl {
}
} // namespace keyboard
} // namespace ipl
textinput::extend::savedata::MemoSetting textinput::extend::memo::Manager::getSaveData() {
return mMemoSetting;
}

View File

@@ -755,115 +755,41 @@ namespace ipl {
}
}
asm void Manager::makeTmpList(register ESTitleId* titleIdsOut, register u32 availableCount, register ESTitleId* titleIdsIn, register u32 titleCount) {
nofralloc
stwu r1, -0x50(r1)
mflr r0
stw r0, 0x54(r1)
addi r11, r1, 0x50
bl _savegpr_16
mr r22, r3
mr r23, r4
mr r24, r5
mr r25, r6
mr r26, r7
li r29, 6
li r21, 0x30
li r28, 0
li r27, 0
li r20, 0
li r31, -1
li r18, 0
b makeTmpList_L8
makeTmpList_L1:
add r30, r25, r20
lwzx r5, r25, r20
lwz r6, 4(r30)
or. r0, r6, r5
beq makeTmpList_L7
mr r3, r22
bl checkValidApp__Q33ipl8savedata7ManagerFUx
cmpwi r3, 0
beq makeTmpList_L6
li r3, -1
li r16, 0
li r19, 0
b makeTmpList_L3
makeTmpList_L2:
add r17, r23, r19
lwz r7, 0(r30)
lwzx r5, r23, r19
mr r3, r22
lwz r6, 4(r17)
lwz r8, 4(r30)
bl isEqualChannel__Q33ipl8savedata7ManagerFUxUx
cmpwi r3, -2
beq makeTmpList_L5
cmpwi r3, 0
beq makeTmpList_L5
cmpwi r3, 1
bne makeTmpList_L4
lwz r0, 0(r30)
lwz r4, 4(r30)
stw r4, 4(r17)
stw r0, 0(r17)
b makeTmpList_L5
makeTmpList_L4:
addi r16, r16, 1
addi r19, r19, 8
makeTmpList_L3:
cmpw r16, r29
blt makeTmpList_L2
makeTmpList_L5:
cmpwi r3, -1
beq makeTmpList_L5B
stw r18, 4(r30)
stw r18, 0(r30)
b makeTmpList_L7
makeTmpList_L5B:
lwz r0, 0(r30)
mr r3, r22
lwz r5, 4(r30)
and r4, r0, r31
and r5, r5, r31
bl isDefaultChannel__Q33ipl8savedata7ManagerFUlUl
cmpwi r3, -1
bne makeTmpList_L5C
lwz r0, 0(r30)
add r3, r23, r21
lwz r4, 4(r30)
addi r29, r29, 1
stw r4, 4(r3)
stwx r0, r23, r21
addi r21, r21, 8
b makeTmpList_L5D
makeTmpList_L5C:
slwi r0, r3, 3
lwz r4, 0(r30)
lwz r5, 4(r30)
add r3, r23, r0
stw r5, 4(r3)
stwx r4, r23, r0
makeTmpList_L5D:
addi r28, r28, 1
makeTmpList_L6:
stw r18, 4(r30)
cmplw r28, r24
stw r18, 0(r30)
bge makeTmpList_L9
makeTmpList_L7:
addi r27, r27, 1
addi r20, r20, 8
makeTmpList_L8:
cmplw r27, r26
blt makeTmpList_L1
makeTmpList_L9:
addi r11, r1, 0x50
bl _restgpr_16
lwz r0, 0x54(r1)
mtlr r0
addi r1, r1, 0x50
blr
void Manager::makeTmpList(ESTitleId* titleIdsOut, u32 availableCount, ESTitleId* titleIdsIn, u32 titleCount) {
int appendIndex = DEFAULT_CHANNEL_COUNT;
u32 addedCount = 0;
for (int inputIndex = 0; inputIndex < titleCount; inputIndex++) {
if (titleIdsIn[inputIndex] != TITLE_NULL) {
if (checkValidApp(titleIdsIn[inputIndex])) {
int match = -1;
for (int outputIndex = 0; outputIndex < appendIndex; outputIndex++) {
match = isEqualChannel(titleIdsOut[outputIndex], titleIdsIn[inputIndex]);
if (match == -2 || match == 0) {
break;
}
if (match == 1) {
titleIdsOut[outputIndex] = titleIdsIn[inputIndex];
break;
}
}
if (match != -1) {
titleIdsIn[inputIndex] = TITLE_NULL;
continue;
}
int defaultIndex = isDefaultChannel(ES_TITLE_TYPE(titleIdsIn[inputIndex]), ES_TITLE_CODE(titleIdsIn[inputIndex]));
if (defaultIndex == -1) {
titleIdsOut[appendIndex++] = titleIdsIn[inputIndex];
} else {
titleIdsOut[defaultIndex] = titleIdsIn[inputIndex];
}
addedCount++;
}
titleIdsIn[inputIndex] = TITLE_NULL;
if (addedCount >= availableCount) {
break;
}
}
}
}
void Manager::moveTitleTmpToPrior(ESTitleId* titleIdsOut, const ESTitleId* titleIdsIn) {
@@ -1086,73 +1012,29 @@ namespace ipl {
}
#ifdef __MWERKS__
asm void Manager::pushTitleCache(register ESTitleId titleId) {
nofralloc
lis r7, 0x4841
lis r4, 1
addi r0, r7, 0x5445
addi r8, r4, 1
xor r4, r6, r0
xor r0, r5, r8
or. r0, r4, r0
beqlr
addi r4, r7, 0x4445
xor r0, r5, r8
xor r4, r6, r4
or. r0, r4, r0
bne pushTitleCache_L1
blr
pushTitleCache_L1:
addis r0, r5, -1
cmplwi r0, 1
beq pushTitleCache_L2
cmplwi r0, 3
beq pushTitleCache_L2
cmplwi r0, 4
beq pushTitleCache_L2
cmplwi r0, 6
bnelr
pushTitleCache_L2:
li r0, 0x30
li r9, 0
li r4, 0
mtctr r0
pushTitleCache_L3:
add r7, r3, r4
lwz r0, 0x340(r7)
lwz r7, 0x344(r7)
xor r0, r5, r0
xor r7, r6, r7
or. r0, r7, r0
beq pushTitleCache_L4
addi r9, r9, 1
addi r4, r4, 8
bdnz pushTitleCache_L3
pushTitleCache_L4:
cmpwi r9, 0x30
bne pushTitleCache_L5
li r9, 0x2f
pushTitleCache_L5:
slwi r4, r9, 3
mtctr r9
cmpwi r9, 0
ble pushTitleCache_L6
pushTitleCache_L7:
addi r0, r9, -1
add r7, r3, r4
slwi r0, r0, 3
addi r9, r9, -1
add r8, r3, r0
addi r4, r4, -8
lwz r0, 0x340(r8)
lwz r8, 0x344(r8)
stw r8, 0x344(r7)
stw r0, 0x340(r7)
bdnz pushTitleCache_L7
pushTitleCache_L6:
stw r6, 0x344(r3)
stw r5, 0x340(r3)
blr
void Manager::pushTitleCache(ESTitleId titleId) {
if (titleId == ES_TITLE_ID(TITLE_TYPE_CHANNEL, 'HATE') || titleId == ES_TITLE_ID(TITLE_TYPE_CHANNEL, 'HADE')) {
return;
}
u32 titleType = ES_TITLE_TYPE_NOMASK(titleId);
if (titleType != TITLE_TYPE_CHANNEL && titleType != TITLE_TYPE_UNK3 &&
titleType != TITLE_TYPE_DISC_CHANNEL && titleType != TITLE_TYPE_UNK6) {
return;
}
int index = 0;
for (; index < MAX_CHANNEL_TOTAL; index++) {
if ((&mData.titleCache[0][0])[index] == titleId) {
break;
}
}
if (index == MAX_CHANNEL_TOTAL) {
index = MAX_CHANNEL_TOTAL - 1;
}
for (; index > 0; index--) {
u32 previousIndex = index - 1;
(&mData.titleCache[0][0])[index] = (&mData.titleCache[0][0])[previousIndex];
}
mData.titleCache[0][0] = titleId;
}
extern "C" BOOL isTitleCached(void* manager, ESTitleId titleId) {

View File

@@ -1,11 +1,6 @@
#include "system/odh.h"
#include <revolution/os/OSError.h>
extern "C" void _savegpr_24();
extern "C" void _restgpr_24();
extern "C" void cdj_c_initializeCompressOdh__9CArGBAOdhFP16SArCDJ_OdhMasterPUsUcPUcPUcUl();
extern "C" void cdj_c_compressLoop__9CArGBAOdhFP16SArCDJ_OdhMaster();
extern "C" void cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci();
extern "C" s32 huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl(u32, int, int, u32, int, u32);
extern "C" void idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl(u32, u32, int, int, int, u32);
@@ -466,22 +461,21 @@ static const u8 gArDeconvPlttTbl[3072] = {
0x00, 0xD5, 0x00, 0xD6, 0x00, 0xD8, 0x00, 0xDA, 0x00, 0xDC, 0x00, 0xDE, 0x00, 0xDF, 0x00, 0xE1
};
static const u32 gArDc_luminance_huffTable[] = {
0x00018002, 0x00030000, 0xC003C004, 0x80050001, 0x00020003, 0x00040005,
0x80010006, 0x80010007, 0x80010008, 0x80010009, 0x8001000A, 0x8001000B,
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_chrominance_huffTable[] = {
0x0001C002, 0x80030000, 0x00010002, 0x80010003, 0x80010004, 0x80010005,
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,
};
#pragma pack(1)
struct HufftreeData {
const u32* tables[4];
char messages[0x1BB];
const u16* tables[4];
};
#pragma pack()
HufftreeData hufftreePtr = {
{
@@ -490,16 +484,6 @@ HufftreeData hufftreePtr = {
gArDc_chrominance_huffTable,
gArDc_luminance_huffTable,
},
"decompressGbaOdh : source size error\n\0"
"decompressGbaOdh : destination buffer over\n\0"
"decompressGbaOdh : INITIALIZE ERROR %08x\n\0"
"decompressGbaOdh : DECOMPRESSING ERROR %08x\n\0"
"decompressGbaOdh : COLOR DECONVERSION ERROR %08x\n\0"
"compressGbaOdh : INITIALIZE ERROR %08x\n\0"
"compressGbaOdh : COLOR CONVERSION ERROR %08x\n\0"
"compressGbaOdh : COMPRESS OVER AND RETRY %d q=%d, %08x\n\0"
"compressGbaOdh : INITIALIZE ERROR2 %08x\n\0"
"compressGbaOdh : COMPRESSING ERROR %08x\n",
};
class CArGBAOdh {
@@ -575,13 +559,12 @@ int ODHGetHeight(u8* data) {
s32 CArGBAOdh::decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk, int format) {
SArCDJ_OdhMaster master;
const char* messages = (const char*)&hufftreePtr;
int width;
int height;
int outputSize;
if (srcSize <= 0x10) {
OSReport(messages + 0x10);
OSReport("decompressGbaOdh : source size error\n");
return 0;
}
@@ -603,142 +586,67 @@ s32 CArGBAOdh::decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8
unk = width * height * 3;
}
if (outputSize > destSize) {
OSReport(messages + 0x36);
OSReport("decompressGbaOdh : destination buffer over\n");
return 0;
}
s32 result = cdj_d_initializeDecompressOdh(&master, work, src);
if (result != 0) {
OSReport(messages + 0x62, result);
OSReport("decompressGbaOdh : INITIALIZE ERROR %08x\n", result);
return 0;
}
result = cdj_d_decompressLoop(&master, srcSize, unk);
if (result != 0) {
OSReport(messages + 0x8C, result);
OSReport("decompressGbaOdh : DECOMPRESSING ERROR %08x\n", result);
return 0;
}
result = cdj_d_colorDeconv(&master, dest, format);
if (result != 0) {
OSReport(messages + 0xB9, result);
OSReport("decompressGbaOdh : COLOR DECONVERSION ERROR %08x\n", result);
return 0;
}
return height << 16 | width;
}
asm s32 CArGBAOdh::compressGbaOdh(u8* src, u8* dest, int width, int height, int quality, u32 sizeLimit, u8* work, int format) {
nofralloc
stwu r1, -0x4b0(r1)
mflr r0
stw r0, 0x4b4(r1)
addi r11, r1, 0x4b0
bl _savegpr_24
cmpwi r9, 0
lis r31, hufftreePtr@ha
lwz r29, 0x4b8(r1)
mr r24, r3
mr r30, r4
mr r25, r5
mr r26, r8
mr r27, r9
mr r28, r10
addi r31, r31, hufftreePtr@l
bne compressGbaOdh_L1
mullw r0, r6, r7
slwi r27, r0, 1
compressGbaOdh_L1:
sth r6, 8(r1)
clrlwi r6, r8, 0x18
mr r3, r24
mr r8, r25
sth r7, 0xa(r1)
mr r7, r28
mr r9, r27
addi r4, r1, 0xc
addi r5, r1, 8
bl cdj_c_initializeCompressOdh__9CArGBAOdhFP16SArCDJ_OdhMasterPUsUcPUcPUcUl
cmpwi r3, 0
beq compressGbaOdh_L2
mr r4, r3
addi r3, r31, 0xeb
crclr 4*cr1+eq
bl OSReport
li r3, 0
b compressGbaOdh_L8
compressGbaOdh_L2:
mr r3, r24
mr r5, r30
mr r6, r29
addi r4, r1, 0xc
bl cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci
cmpwi r3, 0
beq compressGbaOdh_L3
mr r4, r3
addi r3, r31, 0x113
crclr 4*cr1+eq
bl OSReport
li r3, 0
b compressGbaOdh_L8
compressGbaOdh_L3:
mr r3, r24
addi r4, r1, 0xc
bl cdj_c_compressLoop__9CArGBAOdhFP16SArCDJ_OdhMaster
mr r30, r3
li r29, 1
b compressGbaOdh_L6
compressGbaOdh_L4:
lbz r5, 0x10(r1)
mr r4, r29
mr r6, r30
addi r3, r31, 0x141
crclr 4*cr1+eq
addi r29, r29, 1
bl OSReport
addic. r26, r26, -5
ble compressGbaOdh_L7
mr r3, r24
mr r7, r28
mr r8, r25
mr r9, r27
addi r4, r1, 0xc
addi r5, r1, 8
clrlwi r6, r26, 0x18
bl cdj_c_initializeCompressOdh__9CArGBAOdhFP16SArCDJ_OdhMasterPUsUcPUcPUcUl
cmpwi r3, 0
beq compressGbaOdh_L5
mr r4, r3
addi r3, r31, 0x179
crclr 4*cr1+eq
bl OSReport
li r3, 0
b compressGbaOdh_L8
compressGbaOdh_L5:
mr r3, r24
addi r4, r1, 0xc
bl cdj_c_compressLoop__9CArGBAOdhFP16SArCDJ_OdhMaster
mr r30, r3
b compressGbaOdh_L6
compressGbaOdh_L7:
mr r4, r30
addi r3, r31, 0x1a2
crclr 4*cr1+eq
bl OSReport
li r3, 0
b compressGbaOdh_L8
compressGbaOdh_L6:
addis r0, r30, -0x8000
cmplwi r0, 4
beq compressGbaOdh_L4
mr r3, r30
compressGbaOdh_L8:
addi r11, r1, 0x4b0
bl _restgpr_24
lwz r0, 0x4b4(r1)
mtlr r0
addi r1, r1, 0x4b0
blr
s32 CArGBAOdh::compressGbaOdh(u8* src, u8* dest, int width, int height, int quality, u32 sizeLimit, u8* work, int format) {
SArCDJ_OdhMaster master;
u16 dimensions[2];
if (sizeLimit == 0) {
sizeLimit = width * height * 2;
}
dimensions[0] = width;
dimensions[1] = height;
s32 result = cdj_c_initializeCompressOdh(&master, dimensions, quality, work, dest, sizeLimit);
if (result != ODH_ERROR_SUCCESS) {
OSReport("compressGbaOdh : INITIALIZE ERROR %08x\n", result);
return 0;
}
result = cdj_c_colorConv(&master, src, format);
if (result != ODH_ERROR_SUCCESS) {
OSReport("compressGbaOdh : COLOR CONVERSION ERROR %08x\n", result);
return 0;
}
result = cdj_c_compressLoop(&master);
int retry = 1;
while (result == ODH_ERROR_80000004) {
OSReport("compressGbaOdh : COMPRESS OVER AND RETRY %d q=%d, %08x\n", retry++, master.quality, result);
quality -= 5;
if (quality > 0) {
s32 initResult = cdj_c_initializeCompressOdh(&master, dimensions, quality, work, dest, sizeLimit);
if (initResult != ODH_ERROR_SUCCESS) {
OSReport("compressGbaOdh : INITIALIZE ERROR2 %08x\n", initResult);
return 0;
}
result = cdj_c_compressLoop(&master);
} else {
OSReport("compressGbaOdh : COMPRESSING ERROR %08x\n", result);
return 0;
}
}
return result;
}
s32 CArGBAOdh::cdj_c_initializeCompressOdh(SArCDJ_OdhMaster* master, u16* dimensions, u8 requestedQuality, u8* workBuffer, u8* outputBuffer, u32 outputCapacity) {
@@ -931,17 +839,15 @@ 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;
int sourceStride;
u8* crPlane;
u8* cbPlane;
u8* crPlane;
u16* dimensions;
int rowIndex;
int sourceStride;
int i;
u16 dimension;
u16 paddedDimensions[2];
dimensions = &master->width;
@@ -952,11 +858,11 @@ s32 CArGBAOdh::cdj_c_colorConv(SArCDJ_OdhMaster* master, u8* sourceData, int for
height = dimensions[1];
for (i = 0; i < 2; i++) {
dimension = dimensions[i];
if ((dimension & 7) != 0) {
paddedDimensions[i] = (dimension + 8) - (dimension & 7);
u16 remainder = dimensions[i] & 7;
if (remainder != 0) {
paddedDimensions[i] = (dimensions[i] + 8) - remainder;
} else {
paddedDimensions[i] = dimension;
paddedDimensions[i] = dimensions[i];
}
}
@@ -972,13 +878,12 @@ 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 += paddedWidth;
cbPlane += paddedWidth;
crPlane += paddedWidth;
workPlane += paddedDimensions[0];
cbPlane += paddedDimensions[0];
crPlane += paddedDimensions[0];
}
return 0;

View File

@@ -978,33 +978,37 @@ namespace ipl {
ESMisc::ChangeUid(SYSMENU_TITLE_ID);
}
static inline void DeleteTicketsForce(EGG::Heap* heap, ESTitleId titleId, u8* ticketViews, u32* ticketViewCount) {
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);
} else if (*ticketViewCount != 0) {
ticketViewList = (ESTicketView*)heap->alloc(*ticketViewCount * OSRoundUp32B(sizeof(ESTicketView)), -DEFAULT_ALIGN);
ret = ES_GetTicketViews(titleId, ticketViewList, ticketViewCount);
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_GetTicketViews failed: %d for %016llx\n", __FILE__, __FUNCTION__, ret, titleId);
} else {
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);
}
}
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) {
@@ -1032,20 +1036,23 @@ namespace ipl {
goto cleanup;
}
for (u32 i = 0; i < titleCount; i++) {
if ((titleIds[i] & 0xFFFFFFFFFFFFFF00ULL) == 0x00010000525A4400ULL) {
verifySavedataZD(heap, titleIds[i], &fileInfo);
continue;
}
switch (titleIds[i]) {
case 0x0001000844495343ULL:
case 0x000100014A4F4449ULL:
case 0x0001000148415858ULL:
case 0x0001000844564458ULL:
case 0x000100084449534BULL:
ES_DeleteTitle(titleIds[i]);
DeleteTicketsForce(heap, titleIds[i], ticketViews, &ticketViewCount);
break;
{
u8* ticketScratch = ticketViews;
for (u32 i = 0; i < titleCount; i++) {
if ((titleIds[i] & 0xFFFFFFFFFFFFFF00ULL) == 0x00010000525A4400ULL) {
verifySavedataZD(heap, titleIds[i], &fileInfo);
continue;
}
switch (titleIds[i]) {
case 0x0001000844495343ULL:
case 0x000100014A4F4449ULL:
case 0x0001000148415858ULL:
case 0x0001000844564458ULL:
case 0x000100084449534BULL:
ES_DeleteTitle(titleIds[i]);
DeleteTicketsForce(heap, titleIds[i], ticketScratch, &ticketViewCount);
break;
}
}
}

View File

@@ -0,0 +1,76 @@
# 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

@@ -0,0 +1,53 @@
# 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

@@ -0,0 +1,79 @@
# 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

@@ -0,0 +1,57 @@
# 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

@@ -0,0 +1,71 @@
# 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

@@ -0,0 +1,88 @@
# 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

@@ -0,0 +1,52 @@
# 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

@@ -0,0 +1,96 @@
# VmBlobPackCommon copy/padding lifetime boundary
43U only. Base `4508f455dbd44de4f512618e91692a9b6115d6e8`, tree
`28f9b61d3f0bed89a5086a4a813ee52a462b1504`. One fixed candidate; no permutations.
The existing blob copy, bounded overlap-safe `memmove`, optional zero-fill and
offset commit now have a small inline helper. This is an independently
reconstructed candidate, not recovery of the historical helper in
`a5h.attempts.md:47–48`. The historical source hashes could not be recovered.
## Actual measurements
- Fresh baseline default build reproduced all 1,027 source objects and the
complete official report byte-for-byte
- One candidate compile: `VmBlobPackCommon` **97.949104 → 97.97156%**;
2,672 bytes / 668 instructions unchanged; target instruction differences 244 → 242
- Selected-source recompile through full default Ninja reproduced the candidate
source, object and full report; explicit `build/43U/ok` passes
- Only CHANSVm.o changes. All 232 sibling function bytes/scores and all other
1,026 units unchanged; 224 exact functions preserved
- Unit fuzzy **99.45986 → 99.46098%**; exact code 39,908/53,564 and data
6,904/6,904 unchanged; link classifications unchanged
- Pool 125/125 identical; literal audit 233 functions/40 arguments, zero errors,
candidates or skips; `git diff --check` passes
- DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`
Candidate source SHA256:
`d52e12d7c154c61dc49ffb0ef125764fb8714a7d6f71631e810fd3a57d88d536`
Candidate object SHA256:
`a60ea527623793184e6e3edd0584e0e335c534248a5a9902dfe217cefdf39999`
This remains a fuzzy improvement, not an exact match or a completed linked unit.
## Semantics and metadata
Source and destination may share a header or contained overlapping payloads.
The existing declaration-level volatile offset reads retain their order,
including the fresh destination-offset reload after copy/padding. Const adds
no restrict/disjointness promise. Parser, allocation, conversion, callback,
validation and error paths stay in place. Removed locals belonged only to the
copied block. No compiler option, layout or link setting changed.
49 instructions differ from baseline, all register allocation. Raw ELF symbol
entries and relocation sections are identical. Every nontext section except
`.strtab` is identical; exactly 79 local `@number` object-name replacements
reconstruct that section. No helper body or extra function symbol is emitted.
## Standalone verification
`verify_vm_blob_copy_padded.py` needs preinstalled pyelftools and capstone.
It reads caller-supplied files and writes only a fresh output directory:
```sh
python tools/decomp-assist/verify_vm_blob_copy_padded.py \
--baseline-object /path/to/baseline-CHANSVm.o \
--candidate-object build/43U/src/src/channelScript/CHANSVm.o \
--original-object build/43U/obj/src/channelScript/CHANSVm.o \
--dol /path/to/authorized-original-43U.dol \
--symbols config/43U/symbols.txt \
--output-dir /path/to/new-verification-output
```
The checker compares corresponding CFG edges with a must-equality relation,
intersecting predecessor states at branch and loop joins. Both baseline versus
candidate and baseline versus original pass 944 explicit/implicit uses. CR0,
XER.CA, CTR, LR, memory, stack addressing and SDA21 bases are accounted for.
Ordinary calls kill equality for undocumented caller-saved scratch registers;
only documented results and coupled memory effects are retained.
The callee contracts follow the actual CHANSVm.c definitions: word/pointer
arguments occupy their listed r3..r9 registers and all results use r3 except
the u64 MakeU64 result in r3:r4. BlobHasSpace's signed64 argument is aligned in
r5:r6, skipping r4. There are no stack-passed arguments. VmBoolInt is BOOL/int,
not byte-sized vmBool (VmTypes.h and revolution/types.h). MSL string.h declares
the pointer results and size_t arguments of memcpy/memmove/memset. The original
save/restore helper tails are independently decoded from the DOL.
The original DOL copy slice at +0x4BC..+0x518 is exactly 23 instructions. There
are 5,456 bounded cases, each compared across baseline/candidate/direct-DOL
instructions: 16,368 complete-memory and ordered-trace comparisons. Coverage
includes 136 same-header, 2,352 padding, 1,508 zero-copy, 395 forward-overlap and 429
backward-overlap cases. Negative controls reject a missing volatile reload,
overlap-unsafe forward copying and undocumented scratch use after a call.
These are bounded custom instruction/source checks with opaque fixed callee
contracts and modeled libc operations, not general formal verification or
complete VM/Wii runtime testing. Malformed header-overwriting payload pointers
are not asserted valid. Full project/report gates remain separate requirements.
Harness-development failures were retained separately: the first metadata
assertion exposed local-name renumbering, and a DOL call loader restricted to
`.text` rejected memset at 0x81330334. Its exact `.init` symbol declaration fixed
the resolver; no name was guessed. An initial save-helper textual check also
rejected Capstone's decimal `-8` spelling; numeric operand checks replaced it.
These were verifier fixes, not additional source candidates or compiler trials.

View File

@@ -0,0 +1,84 @@
# VmBlobPackCommon in-place hexadecimal decoding
43U only, base `631f31b7f814516abfdfcd763db376ea50a02a13`.
Exactly one source form: remove the separate u32 nibble temporary and decode
into the existing u32 ch value. No declaration permutations or other variants.
## Fresh build results
- Fresh baseline default build reproduces all 1,027 objects and complete report
- Candidate: function **97.97156 → 98.0988%**, unit **99.46098 → 99.46733%**
- Size remains 2,672 bytes / 668 instructions; strict target differences 242 → 230
- Only 13 instructions change, within +0x9A8..+0xA08, reproducing the target's
in-place r7 decoding. Its source-pointer base remains different
- Selected actual recompile reproduces candidate source/object/report exactly
- All 232 sibling bytes/scores, 224 exact functions, other 1,026 units, matched
code 39,908/53,564, data 6,904/6,904 and link classifications preserved
- Full default 43U, explicit ok, pool 125/125, literal audit 233 functions /
40 arguments (no skips/errors/candidates), and diff checks pass
- DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`
Only baseline, candidate and selected compiler invocations were used.
This remains a fuzzy gain, not an exact match or completed linked unit.
Source SHA256:
`2a4903c930eed51968ef99d018dc46256807cb59bb4f69287e3065b883591faf`
Object SHA256:
`7325c84d335b08f2fb58405e87ca76fc0245fcd8549bb640ec4ef7911893b053`
## Contracts and reproducible checks
The original code unit is unused after decoding. Each iteration overwrites ch
before use; no ch occurrence remains outside this loop except its declaration.
It cannot escape to another format case or later branch. Count-zero paths do
not read it. Decoded values are 0..15, optionally shifted to at most 240.
Input/output accesses, zero-fill, pointer/count induction and volatile offset
commits retain their order, including contained overlapping payload views.
Every raw symbol entry and relocation section is unchanged. All nontext
sections except `.strtab` are unchanged; exactly 79 local object-name changes
exhaustively reconstruct `.strtab`. No helper body or function symbol is added.
The accepted copy/pad slice +0x4BC..+0x518 is raw-byte identical. The published
common verifier is hash-pinned and replayed automatically: 944 must-equality
uses pass for each baseline/candidate and baseline/original comparison, with
branch/loop predecessor intersections and explicit GPR/CR0/CA/CTR/LR/memory
effects. Undocumented call-clobber equality is killed. The original call ABI,
save/restore tails, metadata/name accounting, unchanged copy slice and its
16,368 bounded comparisons are freshly checked, not assumed from an old run.
Fresh hex checks interpret direct original-DOL instructions +0x978..+0xA38,
including pre-decode memset and post-loop offset reload/store:
- All 65,536 code units and both parities: **131,072 scalar cases**, each run
on baseline/candidate/original instructions, **393,216 comparisons**
- **640 bounded strings**, lengths 0..64, run on all three streams:
**1,920 comparisons**, including **330 contained-overlap cases**
- Complete memory, ordered access/call traces, scalar cursor and CTR results
are checked against an independent lookup-table reference
- Negative controls reject an incorrect digit base, missing high-nibble shift,
omitted volatile copy-offset reload, overlap-unsafe copying and undocumented
scratch use after a call
Use preinstalled pyelftools/capstone; no compilation or downloads occur:
```sh
python tools/decomp-assist/verify_vm_blob_hex_inplace.py \
--baseline-object /path/to/accepted-baseline-CHANSVm.o \
--candidate-object build/43U/src/src/channelScript/CHANSVm.o \
--original-object build/43U/obj/src/channelScript/CHANSVm.o \
--dol /path/to/authorized-original-43U.dol \
--symbols config/43U/symbols.txt --source src/channelScript/CHANSVm.c \
--output-dir /path/to/new-verification-output
```
The default common verifier is the already-published sibling
`verify_vm_blob_copy_padded.py`; an explicit path is also accepted. Both reports
are saved in the new output directory. Input source/object and common-verifier
hashes pin this exact trial. Full project/report gates remain separate.
These are bounded custom instruction/source checks with modeled libc and fixed
opaque callee contracts, not general formal verification or full VM/Wii runtime
testing. Only valid allocated spans are covered; malformed or out-of-bounds
input behavior is not claimed. Earlier evidence and diagnostics are preserved.

View File

@@ -0,0 +1,345 @@
# a23h high attempts
Baseline 934587c4. Work only in data-d3; prior u2 log preserved untracked. Read task, levers, AGENTS and prior a2/a3/u2 logs. No owned source changed on freshly fetched origin/main. All prior trials remain rejected unless revalidated. All nine units have 100% data.
src/scene/address/iplAddress: POOL IDENTICAL up to 81 (mine=81 base=81)
src/scene/address/iplAddressEdit: POOL IDENTICAL up to 57 (mine=57 base=57)
src/scene/sdChannelSelect/iplSDChannelSelect: POOL IDENTICAL up to 101 (mine=101 base=101)
src/keyboard/tiCellPhone: POOL IDENTICAL up to 76 (mine=76 base=76)
src/keyboard/tiInputForm: POOL IDENTICAL up to 20 (mine=20 base=20)
src/keyboard/tiCandidateBox: POOL IDENTICAL up to 57 (mine=57 base=57)
src/keyboard/tiSignWindow: POOL IDENTICAL up to 30 (mine=30 base=30)
src/keyboard/tiString: POOL IDENTICAL up to 0 (mine=0 base=0)
src/keyboard/tiZiString: POOL IDENTICAL up to 0 (mine=0 base=0)
Remote check src/scene/address/iplAddressEdit: fetch rc=0; owned source changed=False
## AddressEdit get_friendinfo
Target copies record, sets name, retains name address over FindPane, assigns Wii-ID or email, retains display address over second FindPane, copies ID. Source rematerializes both text addresses; frame and calls agree. Test layout wrapper, nullable String receiver and member-array address calculation. No volatile or undefined-local evidence.
BUILD FAIL src/scene/address/iplAddressEdit | pane wrapper owns lookup before set_textbox | b666d07be9f8
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "member string getter with explicit nullable receiver", "hash": "045c3c96bc4d", "pool": 0, "functions": {"get_friendinfo__Q33ipl5scene11AddressEditFv": [63.36905, 95, 84, [42, 90]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "typed member-array getter retains array dimensions", "hash": "be5947efc264", "pool": 0, "functions": {"get_friendinfo__Q33ipl5scene11AddressEditFv": [88.03571, 82, 84, [10, 68]]}, "drops": []}
Remote check src/keyboard/tiInputForm: fetch rc=0; owned source changed=False
## calcCursorPos
Target computes height product/add before width product, then wrap/line/newline/hit regions; source scheduler hoists four rectangle loads. Target scale.y f31 vs source f30. Three expression-boundary variants below preserve scalar order and FP rounding.
ATTEMPT {"unit": "src/keyboard/tiInputForm", "label": "scaled height compound accumulator", "hash": "846909bed5f9", "pool": 0, "functions": {"calcCursorPos__Q39textinput9inputform4BaseFff": [90.90184, 326, 326, [49, 79]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiInputForm", "label": "glyph width computed through a const scalar pair", "hash": "ba9f03eb8b9d", "pool": 0, "functions": {"calcCursorPos__Q39textinput9inputform4BaseFff": [93.33129, 326, 326, [36, 47]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiInputForm", "label": "scaled cursor bounds output references isolate two calculations", "hash": "63d0cefaef3d", "pool": 0, "functions": {"calcCursorPos__Q39textinput9inputform4BaseFff": [90.16871, 331, 326, [72, 329]]}, "drops": []}
Remote check src/keyboard/tiZiString: fetch rc=0; owned source changed=False
## tiZiString buffer layout
clearCandidates target six memset calls, fields then two language calls and candidate search. setElementBuffer target two memset calls then bounded copy/conversion. update target initializes search, expands keys, retries Korean candidates, compacts context and copies/cases candidates. Target separate 0x200-sized logical input/composition/output ranges are proven by memset and EZTX relocations. Test an equal-size typed aggregate and genuine common helper boundaries. No symbol names, sizes or storage addresses edited.
ATTEMPT {"unit": "src/keyboard/tiZiString", "label": "candidate buffer storage uses three proven typed ranges", "hash": "e298378e2ba0", "pool": 0, "functions": {"clearCandidates__Q39textinput8tistring6WithZiFv": [91.049385, 84, 81, [12, 80]], "update__Q39textinput8tistring6WithZiFv": [97.4574, 448, 446, [13, 427]], "setElementBuffer__Q39textinput8tistring6WithZiFv": [90.33846, 65, 65, [5, 18]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiZiString", "label": "three-range storage with input array-reference lifetime", "hash": "e5a8a3729729", "pool": 0, "functions": {"clearCandidates__Q39textinput8tistring6WithZiFv": [91.049385, 84, 81, [12, 80]], "update__Q39textinput8tistring6WithZiFv": [97.4574, 448, 446, [13, 427]], "setElementBuffer__Q39textinput8tistring6WithZiFv": [90.33846, 65, 65, [5, 18]]}, "drops": []}
Remote check src/keyboard/tiZiString: fetch rc=0; owned source changed=False
ATTEMPT {"unit": "src/keyboard/tiZiString", "label": "separate named subrange pointers at reset boundary", "hash": "7eef25537b9e", "pool": 0, "functions": {"clearCandidates__Q39textinput8tistring6WithZiFv": [74.19753, 80, 81, [22, 68]], "update__Q39textinput8tistring6WithZiFv": [97.4574, 448, 446, [13, 427]], "setElementBuffer__Q39textinput8tistring6WithZiFv": [90.33846, 65, 65, [5, 18]]}, "drops": []}
Remote check src/keyboard/tiZiString: fetch rc=0; owned source changed=False
ATTEMPT {"unit": "src/keyboard/tiZiString", "label": "element copy captures character destination before language query", "hash": "ab37cab8091f", "pool": 0, "functions": {"clearCandidates__Q39textinput8tistring6WithZiFv": [93.28395, 84, 81, [9, 76]], "update__Q39textinput8tistring6WithZiFv": [97.4574, 448, 446, [13, 427]], "setElementBuffer__Q39textinput8tistring6WithZiFv": [90.33846, 65, 65, [5, 18]]}, "drops": []}
Remote check src/keyboard/tiZiString: fetch rc=0; owned source changed=False
ATTEMPT {"unit": "src/keyboard/tiZiString", "label": "context compaction uses signed remaining count and advancing cursors", "hash": "51fcf2152f15", "pool": 0, "functions": {"clearCandidates__Q39textinput8tistring6WithZiFv": [93.28395, 84, 81, [9, 76]], "update__Q39textinput8tistring6WithZiFv": [91.93946, 431, 446, [44, 424]], "setElementBuffer__Q39textinput8tistring6WithZiFv": [90.33846, 65, 65, [5, 18]]}, "drops": []}
Remote check src/keyboard/tiString: fetch rc=0; owned source changed=False
## tiString inputChar
Target sentinel guard, kana stream conversion, Hangul indexed append with dead newline compare, direct mode, virtual selection then insertion/replacement. Target Hangul count is explicitly zeroed then incremented and narrowed. New trials split stream conversion from builder and preserve real newline operation. No undefined initialization or volatile is justified.
ATTEMPT {"unit": "src/keyboard/tiString", "label": "builder append returns current length after postincrement", "hash": "1f69839e322b", "pool": 0, "functions": {"inputChar__Q39textinput8tistring9DecolatedFw": [90.132355, 125, 136, [18, 73]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiString", "label": "newline append and ordinary append use distinct real cursor operations", "hash": "88909aaac8bf", "pool": 0, "functions": {"inputChar__Q39textinput8tistring9DecolatedFw": [92.41912, 138, 136, [13, 75]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiString", "label": "literal converter uses builder count reference with explicit newline terminator", "hash": "17f344ef34f1", "pool": 0, "functions": {"inputChar__Q39textinput8tistring9DecolatedFw": [93.44853, 138, 136, [13, 75]]}, "drops": []}
Remote check src/scene/address/iplAddressEdit: fetch rc=0; owned source changed=False
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "layout pane wrapper with correct one-name signature", "hash": "3742b49defd2", "pool": 0, "functions": {"get_friendinfo__Q33ipl5scene11AddressEditFv": [88.03571, 82, 84, [10, 68]]}, "drops": []}
Remote check src/keyboard/tiZiString: fetch rc=0; owned source changed=False
ATTEMPT {"unit": "src/keyboard/tiZiString", "label": "element conversion loop tests bounded count before next input read", "hash": "87bfe2d87e70", "pool": 0, "functions": {"setElementBuffer__Q39textinput8tistring6WithZiFv": [79.95385, 65, 65, [12, 23]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiZiString", "label": "candidate case dispatch owns narrowed enum local per character", "hash": "5449e0c339c5", "pool": 0, "functions": {"update__Q39textinput8tistring6WithZiFv": [97.4574, 448, 446, [13, 427]]}, "drops": []}
Remote check src/scene/sdChannelSelect/iplSDChannelSelect: fetch rc=0; owned source changed=False
## SD title collectors
Four target CFGs increment/store title count before reloading stack totals and secondUsage; current source hoists secondUsage[0]. Same calls and instruction counts. No store/reload proves volatile. Test local usage aggregate, member predicate, and combined append/check helper with real output state. Threshold predicate preserves signed comparison and short circuit.
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "paired usage local stores blocks then bytes", "hash": "e0857bc7f297", "pool": 0, "functions": {"create__Q33ipl5scene15SDChannelSelectFv": [97.73972, 145, 146, [4, 39]], "collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [97.81188, 101, 101, [2, 4]], "collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [97.833336, 102, 102, [2, 4]], "collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [98.007935, 126, 126, [2, 7]], "collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [97.55125, 361, 361, [8, 16]], "flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv": [99.65714, 35, 35, [2, 2]]}, "drops": []}
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "paired usage member predicate owns threshold reads", "hash": "ede18addbd92", "pool": 0, "functions": {"create__Q33ipl5scene15SDChannelSelectFv": [97.73972, 145, 146, [4, 39]], "collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [82.57426, 90, 101, [26, 38]], "collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [82.745094, 91, 102, [26, 37]], "collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [85.79365, 115, 126, [29, 49]], "collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [82.6205, 340, 361, [137, 349]], "flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv": [99.65714, 35, 35, [2, 2]]}, "drops": []}
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "append count and compare through real usage pointers", "hash": "08fc403e9e1f", "pool": 0, "functions": {"create__Q33ipl5scene15SDChannelSelectFv": [97.73972, 145, 146, [4, 39]], "collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [93.09901, 105, 101, [12, 40]], "collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [93.166664, 106, 102, [12, 39]], "collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [94.230156, 130, 126, [15, 51]], "collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl": [92.27701, 377, 361, [50, 241]], "flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv": [99.65714, 35, 35, [2, 2]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
## CandidateBox create
Target allocator/candidate/string creation, GUI setup, text area and on/off setup, textures and two scroll controls. Remaining differences begin in nested subobject initialization. Test combined text-area initialization and const-reference caller view; real objects only.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "text-area setup helper subobject reference and layout pointer", "hash": "d39dc5d0470c", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.74148, 352, 352, [30, 225]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "text-area setup helper subobject pointer and caller pointer reference", "hash": "3bcf39719abe", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.67614, 352, 352, [24, 218]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "text-area setup helper subobject and layout references", "hash": "2f049ab6b314", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [92.42898, 349, 352, [35, 254]]}, "drops": []}
Remote check src/keyboard/tiInputForm: fetch rc=0; owned source changed=False
## InputForm create
Target row allocation/init/detach/append then handlers,font,text geometry, pane fallback and animations. Instruction count agrees; inline row temporaries and animation roles differ. New trials make row detach/append own boundaries, use a complete font-size temporary, and place the animation descriptor behind its resource method.
BUILD FAIL src/keyboard/tiInputForm | row activation helper returns the detached initialized row | 3708f8e42440
ATTEMPT {"unit": "src/keyboard/tiInputForm", "label": "textbox metrics preserve complete font-size value", "hash": "ecd2d497e786", "pool": 0, "functions": {"create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer": [95.25, 358, 356, [20, 273]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiInputForm", "label": "animation descriptor is a const record reference", "hash": "d4387ab7cba5", "pool": 0, "functions": {"create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer": [95.80618, 354, 356, [15, 178]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
## src/keyboard/tiCandidateBox animation traversal
Target pane switch, list append, resource/transform creation, optional force binding. Exact instruction count; animation record and count registers differ. Test record reference, pointer cursor, and animation count signed view after static inline trials logged in u2.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "animation reference refers directly to the real record", "hash": "dc7073759c90", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.67614, 352, 352, [24, 218]], "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [96.21759, 214, 216, [9, 107]], "CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "animation slot cursor advances once per resource", "hash": "07d29b340e23", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.67614, 352, 352, [24, 218]], "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.34259, 217, 216, [11, 129]], "CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "signed local count preserves bounded descriptor traversal", "hash": "c1cca19a71bb", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.67614, 352, 352, [24, 218]], "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [98.24074, 216, 216, [1, 64]], "CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
Remote check src/keyboard/tiSignWindow: fetch rc=0; owned source changed=False
## src/keyboard/tiSignWindow animation traversal
Target pane switch, list append, resource/transform creation, optional force binding. Exact instruction count; animation record and count registers differ. Test record reference, pointer cursor, and animation count signed view after static inline trials logged in u2.
ATTEMPT {"unit": "src/keyboard/tiSignWindow", "label": "animation reference refers directly to the real record", "hash": "d486c48a18b7", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [97.004524, 219, 221, [9, 91]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiSignWindow", "label": "animation slot cursor advances once per resource", "hash": "147f282936b7", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [93.99095, 222, 221, [11, 118]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiSignWindow", "label": "signed local count preserves bounded descriptor traversal", "hash": "7f75f87454eb", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.61539, 221, 221, [1, 6]]}, "drops": []}
Remote check src/scene/address/iplAddress: fetch rc=0; owned source changed=False
## Address drag and event dispatch
start_drag_event target validates input, records drag, changes pointer, copies nigaoe texture then resets buttons. Only icon object/pane register choices differ. onEventDerived target pane lookup then trigger/point/left arms; only saved-register allocation differs. Try actual texture-upload helper boundaries and named pane getter boundaries. No CFG or data edits retained unless exact.
ATTEMPT {"unit": "src/scene/address/iplAddress", "label": "drag texture helper const object and pane references", "hash": "65fc61d7019e", "pool": 0, "functions": {"start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface": [98.13453, 224, 223, [12, 98]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddress", "label": "drag texture helper const input pointer references", "hash": "3430eee0adcd", "pool": 0, "functions": {"start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface": [95.53363, 222, 223, [19, 102]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddress", "label": "drag texture helper destination-first pointer arguments", "hash": "586d680127ab", "pool": 0, "functions": {"start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface": [98.13453, 224, 223, [12, 98]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddress", "label": "event dispatch pane component helper boundary", "hash": "7ba4b1d10ac5", "pool": 0, "functions": {"onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface": [98.42593, 270, 270, [0, 81]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddress", "label": "event dispatch separate scene-base receiver", "hash": "8a0013ea082c", "pool": 0, "functions": {"onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface": [98.42593, 270, 270, [0, 81]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddress", "label": "event dispatch scoped event kind and immutable mail receiver", "hash": "9ea5da0bd02f", "pool": 0, "functions": {"onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface": [98.42593, 270, 270, [0, 81]]}, "drops": []}
Remote check src/scene/address/iplAddressEdit: fetch rc=0; owned source changed=False
## AddressEdit create and update_friendinfo
Create differs at retained text addresses and allocation-guarded balloon margin initialization. update_friendinfo differs only name-copy source/destination addi order. Test real aggregate/value boundaries for text and balloon then typed name-array copy wrapper.
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "address create typed balloon margins", "hash": "561093e749fc", "pool": 0, "functions": {"create__Q33ipl5scene11AddressEditFv": [95.75976, 812, 820, [44, 802]]}, "drops": ["main/src/scene/address/iplAddressEdit:matched_data"]}
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "address create const friend-string receiver", "hash": "aff168151479", "pool": 0, "functions": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 818, 820, [23, 331]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "address create inline aspect-ratio margin selector", "hash": "ce1cea65858b", "pool": 0, "functions": {"create__Q33ipl5scene11AddressEditFv": [97.5561, 818, 820, [23, 331]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "friend name copy explicit array element and size type", "hash": "ad3f28479acb", "pool": 0, "functions": {"update_friendinfo__Q33ipl5scene11AddressEditFv": [99.42105, 38, 38, [2, 2]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "friend name copy bounded array helper", "hash": "49e54118f583", "pool": 0, "functions": {"update_friendinfo__Q33ipl5scene11AddressEditFv": [99.42105, 38, 38, [2, 2]]}, "drops": []}
ATTEMPT {"unit": "src/scene/address/iplAddressEdit", "label": "friend name copy separate string and name receivers", "hash": "f0067f7120a0", "pool": 0, "functions": {"update_friendinfo__Q33ipl5scene11AddressEditFv": [99.42105, 38, 38, [2, 2]]}, "drops": []}
Remote check src/scene/sdChannelSelect/iplSDChannelSelect: fetch rc=0; owned source changed=False
## SD create and flush
Create target rereads System BS2 pointer at loop body after state test with no store; user rules exclude changing that pointer to volatile. Try guarded read-only state return/reference types without volatile. Flush target heap/manager argument loads differ only in order; test combined save helper and real system argument references.
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "IPL state getter returns const field reference", "hash": "8f6d87ecb07b", "pool": 0, "functions": {"create__Q33ipl5scene15SDChannelSelectFv": [97.73972, 145, 146, [4, 39]]}, "drops": []}
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "IPL state getter returns mutable field reference", "hash": "7582e061ac7c", "pool": 0, "functions": {"create__Q33ipl5scene15SDChannelSelectFv": [97.73972, 145, 146, [4, 39]]}, "drops": []}
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "IPL state getter uses read-only manager receiver", "hash": "874660af6372", "pool": 0, "functions": {"create__Q33ipl5scene15SDChannelSelectFv": [97.73972, 145, 146, [4, 39]]}, "drops": []}
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "flush helper manager reference", "hash": "ef9244b0431e", "pool": 0, "functions": {"flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv": [99.65714, 35, 35, [2, 2]]}, "drops": []}
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "flush helper heap-first formal order", "hash": "e8083fdc21d3", "pool": 0, "functions": {"flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv": [99.65714, 35, 35, [2, 2]]}, "drops": []}
ATTEMPT {"unit": "src/scene/sdChannelSelect/iplSDChannelSelect", "label": "flush helper pointer reference formals", "hash": "934eb8e941cf", "pool": 0, "functions": {"flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv": [99.65714, 35, 35, [2, 2]]}, "drops": []}
Remote check src/keyboard/tiInputForm: fetch rc=0; owned source changed=False
ATTEMPT {"unit": "src/keyboard/tiInputForm", "label": "row activation helper receives real row storage and capacity", "hash": "5ac7f498e1e9", "pool": 0, "functions": {"create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer": [96.45786, 356, 356, [6, 149]]}, "drops": []}
Remote check src/keyboard/tiCellPhone: fetch rc=0; owned source changed=False
## CellPhone onKey and create
onKey target validates lock then trigger key/control handling, language holding-key selection and confirm payloads, release reset. Saved-register table/event roles differ. create target two pane loops, resource/transform animation binding, textures and language/init. Toggle descriptor and animation offset swap. Try meaningful enum/table receiver boundaries and isolate toggle animation binding loop.
ATTEMPT {"unit": "src/keyboard/tiCellPhone", "label": "onKey enum control key local", "hash": "99bd10baad72", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.67009, 682, 682, [0, 37]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCellPhone", "label": "onKey input mode enum local", "hash": "d9cf8d314a74", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.67009, 682, 682, [0, 37]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCellPhone", "label": "onKey scoped language record reference", "hash": "9d3fd7e36464", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.67009, 682, 682, [0, 37]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCellPhone", "label": "toggle animation helper layout first", "hash": "7c304257af39", "pool": 0, "functions": {"create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [91.663666, 335, 333, [23, 234]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCellPhone", "label": "toggle animation helper descriptor first", "hash": "d656bd0be799", "pool": 0, "functions": {"create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [91.663666, 335, 333, [23, 234]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCellPhone", "label": "toggle animation helper references to live pane and resource objects", "hash": "8d6d17338afa", "pool": 0, "functions": {"create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [91.663666, 335, 333, [23, 234]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
## CalcPaneLocate
Target clears panes then backward/forward text placement and selected animations. Eleven forward-path FP register operands differ. Test real Size local construction and distinct forward translation fields, after prior helpers yielded no exact result.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward pane geometry width declaration before captured size", "hash": "e1a7808331de", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward pane geometry explicit text Size value", "hash": "ca3aeaa325f6", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.97241, 435, 435, [12, 12]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward pane geometry shared position vector", "hash": "0d6dbb0dc7a2", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.28276, 433, 435, [55, 158]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
## CalcPaneLocate follow-up
Explicit Size field assignment raised objdiff to 99.97241 with identical instruction/register sequence except twelve stack offsets. Named textSize allocated before unnamed temporaries shifts their homes. Try returning the actual Size value through an inline helper, then field-by-field SetSize helper, preserving exact object count and data.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward text Size inline return assigned fields", "hash": "c2f52580b12b", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward text Size inline pane setter owns fields", "hash": "a7412d643818", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.85517, 435, 435, [7, 16]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward text Size inline copy height from Size reference", "hash": "0f89c2124516", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.312645, 436, 435, [6, 119]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward text Size inline return constructed value", "hash": "ac861e0599f4", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward text Size inline setter accepts references", "hash": "1c8f41f94c78", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [98.933334, 436, 435, [13, 149]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
Stack follow-up: target unnamed temporary homes in execution order are clear bound Size 0x48, backward text Size 0x40, bound Size 0x38, translations 0x30 and 0x28, forward text Size 0x20. The explicit forward Size takes 0x48 while compiler temporaries shift down. Test naming the preceding five actual geometry temporaries in that same source order, with no extra objects or padding.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "name preceding geometry temporaries with constructors", "hash": "ff8fe51e7f0b", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.96322, 435, 435, [277, 16]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "name preceding geometry temporaries with Size field assignments", "hash": "59ee53a26e51", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.96322, 435, 435, [277, 16]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "name preceding geometry temporaries and all following temporary objects", "hash": "6884f789b083", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.96322, 435, 435, [277, 16]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "name preceding geometry temporaries with immediate translation scopes", "hash": "711bf964bbf1", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.96322, 435, 435, [277, 16]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
Named geometry trial has only sixteen stack-address differences. Target captures both original pane Size values in the first two stack homes. Declare those two real values before emitted geometry temporaries, assigning at original GetSize calls; no dummy slots, added objects or uninitialized reads.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "original pane sizes declared before placement temporaries 0", "hash": "0ddc3f6b1e0a", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [98.7954, 440, 435, [14, 404]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "original pane sizes declared before placement temporaries 1", "hash": "20648e459004", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [98.8023, 440, 435, [11, 404]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "original pane sizes declared before placement temporaries 2", "hash": "a59038511d75", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [98.7954, 440, 435, [14, 404]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
Constructor follow-up: field assignment gives correct forward FP roles; test Size constructor body forms under a TU-only macro so temporary lifetime stays unchanged. Also test modifying the captured Size and passing its actual copy. No default initialization is removed.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "TU-only Size constructor 0", "hash": "c768604727d3", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.67614, 352, 352, [24, 218]], "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [98.49537, 216, 216, [0, 64]], "CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "TU-only Size constructor 1", "hash": "e974015b60ef", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.67614, 352, 352, [24, 218]], "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [98.49537, 216, 216, [0, 64]], "setLanguage__Q39textinput12candidatebox12LayoutByNW4RFQ29textinput8Language": [99.0, 246, 246, [21, 45]], "CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.848274, 435, 435, [6, 14]]}, "drops": ["main/src/keyboard/tiCandidateBox:matched_code", "main/src/keyboard/tiCandidateBox:matched_functions", "setLanguage__Q39textinput12candidatebox12LayoutByNW4RFQ29textinput8Language"]}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "TU-only Size constructor 2", "hash": "ae51c2388a65", "pool": 0, "functions": {"create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [93.67614, 352, 352, [24, 218]], "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator": [98.49537, 216, 216, [0, 64]], "CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "forward width replaces captured Size before copy construction", "hash": "3e4eae3e1fa3", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [98.72414, 437, 435, [7, 126]]}, "drops": []}
Remote check src/keyboard/tiCandidateBox: fetch rc=0; owned source changed=False
Final geometry boundary tests: route real Size and VEC2 temporaries through inline setters, so all temporary allocations occur after captured pane-size locals. Test width/height input forms without packing a stack-layout struct or changing constructors.
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "all geometry temporary setters width and height", "hash": "64f6c0e9aa70", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "all geometry temporary setters height and width", "hash": "286c7f42971b", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "all geometry temporary setters captured Size reference and width", "hash": "5797c2c9dadd", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [100.0, 435, 435, [0, 0]]}, "drops": []}
## Register-only final classification
start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface: structural 0 exact 7
onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface: structural 0 exact 81
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: structural 0 exact 37
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: structural 0 exact 7
createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator: structural 0 exact 64
CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv: structural 0 exact 11
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator: structural 0 exact 6
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "minimize exact helper remove position helper", "hash": "98ce3525c377", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.95862, 435, 435, [21, 18]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "minimize exact helper forward sizes only", "hash": "eb543b51eec5", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.981606, 435, 435, [11, 8]]}, "drops": []}
ATTEMPT {"unit": "src/keyboard/tiCandidateBox", "label": "minimize exact helper constructor spelling", "hash": "f7e14954e2df", "pool": 0, "functions": {"CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv": [99.873566, 435, 435, [0, 11]]}, "drops": []}
## Exact result
CalcPaneLocate___Q39textinput12candidatebox10UITextAreaFv reaches 100.0%, 435/435 instructions and ctxdiff diffs 0 with inline pane geometry setters. The size setter accepts the actual captured Size by const reference and preserves its height; the position setter constructs the actual VEC2. This recovers both FP register roles and original temporary stack allocation. No extra/dummy geometry objects, uninitialized values, pragmas, metadata changes, or new assembly. Original stale NONMATCHING comments removed.
## Coverage audit
All 23 originally open functions have at least three distinct successfully compiled source-level attempts. For SD create, the three TU-guarded getIPLState definition variants are the three attempts. For inputChar, the three CharacterOutput implementation variants are the three attempts. clearCandidates has typed storage/input-reference/reset-pointer variants; update and setElementBuffer each have storage-layout plus two separate body variants. Every other open function has at least three distinct body variants. Failed builds do not count. All failed/nonexact experiments restored; only exact CandidateBox geometry change retained.
The target disasm_fn helper stops at unsupported paired-single instructions in FP functions. Instruction counts use per-word decoding in ctxdiff/declsearch and objdiff symbol sizes; raw target listings alone are not counted.
All ten documented levers reviewed. eZiText-only lever 7 is inapplicable. Reference index has no matching app-source prior art. Existing target counts/branch conditions ruled out CTR rewrites. No target proof supports uninitialized or volatile changes; mpBS2Manager unchanged. Most new work uses inline boundaries, const views, types and actual local lifetimes, then register-only scoring.
## Final full clean gate
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiCandidateBox] pool: IDENTICAL
[src/keyboard/tiCandidateBox] objdiff: code 21728/24000 data 4652/4652 functions 110/112 fuzzy 99.5748 linked code 0
[src/keyboard/tiCandidateBox] instruction-exact functions: 109/112
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
[src/keyboard/tiCandidateBox] section .data size 3488 match 100.0
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
[src/keyboard/tiCandidateBox] section .sdata size 32 match 100.0
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.57484
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 93.67614
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 98.49537
[src/keyboard/tiCandidateBox] baseline: code 19988/24000 data 4652 functions 109 fuzzy 99.5657
[src/keyboard/tiInputForm] pool: IDENTICAL
[src/keyboard/tiInputForm] objdiff: code 47928/50656 data 3772/3772 functions 219/221 fuzzy 99.7200 linked code 0
[src/keyboard/tiInputForm] instruction-exact functions: 217/221
[src/keyboard/tiInputForm] section .bss size 96 match 100.0
[src/keyboard/tiInputForm] section .ctors size 4 match 100.0
[src/keyboard/tiInputForm] section .data size 2736 match 100.0
[src/keyboard/tiInputForm] section .rodata size 760 match 100.0
[src/keyboard/tiInputForm] section .sbss size 32 match 100.0
[src/keyboard/tiInputForm] section .sdata size 40 match 100.0
[src/keyboard/tiInputForm] section .sdata2 size 104 match 100.0
[src/keyboard/tiInputForm] section .text size 50656 match 99.71999
[src/keyboard/tiInputForm] below 100: calcCursorPos__Q39textinput9inputform4BaseFff 93.05215
[src/keyboard/tiInputForm] below 100: create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 96.40169
[src/keyboard/tiInputForm] baseline: code 47928/50656 data 3772 functions 219 fuzzy 99.7200
[src/keyboard/tiCellPhone] pool: IDENTICAL
[src/keyboard/tiCellPhone] objdiff: code 14968/19028 data 3860/3860 functions 84/86 fuzzy 99.9453 linked code 0
[src/keyboard/tiCellPhone] instruction-exact functions: 84/86
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
[src/keyboard/tiCellPhone] section .text size 19028 match 99.94534
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949
[src/keyboard/tiCellPhone] baseline: code 14968/19028 data 3860 functions 84 fuzzy 99.9453
[src/keyboard/tiZiString] pool: IDENTICAL
[src/keyboard/tiZiString] objdiff: code 3136/5504 data 7680/7680 functions 26/29 fuzzy 98.3241 linked code 0
[src/keyboard/tiZiString] instruction-exact functions: 26/29
[src/keyboard/tiZiString] section .bss size 7296 match 100.0
[src/keyboard/tiZiString] section .data size 328 match 100.0
[src/keyboard/tiZiString] section .rodata size 56 match 100.0
[src/keyboard/tiZiString] section .text size 5504 match 98.32413
[src/keyboard/tiZiString] below 100: clearCandidates__Q39textinput8tistring6WithZiFv 93.28395
[src/keyboard/tiZiString] below 100: update__Q39textinput8tistring6WithZiFv 97.4574
[src/keyboard/tiZiString] below 100: setElementBuffer__Q39textinput8tistring6WithZiFv 90.33846
[src/keyboard/tiZiString] baseline: code 3136/5504 data 7680 functions 26 fuzzy 98.3241
[src/keyboard/tiString] pool: IDENTICAL
[src/keyboard/tiString] objdiff: code 4632/5176 data 288/288 functions 41/42 fuzzy 99.0286 linked code 0
[src/keyboard/tiString] instruction-exact functions: 41/42
[src/keyboard/tiString] section .data size 288 match 100.0
[src/keyboard/tiString] section .text size 5176 match 99.028595
[src/keyboard/tiString] below 100: inputChar__Q39textinput8tistring9DecolatedFw 90.757355
[src/keyboard/tiString] baseline: code 4632/5176 data 288 functions 41 fuzzy 99.0286
[src/keyboard/tiSignWindow] pool: IDENTICAL
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.9833 linked code 0
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
[src/keyboard/tiSignWindow] section .text size 7184 match 99.9833
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.86425
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.9833
[src/scene/address/iplAddress] pool: IDENTICAL
[src/scene/address/iplAddress] objdiff: code 22016/23988 data 1964/1964 functions 99/101 fuzzy 99.9233 linked code 0
[src/scene/address/iplAddress] instruction-exact functions: 98/101
[src/scene/address/iplAddress] section .ctors size 4 match 100.0
[src/scene/address/iplAddress] section .data size 1880 match 100.0
[src/scene/address/iplAddress] section .rodata size 24 match 100.0
[src/scene/address/iplAddress] section .sbss size 8 match 100.0
[src/scene/address/iplAddress] section .sdata size 16 match 100.0
[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0
[src/scene/address/iplAddress] section .text size 23988 match 99.923294
[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.84305
[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 98.42593
[src/scene/address/iplAddress] baseline: code 22016/23988 data 1964 functions 99 fuzzy 99.9233
[src/scene/address/iplAddressEdit] pool: IDENTICAL
[src/scene/address/iplAddressEdit] objdiff: code 23344/27112 data 2560/2560 functions 91/94 fuzzy 99.5528 linked code 0
[src/scene/address/iplAddressEdit] instruction-exact functions: 91/94
[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0
[src/scene/address/iplAddressEdit] section .data size 2152 match 100.0
[src/scene/address/iplAddressEdit] section .rodata size 40 match 100.0
[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0
[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0
[src/scene/address/iplAddressEdit] section .text size 27112 match 99.55282
[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561
[src/scene/address/iplAddressEdit] below 100: get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571
[src/scene/address/iplAddressEdit] below 100: update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105
[src/scene/address/iplAddressEdit] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528
[src/scene/sdChannelSelect/iplSDChannelSelect] pool: IDENTICAL
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 30344/33828 data 2960/2960 functions 123/129 fuzzy 99.7731 linked code 0
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 123/129
[src/scene/sdChannelSelect/iplSDChannelSelect] section .data size 2736 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .rodata size 64 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata size 80 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata2 size 80 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .text size 33828 match 99.77309
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: create__Q33ipl5scene15SDChannelSelectFv 97.73972
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 98.007935
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714
[src/scene/sdChannelSelect/iplSDChannelSelect] baseline: code 30344/33828 data 2960 functions 123 fuzzy 99.7731
regressions vs baseline: 0
global matched_code_percent: 92.26770 -> 92.32580
global fuzzy_match_percent: 99.73349 -> 99.73356
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
```
Explicit build/43U/ok passed. Final ctxdiff is 435/435 instructions, diffs 0. Exact objdiff 100.0%. No metadata/header/configure changes survived. All nine pools identical and data metrics 100%; zero global regressions, forbidden additions or readability warnings.
## Remaining functions
create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 93.67614%: inline subobject initialization. At least three compiled attempts; reverted.
createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 98.49537%: animation descriptor/count register allocation. At least three compiled attempts; reverted.
calcCursorPos__Q39textinput9inputform4BaseFff 93.05215%: glyph geometry FP scheduling. At least three compiled attempts; reverted.
create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 96.40169%: row activation and animation register allocation. At least three compiled attempts; reverted.
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009%: key/table/event register allocation. At least three compiled attempts; reverted.
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949%: toggle descriptor/offset register allocation. At least three compiled attempts; reverted.
clearCandidates__Q39textinput8tistring6WithZiFv 93.28395%: shared buffer base lifetime. At least three compiled attempts; reverted.
update__Q39textinput8tistring6WithZiFv 97.4574%: buffer/context and candidate-loop lifetimes. At least three compiled attempts; reverted.
setElementBuffer__Q39textinput8tistring6WithZiFv 90.33846%: buffer base and index register allocation. At least three compiled attempts; reverted.
inputChar__Q39textinput8tistring9DecolatedFw 90.757355%: literal Hangul converter index operations. At least three compiled attempts; reverted.
create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.86425%: animation count/descriptor register allocation. At least three compiled attempts; reverted.
start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.84305%: icon object/pane register allocation. At least three compiled attempts; reverted.
onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 98.42593%: event/mode saved-register allocation. At least three compiled attempts; reverted.
create__Q33ipl5scene11AddressEditFv 97.5561%: text address lifetimes and balloon margin scheduling. At least three compiled attempts; reverted.
get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571%: text address retained across virtual pane lookup. At least three compiled attempts; reverted.
update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105%: source/destination address-load order. At least three compiled attempts; reverted.
create__Q33ipl5scene15SDChannelSelectFv 97.73972%: BS2 loop pointer reload. At least three compiled attempts; reverted.
collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188%: count store/threshold-load order. At least three compiled attempts; reverted.
collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336%: count store/threshold-load order. At least three compiled attempts; reverted.
collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 98.007935%: channel addressing and count/threshold-load order. At least three compiled attempts; reverted.
collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125%: count store/threshold-load order. At least three compiled attempts; reverted.
flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714%: save manager/heap argument-load order. At least three compiled attempts; reverted.
80 successful source trials; three earlier compile failures excluded. Minimization checks confirm that removing the position helper, limiting setters to forward placement, or replacing field assignments with a constructor loses exactness. New helpers are static inline and emit no added standalone function. All 22 remaining objdiff-open functions have their required attempt coverage.
Uncertainty: gate instruction-exact counts have four existing disassembler discrepancies in functions objdiff scores 100; these predate the change. The new function passes both metrics. Awaiting independent parent verification; this is one function gain, not unit/project completion.

View File

@@ -0,0 +1,444 @@
# a23m max round
Base 5473a84f21b7777ae6eecd3207913d60bf3716a0. Fresh origin fetch checked. Latest user scope selects 2-3 closest functions; focus on CellPhone onKey, CellPhone create and SignWindow create. Prior u2, a23h2 and a23x logs stay untracked. Read-only references: local AGENTS, a23h prompt, all ten levers, effort policy, a23h/u2/a23h2/a23x and historical target-specific logs. No tiPcKeyboard or BS2 volatility changes.
Baseline follows.
src/keyboard/tiCandidateBox: POOL IDENTICAL up to 57 (mine=57 base=57); instruction-exact 109/112; {"fuzzy_match_percent": 99.71067, "total_code": "24000", "matched_code": "21728", "matched_code_percent": 90.53333, "total_data": "4652", "matched_data": "4652", "matched_data_percent": 100.0, "total_functions": 112, "matched_functions": 110, "matched_functions_percent": 98.21429, "total_units": 1}
OPEN create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 95.99148
OPEN createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 98.49537
src/keyboard/tiInputForm: POOL IDENTICAL up to 20 (mine=20 base=20); instruction-exact 217/221; {"fuzzy_match_percent": 99.71999, "total_code": "50656", "matched_code": "47928", "matched_code_percent": 94.614655, "total_data": "3772", "matched_data": "3772", "matched_data_percent": 100.0, "total_functions": 221, "matched_functions": 219, "matched_functions_percent": 99.095024, "total_units": 1}
OPEN calcCursorPos__Q39textinput9inputform4BaseFff 93.05215
OPEN create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 96.40169
src/keyboard/tiCellPhone: POOL IDENTICAL up to 76 (mine=76 base=76); instruction-exact 84/86; {"fuzzy_match_percent": 99.94534, "total_code": "19028", "matched_code": "14968", "matched_code_percent": 78.663025, "total_data": "3860", "matched_data": "3860", "matched_data_percent": 100.0, "total_functions": 86, "matched_functions": 84, "matched_functions_percent": 97.674416, "total_units": 1}
OPEN onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
OPEN create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949
src/keyboard/tiZiString: POOL IDENTICAL up to 0 (mine=0 base=0); instruction-exact 26/29; {"fuzzy_match_percent": 98.32413, "total_code": "5504", "matched_code": "3136", "matched_code_percent": 56.97674, "total_data": "7680", "matched_data": "7680", "matched_data_percent": 100.0, "total_functions": 29, "matched_functions": 26, "matched_functions_percent": 89.655174, "total_units": 1}
OPEN clearCandidates__Q39textinput8tistring6WithZiFv 93.28395
OPEN update__Q39textinput8tistring6WithZiFv 97.4574
OPEN setElementBuffer__Q39textinput8tistring6WithZiFv 90.33846
src/keyboard/tiString: POOL IDENTICAL up to 0 (mine=0 base=0); instruction-exact 41/42; {"fuzzy_match_percent": 99.028595, "total_code": "5176", "matched_code": "4632", "matched_code_percent": 89.48995, "total_data": "288", "matched_data": "288", "matched_data_percent": 100.0, "total_functions": 42, "matched_functions": 41, "matched_functions_percent": 97.61904, "total_units": 1}
OPEN inputChar__Q39textinput8tistring9DecolatedFw 90.757355
src/keyboard/tiSignWindow: POOL IDENTICAL up to 30 (mine=30 base=30); instruction-exact 55/56; {"fuzzy_match_percent": 99.9833, "total_code": "7184", "matched_code": "6300", "matched_code_percent": 87.69488, "total_data": "3468", "matched_data": "3468", "matched_data_percent": 100.0, "total_functions": 56, "matched_functions": 55, "matched_functions_percent": 98.21429, "total_units": 1}
OPEN create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.86425
src/scene/address/iplAddress: POOL IDENTICAL up to 81 (mine=81 base=81); instruction-exact 98/101; {"fuzzy_match_percent": 99.923294, "total_code": "23988", "matched_code": "22016", "matched_code_percent": 91.77922, "total_data": "1964", "matched_data": "1964", "matched_data_percent": 100.0, "total_functions": 101, "matched_functions": 99, "matched_functions_percent": 98.019806, "total_units": 1}
OPEN start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.84305
OPEN onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 98.42593
src/scene/address/iplAddressEdit: POOL IDENTICAL up to 57 (mine=57 base=57); instruction-exact 91/94; {"fuzzy_match_percent": 99.55282, "total_code": "27112", "matched_code": "23344", "matched_code_percent": 86.10209, "total_data": "2560", "matched_data": "2560", "matched_data_percent": 100.0, "total_functions": 94, "matched_functions": 91, "matched_functions_percent": 96.80851, "total_units": 1}
OPEN create__Q33ipl5scene11AddressEditFv 97.5561
OPEN get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571
OPEN update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105
src/scene/sdChannelSelect/iplSDChannelSelect: POOL IDENTICAL up to 101 (mine=101 base=101); instruction-exact 123/129; {"fuzzy_match_percent": 99.77309, "total_code": "33828", "matched_code": "30344", "matched_code_percent": 89.70084, "total_data": "2960", "matched_data": "2960", "matched_data_percent": 100.0, "total_functions": 129, "matched_functions": 123, "matched_functions_percent": 95.34883, "total_units": 1}
OPEN create__Q33ipl5scene15SDChannelSelectFv 97.73972
OPEN collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188
OPEN collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336
OPEN collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 98.007935
OPEN collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125
OPEN flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714
## CellPhone onKey
Resumed a23x four-operand patch as a starting point, not a repeated new trial. Source implements control-key dispatch, normal holding-key cycling, predictive numeric conversion, then release confirmation. The last inline getInputType holds the keyset across language queries. Prior read-only/reference/type-query wrappers all retained r20 where the target uses r19. New focus: method implementation boundaries and ownership of the complete release operation. No prior-art match in the supplied index.
ATTEMPT {"label": "resume prior four-operand candidate; baseline only", "hash": "3f53d21fff3f", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.95601, 682, 682, 4], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "14968", "data": "3860"}
Live reconstruction differs from a23x notes: the resumed patch has four differences at indices 146,149,150,154, all in the first holding-key lookup. Target holds keys in r21 and displacement in r19; source uses keys r19 and displacement r21. Last getInputType now matches. This new live evidence directs first lookup ownership experiments; old classifier trials are excluded.
ATTEMPT {"label": "holding lookup nests the mode-table accessor in the existing search", "hash": "0d2acbe96650", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.95601, 682, 682, 4], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "14968", "data": "3860"}
ATTEMPT {"label": "holding lookup owns counter before table extraction in a dedicated helper", "hash": "16e37c32ea58", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.941345, 682, 682, 7], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "14968", "data": "3860"}
ATTEMPT {"label": "holding lookup keeps bounded key-array reference through the existing search", "hash": "d574cc3409fe", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.978004, 682, 682, 3], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "14968", "data": "3860"}
ATTEMPT {"label": "holding lookup references the actual table pointer field", "hash": "b167bf267fd8", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.941345, 682, 682, 7], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "14968", "data": "3860"}
ATTEMPT {"label": "holding lookup snapshots keyset reference before its character array", "hash": "5136600ac69a", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.978004, 682, 682, 3], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "14968", "data": "3860"}
ATTEMPT {"label": "holding lookup const pointer lifetime begins with mode selection", "hash": "58c0538d79fe", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [99.95601, 682, 682, 4], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "14968", "data": "3860"}
ATTEMPT {"label": "holding lookup search receives const keyset and owns pointer snapshot", "hash": "4d35d7b79ab5", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "17696", "data": "3860"}
Exact candidate: first holding lookup now receives a const KeySet reference and owns its pointer snapshot and u16 search index. This restores r21 keys/r19 displacement without changing control flow, calls, data or any original exact sibling. Objdiff onKey 100.0; ctxdiff independently required below.
## First exact candidate full clean gate
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiCandidateBox] pool: IDENTICAL
[src/keyboard/tiCandidateBox] objdiff: code 21728/24000 data 4652/4652 functions 110/112 fuzzy 99.7107 linked code 0
[src/keyboard/tiCandidateBox] instruction-exact functions: 109/112
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
[src/keyboard/tiCandidateBox] section .data size 3488 match 100.0
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
[src/keyboard/tiCandidateBox] section .sdata size 32 match 100.0
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.71067
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 95.99148
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 98.49537
[src/keyboard/tiCandidateBox] baseline: code 21728/24000 data 4652 functions 110 fuzzy 99.7107
[src/keyboard/tiInputForm] pool: IDENTICAL
[src/keyboard/tiInputForm] objdiff: code 47928/50656 data 3772/3772 functions 219/221 fuzzy 99.7200 linked code 0
[src/keyboard/tiInputForm] instruction-exact functions: 217/221
[src/keyboard/tiInputForm] section .bss size 96 match 100.0
[src/keyboard/tiInputForm] section .ctors size 4 match 100.0
[src/keyboard/tiInputForm] section .data size 2736 match 100.0
[src/keyboard/tiInputForm] section .rodata size 760 match 100.0
[src/keyboard/tiInputForm] section .sbss size 32 match 100.0
[src/keyboard/tiInputForm] section .sdata size 40 match 100.0
[src/keyboard/tiInputForm] section .sdata2 size 104 match 100.0
[src/keyboard/tiInputForm] section .text size 50656 match 99.71999
[src/keyboard/tiInputForm] below 100: calcCursorPos__Q39textinput9inputform4BaseFff 93.05215
[src/keyboard/tiInputForm] below 100: create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 96.40169
[src/keyboard/tiInputForm] baseline: code 47928/50656 data 3772 functions 219 fuzzy 99.7200
[src/keyboard/tiCellPhone] pool: IDENTICAL
[src/keyboard/tiCellPhone] objdiff: code 17696/19028 data 3860/3860 functions 85/86 fuzzy 99.9926 linked code 0
[src/keyboard/tiCellPhone] instruction-exact functions: 85/86
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
[src/keyboard/tiCellPhone] section .text size 19028 match 99.992645
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949
[src/keyboard/tiCellPhone] baseline: code 14968/19028 data 3860 functions 84 fuzzy 99.9453
[src/keyboard/tiZiString] pool: IDENTICAL
[src/keyboard/tiZiString] objdiff: code 3136/5504 data 7680/7680 functions 26/29 fuzzy 98.3241 linked code 0
[src/keyboard/tiZiString] instruction-exact functions: 26/29
[src/keyboard/tiZiString] section .bss size 7296 match 100.0
[src/keyboard/tiZiString] section .data size 328 match 100.0
[src/keyboard/tiZiString] section .rodata size 56 match 100.0
[src/keyboard/tiZiString] section .text size 5504 match 98.32413
[src/keyboard/tiZiString] below 100: clearCandidates__Q39textinput8tistring6WithZiFv 93.28395
[src/keyboard/tiZiString] below 100: update__Q39textinput8tistring6WithZiFv 97.4574
[src/keyboard/tiZiString] below 100: setElementBuffer__Q39textinput8tistring6WithZiFv 90.33846
[src/keyboard/tiZiString] baseline: code 3136/5504 data 7680 functions 26 fuzzy 98.3241
[src/keyboard/tiString] pool: IDENTICAL
[src/keyboard/tiString] objdiff: code 4632/5176 data 288/288 functions 41/42 fuzzy 99.0286 linked code 0
[src/keyboard/tiString] instruction-exact functions: 41/42
[src/keyboard/tiString] section .data size 288 match 100.0
[src/keyboard/tiString] section .text size 5176 match 99.028595
[src/keyboard/tiString] below 100: inputChar__Q39textinput8tistring9DecolatedFw 90.757355
[src/keyboard/tiString] baseline: code 4632/5176 data 288 functions 41 fuzzy 99.0286
[src/keyboard/tiSignWindow] pool: IDENTICAL
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.9833 linked code 0
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
[src/keyboard/tiSignWindow] section .text size 7184 match 99.9833
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.86425
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.9833
[src/scene/address/iplAddress] pool: IDENTICAL
[src/scene/address/iplAddress] objdiff: code 22016/23988 data 1964/1964 functions 99/101 fuzzy 99.9233 linked code 0
[src/scene/address/iplAddress] instruction-exact functions: 98/101
[src/scene/address/iplAddress] section .ctors size 4 match 100.0
[src/scene/address/iplAddress] section .data size 1880 match 100.0
[src/scene/address/iplAddress] section .rodata size 24 match 100.0
[src/scene/address/iplAddress] section .sbss size 8 match 100.0
[src/scene/address/iplAddress] section .sdata size 16 match 100.0
[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0
[src/scene/address/iplAddress] section .text size 23988 match 99.923294
[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.84305
[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 98.42593
[src/scene/address/iplAddress] baseline: code 22016/23988 data 1964 functions 99 fuzzy 99.9233
[src/scene/address/iplAddressEdit] pool: IDENTICAL
[src/scene/address/iplAddressEdit] objdiff: code 23344/27112 data 2560/2560 functions 91/94 fuzzy 99.5528 linked code 0
[src/scene/address/iplAddressEdit] instruction-exact functions: 91/94
[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0
[src/scene/address/iplAddressEdit] section .data size 2152 match 100.0
[src/scene/address/iplAddressEdit] section .rodata size 40 match 100.0
[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0
[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0
[src/scene/address/iplAddressEdit] section .text size 27112 match 99.55282
[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561
[src/scene/address/iplAddressEdit] below 100: get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571
[src/scene/address/iplAddressEdit] below 100: update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105
[src/scene/address/iplAddressEdit] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528
[src/scene/sdChannelSelect/iplSDChannelSelect] pool: IDENTICAL
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 30344/33828 data 2960/2960 functions 123/129 fuzzy 99.7731 linked code 0
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 123/129
[src/scene/sdChannelSelect/iplSDChannelSelect] section .data size 2736 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .rodata size 64 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata size 80 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata2 size 80 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .text size 33828 match 99.77309
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: create__Q33ipl5scene15SDChannelSelectFv 97.73972
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 98.007935
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714
[src/scene/sdChannelSelect/iplSDChannelSelect] baseline: code 30344/33828 data 2960 functions 123 fuzzy 99.7731
regressions vs baseline: 0
global matched_code_percent: 92.44372 -> 92.53480
global fuzzy_match_percent: 99.73527 -> 99.73559
global complete_code_percent: 76.18478 -> 76.18478
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
```
Independent post-clean ctxdiff: src 0xaa8 base 0xaa8 insns 682/682, diffs 0. Pool identical 76/76. CellPhone instruction-exact 84/86 -> 85/86; matched code 14968 -> 17696; data 3860/3860. Full gate passes with no regressions, forbidden additions or readability warnings and required DOL SHA1.
## CellPhone create
Refetched origin before starting; source/header unchanged remotely. Target is 333 instructions, stack 0x60, two construction/animation loops and three texture snapshots. Only toggle-row r18 and animation byte offset r16 are swapped. Pool 76/76 and data 3860/3860. New tiPcKeyboard precedent suggests declaration/definition boundaries; prior table views, const resource inputs, whole animation helpers and declaration permutations are excluded. Existing TI_CELLPHONE_IMPLEMENTATION and TI_CELLPHONE_MATCH_LAYOUT are defined only by this source, so guarded header changes cannot affect another translation unit. No reload or uninitialized-path evidence supports qualifiers or uninitialized values.
ATTEMPT {"label": "layout getter declared in header and defined inline in this source", "hash": "826e3e9b2fce", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "17696", "data": "3860"}
ATTEMPT {"label": "toggle pane constructor defined inline beside layout creation", "hash": "8e0261e135be", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "17696", "data": "3860"}
ATTEMPT {"label": "both pane constructors defined inline beside layout creation", "hash": "f5e5a3f9dfcb", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "17696", "data": "3860"}
Getter/constructor declaration boundaries did not resolve the seven toggle-loop operands. Next boundary is a const reference to the complete animation table, matching the successful keyset ownership change while preserving independently reloaded row fields. No metadata changes.
ATTEMPT {"label": "toggle resource names and ids use independent descriptor accessor calls", "hash": "dd6d7cfb6fe9", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "17696", "data": "3860"}
ATTEMPT {"label": "toggle animation descriptor owns filename and animation accessors", "hash": "07a960fa68ea", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.8949, 333, 333, 7]}, "drops": [], "code": "17696", "data": "3860"}
ATTEMPT {"label": "toggle pane descriptor comes from const row accessor", "hash": "2382b82f734e", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [99.66967, 333, 333, 21]}, "drops": [], "code": "17696", "data": "3860"}
ATTEMPT {"label": "toggle pane construction and binding own member helper", "hash": "cbc324a1fe10", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [98.31832, 333, 333, 90]}, "drops": [], "code": "17696", "data": "3860"}
ATTEMPT {"label": "normal pane construction and binding own member helper", "hash": "5239ac30b2d7", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [98.093094, 333, 333, 121]}, "drops": [], "code": "17696", "data": "3860"}
ATTEMPT {"label": "normal and toggle pane loops own separate member helpers", "hash": "5ab768a13034", "unit": "src/keyboard/tiCellPhone", "pool": 0, "functions": {"onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv": [100.0, 682, 682, 0], "create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator": [97.53754, 333, 333, 142]}, "drops": [], "code": "17696", "data": "3860"}
## SignWindow create
Origin refetched; SignWindow source and headers unchanged. Target frame 0x50 and 221 instructions, switch over pane type with three typed allocations, append, snapshot force name/count, and animation-resource loop, then init. Source differs only at six operands: count r22 versus target r31, and pointer-slot base r31 versus target r22. New inline accessor/constructor declaration boundaries are distinct from earlier slot-view, count-wrapper and whole inner-loop helpers. No qualifier or uninitialized-value evidence.
ATTEMPT {"label": "sign layout getter has source-level inline definition", "hash": "d26315c3d30f", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.86425, 221, 221, 6]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign button constructor has inline definition next to creation", "hash": "c15b76d3871f", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.86425, 221, 221, 6]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign all concrete constructors has inline definition next to creation", "hash": "604b3beaac54", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.86425, 221, 221, 6]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign descriptor owns its animation-count accessor", "hash": "724f60ecafa4", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.86425, 221, 221, 6]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign descriptor owns a reference-returning animation accessor", "hash": "39c05000fcbc", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.86425, 221, 221, 6]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign descriptor owns all loop-control and slot accessors", "hash": "bdb4baac9c4d", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.86425, 221, 221, 6]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign complete pane-creation loop owns inline member helper", "hash": "15e5275a8aba", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [98.66516, 221, 221, 54]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign count snapshot belongs to descriptor query and inner scope", "hash": "ae3bd9b31b68", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [98.8914, 221, 221, 46]}, "drops": [], "code": "6300", "data": "3468"}
ATTEMPT {"label": "sign descriptor separately reads resource name and id at each call", "hash": "1fea9aa866c5", "unit": "src/keyboard/tiSignWindow", "pool": 0, "functions": {"create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator": [99.117645, 221, 221, 34]}, "drops": [], "code": "6300", "data": "3468"}
## Focused-round coverage
Latest user request narrowed this max round to the closest 2-3 functions. Three functions received new source trials, excluding the resumed a23x candidate from the trial count. onKey: seven new trials, seventh exact. CellPhone create: nine new trials, no exact; final register swap unchanged at seven operands. SignWindow create: nine new trials, no exact; final count/slot swap unchanged at six operands. No trial is a compiler flag sweep, pragma, volatile/uninitialized addition, symbol extent change or arbitrary data placement. All rejected experiments are restored. Only onKey source changes remain, committed as 58b89a3a.
The other 19 original open functions were not re-tried under the explicit 2-3-function focus. Their existing three-or-more-trial evidence remains in a23x/a23h2/u2. Final open inventory and full gate below cover all nine owned units. No code or data edits outside the selected onKey implementation survive. All 31,204 data bytes matched at baseline; no missing-symbol or extent correction is supported.
Origin advanced to 49be1c79 during the round, changing only BS2Mach data. The branch is based on 5473a84f; no worker rebase or merge was performed. Parent must revalidate on current main.
## Final full clean gate
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiCandidateBox] pool: IDENTICAL
[src/keyboard/tiCandidateBox] objdiff: code 21728/24000 data 4652/4652 functions 110/112 fuzzy 99.7107 linked code 0
[src/keyboard/tiCandidateBox] instruction-exact functions: 109/112
[src/keyboard/tiCandidateBox] section .ctors size 4 match 100.0
[src/keyboard/tiCandidateBox] section .data size 3488 match 100.0
[src/keyboard/tiCandidateBox] section .rodata size 1048 match 100.0
[src/keyboard/tiCandidateBox] section .sdata size 32 match 100.0
[src/keyboard/tiCandidateBox] section .sdata2 size 80 match 100.0
[src/keyboard/tiCandidateBox] section .text size 24000 match 99.71067
[src/keyboard/tiCandidateBox] below 100: create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 95.99148
[src/keyboard/tiCandidateBox] below 100: createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 98.49537
[src/keyboard/tiCandidateBox] baseline: code 21728/24000 data 4652 functions 110 fuzzy 99.7107
[src/keyboard/tiInputForm] pool: IDENTICAL
[src/keyboard/tiInputForm] objdiff: code 47928/50656 data 3772/3772 functions 219/221 fuzzy 99.7200 linked code 0
[src/keyboard/tiInputForm] instruction-exact functions: 217/221
[src/keyboard/tiInputForm] section .bss size 96 match 100.0
[src/keyboard/tiInputForm] section .ctors size 4 match 100.0
[src/keyboard/tiInputForm] section .data size 2736 match 100.0
[src/keyboard/tiInputForm] section .rodata size 760 match 100.0
[src/keyboard/tiInputForm] section .sbss size 32 match 100.0
[src/keyboard/tiInputForm] section .sdata size 40 match 100.0
[src/keyboard/tiInputForm] section .sdata2 size 104 match 100.0
[src/keyboard/tiInputForm] section .text size 50656 match 99.71999
[src/keyboard/tiInputForm] below 100: calcCursorPos__Q39textinput9inputform4BaseFff 93.05215
[src/keyboard/tiInputForm] below 100: create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 96.40169
[src/keyboard/tiInputForm] baseline: code 47928/50656 data 3772 functions 219 fuzzy 99.7200
[src/keyboard/tiCellPhone] pool: IDENTICAL
[src/keyboard/tiCellPhone] objdiff: code 17696/19028 data 3860/3860 functions 85/86 fuzzy 99.9926 linked code 0
[src/keyboard/tiCellPhone] instruction-exact functions: 85/86
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
[src/keyboard/tiCellPhone] section .text size 19028 match 99.992645
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949
[src/keyboard/tiCellPhone] baseline: code 14968/19028 data 3860 functions 84 fuzzy 99.9453
[src/keyboard/tiZiString] pool: IDENTICAL
[src/keyboard/tiZiString] objdiff: code 3136/5504 data 7680/7680 functions 26/29 fuzzy 98.3241 linked code 0
[src/keyboard/tiZiString] instruction-exact functions: 26/29
[src/keyboard/tiZiString] section .bss size 7296 match 100.0
[src/keyboard/tiZiString] section .data size 328 match 100.0
[src/keyboard/tiZiString] section .rodata size 56 match 100.0
[src/keyboard/tiZiString] section .text size 5504 match 98.32413
[src/keyboard/tiZiString] below 100: clearCandidates__Q39textinput8tistring6WithZiFv 93.28395
[src/keyboard/tiZiString] below 100: update__Q39textinput8tistring6WithZiFv 97.4574
[src/keyboard/tiZiString] below 100: setElementBuffer__Q39textinput8tistring6WithZiFv 90.33846
[src/keyboard/tiZiString] baseline: code 3136/5504 data 7680 functions 26 fuzzy 98.3241
[src/keyboard/tiString] pool: IDENTICAL
[src/keyboard/tiString] objdiff: code 4632/5176 data 288/288 functions 41/42 fuzzy 99.0286 linked code 0
[src/keyboard/tiString] instruction-exact functions: 41/42
[src/keyboard/tiString] section .data size 288 match 100.0
[src/keyboard/tiString] section .text size 5176 match 99.028595
[src/keyboard/tiString] below 100: inputChar__Q39textinput8tistring9DecolatedFw 90.757355
[src/keyboard/tiString] baseline: code 4632/5176 data 288 functions 41 fuzzy 99.0286
[src/keyboard/tiSignWindow] pool: IDENTICAL
[src/keyboard/tiSignWindow] objdiff: code 6300/7184 data 3468/3468 functions 55/56 fuzzy 99.9833 linked code 0
[src/keyboard/tiSignWindow] instruction-exact functions: 55/56
[src/keyboard/tiSignWindow] section .ctors size 4 match 100.0
[src/keyboard/tiSignWindow] section .data size 2672 match 100.0
[src/keyboard/tiSignWindow] section .rodata size 784 match 100.0
[src/keyboard/tiSignWindow] section .sdata size 8 match 100.0
[src/keyboard/tiSignWindow] section .text size 7184 match 99.9833
[src/keyboard/tiSignWindow] below 100: create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.86425
[src/keyboard/tiSignWindow] baseline: code 6300/7184 data 3468 functions 55 fuzzy 99.9833
[src/scene/address/iplAddress] pool: IDENTICAL
[src/scene/address/iplAddress] objdiff: code 22016/23988 data 1964/1964 functions 99/101 fuzzy 99.9233 linked code 0
[src/scene/address/iplAddress] instruction-exact functions: 98/101
[src/scene/address/iplAddress] section .ctors size 4 match 100.0
[src/scene/address/iplAddress] section .data size 1880 match 100.0
[src/scene/address/iplAddress] section .rodata size 24 match 100.0
[src/scene/address/iplAddress] section .sbss size 8 match 100.0
[src/scene/address/iplAddress] section .sdata size 16 match 100.0
[src/scene/address/iplAddress] section .sdata2 size 32 match 100.0
[src/scene/address/iplAddress] section .text size 23988 match 99.923294
[src/scene/address/iplAddress] below 100: start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.84305
[src/scene/address/iplAddress] below 100: onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 98.42593
[src/scene/address/iplAddress] baseline: code 22016/23988 data 1964 functions 99 fuzzy 99.9233
[src/scene/address/iplAddressEdit] pool: IDENTICAL
[src/scene/address/iplAddressEdit] objdiff: code 23344/27112 data 2560/2560 functions 91/94 fuzzy 99.5528 linked code 0
[src/scene/address/iplAddressEdit] instruction-exact functions: 91/94
[src/scene/address/iplAddressEdit] section .bss size 320 match 100.0
[src/scene/address/iplAddressEdit] section .data size 2152 match 100.0
[src/scene/address/iplAddressEdit] section .rodata size 40 match 100.0
[src/scene/address/iplAddressEdit] section .sdata size 24 match 100.0
[src/scene/address/iplAddressEdit] section .sdata2 size 24 match 100.0
[src/scene/address/iplAddressEdit] section .text size 27112 match 99.55282
[src/scene/address/iplAddressEdit] below 100: create__Q33ipl5scene11AddressEditFv 97.5561
[src/scene/address/iplAddressEdit] below 100: get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571
[src/scene/address/iplAddressEdit] below 100: update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105
[src/scene/address/iplAddressEdit] baseline: code 23344/27112 data 2560 functions 91 fuzzy 99.5528
[src/scene/sdChannelSelect/iplSDChannelSelect] pool: IDENTICAL
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 30344/33828 data 2960/2960 functions 123/129 fuzzy 99.7731 linked code 0
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 123/129
[src/scene/sdChannelSelect/iplSDChannelSelect] section .data size 2736 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .rodata size 64 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata size 80 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .sdata2 size 80 match 100.0
[src/scene/sdChannelSelect/iplSDChannelSelect] section .text size 33828 match 99.77309
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: create__Q33ipl5scene15SDChannelSelectFv 97.73972
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 98.007935
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125
[src/scene/sdChannelSelect/iplSDChannelSelect] below 100: flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714
[src/scene/sdChannelSelect/iplSDChannelSelect] baseline: code 30344/33828 data 2960 functions 123 fuzzy 99.7731
regressions vs baseline: 0
global matched_code_percent: 92.44372 -> 92.53480
global fuzzy_match_percent: 99.73527 -> 99.73559
global complete_code_percent: 76.18478 -> 76.18478
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 explicit ninja build/43U/ok and build/43U/report.json passed. Post-clean onKey ctxdiff gives 682/682 instructions and diffs 0. Pool 76/76 identical; SHA1 independently 26116613f624061ba99c8d1a299aaa6efa85670d. No source/header edits remain beyond committed onKey helpers.
## Remaining functions
OPEN start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface 99.84305%: icon versus pane saved registers; view trial moves discrepancy to index/pane.
OPEN onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface 98.42593%: saved-register roles across event arms.
OPEN create__Q33ipl5scene11AddressEditFv 97.5561%: retained text address and balloon margin scheduling.
OPEN get_friendinfo__Q33ipl5scene11AddressEditFv 88.03571%: text address rematerialized after virtual pane lookup.
OPEN update_friendinfo__Q33ipl5scene11AddressEditFv 99.42105%: source/destination address scheduling.
OPEN create__Q33ipl5scene15SDChannelSelectFv 97.73972%: BS2 manager reload folded by compiler.
OPEN collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.81188%: count-store versus threshold-read scheduling.
OPEN collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.833336%: count-store versus threshold-read scheduling.
OPEN collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 98.007935%: count-store scheduling and channel address operands.
OPEN collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl 97.55125%: four count-store versus threshold-read schedules.
OPEN flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv 99.65714%: heap/save-manager load order.
OPEN create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949%: toggle row versus animation offset saved registers.
OPEN calcCursorPos__Q39textinput9inputform4BaseFff 93.05215%: glyph dimension scheduling and FP register roles.
OPEN create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer 96.40169%: row linkage and animation register allocation.
OPEN create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 95.99148%: Scroll-name/child initialization lifetimes, current origin changes retained unchanged.
OPEN createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator 98.49537%: pane/count/slot saved-register allocation.
OPEN create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator 99.86425%: count versus animation-slot saved registers.
OPEN inputChar__Q39textinput8tistring9DecolatedFw 90.757355%: Hangul builder branch folding and count/index operations.
OPEN clearCandidates__Q39textinput8tistring6WithZiFv 93.28395%: separate static-buffer address materialization.
OPEN update__Q39textinput8tistring6WithZiFv 97.4574%: buffer base handling and candidate-loop register lifetime.
OPEN setElementBuffer__Q39textinput8tistring6WithZiFv 90.33846%: buffer base scheduling and copy-index registers.
Instruction-exact total 844/870 -> 845/870; objdiff matched functions 848/870 -> 849/870; code 174396/196476 -> 177124/196476 bytes; data 31204/31204 -> 31204/31204. All other owned-unit measures match this round baseline.
Uncertainty: four existing objdiff-versus-instruction-decoder discrepancies remain outside the new exact function. Source-only weak functions/objects and prior InputForm literal offsets are unchanged; symbol-paired data 100% is not a claim of raw-section or linked-unit completion. No linking flags were edited. Parent must independently verify before acceptance.

View File

@@ -0,0 +1,88 @@
# 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

@@ -0,0 +1,30 @@
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

@@ -0,0 +1,30 @@
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

@@ -0,0 +1,144 @@
# 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.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,839 @@
# Aggregate boundary sweep
Worktree sol-high, branch agent/w1003/agg-sweep. Baseline 38cb84c8. Fresh full 43U Ninja build and progress report pass. Origin fetched under /tmp/wii-git.lock. AOSS, ATERM, AOSSLink and eZiText excluded. Existing a6x, h6 and u7 untracked logs preserved.
Read AGENTS.md, common.md, levers.md and unslop. Only lever 13 candidates with target evidence can change object boundaries. Prior function-only helper/type trials are recorded in the existing attempts logs. Snapshot reference ELFs, section bytes and resolved relocations before any object correction. No configure/link changes.
## Live baseline and open-function audit
### src/system/iplKeyboard
{"fuzzy_match_percent": 98.73506, "matched_code": "4752", "matched_code_percent": 78.88447, "matched_data": "1184", "matched_data_percent": 100.0, "matched_functions": 31, "matched_functions_percent": 96.875, "total_code": "6024", "total_data": "1184", "total_functions": 32, "total_units": 1}
POOL IDENTICAL up to 28 (mine=28 base=28)
Instruction-exact 31/32.
- `create__Q33ipl8keyboard7ManagerFPQ33ipl4nand4FilePQ23EGG4Heap` 94.00944%; instructions 318/318, diffs 210, address-instruction diffs 61. Target objects: __vt__Q49textinput6extend4memo7Manager, jumptable_81638D20, lbl_816961F8, mspAllocator__Q34nw4r3lyt6Layout, sZiSysLangTable__Q23ipl8keyboard, smArg__Q23ipl6System. Large objects: sZiSysLangTable__Q23ipl8keyboard 0x58.
### src/system/odh
{"fuzzy_match_percent": 99.55462, "matched_code": "12876", "matched_code_percent": 87.68728, "matched_data": "6360", "matched_data_percent": 100.0, "matched_functions": 26, "matched_functions_percent": 92.85714, "total_code": "14684", "total_data": "6360", "total_functions": 28, "total_units": 1}
POOL IDENTICAL up to 10 (mine=10 base=10)
Instruction-exact 26/28.
- `LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli` 98.08219%; instructions 146/146, diffs 12, address-instruction diffs 2. Target objects: lbl_816945A0, lbl_816945A4, lbl_816945A8, lbl_816945AC, lbl_816945B0, lbl_816945B4, lbl_816945B8, lbl_816945C0. Large objects: none.
- `huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl` 95.57189%; instructions 306/306, diffs 171, address-instruction diffs 21. Target objects: none. Large objects: none.
### src/utility/iplESMisc
{"fuzzy_match_percent": 99.8625, "matched_code": "9404", "matched_code_percent": 83.96429, "matched_data": "4416", "matched_data_percent": 100.0, "matched_functions": 30, "matched_functions_percent": 96.77419, "total_code": "11200", "total_data": "4416", "total_functions": 31, "total_units": 1}
POOL IDENTICAL up to 114 (mine=114 base=114)
Instruction-exact 30/31.
- `DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap` 99.14254%; instructions 449/449, diffs 74, address-instruction diffs 3. Target objects: @17577. Large objects: none.
### src/iplwww/www_wiisetting
{"fuzzy_match_percent": 99.94495, "matched_code": "3740", "matched_code_percent": 60.556995, "matched_data": "3856", "matched_data_percent": 100.0, "matched_functions": 20, "matched_functions_percent": 95.2381, "total_code": "6176", "total_data": "3856", "total_functions": 21, "total_units": 1}
POOL IDENTICAL up to 72 (mine=72 base=72)
Instruction-exact 20/21.
- `Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue` 99.86043%; instructions 609/609, diffs 14, address-instruction diffs 4. Target objects: funcResult__Q23www10wiisetting, jumptable_816441AC, jumptable_816442CC, lbl_8160F0F0, lbl_816440A0, lbl_81644834, lbl_816946B8, lbl_816946C0, lbl_8169631C, lbl_8169631D, opera_callbacks__Q23www10wiisetting, pString__Q23www10wiisetting, sWiiData__Q23www10wiisetting, saveData__Q23www10wiisetting, setupFlag__Q23www10wiisetting, wiiFlag__Q23www10wiisetting, wiiOSReport__Q23www10wiisettingFP14WWWJSPluginObjP14WWWJSPluginObjiP16WWWJSPluginValueP16WWWJSPluginValue, wiiWriteBack__Q23www10wiisettingFP14WWWJSPluginObjP14WWWJSPluginObjiP16WWWJSPluginValueP16WWWJSPluginValue, writeBackID__Q23www10wiisetting. Large objects: jumptable_816441AC 0x120, jumptable_816442CC 0x64, lbl_8160F0F0 0x164, lbl_81644834 0x64, sWiiData__Q23www10wiisetting 0x48, wiiOSReport__Q23www10wiisettingFP14WWWJSPluginObjP14WWWJSPluginObjiP16WWWJSPluginValueP16WWWJSPluginValue 0x5c, wiiWriteBack__Q23www10wiisettingFP14WWWJSPluginObjP14WWWJSPluginObjiP16WWWJSPluginValueP16WWWJSPluginValue 0x344.
### src/BS2/BS2Mach
{"fuzzy_match_percent": 99.169846, "matched_code": "5112", "matched_code_percent": 30.106009, "matched_data": "158528", "matched_data_percent": 100.0, "matched_functions": 25, "matched_functions_percent": 86.206894, "total_code": "16980", "total_data": "158528", "total_functions": 29, "total_units": 1}
POOL IDENTICAL up to 91 (mine=91 base=91)
Instruction-exact 25/29.
- `BS2StartGame` 98.72774%; instructions 393/393, diffs 10, address-instruction diffs 6. Target objects: BS2NANDCallback, Block, CacheFailed, DiskID, DvdTransferred, GamePartition, LoaderClose, LowReadResult, NandPending, RequiredIosHigh, RequiredIosLow, StartingGame, TicketViews, callback, lbl_81645DA8. Large objects: BS2NANDCallback 0x64.
- `BS2StartGCGame` 97.82895%; instructions 228/228, diffs 9, address-instruction diffs 5. Target objects: BS2NANDCallback, BS2VideoMode, Block, CacheFailed, NandPending, StartingGame, TicketViews, lbl_81645DA8, lbl_81696584. Large objects: BS2NANDCallback 0x64.
- `CheckBS2CommandStatus` 99.50739%; instructions 406/406, diffs 2, address-instruction diffs 0. Target objects: BS2BootCaching, BS2BootFromCache, BS2NANDCallback, BannerBuffer, BannerLength, Block, CacheCommandComplete, CacheLength, CacheSeekComplete, DataToc, LoaderAddress, LoaderLength, NandPending, State, jumptable_81646338, lbl_81645DA8. Large objects: BS2NANDCallback 0x64, jumptable_81646338 0xb8.
- `BS2Tick` 98.799484%; instructions 1940/1940, diffs 71, address-instruction diffs 15. Target objects: AbortFlag, Allocator, AudioBufferUnconfigured, BS2BootCaching, BS2BootFromCache, BS2DVDCallback, BS2DriveReset, BS2NANDCallback, BS2NoDisk, BS2Report, BS2WaitSpinup, BannerAllocation, BannerAvailable, BannerBuffer, BannerLength, Block, CoverOpenTimeHigh, CoverOpenTimeLow, CoverPollTime, CurrentTmd, DataToc, DriveWasReset, DvdProgress, DvdReadPending, DvdTransferLength, DvdTransferred, FatalErrorFlag, GamePartition, GameToc, LoaderAddress, LoaderClose, LoaderInit, LoaderLength, LoaderMain, LoaderOffset, LoadingTitle, NandPending, OSReport, PartitionCursor, PartitionOpen, RegionValid, RequiredIosHigh, RequiredIosLow, ResetTime, RestartRequested, RetryErrorFlag, SpinupDeadline, StartingGame, State, TitleCode, TitleTicketView, UpdateErrorFlag, UpdatePartition, __DVDLayoutFormat, jumptable_816467F4, jumptable_81646850, lbl_81645DA8, lbl_8169658B, lbl_81696590, lbl_81696594. Large objects: BS2DVDCallback 0x144, BS2NANDCallback 0x64, BS2Report 0x50, jumptable_816467F4 0x5c, jumptable_81646850 0x124.
### src/BS2/BS2Update
{"fuzzy_match_percent": 95.340576, "matched_code": "400", "matched_code_percent": 9.871669, "matched_data": "10488", "matched_data_percent": 100.0, "matched_functions": 9, "matched_functions_percent": 90.0, "total_code": "4052", "total_data": "10488", "total_functions": 10, "total_units": 1}
POOL IDENTICAL up to 55 (mine=55 base=55)
Instruction-exact 9/10.
- `UpdateThread` 94.83023%; instructions 911/913, diffs 337, address-instruction diffs 163. Target objects: CancelUpdate, ContainsSeatTitles, CurrentEntry, EntriesCount, Flags0, RebootRequired, StartUpdate, State, UpdateImportResult, UpdateImportState, UpdateProgress, jumptable_81646E78, lbl_81646978, lbl_81696598, lbl_8169659A, lbl_8169659E, lbl_816965A5, pEntries, pFlags, rc. Large objects: Flags0 0x800, lbl_81646978 0x500.
### src/scene/address/iplAddress
{"fuzzy_match_percent": 99.923294, "matched_code": "22016", "matched_code_percent": 91.77922, "matched_data": "1964", "matched_data_percent": 100.0, "matched_functions": 99, "matched_functions_percent": 98.019806, "total_code": "23988", "total_data": "1964", "total_functions": 101, "total_units": 1}
POOL IDENTICAL up to 81 (mine=81 base=81)
Instruction-exact 98/101.
- `start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface` 99.84305%; instructions 223/223, diffs 7, address-instruction diffs 1. Target objects: @17080, lbl_816947D8, sSystem__Q23ipl3snd, smArg__Q23ipl6System. Large objects: none.
- `onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface` 98.42593%; instructions 270/270, diffs 81, address-instruction diffs 12. Target objects: @17080, sSystem__Q23ipl3snd, smArg__Q23ipl6System, smButtonName__Q33ipl5scene6Button. Large objects: none.
### src/scene/address/iplAddressEdit
{"fuzzy_match_percent": 99.55282, "matched_code": "23344", "matched_code_percent": 86.10209, "matched_data": "2560", "matched_data_percent": 100.0, "matched_functions": 91, "matched_functions_percent": 96.80851, "total_code": "27112", "total_data": "2560", "total_functions": 94, "total_units": 1}
POOL IDENTICAL up to 57 (mine=57 base=57)
Instruction-exact 91/94.
- `create__Q33ipl5scene11AddressEditFv` 97.5561%; instructions 818/820, diffs 331, address-instruction diffs 155. Target objects: @16959, __vt__Q33ipl5scene16AddressEditEvent, __vt__Q33ipl5scene17AddressInputEvent, lbl_816947F0, lbl_816947F4, lbl_816947F8, lbl_816965E4, lbl_816965E8, lbl_816965EA, nigaoe_create_callback_edit__Q33ipl5scene11AddressEditFPQ33ipl6nigaoe6ObjectPv, sFriendInfo__Q23ipl5scene, sInputPaneName, smArg__Q23ipl6System. Large objects: nigaoe_create_callback_edit__Q33ipl5scene11AddressEditFPQ33ipl6nigaoe6ObjectPv 0xb0, sFriendInfo__Q23ipl5scene 0x140.
- `get_friendinfo__Q33ipl5scene11AddressEditFv` 88.03571%; instructions 82/84, diffs 68, address-instruction diffs 37. Target objects: @24215, @24231, sFriendInfo__Q23ipl5scene. Large objects: sFriendInfo__Q23ipl5scene 0x140.
- `update_friendinfo__Q33ipl5scene11AddressEditFv` 99.42105%; instructions 38/38, diffs 2, address-instruction diffs 2. Target objects: sFriendInfo__Q23ipl5scene, smArg__Q23ipl6System. Large objects: sFriendInfo__Q23ipl5scene 0x140.
### src/scene/memoryCard/iplMemoryCardManager
{"complete_data_percent": 100.0, "fuzzy_match_percent": 97.90215, "matched_code": "2932", "matched_code_percent": 54.336548, "matched_data_percent": 100.0, "matched_functions": 19, "matched_functions_percent": 73.07692, "total_code": "5396", "total_functions": 26, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 19/26.
- `isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl` 99.830505%; instructions 118/118, diffs 2, address-instruction diffs 0. Target objects: none. Large objects: none.
- `isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl` 99.830505%; instructions 118/118, diffs 2, address-instruction diffs 0. Target objects: none. Large objects: none.
- `isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs` 92.30769%; instructions 26/26, diffs 8, address-instruction diffs 2. Target objects: none. Large objects: none.
- `_create_icon__Q33ipl5scene17MemoryCardManagerFUcsl` 87.55%; instructions 100/100, diffs 37, address-instruction diffs 5. Target objects: none. Large objects: none.
- `getComment__Q33ipl5scene17MemoryCardManagerFUcsi` 98.94309%; instructions 123/123, diffs 20, address-instruction diffs 1. Target objects: none. Large objects: none.
- `create_banner__Q33ipl5scene17MemoryCardManagerFUcs` 90.42453%; instructions 106/106, diffs 70, address-instruction diffs 11. Target objects: none. Large objects: none.
- `getBlocks__Q33ipl5scene17MemoryCardManagerFUcs` 92.0%; instructions 25/25, diffs 9, address-instruction diffs 2. Target objects: none. Large objects: none.
### src/scene/cardSequence/iplCardSequence
{"fuzzy_match_percent": 97.225334, "matched_code": "4168", "matched_code_percent": 42.30613, "matched_data": "1496", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 90.0, "total_code": "9852", "total_data": "1496", "total_functions": 30, "total_units": 1}
POOL IDENTICAL up to 43 (mine=43 base=43)
Instruction-exact 27/30.
- `cardThreadMain` 97.9402%; instructions 301/301, diffs 78, address-instruction diffs 8. Target objects: jumptable_81652F68, jumptable_8165321C, lbl_81696CF8, sThread__Q23ipl10memorycard. Large objects: jumptable_81652F68 0x70.
- `loadCardFileIcons` 90.37305%; instructions 508/512, diffs 436, address-instruction diffs 107. Target objects: sThread__Q23ipl10memorycard. Large objects: none.
- `runCardMoveOrCopy` 97.88651%; instructions 608/608, diffs 176, address-instruction diffs 26. Target objects: clearCardWritePending, jumptable_81652F68, sThread__Q23ipl10memorycard. Large objects: jumptable_81652F68 0x70.
### src/scene/sdChannelSelect/iplSDChannelSelect
{"fuzzy_match_percent": 99.77309, "matched_code": "30344", "matched_code_percent": 89.70084, "matched_data": "2960", "matched_data_percent": 100.0, "matched_functions": 123, "matched_functions_percent": 95.34883, "total_code": "33828", "total_data": "2960", "total_functions": 129, "total_units": 1}
POOL IDENTICAL up to 101 (mine=101 base=101)
Instruction-exact 123/129.
- `create__Q33ipl5scene15SDChannelSelectFv` 97.73972%; instructions 145/146, diffs 39, address-instruction diffs 15. Target objects: @24633, @24634, smArg__Q23ipl6System. Large objects: none.
- `collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` 97.81188%; instructions 101/101, diffs 4, address-instruction diffs 2. Target objects: smArg__Q23ipl6System. Large objects: none.
- `collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` 97.833336%; instructions 102/102, diffs 4, address-instruction diffs 2. Target objects: smArg__Q23ipl6System. Large objects: none.
- `collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` 98.007935%; instructions 126/126, diffs 7, address-instruction diffs 2. Target objects: lbl_816105D8, smArg__Q23ipl6System. Large objects: none.
- `collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl` 97.55125%; instructions 361/361, diffs 16, address-instruction diffs 8. Target objects: smArg__Q23ipl6System. Large objects: none.
- `flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv` 99.65714%; instructions 35/35, diffs 2, address-instruction diffs 0. Target objects: smArg__Q23ipl6System. Large objects: none.
### src/scene/sdChannelTitle/iplSDChannelTitle
{"fuzzy_match_percent": 99.98883, "matched_code": "18476", "matched_code_percent": 99.20533, "matched_data": "1976", "matched_data_percent": 100.0, "matched_functions": 68, "matched_functions_percent": 98.55073, "total_code": "18624", "total_data": "1976", "total_functions": 69, "total_units": 1}
POOL IDENTICAL up to 55 (mine=55 base=55)
Instruction-exact 68/69.
- `iplSDChannelTitle_flushSaveBeforeExit` 98.5946%; instructions 37/37, diffs 6, address-instruction diffs 2. Target objects: smArg__Q23ipl6System. Large objects: none.
### src/scene/sdChannelMemory/iplSDMemory
{"fuzzy_match_percent": 99.26294, "matched_code": "14812", "matched_code_percent": 70.96589, "matched_data": "3344", "matched_data_percent": 100.0, "matched_functions": 64, "matched_functions_percent": 96.969696, "total_code": "20872", "total_data": "3344", "total_functions": 66, "total_units": 1}
POOL IDENTICAL up to 90 (mine=90 base=90)
Instruction-exact 63/66.
- `create__Q33ipl5scene8SDMemoryFPQ23EGG4HeapPQ33ipl4nand10LayoutFilePQ33ipl5scene15SDChannelSelect` 99.15884%; instructions 1064/1064, diffs 175, address-instruction diffs 111. Target objects: lbl_81655CA0, lbl_8165680C, lbl_81656824, lbl_8165683C, lbl_81696F7C, lbl_81696F80, lbl_81696F88, lbl_81696F8F, lbl_81696F96, lbl_81696F9D, lbl_81696FA4, lbl_81696FAB, lbl_81696FB3, lbl_81696FBB, smArg__Q23ipl6System. Large objects: lbl_8165683C 0xac.
- `drawTransferTitles__Q33ipl5scene8SDMemoryFv` 93.456764%; instructions 438/451, diffs 371, address-instruction diffs 96. Target objects: lbl_81655CA0, lbl_81694BD0, lbl_81694BD8, lbl_81694BF0, lbl_81694BF4, lbl_81694BF8, lbl_81694BFC, lbl_81696FC2, lbl_81696FC9, lbl_81696FD6, lbl_81696FDA, lbl_81696FE1, smArg__Q23ipl6System. Large objects: none.
### src/scene/setting/iplSetting
{"fuzzy_match_percent": 99.97709, "matched_code": "36796", "matched_code_percent": 97.128075, "matched_data": "5696", "matched_data_percent": 100.0, "matched_functions": 111, "matched_functions_percent": 99.10714, "total_code": "37884", "total_data": "5696", "total_functions": 112, "total_units": 1}
POOL IDENTICAL up to 108 (mine=108 base=108)
Instruction-exact 110/112.
- `scanAP__Q33ipl5scene7SettingFv` 99.20221%; instructions 272/272, diffs 4, address-instruction diffs 2. Target objects: @27404, @27405, @27406, @27407, @27409. Large objects: none.
### src/keyboard/tiCellPhone
{"fuzzy_match_percent": 99.992645, "matched_code": "17696", "matched_code_percent": 92.999794, "matched_data": "3860", "matched_data_percent": 100.0, "matched_functions": 85, "matched_functions_percent": 98.83721, "total_code": "19028", "total_data": "3860", "total_functions": 86, "total_units": 1}
POOL IDENTICAL up to 76 (mine=76 base=76)
Instruction-exact 85/86.
- `create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator` 99.8949%; instructions 333/333, diffs 7, address-instruction diffs 0. Target objects: __vt__Q39textinput11nw4rmanager7AnmPane, __vt__Q49textinput8keyboard13cellphonetype12EventHandler, __vt__Q49textinput8keyboard13cellphonetype16CellPhoneAnmPane, __vt__Q49textinput8keyboard13cellphonetype23CellPhoneControlAnmPane, csPaneNameToControlKey__Q39textinput8keyboard13cellphonetype, csszPredictLanguage__Q39textinput8keyboard13cellphonetype. Large objects: csPaneNameToControlKey__Q39textinput8keyboard13cellphonetype 0x120.
### src/keyboard/tiInputForm
{"fuzzy_match_percent": 99.71999, "matched_code": "47928", "matched_code_percent": 94.614655, "matched_data": "3772", "matched_data_percent": 100.0, "matched_functions": 219, "matched_functions_percent": 99.095024, "total_code": "50656", "total_data": "3772", "total_functions": 221, "total_units": 1}
POOL IDENTICAL up to 20 (mine=20 base=20)
Instruction-exact 217/221.
- `calcCursorPos__Q39textinput9inputform4BaseFff` 93.05215%; instructions 326/326, diffs 43, address-instruction diffs 0. Target objects: mbHyphen__Q29textinput9inputform, scInputFormHalfF, scInputFormOneF, scInputFormZeroF. Large objects: none.
- `create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer` 96.40169%; instructions 356/356, diffs 153, address-instruction diffs 28. Target objects: __vt__Q39textinput11nw4rmanager7AnmPane, __vt__Q39textinput9inputform12EventHandler, __vt__Q39textinput9inputform19NormalButtonAnmPane, csCharColor__Q29textinput9inputform, lbl_816973B4, lbl_816973B8, scP_txtScrll_UP. Large objects: none.
### src/keyboard/tiCandidateBox
{"fuzzy_match_percent": 99.71067, "matched_code": "21728", "matched_code_percent": 90.53333, "matched_data": "4652", "matched_data_percent": 100.0, "matched_functions": 110, "matched_functions_percent": 98.21429, "total_code": "24000", "total_data": "4652", "total_functions": 112, "total_units": 1}
POOL IDENTICAL up to 57 (mine=57 base=57)
Instruction-exact 109/112.
- `create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator` 95.99148%; instructions 356/352, diffs 278, address-instruction diffs 57. Target objects: __vt__Q39textinput8tistring9Decolated, lbl_81694D90, scB_OnBtn, scEmptyWChars, scP_OnBtn, scT_prdc_Text_00. Large objects: none.
- `createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator` 98.49537%; instructions 216/216, diffs 64, address-instruction diffs 5. Target objects: __vt__Q39textinput11nw4rmanager7AnmPane, __vt__Q39textinput12candidatebox12OnOffAnmPane, __vt__Q39textinput12candidatebox13PredictWindow, __vt__Q39textinput12candidatebox20CandidateTextAnmPane, __vt__Q39textinput12candidatebox22CandidateScrollAnmPane, scCandidatePaneData. Large objects: scCandidatePaneData 0x68c.
### src/keyboard/tiSignWindow
{"fuzzy_match_percent": 99.9833, "matched_code": "6300", "matched_code_percent": 87.69488, "matched_data": "3468", "matched_data_percent": 100.0, "matched_functions": 55, "matched_functions_percent": 98.21429, "total_code": "7184", "total_data": "3468", "total_functions": 56, "total_units": 1}
POOL IDENTICAL up to 30 (mine=30 base=30)
Instruction-exact 55/56.
- `create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator` 99.86425%; instructions 221/221, diffs 6, address-instruction diffs 0. Target objects: __vt__Q39textinput11nw4rmanager7AnmPane, __vt__Q49textinput8keyboard10signwindow12EventHandler, __vt__Q49textinput8keyboard10signwindow23CellPhoneSignAllAnmPane, __vt__Q49textinput8keyboard10signwindow23CellPhoneSignButtonPane, __vt__Q49textinput8keyboard10signwindow26CellPhoneSignScrollAnmPane, csLanguageDependencyData__Q39textinput8keyboard10signwindow, csPaneToAnimationInSign__Q39textinput8keyboard10signwindow. Large objects: csLanguageDependencyData__Q39textinput8keyboard10signwindow 0x50, csPaneToAnimationInSign__Q39textinput8keyboard10signwindow 0x640.
### src/keyboard/tiString
{"fuzzy_match_percent": 99.028595, "matched_code": "4632", "matched_code_percent": 89.48995, "matched_data": "288", "matched_data_percent": 100.0, "matched_functions": 41, "matched_functions_percent": 97.61904, "total_code": "5176", "total_data": "288", "total_functions": 42, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 41/42.
- `inputChar__Q39textinput8tistring9DecolatedFw` 90.757355%; instructions 126/136, diffs 73, address-instruction diffs 12. Target objects: none. Large objects: none.
### src/keyboard/tiZiString
{"fuzzy_match_percent": 98.32413, "matched_code": "3136", "matched_code_percent": 56.97674, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 26, "matched_functions_percent": 89.655174, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 26/29.
- `clearCandidates__Q39textinput8tistring6WithZiFv` 93.28395%; instructions 84/81, diffs 76, address-instruction diffs 19. Target objects: ElementBuffer__Q39textinput8tistring6WithZi. Large objects: ElementBuffer__Q39textinput8tistring6WithZi 0x200.
- `update__Q39textinput8tistring6WithZiFv` 97.4574%; instructions 448/446, diffs 427, address-instruction diffs 98. Target objects: ElementBuffer__Q39textinput8tistring6WithZi. Large objects: ElementBuffer__Q39textinput8tistring6WithZi 0x200.
- `setElementBuffer__Q39textinput8tistring6WithZiFv` 90.33846%; instructions 65/65, diffs 18, address-instruction diffs 9. Target objects: ElementBuffer__Q39textinput8tistring6WithZi. Large objects: ElementBuffer__Q39textinput8tistring6WithZi 0x200.
### src/channelScript/CHANSVm
{"fuzzy_match_percent": 99.45986, "matched_code": "39908", "matched_code_percent": 74.505264, "matched_data": "6904", "matched_data_percent": 100.0, "matched_functions": 224, "matched_functions_percent": 96.13734, "total_code": "53564", "total_data": "6904", "total_functions": 233, "total_units": 1}
POOL IDENTICAL up to 125 (mine=125 base=125)
Instruction-exact 224/233.
- `CHANSVmConvertToFloatFromStr` 97.59036%; instructions 83/83, diffs 2, address-instruction diffs 0. Target objects: lbl_81694F08, scFloatConstantList. Large objects: none.
- `VmDateDtor` 94.96703%; instructions 91/91, diffs 7, address-instruction diffs 4. Target objects: scUndefinedUtf16. Large objects: none.
- `VmStringSplit` 98.04054%; instructions 222/222, diffs 66, address-instruction diffs 4. Target objects: none. Large objects: none.
- `CHANSVmFormatString` 99.84919%; instructions 431/431, diffs 13, address-instruction diffs 2. Target objects: jumptable_81669C54, jumptable_81669D34. Large objects: jumptable_81669C54 0xe0, jumptable_81669D34 0x84.
- `VmBlobGetHexString` 98.71951%; instructions 82/82, diffs 14, address-instruction diffs 2. Target objects: scHexDigitsPtr. Large objects: none.
- `VmBlobPackCommon` 97.949104%; instructions 668/668, diffs 244, address-instruction diffs 22. Target objects: lbl_81694FA7. Large objects: none.
- `VmBlobUnpack` 98.452614%; instructions 517/517, diffs 141, address-instruction diffs 12. Target objects: scHexDigitsPtr2. Large objects: none.
- `VmWinEmuWrite` 99.62687%; instructions 67/67, diffs 5, address-instruction diffs 0. Target objects: lbl_8166A07E, lbl_81697583. Large objects: none.
- `CHANSVmStep` 96.98723%; instructions 1253/1253, diffs 276, address-instruction diffs 39. Target objects: CHANSVmConstStringObjectUndefined, CHANSVmDebugVerboseMode, VmARShift, VmAdd, VmBitAnd, VmBitOr, VmBitXor, VmCmpEq, VmCmpGeq, VmCmpGt, VmCmpLeq, VmCmpLt, VmCmpNeq, VmDiv, VmMod, VmMul, VmSub, VmULShift, jumptable_8166A0CC, jumptable_8166A0F4, jumptable_8166A1B0, lbl_8166A0B0, lbl_81694F28, lbl_81694FB8, lbl_81697591, scVmGetResultType. Large objects: VmARShift 0x98, VmAdd 0x158, VmBitAnd 0x54, VmBitOr 0x54, VmBitXor 0x54, VmCmpEq 0x1ac, VmCmpLeq 0x124, VmCmpLt 0x11c, VmCmpNeq 0x54, VmDiv 0xac, VmMod 0xa8, VmMul 0x8c, VmSub 0x7c, VmULShift 0x94, jumptable_8166A0F4 0xbc, jumptable_8166A1B0 0x100.
### libs/RevoEX/src/cdb/CDBRecord
{"fuzzy_match_percent": 99.86998, "matched_code": "5940", "matched_code_percent": 83.94573, "matched_data": "2640", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "7076", "total_data": "2640", "total_functions": 29, "total_units": 1}
POOL IDENTICAL up to 47 (mine=47 base=47)
Instruction-exact 28/29.
- `CDBRecordEncrypt` 99.19014%; instructions 284/284, diffs 44, address-instruction diffs 10. Target objects: lbl_8166BBC0. Large objects: none.
### libs/RevoEX/src/net/md5
{"fuzzy_match_percent": 97.01755, "matched_code": "600", "matched_code_percent": 32.894737, "matched_data": "456", "matched_data_percent": 100.0, "matched_functions": 3, "matched_functions_percent": 75.0, "total_code": "1824", "total_data": "456", "total_functions": 4, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 3/4.
- `ProcessBlock` 95.55556%; instructions 306/306, diffs 197, address-instruction diffs 12. Target objects: k$2351, t$2350. Large objects: k$2351 0xc0, t$2350 0x100.
### libs/RevoEX/src/net/aes
{"fuzzy_match_percent": 84.47093, "matched_code": "1116", "matched_code_percent": 40.552326, "matched_data": "2800", "matched_data_percent": 100.0, "matched_functions": 7, "matched_functions_percent": 77.77778, "total_code": "2752", "total_data": "2800", "total_functions": 9, "total_units": 1}
POOL IDENTICAL up to 4 (mine=4 base=4)
Instruction-exact 7/9.
- `AESiEncryptBlock` 65.81013%; instructions 158/158, diffs 137, address-instruction diffs 6. Target objects: AESiEncryptTable, AESiSubShiftTable. Large objects: AESiEncryptTable 0x400, AESiSubShiftTable 0x100.
- `AESiDecryptBlock` 78.95618%; instructions 251/251, diffs 215, address-instruction diffs 9. Target objects: AESiDecryptTable, AESiInvSubShiftTable. Large objects: AESiDecryptTable 0x400, AESiInvSubShiftTable 0x100.
### libs/RevoEX/src/nhttp/NHTTP_bgnend
{"complete_code": "880", "complete_code_percent": 100.0, "complete_data": "136", "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "880", "matched_code_percent": 100.0, "matched_data": "136", "matched_data_percent": 100.0, "matched_functions": 9, "matched_functions_percent": 100.0, "total_code": "880", "total_data": "136", "total_functions": 9, "total_units": 1}
POOL IDENTICAL up to 4 (mine=4 base=4)
Instruction-exact 9/9.
### libs/RevoEX/src/nhttp/NHTTP_control
{"complete_code": "420", "complete_code_percent": 100.0, "complete_data": "32", "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "420", "matched_code_percent": 100.0, "matched_data": "32", "matched_data_percent": 100.0, "matched_functions": 3, "matched_functions_percent": 100.0, "total_code": "420", "total_data": "32", "total_functions": 3, "total_units": 1}
POOL IDENTICAL up to 1 (mine=1 base=1)
Instruction-exact 3/3.
### libs/RevoEX/src/nhttp/NHTTP_list
{"complete_code": "592", "complete_code_percent": 100.0, "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "592", "matched_code_percent": 100.0, "matched_data_percent": 100.0, "matched_functions": 5, "matched_functions_percent": 100.0, "total_code": "592", "total_functions": 5, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 5/5.
### libs/RevoEX/src/nhttp/NHTTP_os_RVL
{"complete_code": "548", "complete_code_percent": 100.0, "complete_data": "72", "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "548", "matched_code_percent": 100.0, "matched_data": "72", "matched_data_percent": 100.0, "matched_functions": 11, "matched_functions_percent": 100.0, "total_code": "548", "total_data": "72", "total_functions": 11, "total_units": 1}
POOL IDENTICAL up to 3 (mine=3 base=3)
Instruction-exact 11/11.
### libs/RevoEX/src/nhttp/NHTTP_recvbuf
{"complete_data_percent": 100.0, "fuzzy_match_percent": 99.21513, "matched_code": "1196", "matched_code_percent": 70.68558, "matched_data_percent": 100.0, "matched_functions": 6, "matched_functions_percent": 85.71429, "total_code": "1692", "total_functions": 7, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 6/7.
- `NHTTPi_compareTokenN_HdrRecvBuf` 97.32258%; instructions 124/124, diffs 5, address-instruction diffs 2. Target objects: none. Large objects: none.
### libs/RevoEX/src/nhttp/NHTTP_request
{"complete_code": "2512", "complete_code_percent": 100.0, "complete_data": "48", "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "2512", "matched_code_percent": 100.0, "matched_data": "48", "matched_data_percent": 100.0, "matched_functions": 7, "matched_functions_percent": 100.0, "total_code": "2512", "total_data": "48", "total_functions": 7, "total_units": 1}
POOL IDENTICAL up to 1 (mine=1 base=1)
Instruction-exact 7/7.
### libs/RevoEX/src/nhttp/NHTTP_response
{"complete_code": "1044", "complete_code_percent": 100.0, "complete_data": "16", "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "1044", "matched_code_percent": 100.0, "matched_data": "16", "matched_data_percent": 100.0, "matched_functions": 4, "matched_functions_percent": 100.0, "total_code": "1044", "total_data": "16", "total_functions": 4, "total_units": 1}
POOL IDENTICAL up to 1 (mine=1 base=1)
Instruction-exact 4/4.
### libs/RevoEX/src/nhttp/NHTTP_socket_RVL
{"complete_code": "2140", "complete_code_percent": 100.0, "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "2140", "matched_code_percent": 100.0, "matched_data_percent": 100.0, "matched_functions": 10, "matched_functions_percent": 100.0, "total_code": "2140", "total_functions": 10, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 10/10.
### libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL
{"fuzzy_match_percent": 99.9573, "matched_code": "1864", "matched_code_percent": 82.91815, "matched_data": "112", "matched_data_percent": 100.0, "matched_functions": 12, "matched_functions_percent": 85.71429, "total_code": "2248", "total_data": "112", "total_functions": 14, "total_units": 1}
POOL IDENTICAL up to 1 (mine=1 base=1)
Instruction-exact 12/14.
- `NHTTPi_strnicmp` 99.76471%; instructions 51/51, diffs 2, address-instruction diffs 0. Target objects: none. Large objects: none.
- `NHTTPi_compareToken` 99.73333%; instructions 45/45, diffs 2, address-instruction diffs 0. Target objects: none. Large objects: none.
### libs/RevoEX/src/nhttp/NHTTP_thread
{"complete_code": "11292", "complete_code_percent": 100.0, "complete_data": "504", "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "11292", "matched_code_percent": 100.0, "matched_data": "504", "matched_data_percent": 100.0, "matched_functions": 26, "matched_functions_percent": 100.0, "total_code": "11292", "total_data": "504", "total_functions": 26, "total_units": 1}
POOL IDENTICAL up to 8 (mine=8 base=8)
Instruction-exact 26/26.
### libs/RevoEX/src/nwc24/NWC24Download
{"fuzzy_match_percent": 99.950386, "matched_code": "11920", "matched_code_percent": 95.390526, "matched_data": "80", "matched_data_percent": 100.0, "matched_functions": 29, "matched_functions_percent": 96.666664, "total_code": "12496", "total_data": "80", "total_functions": 30, "total_units": 1}
POOL IDENTICAL up to 3 (mine=3 base=3)
Instruction-exact 29/30.
- `NWC24InitDlTask` 98.923615%; instructions 144/144, diffs 31, address-instruction diffs 2. Target objects: NWC24WorkP, lbl_8166E1FC. Large objects: none.
### libs/RevoEX/src/so/SOBasic
{"fuzzy_match_percent": 99.79452, "matched_code": "3836", "matched_code_percent": 93.83562, "matched_data": "144", "matched_data_percent": 100.0, "matched_functions": 21, "matched_functions_percent": 95.454544, "total_code": "4088", "total_data": "144", "total_functions": 22, "total_units": 1}
POOL IDENTICAL up to 1 (mine=1 base=1)
Instruction-exact 21/22.
- `SOGetSockName` 96.666664%; instructions 63/63, diffs 3, address-instruction diffs 0. Target objects: none. Large objects: none.
### libs/RevoEX/src/vf/dskmng/pdm_partition
{"complete_code": "6108", "complete_code_percent": 100.0, "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "6108", "matched_code_percent": 100.0, "matched_data_percent": 100.0, "matched_functions": 19, "matched_functions_percent": 100.0, "total_code": "6108", "total_functions": 19, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 19/19.
### libs/RevoEX/src/vf/develop/sd_drv
{"complete_code": "3608", "complete_code_percent": 100.0, "complete_data": "992", "complete_data_percent": 100.0, "complete_units": 1, "fuzzy_match_percent": 100.0, "matched_code": "3608", "matched_code_percent": 100.0, "matched_data": "992", "matched_data_percent": 100.0, "matched_functions": 16, "matched_functions_percent": 100.0, "total_code": "3608", "total_data": "992", "total_functions": 16, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 16/16.
### libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var
{"complete_data_percent": 100.0, "fuzzy_match_percent": 90.488045, "matched_data_percent": 100.0, "total_code": "2844", "total_functions": 2, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 0/2.
- `TMCJPEGDEC_IdctBlock_Lumi` 86.178986%; instructions 257/257, diffs 185, address-instruction diffs 11. Target objects: none. Large objects: none.
- `TMCJPEGDEC_IdctBlock_Col` 92.927315%; instructions 454/454, diffs 290, address-instruction diffs 5. Target objects: none. Large objects: none.
### libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse
{"complete_data_percent": 100.0, "fuzzy_match_percent": 98.98035, "matched_code": "1348", "matched_code_percent": 26.49371, "matched_data_percent": 100.0, "matched_functions": 3, "matched_functions_percent": 50.0, "total_code": "5088", "total_functions": 6, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 3/6.
- `TMCJPEGDEC_exif_parse` 99.43396%; instructions 212/212, diffs 21, address-instruction diffs 2. Target objects: none. Large objects: none.
- `TMCJPEGDEC_IFD0_tag_parse` 99.49065%; instructions 480/481, diffs 457, address-instruction diffs 40. Target objects: none. Large objects: none.
- `TMCJPEGDEC_IFD1_tag_parse` 96.14876%; instructions 239/242, diffs 226, address-instruction diffs 22. Target objects: none. Large objects: none.
### libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8
{"complete_data_percent": 100.0, "fuzzy_match_percent": 99.64535, "matched_code": "15164", "matched_code_percent": 95.08402, "matched_data_percent": 100.0, "matched_functions": 12, "matched_functions_percent": 92.30769, "total_code": "15948", "total_functions": 13, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 2/13.
- `TMCJPEGDEC_set_converterY8U8V8` 92.78571%; instructions 195/196, diffs 195, address-instruction diffs 58. Target objects: TMCJPEG_814EFEAC, TMCJPEG_814F043C, TMCJPEG_814F0A58, TMCJPEG_814F11C4, TMCJPEG_814F17E0, TMCJPEG_814F1F48, TMCJPEG_814F2570, TMCJPEG_814F2B50, TMCJPEG_814F3158, TMCJPEG_814F32E4, TMCJPEG_814F34A4, TMCJPEG_814F372C. Large objects: TMCJPEG_814EFEAC 0x590, TMCJPEG_814F043C 0x61c, TMCJPEG_814F0A58 0x76c, TMCJPEG_814F11C4 0x61c, TMCJPEG_814F17E0 0x768, TMCJPEG_814F1F48 0x628, TMCJPEG_814F2570 0x5e0, TMCJPEG_814F2B50 0x608, TMCJPEG_814F3158 0x18c, TMCJPEG_814F32E4 0x1c0, TMCJPEG_814F34A4 0x288, TMCJPEG_814F372C 0x2bc.
### libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565
{"complete_data_percent": 100.0, "fuzzy_match_percent": 96.95084, "matched_code": "2648", "matched_code_percent": 42.820183, "matched_data_percent": 100.0, "matched_functions": 7, "matched_functions_percent": 53.846157, "total_code": "6184", "total_functions": 13, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 7/13.
- `TMCJPEGDEC_set_converterRGB565` 93.91765%; instructions 169/170, diffs 169, address-instruction diffs 58. Target objects: TMCJPEGDEC_converterYUV211toRGB565, TMCJPEGDEC_converterYUV211toRGB565edge, TMCJPEGDEC_converterYUV400toRGB565, TMCJPEGDEC_converterYUV400toRGB565edge, TMCJPEGDEC_converterYUV411toRGB565, TMCJPEGDEC_converterYUV411toRGB565edge, TMCJPEGDEC_converterYUV420toRGB565, TMCJPEGDEC_converterYUV420toRGB565edge, TMCJPEGDEC_converterYUV422toRGB565, TMCJPEGDEC_converterYUV422toRGB565edge, TMCJPEGDEC_converterYUV444toRGB565, TMCJPEGDEC_converterYUV444toRGB565edge. Large objects: TMCJPEGDEC_converterYUV211toRGB565 0x188, TMCJPEGDEC_converterYUV211toRGB565edge 0x1b4, TMCJPEGDEC_converterYUV400toRGB565 0x118, TMCJPEGDEC_converterYUV400toRGB565edge 0x14c, TMCJPEGDEC_converterYUV411toRGB565 0x364, TMCJPEGDEC_converterYUV411toRGB565edge 0x1a8, TMCJPEGDEC_converterYUV420toRGB565 0x234, TMCJPEGDEC_converterYUV420toRGB565edge 0x1c8, TMCJPEGDEC_converterYUV422toRGB565 0x220, TMCJPEGDEC_converterYUV422toRGB565edge 0x1ac, TMCJPEGDEC_converterYUV444toRGB565 0x16c, TMCJPEGDEC_converterYUV444toRGB565edge 0x1a0.
- `TMCJPEGDEC_converterYUV411toRGB565` 91.17512%; instructions 217/217, diffs 141, address-instruction diffs 3. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV411toRGB565edge` 95.42453%; instructions 106/106, diffs 61, address-instruction diffs 7. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV422toRGB565` 97.132355%; instructions 136/136, diffs 52, address-instruction diffs 1. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV420toRGB565` 95.42553%; instructions 141/141, diffs 80, address-instruction diffs 2. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV420toRGB565edge` 97.850876%; instructions 114/114, diffs 35, address-instruction diffs 1. Target objects: none. Large objects: none.
### libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8
{"complete_data_percent": 100.0, "fuzzy_match_percent": 90.70224, "matched_code": "660", "matched_code_percent": 10.006064, "matched_data_percent": 100.0, "matched_functions": 2, "matched_functions_percent": 15.384616, "total_code": "6596", "total_functions": 13, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 2/13.
- `TMCJPEGDEC_set_converterRGBA8` 93.91765%; instructions 169/170, diffs 169, address-instruction diffs 58. Target objects: TMCJPEGDEC_converterYUV211toRGBA8, TMCJPEGDEC_converterYUV211toRGBA8edge, TMCJPEGDEC_converterYUV400toRGBA8, TMCJPEGDEC_converterYUV400toRGBA8edge, TMCJPEGDEC_converterYUV411toRGBA8, TMCJPEGDEC_converterYUV411toRGBA8edge, TMCJPEGDEC_converterYUV420toRGBA8, TMCJPEGDEC_converterYUV420toRGBA8edge, TMCJPEGDEC_converterYUV422toRGBA8, TMCJPEGDEC_converterYUV422toRGBA8edge, TMCJPEGDEC_converterYUV444toRGBA8, TMCJPEGDEC_converterYUV444toRGBA8edge. Large objects: TMCJPEGDEC_converterYUV211toRGBA8 0x1a0, TMCJPEGDEC_converterYUV211toRGBA8edge 0x1cc, TMCJPEGDEC_converterYUV400toRGBA8 0x130, TMCJPEGDEC_converterYUV400toRGBA8edge 0x164, TMCJPEGDEC_converterYUV411toRGBA8 0x3c8, TMCJPEGDEC_converterYUV411toRGBA8edge 0x1c0, TMCJPEGDEC_converterYUV420toRGBA8 0x264, TMCJPEGDEC_converterYUV420toRGBA8edge 0x1e0, TMCJPEGDEC_converterYUV422toRGBA8 0x250, TMCJPEGDEC_converterYUV422toRGBA8edge 0x1c4, TMCJPEGDEC_converterYUV444toRGBA8 0x184, TMCJPEGDEC_converterYUV444toRGBA8edge 0x1b8.
- `TMCJPEGDEC_converterYUV411toRGBA8` 82.70661%; instructions 242/242, diffs 153, address-instruction diffs 26. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV411toRGBA8edge` 94.28571%; instructions 112/112, diffs 51, address-instruction diffs 6. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV422toRGBA8` 88.195946%; instructions 148/148, diffs 80, address-instruction diffs 10. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV422toRGBA8edge` 92.0354%; instructions 113/113, diffs 51, address-instruction diffs 5. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV420toRGBA8` 90.973854%; instructions 153/153, diffs 76, address-instruction diffs 10. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV420toRGBA8edge` 87.5%; instructions 120/120, diffs 77, address-instruction diffs 12. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV211toRGBA8` 91.15385%; instructions 104/104, diffs 49, address-instruction diffs 5. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV211toRGBA8edge` 92.17391%; instructions 115/115, diffs 47, address-instruction diffs 5. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV444toRGBA8` 90.670105%; instructions 97/97, diffs 46, address-instruction diffs 5. Target objects: none. Large objects: none.
- `TMCJPEGDEC_converterYUV444toRGBA8edge` 88.90909%; instructions 110/110, diffs 61, address-instruction diffs 5. Target objects: none. Large objects: none.
### libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32
{"complete_data_percent": 100.0, "fuzzy_match_percent": 99.710144, "matched_data_percent": 100.0, "total_code": "1104", "total_functions": 1, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 0/1.
- `TMCJPEGDEC_decode_iquant` 99.710144%; instructions 276/276, diffs 13, address-instruction diffs 4. Target objects: TMCJPEGDEC_Zigzag_data, TMCJPEGDEC_Zigzag_loop. Large objects: none.
### libs/NW4R/src/lyt/lyt_window
{"fuzzy_match_percent": 99.75864, "matched_code": "9848", "matched_code_percent": 86.751236, "matched_data": "316", "matched_data_percent": 100.0, "matched_functions": 20, "matched_functions_percent": 95.2381, "total_code": "11352", "total_data": "316", "total_functions": 21, "total_units": 1}
POOL IDENTICAL up to 1 (mine=1 base=1)
Instruction-exact 20/21.
- `DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc` 98.17819%; instructions 376/376, diffs 119, address-instruction diffs 10. Target objects: flipInfos$7849, lbl_8169553C, lbl_81695540, lbl_81695548. Large objects: none.
### libs/RVL_SDK/src/kpad/KPAD
{"fuzzy_match_percent": 99.875916, "matched_code": "12316", "matched_code_percent": 94.33211, "matched_data": "8032", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "13056", "total_data": "8032", "total_functions": 29, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 28/29.
- `KPADInit` 97.810814%; instructions 185/185, diffs 58, address-instruction diffs 4. Target objects: __KPADVersion, iaccXY_nrm_hori, icenter_org, idist_org, inside_kpads, isec_nrm_hori, kp_dist_vv1, kp_err_dist_max, kp_err_dist_min, kp_obj_interval, lbl_81140C80, lbl_816958A8, lbl_816958B4, lbl_816958BC, lbl_816958C4, lbl_8169590C, lbl_81695910, lbl_8169821C. Large objects: inside_kpads 0x14a0, lbl_81140C80 0x40.
### libs/RVL_SDK/src/wad/wad
{"fuzzy_match_percent": 98.944, "matched_code": "13180", "matched_code_percent": 53.795918, "matched_data": "528", "matched_data_percent": 100.0, "matched_functions": 35, "matched_functions_percent": 87.5, "total_code": "24500", "total_data": "528", "total_functions": 40, "total_units": 1}
POOL IDENTICAL up to 18 (mine=18 base=18)
Instruction-exact 35/40.
- `WADImportGetBlocks` 94.24161%; instructions 286/298, diffs 286, address-instruction diffs 57. Target objects: none. Large objects: none.
- `WADImportEx` 99.02269%; instructions 1146/1146, diffs 201, address-instruction diffs 24. Target objects: WAD_815BFFA8, __func__$1718. Large objects: WAD_815BFFA8 0xf8.
- `WAD_815C1288` 96.803276%; instructions 61/61, diffs 32, address-instruction diffs 2. Target objects: none. Large objects: none.
- `WADBackupEx` 97.385124%; instructions 1057/1062, diffs 876, address-instruction diffs 204. Target objects: @4643, WAD_815C1288, lbl_816982F0. Large objects: WAD_815C1288 0xf4.
- `WADImportDVDExForBS` 97.49049%; instructions 261/263, diffs 193, address-instruction diffs 28. Target objects: none. Large objects: none.
### libs/RVL_SDK/src/fa/pdm_partition
{"complete_data_percent": 100.0, "fuzzy_match_percent": 98.86006, "matched_code": "3380", "matched_code_percent": 90.958015, "matched_data_percent": 100.0, "matched_functions": 19, "matched_functions_percent": 95.0, "total_code": "3716", "total_functions": 20, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 19/20.
- `pdm_part_is_master_boot_sector` 87.39286%; instructions 86/84, diffs 84, address-instruction diffs 17. Target objects: none. Large objects: none.
### libs/RVL_SDK/src/fa/driver/sd_drv
{"fuzzy_match_percent": 99.14116, "matched_code": "9260", "matched_code_percent": 78.74149, "matched_data": "3592", "matched_data_percent": 100.0, "matched_functions": 22, "matched_functions_percent": 84.61539, "total_code": "11760", "total_data": "3592", "total_functions": 26, "total_units": 1}
POOL IDENTICAL up to 46 (mine=46 base=46)
Instruction-exact 22/26.
- `pfd_sddrv_init` 93.125%; instructions 141/144, diffs 142, address-instruction diffs 56. Target objects: g_event, g_pfd_sddev, g_pfd_sddrv_info, lbl_81690D18, pfd_st_inter_callback, pfd_st_removal_callback. Large objects: g_pfd_sddev 0x40, pfd_st_inter_callback 0x114, pfd_st_removal_callback 0x108.
- `pfd_sddrv_finalize` 92.63158%; instructions 57/57, diffs 4, address-instruction diffs 0. Target objects: g_pfd_sddrv_info, lbl_81690FFC, lbl_81691040. Large objects: lbl_81690FFC 0x41, lbl_81691040 0x2d0.
- `pfd_sddrv_store_mbr_buf` 99.75247%; instructions 202/202, diffs 9, address-instruction diffs 0. Target objects: lbl_8169134C, sddrv_size_depend_tbl. Large objects: lbl_8169134C 0x57, sddrv_size_depend_tbl 0x150.
- `pfd_sddrv_build_fat32_mbr_bpb` 95.202705%; instructions 229/222, diffs 122, address-instruction diffs 36. Target objects: g_pfd_sddrv_buf, g_pfd_sddrv_info, lbl_81690D18. Large objects: g_pfd_sddrv_buf 0x200.
### libs/RVL_SDK/src/nup/nup
{"fuzzy_match_percent": 99.5968, "matched_code": "7748", "matched_code_percent": 71.98068, "matched_data": "1720", "matched_data_percent": 100.0, "matched_functions": 20, "matched_functions_percent": 86.95652, "total_code": "10764", "total_data": "1720", "total_functions": 23, "total_units": 1}
POOL IDENTICAL up to 28 (mine=28 base=28)
Instruction-exact 20/23.
- `__nupParseServerInfo__FP14NUPContextInfoPcPcUx` 98.108406%; instructions 452/452, diffs 148, address-instruction diffs 24. Target objects: lbl_81691798, lbl_816983C8, lbl_816983CC. Large objects: none.
- `__nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion` 99.35583%; instructions 163/163, diffs 17, address-instruction diffs 3. Target objects: none. Large objects: none.
- `__nupGetTitleSize__FP12NUPTitleInfo` 99.100716%; instructions 139/139, diffs 22, address-instruction diffs 3. Target objects: none. Large objects: none.
### libs/RVL_SDK/src/kbd/kbd_lib
{"fuzzy_match_percent": 99.93963, "matched_code": "3728", "matched_code_percent": 64.67731, "matched_data": "5296", "matched_data_percent": 100.0, "matched_functions": 17, "matched_functions_percent": 80.952385, "total_code": "5764", "total_data": "5296", "total_functions": 21, "total_units": 1}
POOL IDENTICAL up to 0 (mine=0 base=0)
Instruction-exact 17/21.
- `kbdEventHandler` 99.83871%; instructions 186/186, diffs 5, address-instruction diffs 3. Target objects: kbdData. Large objects: kbdData 0x9a0.
- `kbdProcMod` 99.90234%; instructions 256/256, diffs 4, address-instruction diffs 0. Target objects: jumptable_816925A0, kbdData, kbdInitialized, kbdKeyMaps. Large objects: jumptable_816925A0 0x88, kbdData 0x9a0, kbdKeyMaps 0x400.
- `kbd_led_handler` 99.72%; instructions 25/25, diffs 3, address-instruction diffs 0. Target objects: kbdCmdBuf, kbdLCBuf. Large objects: kbdCmdBuf 0x180, kbdLCBuf 0x60.
- `KBDSetModState` 99.40476%; instructions 42/42, diffs 4, address-instruction diffs 0. Target objects: kbdData, kbdInitialized. Large objects: kbdData 0x9a0.
## Candidate triage
The baseline covers 51 requested units and 106 open functions. Both sd_drv and pdm_partition copies are included; RevoEX copies already have no open functions. Already-exact NHTTP units are retained in the inventory. No AOSS/ATERM/AOSSLink or eZiText source is in scope.
Closest structural candidate: tiCandidateBox scCandidatePaneData is a synthetic wrapper containing 26 0x40-byte pane records and a 12-byte tail string. Actual bytes at 0x8165D978 are P_OffBtn followed by four zero bytes. Array consumers use exactly 26 records. UIOnOffButton::Create uses base+0x680 only as a string in searchPaneComponent/searchAnmPane/FindPaneByName. No function treats the string as a 27th record. Source currently forces them into the same object. Test the real table and ordinary string separately, with no explicit string padding.
KPAD lbl_81140C80 is a 0x40-byte float region whose first 0x30 bytes are passed as an MTX34 and initialized as a rotation matrix. No evidence yet identifies a second object in the last 0x10 bytes. A split there is not justified without further references. The typed inside_kpads[4] is one repeated array, not a mixed aggregate.
kbdData is four 0x268-byte KBDChannel records; all indexed references agree with that stride. kbdKeyMaps is a homogeneous map array with storage union. Neither establishes separate object boundaries. sFriendInfo is a full NWC24FriendInfo that is copied and cleared as 0x140 bytes. Flags0 is a homogeneous u32 array. These must not be split solely to influence allocation.
ATTEMPT {"build": 0, "functions": [{"diffs": 231, "insns": [353, 352], "name": "create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator", "percent": 98.286934}, {"diffs": 64, "insns": [216, 216], "name": "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator", "percent": 98.49537}], "gained": [], "label": "separate pane records from ordinary off-button name array", "lost": [], "measures": {"fuzzy_match_percent": 99.84534, "matched_code": "21728", "matched_code_percent": 90.53333, "matched_data": "1164", "matched_data_percent": 25.021496, "matched_functions": 110, "matched_functions_percent": 98.21429, "total_code": "24000", "total_data": "4652", "total_functions": 112, "total_units": 1}, "pool": "POOL IDENTICAL up to 57 (mine=57 base=57)", "pool_ok": true, "source_hash": "4bdcbe84d9c5", "trial": 1, "unit": "src/keyboard/tiCandidateBox"}
ATTEMPT {"build": 0, "functions": [{"diffs": 231, "insns": [353, 352], "name": "create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator", "percent": 98.27273}, {"diffs": 64, "insns": [216, 216], "name": "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator", "percent": 98.49537}], "gained": [], "label": "standalone pane array and ordinary off-button string literal accessor", "lost": [], "measures": {"fuzzy_match_percent": 99.8445, "matched_code": "21728", "matched_code_percent": 90.53333, "matched_data": "116", "matched_data_percent": 2.4935513, "matched_functions": 110, "matched_functions_percent": 98.21429, "total_code": "24000", "total_data": "4652", "total_functions": 112, "total_units": 1}, "pool": "FIRST DIVERGENCE at index 4\n 2 mine=0x6c base=0x6c \n M 'P_prdc_scrl_Left'\n B 'P_prdc_scrl_Left'\n 3 mine=0xac base=0xac \n M 'P_prdc_scrl_Rght'\n B 'P_prdc_scrl_Rght'\n* 4 mine=0x6a8 base=0x6a8 \n M 'B_OffBtn'\n B 'P_OffBtn'\n* 5 mine=0x6b4 base=0x6b4 \n M 'P_JPOffBtn'\n B 'B_OffBtn'\n* 6 mine=0x6c0 base=0x6c0 \n M 'P_CNOffBtn'\n B 'P_JPOffBtn'\n* 7 mine=0x6cc base=0x6cc \n M 'P_CNOnBtn'\n B 'P_CNOffBtn'\n* 8 mine=0x6d8 base=0x6d8 \n M 'B_prdc_scrl_Left'\n B 'P_CNOnBtn'\n\nmine has 57 strings, base has 57", "pool_ok": false, "source_hash": "a0f5ae8bb1bb", "trial": 2, "unit": "src/keyboard/tiCandidateBox"}
ATTEMPT {"build": 0, "functions": [{"diffs": 317, "insns": [354, 352], "name": "create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator", "percent": 96.701706}, {"diffs": 64, "insns": [216, 216], "name": "createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator", "percent": 98.49537}], "gained": [], "label": "standalone pane array and const off-button name object", "lost": [], "measures": {"fuzzy_match_percent": 99.752335, "matched_code": "21728", "matched_code_percent": 90.53333, "matched_data": "116", "matched_data_percent": 2.4935513, "matched_functions": 110, "matched_functions_percent": 98.21429, "total_code": "24000", "total_data": "4652", "total_functions": 112, "total_units": 1}, "pool": "FIRST DIVERGENCE at index 4\n 2 mine=0x6c base=0x6c \n M 'P_prdc_scrl_Left'\n B 'P_prdc_scrl_Left'\n 3 mine=0xac base=0xac \n M 'P_prdc_scrl_Rght'\n B 'P_prdc_scrl_Rght'\n* 4 mine=0x6a8 base=0x6a8 \n M 'B_OffBtn'\n B 'P_OffBtn'\n* 5 mine=0x6b4 base=0x6b4 \n M 'P_JPOffBtn'\n B 'B_OffBtn'\n* 6 mine=0x6c0 base=0x6c0 \n M 'P_CNOffBtn'\n B 'P_JPOffBtn'\n* 7 mine=0x6cc base=0x6cc \n M 'P_CNOnBtn'\n B 'P_CNOffBtn'\n* 8 mine=0x6d8 base=0x6d8 \n M 'B_prdc_scrl_Left'\n B 'P_CNOnBtn'\n\nmine has 56 strings, base has 57", "pool_ok": false, "source_hash": "e7c2dc9d3b63", "trial": 3, "unit": "src/keyboard/tiCandidateBox"}
tiCandidateBox trials 1-3 produced no exact gain. The natural writable string preserved the pool; the const object and literal accessor moved the pool. All three left createAnmPane_ at 64 differences. Restored source, with no metadata edits.
Next boundary candidate: tiZiString CandidatesBuffer size 0x600 is used as three independent 0x200-byte regions. clearCandidates clears them separately with sizes 0x200, 0x1fe and 0x200 at ElementBuffer+0x200, +0x400 and +0x600. The input methods only use the first region. setElementBuffer separately clears the middle region. EZTXGetParam::candidates and update's input-to-result copy use only the third region. The target forms all three addresses from the common BSS base, whereas the current source preserves a second base for the inferred combined CandidatesBuffer. Test separate real input, element-work and prediction arrays. Keep section bytes, total BSS size, existing alignment and all resolved reference targets fixed.
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 8, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 99.30769}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "split input, element-work and prediction arrays at three target memset boundaries", "lost": [], "measures": {"fuzzy_match_percent": 99.43896, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "384", "matched_data_percent": 5.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "86c93cfda3dd", "trial": 4, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 8, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 99.30769}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "prove corrected target symbols and remeasure three distinct candidate buffers", "lost": [], "measures": {"fuzzy_match_percent": 99.43896, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "86c93cfda3dd", "trial": 5, "unit": "src/keyboard/tiZiString"}
Reference proof after tiZiString symbol correction: all 1027 extracted objects have identical allocated-section types, sizes and SHA256 byte hashes. All 109496 relocation entries retain the same relocation section, offset, type and resolved destination section+value+addend. Manifest comparison reports changed=[]. The corrected unit still has 7680 data bytes; all 7680 match. No splits.txt ranges changed. Full raw manifest and comparator are saved under /tmp/agg-sweep for this run.
## First accepted worker state
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiZiString] pool: IDENTICAL
[src/keyboard/tiZiString] objdiff: code 3460/5504 data 7680/7680 functions 27/29 fuzzy 99.4390 linked code 0
[src/keyboard/tiZiString] instruction-exact functions: 27/29
[src/keyboard/tiZiString] section .bss size 7296 match 100.0
[src/keyboard/tiZiString] section .data size 328 match 100.0
[src/keyboard/tiZiString] section .rodata size 56 match 100.0
[src/keyboard/tiZiString] section .text size 5504 match 99.43896
[src/keyboard/tiZiString] below 100: update__Q39textinput8tistring6WithZiFv 98.36996
[src/keyboard/tiZiString] below 100: setElementBuffer__Q39textinput8tistring6WithZiFv 99.30769
[src/keyboard/tiZiString] baseline: code 3136/5504 data 7680 functions 26 fuzzy 98.3241
regressions vs baseline: 0
global matched_code_percent: 92.57366 -> 92.58447
global fuzzy_match_percent: 99.73627 -> 99.73832
global complete_code_percent: 76.20227 -> 76.20227
global matched_data_percent: 99.94696 -> 99.94696
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 8, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 99.30769}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "setElementBuffer reads the distinct input buffer through a const pointer", "lost": [], "measures": {"fuzzy_match_percent": 99.43896, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "d7f08ae2b616", "trial": 6, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 16, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 93.15385}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "setElementBuffer binds separate element and const input array references", "lost": [], "measures": {"fuzzy_match_percent": 99.148254, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "08398ac8718d", "trial": 7, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 8, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 99.30769}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "separate input object with body using the same narrowed count as the condition", "lost": [], "measures": {"fuzzy_match_percent": 99.43896, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "e64c27fef411", "trial": 8, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 13, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 98.38461}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "input and element pointer declarations follow their post-clear lifetimes", "lost": [], "measures": {"fuzzy_match_percent": 99.39535, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "f8eb9947ed00", "trial": 9, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 8, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 99.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "indexed input read helper owns the independent input global address", "lost": [], "measures": {"fuzzy_match_percent": 99.424416, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "5e1069e0a752", "trial": 10, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 47, "insns": [66, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 96.76923}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "separate buffer copy helper receives const input and mutable element arrays", "lost": [], "measures": {"fuzzy_match_percent": 99.31904, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "4be3debcc782", "trial": 11, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "candidate element view binds independent input and output objects", "lost": [], "measures": {"fuzzy_match_percent": 99.47166, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "4dd87de61882", "trial": 12, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 8, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 99.30769}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "separate global element conversion helper with explicit input pointer", "lost": [], "measures": {"fuzzy_match_percent": 99.43896, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "6efbb5d815c5", "trial": 13, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 9, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 98.84615}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "input pointer declared before writable element pointer after storage split", "lost": [], "measures": {"fuzzy_match_percent": 99.41715, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "6e83e0b4b419", "trial": 14, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 47, "insns": [66, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 93.61539}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "narrowed element index belongs to the entire input loop", "lost": [], "measures": {"fuzzy_match_percent": 99.17006, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "ca420f1a259b", "trial": 15, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 16, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 95.2}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv"], "label": "input pointer binds its independent array at function entry", "lost": [], "measures": {"fuzzy_match_percent": 99.24491, "matched_code": "3460", "matched_code_percent": 62.863373, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 27, "matched_functions_percent": 93.10345, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "1eac611d8b49", "trial": 16, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "retain independent-buffer view with exact setElementBuffer", "lost": [], "measures": {"fuzzy_match_percent": 99.47166, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "4dd87de61882", "trial": 17, "unit": "src/keyboard/tiZiString"}
## Second accepted worker state
Trial 12 binds the two real input and element globals in ElementInputView. Its constructor and read/element accessors inline without additional code or objects. setElementBuffer is 65/65 instructions, diffs 0, exact-name objdiff 100.0. The direct pointer, array-reference, helper-read and declaration-lifetime alternatives did not match. clearCandidates remains exact. Full gate:
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[src/keyboard/tiZiString] pool: IDENTICAL
[src/keyboard/tiZiString] objdiff: code 3720/5504 data 7680/7680 functions 28/29 fuzzy 99.4717 linked code 0
[src/keyboard/tiZiString] instruction-exact functions: 28/29
[src/keyboard/tiZiString] section .bss size 7296 match 100.0
[src/keyboard/tiZiString] section .data size 328 match 100.0
[src/keyboard/tiZiString] section .rodata size 56 match 100.0
[src/keyboard/tiZiString] section .text size 5504 match 99.47166
[src/keyboard/tiZiString] below 100: update__Q39textinput8tistring6WithZiFv 98.36996
[src/keyboard/tiZiString] baseline: code 3136/5504 data 7680 functions 26 fuzzy 98.3241
regressions vs baseline: 0
global matched_code_percent: 92.57366 -> 92.59315
global fuzzy_match_percent: 99.73627 -> 99.73837
global complete_code_percent: 76.20227 -> 76.20227
global matched_data_percent: 99.94696 -> 99.94696
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "prediction search helper binds the independent element and result objects", "lost": [], "measures": {"fuzzy_match_percent": 99.47166, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "c6baf290218a", "trial": 18, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 37, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 99.46861}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "latest-word suffix helper owns only the independent context object", "lost": [], "measures": {"fuzzy_match_percent": 99.82776, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "1318734b1e5f", "trial": 19, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "input-to-prediction copy helper names both separate objects", "lost": [], "measures": {"fuzzy_match_percent": 99.47166, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "b61fbb7a17ff", "trial": 20, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "prediction buffer view binds both pointer fields after search flags", "lost": [], "measures": {"fuzzy_match_percent": 99.47166, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "1b5193ca6142", "trial": 21, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 85, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.36996}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "model forty candidate words as separate rows of the existing result array", "lost": [], "measures": {"fuzzy_match_percent": 99.47166, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "6118e212d953", "trial": 22, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 141, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.13453}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "final prediction copy is an inline member over the independent result object", "lost": [], "measures": {"fuzzy_match_percent": 99.39535, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "69cba6e50407", "trial": 23, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 37, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 99.46861}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "prediction output view owns read cursor and result row cursor", "lost": [], "measures": {"fuzzy_match_percent": 99.82776, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "45f3bae22724", "trial": 24, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 36, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 99.49103}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "prediction output view binds result rows before a const input cursor", "lost": [], "measures": {"fuzzy_match_percent": 99.83503, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "5ac04b7a87c3", "trial": 25, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 37, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 99.46861}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "prediction output advances complete 64-character row objects", "lost": [], "measures": {"fuzzy_match_percent": 99.82776, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "6937ecc8492e", "trial": 26, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 37, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 99.46861}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "prediction output rows consume a const character cursor", "lost": [], "measures": {"fuzzy_match_percent": 99.82776, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "e75a18950588", "trial": 27, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 37, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 99.46861}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "prediction output uses native wide-character pointers for words", "lost": [], "measures": {"fuzzy_match_percent": 99.82776, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "84e9a0b8d45b", "trial": 28, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 33, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 99.524666}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "result buffer bound before readonly prediction input at copy start", "lost": [], "measures": {"fuzzy_match_percent": 99.84593, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "b0a45fb31c44", "trial": 29, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 126, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.3139}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "Korean word copy helper consumes prediction input and writes one result row", "lost": [], "measures": {"fuzzy_match_percent": 99.45349, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "2f0fcdc58eba", "trial": 30, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 121, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.40359}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "wide word copy helper consumes prediction input and writes one result row", "lost": [], "measures": {"fuzzy_match_percent": 99.48256, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "f616675dca0b", "trial": 31, "unit": "src/keyboard/tiZiString"}
## Prior trial coverage for parked functions
All 106 functions in the fresh inventory have at least three distinct source-level trials recorded before this sweep. These references are historical attempts, not new compiles in this run. They prevent repeating the old helper/type/scheduling searches on functions for which lever 13 has no object-boundary evidence. Current trial records above separately identify the new compiled boundary experiments.
- `libs/NW4R/src/lyt/lyt_window DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc`: tools/decomp-assist/fz2.attempts.md:755 Round4 final open-function and data audit; tools/decomp-assist/fz2.attempts.md:826 lyt_window data gate; tools/decomp-assist/prior1.attempts.md:105 W1 reference mutable bUseVtxCol
- `libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 TMCJPEGDEC_decode_iquant`: tools/decomp-assist/jpeg-matching-attempts.md:215 huffman code uses decoded threshold; tools/decomp-assist/jpeg-matching-attempts.md:216 dc load failure through common return; tools/decomp-assist/jpeg-matching-attempts.md:217 sign-extension subtraction operand grouping
- `libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var TMCJPEGDEC_IdctBlock_Col`: tools/decomp-assist/jpeg-matching-attempts.md:205 ac operand order; tools/decomp-assist/jpeg-matching-attempts.md:206 butterfly operand grouping; tools/decomp-assist/jpeg-matching-attempts.md:207 first pass row counter form
- `libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var TMCJPEGDEC_IdctBlock_Lumi`: tools/decomp-assist/jpeg-matching-attempts.md:200 ac operand order; tools/decomp-assist/jpeg-matching-attempts.md:201 butterfly operand grouping; tools/decomp-assist/jpeg-matching-attempts.md:202 first pass row counter form
- `libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse TMCJPEGDEC_IFD0_tag_parse`: tools/decomp-assist/ult3.attempts.md:38 compression has own ignored return block; tools/decomp-assist/ult3.attempts.md:39 compression returns separately and rational pointer declared before offset; tools/decomp-assist/ult3.attempts.md:40 all unhandled compressed/strip/jpeg-offset tags have separate exits
- `libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse TMCJPEGDEC_IFD1_tag_parse`: tools/decomp-assist/ult3.attempts.md:20 remove redundant orientation case and give strip offset explicit return; tools/decomp-assist/ult3.attempts.md:21 ignored tags use exact separate strip-offset exit without orientation or planar noops; tools/decomp-assist/ult3.attempts.md:22 ignored tags return directly, all recognized bodies remain separate
- `libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse TMCJPEGDEC_exif_parse`: tools/decomp-assist/ult3.attempts.md:44 each IFD has independent lexical entry cursor; tools/decomp-assist/ult3.attempts.md:45 each IFD has independent entry-count and byte-length locals; tools/decomp-assist/ult3.attempts.md:46 each IFD owns all real traversal locals
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV411toRGB565`: tools/decomp-assist/jpeg-matching-attempts.md:86 source pointer walks; tools/decomp-assist/jpeg-matching-attempts.md:87 column declared at function scope; tools/decomp-assist/jpeg-matching-attempts.md:88 x/y bound initialization order
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV411toRGB565edge`: tools/decomp-assist/jpeg-matching-attempts.md:91 source pointer walks; tools/decomp-assist/jpeg-matching-attempts.md:92 column declared at function scope; tools/decomp-assist/jpeg-matching-attempts.md:93 x/y bound initialization order
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV420toRGB565`: tools/decomp-assist/jpeg-matching-attempts.md:106 source pointer walks; tools/decomp-assist/jpeg-matching-attempts.md:107 column declared at function scope; tools/decomp-assist/jpeg-matching-attempts.md:108 x/y bound initialization order
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV420toRGB565edge`: tools/decomp-assist/jpeg-matching-attempts.md:111 source pointer walks; tools/decomp-assist/jpeg-matching-attempts.md:112 column declared at function scope; tools/decomp-assist/jpeg-matching-attempts.md:113 x/y bound initialization order
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV422toRGB565`: tools/decomp-assist/jpeg-matching-attempts.md:96 source pointer walks; tools/decomp-assist/jpeg-matching-attempts.md:97 column declared at function scope; tools/decomp-assist/jpeg-matching-attempts.md:98 x/y bound initialization order
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_set_converterRGB565`: tools/decomp-assist/jpeg-matching-attempts.md:82 state load before component; tools/decomp-assist/jpeg-matching-attempts.md:83 pointer stores before converter stores; tools/decomp-assist/jpeg-matching-attempts.md:84 dimension operand order
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV211toRGBA8`: tools/decomp-assist/fz20.attempts.md:1365 91.05769%; tools/decomp-assist/fz20.attempts.md:1366 91.95652%; tools/decomp-assist/fz20.attempts.md:1481 TMCJPEGDEC_converterYUV444toRGBA8edge
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV211toRGBA8edge`: tools/decomp-assist/fz20.attempts.md:1366 91.95652%; tools/decomp-assist/fz20.attempts.md:1482 TMCJPEGDEC_converterYUV444toRGBA8edge; tools/decomp-assist/fz20.attempts.md:2097 92.0%
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV411toRGBA8`: tools/decomp-assist/fz20.attempts.md:1359 82.54132%; tools/decomp-assist/fz20.attempts.md:1360 93.83929%; tools/decomp-assist/fz20.attempts.md:1475 TMCJPEGDEC_converterYUV444toRGBA8edge
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV411toRGBA8edge`: tools/decomp-assist/fz20.attempts.md:1360 93.83929%; tools/decomp-assist/fz20.attempts.md:1476 TMCJPEGDEC_converterYUV444toRGBA8edge; tools/decomp-assist/fz20.attempts.md:2091 93.88393%
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV420toRGBA8`: tools/decomp-assist/fz20.attempts.md:1363 89.33987%; tools/decomp-assist/fz20.attempts.md:1364 87.316666%; tools/decomp-assist/fz20.attempts.md:1479 TMCJPEGDEC_converterYUV444toRGBA8edge
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV420toRGBA8edge`: tools/decomp-assist/fz20.attempts.md:1364 87.316666%; tools/decomp-assist/fz20.attempts.md:1480 TMCJPEGDEC_converterYUV444toRGBA8edge; tools/decomp-assist/fz20.attempts.md:2095 87.4%
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV422toRGBA8`: tools/decomp-assist/fz20.attempts.md:1361 87.6554%; tools/decomp-assist/fz20.attempts.md:1362 90.04425%; tools/decomp-assist/fz20.attempts.md:1477 TMCJPEGDEC_converterYUV444toRGBA8edge
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV422toRGBA8edge`: tools/decomp-assist/fz20.attempts.md:1362 90.04425%; tools/decomp-assist/fz20.attempts.md:1478 TMCJPEGDEC_converterYUV444toRGBA8edge; tools/decomp-assist/fz20.attempts.md:2093 90.08849%
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV444toRGBA8`: tools/decomp-assist/fz20.attempts.md:1367 90.4433%; tools/decomp-assist/fz20.attempts.md:1368 88.90909%; tools/decomp-assist/fz20.attempts.md:1483 TMCJPEGDEC_converterYUV444toRGBA8edge
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV444toRGBA8edge`: tools/decomp-assist/fz20.attempts.md:1368 88.90909%; tools/decomp-assist/fz20.attempts.md:1484 TMCJPEGDEC_converterYUV444toRGBA8edge; tools/decomp-assist/jpeg-matching-attempts.md:190 source pointer walks
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_set_converterRGBA8`: tools/decomp-assist/fz20.attempts.md:1358 93.91765%; tools/decomp-assist/fz20.attempts.md:1474 TMCJPEGDEC_converterYUV444toRGBA8edge; tools/decomp-assist/jpeg-matching-attempts.md:141 state load before component
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8 TMCJPEGDEC_set_converterY8U8V8`: tools/decomp-assist/jpeg-matching-attempts.md:333 converter stores before row stores; tools/decomp-assist/jpeg-matching-attempts.md:334 pointer to whole conversion buffer; tools/decomp-assist/jpeg-matching-attempts.md:335 signed conversion sample pointer
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_build_fat32_mbr_bpb`: tools/decomp-assist/perm2.attempts.md:1120 pfd_sddrv_build_fat32_mbr_bpb new T3 source trials; tools/decomp-assist/perm2.attempts.md:1186 94.75225; tools/decomp-assist/data-d6.attempts.md:62 named sector buffer
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_finalize`: tools/decomp-assist/perm2.attempts.md:1110 pfd_sddrv_finalize new T3 source trials; tools/decomp-assist/data-d6.attempts.md:50 clear disk before media state; tools/decomp-assist/data-d6.attempts.md:52 named remaining flags
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_init`: tools/decomp-assist/perm2.attempts.md:1092 pfd_sddrv_init new T3 source trials; tools/decomp-assist/data-d6.attempts.md:44 unsigned null comparison; tools/decomp-assist/data-d6.attempts.md:46 named null disk
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_store_mbr_buf`: tools/decomp-assist/perm2.attempts.md:1101 pfd_sddrv_store_mbr_buf new T3 source trials; tools/decomp-assist/data-d6.attempts.md:56 name cylinder size; tools/decomp-assist/data-d6.attempts.md:58 name first sector before CHS
- `libs/RVL_SDK/src/fa/pdm_partition pdm_part_is_master_boot_sector`: tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:21 inline endian helper with high byte first and two addition groups; tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:22 evaluate high byte group before low byte group; tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:23 declare traversal index after pointers at endian helper boundary
- `libs/RVL_SDK/src/kbd/kbd_lib KBDSetModState`: tools/decomp-assist/sol-low-leaves-attempts.md:30 typed channel pointer for load and store; tools/decomp-assist/sol-low-leaves-attempts.md:31 physical modifier masked expression; tools/decomp-assist/sol-low-leaves-attempts.md:32 single modifier state temporary
- `libs/RVL_SDK/src/kbd/kbd_lib kbdEventHandler`: tools/decomp-assist/sol-low-leaves-attempts.md:16 reuse report status temporary in comparisons; tools/decomp-assist/sol-low-leaves-attempts.md:17 initialize channel pointer in one expression; tools/decomp-assist/sol-low-leaves-attempts.md:106 remove redundant report status temporary
- `libs/RVL_SDK/src/kbd/kbd_lib kbdProcMod`: tools/decomp-assist/sol-low-leaves-attempts.md:37 pass modifier expression directly; tools/decomp-assist/sol-low-leaves-attempts.md:38 local modifier scope around inline setter; tools/decomp-assist/sol-low-leaves-attempts.md:39 channel argument recovered from typed channel
- `libs/RVL_SDK/src/kbd/kbd_lib kbd_led_handler`: tools/decomp-assist/sol-low-leaves-attempts.md:33 load completion callback before releasing command; tools/decomp-assist/sol-low-leaves-attempts.md:43 null callback test after clear; conditional error code; tools/decomp-assist/sol-low-leaves-attempts.md:44 guard completion body with non-null callback
- `libs/RVL_SDK/src/kpad/KPAD KPADInit`: tools/decomp-assist/perm7.attempts.md:58 matrix_before_scale_initialization; tools/decomp-assist/perm7.attempts.md:61 reference_height_before_width; tools/decomp-assist/perm7.attempts.md:63 direct_sine_assignment
- `libs/RVL_SDK/src/nup/nup __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion`: tools/decomp-assist/h6.attempts.md:108 013-kbd_lib-led-result-switch-failure; tools/decomp-assist/h6.attempts.md:136 018-nup-installed-content-array; tools/decomp-assist/h6.attempts.md:142 019-nup-installed-content-reference
- `libs/RVL_SDK/src/nup/nup __nupGetTitleSize__FP12NUPTitleInfo`: tools/decomp-assist/sol-med-structural-round10.attempts.md:16 __nupGetTitleSize__FP12NUPTitleInfo; tools/decomp-assist/sol-med-structural-round10.attempts.md:224 139/139 instructions; reserve high-word temporary and installed-content helper colors differ.; tools/decomp-assist/sol-med-structural-round12.attempts.md:15 diagnosis __nupGetTitleSize__FP12NUPTitleInfo
- `libs/RVL_SDK/src/nup/nup __nupParseServerInfo__FP14NUPContextInfoPcPcUx`: tools/decomp-assist/sol-med-structural-round10.attempts.md:13 __nupParseServerInfo__FP14NUPContextInfoPcPcUx; tools/decomp-assist/sol-med-structural-round10.attempts.md:221 452/452 instructions; repeated tag-helper local colors differ.; tools/decomp-assist/sol-med-structural-round12.attempts.md:12 diagnosis __nupParseServerInfo__FP14NUPContextInfoPcPcUx
- `libs/RVL_SDK/src/wad/wad WADBackupEx`: tools/decomp-assist/sol-med-attempts.md:7278 WADBackupEx; tools/decomp-assist/h6.attempts.md:375 051-sd_drv-fat32-write-sector-helper; tools/decomp-assist/h6.attempts.md:443 061-wad-backup-export-buffer-wait-helper
- `libs/RVL_SDK/src/wad/wad WADImportDVDExForBS`: tools/decomp-assist/sol-med-attempts.md:7323 WADImportDVDExForBS; tools/decomp-assist/h6.attempts.md:376 051-sd_drv-fat32-write-sector-helper; tools/decomp-assist/h6.attempts.md:464 064-wad-dvd-import-section-helper
- `libs/RVL_SDK/src/wad/wad WADImportEx`: tools/decomp-assist/sol-med-attempts.md:7275 WADImportEx; tools/decomp-assist/h6.attempts.md:373 051-sd_drv-fat32-write-sector-helper; tools/decomp-assist/h6.attempts.md:401 055-wad-import-installed-content-scan
- `libs/RVL_SDK/src/wad/wad WADImportGetBlocks`: tools/decomp-assist/sol-med-attempts.md:7308 WADImportGetBlocks; tools/decomp-assist/h6.attempts.md:372 051-sd_drv-fat32-write-sector-helper; tools/decomp-assist/h6.attempts.md:380 052-wad-blocks-content-accounting-helper
- `libs/RVL_SDK/src/wad/wad WAD_815C1288`: tools/decomp-assist/sol-med-attempts.md:7290 WAD_815C1288; tools/decomp-assist/h6.attempts.md:374 051-sd_drv-fat32-write-sector-helper; tools/decomp-assist/h6.attempts.md:422 058-wad-export-buffer-wait-helper
- `libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt`: tools/decomp-assist/data-d6.attempts.md:82 file-size and data-size declaration order; tools/decomp-assist/data-d6.attempts.md:84 signed pointer tests to pointer null tests; tools/decomp-assist/data-d6.attempts.md:86 signature before hash output
- `libs/RevoEX/src/net/aes AESiDecryptBlock`: tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:107 mutate inverse MixColumns intermediate terms in target operand order; tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:108 retain key schedule base separately before round offset; tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:109 inline inverse MixColumns column helper
- `libs/RevoEX/src/net/aes AESiEncryptBlock`: tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:101 explicit target low byte XOR association with nested high-byte pair; tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:102 inline encryption round lookup helper with target association; tools/decomp-assist/sol-high-four-oct2.attempts.jsonl:103 separate leading state declarations from round-count and initial key loads
- `libs/RevoEX/src/net/md5 ProcessBlock`: tools/decomp-assist/allhands-md5-rotation.attempts.md:32 direct byte-reversed pointers and arithmetic groupings; tools/decomp-assist/allhands-md5-rotation.attempts.md:34 typed inline endian-load wrapper; tools/decomp-assist/allhands-md5-rotation.attempts.md:36 rotation helpers without independent load results
- `libs/RevoEX/src/nhttp/NHTTP_recvbuf NHTTPi_compareTokenN_HdrRecvBuf`: tools/decomp-assist/partial-oct2d.attempts.md:621 positive enclosing range guard; tools/decomp-assist/partial-oct2d.attempts.md:622 word character narrows at comparison helper; tools/decomp-assist/partial-oct2d.attempts.md:623 positive guard and int character with conditional lower-case helper
- `libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL NHTTPi_compareToken`: tools/decomp-assist/allhands-nhttp-stdlib.attempts.md:64 NHTTPi_Base64Encode; tools/decomp-assist/perm2.attempts.md:196 NHTTPi_compareToken readable trials; tools/decomp-assist/pk2.attempts.md:198 mwcceppc.exe Compiler:
- `libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL NHTTPi_strnicmp`: tools/decomp-assist/four-leaves-r11.attempts.md:51 constant-first lower bound; tools/decomp-assist/four-leaves-r11.attempts.md:52 constant-first upper bound; tools/decomp-assist/four-leaves-r11.attempts.md:53 both bounds constant-first
- `libs/RevoEX/src/nwc24/NWC24Download NWC24InitDlTask`: tools/decomp-assist/ult3.attempts.md:215 home-directory char buffer uses empty string initialization; tools/decomp-assist/ult3.attempts.md:216 home-directory represented as bytes until NAND and numeric parse interfaces; tools/decomp-assist/ult3.attempts.md:217 task pointer and download type are immutable formal values
- `libs/RevoEX/src/so/SOBasic SOGetSockName`: tools/decomp-assist/prior1.attempts.md:185 mwcceppc.exe Compiler:; tools/decomp-assist/prior1.attempts.md:187 S1 reference statement order and conclude goto, with typed wire fields; tools/decomp-assist/prior1.attempts.md:193 S2 reference address initialization and separate prepare assignment
- `src/BS2/BS2Mach BS2StartGCGame`: tools/decomp-assist/sol-med-attempts.md:7191 BS2StartGCGame; tools/decomp-assist/fz1.attempts.md:3751 proven asynchronous DVD state field polled inline; tools/decomp-assist/fz1.attempts.md:3752 readonly native DVD polling helper boundary
- `src/BS2/BS2Mach BS2StartGame`: tools/decomp-assist/sol-med-attempts.md:7190 BS2StartGame; tools/decomp-assist/fz1.attempts.md:3728 proven async flags volatile definitions and direct state polling; tools/decomp-assist/fz1.attempts.md:3729 polling through native readonly inline DVD accessor
- `src/BS2/BS2Mach BS2Tick`: tools/decomp-assist/sol-med-attempts.md:7181 BS2Tick; tools/decomp-assist/fz1.attempts.md:3776 loader outputs represented as three independent addressable locals; tools/decomp-assist/fz1.attempts.md:3777 disc header hardware fields accessed through actual readonly disk type
- `src/BS2/BS2Mach CheckBS2CommandStatus`: tools/decomp-assist/sol-med-attempts.md:7187 CheckBS2CommandStatus; tools/decomp-assist/fz1.attempts.md:3762 NAND pending stored before inline partition-size arithmetic; tools/decomp-assist/fz1.attempts.md:3763 partition count read through real constant TOC view
- `src/BS2/BS2Update UpdateThread`: tools/decomp-assist/a6x.attempts.md:20 copy selected seat helper returns immutable source for requirements; tools/decomp-assist/a6x.attempts.md:21 seat copy helper returns required bytes and accumulates inode requirements; tools/decomp-assist/a6x.attempts.md:22 seat copy helper accumulates bytes and returns inode requirement
- `src/channelScript/CHANSVm CHANSVmConvertToFloatFromStr`: tools/decomp-assist/fz1.attempts.md:3626 read-only parse input object; tools/decomp-assist/fz1.attempts.md:3627 const parsed string view inside parse helper; tools/decomp-assist/fz1.attempts.md:3628 nested result/null parse condition
- `src/channelScript/CHANSVm CHANSVmFormatString`: tools/decomp-assist/fz1.attempts.md:3655 actual UTF16 character data instead of misleading pad name; tools/decomp-assist/fz1.attempts.md:3656 read-only format input bytes; tools/decomp-assist/fz1.attempts.md:3657 format cleanup length native signed count
- `src/channelScript/CHANSVm CHANSVmStep`: tools/decomp-assist/fz1.attempts.md:3713 default step count explicit branch; tools/decomp-assist/fz1.attempts.md:3714 step loop has precondition and post decrement; tools/decomp-assist/fz1.attempts.md:3715 step count and top tested loop use positive bound
- `src/channelScript/CHANSVm VmBlobGetHexString`: tools/decomp-assist/fz1.attempts.md:3662 read-only byte/hex table input views; tools/decomp-assist/fz1.attempts.md:3663 two destination slots owned by a single character cursor; tools/decomp-assist/fz1.attempts.md:3664 hex output as pointer cursor
- `src/channelScript/CHANSVm VmBlobPackCommon`: tools/decomp-assist/fz1.attempts.md:3673 boolean packing-mode parameter; tools/decomp-assist/fz1.attempts.md:3674 source blobs and string bytes readonly during copy; tools/decomp-assist/fz1.attempts.md:3675 native signed format length
- `src/channelScript/CHANSVm VmBlobUnpack`: tools/decomp-assist/fz1.attempts.md:3681 format string readonly pointer and getter cast; tools/decomp-assist/fz1.attempts.md:3682 packing parser signed counts explicitly decoded from unsigned field; tools/decomp-assist/fz1.attempts.md:3683 native signed inner iteration index
- `src/channelScript/CHANSVm VmDateDtor`: tools/decomp-assist/fz1.attempts.md:3635 read-only calendar view for format arguments; tools/decomp-assist/fz1.attempts.md:3636 month value computed before weekday in format call; tools/decomp-assist/fz1.attempts.md:3637 month then weekday genuine names
- `src/channelScript/CHANSVm VmStringSplit`: tools/decomp-assist/fz1.attempts.md:3648 read-only source and delimiter byte pointers; tools/decomp-assist/fz1.attempts.md:3649 delimiter payload before parent payload addressing; tools/decomp-assist/fz1.attempts.md:3650 two-pass output uses do loop
- `src/channelScript/CHANSVm VmWinEmuWrite`: tools/decomp-assist/fz1.attempts.md:3689 conversion object readonly binding; tools/decomp-assist/fz1.attempts.md:3690 constant string payload cached separately; tools/decomp-assist/fz1.attempts.md:3691 length loop checked before offset initialization
- `src/iplwww/www_wiisetting Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue`: tools/decomp-assist/a6x.attempts.md:14 append helper owns index increment through int reference; tools/decomp-assist/a6x.attempts.md:15 mask helper returns final reloaded buffer and publishes length by reference; tools/decomp-assist/a6x.attempts.md:16 entire region and language selection owns reference country result in helper
- `src/keyboard/tiCandidateBox createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator`: tools/decomp-assist/a23h.attempts.md:85 animation reference refers directly to the real record; tools/decomp-assist/a23h.attempts.md:86 animation slot cursor advances once per resource; tools/decomp-assist/a23h.attempts.md:87 signed local count preserves bounded descriptor traversal
- `src/keyboard/tiCandidateBox create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator`: tools/decomp-assist/a23h.attempts.md:71 text-area setup helper subobject reference and layout pointer; tools/decomp-assist/a23h.attempts.md:72 text-area setup helper subobject pointer and caller pointer reference; tools/decomp-assist/a23h.attempts.md:73 text-area setup helper subobject and layout references
- `src/keyboard/tiCellPhone create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator`: tools/decomp-assist/a23h.attempts.md:134 toggle animation helper layout first; tools/decomp-assist/a23h.attempts.md:135 toggle animation helper descriptor first; tools/decomp-assist/a23h.attempts.md:136 toggle animation helper references to live pane and resource objects
- `src/keyboard/tiInputForm calcCursorPos__Q39textinput9inputform4BaseFff`: tools/decomp-assist/a23h.attempts.md:33 scaled height compound accumulator; tools/decomp-assist/a23h.attempts.md:34 glyph width computed through a const scalar pair; tools/decomp-assist/a23h.attempts.md:35 scaled cursor bounds output references isolate two calculations
- `src/keyboard/tiInputForm create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer`: tools/decomp-assist/a23h.attempts.md:79 textbox metrics preserve complete font-size value; tools/decomp-assist/a23h.attempts.md:80 animation descriptor is a const record reference; tools/decomp-assist/a23h.attempts.md:126 row activation helper receives real row storage and capacity
- `src/keyboard/tiSignWindow create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator`: tools/decomp-assist/a23h.attempts.md:92 animation reference refers directly to the real record; tools/decomp-assist/a23h.attempts.md:93 animation slot cursor advances once per resource; tools/decomp-assist/a23h.attempts.md:94 signed local count preserves bounded descriptor traversal
- `src/keyboard/tiString inputChar__Q39textinput8tistring9DecolatedFw`: tools/decomp-assist/a23h.attempts.md:52 builder append returns current length after postincrement; tools/decomp-assist/a23h.attempts.md:53 newline append and ordinary append use distinct real cursor operations; tools/decomp-assist/a23h.attempts.md:54 literal converter uses builder count reference with explicit newline terminator
- `src/keyboard/tiZiString clearCandidates__Q39textinput8tistring6WithZiFv`: tools/decomp-assist/a23h.attempts.md:40 candidate buffer storage uses three proven typed ranges; tools/decomp-assist/a23h.attempts.md:41 three-range storage with input array-reference lifetime; tools/decomp-assist/a23h.attempts.md:43 separate named subrange pointers at reset boundary
- `src/keyboard/tiZiString setElementBuffer__Q39textinput8tistring6WithZiFv`: tools/decomp-assist/a23h.attempts.md:40 candidate buffer storage uses three proven typed ranges; tools/decomp-assist/a23h.attempts.md:41 three-range storage with input array-reference lifetime; tools/decomp-assist/a23h.attempts.md:43 separate named subrange pointers at reset boundary
- `src/keyboard/tiZiString update__Q39textinput8tistring6WithZiFv`: tools/decomp-assist/a23h.attempts.md:40 candidate buffer storage uses three proven typed ranges; tools/decomp-assist/a23h.attempts.md:41 three-range storage with input array-reference lifetime; tools/decomp-assist/a23h.attempts.md:43 separate named subrange pointers at reset boundary
- `src/scene/address/iplAddress onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface`: tools/decomp-assist/a23h.attempts.md:102 event dispatch pane component helper boundary; tools/decomp-assist/a23h.attempts.md:103 event dispatch separate scene-base receiver; tools/decomp-assist/a23h.attempts.md:104 event dispatch scoped event kind and immutable mail receiver
- `src/scene/address/iplAddress start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface`: tools/decomp-assist/a23h.attempts.md:99 drag texture helper const object and pane references; tools/decomp-assist/a23h.attempts.md:100 drag texture helper const input pointer references; tools/decomp-assist/a23h.attempts.md:101 drag texture helper destination-first pointer arguments
- `src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv`: tools/decomp-assist/a23h.attempts.md:109 address create typed balloon margins; tools/decomp-assist/a23h.attempts.md:110 address create const friend-string receiver; tools/decomp-assist/a23h.attempts.md:111 address create inline aspect-ratio margin selector
- `src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv`: tools/decomp-assist/a23h.attempts.md:27 member string getter with explicit nullable receiver; tools/decomp-assist/a23h.attempts.md:28 typed member-array getter retains array dimensions; tools/decomp-assist/a23h.attempts.md:56 layout pane wrapper with correct one-name signature
- `src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv`: tools/decomp-assist/a23h.attempts.md:112 friend name copy explicit array element and size type; tools/decomp-assist/a23h.attempts.md:113 friend name copy bounded array helper; tools/decomp-assist/a23h.attempts.md:114 friend name copy separate string and name receivers
- `src/scene/cardSequence/iplCardSequence cardThreadMain`: tools/decomp-assist/gk3.attempts.md:89 native OSMessage receive/storage matching exact probeCard: 301/301 instructions; structural/exact (2, 78); pool identical; exact regressions []; reverted.; tools/decomp-assist/gk3.attempts.md:90 queue local before union field assembly matching exact sendCardSlotState: 301/301 instructions; structural/exact (2, 78); pool identical; exact regressions []; reverted.; tools/decomp-assist/gk3.attempts.md:91 signed do/while mounted-file scan following exact clearAllCardFileEntries: 301/301 instructions; structural/exact (2, 78); pool identical; exact regressions []; reverted.
- `src/scene/cardSequence/iplCardSequence loadCardFileIcons`: tools/decomp-assist/gk3.attempts.md:99 const CARDDir input matching read-only icon metadata view: 505/512 instructions; structural/exact (103, 431); pool identical; exact regressions []; reverted.; tools/decomp-assist/gk3.attempts.md:100 native unsigned sector size outputs matching exact refreshCardSlotInfo: 508/512 instructions; structural/exact (66, 436); pool identical; exact regressions []; reverted.; tools/decomp-assist/gk3.attempts.md:101 signed do/while animation speed scan matching clearAllCardFileEntries: 509/512 instructions; structural/exact (71, 423); pool identical; exact regressions []; reverted.
- `src/scene/cardSequence/iplCardSequence runCardMoveOrCopy`: tools/decomp-assist/gk3.attempts.md:107 inline common-sector helper with reference outputs and exact sibling error returns: 608/608 instructions; structural/exact (12, 185); pool identical; exact regressions []; reverted.; tools/decomp-assist/gk3.attempts.md:108 scoped permission result matching exact status-helper local lifetime: 608/608 instructions; structural/exact (12, 176); pool identical; exact regressions []; reverted.; tools/decomp-assist/gk3.attempts.md:109 explicit block count guard following exact sibling native loop locals: 609/608 instructions; structural/exact (24, 498); pool identical; exact regressions []; reverted.
- `src/scene/memoryCard/iplMemoryCardManager _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl`: tools/decomp-assist/ult15.attempts.md:239 const directory and icon metadata views at GX boundaries; tools/decomp-assist/ult15.attempts.md:241 render metadata as mutable typed reference; tools/decomp-assist/ult15.attempts.md:243 linear icon records using actual slot stride and typed field access
- `src/scene/memoryCard/iplMemoryCardManager create_banner__Q33ipl5scene17MemoryCardManagerFUcs`: tools/decomp-assist/ult15.attempts.md:247 const directory and icon metadata views at GX boundaries; tools/decomp-assist/ult15.attempts.md:249 render metadata as mutable typed reference; tools/decomp-assist/ult15.attempts.md:251 linear icon records using actual slot stride and typed field access
- `src/scene/memoryCard/iplMemoryCardManager getBlocks__Q33ipl5scene17MemoryCardManagerFUcs`: tools/decomp-assist/ult22.attempts.md:18 return through signed index parameter after metadata lookup; tools/decomp-assist/ult22.attempts.md:19 single exit after readonly manager selection scope; tools/decomp-assist/ult22.attempts.md:20 metadata value output reference at inline helper boundary
- `src/scene/memoryCard/iplMemoryCardManager getComment__Q33ipl5scene17MemoryCardManagerFUcsi`: tools/decomp-assist/ult22.attempts.md:54 encoded scratch is unsigned byte array with matching trim cursor types; tools/decomp-assist/ult22.attempts.md:55 narrow trailing trim owns scoped read and write cursor declarations; tools/decomp-assist/ult22.attempts.md:56 comment terminator has named character-code type
- `src/scene/memoryCard/iplMemoryCardManager isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs`: tools/decomp-assist/ult22.attempts.md:14 return through byte parameter after metadata lookup; tools/decomp-assist/ult22.attempts.md:15 single exit after readonly manager selection scope; tools/decomp-assist/ult22.attempts.md:16 metadata value output reference at inline helper boundary
- `src/scene/memoryCard/iplMemoryCardManager isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl`: tools/decomp-assist/ult22.attempts.md:34 commuted built-in subscript preserves file-first source operands; tools/decomp-assist/ult22.attempts.md:35 flat typed directory uses shared slot/file element offset; tools/decomp-assist/ult22.attempts.md:36 typed inline directory selector takes file before slot
- `src/scene/memoryCard/iplMemoryCardManager isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl`: tools/decomp-assist/ult22.attempts.md:28 commuted built-in subscript preserves file-first source operands; tools/decomp-assist/ult22.attempts.md:29 flat typed directory uses shared slot/file element offset; tools/decomp-assist/ult22.attempts.md:30 typed inline directory selector takes file before slot
- `src/scene/sdChannelMemory/iplSDMemory create__Q33ipl5scene8SDMemoryFPQ23EGG4HeapPQ33ipl4nand10LayoutFilePQ33ipl5scene15SDChannelSelect`: tools/decomp-assist/a6x.attempts.md:41 entire initial dialog construction and message setup owns helper temporaries; tools/decomp-assist/a6x.attempts.md:42 initial dialog factory receives immutable heap and layout-file bindings; tools/decomp-assist/a6x.attempts.md:43 cached-title scan uses helper with const savedata object reference
- `src/scene/sdChannelMemory/iplSDMemory drawTransferTitles__Q33ipl5scene8SDMemoryFv`: tools/decomp-assist/a6x.attempts.md:26 only body child-alpha traversal uses value-parameter static inline helper; tools/decomp-assist/a6x.attempts.md:28 message splitting and drawing loop owns line temporaries in inline helper; tools/decomp-assist/a6x.attempts.md:32 body alpha helper returns inherited alpha from const source pane
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: tools/decomp-assist/a23h.attempts.md:64 paired usage local stores blocks then bytes; tools/decomp-assist/a23h.attempts.md:65 paired usage member predicate owns threshold reads; tools/decomp-assist/a23h.attempts.md:66 append count and compare through real usage pointers
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: tools/decomp-assist/a23h.attempts.md:64 paired usage local stores blocks then bytes; tools/decomp-assist/a23h.attempts.md:65 paired usage member predicate owns threshold reads; tools/decomp-assist/a23h.attempts.md:66 append count and compare through real usage pointers
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: tools/decomp-assist/a23h.attempts.md:64 paired usage local stores blocks then bytes; tools/decomp-assist/a23h.attempts.md:65 paired usage member predicate owns threshold reads; tools/decomp-assist/a23h.attempts.md:66 append count and compare through real usage pointers
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: tools/decomp-assist/a23h.attempts.md:64 paired usage local stores blocks then bytes; tools/decomp-assist/a23h.attempts.md:65 paired usage member predicate owns threshold reads; tools/decomp-assist/a23h.attempts.md:66 append count and compare through real usage pointers
- `src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv`: tools/decomp-assist/a23h.attempts.md:64 paired usage local stores blocks then bytes; tools/decomp-assist/a23h.attempts.md:65 paired usage member predicate owns threshold reads; tools/decomp-assist/a23h.attempts.md:66 append count and compare through real usage pointers
- `src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv`: tools/decomp-assist/a23h.attempts.md:64 paired usage local stores blocks then bytes; tools/decomp-assist/a23h.attempts.md:65 paired usage member predicate owns threshold reads; tools/decomp-assist/a23h.attempts.md:66 append count and compare through real usage pointers
- `src/scene/sdChannelTitle/iplSDChannelTitle iplSDChannelTitle_flushSaveBeforeExit`: tools/decomp-assist/a6x.attempts.md:53 queued-file publication and reconnect own output-reference helper; tools/decomp-assist/a6x.attempts.md:54 concrete save request submits through const member with heap and manager fields; tools/decomp-assist/a6x.attempts.md:55 heap query returns heap and publishes loaded savedata manager
- `src/scene/setting/iplSetting scanAP__Q33ipl5scene7SettingFv`: tools/decomp-assist/a6x.attempts.md:35 whole state-9 completion transaction moved into inline member; tools/decomp-assist/a6x.attempts.md:36 state-9 static inline query owns BOOL output and referenced index/layout inputs; tools/decomp-assist/a6x.attempts.md:37 const member publishes current animation index and returns layout
- `src/system/iplKeyboard create__Q33ipl8keyboard7ManagerFPQ33ipl4nand4FilePQ23EGG4Heap`: tools/decomp-assist/a6x.attempts.md:71 layout allocator installation returns owned allocator through inline factory; tools/decomp-assist/a6x.attempts.md:72 destination switch owns reloadable MemoManager reference boundary; tools/decomp-assist/a6x.attempts.md:73 three MemoSetting assignments retain their order inside inline output transaction
- `src/system/odh LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli`: tools/decomp-assist/a6x.attempts.md:59 RGB565 helper returns meaningful three-component RGB5 aggregate; tools/decomp-assist/a6x.attempts.md:60 RGB565 tile-address helper reads source and index through const references; tools/decomp-assist/a6x.attempts.md:61 video sample conversion and pedestal subtraction own static inline boundary
- `src/system/odh huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl`: tools/decomp-assist/a6x.attempts.md:65 DC Huffman walk publishes leaf category by reference and returns consumed depth; tools/decomp-assist/a6x.attempts.md:66 DC and AC magnitude tree walks share the same bounded inline helper; tools/decomp-assist/a6x.attempts.md:67 post-DC byte alignment updates the meaningful cursor state through inline references
- `src/utility/iplESMisc DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap`: tools/decomp-assist/a6x.attempts.md:47 both three-slot save-name validation loops share pure inline result helper; tools/decomp-assist/a6x.attempts.md:48 single save-slot validation owns six short-circuit name checks; tools/decomp-assist/a6x.attempts.md:49 zeroing and read helper retains allocated buffer through const reference
ATTEMPT {"build": 0, "functions": [{"diffs": 0, "insns": [81, 81], "name": "clearCandidates__Q39textinput8tistring6WithZiFv", "percent": 100.0}, {"diffs": 126, "insns": [446, 446], "name": "update__Q39textinput8tistring6WithZiFv", "percent": 98.3139}, {"diffs": 0, "insns": [65, 65], "name": "setElementBuffer__Q39textinput8tistring6WithZiFv", "percent": 100.0}], "gained": ["clearCandidates__Q39textinput8tistring6WithZiFv", "setElementBuffer__Q39textinput8tistring6WithZiFv"], "label": "both word copy helpers own independent input and result row cursors", "lost": [], "measures": {"fuzzy_match_percent": 99.45349, "matched_code": "3720", "matched_code_percent": 67.58721, "matched_data": "7680", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "5504", "total_data": "7680", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "bc0131073a6b", "trial": 32, "unit": "src/keyboard/tiZiString"}
ATTEMPT {"build": 0, "functions": [{"diffs": 58, "insns": [185, 185], "name": "KPADInit", "percent": 97.810814}], "gained": [], "label": "preserve the full 64-byte rotation object as its natural four-by-four matrix type", "lost": [], "measures": {"fuzzy_match_percent": 99.875916, "matched_code": "12316", "matched_code_percent": 94.33211, "matched_data": "8032", "matched_data_percent": 100.0, "matched_functions": 28, "matched_functions_percent": 96.55172, "total_code": "13056", "total_data": "8032", "total_functions": 29, "total_units": 1}, "pool": "POOL IDENTICAL up to 0 (mine=0 base=0)", "pool_ok": true, "source_hash": "3c6a31371288", "trial": 33, "unit": "libs/RVL_SDK/src/kpad/KPAD"}
## Disposition of the other global-address candidates
- CHANSVm: scUndefinedUtf16 is a compiler-used anchor for separately declared UTF16 strings and date-name tables. No wrapper combines those objects. VmDateDtor's seven differences are ordering of weekday/month argument preparation, not missing object boundaries. The other open functions use separate scalar constants, function/jump tables or register-only loops.
- BS2Mach: Block, DiskID, TicketViews and loader state already have separate declarations. The shared data anchor covers ordinary diagnostic literals. The two startup prologues and CheckBS2CommandStatus have scheduling differences; BS2Tick also has hardware-address and callback scheduling differences. No mixed source global remains to split.
- BS2Update: Flags0/Flags1, thread/stack and the two update headers already have separate globals. The 0x500 lbl_81646978 region is a literal pool. No source struct wraps these objects.
- iplKeyboard: two separate language tables contain repeated EZTXLanguageEntry records and terminators. No row straddles another global. iplSDMemory's large unnamed regions are string pools, with separate save/system state owned elsewhere.
- iplCardSequence: sThread is a pointer to one allocated CardThreadState, not an inferred static aggregate. iplMemoryCardManager's seven open functions do not reference global objects. They cannot use lever 13 without changing a different ownership model.
- iplAddress/iplAddressEdit: system and sound globals are outside this leaf. The local 0x140 sFriendInfo is passed to whole-object memset/memcpy and typed NWC24 APIs, so its fields do not prove separate globals. The two-instruction update_friendinfo difference exchanges preparation of a local name and the friend-name address.
- iplSDChannelSelect/iplSDChannelTitle: relevant global references are to the existing System::Arg; their collector/flush differences concern pointer reload order or local indexing, not owned object boundaries. iplSetting::scanAP reads only this object's fields at its four remaining differences. iplESMisc references a diagnostic literal, and odh references scalar floating constants.
- tiCellPhone/tiInputForm/tiSignWindow: pane/animation/language data are indexed arrays of uniform records. Their register allocation differs inside record consumers, but no interleaved independently addressed object is present. tiString has no global-object relocation in its open function.
- www_wiisetting: keyboard-language LUTs are independent homogeneous tables. The near match differs in the saved pointer/index registers for masked values and the European table; the tables do not contain unrelated state. sWiiData is already an independent typed object.
- NHTTP_recvbuf/NHTTP_stdlib_RVL/SOBasic: open functions have no global data references. Other requested NHTTP units are already exact. NWC24InitDlTask refers to the existing NWC24WorkP pointer and a literal; no owned aggregate is implicated.
- CDBRecordEncrypt references an error literal. Its two 0x40 crypt buffers are already independent globals. AES has separate encryption/decryption and substitution tables. MD5 has separate 64-word constant and 48-word index tables and advances their cursors across the relevant rounds.
- JPEG IDCT/exif functions have no global-object relocations; converter selection functions reference function addresses, and open pixel converters read caller-owned buffers. iqdec uses two separate Zigzag lookup arrays, not a merged object. No eligible boundary was found.
- lyt_window: flipInfos is a repeated TextureFlipInfo array. SDK pdm_partition's open function has no global-object references; the RevoEX copy is exact.
- sd_drv: g_pfd_sddrv_info is a typed state object; g_pfd_sddev is a 0x40 storage union around the 0x28 SDDev. No access identifies a second object in the trailing 0x18 bytes, so no split or metadata shrink is justified. The sector buffer and size-dependence table are already separate globals. The RevoEX driver copy is exact.
- nup: remaining differences use caller-owned title/context data and literal/scalar references. No large owned global is implicated.
- kbd_lib: kbdData is indexed at the target 0x268 stride for four channels. Command and callback arrays are already separate. The key-map storage is uniform; no reference proves a new boundary. The LED callback's remaining branch direction has no global-layout cause.
- KPAD: initial_rotation_matrix has no target use of the last 0x10 bytes or relocation naming another object there. A natural Mtx44 representation preserves all data but leaves KPADInit at 185/185 and 58 differences. Restored. No speculative object or alignment was added.
The scan checked every open function's address-forming instruction differences and referenced objects. Most apparent large-object hits were jump tables, function symbols, literal pools or real repeated arrays. Only tiZiString supplied a productive, provable split. tiCandidateBox's real table/string separation compiled in three forms without an exact gain; all were restored.
## Remaining tiZiString work
After the split, update has 446/446 instructions and 85 differences at 98.36996%. Trials 18-32 cover distinct search, context, input-copy, output-view, row-array and word-copy boundaries. The best context helper plus result-first const cursor reached 99.524666% and 33 differences, still not exact. It exchanges saved zero/one registers and final input/output/index registers, plus the two phone-output increment instructions. All fuzzy-only update helpers, the row-array experiment, and unrelated type experiments were restored. Only the two exact matches remain.
## Final clean validation
Full non-quick gate across all 51 audited units, baseline 38cb84c8, exited 0. Log: /tmp/agg-sweep/final.full-gate.txt. The gate removed and rebuilt build/43U. Fresh progress/report/ok Ninja targets passed afterward.
No unit other than tiZiString changed any report measure. All 1027 unit data totals stayed unchanged. No regressions, forbidden additions or readability warnings.
Reference-object proof rerun after the clean build: 1027 objects, 109496 resolved relocations, changed: []. Every allocated section retains its type, size and bytes; every relocation retains its source position/type and resolved destination section + value + addend.
clearCandidates: 81/81 instructions, diffs 0, exact-name objdiff 100.0%. setElementBuffer: 65/65 instructions, diffs 0, exact-name objdiff 100.0%.
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d.
Fresh decomp_status output: /tmp/agg-sweep/final.status.json and /tmp/agg-sweep/final.status.md. The terminal project completion checker still returns DECOMPLETE_FAIL: overall code exact 2773328/2995176, linked 2282392/2995176, data exact 1831712/1832684, linked 1542216/1832684. This matching-only sweep does not claim project or unit completion.
Final gate excerpts (verbatim):
```
[src/keyboard/tiZiString] pool: IDENTICAL
[src/keyboard/tiZiString] objdiff: code 3720/5504 data 7680/7680 functions 28/29 fuzzy 99.4717 linked code 0
[src/keyboard/tiZiString] instruction-exact functions: 28/29
[src/keyboard/tiZiString] section .bss size 7296 match 100.0
[src/keyboard/tiZiString] section .data size 328 match 100.0
[src/keyboard/tiZiString] section .rodata size 56 match 100.0
[src/keyboard/tiZiString] section .text size 5504 match 99.47166
[src/keyboard/tiZiString] below 100: update__Q39textinput8tistring6WithZiFv 98.36996
[src/keyboard/tiZiString] baseline: code 3136/5504 data 7680 functions 26 fuzzy 98.3241
regressions vs baseline: 0
global matched_code_percent: 92.57366 -> 92.59315
global fuzzy_match_percent: 99.73627 -> 99.73837
global complete_code_percent: 76.20227 -> 76.20227
global matched_data_percent: 99.94696 -> 99.94696
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
GATE PASS
```
### Every audited unit: before -> after
| Unit | Instruction-exact functions | Exact code bytes | Exact data bytes |
| --- | --- | --- | --- |
| src/system/iplKeyboard | 31 -> 31 / 32 | 4752 -> 4752 / 6024 | 1184 -> 1184 / 1184 |
| src/system/odh | 26 -> 26 / 28 | 12876 -> 12876 / 14684 | 6360 -> 6360 / 6360 |
| src/utility/iplESMisc | 30 -> 30 / 31 | 9404 -> 9404 / 11200 | 4416 -> 4416 / 4416 |
| src/iplwww/www_wiisetting | 20 -> 20 / 21 | 3740 -> 3740 / 6176 | 3856 -> 3856 / 3856 |
| src/BS2/BS2Mach | 25 -> 25 / 29 | 5112 -> 5112 / 16980 | 158528 -> 158528 / 158528 |
| src/BS2/BS2Update | 9 -> 9 / 10 | 400 -> 400 / 4052 | 10488 -> 10488 / 10488 |
| src/scene/address/iplAddress | 98 -> 98 / 101 | 22016 -> 22016 / 23988 | 1964 -> 1964 / 1964 |
| src/scene/address/iplAddressEdit | 91 -> 91 / 94 | 23344 -> 23344 / 27112 | 2560 -> 2560 / 2560 |
| src/scene/memoryCard/iplMemoryCardManager | 19 -> 19 / 26 | 2932 -> 2932 / 5396 | 0 -> 0 / 0 |
| src/scene/cardSequence/iplCardSequence | 27 -> 27 / 30 | 4168 -> 4168 / 9852 | 1496 -> 1496 / 1496 |
| src/scene/sdChannelSelect/iplSDChannelSelect | 123 -> 123 / 129 | 30344 -> 30344 / 33828 | 2960 -> 2960 / 2960 |
| src/scene/sdChannelTitle/iplSDChannelTitle | 68 -> 68 / 69 | 18476 -> 18476 / 18624 | 1976 -> 1976 / 1976 |
| src/scene/sdChannelMemory/iplSDMemory | 63 -> 63 / 66 | 14812 -> 14812 / 20872 | 3344 -> 3344 / 3344 |
| src/scene/setting/iplSetting | 110 -> 110 / 112 | 36796 -> 36796 / 37884 | 5696 -> 5696 / 5696 |
| src/keyboard/tiCellPhone | 85 -> 85 / 86 | 17696 -> 17696 / 19028 | 3860 -> 3860 / 3860 |
| src/keyboard/tiInputForm | 217 -> 217 / 221 | 47928 -> 47928 / 50656 | 3772 -> 3772 / 3772 |
| src/keyboard/tiCandidateBox | 109 -> 109 / 112 | 21728 -> 21728 / 24000 | 4652 -> 4652 / 4652 |
| src/keyboard/tiSignWindow | 55 -> 55 / 56 | 6300 -> 6300 / 7184 | 3468 -> 3468 / 3468 |
| src/keyboard/tiString | 41 -> 41 / 42 | 4632 -> 4632 / 5176 | 288 -> 288 / 288 |
| src/keyboard/tiZiString | 26 -> 28 / 29 | 3136 -> 3720 / 5504 | 7680 -> 7680 / 7680 |
| src/channelScript/CHANSVm | 224 -> 224 / 233 | 39908 -> 39908 / 53564 | 6904 -> 6904 / 6904 |
| libs/RevoEX/src/cdb/CDBRecord | 28 -> 28 / 29 | 5940 -> 5940 / 7076 | 2640 -> 2640 / 2640 |
| libs/RevoEX/src/net/md5 | 3 -> 3 / 4 | 600 -> 600 / 1824 | 456 -> 456 / 456 |
| libs/RevoEX/src/net/aes | 7 -> 7 / 9 | 1116 -> 1116 / 2752 | 2800 -> 2800 / 2800 |
| libs/RevoEX/src/nhttp/NHTTP_bgnend | 9 -> 9 / 9 | 880 -> 880 / 880 | 136 -> 136 / 136 |
| libs/RevoEX/src/nhttp/NHTTP_control | 3 -> 3 / 3 | 420 -> 420 / 420 | 32 -> 32 / 32 |
| libs/RevoEX/src/nhttp/NHTTP_list | 5 -> 5 / 5 | 592 -> 592 / 592 | 0 -> 0 / 0 |
| libs/RevoEX/src/nhttp/NHTTP_os_RVL | 11 -> 11 / 11 | 548 -> 548 / 548 | 72 -> 72 / 72 |
| libs/RevoEX/src/nhttp/NHTTP_recvbuf | 6 -> 6 / 7 | 1196 -> 1196 / 1692 | 0 -> 0 / 0 |
| libs/RevoEX/src/nhttp/NHTTP_request | 7 -> 7 / 7 | 2512 -> 2512 / 2512 | 48 -> 48 / 48 |
| libs/RevoEX/src/nhttp/NHTTP_response | 4 -> 4 / 4 | 1044 -> 1044 / 1044 | 16 -> 16 / 16 |
| libs/RevoEX/src/nhttp/NHTTP_socket_RVL | 10 -> 10 / 10 | 2140 -> 2140 / 2140 | 0 -> 0 / 0 |
| libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL | 12 -> 12 / 14 | 1864 -> 1864 / 2248 | 112 -> 112 / 112 |
| libs/RevoEX/src/nhttp/NHTTP_thread | 26 -> 26 / 26 | 11292 -> 11292 / 11292 | 504 -> 504 / 504 |
| libs/RevoEX/src/nwc24/NWC24Download | 29 -> 29 / 30 | 11920 -> 11920 / 12496 | 80 -> 80 / 80 |
| libs/RevoEX/src/so/SOBasic | 21 -> 21 / 22 | 3836 -> 3836 / 4088 | 144 -> 144 / 144 |
| libs/RevoEX/src/vf/dskmng/pdm_partition | 19 -> 19 / 19 | 6108 -> 6108 / 6108 | 0 -> 0 / 0 |
| libs/RevoEX/src/vf/develop/sd_drv | 16 -> 16 / 16 | 3608 -> 3608 / 3608 | 992 -> 992 / 992 |
| libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var | 0 -> 0 / 2 | 0 -> 0 / 2844 | 0 -> 0 / 0 |
| libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse | 3 -> 3 / 6 | 1348 -> 1348 / 5088 | 0 -> 0 / 0 |
| libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8 | 2 -> 2 / 13 | 15164 -> 15164 / 15948 | 0 -> 0 / 0 |
| libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 | 7 -> 7 / 13 | 2648 -> 2648 / 6184 | 0 -> 0 / 0 |
| libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 | 2 -> 2 / 13 | 660 -> 660 / 6596 | 0 -> 0 / 0 |
| libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 | 0 -> 0 / 1 | 0 -> 0 / 1104 | 0 -> 0 / 0 |
| libs/NW4R/src/lyt/lyt_window | 20 -> 20 / 21 | 9848 -> 9848 / 11352 | 316 -> 316 / 316 |
| libs/RVL_SDK/src/kpad/KPAD | 28 -> 28 / 29 | 12316 -> 12316 / 13056 | 8032 -> 8032 / 8032 |
| libs/RVL_SDK/src/wad/wad | 35 -> 35 / 40 | 13180 -> 13180 / 24500 | 528 -> 528 / 528 |
| libs/RVL_SDK/src/fa/pdm_partition | 19 -> 19 / 20 | 3380 -> 3380 / 3716 | 0 -> 0 / 0 |
| libs/RVL_SDK/src/fa/driver/sd_drv | 22 -> 22 / 26 | 9260 -> 9260 / 11760 | 3592 -> 3592 / 3592 |
| libs/RVL_SDK/src/nup/nup | 20 -> 20 / 23 | 7748 -> 7748 / 10764 | 1720 -> 1720 / 1720 |
| libs/RVL_SDK/src/kbd/kbd_lib | 17 -> 17 / 21 | 3728 -> 3728 / 5764 | 5296 -> 5296 / 5296 |
### Fresh open-function list and attempt coverage
104 functions remain below 100% in these units. Every entry has at least three distinct prior compiled source attempts cited above; those historical attempts were not rerun or counted as new sweep trials. The current sweep added 33 compiled trials, retained two exact functions, and restored all other source experiments. The audit and disposition sections record why a new object split is unsupported for the other units.
- `src/system/iplKeyboard create__Q33ipl8keyboard7ManagerFPQ33ipl4nand4FilePQ23EGG4Heap`: 94.00944%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/system/odh LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli`: 98.08219%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/system/odh huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl`: 95.57189%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/utility/iplESMisc DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap`: 99.14254%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/iplwww/www_wiisetting Getter___Q23www10wiisettingFP14WWWJSPluginObjPCcP16WWWJSPluginValue`: 99.86043%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/BS2/BS2Mach BS2StartGame`: 98.72774%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/BS2/BS2Mach BS2StartGCGame`: 97.82895%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/BS2/BS2Mach CheckBS2CommandStatus`: 99.50739%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/BS2/BS2Mach BS2Tick`: 98.799484%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/BS2/BS2Update UpdateThread`: 94.83023%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/address/iplAddress start_drag_event__Q33ipl5scene7AddressFPCcPCQ33ipl10controller9Interface`: 99.84305%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/address/iplAddress onEventDerived__Q33ipl5scene7AddressFUlUlPCQ33ipl10controller9Interface`: 98.42593%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/address/iplAddressEdit create__Q33ipl5scene11AddressEditFv`: 97.5561%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/address/iplAddressEdit get_friendinfo__Q33ipl5scene11AddressEditFv`: 88.03571%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/address/iplAddressEdit update_friendinfo__Q33ipl5scene11AddressEditFv`: 99.42105%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/memoryCard/iplMemoryCardManager isMoveEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl`: 99.830505%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/memoryCard/iplMemoryCardManager isCopyEnable__Q33ipl5scene17MemoryCardManagerFUcUlPl`: 99.830505%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/memoryCard/iplMemoryCardManager isBannerEnable__Q33ipl5scene17MemoryCardManagerFUcs`: 92.30769%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/memoryCard/iplMemoryCardManager _create_icon__Q33ipl5scene17MemoryCardManagerFUcsl`: 87.55%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/memoryCard/iplMemoryCardManager getComment__Q33ipl5scene17MemoryCardManagerFUcsi`: 98.94309%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/memoryCard/iplMemoryCardManager create_banner__Q33ipl5scene17MemoryCardManagerFUcs`: 90.42453%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/memoryCard/iplMemoryCardManager getBlocks__Q33ipl5scene17MemoryCardManagerFUcs`: 92.0%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/cardSequence/iplCardSequence cardThreadMain`: 97.9402%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/cardSequence/iplCardSequence loadCardFileIcons`: 90.37305%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/cardSequence/iplCardSequence runCardMoveOrCopy`: 97.88651%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelSelect/iplSDChannelSelect create__Q33ipl5scene15SDChannelSelectFv`: 97.73972%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: 97.81188%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesFromNandUsage__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: 97.833336%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesByChannelOrder__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: 98.007935%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelSelect/iplSDChannelSelect collectTitlesBySpecialChannels__Q33ipl5scene15SDChannelSelectFPClPClPUxPcPUl`: 97.55125%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelSelect/iplSDChannelSelect flushSaveDataAndMountSD__Q33ipl5scene15SDChannelSelectFv`: 99.65714%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelTitle/iplSDChannelTitle iplSDChannelTitle_flushSaveBeforeExit`: 98.5946%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelMemory/iplSDMemory create__Q33ipl5scene8SDMemoryFPQ23EGG4HeapPQ33ipl4nand10LayoutFilePQ33ipl5scene15SDChannelSelect`: 99.15884%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/sdChannelMemory/iplSDMemory drawTransferTitles__Q33ipl5scene8SDMemoryFv`: 93.456764%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/scene/setting/iplSetting scanAP__Q33ipl5scene7SettingFv`: 99.20221%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiCellPhone create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator`: 99.8949%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiInputForm calcCursorPos__Q39textinput9inputform4BaseFff`: 93.05215%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiInputForm create__Q39textinput9inputform12LayoutByNW4RFP12MEMAllocatorPQ39textinput9inputform10EditBuffer`: 96.40169%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiCandidateBox create__Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator`: 95.99148%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiCandidateBox createAnmPane___Q39textinput12candidatebox12LayoutByNW4RFP12MEMAllocator`: 98.49537%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiSignWindow create__Q49textinput8keyboard10signwindow12LayoutByNW4RFP12MEMAllocator`: 99.86425%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiString inputChar__Q39textinput8tistring9DecolatedFw`: 90.757355%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/keyboard/tiZiString update__Q39textinput8tistring6WithZiFv`: 98.36996%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm CHANSVmConvertToFloatFromStr`: 97.59036%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm VmDateDtor`: 94.96703%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm VmStringSplit`: 98.04054%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm CHANSVmFormatString`: 99.84919%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm VmBlobGetHexString`: 98.71951%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm VmBlobPackCommon`: 97.949104%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm VmBlobUnpack`: 98.452614%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm VmWinEmuWrite`: 99.62687%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `src/channelScript/CHANSVm CHANSVmStep`: 96.98723%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/cdb/CDBRecord CDBRecordEncrypt`: 99.19014%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/net/md5 ProcessBlock`: 95.55556%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/net/aes AESiEncryptBlock`: 65.81013%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/net/aes AESiDecryptBlock`: 78.95618%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/nhttp/NHTTP_recvbuf NHTTPi_compareTokenN_HdrRecvBuf`: 97.32258%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL NHTTPi_strnicmp`: 99.76471%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/nhttp/NHTTP_stdlib_RVL NHTTPi_compareToken`: 99.73333%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/nwc24/NWC24Download NWC24InitDlTask`: 98.923615%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RevoEX/src/so/SOBasic SOGetSockName`: 96.666664%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var TMCJPEGDEC_IdctBlock_Lumi`: 86.178986%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var TMCJPEGDEC_IdctBlock_Col`: 92.927315%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse TMCJPEGDEC_exif_parse`: 99.43396%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse TMCJPEGDEC_IFD0_tag_parse`: 99.49065%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse TMCJPEGDEC_IFD1_tag_parse`: 96.14876%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8 TMCJPEGDEC_set_converterY8U8V8`: 92.78571%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_set_converterRGB565`: 93.91765%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV411toRGB565`: 91.17512%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV411toRGB565edge`: 95.42453%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV422toRGB565`: 97.132355%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV420toRGB565`: 95.42553%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565 TMCJPEGDEC_converterYUV420toRGB565edge`: 97.850876%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_set_converterRGBA8`: 93.91765%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV411toRGBA8`: 82.70661%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV411toRGBA8edge`: 94.28571%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV422toRGBA8`: 88.195946%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV422toRGBA8edge`: 92.0354%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV420toRGBA8`: 90.973854%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV420toRGBA8edge`: 87.5%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV211toRGBA8`: 91.15385%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV211toRGBA8edge`: 92.17391%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV444toRGBA8`: 90.670105%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8 TMCJPEGDEC_converterYUV444toRGBA8edge`: 88.90909%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32 TMCJPEGDEC_decode_iquant`: 99.710144%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/NW4R/src/lyt/lyt_window DrawFrame__Q34nw4r3lyt6WindowFRCQ34nw4r4math4VEC2RCQ44nw4r3lyt6Window5FrameRCQ34nw4r3lyt15WindowFrameSizeUc`: 98.17819%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/kpad/KPAD KPADInit`: 97.810814%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/wad/wad WADImportGetBlocks`: 94.24161%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/wad/wad WADImportEx`: 99.02269%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/wad/wad WAD_815C1288`: 96.803276%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/wad/wad WADBackupEx`: 97.385124%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/wad/wad WADImportDVDExForBS`: 97.49049%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/fa/pdm_partition pdm_part_is_master_boot_sector`: 87.39286%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_init`: 93.125%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_finalize`: 92.63158%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_store_mbr_buf`: 99.75247%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/fa/driver/sd_drv pfd_sddrv_build_fat32_mbr_bpb`: 95.202705%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/nup/nup __nupParseServerInfo__FP14NUPContextInfoPcPcUx`: 98.108406%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/nup/nup __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion`: 99.35583%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/nup/nup __nupGetTitleSize__FP12NUPTitleInfo`: 99.100716%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/kbd/kbd_lib kbdEventHandler`: 99.83871%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/kbd/kbd_lib kbdProcMod`: 99.90234%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/kbd/kbd_lib kbd_led_handler`: 99.72%; three historical attempts verified; see per-unit audit/disposition and coverage above.
- `libs/RVL_SDK/src/kbd/kbd_lib KBDSetModState`: 99.40476%; three historical attempts verified; see per-unit audit/disposition and coverage above.
The original descriptive names of the two newly separated tiZiString buffers are unknown. ElementWorkBuffer and PredictionBuffer are inferred from the clear/conversion/search consumers. Their extents and locations preserve the measured section bytes, all canonical relocation targets and the full unit data total. No padding, forced objects or link-status changes were introduced.

View File

@@ -0,0 +1,79 @@
# 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

@@ -0,0 +1,83 @@
# 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

@@ -0,0 +1,71 @@
# 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

@@ -0,0 +1,142 @@
# 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

@@ -0,0 +1,149 @@
# 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

@@ -0,0 +1,20 @@
# 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

@@ -0,0 +1,158 @@
# 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

@@ -0,0 +1,290 @@
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

@@ -0,0 +1,144 @@
# 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