# Entity_Effect::Update per-variant cases (items) `Entity_Effect::Update` 0x5d4380 (~200 KB, a 0x7500-byte frame) never decompiles whole. Its switch is `JMP [EDX*4 + 0x606f8c]` at 0x5d47cc on `variant - 1` (0..0xcb; anything else -> 0x606e88, the shared tail). Read here: the item-related cases, transcribed from per-case decompiles checked against the asm. ## How to read a case (decompile.sh --case, scripts/DecompileCase.java) - `./decompile.sh --case 0x6064cc [0x5f2add ...]` decompiles single cases (~4 s each after a ~5 s Ghidra start; all 139 distinct targets take ~90 s in one call). It copies project/ to a temp dir, opens it `-readOnly`, finds the computed JMP whose flows (or jump table, read from memory) contain the case address, patches that JMP into a direct `JMP case` (E9 rel32 + NOPs), re-flows the function body with `CreateFunctionCmd.fixupFunctionBody` (prologue + that case + whatever it jumps into, e.g. the shared tail) and decompiles that. Changes are discarded; the shared project is never written. Arguments may be labelled `label=addr`; the header then reads `//@@ 005d4380 Entity_Effect::Update/case_