# aritycheck_plainfunc_baseline.txt
#
# The frozen set of PLAIN-NAME arity drops: a PROTOTYPED declaration of an
# address-named C symbol (func_XXXXXXXX / func_ovNNN_XXXXXXXX) that takes
# fewer parameters than the definition, in a TU that actually CALLS the
# symbol, where every parameter on both sides provably occupies one machine
# word. Under those three conditions -- and only under them -- "fewer
# parameters" literally means the call pushes fewer words than the callee
# reads, on ARM AAPCS and x86 __cdecl alike. On ARM the missing word often
# rides a register that happens to still be live, which is why the byte gate
# stays green over these; on the host the callee reads a stack slot nobody
# wrote.
#
# THIS IS THE SHAPE THAT SHIPPED A SOFTLOCK, found by run mg8 lane SBN on
# 2026-08-22: src/func_ov006_020d8cc4.cpp declared
#
#     extern "C" int func_ov006_020d836c(void);
#
# and called it with nothing, while the definition takes the per-bomb
# receiver. 020d836c is the per-bomb tick of scene 370's Sort or 'Splode,
# and during the bin-full sweep its caller is the only thing driving it, so
# the game hung forever the first time a sorting bin filled. Fixed in
# ba2224f88. That row is ABSENT from this file, because it is fixed -- the
# same proof-of-usefulness the receiver baseline carries for #1539/#1543.
# The gate that existed at the time was scoped to _ZN member names and could
# not see a plain name; this file is the closing of that scoping.
#
# WHAT A ROW IS. `<symbol>|<declaring file>`, never a line number, exactly as
# in aritycheck_receiver_baseline.txt: a key that carries a line moves every
# time somebody adds a comment above it. For a declaration in a HEADER the
# declaring file is the header itself, and the call that qualifies it lives
# in whichever TU includes the header.
#
# THESE ROWS ARE DEBT AND NOT CLEARANCE. Nobody has adjudicated them one by
# one. Each one is a call site that pushes fewer words than its callee's
# definition reads, and each is invisible to the byte gate for the same
# register-happens-to-be-live reason the Sort or 'Splode row was. Anyone who
# works through a row and finds it real should fix it the way ba2224f88 did
# (declare the full signature, pass the value the ROM leaves in the
# register, re-verify the byte match) and delete the line; anyone who finds
# the checker wrong about a row should say so beside it. The list may only
# shrink.
#
# TWO ROWS WORTH NAMING UP FRONT:
#   func_ov007_020ae558|src/func_ov007_020add3c.c
#       The Class A seam of port/tools/tailjump_guard.py: the caller is
#       form=call, not a jump, so no RIDE exclusion applies and the row is
#       genuinely short. It has been a known, documented seam since that
#       guard existed; it stays here rather than being re-discovered.
#   func_0203dabc|include/decl_common.h   -- FIXED BY run mg15 MP1, LOST, BACK.
#       MP1's fix below was dropped by the 09-13 re-parent merge (4462caf688);
#       lane ARITY31 (run hunt3) restored it as an _MSC_VER arm, so the row
#       is baselined again in the _MSC_VER section at the end of this file.
#       The history as MP1 left it:
#       It was a header prototype: decl_common.h spelled it (void), both
#       definitions take the comms slot index, and src/_ZN9dScDSMT_c8BehaviorEv.cpp
#       called it with nothing through the include. mg15 lane MP1 gave the
#       header the parameter and the caller the explicit argument
#       (func_0203dabc(func_0203da9c())), which is the same two bl on ARM:
#       still MATCH at 2004/b56 with strict relocs. Its sibling row
#       func_0203dae4|include/decl_common.h went with it. Kept here as the
#       worked example of a header row that could be CLOSED rather than
#       ridden, since this file may only shrink.
#   func_01ffa344|src/_ZN8Goomboss13InitResourcesEv.cpp  -- FIXED AND REMOVED,
#   func_01ffa344|src/actors/Goomboss.cpp            run rel0215 lane prop17.
#       Both rows existed because the HOST body in hal/cxx_aliases.cpp was
#       `int (int a, int b)` with `(void)b`, described in its own comment as
#       "one caller's r1 ride-through". prop17 disassembled the ROM body
#       rather than trusting that, and the first instruction settles it:
#       0x01ffa344 opens `bic r1, r0, #0x80000000`, so r1 is WRITTEN before it
#       is ever read and the function takes ONE argument. The two src TUs above
#       were declaring it CORRECTLY and the host definition was the wrong one.
#       Narrowed the host body to one parameter, which is safe both ways under
#       __cdecl: the one caller that still pushes two words
#       (src/func_ov002_020dc560.c, and the Goomboss_InitResources host copy)
#       has the callee read only the first and cleans its own stack, exactly as
#       the ROM discards r1. Two rows CLOSED, none added -- and a third was
#       never opened, for src/func_ov074_021204c0.c, which prop17 propagated
#       and which declares the same honest one-parameter form.
#
# Generated 2026-08-22 from the mg8 tree (branch mg8-sosbin + the plain-name
# ratchet change) with:
#     python port/tools/aritycheck.py --write-plainfunc-baseline
# and reviewed for shape and for the named rows above, not row by row. The
# measured ladder that scoped the subset -- 1069 raw plain-name DROPS, 387
# prototyped, 133 called-through, these 118 after the one-word filter with
# 15 held out -- is recorded in aritycheck.py's header.
#
# The list may only shrink.

