Mac SCOMP_ReleaseTempBuffer: void __fastcc (void* pBuf ECX, int32_t bShared EDX)
ECX -> ESI is the buffer (NULL-tested; when not shared it is freed with SMemFree 0x00018c44, line 0x6c4). EDX -> EDI is the shared flag (if set, it only clears the global in-use slot). The work is wrapped in a lock/unlock pair. There are no stack args, plain RET, and EAX is not loaded. The caller SCompDecompress 0x0000f4f1 loads ECX/EDX and then overwrites EDI. Same roles as Windows twin 0x0041e510 (bShared, pBuf), in Mac register order.
Changes 1, applied together
Set prototype
mac 0x0000f2c1signatureundefined SCOMP_ReleaseTempBuffer(void)→void SCOMP_ReleaseTempBuffer(void* pBuf, int32_t bShared)conventionunknown→__fastcc