Files
isaac-port/notes/decomp_issues.md
T
shweetandClaude Opus 5.5 24098479e7 ApplyProtos: read the purge from the RETs when Ghidra has none, trust db/ prototypes past that; log what it skips
Purge unknown 139 -> 11, prototypes applied 3032 -> 3163 (round 24's 12 included), param_N lines 33145 -> 31116,
in_ECX 35059 -> 32432; Room::Update/Render get a typed this. ApplyLocals: a same-name row with a type retypes in place,
and an unparseable type fails only its row. notes/decomp_issues.md collects what the round 23-24 agents found wrong.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:16:18 -05:00

157 lines
22 KiB
Markdown

# Decompiler issues found by locals rounds (agent reports, round 23+; verify before acting)
## Misidentified functions (wrong function name, ICF-folded names, wrong signature match, suggested real name)
- 006bbdc0 Entity_Pickup::Update: wrong name. Pickup vtable Update is 006e3940; only caller is Entity_NPC::Update; body is NPC death drops (Gimpy, Bone Spurs, Hungry Soul, Vasculitis, Quints, Sharp Key, Tainted Magdalene/Keeper, Urn of Souls). `this` typed Entity_Pickup so NPC fields show as this[1]._priceANM2.*
- 00806c20 Game::Render: wrong ZHL [exact] match. Only caller is 0080ea80 Room::render_lighting (ECX = Room); renders one entity's light. Suggested Room::render_entity_light. Real Game::Render is 006fbc10
- 005832c0 Entity_Pickup::GetLootList: wrong. Walks chain of type 0x38d variant 10 via +0x3c0, builds quad strip, renders with "KAGE_ColorTextureShader"
- 0058a010 Entity_NPC::Render: wrong ZHL prefix match. Ends in plain RET and reads one stack arg [ebp+8] (entity); grows a ring of pits around it per call (counter at entity +0x450), spawns effect/pickup, sound 0x89. No direct callers (called via pointer)
- 006a6f10 Entity_Bomb::update_sparks: misleading; loads bomb costumes per variant (size suffix 0-3, ReplaceSpritesheet, hides "sparks" layer). Suggested Entity_Bomb::load_costumes
- 009dcc70 ItemPool::CreateGlitchedCollectible: ECX is not an ItemPool; it is the vector of GlitchedCollectibleGfx* indexed by ~id (Game::_proceduralItemManager._proceduralItems). Class prefix probably wrong
- 00700060 / 00700061 Game::BombExplosionEffects: spurious split (see Wrong this/parameter types)
- 00794e50 Entity_Player::update_effects at 547259: Entity_Projectile::Damage and Entity_NPC::SetAimAngle calls on pEVar24 (Mega Blast laser) are ICF mislabels
- 00653070 Entity_Projectile::Update: Font::SetLineHeightModifier(Sprite::Color(...)) probably ICF-folded colour setter; Entity::AddFear((Entity *)(this+0x33c)) after KColor ctor probably ICF-folded
- 006fbc10 Game::Render: Entity_Player::TriggerRoomExit((Entity_Player *)&this->_roomTransition) very likely a RoomTransition render method folded by ICF
- 0077b020 Entity_Player::update_shooting: Game::GetField26614 cast to EntityList at ~line 1540 and used as DeathmatchManager getter elsewhere; ICF/misnamed getter
- 0068cdc0 Console::RunCommand: Room::GetGridHeight(FUN_004143f0()) calls are probably std::string size/empty on a token (ICF)
- 00a02890: header claim that it is misnamed still holds (seen from 00a01020 Weapon_Brimstone::fire_hitscan caller)
## Wrong this/parameter types (in_ECX typed as the wrong class, prototype present but not applied, spurious function splits)
- 00700060/00700061 Game::BombExplosionEffects: spurious split; every parameter shifted one dword (damage holds pos, Color holds tear-flag high word, radiusMult holds source, _lineCheck is radius multiplier). Local names unreliable until fixed
- 0080f200 Room::Render: in_ECX typed Game* but is Room (this); _curses, field_0x10, _roomList[...] are Room members (width, height, type at +8). protos.zhl entry has no typed this yet
- 00802980 Room::Update: in_ECX typed Level* but is Room (_curses = grid width +0xc, _isHeartPicked = height +0x10). protos.zhl line 228 `__thiscall void Room::Update();` not reflected in snapshot
- 009d45c0 GameState::write_player: pending prototype makes ECX the record and param_1 the writer; decompile depends on in_ECX/unaff_ESI/uRam00000010 (hold locals rows one build behind)
- 00a0a720 Weapon_Tears::Fire: pending protos.zhl line (1090), hold locals rows one build behind
- 00763570 Entity_Player::EvaluateItems, 0077b020 update_shooting: protos rows exist but snapshot still shows (void) with in_ECX (one-build lag)
- 007729d0 Entity_Player::TakeDamage: protos.zhl:1086 prototype not yet shown in dump header
- 007c4180 Entity_Player::UsePill: protos.zhl line (RET 0xc) not shown in snapshot
- 009f7930 Weapon::TriggerTearEffects: Entity_Player::GetTearHitParams() decompiled with no args though protos.zhl has RET 0x14 prototype; stack offsets drift between call sites
- 00859290 Leaderboard::render_scores: `this` param named `sprite` (Leaderboard *) and a local `int *sprite` exists
- 008c66a0 Menu_Bestiary::Render: `this` param named `frontAnimState` and a local AnimationState *frontAnimState exists
- 0099c790 HomingLaser::build_bezier_path: `this` param named `bezierVec` (HomingLaser *), local `std_vector *bezierVec` exists; line 87 reads bezierVec = &bezierVec->_bezier
- 009f0290 rich_text_layout: ECX parameter named `copiedSpan` (same as a later local); it is the Font, should be `font`
- 0094ef10 Menu_Collection::Render: `this` param named `font` (Menu_Collection *) and a separate `Font *font` local exists
- 00849510 PlayerHUD::RenderCraftingTable: `unusedArg` is actually the Bag of Crafting slot loop counter in the final loop (`while (unusedArg < 8)`)
- 0083eae0 PlayerHUD::render_pocket_item_info: 4-parameter signature looks wrong; ECX is PlayerHUD, extraout_EAX/EDX read, param_1 is a 0/1 mode not Entity_Player. No prototype added
- 0083c8d0 HUD::update_item_info: in_ECX typed Entity_Pickup* but is the item-info panel object (+0x8 image smart pointer, +0x10 ANM2, popup id)
- 0043aa90 Entity_Familiar::ai_wisp / 00526470 NpcAI::ENTITY_HOPPER / 0058a010: this/npc/room cast to Room* throughout (_gridEntities[0xd7]); real parameter type lost, causes slot reuse
- 004c8090 NpcAI::ENTITY_MEGA_SATAN: local_244 typed Entity_Player* is the Room (shows as ->_playerCostumeMap[3]); local_23c, local_244, local_24c typed Entity_Player* hold room, sound ids, floats, npc copies
- 00a69090 KAGE::Filesys::ArchivedFile::refill_buffer: existing protos.zhl row (line 1851) wrong (reads plain RET at a6908b of previous function); real end `ret 0x4` at a6948e. Proposed `__thiscall void ...refill_buffer(unsigned int byteCount);`; delete old row
- 0047a360 NpcAI::ENTITY_CHUB: decompile runs into another function's body after ~line 1220; FUN_00499550 (deque _Xlength) is probably noreturn, mark so
## Struct and field problems (wrong field offsets/sizes, struct smaller than real, missing fields, arrays with wrong length)
- 00780560 Entity_Player::GetBombFlags: `this[1]._chargeBarSprites[0]._championColor._tint[0]` is really Entity_Player+0x2ef8 (int, trinket id compared with 0x47 Bob's Bladder); byte at +0x2ef0. Neither in fields.tsv. Entity_Player struct smaller than real object
- 0075f0e0 Entity_Player::AddCollectible: iStack_f0/uStack_e0/uStack_dc written from itemConfig[1].type/id/name; ItemConfig_Item smaller in structs.hpp than real object
- 00794e50 Entity_Player::update_effects: `_coopBabyBuffTimers[i + 0x25]` is the Black Powder trail effect array; field name or offset wrong
- 00463100 NpcAI::ENTITY_ISAAC: local_e0/dc/d8/d4 set right after burstParams (0, -1.0f, 0, 0); ProjectileParams missing ~16 bytes of trailing fields
- 0065d950 Entity_Slot::Update: short at this[1]._damageEvents._capacity is a slot timer; field mistyped
- 006950c0 EntityConfig::LoadEntities: EntityConfig_Entity `_pad_0x8c[0xc]` is a std::vector of 36-byte preload entries (preloadId/Variant/Subtype emplaced ~line 2372)
- 007efa50 Room::on_leave: EntitySaveState needs a real 0x78-byte struct (decompile writes `saveState = (EntitySaveState)0x0`)
- 009b0b00 LevelGenerator::get_neighbor_candidates: `newRoom` declared as 32-byte array, room struct is 0x48 bytes (local_110..local_f0 are its tail)
- 009b1220 LevelGenerator::try_resize_room: real types candidatePositions int[28] (14 x/y spots), candidateShapes int[14], candidateDoorSlots uint[13]; 14th slot read is the security cookie; retypes need script change or new rows (ApplyLocals skips rows whose new name exists)
- 00802980 Room::Update: `gridOccupied` int[448] should be byte[448] (0x70 dwords copied from local_1e8 byte map, memset 0x1c0); `pairOffsets` int[3] is start of 40-int table (10 rows of 4) through iStack_1fc
- 009785d0 Entity_Laser::Render: local_208 typed Color is a UV quad struct in straight-laser branches; local_1b0 typed Vector holds a texture SmartPointer
- 00a1d8f0 render_quad_draw_color_shader: no ColorQuad struct exists; edgeQuads should be 0x70-byte ColorQuad[4]; param `line` is a quad (4 points [0..7] + 4 KColors of 5 floats [8..0x1b])
- 00a1d710 render_color_quad / 009c16b0 Popup::render_frame: ColorQuad layout (28 floats, 0x70); `colorQuad` declared float[6] in render_frame
- 00817830 Room::render_water: 12 source quads of 9 dwords each (SourceQuad size/layout unconfirmed); `whiteColorA` KColor[2]
- 009356a0 Backdrop::render_floor_to_target, 008453c0 RenderActiveItem, 0084ad40 render_deathmatch_health_bar: 9-dword quad+flag groups (local_214/1f0/1cc/160; segmentParams/segmentRect) should be one struct (SourceQuad); layout unconfirmed
- 00990a40 FXLayers::LoadConfig: `auStack_10278` should be typed as an FXLayer struct (reused for rayGroup params); attribute strings at 0xb66e0c "path", 0xb7d790 "xMin", 0xb7d798 "xMax", 0xb7d7a0 "yMin", 0xb7d7a8 "yMax", 0xb6987c "gfxroot", 0xb7d6b4 "fx"
- 004bfd30 NpcAI::ENTITY_HUSH: local_2620..local_2560 is a table of 3 entries of 0xc80 bytes (16 sub-entries of 0xc8, ProjectileParams at +0x18); needs a struct type
- 0099c790 HomingLaser::build_bezier_path: no struct for 0x18-byte HomingLaser_Bezier element (sample, handleIn, handleOut)
- 0072ba80 ItemConfig::LoadLocustConfig: 184-byte temporary locust entry at local_120 has no struct
- 0092b930 PersistentGameData::import_afterbirth_save: local_710 is base of AfterbirthPersistentGameData (check_header offsets match); abLevelCounter0-11 -> dest +0xdc8, abMiniboss0-6 -> +0xe00, abBossFlags -> +0xe07, abChallengeFlags -> +0xe6f; "Level counters" name unverified
- 0092b2e0 PersistentGameData::TryImportRebirthLocalSave: 347-byte block copied to field 0xae8 (inferred Rebirth collectible flags); uStack_10c..uStack_b8 each copied once into unnamed fields 0xe00..0xe83
- 006fbc10 Game::Render: four quad-UV structs start at quadParams, pixelationParams, bloomParams, shaderParams (corners (0,0),(1,0),(0,1),(1,1))
## Local variables that need a struct/array type (e.g. ColorMod over uStack runs, std_string, char*[N], TemporaryEffect)
- 009af620 LevelGenerator::get_door_target_position: ltlTargets/ltrTargets/lblTargets/lbrTargets/defaultTargets -> `<x>SlotTargets` int[16] (8 door slots as XY pairs); BitSet128[16] / int[16] type strings unprecedented, parser.parse() outside try in ApplyLocals.java would abort the script on a bad type
- 00780560 Entity_Player::GetBombFlags: nancyBombFlagTable -> nancyBombFlags BitSet128[16] (-0x110..-0x10, picked with Random()&0xf)
- 005b39d0 Entity_Player::UseActiveItem: larynxEffect[8], secretsEffect[8], megaMushEffect, peelerEffect should be TemporaryEffect (0xc); next slot is _cooldown. blueBoxPools[5] really has 10 entries. friendTypes/friendVariants are entry 0 of a 21-pair table
- 006950c0 EntityConfig::LoadEntities: auStack_10220 -> parsedEntity EntityConfig_Entity (folds ~60 field locals: shadowSize +0x24, baseHP +0x50, anm2Path +0x74, gridCollisionClassString +0xb4, bestiary strings +0xf8, modEntry +0x160, isPortraitModded +0x164)
- 006998d0 EntityConfig::load_players_xml: auStack_10218 -> playerEntry EntityConfig_Player (0x148 bytes)
- 004bfd30 NpcAI::ENTITY_HUSH: emptySourceRef EntityRef, faceShotParams ProjectileParams, bigShotVelocities Vector[3], curvingAngleSets float[9], curvingChangeTimeouts int[6], sideOffsets float[4], groupOneNpcs/pickedGroupNpcs EntityList_EL, attack200Pairs int[4]; `EntityList_EL *player` second declaration should be outcomePair (int *)
- 006bbdc0: tearColor (uStack_98..local_74) and poofColor (uStack_6c..local_48) each ColorMod (11 dwords); ApplyLocals skips rows whose new name exists
- 00700060 BombExplosionEffects: poisonColor (undefined4) is 11-dword ColorMod (0.4, 0.97, 0.5, 1.0...); poisonColor/buttBombColor/brimstoneBombColor ColorMod
- 00848d20 PlayerHUD::render_inventory: iconColor and shadowColor (undefined4) span 0x2c bytes each -> ColorMod
- 008d9340 Menu_KeyConfig::Render: actionLabels declared [4], really char*[19] (local_68..local_30); 008da510 render_gamepad_layout: actionLabels[4..19] -> char *[20]
- 0068cdc0 Console::RunCommand: macroCommands[2] is a 12-entry char* array (local_5c[20], local_48..local_38) -> char *[12]
- 0080f200 Room::Render: roomTypeNames -> char *[30] (absorbs local_15c..local_ec)
- 0040ed50 AnmCache::ParseFile: 13 attribute string temporaries -> std_string
- 009abe70 load_giantbook_xml: anm2Path and gfxPath each split into buffer/size/capacity -> std_string; tmpString std_string (local_3c); layerColor ColorMod (local_b0)
- 00904050 make_timestamp_string: local_98 timeCopy -> tm (36 bytes)
- 006a6f10 Entity_Bomb::update_sparks: local_54 typed BitSet128 is std_string[2]
- 009ee2a0 Menu_Stats::update_achievements, 00806c20, 0059edb0, 008d9340, 00468180, 0048c3b0, 00624e10: ColorMod typed over uStack runs (11 dwords)
- 007efa50 Room::on_leave: emptyGridDesc GridEntityDesc, savedTargetPos Vector
- 00468180 ENTITY_DADDYLONGLEGS: shockwavePos Vector (ShockwaveParams: pos, +0xc amplitude, +0x10 speed, +0x18 duration)
- 006ab440 Entity::PlayerCollideWithGrid: doorCollideInfo/gridCollideInfo/webCollideInfo/megaMushCollideInfo are 0x28-byte EntityRef (rows retype same name)
- 0058a010 Entity_NPC::Render: destroySource EntityRef (absorbs local_f0..local_d0)
- 00a25770 parseMapping: local_bc -> char *[44] (GLFW name/element table, 22 pairs)
- 00644e80 Entity_Familiar::ai_shadow_intruder_damocles: local_58 typed EntityRef is really first dword of the ref; retype local_7c as EntityRef
- 00751650 / 009688d0 Entity_Knife::UpdateSwingHits: tipCapsule and extraCapsule typed EntityRef but are Capsules
- 0083eae0: poolIdIt and poolIdsBegin typed Entity_Player* but are pointers into an int vector
- 006dae40 Entity_Pickup::GetChestLoot: trinketIds should be uint[5] (RStack_34 is tail)
- 007fb250 Room::SpawnClearAward: playerColor is float but heads a ColorMod (local_60..local_3c)
- 00843df0 / 00431be0 / 00961b00: local_14 typed FontSettings/Capsule is the EH state (int ehState)
- 0061da10 Entity_Familiar::Update: listSize declared Entity_Player* is a loop bound (EntityList::Size) -> int
- 0099c790: candidateIndex typed Entity * is an index; 00460780 shockwaveRoom typed Game * is g_game->_room; 00645bc0 `Game *type` is the pickup type returned by Lua pre-spawn callback
- 009785d0 / 007e33c0 PathFinder::FindGridPath: leftNeighbor is element 0 of int[4] {left, up, right, down} -> `neighbors` int[4] (not applied; local_20/1c/18 also hold offsets vector)
- 00569170 NpcAI::ENTITY_MOTHER: local_124/128/134 typed Entity*/Entity_NPC* hold floats
- 006c4b30 Entity_NPC::Update: pRVar13 typed Room* also holds an effect
- 00817830 Room::render_water: `room` is a float holding the Room pointer copied from local_7dc.x
- 009fa450 Weapon_Bone::Fire: tearDamage typed Entity_Player* holds a float
- 006670f0 Entity_Tear::Update: Vector on float pairs; float constants (zeroConst, halfConst, oneConst, pointThreeConst) retyped EntityPtr -> float
## Wrong existing local names (a name that is wrong, a name declared twice, a parameter renamed by a locals row)
- 009948f0 FXLayers::Render: `preventedCurses` declared twice (g_game->_curses at line 223 vs lowercased char in "KAGE_ColorTextureShader" hash loop); suggest curses / hashInput
- 009d45c0 GameState::write_player: `listEntry` declared twice (checksum accumulator &param_1->field_0xc vs list walker +0x3bc); first should be `checksum`
- 00a0a720 Weapon_Tears::Fire: `isCursedEye` declared uint, only low byte tested; local_103 is isMarked then NUL terminator after animDigit
- 009fa450 Weapon_Bone::Fire: `fetusTear` declared twice (EntityPtr * copy is a min/max pointer helper); `rngResult` also set to constant 1 for fire_brimstone_ball; `owner` overwritten with call-argument leftovers
- 006fbc10 / 00937420 Backdrop::pre_render_walls: `room` is mostly backdrop type (in_ECX[0x54]) but also RNG seed; `isPreAscentMomRoom` reused for greed-mode result and render_wall_detail bool
- 0047a360 ENTITY_CHUB: `anim` ends as up/final animation; `downAnim` correct; horiAnim/playerTarget/curAnimChar appear again in garbage region after ~line 1220
- 00794e50 update_effects: `entityList` (Entity_Player*) is Black Powder ring index (mod 0x60), reused as AddCharmed duration; `music` and `playerManager` (RNG*) are pointers to local RNGs projectileRng/tearRng; `layerName` (byte*) is a layer index; `effect` declared twice (Entity_Effect*, Entity*)
- 00624e10 Entity_Familiar::Render: `iconPosX` and `iconScaleX` are Vectors (iconPos/iconScale in 0xed case) but .y reused as scratch
- 00817830 Room::render_water: `waveScroll` and `waveRotation` reused as Vector temporaries (~line 1308)
- 00a1d8f0: param `line` is really a quad drawn as outline of width `thickness`
- 0094ef10 Menu_Collection::Render: `this` param named `font`, separate `Font *font` local
- 008453c0 PlayerHUD::RenderActiveItem: two locals named `shader` (undefined * and undefined4 *); second is quad_set_rect result or book-image pointer
- 006950c0 EntityConfig::LoadEntities: two locals named `atoiFn`; the `char *` one is a strlen/literal cursor
- 00a1d710 render_color_quad: two locals named `length`; applied fVar1 -> length is dirX (to.x - from.x, normalized, then half-thickness term); `color` passed to ColorQuad ctor never initialized (probably &white)
- 00468180 ENTITY_DADDYLONGLEGS: second `Entity *bloodCloud` wrong (RTDynamicCast'd spawned entity, later GetPlayerTarget)
- 0048c3b0 ENTITY_BROWNIE: second `Entity *subList` wrong (Game::Spawn results and GetPlayerTarget); EStack_4c (EntityRef) shares slot with ColorMod copy from local_50
- 005442a0 ENTITY_TARBOY: `gridIdx` declared twice (void *), holds room ptr, grid index, squared distance, RNG seed; local_2a4 typed Room * is player target then float scratch
- 004bfd30 ENTITY_HUSH: two locals named `player`; EntityList_EL * one should be outcomePair (int *); local_48 (RNG) shares slot with projectile EntityList_EL
- 0059edb0 ENTITY_ULTRA_GREED: two locals `animState` (Game*, AnimationState*)
- 0075f0e0 AddCollectible: two locals `playerManager` (PlayerManager*, Entity_Player*)
- 006dae40 GetChestLoot: local_48 is Daemon's Tail RNG then WeightedOutcomePicker vector; local_c9 Safety Cap flag then "not start room" flag; local_bc Rusted Key RNG and weight half of pairs
- 007fb250 SpawnClearAward: two locals `itemPool` (RNG*, ItemPool*); RNG* one is probably &local_38
- 008d9340 Menu_KeyConfig::Render: `layerIndex` reused (gamepad cast result, action table base, widths, SelectedElement, column offset); `keyName` also strcmp cursor
- 008da510 render_gamepad_layout: `buttonName` also current anim name in Idle/IdleUD compares; `layerIndex` also binding-table base and widths
- 00849510 RenderCraftingTable: `unusedArg` is a slot loop counter
- 0083eae0 render_pocket_item_info: `b` and `g` are param_2[0]/param_2[1] (text box x/y), not colour channels
- 0061da10 Entity_Familiar::Update: `projectile` is Entity_Bomb* (bomb copy via __RTDynamicCast); `listSize` typed Entity_Player*
- 007729d0 TakeDamage: `tear` declared twice (Entity_Tear*, EntityList*); `effect` declared twice (Entity_Familiar* is bone-heart index counter ~526829); `spawnedEffect` declared twice (RNG* one is Eden RNG passed to RNG::Next)
- 00961b00 Entity_Knife::Update: second `spawnedTear` (RNG*) is the RNG passed to RandomFloat (&local_158)
- 007c4180 UsePill: `Color *pillRng` is per-pill stat-up colour (suggest statColor); second `RNG *pillRng` exists; `rngFloat`/`blueOffset` are float args to Color::Color
- 00431be0 ai_umbilical_baby: `ropePointCount` is a rope point pointer (float *), also min/max select pointer; `pEVar15` typed Entity_Projectile holds any hit entity (tear flags show as _curvingStrength/_acceleration/_orbitDistance/field_0x434)
- 00414e00 InterpolateNullFrames: `startFrame` is a running frame position (end frame in copy path)
- 00843df0 RenderHearts: `colorOffsetB` declared twice, both reused (x spacing, row, x position); byte `isMultipleMantles` holds SetAnimation results and CL junk
- 00751650 generate_dark_closet: `isRepentanceStage` twice (bool, byte); byte copy reused for Item::IsAvailable result and RNG shift byte; `roomIt` reused for g_manager
- 00a01020 fire_hitscan: `gridCenterY` declared twice (grid row, ceil radius in cells, X loop counter)
- 009688d0 UpdateSwingHits: `ownerPlayer` also copy of `player`
- 00919980 Menu_Save::load_slot_data: `int gain` declared twice; first is offset (shareEndOffset+1) before use as gain
- 00904050 make_timestamp_string: `newSize` declared twice
- 0099c790 / 0083eae0: `poolIdIt`, `poolIdsBegin` types wrong (see types)
- 007e33c0 FindGridPath: `leftNeighbor` is element 0 of neighbor array
- 0064aab0 anm2_apply_gfx_overrides: param `unusedString` is used (split on '&' into "layer-colorPreset"); `presetColor` is first float of ColorMod overlapping std::string temp auStack_9c
- 0058a010 Entity_NPC::Render: `timer` is the entity pointer (positions at +0x33c/+0x340)
- 00806c20: `iconColor`/`shadowColor` see types
## Other (globals worth adding, dead stores, etc.)
- 006670f0 Entity_Tear::Update: DAT_00c346a0/b0/c0/d0 are .data BitSet128 constants for bits 76/125/126/127; d0 duplicates g_tearFlagLudovico; add to globals.tsv
- 00535280 ENTITY_SQUIRT: fStack_154..fStack_118 are dead stores; ppvVar19 is inlined Entity_NPC::set_entity_ptr_f54
- 00569170 NpcAI::ENTITY_MOTHER: FUN_0044bc90(n) is a global EntityPtr slot getter (heldSlot)
- 00a1d710 render_color_quad: `color` uninitialized in ColorQuad ctor call
- 007efa50 Room::on_leave: giving EntitySaveState a 0x78-byte struct fixes many reused slots
- 00a69090 refill_buffer: local_88 xorKey is first dword of 128-byte key (local_84..local_c rest)
- 0090d640 NetplayManager::save_frame_snapshot: no prototype before; added `bool isResetEntities` (RET 0x4 at 0090d949)
- ApplyLocals.java: parser.parse() outside try block, an unparseable type string (e.g. BitSet128[16], int[16]) aborts whole script; rows whose new name already exists are skipped, blocking same-name retypes and the Hush/Pickup ColorMod retypes