REDIVIVUS

Proposals / #959

Mac GFX_LoadMonsterModeCofByState: __fastcc void (D2UnitStrc * pUnit, uint32_t nAnimMode)

applied · by KierTaylor · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3c6740e

Mac body: ECX (ESI) is the unit (null-tested, +0/+4 read, passed to the class lookup and to the state-transform call); EDX (EDI) is the animation mode: compared with 0xe (sequence mode) and replaced by the stored sequence mode in that case before indexing the mode tables; no [EBP+n] reads and a single plain RET (0x00064cf2). Windows twin GFX_LoadMonsterModeCofByState 0x0046f9e0 is void (D2UnitStrc * pUnit, uint32_t nAnimMode); same order on Mac.

Changes 1, applied together

  1. Set prototype mac 0x00064bd1

    signatureundefined GFX_LoadMonsterModeCofByState(void)→void GFX_LoadMonsterModeCofByState(D2UnitStrc * pUnit, uint32_t nAnimMode)
    conventionunknown→__fastcc