Mac GFX_LoadCofFile: __fastcc void * (void * pTextureCache, char * szPath) (from Windows twin)
Ghidra vmac 111 · 3c6740e
Mac body: EDX (EBX) is the path: it is passed in ECX to GFX_ExtractFilenameFromPath (0x0006947a) to get the bare name; ECX (EDI) is the cache: passed with the name to the cache lookup (0x0006948d) before a new 0x1c-byte entry is allocated and filled; returns the loaded COF pointer; no stack arguments and a single plain RET. Windows twin GFX_LoadCofFile 0x0046dcc0 is void * (void * pTextureCache, char * szPath); same order on Mac.
Changes 1, applied together
Set prototype
mac 0x00069427signatureundefined GFX_LoadCofFile(void)→void * GFX_LoadCofFile(void * pTextureCache, char * szPath)conventionunknown→__fastcc