Mac GFX_LoadMonsterModeCofByState: __fastcc void (D2UnitStrc * pUnit, uint32_t nAnimMode)
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
Set prototype
mac 0x00064bd1signatureundefined GFX_LoadMonsterModeCofByState(void)→void GFX_LoadMonsterModeCofByState(D2UnitStrc * pUnit, uint32_t nAnimMode)conventionunknown→__fastcc