# run linkw wave 5 (lane w5-B): ov021's HMC cast, per symbol.
#
# ov021 (level 13, Hazy Maze Cave, data/stage/cave) is already mounted WHOLE
# in PORT_LEVEL_OVERLAYS (gate 156); this is the per-symbol JOIN -- the
# ov010/ov019/ov045 dual-mount shape -- so the level's three resident actor
# classes reach their SpawnInfo records, tuning tables, CLPS blocks and
# sinit-built SharedFilePtrs BY NAME: WORK_ELEVATOR (68), ROLLING_ROCK (221),
# SHUTTER_HMC (67). tools/ovdata.py --whole and --from-list --pack keep their
# tags distinct, so the two mounts do not conflict (the ov045 header's rule).
#
# ==== MANDATORY WINDOW-ALIAS CHECK (the gate-199/202 rule) ==================
# The three SpawnInfo addresses are `ambiguous` in config/arm9/overlays/ov021/
# symbols.txt (ov020/ov021 share this window -- Bookend 327 / BookShotSpawner
# 328 live at 0x02114860/0x0211487c in ov020's image, lane 5-A territory).
# RESOLVED from raw bytes out of extracted/overlays/overlay_0021.bin (base
# 0x021111a0; ov021 is compressed:true, the dsd export is the compressed
# image) against the arm9 spawn table 0x02090864 + id*4:
#   id  68 -> 0x02114768  word[0]=0x02112168 daObjCvNewsLift_c_classInit  id-half 68
#   id 221 -> 0x02114824  word[0]=0x02112d64 daGrock_c_classInit   id-half 221
#   id  67 -> 0x021148f0  word[0]=0x02112ed4 daObjCvShutter_c_classInit    id-half 67
# Every spawn word lands inside ov021's own code and every id matches its
# spawn-table slot. Names are unshifted (each class's block is contiguous).
#
# ONE MORE NAME RACE, resolved against ov021's own config: daObjCvNewsLift_c_classInit
# spells its own vtable store `func_ov075_0211478c` -- another module's dsd
# export won the naming race at 0x0211478c, which ov021's config names
# _ZTV12WorkElevator. Aliased onto the host array in
# hal/actor_classes_ov065.cpp (this lane's class file hosts the whole HMC
# cast, ov021 classes included).
#
# ==== THREE VTABLE SPANS LEFT OUT ==========================================
# Host arrays hal/actor_classes_ov065.cpp fills (the ov015/ov016/ov080 rule).
# Widths pinned by the reloc run AND the next dsd data symbol:
#   0x0211478c..0x0211480c  _ZTV12WorkElevator  32 slots, slot 31 =
#                           Platform::Kill (0x020ee55c); dsd split the span at
#                           0x021147c4, both halves excluded
#   0x02114848..0x021148c4  _ZTV11RollingRock == _ZTV9daGrock_c  31 slots
#                           (Actor shape, own slot 29); the THREE RELOCATED
#                           WORDS after it (0x021148c4: typeinfo vtable ptr /
#                           &0x021148dc / ov002 0x021099c0) are dsd's own
#                           SPLIT symbol _ZTI16daObjCvShutter_c and ride the
#                           mount, unlike DorrieCap's merged tail
#   0x02114914..0x02114994  _ZTV16daObjCvShutter_c  32 slots, slot 31 =
#                           Platform::Kill; the span crosses the overlays.yaml
#                           code_size boundary (0x02114980) -- the reloc run
#                           carries slots 27..31 at 0x02114980..0x02114990, so
#                           the yaml size is floor-rounded, not the truth
#
# ==== FACTORY SHAPES (re-derived, not carried) =============================
# daObjCvNewsLift_c_classInit and daGrock_c_classInit each store their OWN table (by the
# aliased/real name) as the single final vptr write: registered directly.
# daObjCvShutter_c_classInit is the ov045 factory-F shape -- disassembled at
# 0x02112eec..0x02112ef8: ldr r1,=0x021099e4 (ov002 BASE table, the
# daObjCvShutter_c spelling); ldr r0,=0x02114914 (OWN); str r1,[r4]; str
# r0,[r4]. Base first, own second; the recovered source's VT1 placeholder is
# the OWN store, so a raw spawn leaves the object dispatching through
# auto_bss zeros. port_factory_shutter_hmc reseats p[0] after the real Spawn.
#
# ==== SINITS (the ov019 rule) ==============================================
#   __sinit_ov021_02113500  WorkElevator (16 bss targets 0x021149a0..4a44) RUNS
#   __sinit_ov021_02113688  RollingRock  (0x02114a50/58)                  RUNS
#   __sinit_ov021_021136c8  ShutterHmc   (0x02114a64..4a80, reached via the
#                           pointer table 0x021148d0)                     RUNS
# All three ride ov65_bringup in hal/actor_classes_ov065.cpp (the w4-b
# pattern; no lane owns hal/actor_overlays.cpp this wave).
#
# data_ov021_02114a80 is the LAST bss node and sits AT the overlays.yaml
# bss end (base + code 0x37e0 + bss 0x100 = 0x02114a80): the yaml size is
# floor-rounded again -- __sinit_ov021_021136c8's own body chains a 12-byte
# destructor node there (func_020731dc's third argument), so it is pinned
# 0xc rather than left to the 4-byte last-symbol floor.

# ---- WORK_ELEVATOR (68): CLPS blocks, tuning words, SpawnInfo -------------
data_ov021_02113a60 data_ov021_02113a80
data_ov021_02114740 _ZTI17daObjCvNewsLift_c data_ov021_02114750 _ZTS17daObjCvNewsLift_c
g_profile_CV_NEWS_LIFT

# ---- ROLLING_ROCK (221): SpawnInfo + the split three-word record ----------
g_profile_GORO_ROCK
_ZTI16daObjCvShutter_c
# The mangled class-name string the record's middle word points at,
# "16daObjCvShutter_c" -- 18 characters, NUL at +18 (read out of the raw ndspy
# image; ov021's dsd export is the compressed one and shows garbage here). dsd
# guessed a boundary four bytes in, so the host array was [4] plus a zero pack
# pad and every read got "16da". 0x14 runs to g_profile_CV_SHUTTER at
# 0x021148f0.
_ZTS16daObjCvShutter_c:0x14

# ---- SHUTTER_HMC (67): pointer table + the CLPS block it names ------------
data_ov021_02113a00
data_ov021_021148d0
g_profile_CV_SHUTTER

# ---- bss: the three sinits' SharedFilePtrs and destructor-chain nodes -----
data_ov021_021149a0 data_ov021_021149a8 data_ov021_021149b0 data_ov021_021149b8
data_ov021_021149c0 data_ov021_021149cc data_ov021_021149d8 data_ov021_021149e4
data_ov021_021149f0 data_ov021_021149fc data_ov021_02114a08 data_ov021_02114a14
data_ov021_02114a20 data_ov021_02114a2c data_ov021_02114a38 data_ov021_02114a44
data_ov021_02114a50 data_ov021_02114a58
data_ov021_02114a64 data_ov021_02114a6c data_ov021_02114a74
data_ov021_02114a80:0xc
