# Gate 191: SKI_LIFT (63) + MOTHER_PENGUIN (257), both ov018, extending the
# gate-190 ov018 per-symbol mount (port/ov018_syms.txt). The fill is
# hal/actor_classes_ccm.cpp (hal_fill_ski_lift_vtable / hal_fill_mother_penguin_vtable).
#
# ==== CLASS IDENTITY (main-brain verified, scope report) ===================
# SkiLift's own SpawnInfo (0x021138a8) installs _ZTV7SkiLift, the
# daObjSm_Lift_c chain _ZN7SkiLiftD1Ev..02111804 + daObjSm_Lift_c_classInit.c -- the
# REAL SkiLift.
#
# The eight src/_ZN7SkiLift* files are NOT that class: daPgMthr_c_classInit.c
# installs _ZTV7SkiLift == _ZTV10daPgMthr_c at 0x021139bc (MotherPenguin_
# SpawnInfo 0x02113998 +0x24) -- a dsd-era class-identity mislabel. They are
# MOTHER_PENGUIN's own bodies, byte-correct, wrongly named. Naming
# corrections for main are queued separately (out of this worktree's scope).
#
# ==== SKI_LIFT (daObjSm_Lift_c), a Platform, 32 slots =======================
# _ZTV14daObjSm_Lift_c == _ZTV7SkiLift (0x021138cc..0x02113948
# inclusive), read with relocations applied, every slot:
#   0  InitResources    _ZN7SkiLift13InitResourcesEv  own
#   3  CleanupResources _ZN7SkiLift16CleanupResourcesEv  own
#   6  Behavior         _ZN7SkiLift8BehaviorEv  own -- NOT in the original scope
#                        report's file list; found by reading the vtable's
#                        own slot-6 reloc (0x34c bytes, essential -- without
#                        it the lift never approaches its path nodes)
#   9  Render           _ZN7SkiLift6RenderEv  own
#  12  OnPendingDestroy 0x02043ac0           ActorBase's shared base body
#  16  D1               _ZN7SkiLiftD1Ev  own -- HOST THUNK (stores its
#                        own table then OVERWRITES with the _ZTV10dBgActor_c
#                        196-speller SHARED PLACEHOLDER, the ShipUp/
#                        RockPillar gate-188 shape) -- matched src stays in
#                        src/ as proof, NOT part of this slice
#  17  D0               _ZN7SkiLiftD0Ev  own -- SAME shape (stores VT0
#                        then VT1, decl_common.h's generic placeholders, the
#                        G0/G1 disease family) -- HOST THUNK, NOT in slice
#  27  OnHitByMegaChar  _ZN7SkiLift15OnHitByMegaCharER6Player  own
#  31  Kill (Platform)  0x020ee55c (_ZN10dBgActor_c4KillEv) shared base body,
#                        already in the build -- NOT overridden
# Every other slot is the shared Actor/ActorBase half.
#
# TRAP CHECKLIST (the MovingMeshCollider carry-slot disease): SkiLift's own
# InitResources (_ZN7SkiLift13InitResourcesEv) Enables a MovingMeshCollider at +0x124
# and hand-seats its beforeClsnCallback (func_020393d4, storing
# MeshColliderBase::UpdatePosWithTransform at +0x18) plus a second data slot
# at +0x1c (func_020393c4, storing func_ov018_02111804 -> func_ov018_021117e8,
# NOT another callback -- MeshColliderBase.h's own unk_1c field, confirmed
# against the header). The MSVC-index-vs-ROM-index carry-slot collision this
# triggers is handled ONCE, globally, by the already-landed hal/mmc_vtable.cpp
# (hal_fill_moving_mesh_collider_vtable, the c9a1731da commit) and
# hal/clsn_vtable.cpp (slot_beforeclsn) -- both files are byte-identical to
# the cons tree in this worktree (diffed, confirmed). No per-class seating
# needed here; this file's InitResources calls MovingMeshCollider::SetFile
# and the shared callback-store helpers unmodified, matched src, no host copy.
#
# SkiLift's D1 (_ZN7SkiLiftD1Ev.c) and D0 (_ZN7SkiLiftD0Ev.c) are
# NOT in this list -- host thunks (skl_d1/skl_d0 in the fill) cover slots
# 16/17 instead, the ShipUp/RockPillar gate-188 treatment. Both files stay
# byte-locked in src/ as the matched proof; neither is referenced from
# CMakeLists' gate-191 source list.
src/d_a_obj_sm_lift.c
src/_ZN7SkiLift15OnHitByMegaCharER6Player.cpp
src/func_ov018_02111278.cpp
src/game/actors/d_a_pg_mthr.cpp
src/func_ov018_021117e8.cpp
src/func_ov018_02111804.c
#
# ==== MOTHER_PENGUIN (daPgMthr_c), a plain Actor, 31 slots (no Kill) ========
# _ZTV7SkiLift == _ZTV10daPgMthr_c (0x021139bc..02113a34 inclusive), read
# with relocations applied, every slot:
#   0  InitResources    _ZN10daPgMthr_c13InitResourcesEv  own -- RETIRED to the
#                        matched src TU (see the ARGSWEEP note below)
#   3  CleanupResources _ZN10daPgMthr_c16CleanupResourcesEv  own
#   6  Behavior         _ZN10daPgMthr_c8BehaviorEv  own
#   9  Render           _ZN10daPgMthr_c6RenderEv  own
#  12  OnPendingDestroy _ZN10daPgMthr_c16OnPendingDestroyEv  own (empty body --
#                        confirmed NOT the shared default by reloc target)
#  16  D1               _ZN10daPgMthr_cD1Ev  own -- a real MSVC-synthesised
#                        destructor with NO vtable store at all (the
#                        OneUpLogo D1 shape) -- NOT compiled, the chain
#                        (WithMeshClsn/MovingCylinderClsn/ShadowModel/
#                        TextureSequence/ModelAnim, high address first, then
#                        Actor's own D2) is spelled directly in the fill
#  17  D0               _ZN10daPgMthr_cD0Ev  own -- stores _ZTV10daPgMthr_c, its
#                        OWN table under the correct RTTI name, NOT a shared
#                        placeholder -- STAYS in slice, the IceSheet D0
#                        treatment
# Every other slot (1/2/4/5/7/8/10/11/13/14/15/18-30) is the shared
# Actor/ActorBase half -- MotherPenguin overrides no combat/tail slot,
# confirmed by reloc target address.
#
# ARGSWEEP: MotherPenguin's InitResources calls TextureSequence::Prepare
# with 2 args where the host bridge (hal/player_bridges.cpp) takes 3
# (self, bmd, btp). RETIRED PLAIN: the matched src's 2-arg call
# Prepare(model, animFile) lands, by cdecl argument aliasing, on the bridge as
# self=model, bmd=animFile, btp=dead -- exactly the corrected order the retired
# host copy produced by hand (it passed self=model, bmd=animFile explicitly).
# func_02046d50 reads only arg=model and t=animFile (the third value is dead
# past its own prologue), so the matched TU and the host copy are behaviourally
# identical, and port/unmatched/MotherPenguin_InitResources.cpp is dropped.
#
# src/game/actors/d_a_pg_mthr.cpp's window-shared ov036/ov056/ov022
# spellings (the #1308-#1310 trap family) are RESOLVED: carried byte-
# identical from main HEAD post-c19c90882 (#1301). src/game/actors/d_a_pg_mthr.cpp
# and src/game/actors/d_a_pg_mthr.cpp are ALSO carried (natural main drift since
# this worktree branched -- a field-name-only rename and a signature/ABI fix
# respectively, both byte-neutral).
#
# MotherPenguin's D1 (_ZN10daPgMthr_cD1Ev.cpp) is NOT in this list -- a real
# MSVC-synthesised destructor with no vtable store (the OneUpLogo D1 shape),
# so the fill (mpg_d1) spells the member-teardown chain directly instead of
# compiling this TU. It stays byte-locked in src/ as the matched proof; not
# referenced from CMakeLists' gate-191 source list.
# func_ov018_021123d0/02112398 is a REAL PMF-style state dispatch:
# InitResources calls func_ov018_021123d0(this, 0), which stores a function
# pointer read from data_ov018_02113c4c[0] (a copy of the static const cell
# at 0211394c, one of six code-pointer cells __sinit_ov018_02112c80 copies
# verbatim -- confirmed by reloc: 0211394c's own reloc target is
# 0x021122ec) at self+0x370, then IMMEDIATELY dispatches it
# (func_ov018_02112398 reads self+0x370 as a PMF* and calls through it, no
# separate trigger). Only i=0's target (func_ov018_021122ec, "AfterClsn")
# is reachable from THIS class's only call site; the other five cells'
# targets (func_ov018_021121dc/02111f1c/02111fac/02111e28/02112234) belong
# to OTHER ov018 classes' own i values and are NOT pulled in -- none of
# their own callers are part of this slice. func_ov018_021122ec is carried
# byte-identical from main HEAD: its own data_ov027/ov030 cross-overlay
# spellings (the SAME #1308-#1310 trap family InitResources had) are ALSO
# fixed there, to data_ov018_02113be8/02113bf0 -- the exact cells this
# slice already mounts for MotherPenguin's own TextureSequence/Animation
# SharedFilePtrs, so no new mount rows are needed.
#
# MotherPenguin's Behavior (_ZN10daPgMthr_c8BehaviorEv.cpp) is NOT in this list --
# HOST COPY (port/unmatched/MotherPenguin_Behavior.cpp), the MSVC dtor-slot-
# shift seam: the matched src dispatches ModelAnim::UpdateVerts through a raw
# shadow-vtable index 3 (ROM's own two-destructor-slot numbering), but the
# port's hosted _ZTV9ModelAnim is filled in MSVC's folded numbering (one
# destructor slot), so the raw index lands on Virtual10 instead -- wrong
# body, wrong ABI (Virtual10 takes a Matrix4x3&, m3() passes none). The host
# copy dispatches UpdateVerts through the real typed method call instead.
# Matched src stays byte-locked in src/, dropped from CMakeLists' gate-191
# source list.
src/_ZN13RacingPenguin16OnPendingDestroyEv.cpp
#
# ---- the two sinits (SkiLift's own + MotherPenguin's own; both
# self-contained, only ov018 symbols, verified by reading their bodies) ----
src/__sinit_ov018_02112c14.c
src/__sinit_ov018_02112c80.cpp
#
# NOT in this slice (matched src that MUST NOT be compiled -- host thunks or
# host copies cover their slots): src/game/actors/d_a_pg_mthr.cpp (SkiLift D1),
# src/game/actors/d_a_pg_mthr.cpp (SkiLift D0), src/game/actors/d_a_pg_mthr.cpp
# (MotherPenguin InitResources -- the Prepare fix), src/game/actors/d_a_pg_mthr.cpp
# (MotherPenguin D1). All four are carried in src/ byte-identical to main/
# their own last-verified state; none are referenced from CMakeLists' gate-191
# source list.
#
# ==== RIDE PROOF (review round; the gate-191 commit shipped with this gap
# documented honestly -- the reviewer then CONSTRUCTED the ride and it
# passes) ====
# SM64DS_SPAWN=549,-4350,6272 (directly above the lift's reported spawn
# point): Mario lands and STANDS ON the SkiLift's MovingMeshCollider at
# Y=-4500, 120f SM64DS_FAULTS_FATAL=1 contact run clean, exit 0. The
# SM64DS_SKIP_CLASS=SKI_LIFT control run FALLS THROUGH at the same spawn
# (no collider, Mario drops past Y=-4500), proving the standing surface is
# the lift's own seated MovingMeshCollider and not level geometry. This
# closes the gate-191 ride-sweep gap: the contested MovingMeshCollider
# callback seating (the gate-186 canonical MSVC-index shape, see the
# InitResources section above) is exercised under real contact, not just
# proximity.
