|
|
|
|
@@ -3939,3 +3939,924 @@ Zi8PrepareMatch 96.319145%: target component branch stores a local flag absent i
|
|
|
|
|
|
|
|
|
|
Changed files: libs/RevoEX/src/nwc24/NWC24MsgCommit.c; libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c; tools/decomp-assist/fz15.attempts.md. Exact source commits: 36ff398b and e4b0d291. Final log-only commit follows this audit.
|
|
|
|
|
Uncertainty: original source forms for converter shared-base preservation, keyboard allocator/LED loop behavior, and the zprepare component branch remain unresolved. No unsupported volatile declaration or dummy component flag added. zprepare data remains 8/68 because the unpaired compiler table points into nonexact code, with no legitimate stable source-name rename or extent correction.
|
|
|
|
|
|
|
|
|
|
# Xhigh continuation fz15h
|
|
|
|
|
Starting fresh branch agent/w1002/sol-fz15h-xhigh from 0d9b03878228a086954abc59b964164b0f7db5f2. Read AGENTS.md and unslop. Six units owned; NWC18/18 is landed and outside this round.
|
|
|
|
|
Initial pool libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8: POOL IDENTICAL up to 0 (mine=0 base=0)
|
|
|
|
|
Initial pool libs/RVL_SDK/src/kbd/kbd_lib: POOL IDENTICAL up to 0 (mine=0 base=0)
|
|
|
|
|
Initial pool libs/RVLMiddleware/eZiText/src/clib/zprepare: POOL IDENTICAL up to 0 (mine=0 base=0)
|
|
|
|
|
Initial pool libs/RVLMiddleware/eZiText/src/clib/zi8match: POOL IDENTICAL up to 0 (mine=0 base=0)
|
|
|
|
|
Initial pool src/keyboard/tiCellPhone: POOL IDENTICAL up to 76 (mine=76 base=76)
|
|
|
|
|
Initial pool libs/RVL_SDK/src/nup/nup: POOL IDENTICAL up to 28 (mine=28 base=28)
|
|
|
|
|
|
|
|
|
|
## fz15h TMCJPEGDEC_set_converterY8U8V8 diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 195/196 instructions; structural/exact (41, 195); first differences [(1, ('stw', 'r31, 0xc(r1)'), ('addi', 'r4, r3, 0x1858')), (2, ('lbz', 'r0, 0x17fc(r3)'), ('stw', 'r31, 0xc(r1)')), (3, ('lwz', 'r4, 0x19e4(r3)'), ('lbz', 'r0, 0x17fc(r3)')), (4, ('cmpwi', 'r0, 3'), ('lwz', 'r5, 0x19e4(r3)')), (5, ('beq', '324'), ('cmpwi', 'r0, 3')), (6, ('bge', '28'), ('beq', '324'))].
|
|
|
|
|
src 0x30c base 0x310 insns 195/196
|
|
|
|
|
--- insert mine 1:1 base 1:2
|
|
|
|
|
B 1 addi r4, r3, 0x1858
|
|
|
|
|
--- replace mine 3:4 base 4:5
|
|
|
|
|
M 3 lwz r4, 0x19e4(r3)
|
|
|
|
|
B 4 lwz r5, 0x19e4(r3)
|
|
|
|
|
--- replace mine 18:19 base 19:108
|
|
|
|
|
M 18 addi r11, r3, 0x185c
|
|
|
|
|
B 19 addi r11, r4, 4
|
|
|
|
|
B 20 lis r31, 0
|
|
|
|
|
B 21 lis r12, 0
|
|
|
|
|
B 22 add r10, r11, r0
|
|
|
|
|
B 23 addi r7, r4, 0x104
|
|
|
|
|
B 24 add r9, r10, r0
|
|
|
|
|
B 25 addi r6, r4, 0x144
|
|
|
|
|
B 26 add r8, r9, r0
|
|
|
|
|
B 27 addi r31, r31, 0
|
|
|
|
|
B 28 addi r12, r12, 0
|
|
|
|
|
B 29 li r4, 0x20
|
|
|
|
|
B 30 li r0, 0
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h kbdEventHandler diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 186/186 instructions; structural/exact (0, 5); first differences [(35, ('lbz', 'r3, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r30, 0'), ('lis', 'r3, 0')), (38, ('addi', 'r0, r3, 0xff'), ('addi', 'r0, r5, 0xff')), (39, ('addi', 'r30, r30, 0'), ('addi', 'r3, r3, 0')), (42, ('add', 'r30, r30, r4'), ('add', 'r30, r3, r4'))].
|
|
|
|
|
src 0x2e8 base 0x2e8 insns 186/186
|
|
|
|
|
diffs 5: [35, 36, 38, 39, 42]
|
|
|
|
|
35 M lbz r3, 2(r4)
|
|
|
|
|
B lbz r5, 2(r4)
|
|
|
|
|
36 M lis r30, 0
|
|
|
|
|
B lis r3, 0
|
|
|
|
|
38 M addi r0, r3, 0xff
|
|
|
|
|
B addi r0, r5, 0xff
|
|
|
|
|
39 M addi r30, r30, 0
|
|
|
|
|
B addi r3, r3, 0
|
|
|
|
|
42 M add r30, r30, r4
|
|
|
|
|
B add r30, r3, r4
|
|
|
|
|
|
|
|
|
|
## fz15h kbdProcMod diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 256/256 instructions; structural/exact (0, 4); first differences [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))].
|
|
|
|
|
src 0x400 base 0x400 insns 256/256
|
|
|
|
|
diffs 4: [245, 246, 247, 248]
|
|
|
|
|
245 M add r5, r4, r31
|
|
|
|
|
B add r4, r4, r31
|
|
|
|
|
246 M lwz r4, 0x220(r5)
|
|
|
|
|
B lwz r5, 0x220(r4)
|
|
|
|
|
247 M rlwimi r0, r4, 0, 0x1a, 0x1f
|
|
|
|
|
B rlwimi r0, r5, 0, 0x1a, 0x1f
|
|
|
|
|
248 M stw r0, 0x220(r5)
|
|
|
|
|
B stw r0, 0x220(r4)
|
|
|
|
|
|
|
|
|
|
## fz15h kbd_led_handler diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 24/25 instructions; structural/exact (13, 21); first differences [(1, ('slwi', 'r8, r4, 3'), ('lis', 'r6, 0')), (2, ('addi', 'r5, r5, 0'), ('slwi', 'r0, r4, 3')), (3, ('lis', 'r7, 0'), ('li', 'r8, 0')), (4, ('lwzx', 'r0, r5, r8'), ('addi', 'r5, r5, 0')), (5, ('li', 'r6, 0'), ('slwi', 'r7, r4, 5')), (6, ('slwi', 'r4, r4, 5'), ('lwzx', 'r0, r5, r0'))].
|
|
|
|
|
src 0x60 base 0x64 insns 24/25
|
|
|
|
|
--- replace mine 1:2 base 1:4
|
|
|
|
|
M 1 slwi r8, r4, 3
|
|
|
|
|
B 1 lis r6, 0
|
|
|
|
|
B 2 slwi r0, r4, 3
|
|
|
|
|
B 3 li r8, 0
|
|
|
|
|
--- replace mine 3:10 base 5:10
|
|
|
|
|
M 3 lis r7, 0
|
|
|
|
|
M 4 lwzx r0, r5, r8
|
|
|
|
|
M 5 li r6, 0
|
|
|
|
|
M 6 slwi r4, r4, 5
|
|
|
|
|
M 7 addi r7, r7, 0
|
|
|
|
|
M 8 cmplw r0, r6
|
|
|
|
|
M 9 stwx r6, r7, r4
|
|
|
|
|
B 5 slwi r7, r4, 5
|
|
|
|
|
B 6 lwzx r0, r5, r0
|
|
|
|
|
B 7 addi r6, r6, 0
|
|
|
|
|
B 8 stwx r8, r6, r7
|
|
|
|
|
B 9 cmplw r0, r8
|
|
|
|
|
--- replace mine 12:13 base 12:15
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h KBDSetLedsAsync diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 80/81 instructions; structural/exact (14, 70); first differences [(7, ('mr', 'r26, r5'), ('mr', 'r26, r3')), (8, ('mr', 'r27, r6'), ('mr', 'r27, r5')), (10, ('addi', 'r31, r31, 0'), ('mr', 'r28, r6')), (11, ('bne', '12'), ('addi', 'r31, r31, 0')), (12, ('li', 'r3, 2'), ('bne', '12')), (13, ('b', '244'), ('li', 'r3, 2'))].
|
|
|
|
|
src 0x140 base 0x144 insns 80/81
|
|
|
|
|
--- replace mine 7:9 base 7:9
|
|
|
|
|
M 7 mr r26, r5
|
|
|
|
|
M 8 mr r27, r6
|
|
|
|
|
B 7 mr r26, r3
|
|
|
|
|
B 8 mr r27, r5
|
|
|
|
|
--- insert mine 10:10 base 10:11
|
|
|
|
|
B 10 mr r28, r6
|
|
|
|
|
--- replace mine 18:19 base 19:20
|
|
|
|
|
M 18 mulli r30, r3, 0x268
|
|
|
|
|
B 19 mulli r3, r3, 0x268
|
|
|
|
|
--- replace mine 20:21 base 21:22
|
|
|
|
|
M 20 add r3, r0, r30
|
|
|
|
|
B 21 add r3, r0, r3
|
|
|
|
|
--- replace mine 28:29 base 29:30
|
|
|
|
|
M 28 clrlwi r28, r4, 0x18
|
|
|
|
|
B 29 clrlwi r30, r4, 0x18
|
|
|
|
|
--- replace mine 31:32 base 32:33
|
|
|
|
|
M 31 addi r4, r31, 0x400
|
|
|
|
|
B 32 addi r6, r31, 0x400
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h KBDSetLeds diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 75/79 instructions; structural/exact (19, 75); first differences [(4, ('stw', 'r30, 0x18(r1)'), ('mr', 'r31, r3')), (5, ('stw', 'r29, 0x14(r1)'), ('stw', 'r30, 0x18(r1)')), (6, ('lwz', 'r0, 0(0)'), ('stw', 'r29, 0x14(r1)')), (7, ('cmpwi', 'r0, 0'), ('lwz', 'r0, 0(0)')), (8, ('bne', '12'), ('cmpwi', 'r0, 0')), (9, ('li', 'r3, 2'), ('bne', '12'))].
|
|
|
|
|
src 0x12c base 0x13c insns 75/79
|
|
|
|
|
--- insert mine 4:4 base 4:5
|
|
|
|
|
B 4 mr r31, r3
|
|
|
|
|
--- replace mine 10:11 base 11:12
|
|
|
|
|
M 10 b 232
|
|
|
|
|
B 11 b 244
|
|
|
|
|
--- replace mine 14:16 base 15:17
|
|
|
|
|
M 14 b 216
|
|
|
|
|
M 15 mulli r30, r3, 0x268
|
|
|
|
|
B 15 b 228
|
|
|
|
|
B 16 mulli r0, r3, 0x268
|
|
|
|
|
--- replace mine 18:19 base 19:20
|
|
|
|
|
M 18 add r3, r3, r30
|
|
|
|
|
B 19 add r3, r3, r0
|
|
|
|
|
--- replace mine 25:27 base 26:28
|
|
|
|
|
M 25 b 172
|
|
|
|
|
M 26 clrlwi r31, r4, 0x18
|
|
|
|
|
B 26 b 184
|
|
|
|
|
B 27 clrlwi r30, r4, 0x18
|
|
|
|
|
--- replace mine 28:29 base 29:30
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h KBDSetModState diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 42/42 instructions; structural/exact (0, 4); first differences [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))].
|
|
|
|
|
src 0xa8 base 0xa8 insns 42/42
|
|
|
|
|
diffs 4: [30, 31, 32, 33]
|
|
|
|
|
30 M add r5, r5, r4
|
|
|
|
|
B add r4, r5, r4
|
|
|
|
|
31 M lwz r4, 0x220(r5)
|
|
|
|
|
B lwz r5, 0x220(r4)
|
|
|
|
|
32 M rlwimi r0, r4, 0, 0x1a, 0x1f
|
|
|
|
|
B rlwimi r0, r5, 0, 0x1a, 0x1f
|
|
|
|
|
33 M stw r0, 0x220(r5)
|
|
|
|
|
B stw r0, 0x220(r4)
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8PrepareMatch diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 939/940 instructions; structural/exact (36, 889); first differences [(11, ('li', 'r3, 0x20'), ('li', 'r0, 0x20')), (12, ('stb', 'r3, 0xb(r1)'), ('stb', 'r0, 0xb(r1)')), (17, ('li', 'r28, 0'), ('li', 'r0, 0')), (18, ('li', 'r3, 0'), ('stb', 'r0, 0xf(r1)')), (19, ('stb', 'r3, 0xd(r1)'), ('li', 'r28, 0')), (20, ('lbz', 'r0, 0xc(r30)'), ('li', 'r3, 0'))].
|
|
|
|
|
src 0xeac base 0xeb0 insns 939/940
|
|
|
|
|
--- replace mine 11:13 base 11:13
|
|
|
|
|
M 11 li r3, 0x20
|
|
|
|
|
M 12 stb r3, 0xb(r1)
|
|
|
|
|
B 11 li r0, 0x20
|
|
|
|
|
B 12 stb r0, 0xb(r1)
|
|
|
|
|
--- insert mine 17:17 base 17:19
|
|
|
|
|
B 17 li r0, 0
|
|
|
|
|
B 18 stb r0, 0xf(r1)
|
|
|
|
|
--- replace mine 26:28 base 28:30
|
|
|
|
|
M 26 slwi r0, r0, 1
|
|
|
|
|
M 27 lhzx r0, r4, r0
|
|
|
|
|
B 28 slwi r3, r0, 1
|
|
|
|
|
B 29 lhzx r0, r4, r3
|
|
|
|
|
--- replace mine 30:33 base 32:35
|
|
|
|
|
M 30 lbz r3, 0xe(r1)
|
|
|
|
|
M 31 addi r0, r3, -1
|
|
|
|
|
M 32 stb r0, 0xe(r1)
|
|
|
|
|
B 32 lbz r4, 0xe(r1)
|
|
|
|
|
B 33 addi r3, r4, -1
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyPhonetic diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 718/718 instructions; structural/exact (0, 167); first differences [(7, ('mr', 'r25, r5'), ('mr', 'r26, r5')), (8, ('mr', 'r26, r6'), ('mr', 'r28, r6')), (9, ('mr', 'r31, r7'), ('mr', 'r25, r7')), (13, ('addi', 'r29, r1, 0x20'), ('addi', 'r30, r1, 0x20')), (19, ('stb', 'r0, 0(r31)'), ('stb', 'r0, 0(r25)')), (29, ('li', 'r28, 0'), ('li', 'r29, 0'))].
|
|
|
|
|
src 0xb38 base 0xb38 insns 718/718
|
|
|
|
|
diffs 167: [7, 8, 9, 13, 19, 29, 30, 32, 37, 42, 47, 58, 64, 71, 74, 83, 87, 93, 96, 97]
|
|
|
|
|
7 M mr r25, r5
|
|
|
|
|
B mr r26, r5
|
|
|
|
|
8 M mr r26, r6
|
|
|
|
|
B mr r28, r6
|
|
|
|
|
9 M mr r31, r7
|
|
|
|
|
B mr r25, r7
|
|
|
|
|
13 M addi r29, r1, 0x20
|
|
|
|
|
B addi r30, r1, 0x20
|
|
|
|
|
19 M stb r0, 0(r31)
|
|
|
|
|
B stb r0, 0(r25)
|
|
|
|
|
29 M li r28, 0
|
|
|
|
|
B li r29, 0
|
|
|
|
|
30 M stb r28, 0xf(r1)
|
|
|
|
|
B stb r29, 0xf(r1)
|
|
|
|
|
32 M clrlwi r4, r28, 0x18
|
|
|
|
|
B clrlwi r4, r29, 0x18
|
|
|
|
|
37 M clrlwi r3, r28, 0x18
|
|
|
|
|
B clrlwi r3, r29, 0x18
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyFinal diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 53/53 instructions; structural/exact (0, 8); first differences [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))].
|
|
|
|
|
src 0xd4 base 0xd4 insns 53/53
|
|
|
|
|
diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]
|
|
|
|
|
26 M slwi r6, r0, 3
|
|
|
|
|
B slwi r7, r0, 3
|
|
|
|
|
27 M lis r7, 0
|
|
|
|
|
B lis r6, 0
|
|
|
|
|
28 M addi r0, r7, 0
|
|
|
|
|
B addi r0, r6, 0
|
|
|
|
|
29 M add r6, r0, r6
|
|
|
|
|
B add r6, r0, r7
|
|
|
|
|
34 M slwi r6, r0, 3
|
|
|
|
|
B slwi r7, r0, 3
|
|
|
|
|
35 M lis r7, 0
|
|
|
|
|
B lis r6, 0
|
|
|
|
|
36 M addi r0, r7, 0
|
|
|
|
|
B addi r0, r6, 0
|
|
|
|
|
37 M add r6, r0, r6
|
|
|
|
|
B add r6, r0, r7
|
|
|
|
|
|
|
|
|
|
## fz15h onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 682/682 instructions; structural/exact (0, 37); first differences [(13, ('lwz', 'r27, 0(r5)'), ('lwz', 'r26, 0(r5)')), (15, ('lbz', 'r28, 4(r5)'), ('lbz', 'r27, 4(r5)')), (19, ('mr', 'r4, r27'), ('mr', 'r4, r26')), (20, ('mulli', 'r22, r0, 0x18'), ('mulli', 'r19, r0, 0x18')), (21, ('add', 'r3, r20, r22'), ('add', 'r3, r20, r19')), (25, ('add', 'r3, r20, r22'), ('add', 'r3, r20, r19'))].
|
|
|
|
|
src 0xaa8 base 0xaa8 insns 682/682
|
|
|
|
|
diffs 37: [13, 15, 19, 20, 21, 25, 146, 148, 149, 150, 154, 160, 180, 377, 384, 386, 387, 391, 452, 454]
|
|
|
|
|
13 M lwz r27, 0(r5)
|
|
|
|
|
B lwz r26, 0(r5)
|
|
|
|
|
15 M lbz r28, 4(r5)
|
|
|
|
|
B lbz r27, 4(r5)
|
|
|
|
|
19 M mr r4, r27
|
|
|
|
|
B mr r4, r26
|
|
|
|
|
20 M mulli r22, r0, 0x18
|
|
|
|
|
B mulli r19, r0, 0x18
|
|
|
|
|
21 M add r3, r20, r22
|
|
|
|
|
B add r3, r20, r19
|
|
|
|
|
25 M add r3, r20, r22
|
|
|
|
|
B add r3, r20, r19
|
|
|
|
|
146 M lwz r18, 0(r3)
|
|
|
|
|
B lwz r21, 0(r3)
|
|
|
|
|
148 M mr r4, r27
|
|
|
|
|
B mr r4, r26
|
|
|
|
|
149 M mulli r21, r0, 0x34
|
|
|
|
|
B mulli r19, r0, 0x34
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 333/333 instructions; structural/exact (0, 7); first differences [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))].
|
|
|
|
|
src 0x534 base 0x534 insns 333/333
|
|
|
|
|
diffs 7: [219, 220, 223, 228, 247, 249, 255]
|
|
|
|
|
219 M add r16, r19, r0
|
|
|
|
|
B add r18, r19, r0
|
|
|
|
|
220 M lwz r17, 0x14(r16)
|
|
|
|
|
B lwz r17, 0x14(r18)
|
|
|
|
|
223 M mulli r18, r0, 0x44
|
|
|
|
|
B mulli r16, r0, 0x44
|
|
|
|
|
228 M add r5, r31, r18
|
|
|
|
|
B add r5, r31, r16
|
|
|
|
|
247 M lwzx r5, r31, r18
|
|
|
|
|
B lwzx r5, r31, r16
|
|
|
|
|
249 M lwz r7, 0x14(r16)
|
|
|
|
|
B lwz r7, 0x14(r18)
|
|
|
|
|
255 M lwzx r5, r31, r18
|
|
|
|
|
B lwzx r5, r31, r16
|
|
|
|
|
|
|
|
|
|
## fz15h init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 536/536 instructions; structural/exact (0, 155); first differences [(5, ('li', 'r29, 0'), ('li', 'r26, 0')), (7, ('stw', 'r29, 0x14(r3)'), ('stw', 'r26, 0x14(r3)')), (9, ('mr', 'r30, r3'), ('mr', 'r27, r3')), (10, ('stw', 'r29, 0x18(r3)'), ('stw', 'r26, 0x18(r3)')), (12, ('stw', 'r29, 0x24(r3)'), ('stw', 'r26, 0x24(r3)')), (13, ('stb', 'r29, 0x1c(r3)'), ('stb', 'r26, 0x1c(r3)'))].
|
|
|
|
|
src 0x860 base 0x860 insns 536/536
|
|
|
|
|
diffs 155: [5, 7, 9, 10, 12, 13, 14, 15, 18, 25, 29, 31, 32, 33, 34, 38, 39, 49, 50, 60]
|
|
|
|
|
5 M li r29, 0
|
|
|
|
|
B li r26, 0
|
|
|
|
|
7 M stw r29, 0x14(r3)
|
|
|
|
|
B stw r26, 0x14(r3)
|
|
|
|
|
9 M mr r30, r3
|
|
|
|
|
B mr r27, r3
|
|
|
|
|
10 M stw r29, 0x18(r3)
|
|
|
|
|
B stw r26, 0x18(r3)
|
|
|
|
|
12 M stw r29, 0x24(r3)
|
|
|
|
|
B stw r26, 0x24(r3)
|
|
|
|
|
13 M stb r29, 0x1c(r3)
|
|
|
|
|
B stb r26, 0x1c(r3)
|
|
|
|
|
14 M stb r29, 0x1e(r3)
|
|
|
|
|
B stb r26, 0x1e(r3)
|
|
|
|
|
15 M stb r29, 0x1d(r3)
|
|
|
|
|
B stb r26, 0x1d(r3)
|
|
|
|
|
18 M stb r29, 0x21(r3)
|
|
|
|
|
B stb r26, 0x21(r3)
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupParseServerInfo__FP14NUPContextInfoPcPcUx diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 452/452 instructions; structural/exact (0, 148); first differences [(13, ('addi', 'r24, r28, 0x90'), ('addi', 'r25, r28, 0x90')), (14, ('addi', 'r25, r28, 0x9c'), ('addi', 'r22, r28, 0x9c')), (15, ('li', 'r27, 0'), ('li', 'r23, 0')), (18, ('mr', 'r4, r25'), ('mr', 'r4, r22')), (21, ('mr', 'r23, r3'), ('mr', 'r24, r3')), (23, ('mr', 'r4, r24'), ('mr', 'r4, r25'))].
|
|
|
|
|
src 0x710 base 0x710 insns 452/452
|
|
|
|
|
diffs 148: [13, 14, 15, 18, 21, 23, 26, 30, 32, 33, 34, 36, 41, 43, 44, 49, 52, 53, 56, 59]
|
|
|
|
|
13 M addi r24, r28, 0x90
|
|
|
|
|
B addi r25, r28, 0x90
|
|
|
|
|
14 M addi r25, r28, 0x9c
|
|
|
|
|
B addi r22, r28, 0x9c
|
|
|
|
|
15 M li r27, 0
|
|
|
|
|
B li r23, 0
|
|
|
|
|
18 M mr r4, r25
|
|
|
|
|
B mr r4, r22
|
|
|
|
|
21 M mr r23, r3
|
|
|
|
|
B mr r24, r3
|
|
|
|
|
23 M mr r4, r24
|
|
|
|
|
B mr r4, r25
|
|
|
|
|
26 M mr r22, r3
|
|
|
|
|
B mr r26, r3
|
|
|
|
|
30 M mr r3, r25
|
|
|
|
|
B mr r3, r22
|
|
|
|
|
32 M add r29, r23, r3
|
|
|
|
|
B add r24, r24, r3
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupBase64Encode__FPUcPUcUl diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 63/63 instructions; structural/exact (9, 21); first differences [(5, ('li', 'r10, 0'), ('li', 'r7, 0')), (9, ('addi', 'r10, r10, 1'), ('addi', 'r7, r7, 1')), (11, ('cmplwi', 'r10, 3'), ('cmplwi', 'r7, 3')), (16, ('rlwinm', 'r5, r9, 0x14, 0x1a, 0x1f'), ('rlwinm', 'r0, r9, 0xe, 0x1a, 0x1f')), (17, ('rlwinm', 'r0, r9, 0xe, 0x1a, 0x1f'), ('rlwinm', 'r6, r9, 0x14, 0x1a, 0x1f')), (18, ('lbzx', 'r7, r8, r5'), ('lbzx', 'r7, r8, r0'))].
|
|
|
|
|
src 0xfc base 0xfc insns 63/63
|
|
|
|
|
diffs 21: [5, 9, 11, 16, 17, 18, 20, 21, 22, 23, 25, 31, 35, 38, 42, 44, 48, 52, 55, 58]
|
|
|
|
|
5 M li r10, 0
|
|
|
|
|
B li r7, 0
|
|
|
|
|
9 M addi r10, r10, 1
|
|
|
|
|
B addi r7, r7, 1
|
|
|
|
|
11 M cmplwi r10, 3
|
|
|
|
|
B cmplwi r7, 3
|
|
|
|
|
16 M rlwinm r5, r9, 0x14, 0x1a, 0x1f
|
|
|
|
|
B rlwinm r0, r9, 0xe, 0x1a, 0x1f
|
|
|
|
|
17 M rlwinm r0, r9, 0xe, 0x1a, 0x1f
|
|
|
|
|
B rlwinm r6, r9, 0x14, 0x1a, 0x1f
|
|
|
|
|
18 M lbzx r7, r8, r5
|
|
|
|
|
B lbzx r7, r8, r0
|
|
|
|
|
20 M lbzx r6, r8, r0
|
|
|
|
|
B clrlwi r0, r9, 0x1a
|
|
|
|
|
21 M clrlwi r0, r9, 0x1a
|
|
|
|
|
B lbzx r6, r8, r6
|
|
|
|
|
22 M li r10, 0
|
|
|
|
|
B stb r7, 0(r3)
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 163/163 instructions; structural/exact (0, 17); first differences [(108, ('lwz', 'r9, 0x54(r30)'), ('lwz', 'r5, 0x54(r30)')), (110, ('cmplw', 'r9, r8'), ('cmplw', 'r5, r8')), (112, ('li', 'r10, 0'), ('li', 'r9, 0')), (114, ('cmpwi', 'r9, 0'), ('cmpwi', 'r5, 0')), (115, ('lwz', 'r3, 0x5c(r7)'), ('lwz', 'r10, 0x5c(r7)')), (122, ('li', 'r4, 0'), ('li', 'r3, 0'))].
|
|
|
|
|
src 0x28c base 0x28c insns 163/163
|
|
|
|
|
diffs 17: [108, 110, 112, 114, 115, 122, 123, 124, 125, 128, 130, 132, 134, 136, 141, 142, 144]
|
|
|
|
|
108 M lwz r9, 0x54(r30)
|
|
|
|
|
B lwz r5, 0x54(r30)
|
|
|
|
|
110 M cmplw r9, r8
|
|
|
|
|
B cmplw r5, r8
|
|
|
|
|
112 M li r10, 0
|
|
|
|
|
B li r9, 0
|
|
|
|
|
114 M cmpwi r9, 0
|
|
|
|
|
B cmpwi r5, 0
|
|
|
|
|
115 M lwz r3, 0x5c(r7)
|
|
|
|
|
B lwz r10, 0x5c(r7)
|
|
|
|
|
122 M li r4, 0
|
|
|
|
|
B li r3, 0
|
|
|
|
|
123 M li r5, 0
|
|
|
|
|
B li r4, 0
|
|
|
|
|
124 M mtctr r9
|
|
|
|
|
B mtctr r5
|
|
|
|
|
125 M cmplwi r9, 0
|
|
|
|
|
B cmplwi r5, 0
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetTitleSize__FP12NUPTitleInfo diagnosis
|
|
|
|
|
Origin body unchanged after fetch. 139/139 instructions; structural/exact (0, 22); first differences [(39, ('adde', 'r0, r5, r7'), ('adde', 'r5, r5, r7')), (40, ('addi', 'r5, r8, 5'), ('addi', 'r0, r8, 5')), (42, ('stw', 'r5, 0x20(r3)'), ('stw', 'r0, 0x20(r3)')), (43, ('adde', 'r0, r0, r7'), ('adde', 'r0, r5, r7')), (56, ('lwz', 'r30, 0x54(r3)'), ('lwz', 'r28, 0x54(r3)')), (57, ('add', 'r27, r12, r8'), ('add', 'r26, r12, r8'))].
|
|
|
|
|
src 0x22c base 0x22c insns 139/139
|
|
|
|
|
diffs 22: [39, 40, 42, 43, 56, 57, 58, 59, 61, 62, 67, 68, 69, 71, 74, 75, 78, 80, 90, 91]
|
|
|
|
|
39 M adde r0, r5, r7
|
|
|
|
|
B adde r5, r5, r7
|
|
|
|
|
40 M addi r5, r8, 5
|
|
|
|
|
B addi r0, r8, 5
|
|
|
|
|
42 M stw r5, 0x20(r3)
|
|
|
|
|
B stw r0, 0x20(r3)
|
|
|
|
|
43 M adde r0, r0, r7
|
|
|
|
|
B adde r0, r5, r7
|
|
|
|
|
56 M lwz r30, 0x54(r3)
|
|
|
|
|
B lwz r28, 0x54(r3)
|
|
|
|
|
57 M add r27, r12, r8
|
|
|
|
|
B add r26, r12, r8
|
|
|
|
|
58 M lwz r25, 0x5c(r27)
|
|
|
|
|
B lwz r25, 0x5c(r26)
|
|
|
|
|
59 M cmpwi r30, 0
|
|
|
|
|
B cmpwi r28, 0
|
|
|
|
|
61 M lwz r26, 0x58(r3)
|
|
|
|
|
B lwz r30, 0x58(r3)
|
|
|
|
|
Remaining instruction differences omitted here; full target/source disassembly and ctxdiff saved under /tmp/fz15h-<symbol>*.
|
|
|
|
|
|
|
|
|
|
Structural mapping TMCJPEGDEC_set_converterY8U8V8: frame 0x10. Missing instruction is shared convBuf base addi r4,work,0x1858 at index 1; compiler folds it into each case. Extents checked separately; no immediate reload proving volatile. Test switch helper boundary and logical converter metadata before register search.
|
|
|
|
|
|
|
|
|
|
## fz15h TMCJPEGDEC_set_converterY8U8V8 trials
|
|
|
|
|
Direct discriminator, promoted actual IDCT stride type, and complete selection helper boundary.
|
|
|
|
|
- TMCJPEGDEC_set_converterY8U8V8: direct: (41, 195) 195/196 instructions
|
|
|
|
|
- TMCJPEGDEC_set_converterY8U8V8: mode: (41, 195) 195/196 instructions
|
|
|
|
|
- TMCJPEGDEC_set_converterY8U8V8: helper: (99999, 99999) compile failed re_MCUtoY8U8V8.d ### mwcceppc.exe Compiler: # File: libs\RVLMiddleware\TMC_JPEG\src\texturecvtr\Texture_MCUtoY8U8V8.c # -------------------------------------------------------------------------- # 162: s32 selected = SelectPlanarConverter(work, buffer, componentCount); # Error: ^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
|
|
|
|
Structural mapping kbdEventHandler: frame 0x20, same 186 instructions. Index35 report status uses r3 rather than r5; table base uses r30 rather than r3. No branch or stack changes; preserve post-OSCancelAlarm report reread.
|
|
|
|
|
|
|
|
|
|
## fz15h kbdEventHandler trials
|
|
|
|
|
Input representation and classification expression ownership.
|
|
|
|
|
- kbdEventHandler: status local owns classification: (0, 5) 186/186 instructions first [(35, ('lbz', 'r3, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r30, 0'), ('lis', 'r3, 0')), (38, ('addi', 'r0, r3, 0xff'), ('addi', 'r0, r5, 0xff')), (39, ('addi', 'r30, r30, 0'), ('addi', 'r3, r3, 0')), (42, ('add', 'r30, r30, r4'), ('add', 'r30, r3, r4'))]
|
|
|
|
|
- kbdEventHandler: typed HID report owns first key and flags: (0, 5) 186/186 instructions first [(35, ('lbz', 'r3, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r30, 0'), ('lis', 'r3, 0')), (38, ('addi', 'r0, r3, 0xff'), ('addi', 'r0, r5, 0xff')), (39, ('addi', 'r30, r30, 0'), ('addi', 'r3, r3, 0')), (42, ('add', 'r30, r30, r4'), ('add', 'r30, r3, r4'))]
|
|
|
|
|
- kbdEventHandler: readonly report and direct channel lvalue: (0, 6) 186/186 instructions first [(35, ('lbz', 'r3, 2(r4)'), ('lbz', 'r5, 2(r4)')), (36, ('lis', 'r4, 0'), ('lis', 'r3, 0')), (37, ('mulli', 'r5, r31, 0x268'), ('mulli', 'r4, r31, 0x268')), (38, ('addi', 'r0, r3, 0xff'), ('addi', 'r0, r5, 0xff')), (39, ('addi', 'r4, r4, 0'), ('addi', 'r3, r3, 0')), (42, ('add', 'r30, r4, r5'), ('add', 'r30, r3, r4'))]
|
|
|
|
|
Structural mapping kbdProcMod: modifier update at 245 has address/old-state r4/r5 swap. Frame 0x20; exact instruction count and physical bit layout. Test unsigned word representation and a logical field grouping before declaration order.
|
|
|
|
|
|
|
|
|
|
## fz15h kbdProcMod trials
|
|
|
|
|
State word and bitfield object boundaries.
|
|
|
|
|
- kbdProcMod: int: (0, 4) 256/256 instructions first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
|
|
|
|
- kbdProcMod: logical: (0, 4) 256/256 instructions first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
|
|
|
|
- kbdProcMod: readonly: (0, 4) 256/256 instructions first [(245, ('add', 'r5, r4, r31'), ('add', 'r4, r4, r31')), (246, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (247, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (248, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
|
|
|
|
Structural mapping KBDSetModState: modifier update at 30 has address/old-state r4/r5 swap. Frame 0x10; exact instruction count and physical bit layout. Test unsigned word representation and a logical field grouping before declaration order.
|
|
|
|
|
|
|
|
|
|
## fz15h KBDSetModState trials
|
|
|
|
|
State word and bitfield object boundaries.
|
|
|
|
|
- KBDSetModState: int: (0, 4) 42/42 instructions first [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
|
|
|
|
- KBDSetModState: logical: (0, 4) 42/42 instructions first [(30, ('add', 'r5, r5, r4'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f')), (33, ('stw', 'r0, 0x220(r5)'), ('stw', 'r0, 0x220(r4)'))]
|
|
|
|
|
- KBDSetModState: readonly: (0, 7) 42/42 instructions first [(26, ('mulli', 'r5, r30, 0x268'), ('mulli', 'r4, r30, 0x268')), (27, ('lis', 'r4, 0'), ('lis', 'r5, 0')), (29, ('addi', 'r4, r4, 0'), ('addi', 'r5, r5, 0')), (30, ('add', 'r5, r4, r5'), ('add', 'r4, r5, r4')), (31, ('lwz', 'r4, 0x220(r5)'), ('lwz', 'r5, 0x220(r4)')), (32, ('rlwimi', 'r0, r4, 0, 0x1a, 0x1f'), ('rlwimi', 'r0, r5, 0, 0x1a, 0x1f'))]
|
|
|
|
|
Structural mapping kbd_led_handler: no frame, source24/target25. Target separates the completion index from the reservation index and tests success positively, retains final blr after tail callback. No volatile proof; test result type and callback view without dummy branches.
|
|
|
|
|
|
|
|
|
|
## fz15h kbd_led_handler trials
|
|
|
|
|
Callback argument rematerialization with real result type and branch forms.
|
|
|
|
|
- kbd_led_handler: BOOL: (5, 9) 25/25 instructions first [(1, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (3, ('li', 'r6, 0'), ('li', 'r8, 0')), (5, ('slwi', 'r8, r4, 5'), ('slwi', 'r7, r4, 5')), (7, ('addi', 'r7, r7, 0'), ('addi', 'r6, r6, 0')), (8, ('stwx', 'r6, r7, r8'), ('stwx', 'r8, r6, r7')), (9, ('cmplw', 'r0, r6'), ('cmplw', 'r0, r8'))]
|
|
|
|
|
- kbd_led_handler: pointer: (5, 9) 25/25 instructions first [(1, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (3, ('li', 'r6, 0'), ('li', 'r8, 0')), (5, ('slwi', 'r8, r4, 5'), ('slwi', 'r7, r4, 5')), (7, ('addi', 'r7, r7, 0'), ('addi', 'r6, r6, 0')), (8, ('stwx', 'r6, r7, r8'), ('stwx', 'r8, r6, r7')), (9, ('cmplw', 'r0, r6'), ('cmplw', 'r0, r8'))]
|
|
|
|
|
- kbd_led_handler: if: (30, 23) 23/25 instructions
|
|
|
|
|
Structural mapping KBDSetLedsAsync: target has channel scalar live through OSDisableInterrupts and indexed unsigned slot/byte offset CTR loop; source retains channel-stride product and pointer induction. Frame0x20. Test slot record lvalue and readonly helper input.
|
|
|
|
|
|
|
|
|
|
## fz15h KBDSetLedsAsync trials
|
|
|
|
|
Typed slot reservation direct loop, const pointer helper, and scalar helper.
|
|
|
|
|
- KBDSetLedsAsync: loop: (19, 72) 79/81 instructions
|
|
|
|
|
- KBDSetLedsAsync: constptr: (20, 44) 81/81 instructions
|
|
|
|
|
- KBDSetLedsAsync: value: (19, 73) 79/81 instructions
|
|
|
|
|
Structural mapping KBDSetLeds: target has channel scalar live through OSDisableInterrupts and indexed unsigned slot/byte offset CTR loop; source retains channel-stride product and pointer induction. Frame0x20. Test slot record lvalue and readonly helper input.
|
|
|
|
|
|
|
|
|
|
## fz15h KBDSetLeds trials
|
|
|
|
|
Typed slot reservation direct loop, const pointer helper, and scalar helper.
|
|
|
|
|
- KBDSetLeds: loop: (19, 68) 78/79 instructions
|
|
|
|
|
- KBDSetLeds: constptr: (48, 75) 82/79 instructions
|
|
|
|
|
- KBDSetLeds: value: (19, 69) 78/79 instructions
|
|
|
|
|
Structural mapping Zi8PrepareMatch: frame0x70, source939/target940. First context-mask zero uses different scratch register; target later stores component flag absent in source. No dummy flag or unsupported volatility. Tables/element index source boundaries can affect opt-off frame ownership.
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8PrepareMatch trials
|
|
|
|
|
Readonly tables, explicit index progression, direct classifier boolean.
|
|
|
|
|
- Zi8PrepareMatch: tables: (36, 897) 938/940 instructions
|
|
|
|
|
- Zi8PrepareMatch: index: (39, 891) 938/940 instructions
|
|
|
|
|
- Zi8PrepareMatch: boolean: (36, 889) 939/940 instructions
|
|
|
|
|
Structural mapping Zi8GetPyPhonetic: frame0x250; 718/718 instructions. All differences are register choices, beginning saved output pointers and converted-buffer address. No stack-local layout or branch changes. Test readonly input argument, helper-like conversion-buffer scope, and scalar initialization ownership before declsearch.
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyPhonetic trials
|
|
|
|
|
Actual input const qualification, initializer boundary, buffer pointer initialization, paired-output chain.
|
|
|
|
|
- Zi8GetPyPhonetic: const: (6, 646) 720/718 instructions
|
|
|
|
|
- Zi8GetPyPhonetic: initialize: (3, 181) 718/718 instructions
|
|
|
|
|
- Zi8GetPyPhonetic: buffer: (0, 167) 718/718 instructions
|
|
|
|
|
- Zi8GetPyPhonetic: chain: (2, 635) 717/718 instructions
|
|
|
|
|
Structural mapping Zi8GetPyFinal: frame0x10, 53/53 instructions. Only the two matched-row output reads allocate row stride r6/table base r7 versus target r7/r6. The matching loop itself is exact. Test readonly phonetic input, ordinary typed row view, and output load boundary.
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyFinal trials
|
|
|
|
|
Const phonetic input and table row/byte lvalue boundaries. Table contents and symbol names unchanged.
|
|
|
|
|
- Zi8GetPyFinal: const: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
Structural mapping TMCJPEGDEC_set_converterY8U8V8: frame 0x10. Missing instruction is shared convBuf base addi r4,work,0x1858 at index 1; compiler folds it into each case. Extents checked separately; no immediate reload proving volatile. Test switch helper boundary and logical converter metadata before register search.
|
|
|
|
|
|
|
|
|
|
## fz15h TMCJPEGDEC_set_converterY8U8V8 trials
|
|
|
|
|
Direct discriminator, promoted actual IDCT stride type, and complete selection helper boundary.
|
|
|
|
|
- TMCJPEGDEC_set_converterY8U8V8: helper: (45, 198) 199/196 instructions
|
|
|
|
|
Correction: Zi8GetPyFinal table-row generator initially matched a nested if call rather than its definition. It performed no source mutation for the failed row-view candidate; exclude that rejected generator. Function-boundary parser now explicitly rejects control statements. All other function boundaries verified against their definition bodies.
|
|
|
|
|
Structural mapping Zi8GetPyFinal: frame0x10, 53/53 instructions. Only the two matched-row output reads allocate row stride r6/table base r7 versus target r7/r6. The matching loop itself is exact. Test readonly phonetic input, ordinary typed row view, and output load boundary.
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyFinal trials
|
|
|
|
|
Const phonetic input and table row/byte lvalue boundaries. Table contents and symbol names unchanged.
|
|
|
|
|
- Zi8GetPyFinal: const: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
- Zi8GetPyFinal: rowview: (24, 57) 58/53 instructions
|
|
|
|
|
- Zi8GetPyFinal: commute: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
- Zi8GetPyFinal: snapshot: (18, 62) 63/53 instructions
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyFinal trials
|
|
|
|
|
Output row address lowering: equivalent byte dereference, row dereference, promoted index types and const table array view; no new layout or objects.
|
|
|
|
|
- Zi8GetPyFinal: deref: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
- Zi8GetPyFinal: rowderef: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
- Zi8GetPyFinal: u32: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
- Zi8GetPyFinal: u16: (5, 31) 55/53 instructions
|
|
|
|
|
- Zi8GetPyFinal: int: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
- Zi8GetPyFinal: baseview: (0, 8) 53/53 instructions first [(26, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (27, ('lis', 'r7, 0'), ('lis', 'r6, 0')), (28, ('addi', 'r0, r7, 0'), ('addi', 'r0, r6, 0')), (29, ('add', 'r6, r0, r6'), ('add', 'r6, r0, r7')), (34, ('slwi', 'r6, r0, 3'), ('slwi', 'r7, r0, 3')), (35, ('lis', 'r7, 0'), ('lis', 'r6, 0'))]
|
|
|
|
|
Structural mapping Base::onKey: frame0x80,682/682 instructions. First difference is pane-name input pointer r27 versus r26 at13, then state r28 versus r27. Remaining differences are in inlined table search bases/offsets, with identical ConfirmInput field offsets. Input event is only read, so test const view, ordinary input snapshots and helper boundaries.
|
|
|
|
|
|
|
|
|
|
## fz15h onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv trials
|
|
|
|
|
Readonly event field view, shared event pointer, event value snapshot, ordinary command clearing.
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: const: (0, 37) 682/682 instructions
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: named: (0, 37) 682/682 instructions
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: local: (48, 672) 685/682 instructions
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: commands: (25, 327) 683/682 instructions
|
|
|
|
|
Structural mapping LayoutByNW4R::create: same0x60 frame,333 instructions. First219 is toggle table entry add using r16 rather than r18, and animation-file stride uses r18 rather than r16. Normal-key loop and calls exact. Test toggle readonly entry representation and loaded-key helper boundary.
|
|
|
|
|
|
|
|
|
|
## fz15h create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator trials
|
|
|
|
|
Toggle metadata pointer versus reference/value; use indexed key directly or define read at branch.
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: pointer: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: direct: (0, 12) 333/333 instructions first [(117, ('add', 'r18, r23, r0'), ('add', 'r17, r23, r0')), (118, ('lwz', 'r17, 0x14(r18)'), ('lwz', 'r18, 0x14(r17)')), (142, ('cmpwi', 'r17, 0'), ('cmpwi', 'r18, 0')), (147, ('lwz', 'r7, 0x14(r18)'), ('lwz', 'r7, 0x14(r17)')), (219, ('add', 'r17, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r16, 0x14(r17)'), ('lwz', 'r17, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: loadlate: (6, 113) 332/333 instructions
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: snapshot: (19, 243) 344/333 instructions
|
|
|
|
|
Structural mapping LayoutByNW4R::init: same0x50 frame and536 instructions. First zero/this callee-saved allocation at5/9, reused across inline Base::init, animation/visible helpers; no branch or instruction-order differences. Scope the actual pane-name scratch and readonly layout metadata before final declarations.
|
|
|
|
|
|
|
|
|
|
## fz15h init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv trials
|
|
|
|
|
Unsigned loop index, scratch array lifetime, const layout view and toggle entry reference.
|
|
|
|
|
- init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv: u32loop: (1, 155) 536/536 instructions
|
|
|
|
|
- init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv: outerbuffer: (0, 155) 536/536 instructions
|
|
|
|
|
- init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv: keyview: (4, 405) 534/536 instructions
|
|
|
|
|
- init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv: rowref: (0, 155) 536/536 instructions
|
|
|
|
|
Structural mapping __nupParseServerInfo: frame0x50,452/452 instructions. First13/14 inline tag literal pointers and result zero use different callee-saved registers; most remaining differences track the same tag helper start/end/length temporaries. Test helper const input and expression boundaries; string tokens kept in original source order.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupParseServerInfo__FP14NUPContextInfoPcPcUx trials
|
|
|
|
|
Readonly response parameter in helper, named strlen result and pointer difference, ABI-compatible result/count types, helper declarations last.
|
|
|
|
|
- __nupParseServerInfo__FP14NUPContextInfoPcPcUx: const: (0, 148) 452/452 instructions
|
|
|
|
|
- __nupParseServerInfo__FP14NUPContextInfoPcPcUx: direct: (0, 148) 452/452 instructions
|
|
|
|
|
- __nupParseServerInfo__FP14NUPContextInfoPcPcUx: ints: (0, 148) 452/452 instructions
|
|
|
|
|
- __nupParseServerInfo__FP14NUPContextInfoPcPcUx: helperlocals: (0, 148) 452/452 instructions
|
|
|
|
|
Structural mapping __nupBase64Encode: no frame,63/63 instructions. First count usesr10 insteadr7; source defines second output byte before first, target computes first index then second, with loads and stores interleaved. Test actual output expressions and byte accumulation, no string pool changes.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupBase64Encode__FPUcPUcUl trials
|
|
|
|
|
Natural output stores, first-byte source order, readonly scan, nested accumulate expression, unsigned int word locals.
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: direct: (8, 17) 63/63 instructions
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: order: (9, 21) 63/63 instructions
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: readonly: (8, 17) 63/63 instructions
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: accumulate: (9, 23) 63/63 instructions
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: int: (9, 21) 63/63 instructions
|
|
|
|
|
Structural mapping __nupGetBootVersion: frame0x20,163/163 instructions. First108 cached installed countr9 vsr5, content-loop indexr10 vsr9, inline content search saved IDr3 vsr10. Entire remaining mismatch lies in __nupHasInstalledContent inline boundary, no volatile reread evidence.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion trials
|
|
|
|
|
Readonly installed IDs, direct index lvalue in helper, C int loop/count and const title view.
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: helperconst: (0, 17) 163/163 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: helperexpr: (0, 17) 163/163 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: int: (0, 17) 163/163 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: view: (0, 17) 163/163 instructions
|
|
|
|
|
Structural mapping __nupGetTitleSize: frame0x30,139/139 instructions. First39 high-word sum ownsr0 ratherthanr5, progress incrementr5 ratherthanr0. After56 inline installed-content count/table stride/ID pointer trade registers. Test immutable content record and typed helper boundaries before declarations.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetTitleSize__FP12NUPTitleInfo trials
|
|
|
|
|
Readonly content record/view, int index, direct ID indexed comparison helper, equivalent fixed storage total.
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: const: (0, 22) 139/139 instructions
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: snapshot: (99999, 99999) compile failed ### mwcceppc.exe Compiler: # File: libs\RVL_SDK\src\nup\nup.cpp # ------------------------------------- # 927: ESCmdView* content = &view->contents[contentIndex]; # Error: ^ # (10209) illegal implicit conversion from 'const ESCmdView *' to # 'ESCmdView *' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: index: (0, 22) 139/139 instructions
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: helper: (0, 22) 139/139 instructions
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: sum: (16, 113) 134/139 instructions
|
|
|
|
|
Structural mapping __nupBase64Encode: no frame,63/63 instructions. First count usesr10 insteadr7; source defines second output byte before first, target computes first index then second, with loads and stores interleaved. Test actual output expressions and byte accumulation, no string pool changes.
|
|
|
|
|
|
|
|
|
|
## fz15h __nupBase64Encode__FPUcPUcUl trials
|
|
|
|
|
Natural stores baseline has 8 structural/17 total differences. Test actual alphabet lookup boundary, full-triplet loop branch, accumulation tree and reset lifetime; no force placement.
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: named: (18, 39) 59/63 instructions
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: literalarray: (0, 0) 63/63 instructions first []
|
|
|
|
|
Exact candidate retained pending pool/objdiff/quick gate: __nupBase64Encode__FPUcPUcUl
|
|
|
|
|
- __nupBase64Encode__FPUcPUcUl: mutable static alphabet with real base64 lookup contents: (0, 0) 63/63 instructions. Const candidate pool diverged because compiler emitted alphabet in rodata; gate failed, no commit. Test ordinary mutable table in data, without section pragmas.
|
|
|
|
|
|
|
|
|
|
## fz15h base64 exact and data proof
|
|
|
|
|
An ordinary function-local static char alphabet[] initialized from the single base64 literal, plus direct output-byte assignments, removes temporary byte ownership and matches all63 instructions, ctxdiff diffs0. const alphabet[] was first tested and emitted rodata, failing data/pool gate; it was corrected to the ordinary mutable char array. Final28-string pool identical and all data1720/1720, sections/data totals unchanged. This is the actual encoding lookup table, without dummy bytes, packed strings, section pragmas or pinned addresses. No symbols/config rename needed. Quick gate GATE PASS, functions19->20, code7496->7748/10764, no regressions/forbidden/readability, DOL hash correct.
|
|
|
|
|
source data section sizes .rodata:86, .data:1592, .sdata:25, .sbss:4
|
|
|
|
|
target data section sizes .rodata:88, .data:1592, .sdata:32, .sbss:8
|
|
|
|
|
|
|
|
|
|
## fz15h create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator trials
|
|
|
|
|
Remaining table-entry vs animation-stride register swap. Test actual loaded-key call argument and independent declaration/assignment boundaries at the toggle loop, then final local order.
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: loadedkey: (1, 11) 333/333 instructions first [(219, ('add', 'r3, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r16, 0x14(r3)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (233, ('mr', 'r17, r3'), ('mr', 'r15, r3')), (239, ('mr', 'r4, r17'), ('mr', 'r4, r15'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: declfirst: (0, 8) 333/333 instructions first [(219, ('add', 'r17, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r16, 0x14(r17)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (244, ('cmpwi', 'r16, 0'), ('cmpwi', 'r17, 0')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16'))]
|
|
|
|
|
|
|
|
|
|
## fz15h kbdEventHandler final declsearch
|
|
|
|
|
Structural trials complete; only registers remain. Search local declaration order last, restoring any non-exact result.
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: ptrfirst: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: ptrsecond: (0, 8) 333/333 instructions first [(219, ('add', 'r17, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r16, 0x14(r17)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (244, ('cmpwi', 'r16, 0'), ('cmpwi', 'r17, 0')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16'))]
|
|
|
|
|
declaration block:
|
|
|
|
|
KBDChannel* data;
|
|
|
|
|
u8* bytes;
|
|
|
|
|
u8 status;
|
|
|
|
|
start (0, 5)
|
|
|
|
|
best (0, 5) after 6 builds; source restored; best order was:
|
|
|
|
|
KBDChannel* data;
|
|
|
|
|
u8* bytes;
|
|
|
|
|
u8 status;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h kbdProcMod final declsearch
|
|
|
|
|
Structural trials complete; only registers remain. Search local declaration order last, restoring any non-exact result.
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: jtype: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: scope: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
declaration block:
|
|
|
|
|
KBDChannel* data;
|
|
|
|
|
u32 modState;
|
|
|
|
|
s32 delta;
|
|
|
|
|
u8 flags;
|
|
|
|
|
start (0, 4)
|
|
|
|
|
best (0, 4) after 13 builds; source restored; best order was:
|
|
|
|
|
KBDChannel* data;
|
|
|
|
|
u32 modState;
|
|
|
|
|
s32 delta;
|
|
|
|
|
u8 flags;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h KBDSetModState final declsearch
|
|
|
|
|
Structural trials complete; only registers remain. Search local declaration order last, restoring any non-exact result.
|
|
|
|
|
declaration block:
|
|
|
|
|
BOOL interrupts;
|
|
|
|
|
KBDModifierState oldState;
|
|
|
|
|
KBDModifierState newState;
|
|
|
|
|
start (0, 4)
|
|
|
|
|
best (0, 4) after 6 builds; source restored; best order was:
|
|
|
|
|
BOOL interrupts;
|
|
|
|
|
KBDModifierState oldState;
|
|
|
|
|
KBDModifierState newState;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyPhonetic final declsearch
|
|
|
|
|
Structural trials complete; only registers remain. Search local declaration order last, restoring any non-exact result.
|
|
|
|
|
|
|
|
|
|
## fz15h owned data and function extent audit
|
|
|
|
|
JPEG owns no data. Keyboard5296/5296, zi8match728/728, tiCellPhone3860/3860 and nup1720/1720 already pair exactly; no name/extent corrections justified. zprepare has code-dependent table/extabindex gaps documented next.
|
|
|
|
|
target zprepare data relocations: 0->Zi8PrepareMatch+0x260, 4->Zi8PrepareMatch+0x1e4, 8->Zi8PrepareMatch+0x1f4, 12->Zi8PrepareMatch+0x204, 16->Zi8PrepareMatch+0x214, 20->Zi8PrepareMatch+0x224, 24->Zi8PrepareMatch+0x234, 28->Zi8PrepareMatch+0x244, 32->Zi8PrepareMatch+0x254, 36->Zi8PrepareMatch+0x260, 40->Zi8PrepareMatch+0x260, 44->Zi8PrepareMatch+0x204
|
|
|
|
|
source zprepare data relocations: 0->Zi8PrepareMatch+0x250, 4->Zi8PrepareMatch+0x1d4, 8->Zi8PrepareMatch+0x1e4, 12->Zi8PrepareMatch+0x1f4, 16->Zi8PrepareMatch+0x204, 20->Zi8PrepareMatch+0x214, 24->Zi8PrepareMatch+0x224, 28->Zi8PrepareMatch+0x234, 32->Zi8PrepareMatch+0x244, 36->Zi8PrepareMatch+0x250, 40->Zi8PrepareMatch+0x250, 44->Zi8PrepareMatch+0x1f4
|
|
|
|
|
Relocation proof: target jumptable_8166B3D0 is48bytes, twelve entries into Zi8PrepareMatch; source anonymous @230 has different code offsets. Gap is non-exact function layout, not a stable real source name. Extab8 exact, extabindex12 depends on function extent. No rename or size change permitted by this evidence.
|
|
|
|
|
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv extent 0x81417274..0x81417d1c, next getInputMode__Q49textinput8keyboard13cellphonetype4BaseCFv 0x81417d1c, overlap 0.
|
|
|
|
|
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator extent 0x814187b4..0x81418ce8, next init__Q49textinput8keyboard13cellphonetype16CellPhoneAnmPaneFv 0x81418ce8, overlap 0.
|
|
|
|
|
init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv extent 0x81418d4c..0x814195ac, next draw__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 0x814195ac, overlap 0.
|
|
|
|
|
Zi8GetPyPhonetic extent 0x8147dde8..0x8147e920, next Zi8GetPyFinal 0x8147e920, overlap 0.
|
|
|
|
|
Zi8GetPyFinal extent 0x8147e920..0x8147e9f4, next Zi8GetBpmfPhonetic 0x8147e9f4, overlap 0.
|
|
|
|
|
Zi8PrepareMatch extent 0x814850fc..0x81485fac, next CDBInit 0x81485fac, overlap 0.
|
|
|
|
|
TMCJPEGDEC_set_converterY8U8V8 extent 0x814efb9c..0x814efeac, next TMCJPEG_814EFEAC 0x814efeac, overlap 0.
|
|
|
|
|
__nupParseServerInfo__FP14NUPContextInfoPcPcUx extent 0x815efa30..0x815f0140, next __nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc 0x815f0140, overlap 0.
|
|
|
|
|
__nupBase64Encode__FPUcPUcUl extent 0x815f04c0..0x815f05bc, next __nupGetAuditData__FP14NUPContextInfoPPc 0x815f05bc, overlap 0.
|
|
|
|
|
__nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion extent 0x815f0a40..0x815f0ccc, next __nupGetTicket__FP12NUPTitleInfoPc 0x815f0ccc, overlap 0.
|
|
|
|
|
__nupGetTitleSize__FP12NUPTitleInfo extent 0x815f1014..0x815f1240, next __nupGetContentFull__FP14NUPContextInfoP12NUPTitleInfoPcUl 0x815f1240, overlap 0.
|
|
|
|
|
kbdEventHandler extent 0x815f34d8..0x815f37c0, next kbdRepeatHandler 0x815f37c0, overlap 0.
|
|
|
|
|
kbdProcMod extent 0x815f3aa4..0x815f3ea4, next kbdSendKey 0x815f3ea4, overlap 0.
|
|
|
|
|
kbd_led_handler extent 0x815f3fb4..0x815f4018, next KBDSetLedsAsync 0x815f4018, overlap 0.
|
|
|
|
|
KBDSetLedsAsync extent 0x815f4018..0x815f415c, next KBDSetLeds 0x815f415c, overlap 0.
|
|
|
|
|
KBDSetLeds extent 0x815f415c..0x815f4298, next kbdInitMap 0x815f4298, overlap 0.
|
|
|
|
|
KBDSetModState extent 0x815f4664..0x815f470c, next KBDTranslateHidCode 0x815f470c, overlap 0.
|
|
|
|
|
declaration block:
|
|
|
|
|
ziU8 pyInitial;
|
|
|
|
|
ziU8 pyFinal;
|
|
|
|
|
ziU8 convertedCount;
|
|
|
|
|
ziU8 result;
|
|
|
|
|
ziBool partial;
|
|
|
|
|
ziBool alternateInitial;
|
|
|
|
|
ziU8 outputIndex;
|
|
|
|
|
ziU8 index;
|
|
|
|
|
ziU16 value;
|
|
|
|
|
ziWChar converted[256];
|
|
|
|
|
ziU8 pinyin[12];
|
|
|
|
|
ziWChar* current;
|
|
|
|
|
start (0, 167)
|
|
|
|
|
best (0, 167) after 120 builds; source restored; best order was:
|
|
|
|
|
ziU8 pyInitial;
|
|
|
|
|
ziU8 pyFinal;
|
|
|
|
|
ziU8 convertedCount;
|
|
|
|
|
ziU8 result;
|
|
|
|
|
ziBool partial;
|
|
|
|
|
ziBool alternateInitial;
|
|
|
|
|
ziU8 outputIndex;
|
|
|
|
|
ziU8 index;
|
|
|
|
|
ziU16 value;
|
|
|
|
|
ziWChar converted[256];
|
|
|
|
|
ziU8 pinyin[12];
|
|
|
|
|
ziWChar* current;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyFinal final declsearch
|
|
|
|
|
Structural trials complete; only registers remain. Search local declaration order last, restoring any non-exact result.
|
|
|
|
|
|
|
|
|
|
fewer than two leading declarations; pass --lines START END
|
|
|
|
|
|
|
|
|
|
## fz15h __nupParseServerInfo__FP14NUPContextInfoPcPcUx final declsearch
|
|
|
|
|
Structural trials complete; only registers remain. Search local declaration order last, restoring any non-exact result.
|
|
|
|
|
declaration block:
|
|
|
|
|
s32 result = 0;
|
|
|
|
|
char* start;
|
|
|
|
|
char* afterEnd;
|
|
|
|
|
char* cursor;
|
|
|
|
|
size_t valueLength;
|
|
|
|
|
size_t titleCount;
|
|
|
|
|
start (0, 148)
|
|
|
|
|
best (0, 148) after 36 builds; source restored; best order was:
|
|
|
|
|
s32 result = 0;
|
|
|
|
|
char* start;
|
|
|
|
|
char* afterEnd;
|
|
|
|
|
char* cursor;
|
|
|
|
|
size_t valueLength;
|
|
|
|
|
size_t titleCount;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion trials
|
|
|
|
|
Inline helper argument bindings resist const/local representation. Test true count/id/title input parameter order and field-count ownership in the existing helper or generic template; no public signature changes.
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed-content helper input order title,contentCount,contentId: (0, 17) 163/163 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed-content helper input order contentId,title,contentCount: (0, 17) 163/163 instructions
|
|
|
|
|
|
|
|
|
|
## fz15h onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv trials
|
|
|
|
|
Call input order and explicit readonly key/control entry local in real lookup helpers. They define the index/table stride virtual register lifetime seen in onKey; matched caller effects checked if a candidate appears.
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed-content helper input order contentId,contentCount,title: (0, 17) 163/163 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed-content helper input order contentCount,title,contentId: (0, 17) 163/163 instructions
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: order: (0, 37) 682/682 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed-content helper input order contentCount,contentId,title: (0, 17) 163/163 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed count owned by generic helper: (11, 62) 164/163 instructions
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: ptr: (9, 207) 682/682 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed count owned by word helper: (11, 61) 164/163 instructions
|
|
|
|
|
- __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: installed count owned by int helper: (11, 61) 164/163 instructions
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: s8: (0, 37) 682/682 instructions
|
|
|
|
|
- onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: ctrl: (3, 45) 682/682 instructions
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetTitleSize__FP12NUPTitleInfo trials
|
|
|
|
|
Map first high-word/result temporary to tmdSize rounding expression. Test equivalent masked 64-bit widening, complement masks, real readonly view, named alignment helper and SDK ROUNDUP macro. All roundups preserve unsigned wrap for the 32-bit field.
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: wide: (46, 115) 140/139 instructions
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: mask: (0, 22) 139/139 instructions
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: snapshot: (34, 103) 138/139 instructions
|
|
|
|
|
|
|
|
|
|
## fz15h create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator trials
|
|
|
|
|
Toggle entry readonly reference helper separates the stride/header IR boundary, with scalar index, const index pointer, and const table input. No metadata objects or layout changed.
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: helper: (0, 22) 139/139 instructions
|
|
|
|
|
- __nupGetTitleSize__FP12NUPTitleInfo: roundup: (0, 22) 139/139 instructions
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: constarg: (0, 21) 333/333 instructions
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: index: (0, 21) 333/333 instructions
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: table: (0, 21) 333/333 instructions
|
|
|
|
|
|
|
|
|
|
## fz15h create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator trials
|
|
|
|
|
Toggle animation loop ownership via real while, postincrement, locally declared counter and phase-shared loop counters. The target table and stride lifetimes may reflect a shared loop local, analogous to the previous JPEG row match.
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: while: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: increment: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: outerj: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: sharedj: (0, 131) 333/333 instructions
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: sharediter: (0, 36) 333/333 instructions
|
|
|
|
|
|
|
|
|
|
## fz15h create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator trials
|
|
|
|
|
Fixed metadata readonly definition may change alias assumptions at virtual animation calls. Every table contains the original entries; no addresses/extent/layout changes or volatility added. Check all data/functions with gate if exact.
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: table: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: both: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: entry: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
- create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: normal: (0, 7) 333/333 instructions first [(219, ('add', 'r16, r19, r0'), ('add', 'r18, r19, r0')), (220, ('lwz', 'r17, 0x14(r16)'), ('lwz', 'r17, 0x14(r18)')), (223, ('mulli', 'r18, r0, 0x44'), ('mulli', 'r16, r0, 0x44')), (228, ('add', 'r5, r31, r18'), ('add', 'r5, r31, r16')), (247, ('lwzx', 'r5, r31, r18'), ('lwzx', 'r5, r31, r16')), (249, ('lwz', 'r7, 0x14(r16)'), ('lwz', 'r7, 0x14(r18)'))]
|
|
|
|
|
|
|
|
|
|
## fz15h Zi8GetPyFinal final nested declsearch
|
|
|
|
|
Structural/helper/loop trials complete. Search actual declaration lines 719..720 last. Tool automatic scan can mistake an inline if call for a definition; explicit lines avoid that.
|
|
|
|
|
declaration block:
|
|
|
|
|
ziU8 index = 0;
|
|
|
|
|
ziU8 row;
|
|
|
|
|
start (0, 8)
|
|
|
|
|
best (0, 8) after 2 builds; source restored; best order was:
|
|
|
|
|
ziU8 index = 0;
|
|
|
|
|
ziU8 row;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv final nested declsearch
|
|
|
|
|
Structural/helper/loop trials complete. Search actual declaration lines 224..225 last. Tool automatic scan can mistake an inline if call for a definition; explicit lines avoid that.
|
|
|
|
|
declaration block:
|
|
|
|
|
u8 state = static_cast<KeyEvent*>(data)->state;
|
|
|
|
|
s32 controlKey = findCellPhoneControlKey(paneName);
|
|
|
|
|
start (0, 37)
|
|
|
|
|
best (0, 37) after 2 builds; source restored; best order was:
|
|
|
|
|
u8 state = static_cast<KeyEvent*>(data)->state;
|
|
|
|
|
s32 controlKey = findCellPhoneControlKey(paneName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator final nested declsearch
|
|
|
|
|
Structural/helper/loop trials complete. Search actual declaration lines 609..610 last. Tool automatic scan can mistake an inline if call for a definition; explicit lines avoid that.
|
|
|
|
|
declaration block:
|
|
|
|
|
const char* animationKey;
|
|
|
|
|
const PaneNameToAnimationKey& paneName = csPaneNameNormalAnimationKey[i];
|
|
|
|
|
start (0, 7)
|
|
|
|
|
best (0, 7) after 2 builds; source restored; best order was:
|
|
|
|
|
const char* animationKey;
|
|
|
|
|
const PaneNameToAnimationKey& paneName = csPaneNameNormalAnimationKey[i];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv final nested declsearch
|
|
|
|
|
Structural/helper/loop trials complete. Search actual declaration lines 679..681 last. Tool automatic scan can mistake an inline if call for a definition; explicit lines avoid that.
|
|
|
|
|
declaration block:
|
|
|
|
|
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];
|
|
|
|
|
start (0, 155)
|
|
|
|
|
best (0, 155) after 6 builds; source restored; best order was:
|
|
|
|
|
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];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion final nested declsearch
|
|
|
|
|
Structural/helper/loop trials complete. Search actual declaration lines 721..722 last. Tool automatic scan can mistake an inline if call for a definition; explicit lines avoid that.
|
|
|
|
|
declaration block:
|
|
|
|
|
s32 result;
|
|
|
|
|
ESTmdView* tmdView = 0;
|
|
|
|
|
start (0, 17)
|
|
|
|
|
best (0, 17) after 2 builds; source restored; best order was:
|
|
|
|
|
s32 result;
|
|
|
|
|
ESTmdView* tmdView = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h __nupGetTitleSize__FP12NUPTitleInfo final nested declsearch
|
|
|
|
|
Structural/helper/loop trials complete. Search actual declaration lines 901..902 last. Tool automatic scan can mistake an inline if call for a definition; explicit lines avoid that.
|
|
|
|
|
declaration block:
|
|
|
|
|
s32 result = 0;
|
|
|
|
|
s32 contentIndex;
|
|
|
|
|
start (0, 22)
|
|
|
|
|
best (0, 22) after 2 builds; source restored; best order was:
|
|
|
|
|
s32 result = 0;
|
|
|
|
|
s32 contentIndex;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## fz15h pre-final completeness audit
|
|
|
|
|
Only new code retained is the exact nup base64 lookup table/output expression. All other owned source/header/config files restored. No renames, extent changes, inline assembly or unsupported volatility. Each remaining function has at least three distinct compiled current-round source attempts; compile failures and no-op rejected generators excluded.
|
|
|
|
|
TMCJPEGDEC_set_converterY8U8V8: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
kbdEventHandler: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
kbdProcMod: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
kbd_led_handler: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
KBDSetLedsAsync: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
KBDSetLeds: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
KBDSetModState: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
Zi8PrepareMatch: 3 distinct compiled current-round source variants; remains open.
|
|
|
|
|
Zi8GetPyPhonetic: 4 distinct compiled current-round source variants; remains open.
|
|
|
|
|
Zi8GetPyFinal: 10 distinct compiled current-round source variants; remains open.
|
|
|
|
|
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv: 8 distinct compiled current-round source variants; remains open.
|
|
|
|
|
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator: 22 distinct compiled current-round source variants; remains open.
|
|
|
|
|
init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv: 4 distinct compiled current-round source variants; remains open.
|
|
|
|
|
__nupParseServerInfo__FP14NUPContextInfoPcPcUx: 4 distinct compiled current-round source variants; remains open.
|
|
|
|
|
__nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion: 12 distinct compiled current-round source variants; remains open.
|
|
|
|
|
__nupGetTitleSize__FP12NUPTitleInfo: 8 distinct compiled current-round source variants; remains open.
|
|
|
|
|
All six owned sources equal the last gated commit before the final clean gate. The prior JPEG/keyboard CR1 branch-normalizer artifact persists unchanged; instruction counts from the gate are reported separately from objdiff exact counts.
|
|
|
|
|
Frame values cross-checked against the disassembly: LayoutByNW4R::create0x60 and init0x50; corrected the preliminary frame labels above. Their respective instruction counts333/536 and operand-only mismatch diagnoses are unchanged.
|
|
|
|
|
|
|
|
|
|
## fz15h remaining structural uncertainties
|
|
|
|
|
Converter setup shared-buffer expression still folds to per-case addresses; not a symbol extent issue. Keyboard event/modifier mismatches remain same-count virtual register ownership despite const views/bitfield structure/local-order trials. LED reservation still caches stride rather than channel and its completion callback has a different success branch layout.
|
|
|
|
|
Zi8GetPyPhonetic saved arguments/conversion-buffer address and Zi8GetPyFinal output row-base/stride remain allocator choices at identical frames/instruction counts. Cellphone onKey/create/init have identical structure and stack sizes after input/table/scope/helper/loop attempts; missing source distinction is unresolved. Nup parser tag helper, installed-content lookup and title-size arithmetic still allocate intermediates differently.
|
|
|
|
|
The only retained new data object is the actual base64 alphabet, one ordinary string initializer. All65 declared bytes, including terminator, come from that literal; emitted compiler alignment was not forced. Exact data/pool verification already passed; no ownership/address/extent edits were made.
|
|
|
|
|
|
|
|
|
|
## fz15h final clean full gate
|
|
|
|
|
Final non-quick gate rebuilt43U from clean objects. All six pools identical; zero regressions, forbidden additions, or readability warnings. Retained base64 candidate independently rechecked after clean build:63/63 instructions, ctxdiff diffs0.
|
|
|
|
|
```text
|
|
|
|
|
full build: ok
|
|
|
|
|
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
|
|
|
|
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
|
|
|
|
|
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 15164/15948 data None/None functions 12/13 fuzzy 99.6453 linked code 0
|
|
|
|
|
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13
|
|
|
|
|
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 99.64535
|
|
|
|
|
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.78571
|
|
|
|
|
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 15164/15948 data None functions 12 fuzzy 99.6453
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] pool: IDENTICAL
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] objdiff: code 3088/5764 data 5296/5296 functions 15/21 fuzzy 97.7044 linked code 0
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] instruction-exact functions: 14/21
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] section .bss size 3968 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] section .data size 1304 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] section .sbss size 16 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] section .sdata size 8 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] section .text size 5764 match 97.70437
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdEventHandler 99.83871
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbdProcMod 99.90234
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: kbd_led_handler 64.12
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLedsAsync 86.234566
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetLeds 84.6076
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] below 100: KBDSetModState 99.40476
|
|
|
|
|
[libs/RVL_SDK/src/kbd/kbd_lib] baseline: code 3088/5764 data 5296 functions 15 fuzzy 97.7044
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 96.3191 linked code 0
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 96.319145
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 91.66667
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 96.319145
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 96.3191
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 5172/8256 data 728/728 functions 8/10 fuzzy 99.5300 linked code 0
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 8/10
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .rodata size 528 match 100.0
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .text size 8256 match 99.53004
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 100.0
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyPhonetic 98.704735
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyFinal 99.245285
|
|
|
|
|
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 5172/8256 data 728 functions 8 fuzzy 99.5300
|
|
|
|
|
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
|
|
|
|
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7793 linked code 0
|
|
|
|
|
[src/keyboard/tiCellPhone] instruction-exact functions: 83/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.779274
|
|
|
|
|
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
|
|
|
|
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949
|
|
|
|
|
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
|
|
|
|
[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7793
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] objdiff: code 7748/10764 data 1720/1720 functions 20/23 fuzzy 99.5968 linked code 0
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 20/23
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 99.5968
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 98.108406
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion 99.35583
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetTitleSize__FP12NUPTitleInfo 99.100716
|
|
|
|
|
[libs/RVL_SDK/src/nup/nup] baseline: code 7496/10764 data 1720 functions 19 fuzzy 99.4612
|
|
|
|
|
regressions vs baseline: 0
|
|
|
|
|
global matched_code_percent: 90.55054 -> 90.55895
|
|
|
|
|
global fuzzy_match_percent: 99.57091 -> 99.57140
|
|
|
|
|
global complete_code_percent: 70.30611 -> 70.30611
|
|
|
|
|
global matched_data_percent: 99.36639 -> 99.36639
|
|
|
|
|
forbidden patterns added (net, per file): 0
|
|
|
|
|
readability warnings (net, per file; must be 0 in the final result): 0
|
|
|
|
|
GATE PASS
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## fz15h final before -> after
|
|
|
|
|
Instruction-exact values below are the gate tool values. Objdiff function counts are separate because the unchanged JPEG/keyboard CR1 branch normalization artifact undercounts gate exact functions. Missing matched_code is0.
|
|
|
|
|
libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8: gate instruction-exact 2/13 -> 2/13; objdiff exact 12/13 -> 12/13; code 15164/15948 -> 15164/15948; data 0/0 -> 0/0.
|
|
|
|
|
Open: TMCJPEGDEC_set_converterY8U8V8 92.78571%; shared buffer address folds into case-specific additions; source195/target196 instructions; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
libs/RVL_SDK/src/kbd/kbd_lib: gate instruction-exact 14/21 -> 14/21; objdiff exact 15/21 -> 15/21; code 3088/5764 -> 3088/5764; data 5296/5296 -> 5296/5296.
|
|
|
|
|
Open: kbdEventHandler 99.83871%; same186 instructions; status and report-array base virtual registers differ; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: kbdProcMod 99.90234%; same256 instructions; inlined modifier address/old-value operands swap r4/r5; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: kbd_led_handler 64.12%; source24/target25 instructions; success branch and callback-index rematerialization differ; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: KBDSetLedsAsync 86.234566%; source80/target81 instructions; channel versus cached record stride across interrupt calls; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: KBDSetLeds 84.6076%; source75/target79 instructions; channel lifetime and reservation-loop stride differ; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: KBDSetModState 99.40476%; same42 instructions; modifier address/old-value operands swap r4/r5; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
libs/RVLMiddleware/eZiText/src/clib/zprepare: gate instruction-exact 0/1 -> 0/1; objdiff exact 0/1 -> 0/1; code 0/3760 -> 0/3760; data 8/68 -> 8/68.
|
|
|
|
|
Open: Zi8PrepareMatch 96.319145%; source939/target940 instructions; component flag store and local/branch scheduling differ; 3 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
libs/RVLMiddleware/eZiText/src/clib/zi8match: gate instruction-exact 8/10 -> 8/10; objdiff exact 8/10 -> 8/10; code 5172/8256 -> 5172/8256; data 728/728 -> 728/728.
|
|
|
|
|
Open: Zi8GetPyPhonetic 98.704735%; same718 instructions/frame0x250; saved pointers/conversion-buffer operands differ; 4 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: Zi8GetPyFinal 99.245285%; same53 instructions/frame0x10; eight output-row base/stride operand differences; 10 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
src/keyboard/tiCellPhone: gate instruction-exact 83/86 -> 83/86; objdiff exact 83/86 -> 83/86; code 12824/19028 -> 12824/19028; data 3860/3860 -> 3860/3860.
|
|
|
|
|
Open: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009%; same682 instructions/frame0x80;37 key-state/table helper operand differences; 8 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.8949%; same333 instructions/frame0x60; seven toggle-entry/animation-stride operand differences; 22 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612%; same536 instructions/frame0x50;155 visibility/text-pane helper operand differences; 4 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
libs/RVL_SDK/src/nup/nup: gate instruction-exact 19/23 -> 20/23; objdiff exact 19/23 -> 20/23; code 7496/10764 -> 7748/10764; data 1720/1720 -> 1720/1720.
|
|
|
|
|
Open: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 98.108406%; same452 instructions/frame0x50;148 tag-helper pointer/length/result operand differences; 4 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: __nupGetBootVersion__FP14NUPContextInfoP14ESTitleVersion 99.35583%; same163 instructions/frame0x20;17 installed-content count/id/index operand differences; 12 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
Open: __nupGetTitleSize__FP12NUPTitleInfo 99.100716%; same139 instructions/frame0x30;22 wide arithmetic and installed-content pointer/stride operand differences; 8 distinct compiled source variants logged, plus declaration searches where applicable.
|
|
|
|
|
|
|
|
|
|
## fz15h final changes and limitations
|
|
|
|
|
Code commit e3c6f50737979184d5b359286e710b8f56fdd853 changes only libs/RVL_SDK/src/nup/nup.cpp and this attempts log. Final verification/log commit adds only this attempts log. No headers/configuration/symbols modified.
|
|
|
|
|
One new exact function: __nupBase64Encode__FPUcPUcUl. Nup19/23 ->20/23, matched code7496 ->7748 bytes, data1720 unchanged. Other five units unchanged; all16 remaining functions have at least3 valid distinct source-level attempts in this round.
|
|
|
|
|
Remaining source distinctions are unresolved, as listed per function above. The JPEG/keyboard gate instruction-count discrepancy is a branch-normalizer artifact documented with raw instruction evidence earlier; no tools were modified. No complete-unit or terminal completion claim.
|
|
|
|
|
|