Mac SLOG_FlushLog: void __fastcc (void* pLog ECX)
ECX -> ESI is the log: if +0x114 (pending bytes) is non-zero, it writes the +0x124 buffer to the +0x10c file handle (WriteFile 0x00021fc6, FlushFileBuffers 0x00022082), then zeroes +0x114/+0x118. There are no stack args, plain RET, and EAX is not loaded. Callers pass only ECX (SLogFlushAll 0x0001837d). Same as Windows twin 0x0041fa40 void (D2SLogStrc* pLog). The log is typed void* because D2SLogStrc is not in the Mac DB.
Changes 1, applied together
Set prototype
mac 0x00017da7signatureundefined SLOG_FlushLog(void)→void SLOG_FlushLog(void* pLog)convention__fastcc