REDIVIVUS

Proposals / #939

Mac ITEM_CanTheseBeSocketed: __fastcc uint32_t (D2UnitStrc * pUnit, D2UnitStrc * pTargetItem)

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

Ghidra vmac 111 · 3c6740e

Mac body: ECX and EDX (EDI) are both null-checked; ECX is passed to the item-type check (0x00174572), EDX is checked for item flag 0x800 (socketed) and passed to the socket-count getters; the result 0/1 is returned in EAX (ESI); no stack arguments. Windows twin ITEM_CanTheseBeSocketed 0x004843e0 is uint32_t (D2UnitStrc * pUnit, D2UnitStrc * pTargetItem); same order on Mac (ECX, EDX).

Changes 1, applied together

  1. Set prototype mac 0x000b4f8a

    signatureundefined ITEM_CanTheseBeSocketed(void)→uint32_t ITEM_CanTheseBeSocketed(D2UnitStrc * pUnit, D2UnitStrc * pTargetItem)
    conventionunknown→__fastcc