Mac ITEMMODE_GetItemTypeFlags: void __fastcc (pOwner ECX, pTypeFlags EDX, pUnit stack)
Mac 0x001b7b07 is "undefined (void)", convention unknown. Entry: EDI=ECX (owner: [EDI]==0 player check, [EDI+4] class compared with 4 and 6), ESI=EDX (flag array, asserted non-NULL with file/line at 0x001b7b1e), [EBP+8] (item: passed as [ESP] at 0x001b7bb5-0x001b7bb8) is the only stack read; plain RET 0x001b7ccf. Same three values and order as Windows twin 0x0055d560 void (D2UnitStrc* pOwner, int32_t* pnTypeFlags, D2UnitStrc* pUnit); pn prefix dropped as the checker refuses it.
Changes 1, applied together
Set prototype
mac 0x001b7b07signatureundefined ITEMMODE_GetItemTypeFlags(void)→void ITEMMODE_GetItemTypeFlags(D2UnitStrc * pOwner, int32_t * pTypeFlags, D2UnitStrc * pUnit)conventionunknown→__fastcc