//
// cocos2d::extension::WsThreadHelper::sendMessageToUIThread from 0x5ace24 to 0x5ace54 (48 bytes)
//
// 1 xrefs:
// > cocos2d::extension::WebSocket::onSocketCallback @ 0x5ad4c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall cocos2d::extension::WsThreadHelper::sendMessageToUIThread(int a1, int a2)
{
pthread_mutex_t *v2; // r4
_DWORD *v4; // r0
v2 = (pthread_mutex_t *)(a1 + 60);
pthread_mutex_lock((pthread_mutex_t *)(a1 + 60));
v4 = (_DWORD *)operator new(0xCu);
v4[2] = a2;
*v4 = 0;
v4[1] = 0;
sub_74AAF0();
return j_pthread_mutex_unlock(v2);
}