func_0200d8c8|src/_ZN8dActor_c10EarthquakeERK7Vector35Fix12IiE.cpp
func_020308b4|src/_ZN7dScMB_c8BehaviorEv.cpp
func_020308b4|src/func_ov075_02118a78.c
func_02036acc|src/func_02038408.c
func_0203f714|src/func_0203f920.c
func_02043098|src/func_02042ffc.c
func_02044b30|src/_ZN15ModelComponents6RenderEP9Matrix4x3P7Vector3.cpp
func_02045ad8|src/func_ov075_0211aa94.c
func_02045ad8|src/func_ov080_02125630.cpp
func_02045e70|src/func_020169f4.c
func_02045ef8|src/func_02016a04.c
func_02045f80|src/func_02016a14.c
func_0204605c|src/func_02016aac.c
func_0204efe0|src/func_02011db4.c
func_0204f2d4|src/func_0204f630.c
func_02059950|src/func_0201aaa4.c
func_0205c91c|src/func_0201a2f8.c
func_0205caa8|src/func_020423dc.c
func_ov002_020aefb8|src/actors/da1up_c.cpp
func_ov002_020d4d88|port/unmatched/func_ov002_020d3b9c.c
func_ov002_020d4d88|src/_ZN6Player13St_Crawl_MainEv.cpp
func_ov002_020d4d88|src/actors/Player.cpp
func_ov002_020d4d88|src/_ZN6Player17St_HoldHeavy_MainEv.cpp
func_ov002_020d4d88|src/_ZN6Player17St_HoldLight_MainEv.cpp
func_ov002_020d5cec|src/actors/Player.cpp
func_ov002_020de328|src/func_ov092_02131010.cpp
func_ov002_020e8abc|src/func_ov002_020e8c34.c
func_ov002_020f2630|src/func_ov002_020f26d4.c
func_ov004_020adfc4|src/func_ov004_020b39a4.c
func_ov004_020adfc4|src/func_ov004_020b484c.c
func_ov004_020adfc4|src/func_ov006_020dd658.c
func_ov004_020b19f0|src/func_ov006_021004c0.c
func_ov004_020b42c0|src/func_ov004_020b31b4.cpp
func_ov005_020c0030|include/decl_common.h
func_ov007_020b3c54|src/func_ov007_020b3360.c
func_ov007_020b3d30|src/func_ov007_020b3c54.c
func_ov007_020c99d8|src/func_ov007_020bcdb8.cpp
func_ov063_02118eac|src/unnamed/ov063/func_ov063_02118ea0.c
func_ov072_02121d50|src/_ZN11BabyPenguin13InitResourcesEv.cpp
func_ov079_02123d4c|src/_ZN5Whomp25OnAimedAtWithEggReturnVecEv.cpp
func_ov080_0212513c|include/decl_common.h

