# Lane WIG, run mg9: dScMgHanachan_c, actor id 0x182 (scene 386) -- the
# "Which Wiggler" minigame, and the twelfth ov006 minigame class the port seats.
#
# ---- THE IDENTITY, DERIVED FRESH FROM THE ROM -----------------------------
#
# Every address below was derived by this lane out of
# extracted/overlays/overlay_0006.bin at base 0x020bfec0 (the shipped image,
# never a dsd export) rather than taken from the handover, by the mechanical
# route port/mg_fanout_costs.txt section 3 prescribes.
#
#   THE SPAWNINFO. The doubled-id word 0x01820182 occurs EXACTLY ONCE in the
#   whole overlay, at 0x0213c990, which puts the eight-byte SpawnInfo record at
#   0x0213c98c with the factory in the word before it: 0x020ede18, which
#   config/arm9/overlays/ov006/symbols.txt names dScMgHanachan_c_classInit
#   (size 0x68). There is no second candidate to choose between.
#
#   THE FACTORY'S OWN RELOCATION CONFIRMS THE VTABLE:
#       from:0x020ede70 kind:load to:0x0213cab8 module:overlay(6)
#   and 0x020ede70 is inside dScMgHanachan_c_classInit's literal pool
#   (0x020ede18 + 0x58). The other two load relocations that reach 0x0213cab8
#   are the two destructors' pools, 0x020ea2c0 (slot 16, D2) and 0x020ea318
#   (slot 17, D0), and there are no others in the overlay.
#
#   AND arm9's OWN SPAWN TABLE AGREES, which is the check lane S75 recommends
#   and which is stronger than the arithmetic on its own. ACTOR_SPAWN_TABLE holds
#   one record pointer per actor id; entry 0x182 sits at 0x02090e6c and holds
#   0x0213c98c. Its neighbours are known-good: 0x181 -> 0x0213fbc8 and
#   0x183 -> 0x0213f974, and 0x176/0x177/0x178 three rows earlier read
#   0x0213c214, 0x0213c434 and 0x0213ebd0, which are exactly the three addresses
#   port/mg_fanout_costs.txt and port/slice_s75.txt give those classes.
#
#   THE CLASS NAME IS THE ROM'S, through the type_info the word BEFORE the
#   vtable points at -- lane PPP's chain, which beats a src spelling because a
#   per-TU placeholder can be wrong and a relocation cannot:
#       from:0x0213cab4 kind:load to:0x0213ca7c module:overlay(6)
#       from:0x0213ca80 kind:load to:0x0213ca88 module:overlay(6)
#   and 0x0213ca88 reads "15dScMgHanachan_c". The record's third word,
#   0x0213ca84 -> 0x020bbf6c, is ov004's "11dScMgBase_c".
#
# THE SPAWN SYMBOL SAYS WhichWiggler AND THE CLASS SAYS Hanachan, AND BOTH ARE
# THE ROM'S. That is curling's MgShuffleShell / dScMgCurling_c shape and
# bomroom's MgSortOrSplode / dScMgBomroom_c shape exactly, and the class name is
# the one this seat's files are named after, per the rule lane MG1 set.
# "Hanachan" is the Japanese name for the Wiggler; the localised title is the
# guessing game.
#
# THE PLAYER-FACING TITLE IS "WHICH WIGGLER" and this lane takes it from the
# config's own spawn symbol, MgWhichWiggler. It does NOT need to be derived: the
# ROM gives this id a named spawn symbol, unlike the four classes in this family
# that have only an address-shaped one. Run mg9 lane S371 has since shown that
# minigame titles ARE derivable from the ROM's BMG message files through their
# glyph encoding, which supersedes the older "no title text is stored anywhere
# in the image" reading; that correction belongs to S371's branch and is cited
# here rather than restated. Nothing in this seat depends on either answer.
#
# ---- THE ov005 ROW, RECORD AND TEXT ---------------------------------------
#
# The spawn param now flows automatically through
# hal/scene_mg_sound.cpp's port_mg_scene_spawn_param, and section 17 of
# port/mg_fanout_costs.txt requires a lane to VERIFY that its scene's row
# resolves and to report the two indices. Read out of
# extracted/overlays/overlay_0005.bin at file offset 0x2618, 36 rows of 0x34:
#
#     id 0x182 appears EXACTLY ONCE, at row 27
#     param 0x000f1b00  ->  save record 27, name text 15, slot-35 low byte 0
#     music 18, enable 2
#
# ONCE MATTERS. Six ids appear on two ov005 rows (0x0173, 0x0178, 0x0179,
# 0x017a, 0x017c, 0x016c) because the ROM's menu selects by POSITION and the
# port takes the first row, which is the caveat section 17 attaches to scene
# 380's censuses. 0x182 is not one of the six, so the port's row and the ROM's
# are the same row and no such caveat applies here.
#
# ---- THE WIDTH IS 36 AND IT WAS CHECKED FIVE WAYS -------------------------
#
# port/mg_fanout_costs.txt section 11 gives three checks because twelve of the
# widths in that file's section 3 table were phantoms. This lane took all three,
# added a fourth of its own, and took run mg9 lane LKY's as a fifth.
#   1. SPAN. config/arm9/overlays/ov006/symbols.txt puts the next symbol
#      (data_ov006_0213cb48) exactly 0x90 bytes past the vtable, so 36 words is
#      an upper bound and a 37th slot cannot exist inside the table.
#   2. TERMINAL SLOT. Slot 35 holds 0x020ad660, the word every dScMgBase_c-
#      derived table holds there.
#   3. WHAT THE WORD PAST IT IS. Index 36 reads 0xffffffff -- the first word of
#      data_ov006_0213cb48 and an address in no module.
#   4. RELOCATION COUNT, which is this lane's addition and which is the check
#      that cannot be argued with. A vtable word is a code address and is
#      therefore ALWAYS relocated. Exactly THIRTY-SIX relocation rows have a
#      source at or after 0x0213cab8 and before 0x0213cb48, one per slot,
#      running
#      0x0213cab8, 0x0213cabc, ... 0x0213cb44 with no gaps -- and there is NO
#      row at 0x0213cb48. A 37th slot would have a 37th row. Check 3 is the one
#      section 11 warns is easiest to wave through; this one is not.
#   5. RELOCATION STRIDE, run mg9 lane LKY's check, taken here as a fifth. The
#      reloc sources step by exactly 4 for THIRTY-SIX words from 0x0213cab8 and
#      the very next source is 0x0213cb4c, a stride of EIGHT. The jump IS the
#      table ending: 0x0213cb48 is skipped because it is the unrelocated
#      0xffffffff, and 0x0213cb4c is the next object's own relocated word. It
#      needs no symbol table and no judgment about what a word looks like.
#
# ---- SEVEN OVERRIDES, SIX MARKERS, ZERO nosrc -----------------------------
#
# Which the fan-out table predicts and a fresh word-for-word diff against
# dScMgBase_c's own table (data_ov004_020bc0c0, read out of
# extracted/overlays/overlay_0004.bin at base 0x020ad660) confirms: slots 0, 3,
# 6, 9, 16, 17 and 18 differ and no other slot does. All SIX marker bodies were
# disassembled out of the shipped overlay image and ruled REAL_DECOMP before
# anything was seated; port/tools/inferred_stub_adjudicated.txt carries the
# per-body evidence with the instruction and literal-pool arithmetic. Slot 16
# (D2) carries no marker and is not ruled, though it was disassembled anyway as
# one of the two reads that fix the hierarchy depth.
#
# SLOT 3 IS NEW TO THIS FAMILY. No seated minigame class before this one
# overrides CleanupResources; the six seated at six or seven overrides all sit
# on 0, 6, 9, 16, 17, 18. The body is func_ov004_020ad90c(this) then return 1.
#
# THE HIERARCHY IS TWO DEEP. The RTTI chain above says so, and section 13's
# CORRECTION 1 prescribes two reads of CODE as the cheap confirmation. Both were
# taken and both agree: the factory does ONE `str r1,[r4]` from a pool word that
# resolves to 0x0213cab8, and slot 16 (0x020ea280) and slot 17 (0x020ea2c8) each
# do ONE `str ip,[r4]` from their own pool -- 0x020ea2c0 and 0x020ea318, both
# 0213CAB8 -- and then call _ZN11dScMgBase_cD2Ev with nothing in between. So
# there is no dScMgSingle3DBase_c-shaped middle table and this seat fills one
# derived table plus the shared base one.
#
# THE FACTORY NEEDS NO DISPLACEMENT RULING, and it is worth saying because
# 0x169's did. src/minigames/d_s_mg_hanachan.cpp calls _ZN11dScMgBase_cC2Ev(o) WITH
# its argument, where src/actors/dScMgCup_c.cpp calls the same base
# constructor with none and rides r0 through. That callee dereferences on its
# first statement and then writes three vtable words through the pointer, so the
# difference is a wild write versus a correct one. This factory is on the
# correct side of it and is a plain slice line. Verified against the ROM at
# 0x020ede18 (0x68 bytes) during this lane's adjudication pass: allocation size
# 0x4f68 = 20328, matching src, and the ROM's `movs r4,r0` leaves r0 holding the
# object across the `bl 0x020b2adc`.
#
# ---- THIS CLASS HAS NO OVERLAY CONSTRUCTOR AND NO STATE TABLE -------------
#
# THAT IS MEASURED, NOT INFERRED FROM NOT FINDING ONE. Not one relocation in
# config/arm9/overlays/ov006/relocs.txt whose source lies inside any __sinit
# block lands anywhere in [0x0213c98c, 0x0213cab8], which is the whole of this
# class's .data. Every seated class before this one had a constructor that
# copies {code, adj} pairs into a .bss table, and port/tools/stategen.py is
# built to read exactly that; there is nothing here for it to read, and the
# honest answer is that the tool has no input rather than that it found no
# tables.
#
# WHAT THE ROM HAS INSTEAD is THIRTY-FIVE individually symbolised {code, adj}
# pairs laid end to end in .data at 0x0213c95c..0x0213ca74, stride 8, EVERY
# ADJUSTMENT WORD ZERO, each with exactly ONE load relocation reaching it and
# that one from a code literal pool inside this class's own block. They hold
# FIFTEEN distinct code words and ALL FIFTEEN HAVE A MATCHED src TU, so this
# class has ZERO bodiless state wants. The full pair-to-loader table is in
# port/unmatched/MgWiggler_StateDispatch.cpp's header.
#
# THE SPAWNINFO SITS INSIDE THAT RUN, which is section 4's sweep hazard exactly,
# and this lane walked into it. 0x0213c98c is not a pair -- it is the factory
# word and the doubled id -- and it sits between the pair at 0x0213c984 and the
# pair at 0x0213c994. The first pass derived the SpawnInfo, started the pair
# scan at the word after it, and reported 29 pairs and 14 code words, missing
# the six below it and the fifteenth code word 0x020eb3e4 entirely. THE LINK IS
# WHAT CAUGHT IT: src/actors/dScMgHanachan_c.cpp asks for three .data pairs by
# their C++ spellings and one of the three, 0x0213c96c, is below the SpawnInfo.
# The lesson for the next lane is to anchor a pair scan on the RELOCATION SET
# rather than on an address the SpawnInfo happens to bound.
#
# TWO OBJECTS, FOUR FIELDS. The scene object holds its state pair at +0x4660;
# each of the FIFTEEN wiggler sub-objects at scene+0x4678 (stride 0x98, and the
# factory's own __cxa_vec_cleanup call spells 0xf and 0x98) holds one at +0x10, a
# SECOND at +0x00 and a THIRD at +0x08 that src/actors/dScMgHanachan_c.cpp copies
# into +0x10. Six code words are the scene's, nine the wigglers'.
#
# ---- FIVE DISPATCHERS, AND A THIRD DETECTOR THIS LANE RECOMMENDS ----------
#
# port/mg_fanout_costs.txt section 4 prescribes a link and a `::*` source sweep
# and lane FLW's amendment says to treat their union as a floor rather than a
# census. On this class the amendment is the whole story. The link says nothing
# at all -- there is no table global to be unresolved, because every pointer is
# a FIELD -- and the source sweep finds four of the five:
#
#     _ZN15dScMgHanachan_c8BehaviorEv   VTABLE SLOT 6, the Behavior. scene +0x4660
#     func_ov006_020eb018   sub-object +0x10
#     func_ov006_020eb0c8   sub-object +0x10
#     func_ov006_020eb31c   sub-object +0x10, and it copies the pair to +0x00
#     func_ov006_020eb610   sub-object +0x00, OPEN-CODED IN PLAIN INTS
#
# THE FIFTH WAS FOUND BY A ROM SWEEP, and the method is the transferable part.
# SWEEP WORD BY WORD, which run mg9 lane PSY independently arrived at: a linear
# disassembler stops at the first literal pool it cannot decode, and an ov006
# text section is full of them. This lane's first sweep was linear and returned
# FOUR of the five sites; decoding each word on its own and joining the pairs
# afterwards returns 114 across the whole overlay and all five here.
# Decode every word of ov006's text and look for `add Rd,Rn,Rm,asr #1`
# immediately followed by `ands Rm,Rm,#1`. That pair is the ARM Itanium
# member-pointer sequence's own fingerprint and no source-level disguise can
# remove it. Over all of ov006 it finds 114 sites; five are inside this class's
# code block (0x020eb028, 0x020eb124, 0x020eb390, 0x020eb728, 0x020ed1b4) and
# they are exactly the five above. It is cheap, it is exhaustive over a module,
# and unlike the two prescribed detectors it cannot return a false clean.
#
# IT ALSO SETTLES A FALSE POSITIVE. A source sweep for `>>1` beside `&1` over
# this class's TUs flags src/actors/dScMgHanachan_c.cpp as well. That file's `>>12`
# and `param & 1` are ordinary 20.12 fixed-point arithmetic, and the ROM sweep
# finding no decode in its 0x214 bytes is what says so.
#
# SLOT 6 BEING ONE OF THE FIVE IS WHY THE RULE EXISTS. Lane PPP found the same
# shape in a vtable slot and wrote the rule as "before wiring slot 6 by name,
# read the src". This lane read it before wiring anything.
#
# ---- THE STORED PAIR KEEPS THE ROM'S OWN WORDS ----------------------------
#
# The ov085/ov100 shape -- write host addresses over the .data pairs before
# anything reads them -- is WRONG here, for the reason section 4 gives for
# src/func_ov006_020c3b80.c. Slot 9 Render (src/actors/dScMgHanachan_c.cpp) reads the
# scene object's stored pair AS TWO INTS and compares it BY VALUE against five
# of the .data pairs, five times, to decide what to draw. A host address never
# equals a DS address, so a seat that rewrote the pair would leave all five
# tests permanently false while every dispatch still looked fine. Routing
# happens at the DISPATCH SITE only, and Render is an ordinary slice line rather
# than a host copy because two ints is the alias-safe half of the rulebook
# corollary.
#
# ---- THE TWO FLOORS ARE CLOSED (run mg10, lane F386) ----------------------
#
# Section 3's row for this class reads 7 / 6 / ZERO nosrc and that column is
# right: all seven override bodies have a matched src TU. Section 13's
# CORRECTION 3 says the check that finds a real floor is a delinks join over
# every CALLEE of every override, and that is what turned these up. Of the 64
# ov006 functions the closure reaches, exactly two had a config symbol, no
# delink block in config/arm9/overlays/ov006/delinks.txt and no src file in
# either extension in any module. BOTH NOW HAVE ONE and both traps are gone
# from port/unmatched/MgWiggler_Faces.cpp:
#
#     func_ov006_020ea914  0x324  ON THE RENDER PATH. Slot 9 calls it
#                                 unconditionally at 0x020ed0c8 with the word at
#                                 scene+0x4f60 as its only argument, and that is
#                                 its ONLY call site: exactly one arm_call
#                                 relocation in all of ov006 reaches it.
#                                 -> src/func_ov006_020ea914.c, NONMATCHING,
#                                 165 of 201 words identical, one register-
#                                 allocation cause fully written up in the file.
#                                 It draws the QUESTION PICTURE: one wiggler at
#                                 a fixed pose, five body segments through
#                                 OAM::Render plus the face on segment 0. With
#                                 the trap in, scene 386 rendered 1200 frames
#                                 and drew it into a counter 1200 times.
#     func_ov006_020ec4dc  0x20c  WIGGLER SET-UP VARIANT 3 OF 4.
#                                 src/actors/dScMgHanachan_c.cpp ends in a four-way
#                                 switch on data_ov006_02141fd8: case 0 ->
#                                 func_ov006_020ecba4, case 1 -> _020ec9c0,
#                                 case 2 -> _020ec84c, all matched; case 3 and
#                                 default -> this. Its only call site is
#                                 0x020eceb0, `mov r0,r6 / mov r1,r5 / bl`, so
#                                 it takes a receiver AND one argument.
#                                 -> src/func_ov006_020ec4dc.c, MATCHED at
#                                 mwccarm 2004/b56 with strict relocs, and it
#                                 has a delink block. It is the fifteen-wiggler
#                                 grid the ladder reaches at clear count 8.
#
# AND THE FOURTEENTH ROUTED STATE NOW HAS AN INSTALLER. The pair that installs
# 0x020ec458 is loaded by func_ov006_020ec4dc and by nothing else, so while that
# body was trapped one of the routed states was installed by nothing the port
# could run. Seating the body closes that too, and it is why the per-state
# census is the check that says so rather than the routed total.
#
# NEITHER IS REPORTED AS A TRAP COUNT ANY MORE, and the seat does not invent an
# instrument to replace them. Both are witnessed by things a run already
# measures: Render is 020ea914's only caller and the call is unconditional (a
# join point every path through Render reaches), so the slot 9 hit count IS its
# call count, and 020ec4dc runs exactly when the dealt kind is 3, which the
# round line already prints.
#
# ---- HOW THIS LIST WAS DERIVED --------------------------------------------
#
# A relocation closure from TWO roots -- the SpawnInfo record 0x0213c98c and the
# vtable 0x0213cab8. Section 1 of port/mg_fanout_costs.txt prescribes the
# SpawnInfo plus the class's own overlay constructor; this class has no
# constructor, and the vtable stands in its place because the fill installs it
# and because the factory reaches it by relocation anyway. Module residency
# enforced (main + itcm + ov001 + ov004 + ov006):
#
#     ov006  64 functions      ov004  160      ov001  6      itcm  18
#     main  614 functions
#
# THE ov006 SET IS THE CLASS'S OWN BLOCK. 63 of the 64 are the functions
# config/arm9/overlays/ov006/symbols.txt places in [0x020ea280, 0x020ede80];
# the 64th is _ZN12dScMgSlot1_c9betIcon_c6RenderEv, shared ov006 glue that slice_flw.txt and
# slice_pch.txt already wire.
#
# THE arm9 AND ov004 FRAMEWORK HALVES ARE NOT REPEATED HERE. port/slice_mg1.txt
# already lists the ov004 framework, the thirty-five overlay constructors and
# the arm9 waves under them; CMake appends both lists to the same targets and
# dedupes identical absolute paths. Only the delta is below.
#
# THE ov004 DELTA IS ZERO, AND THAT IS A MEASUREMENT. The closure reaches
# FIFTEEN ov004 TUs that are in no build target, and every one of the fifteen is
# deliberately excluded because MG1/MG2/BASESET host-copied it:
#     func_ov004_020add88  _020adf2c  _020b31b4  _020b321c  _020b3278
#     _020b8714  _020b8778                       the pointer-to-member group
#     _ZN11dScMgBase_c25OnAimedAtWithEggReturnVecEv  _020af094              MgBase_DeclConflict
#     _ZN11dScMgBase_c14BeforeBehaviorEv                         MgBase_Slot7
#     _ZN11dScMgBase_c19BeforeInitResourcesEv                         MgBase_Slot1
#     _ZN11dScMgBase_c21AfterCleanupResourcesEj  _020b7460              BASESET
#     func_ov004_020b2cb8                         MgBase_LangTable
#     _ZN10dMgState_c8SetStateEi                         the framework's PMF state
#                                                 setter
# Adding a line for any of them would put a second definition in the link.
#
# NO BARE VT OR HEAP EXTERN IN THIS SLICE, and that is a sweep rather than an
# assumption. Lane SOS's failure -- a D0 spelling its own table as the shared
# placeholder VT, which hal/cxx_aliases.cpp binds to the ov002 ENEMY table --
# links cleanly and writes the wrong vtable into the object on teardown. A scan
# of all 62 src TUs in this list for a bare VT or HEAP token finds NONE: both of
# this class's destructors spell data_ov006_0213cab8 by its config name and the
# D0 loads the heap through data_020a0eac. So this seat owes no per-source
# COMPILE_DEFINITIONS rename, and the COFF short-name scan over its built
# objects is the proof rather than this paragraph.
#
# FIVE TUs ARE HOST-COPIED AND ARE COMMENTED OUT BELOW. Their bodies are in
# port/unmatched/MgWiggler_StateDispatch.cpp, each verbatim but for the
# member-pointer declaration and the dispatch site. Listing both copies would be
# a duplicate symbol; listing neither would drop the dispatch silently.
#
# THE COMMENTS IN THIS FILE CARRY NO UNMATCHED SQUARE BRACKET, AND THAT IS A
# BUILD REQUIREMENT RATHER THAN A STYLE. CMake's file(STRINGS) hands its result
# to list parsing, which treats an open square bracket and its close as a
# bracket group and will not split on the separator inside one. An unmatched
# open bracket in a comment therefore swallows
# EVERY line after it into a single element, the foreach's `^#` test skips that
# one element, and the whole source list comes out empty -- which reads at the
# link as every TU in the seat unresolved, i.e. as a wrong seat rather than as a
# text bug. This lane shipped that bug and spent a build finding it: one comment
# wrote a half-open range as an interval with a bracket and a parenthesis, and it
# ate the other 256 lines. Run mg9 lane S381 hit the identical trap
# independently. WRITE RANGES AS 0xAAAA..0xBBBB. A same-line matched pair is
# safe; port/slice_gate21.txt has one that spans two lines and survives only
# because both lines are comments.
#
# ONE WAVE, FIVE UNRESOLVED EXTERNALS, FOUR OBJECTS. Which is the shape lane PPP
# predicts for a seat after the framework half is paid: "budget ONE wave plus
# its own alias row, and treat a second wave as evidence it missed a
# dispatcher". Four of the five are name-spelling defects and are answered in
# port/unmatched/MgWiggler_Faces.cpp with three /alternatename rows and one
# argument face. The fifth, _func_0203d5dc, is not a spelling defect at all: it
# is a real matched arm9 body that was in no slice, and it is the one arm9 line
# below.
#
# THE arm9 LINE IS THE WHOLE arm9 DELTA. Section 5's "the arm9 half comes back
# for free" holds for the other 613 functions the closure reaches in main: every
# one is already linked or already hosted. src/func_0203d5dc.c is the one that
# was neither.
#
# LINKAGE, MEASURED ON BOTH ENDS BY TWO BUILDS OF THIS SAME TREE:
#
#     6665 / 11283 (59.1%)  ->  6722 / 11283 (59.6%)     +57
#
#     module   base  tip  delta
#     ov006     737  793   +56    this list's 56 ov006 lines
#     arm9     1879 1880    +1    src/func_0203d5dc.c
#     ov004     240  240     0    the measured zero above
#     ov001      11   11     0
#     itcm        6    6     0
#
# 56 + 1 = 57, WHICH IS THIS FILE'S ACTIVE LINE COUNT EXACTLY. Lane PPP's rule
# holds here as it did there: every active slice line moves the headline by one,
# banner or no banner, because port/tools/linkage.py keys on a filename stem and
# never opens the file.

