Signed-UV constant-factor near-plane clipping
17 October 2026 - VERIFIED within the bounded scope below.
Overall completion: 10% estimated weighted project milestones, not code coverage.
Goal active. Continue Sol High with alternate helpers 8c61430e / 8c616068.

Recovered source
  8c6124c0..8c61295a: 553 original instruction rows
  source/sa_main_dispatch_uv_constant_near_clip.c
  source/sa_main_dispatch_uv_constant_near_clip_connected.c
The complete helper is byte-checked annotated static C, retaining instruction
order, register effects and delay slots without runtime opcode decoding. Names
are descriptive inferences. Previous sources, reports, DLLs and disc files remain.

Observed behavior
R4/R5/R6 identify three cached vertices; R7 identifies six signed 16-bit UV words.
The helper reconstructs camera coordinates where required, performs orientation
rejection and clips against the near plane. UV edges use the original FMAC/FTRC
sequence, truncating to integers and storing/re-reading signed low-16-bit values
before scaling by 1/256. Input UV words and input vertex cache remain unchanged.
UV scratch is 8c890268, geometry scratch 8c890278 and orientation state 8c8902fc.
The connected parent's input UVs are staged at 8c890304.

Output packets contain control, projected x/y/reciprocal depth, U/V, factor 1.0
and an untouched final word. Every emitted vertex gets factor 1.0, including the
first two. The helper sets that constant internally; it does not accept the face
factor used by the earlier UV-face clipper. Four-vertex results emit in strip
order 0,1,3,2. The final packet carries control f0000000. No game calls occur.

Build and tests actually passed
- Strict Clang build: -O2 -Wall -Wextra -Werror; separate connected DLL.
- 764 original-code comparisons: 448 direct helper, 114 clipped parents, two
  alternate-topology plain parents, four draws, four callbacks and 192 meshes.
- All 553 instruction rows, 14 conditional outcomes and all four parent call sites
  covered: 8c61d61e, 8c61d886, 8c61d8a2 and 8c61dafe.
- Full 16 MiB RAM, GPRs/SR/PR, both FPU banks/FPSCR, FPUL/MACL, ordered boundaries
  and queue contents/events agree with original execution, including partial state.
- 602 cases complete, 142 match numeric/precision guards (-1), eight match the
  unsupported saved-pointer boundary (-3), 12 match enabled floating-point traps
  (1). Guarded outcomes compare partial state rather than completed draws.
- 2,166 ordered boundaries, 42,976 numerical operations, 1,946 queue transfers,
  19,914 queue events and 706 new helper invocations checked.
- 522 independent cases verify polygons, quantized signed UVs, exact factor 1.0
  on every emitted vertex, padding retention, input preservation, orientation,
  counters, scratch and cursors. They include all 192 fully native meshes.
- Inputs cover six crossing masks, accepted/rejected and degenerate triangles,
  varied near planes/projections, positive/negative/extreme/zero UVs, both FPU
  banks and queue halves. Additional incoming FR4 values include signed zeros,
  NaN payloads and negative values; emitted factors remain exactly 1.0.
  Independent UV math excludes unsupported precision modes and non-default
  rounding. Original-instruction comparisons retain those cases.
- All 192 meshes use native material setup, real projection/classification,
  primary/secondary extended headers, UV-constant parent, new clipper and
  finalizer without external game services. Both material layouts 2200000 /
  3200000, six crossing masks, windings, banks and cursor halves are tested.
- Four external boundaries remain for the two alternate UV-constant fixtures.
- 120 lifetime regressions / 984 stages passed: 23,264 boundaries, 104,016 numerical
  operations, 10,600 queue transfers, 117,808 queue events and zero external game
  services. Unchanged original models do not reach the new helper; existing flat
  paths and independent particle/pool/heap checks provide regression coverage.
- Final integrity checks passed: generated C/manifest are byte-identical, three
  reports match pinned inputs, repeat registration adds zero duplicates, four
  Python and two PowerShell scripts parse. Dispatcher mapping verifies 658
  pointer loads, 80 spans and 83 selectors. Audits find zero evidence errors and
  zero reports needing source-hash refresh. The app goal remains active.

Limits and next work
Wide FMOV can overwrite the original stack's saved vertex-pointer array. Guard
8c612614 returns host -3 before an unsupported flags load. The original partial
state matches to that boundary; physical hardware exception dispatch is unmodeled.
All-near direct inputs have original-instruction comparison evidence only, outside
the normal caller contract. Tested unlit parent triangle/quad/strip paths need no
special live-register seeding. Earlier face-family caller preconditions remain
unresolved and are not changed by this helper.
Constructed streams, coherent RAM, MMU-off queues and inherited numerical guards
bound results. GPU FIFO/pixels, MMU-on behavior, cache timing, complete frame
driving, full gameplay and playable ports remain unverified. Lifetime pass order
is host-selected. The whole historical workflow was not rerun; the new linked
build and focused/lifetime suites were run.

Registry: 1,083 entries / 1,080 unique module-address pairs, with 1,031 matches
among 10,875 indexed candidates. Another 211 non-texture binaries lack function
indexes. These discovery counts do not measure whole-game code coverage.
Next: 8c61430e (295 rows) / 8c616068 (504 rows), already exported and byte-checked
as analysis in analysis/main_dispatch_uv_constant_lower_inventory.json. Their
799 rows are not yet recovered C. Four other primitive emitters remain fixtures.
Full decompilation, playable PC/Android/stereo 3DS ports, 60/120/240 FPS, 8K,
SUPIR/settings and later N64/PS1 work remain unfinished. Texture Off must disable
sampling and use vertex colours/material fallback, including with HD enabled.

Evidence and simple check
Open this guide and SOURCE_HANDOFF.txt. Focused report
analysis/main_dispatch_uv_constant_near_clip_verification.json has
cases_passed=764, rows_covered=553, conditional_edges_covered=14 and
independent_mesh_cases=192. Linked lifetime report
analysis/main_dispatch_uv_constant_near_clip_lifecycle_verification.json has
lifecycles_passed=120 and stage_comparisons=984. No playable game is available yet.
Scripts: recover_main_dispatch_uv_constant_near_clip.py,
build_main_dispatch_uv_constant_near_clip.ps1,
verify_main_dispatch_uv_constant_near_clip.py,
verify_main_dispatch_uv_constant_near_clip_lifecycle.py,
register_main_dispatch_uv_constant_near_clip.py.
Recommended next model: Sol High; alternate helpers still need instruction-level
reverse engineering. No model switch or pause advised.