# ADJUDICATED ONE BY ONE, 2026-09-28, run hunt3 lane ARITY31. The plain-name
# ratchet failed on its base with 31 NEW rows. Each was read against the ROM
# (the call site's r0-r3 and the callee's first use of each register) and
# against the host binary. Three were LIVE and are fixed by _MSC_VER arms
# (see HANDLED BY AN _MSC_VER ARM at the end). The 57 rows the checker printed
# as retired were deleted in the same change, so this list still shrinks
# (98 -> 72). The 31 rows below are NOT debt; each group says why.
#
# DEAD: the callee never reads the dropped word.
#   func_ov002_020aea30 (6 rows): the fourth parameter exists only for the
#     byte match. ROM 0x020aea4c writes r3 (ldr r3,[ip]) before any read, and
#     the host body never names `d`.
#   func_ov004_020ada40 (2 rows): the definition over-declares. ROM 0x020ada44
#     writes r1 before any read, r2 is never read, and neither callee
#     (0x020adc00, 0x020adc1c) reads r2. It takes one argument and both
#     callers pass it.
#
# ALREADY HANDLED on the host.
#   func_ov007_020c3d1c (16 rows) and func_ov007_020c897c (1 row): every
#     declaring TU is an ov007 `ldr ip,[pc]; bx ip` veneer (0x020c0a9c ...
#     0x020c9460, 0x020c8970). The frame tail-jumps on the host, so the
#     caller's own slot is the one the target reads, and tailjump_guard's
#     DERIVED 22-veneer set asserts that jump on every build. These are the
#     rows aritycheck.py's RIDE note says stay here; they appeared when the
#     sixteen veneers were respelled from func_020c3d1c (no definition, no
#     row) to the flat func_ov007_020c3d1c.
#   func_020527e8 (src/func_0203c178.c): the arm9 veneer
#     `ldr ip,[pc]; bx ip; .word 0x020527e9`; the host frame is a single
#     `jmp _func_020527e8`, so all four scale-matrix words ride through. Not
#     yet a tailjump_guard row.
#   func_ov100_02146280 (include/decl_common.h): its one caller,
#     src/_ZN4Fish16CleanupResourcesEv.cpp, is renamed in port/CMakeLists.txt
#     onto hal/cxx_aliases.cpp's hal_ov100_02146280_ridethrough, which pushes
#     FindWithID's result from eax.
func_ov002_020aea30|src/_ZN7Skeeter8BehaviorEv.cpp
func_ov002_020aea30|src/func_ov062_02117c98.c
func_ov002_020aea30|src/func_ov065_0211704c.c
func_ov002_020aea30|src/func_ov081_021243cc.cpp
func_ov002_020aea30|src/func_ov084_02129ed4.c
func_ov002_020aea30|src/func_ov091_021339fc.c
func_ov004_020ada40|src/func_ov004_020ad940.cpp
func_ov004_020ada40|src/func_ov004_020adb1c.c
func_ov007_020c3d1c|src/func_ov007_020c0a9c.c
func_ov007_020c3d1c|src/func_ov007_020c105c.c
func_ov007_020c3d1c|src/func_ov007_020c1620.c
func_ov007_020c3d1c|src/func_ov007_020c2018.c
func_ov007_020c3d1c|src/func_ov007_020c22f8.c
func_ov007_020c3d1c|src/func_ov007_020c2410.c
func_ov007_020c3d1c|src/func_ov007_020c338c.c
func_ov007_020c3d1c|src/func_ov007_020c3544.c
func_ov007_020c3d1c|src/func_ov007_020c8098.c
func_ov007_020c3d1c|src/func_ov007_020c8440.c
func_ov007_020c3d1c|src/func_ov007_020c8b04.c
func_ov007_020c3d1c|src/func_ov007_020c8f58.c
func_ov007_020c3d1c|src/func_ov007_020c9080.c
func_ov007_020c3d1c|src/func_ov007_020c92a0.c
func_ov007_020c3d1c|src/func_ov007_020c937c.c
func_ov007_020c3d1c|src/func_ov007_020c9460.c
func_ov007_020c897c|src/func_ov007_020c8970.c
func_020527e8|src/func_0203c178.c
func_ov100_02146280|include/decl_common.h

# HANDLED BY AN _MSC_VER ARM. This checker reads declaration text and does not
# evaluate #ifdef, so a fix spelled the way src/ must spell it (the host arm
# declares and passes the value, the #else arm keeps the byte-matched (void)
# form) still reads as a drop. Each row below is the #else spelling of a site
# whose host arm passes exactly what the ROM leaves in r0.
#   func_ov004_020b19f0: the score, dScMgCurling2_c::Render (0x020e67f8).
#   func_0203dabc / func_0203dae4: the comms slot index from func_0203da9c(),
#     dScDSMT_c::Behavior (0x020cc310..0x020cc320). Fixed by ARITY31.
#   func_ov004_020b56c8: the payout sum at +0x53f2, dScMgRoulette_c::
#     OnTurnIntoEgg case 7 (0x021097a8). Fixed by ARITY31.
func_ov004_020b19f0|src/_ZN15dScMgCurling2_c6RenderEv.cpp
func_0203dabc|include/decl_common.h
func_0203dae4|include/decl_common.h
func_ov004_020b56c8|src/actors/dScMgRoulette_c.cpp