# ---- arm9: the one line the framework half did not already carry -----------
src/func_0203d5dc.c

# ---- ov006: the class's own closure, minus the five host copies ------------
src/minigames/d_s_mg_hanachan.cpp
src/_ZN15dScMgHanachan_cD1Ev.cpp
# RETIRED at SLICE1: body now in src/_ZN15dScMgHanachan_cD1Ev.cpp. MSVC folds the ROM destructor variants into one symbol, so only one of a class two per-function destructor TUs can be compiled.
#src/_ZN15dScMgHanachan_cD0Ev.cpp
src/func_ov006_020ea324.c
src/func_ov006_020ea350.c
src/func_ov006_020ea3d0.c
src/func_ov006_020ea5f0.c
src/func_ov006_020ea658.c
src/func_ov006_020ea670.c
src/func_ov006_020ea71c.c
src/func_ov006_020ea81c.c
src/func_ov006_020ea8e0.c
src/func_ov006_020ea914.c
# UN-QUARANTINED, run link100 lane HOSTGEN2. The TU is a whole-TU hostgen
# substitution now (port/CMakeLists.txt's PORT_HOSTGEN_TU list), and the five
# bodies unmatched/MgWiggler_StateDispatch.cpp host-copied out of it are
# commented out there. Four of the five are typed member-pointer dispatches of
# a FIELD, routed to port_mg_wiggler_call0 by hostgen's PMF_SEAM table; the
# fifth, func_ov006_020eb610, open-codes the same decode in plain ints and is
# routed by MG_PMF_CALL. The stride half of the ruling those copies rest on went
# obsolete with /vmg /vmm; the DS code word half is what the seam answers.
# HOST-COPIED (SCENES3, run link100 wave 10 round 4): src/actors/dScMgHanachan_c.cpp
# is REPLACED by port/unmatched/dScMgHanachan_c.cpp on the row below. Scene 386 died
# in func_ov006_020eac38 at OAM::Render+0x1d6, a read of a different junk address on
# every run, because the matched source assigns the local t.urot inside the comma
# expression that is ARGUMENT TWO of that call and reads t.urot as ARGUMENT EIGHT of
# it. The cartridge stores the halfword and then writes the same register into
# argument eight's outgoing slot (0x020eadf8 then 0x020eadfc, right before
# bl 0x2021024); MSVC pushes a cdecl call's arguments right to left and so passes
# argument eight from a copy taken before the store, which on the first loop
# iteration is uninitialised stack. The host copy is the src TU with those three
# statements in the cartridge's own order and nothing else changed; its header
# carries both disassemblies and the line that reproduces it. It KEEPS THE STEM
# dScMgHanachan_c so the five hostgen patch rows this TU carries, which are keyed on
# the file stem, go on applying to it; the PORT_HOSTGEN_TU row in port/CMakeLists.txt
# names the copy as well, and the generated copy is what compiles. Taking BOTH rows
# would be a duplicate symbol, so the src row is deliberately absent.
port/unmatched/dScMgHanachan_c.cpp
# HOST-COPIED (WIG): src/actors/dScMgHanachan_c.cpp -- table-free FIELD pmf at sub-object +0x10, member-pointer typed
# HOST-COPIED (WIG): src/actors/dScMgHanachan_c.cpp -- FIELD pmf at sub-object +0x10, member-pointer typed
# HOST-COPIED (WIG): src/actors/dScMgHanachan_c.cpp -- FIELD pmf at sub-object +0x10, member-pointer typed; ALSO copies the pair down to +0x00
# HOST-COPIED (WIG): src/actors/dScMgHanachan_c.cpp -- FIELD pmf at sub-object +0x00, OPEN-CODED IN INTS; neither the link nor a member-pointer source sweep can see it
# HELD, run link100 lane HOSTGEN2: main's consolidated TU above defines
# func_ov006_020ec4dc as well, and taking both is a duplicate symbol.
#src/func_ov006_020ec4dc.c
# HOST-COPIED (WIG): src/actors/dScMgHanachan_c.cpp -- FIELD pmf at scene +0x4660, member-pointer typed; VTABLE SLOT 6, Behavior
# ALREADY WIRED (slice_ccn.txt): src/_ZN12dScMgSlot1_c9betIcon_c6RenderEv.cpp -- listed for closure completeness only; CMake dedupes identical absolute paths, so it adds no line to the build and no linkage
