Mac GetLastError: uint32_t __cdecl (void) Win32 shim
This is the Mac Win32-shim GetLastError. It reads no args: MOV EAX,[global last-error] / RET (0x0002b1c9). Callers use the value: WriteErrorLog 0x00010983 does CMP EAX,5 (ERROR_ACCESS_DENIED), and SFILE_ReadFileChecked 0x00014d09 tests it on read failure. This matches Win32 DWORD GetLastError(void).
Changes 1, applied together
Set prototype
mac 0x0002b1c0signatureundefined GetLastError(void)→uint32_t GetLastError(void)conventionunknown→__cdecl