Mac SMsgDispatchMessage: BOOL __cdecl 6-arg (pWindow, nMsg, nWParam, dwLParam, pHandled, pResult)
The Mac body reads six stack args, [EBP+8]..[EBP+0x1c], and no registers on entry. [EBP+8] = window (passed to SMSG_DeleteWindow on WM_DESTROY at 0x00018f16), [EBP+0xc] = message, [EBP+0x10]/[EBP+0x14] = wParam/lParam, [EBP+0x18] = out handled flag ([ECX]=[EBP-0x18]), [EBP+0x1c] = out result. It ends MOV EAX,1 / RET. Same as Windows twin 0x00420b00 BOOL (HWND, UINT, WPARAM, LPARAM, BOOL*, LRESULT*). Win32 types are not in the Mac DB, so plain types are used, and pb/pl prefixes are refused.
Changes 1, applied together
Set prototype
mac 0x00018dddsignatureundefined SMsgDispatchMessage(void)→BOOL SMsgDispatchMessage(void* pWindow, uint32_t nMsg, uint32_t nWParam, int32_t dwLParam, BOOL* pHandled, int32_t* pResult)conventionunknown→__cdecl