# ===========================================================================
# SLICE pmfb4 -- run link100, lane PMFB4
# ===========================================================================
#
# The family-C CALL SHAPE rows whose TABLE had no installing seat. Every number
# below was re-derived at its own ROM address on this tree for this lane out of
# extracted/overlays/, and every emitted stride and dispatch shape was read off
# a /FAsc listing of that row's own matched TU under the port's own flags.
# Nothing here is carried from a prose file or from a census column. The CMake
# gate block is R10c in port/CMakeLists.txt.
#
# WHAT THE POPULATION ACTUALLY IS, measured on this tree first
# (runs/link100/out/PMFB4/seatcover4.txt, PMFB2's seatcover2.py method re-run
# because PMFB2 and PMFB3 landed since it was written):
#   120 CALL SHAPE rows in family C
#     6 no longer have a host definition at all (retired by earlier lanes)
#     5 sit over a table that already has an installing seat
#   109 are still hosted over a table with no seat -- AND THIRTY-NINE OF THOSE
#       READ AN OBJECT FIELD, not a table. There is no storage a boot installer
#       can verify and rewrite for those; what has to change is the WRITER, which
#       is the lane PMFB3 named at the end of port/slice_pmfb3.txt.
# That leaves SEVENTY table rows over sixty-nine tables. Ranking "by rows per
# table" is therefore nearly flat -- one table carries two rows
# (data_ov006_02142254) and every other carries exactly one -- so the practical
# grouping is BY THE FILE THAT OWNS THE TABLES, because one seat file installs
# several tables and needs one call site rather than several.
#
# ---- BATCH 1: dScMgBomroom_c, FIVE TABLES -----------------------------------
#
# port/unmatched/MgBomroom_StateDispatch.cpp owned seven host copies over seven
# tables. Five of the seven tables are seated here and their dispatchers come off
# their host copies:
#
#   func_ov006_020d5fec  data_ov006_02141660  4 slots  arity 1
#   func_ov006_020d65c8  data_ov006_02141680  4 slots  arity 1
#   func_ov006_020d6278  data_ov006_021416c0  4 slots  arity 1
#   _ZN14dScMgBomroom_c8BehaviorEv  data_ov006_021416e0  5 slots  arity 0   (vtable slot 6)
#   func_ov006_020d836c  data_ov006_02141730  7 slots  arity 1
#
# THE TWO TABLES NOT SEATED, and the two host copies that stay with them:
#   data_ov006_021416a0 is read by func_ov006_020d8f98, the OPEN-CODED
#     dispatcher: its src spells no member-pointer type at all, so it compiles
#     from src already with hostgen's MG_PMF_CALL swap, and there is no matched
#     TU to gain. Seating its table would only move where the swap happens.
#   data_ov006_02141708 is read by func_ov006_020d7c00, which is not a family-C
#     CALL SHAPE row on this tree's census and is left for a later lane.
#   Both addresses are ALSO state slots of tables that ARE seated (020d8f98 is
#   slot 3 of 021416e0, 020d7c00 is slot 6 of 02141730), so the installer writes
#   faces that call them and they keep working from both directions.
#
# THE RECORD STRIDE, ROM SIDE, read at each body's OWN address out of
# extracted/overlays/overlay_0006.bin at ov006 base 0x020bfec0
# (runs/link100/out/PMFB4/rom_gate1.txt):
#   020d5fec  add r3, r4, r0, lsl #3   on the pool word at 020d6048 = 02141660
#   020d65c8  add r3, r4, r0, lsl #3   on the pool word at 020d662c = 02141680
#   020d6278  add r3, r4, r0, lsl #3   on the pool word at 020d62dc = 021416c0
#   020d91b0  add r3, r1, r0, lsl #3   on the pool word at 020d9240 = 021416e0
#   020d836c  add r3, r4, r0, lsl #3   on the pool word at 020d8404 = 02141730
# -> EIGHT on all five. THE OTHER SHIFTS IN THOSE BODIES ARE NOT THE TABLE:
# 020d65c8 and 020d6278 also carry `add r0, r6, r5, lsl #4` and 020d836c carries
# `add r0, r6, r5, lsl #6`, which stride the ENTITY array off `this`. The record
# stride is the add whose base register is the one the literal pool loaded with
# the table address, and that is the add quoted above in each case.
#
# THE RECORD STRIDE, EMITTED SIDE, off each matched TU's own /FAsc listing under
# the port's own flags (runs/link100/out/PMFB4/emit_gate1.txt and listings/):
# _data_ov006_XXXXXXXX[eax*8] and [eax*8+4] on all five. ROM 8 == emitted 8.
#
# NO /Zp4 ON THIS BATCH, measured and not omitted. Lane PMFB1's lever is that
# MSVC aligns any struct CONTAINING a pointer to member to eight, which rounds a
# twenty-byte record to twenty-four and makes every state after state 0 read the
# wrong record silently. Each of these five TUs was compiled both ways for this
# lane and the two listings are IDENTICAL except for the TITLE line naming the
# .obj -- zero real diff lines -- so R10a's own rule applies and the option is
# left off rather than claimed.
#
# THE TWENTY-FOUR SOURCE PAIRS ALL READ {code, 0} at the addresses
# src/__sinit_ov006_0212fd48.c copies each slot from, read out of the overlay
# image rather than taken from a seat's runtime assertion, and every one is a
# WHOLE-PAIR copy. THE SPELLING MATTERS AND IS NOT THE ONE PMFB3 SAW: this sinit
# writes `data_ov006_TAB.pN = data_ov006_SRC;`, a struct assignment of the whole
# eight-byte Pair into the Nth member of a DstN struct, which is the same
# whole-pair copy as `TAB[N] = SRC` in a different spelling. A field-form fill
# would be `.pN.a =`, and there is not one anywhere in this batch. The pairs are
# tabulated in port/unmatched/MgBomroom_StateDispatch.cpp beside the installer.
#
# THE DISPATCH SHAPE, and the arity comes from each row's OWN listing. All five
# emit `mov ecx, tab[i*8+4] / mov eax, tab[i*8] / add ecx, <this> / call eax`
# with NO `add esp, N` after it -- a __thiscall indirect, receiver in ecx,
# callee cleanup -- so a plain cdecl body cannot go in the code word. Four of the
# five push one argument before the call (020d5fec pushes a literal 0, which is
# its src's own `(0)`; 020d65c8 and 020d6278 push edi; 020d836c pushes esi) and
# 020d91b0 pushes nothing. So 02141660, 02141680, 021416c0 and 02141730 take
# one-argument __fastcall faces and 021416e0 takes zero-argument ones, TWENTY-FOUR
# faces in all, in the file that owns the tables.
#
# PMFC2's `note` COLUMN SAYS "0 stack argument(s)" FOR ROWS THIS LANE MEASURED
# PUSHING ONE. It is the same class of error lane PMFB1 recorded against the
# width_ev column: the census sampled a shape, and the shape is per row. Every
# arity in this slice is read off that row's own listing.
#
# ONE /alternatename, in the seat file. src/func_ov006_020d836c.cpp declares its
# table at namespace scope, so MSVC spells the reference
# ?data_ov006_02141730@@3PAP8C@@AEXH@ZA -- read off the object with
# dumpbin /symbols -- while the ov006 mount defines the plain C name. The other
# four TUs declare their tables inside their own extern "C" blocks.
#
# TWO GUESS MARKERS, BOTH ALREADY ADJUDICATED. src/_ZN14dScMgBomroom_c8BehaviorEv.cpp
# carries "recovered from vtable slot identity"; port/tools/
# inferred_stub_adjudicated.txt:604 rules it REAL_DECOMP against the ROM (0x94,
# 35 instructions plus a two-word pool, both pool words and both call targets
# matching). The Luigi row below is the same case at line 373. The guard reports
# them, it does not refuse them.
#
# THE WITNESS MOVES WITH THE STATE. hal/scene_mg_bomroom.cpp prints
# port_mg_bomroom_flight_calls(), which counted slot 5 of 02141730 (the bomb's
# free-flight state) from inside the address switch. That switch no longer sees
# it, so the count is incremented in slot 5's face instead. Every other face
# increments g_bomroom_state_hits for the same reason. This is the trap lane
# PMFB3 hit with the tapped-pad witness: a counter left behind a seat reads zero
# forever and nothing is wrong.
#
# STALE COMMENT DISCLOSED, NOT EDITED. hal/scene_mg_bomroom.cpp:244-248 calls
# _ZN14dScMgBomroom_c8BehaviorEv "the HOST COPY in port/unmatched/MgBomroom_StateDispatch.
# cpp" and hal/scene_mg.cpp:1715-1720 says the same of _ZN12dScMgLuigi_c8BehaviorEv.
# Both are the matched TU now. The declarations themselves are correct -- same C
# linkage, same one-pointer signature, same int return -- and neither file is
# this lane's to edit, so the prose is left alone and named here.
src/actors/dScMgBomroom_c.cpp
src/_ZN14dScMgBomroom_c8BehaviorEv.cpp
src/func_ov006_020d836c.cpp
#
# ---- BATCH 1 CONTINUED: dScMgLuigi_c, THREE TABLES --------------------------
#
# port/unmatched/MgLuigi_StateDispatch.cpp owned six host copies over five
# tables. Three tables are seated here and four dispatchers come off their host
# copies -- four and not three, because data_ov006_02142254 is the one table in
# the whole remaining population that TWO rows read:
#
#   _ZN12dScMgLuigi_c12CurtainsDoneEv  data_ov006_02142204   3 slots  arity 1
#   _ZN12dScMgLuigi_c8BehaviorEv  data_ov006_02142234   4 slots  arity 0  (vtable slot 6)
#   _ZN12dScMgLuigi_c14UpdatePicturesEv  data_ov006_02142254  10 slots  arity 1
#   _ZN12dScMgLuigi_c10StateCatchEv  data_ov006_02142254   the second reader, arity 1
#
# THE TWO TABLES NOT SEATED are data_ov006_021421ec and data_ov006_0214221c,
# whose dispatchers (_ZN12dScMgLuigi_c10UpdateIrisEv and _ZN12dScMgLuigi_c13CurtainUpdateEi) are not
# family-C CALL SHAPE rows on this census; their host copies stay and
# luigi_try_1 stays live for their six addresses.
#
# THE RECORD STRIDE, ROM SIDE (runs/link100/out/PMFB4/rom_gate1.txt):
#   020f0d58  add r3, r4, r0, lsl #3   pool 020f0dd4 = 02142204
#   020f3414  add r3, r2, r1, lsl #3   pool 020f345c = 02142234
#   020f1e90  add r3, r4, r0, lsl #3   pool 020f1ef4 = 02142254
#   020f300c  add r3, r4, r0, lsl #3   pool 020f3190 = 02142254
# EMITTED SIDE: [eax*8]/[eax*8+4] on three and [edx*8]/[edx*8+4] on 020f3414.
# ROM 8 == emitted 8 on all four; /Zp4 identical-but-the-TITLE-line on all four,
# so it is not claimed.
#
# THE SEVENTEEN SOURCE PAIRS all read {code, 0} at src/__sinit_ov006_02130f64.c's
# own addresses, all whole-pair copies in the same `.pN =` spelling, no
# field-form fill. Tabulated beside the installer in the seat file.
#
# THE DISPATCH SHAPE: all four `call eax` with the receiver in ecx and no
# caller cleanup. 020f0d58 pushes edi, 020f1e90 pushes esi, 020f300c pushes esi;
# 020f3414 pushes nothing. So 02142204 and 02142254 take one-argument faces and
# 02142234 takes zero-argument ones, SEVENTEEN faces in all.
#
# THREE /alternatename DIRECTIVES, and a fourth spelling that needs none.
# 020f0d58, 020f3414 and 020f1e90 declare their tables at namespace scope, so
# MSVC spells ?data_ov006_02142204@@3PAUEntry@@A,
# ?data_ov006_02142234@@3PAUEntry@@A and ?data_ov006_02142254@@3PAUEntry@@A --
# all three read off the objects with dumpbin /symbols. src/_ZN12dScMgLuigi_c10StateCatchEv
# .cpp declares the SAME data_ov006_02142254 inside its own extern "C" block and
# comes in as the plain _data_ov006_02142254. One table, two spellings, both
# resolving through the mount's single definition.
#
# TWO OF THE FOUR ARE THEMSELVES STATE BODIES: _ZN12dScMgLuigi_c10StateCatchEv is slot 3 of
# data_ov006_02142234 and _ZN12dScMgLuigi_c13CurtainUpdateEi (still a host copy) is slot 1 of
# data_ov006_02142204. The installer writes faces that call both, so seating
# 02142234 does not orphan the retired dispatcher: it is reached as a state
# through its own seated cell and dispatches 02142254 through the seated cells
# in turn.
src/actors/dScMgLuigi_c.cpp
#
# ---- BATCH 2: dScMgTeresa_c, FOUR TABLES (the class closes) -----------------
#
# port/unmatched/MgTeresa_StateDispatch.cpp owned four host copies over four
# tables, which is the whole class. All four tables are seated here, so NO HOST
# COPY OF A dScMgTeresa_c DISPATCHER IS LEFT:
#
#   _ZN13dScMgTeresa_c8BehaviorEv  data_ov006_02142eb0   5 slots  arity 0  (vtable slot 6)
#   func_ov006_0211dd0c  data_ov006_02142e88   5 slots  arity 1
#   func_ov006_0211d5a8  data_ov006_02142f18   9 slots  arity 1
#   func_ov006_0211f6fc  data_ov006_02142ed8   8 slots  arity 1
#
# 5+5+9+8 = 27, the whole census that file's header counts.
#
# THE STRIDE, ROM SIDE, read at each body's own address out of
# extracted/overlays/overlay_0006.bin (runs/link100/out/PMFB4/rom_gate2.txt):
#   021203ac  add r3,r1,r0,lsl #3  pool 021203f8 = 02142eb0
#   0211dd0c  add r3,r4,r0,lsl #3  pool 0211dd68 = 02142e88
#   0211d5a8  add r3,r4,r0,lsl #3  pool 0211d604 = 02142f18
#   0211f6fc  add r3,r4,r0,lsl #3  pool 0211f778 = 02142ed8
# EMITTED SIDE: [eax*8] and [eax*8+4] in all four listings. ROM 8 == emitted 8.
# /Zp4 identical-but-the-TITLE-line on all four, so it is not claimed.
#
# THE TWENTY-SEVEN SOURCE PAIRS all read {code, 0} at src/__sinit_ov006_02132f68
# .c's own addresses, all whole-pair copies, no field-form fill. Tabulated beside
# the installer in the seat file.
#
# THE DISPATCH SHAPE, off each row's own listing: `call eax` with the receiver in
# ecx and no caller cleanup. 0211d5a8 and 0211dd0c push a literal 0 (their src's
# own `(0)`), 0211f6fc pushes esi, 021203ac pushes nothing.
#
# FOUR /alternatename DIRECTIVES, each mangling read off the object with dumpbin
# /symbols: three P8 pointer-to-member spellings and one @@3PAUEntry@@A.
#
# THE CENSUS RECEIVER MOVES WITH THE BEHAVIOR. hal/scene_mg_booseek.cpp reads the
# top-level state index through port_mg_teresa_state_index, and the only place
# that ever recorded the receiver was _ZN13dScMgTeresa_c8BehaviorEv just before its
# dispatch. That is the matched TU now, so data_ov006_02142eb0's five faces
# record it -- same object, same instant in the frame, because the face runs from
# inside that same dispatch. Without this the census would read -1 forever with
# nothing wrong, which is the witness trap PMFB3 recorded.
#
# ONE GUESS MARKER, ADJUDICATED. src/_ZN13dScMgTeresa_c8BehaviorEv.cpp carries "recovered
# from vtable slot identity"; port/tools/inferred_stub_adjudicated.txt:2316 rules
# it REAL_DECOMP against the ROM.
#
# STALE COMMENT DISCLOSED, NOT EDITED. hal/scene_mg_booseek.cpp:66 says "vtable
# slot 6 is NOT wired to src/_ZN13dScMgTeresa_c8BehaviorEv.cpp ... it would stride an
# eight-byte table by four", and its face points at the host copy. The stride
# half of that is superseded by measurement: this port compiles with /vmg /vmm,
# under which an incomplete class's pointer to member is the general eight-byte
# representation, and the TU's own listing reads [eax*8] against the ROM's
# lsl #3. The file is not this lane's to edit, so the prose is left and named.
src/_ZN13dScMgTeresa_c8BehaviorEv.cpp
src/actors/dScMgTeresa_c.cpp
src/func_ov006_0211f6fc.cpp
#
# ---- BATCH 2 CONTINUED: dScMgCoin_c, THREE TABLES OF FIVE -------------------
#
#   _ZN11dScMgCoin_c8BehaviorEv  data_ov006_02141810   6 slots  arity 0  (vtable slot 6)
#   func_ov006_020dd2cc  data_ov006_021417b0   3 slots  arity 1
#   func_ov006_020de26c  data_ov006_02141840   6 slots  arity 1
#
# NOT SEATED: data_ov006_021417c8 and data_ov006_021417e8, read by
# func_ov006_020dc298 and func_ov006_020dc754, which are not family-C CALL SHAPE
# rows on this census. Their host copies stay and both switches stay live.
#
# THE STRIDE, ROM SIDE:
#   020dd2cc  add r3,r4,r0,lsl #3  pool 020dd330 = 021417b0
#   020de26c  add r3,r4,r0,lsl #3  pool 020de434 = 02141840
#   020de69c  add r3,r4,r0,lsl #3  pool 020de700 = 02141810
# EMITTED: [eax*8]/[eax*8+4] on all three; /Zp4 a no-op on all three.
#
# THE FIFTEEN SOURCE PAIRS all read {code, 0} at src/__sinit_ov006_0213014c.c's
# own addresses, all whole-pair copies.
#
# ARITY: 020dd2cc pushes esi and 020de26c pushes edi (the loop counter);
# 020de69c pushes nothing.
#
# THREE /alternatename DIRECTIVES: ?data_ov006_021417b0@@3PAUEntry@@A,
# ?data_ov006_02141810@@3PAUEntry@@A and ?data_ov006_02141840@@3PAP8Obj@@AEXH@ZA.
# The `Obj` in the third is the shadow class name src/func_ov006_020de26c.cpp
# gives its receiver; it is part of the decoration and was read off the object,
# not guessed.
#
# ONE RETIRED DISPATCHER IS ALSO A SEATED STATE: func_ov006_020de26c is slot 3 of
# data_ov006_02141810, so its face calls the matched TU, which then dispatches
# data_ov006_02141840 through the seated cells. func_ov006_020de440 is slot 2 of
# the same table and is still a host copy; its face calls that copy.
#
# THE TOUCH WITNESS MOVES. g_coin_touch_calls counted entries to 0x020dd0e0, slot
# 0 of data_ov006_021417b0, from inside coin_try_1; hal/scene_mg.cpp prints it,
# and the switch no longer sees that address, so the count is taken in slot 0's
# face.
#
# ONE GUESS MARKER, ADJUDICATED: src/_ZN11dScMgCoin_c8BehaviorEv.cpp, ruled REAL_DECOMP
# at port/tools/inferred_stub_adjudicated.txt:487.
#
# STALE COMMENT DISCLOSED, NOT EDITED: hal/scene_mg.cpp:3002-3006 still calls
# _ZN11dScMgCoin_c8BehaviorEv "the HOST COPY". The declaration beside it is correct.
#
# A FOURTH DIRECTIVE THE LINK FOUND AND THIS LANE DID NOT PREDICT.
# src/func_ov006_020de26c.cpp reaches ov004's data_ov004_020beb68 under the name
# `func_020beb68` -- the spelling defect MgCoin_StateDispatch.cpp's header
# records -- declared at NAMESPACE scope as `char *`, so the reference mangles
# ?func_020beb68@@3PADA. The host copy declared the same global inside extern "C"
# and resolved through unmatched/MgCoin_Faces.cpp:77's
# `/alternatename:_func_020beb68=_data_ov004_020beb68`, so retiring the copy left
# the C++ spelling unresolved and the LINK NAMED IT: "unresolved external symbol
# char * func_020beb68 referenced in function _func_ov006_020de26c". It is the
# third spelling of one global -- the plain C name and ?func_020beb68@@3PAUV@@A
# already have directives -- and the fix is one more row pointing at the same
# storage, in this lane's own seat file, read off the object with dumpbin. The
# failed link deleted walk_window.exe and truncated the map, which is the shape
# the house law warns about; the gate was re-built from clean after the fix.
src/_ZN11dScMgCoin_c8BehaviorEv.cpp
src/func_ov006_020dd2cc.cpp
src/func_ov006_020de26c.cpp
#
# ---- BATCH 2 CONTINUED: dScMg3DEsp_c, THREE TABLES OF SEVEN -----------------
#
#   _ZN12dScMg3DEsp_c8BehaviorEv  data_ov006_02141f2c   3 slots  arity 0  (vtable slot 6)
#   func_ov006_020e9374  data_ov006_02141f5c   3 slots  arity 1
#   func_ov006_020e8d08  data_ov006_02141f74   3 slots  arity 1
#
# NOT SEATED: data_ov006_02141fac, _02141f1c, _02141f8c and _02141f44, whose
# dispatchers are not family-C CALL SHAPE rows here. Their host copies stay,
# including the one that counts the NONMATCHING body, which is untouched.
#
# THE STRIDE, ROM SIDE:
#   020e9e00  add r3,r4,r0,lsl #3  pool 020e9e64 = 02141f2c
#   020e9374  add r3,r4,r0,lsl #3  pool 020e93e4 = 02141f5c
#   020e8d08  add r3,r4,r0,lsl #3  pool 020e8d78 = 02141f74
# EMITTED: [eax*8]/[eax*8+4] on all three; /Zp4 a no-op on all three.
#
# A WARNING IN THE SEAT FILE IS SUPERSEDED BY THIS MEASUREMENT, and the seat file
# now says so. Its section on _ZN12dScMg3DEsp_c8BehaviorEv said the src's `extern "C" PMF
# data_ov006_02141f2c[];` is "SILENT to a link ... the linker is satisfied while
# MSVC strides the eight-byte table by four". The silence to the LINK is still
# real -- the plain C name resolves, and this is the one row in the batch that
# needs no /alternatename -- but the stride half is not: the port compiles with
# /vmg /vmm, which is PMFC2's finding in one line (an incomplete class's pointer
# to member is the general eight-byte representation whether the class is
# complete at the declaration or not), and the TU's own listing reads [eax*8]
# against the ROM's lsl #3. Both halves are re-measured here rather than
# inherited from either direction.
#
# THE NINE SOURCE PAIRS all read {code, 0} at src/__sinit_ov006_02130a08.c's own
# addresses, all whole-pair copies.
#
# ARITY: 020e9374 and 020e8d08 push edi at BOTH of their two indirect call sites
# -- each compiles its loop with a peeled first iteration, and both sites were
# read; 020e9e00 pushes nothing.
#
# TWO /alternatename DIRECTIVES: ?data_ov006_02141f5c@@3PAP8C71@@AEXH@ZA and
# ?data_ov006_02141f74@@3PAP8C70@@AEXH@ZA. The C70 and C71 are the shadow class
# names those two TUs give their receiver; both read off the objects.
#
# THE PER-TABLE CENSUS MOVES. g_esp_table_hits[T_F2C], [T_F5C] and [T_F74] were
# incremented only inside the three retired host copies, and
# hal/scene_mg_psycheout.cpp reads all seven through port_mg_esp3d_table_counts
# to say WHICH of the seven tables ran. The faces take the counts instead, one
# per dispatch through their own table.
#
# ONE GUESS MARKER, ADJUDICATED: src/_ZN12dScMg3DEsp_c8BehaviorEv.cpp, ruled REAL_DECOMP
# at port/tools/inferred_stub_adjudicated.txt:1111.
#
# STALE COMMENT DISCLOSED, NOT EDITED: hal/scene_mg_psycheout.cpp:203-208 still
# calls _ZN12dScMg3DEsp_c8BehaviorEv "the HOST COPY".
src/_ZN12dScMg3DEsp_c8BehaviorEv.cpp
src/func_ov006_020e9374.cpp
src/func_ov006_020e8d08.cpp
#
# ---- BATCH 3: dScMgPachinko2_c, ALL THREE TABLES (the class closes) ---------
#
# port/unmatched/MgPachinko2_StateDispatch.cpp owned three host copies over
# three tables, which is the whole class:
#
#   func_ov006_020fff84  data_ov006_021426cc   5 slots  arity 1
#   func_ov006_02102e8c  data_ov006_021426f4   8 slots  arity 1
#   func_ov006_0210246c  data_ov006_02142734  15 slots  arity 1
#
# 5+8+15 = 28, the whole census that file's header counts, so NO HOST COPY OF A
# dScMgPachinko2_c DISPATCHER IS LEFT.
#
# THE STRIDE, ROM SIDE (runs/link100/out/PMFB4/rom_gate3.txt):
#   020fff84  add r3,r4,r0,lsl #3 at 020fffac, pool 020fffe8 = 021426cc
#   02102e8c  add r3,r4,r0,lsl #3 at 02102eb4, pool 02102ef0 = 021426f4
#   0210246c  add r3,r4,r0,lsl #3 at 02102494, pool 021024dc = 02142734
# The `lsl #5` and `lsl #6` adds in those bodies stride the ENTITY array off
# `this`, which is what the file's own header already records as the element
# stride; the record stride is the add whose base register the literal pool
# loaded with the table address.
# EMITTED: [eax*8]/[eax*8+4] in all three; /Zp4 a no-op on all three.
#
# THE TWENTY-EIGHT SOURCE PAIRS all read {code, 0} at src/__sinit_ov006_02131cd0
# .c's own addresses, all whole-pair copies. ARITY: one pushed argument on all
# three (edi, edi, esi -- the loop counter), receiver in ecx, callee cleanup.
#
# TWO /alternatename DIRECTIVES, read off the objects with dumpbin /symbols;
# src/func_ov006_0210246c.cpp declares its table inside extern "C".
#
# THE PER-SLOT CENSUS MOVES INTO THE FACES. g_lkt_cc, g_lkt_f4 and g_lkt_34 are
# twenty-eight per-slot counts fed from inside the switch and printed by
# hal/scene_mg_slot3.cpp to say which state of which table ran. Each face takes
# its own count, one per dispatch of its own cell.
src/func_ov006_020fff84.cpp
src/func_ov006_02102e8c.cpp
src/func_ov006_0210246c.cpp
#
# ---- BATCH 3 CONTINUED: dScMgMemory_c, TWO TABLES --------------------------
#
#   _ZN13dScMgMemory_c8BehaviorEv  data_ov006_021422dc   5 slots  arity 0  (vtable slot 6)
#   _ZN13dScMgMemory_c11UpdateCardsEv  data_ov006_02142334   7 slots  arity 1
#
# ROM: add r3,r1,r0,lsl #3 at 020f539c on pool 020f53dc = 021422dc, and
# add r3,r4,r0,lsl #3 at 020f3f3c on pool 020f3f80 = 02142334. EMITTED [eax*8]
# both; /Zp4 a no-op both. Twelve source pairs, all {code, 0}, all whole-pair,
# at src/__sinit_ov006_021311c8.c's own addresses.
#
# ARITY: 020f3f10 pushes edi at BOTH of its two indirect call sites (its loop
# compiles with a peeled first iteration and both sites were read); 020f5388
# pushes nothing. Two of the twelve slots hold `void(void)` empty bodies in
# one-argument cells and their faces call them with nothing, which is the
# ride-through shape port/tools/aritycheck.py checks.
#
# TWO HOST COPIES STAY: _ZN13dScMgMemory_c9StatePlayEv and _ZN13dScMgMemory_c11StateResultEv are STATE
# BODIES of data_ov006_021422dc, not dispatchers of a table of their own, so
# the installer writes faces that call them.
#
# ONE /alternatename (?data_ov006_02142334@@3PAP8C75@@AEXH@ZA) and one
# adjudicated guess marker (src/minigames/d_s_mg_memory.cpp, REAL_DECOMP at
# port/tools/inferred_stub_adjudicated.txt:760).
#
# STALE COMMENT DISCLOSED, NOT EDITED: hal/scene_mg_memory1.cpp:247-251.
src/minigames/d_s_mg_memory.cpp
#
# ---- BATCH 3 CONTINUED: dScMgMemory2_c, TWO TABLES -------------------------
#
#   _ZN14dScMgMemory2_c8BehaviorEv  data_ov006_021423e0   5 slots  arity 0  (vtable slot 6)
#   _ZN14dScMgMemory2_c11UpdateCardsEv  data_ov006_02142408   7 slots  arity 1
#
# ROM: add r3,r1,r0,lsl #3 at 020f746c on pool 020f74ac = 021423e0, and
# add r3,r4,r0,lsl #3 at 020f5c6c on pool 020f5cb0 = 02142408. EMITTED [eax*8]
# both; /Zp4 a no-op both.
#
# A THIRD WHOLE-PAIR SPELLING, AND IT NEARLY COST THIS BATCH TWO TABLES.
# src/__sinit_ov006_021314e4.c writes `data_ov006_TAB.p[N] = data_ov006_SRC;` --
# an assignment of the whole eight-byte Pair into element N of an array member --
# where the Bomroom and Luigi constructors write `TAB.pN = SRC` and the ov006
# sound constructor writes `TAB[N] = SRC`. This lane's reader knew the first two
# and read ZERO pairs for both of these tables, which would have read as "the
# sinit does not fill them" rather than as a reader gap. The reader was widened,
# both tables came back with their full twelve pairs, and gate 1 and gate 2 were
# re-read with the wider reader and came back unchanged (41 and 51). A
# field-form fill in this spelling would be `.p[N].a =`, and there is not one.
#
# ARITY: 020f5c40 pushes edi at both of its two call sites, 020f7458 pushes
# nothing. Two slots are `void(void)` empty bodies in one-argument cells.
#
# TWO HOST COPIES STAY: _ZN14dScMgMemory2_c9StatePlayEv and _ZN14dScMgMemory2_c11StateResultEv, state
# bodies of data_ov006_021423e0. The switch arm that counts the NONMATCHING body
# at 0x020f6904 is in neither seated table and is untouched.
#
# ONE /alternatename (?data_ov006_02142408@@3PAP8C77@@AEXH@ZA) and one
# adjudicated guess marker (src/actors/dScMgMemory2_c.cpp, REAL_DECOMP at
# port/tools/inferred_stub_adjudicated.txt:326).
#
# STALE COMMENT DISCLOSED, NOT EDITED: hal/scene_mg_memory2.cpp:188-192.
src/actors/dScMgMemory2_c.cpp
#
# ---- BATCH 3 CONTINUED: dScMgPachinko_c, TWO TABLES ------------------------
#
#   func_ov006_020fad34  data_ov006_02142604   4 slots  arity 1
#   func_ov006_020fb60c  data_ov006_0214266c   5 slots  arity 1
#
# ROM: add r3,r1,r0,lsl #3 at 020fad54 on pool 020fad8c = 02142604, and at
# 020fb630 on pool 020fb66c = 0214266c. EMITTED [eax*8] both; /Zp4 a no-op both.
# Nine source pairs, all {code, 0}, all whole-pair, at src/__sinit_ov006_02131a38
# .c's own addresses.
#
# ARITY: both push a literal 0, which is each src's own `(0)` and what the ROM
# does; receiver in ecx, callee cleanup.
#
# BOTH OF THIS FILE'S HOST COPIES GO, and the switch still stays: the eleven
# addresses of data_ov006_02142624 are routed by three dispatchers that compile
# from src with hostgen's MG_PMF_CALL swap and reach the switch through
# port_mg_pachinko_call1. Nothing on that path moves.
#
# ONE /alternatename (?data_ov006_0214266c@@3PAP8C@@AEXH@ZA).
src/func_ov006_020fad34.cpp
src/func_ov006_020fb60c.cpp
#
# ---- NOT TAKEN IN BATCH 3, WITH THE MEASUREMENT THAT STOPS IT --------------
#
# func_ov006_020e3078 (dScMgCurling_c) READS TWO TABLES, NOT ONE. Its listing
# carries EXTRNs for BOTH data_ov006_021418b0 and data_ov006_02141910 and it has
# two indirect call sites, one per table. The census names only 021418b0. A seat
# for one table alone would leave the second dispatch reading a cartridge code
# word and calling it, so retiring this row needs BOTH tables seated -- 2 + 4
# pairs, all {code, 0}, all whole-pair, both measured for this lane and recorded
# in runs/link100/out/PMFB4/rom_gate3.txt -- and slot 1 of 021418b0 is
# func_ov006_020e1854, the hand-transcribed body in
# unmatched/MgCurling_State_020e1854.cpp rather than a matched src TU, so the
# face for it has to name that file's symbol and not the ROM's. Its sibling
# _ZN14dScMgCurling_c8BehaviorEv (data_ov006_02141950, 5 slots) is clean and single-table
# but slot 1 of that table IS func_ov006_020e3078, so the two rows have to move
# together or one of them installs a face pointing at a host copy that is about
# to be retired. Left as one coherent piece of work for the next lane rather
# than half-done here.
#
# THE CHECK THAT FOUND IT IS WORTH KEEPING. After gate 2's link failure this
# lane started scanning EVERY matched TU's listing for ALL data-table EXTRNs
# rather than only the one the census names. Of the thirty rows measured across
# the three gates, exactly one reads two tables. A census row names the table a
# dispatcher was FOUND by; it does not promise that is the only one it reads.
