//
// cocos2d::extension::WsThreadHelper::sendMessageToUIThread from 0x7b2f58 to 0x7b2f7e (38 bytes)
//
// 1 xrefs:
// > cocos2d::extension::WebSocket::onSocketCallback @ 0x7b3138
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:09 +0000
//
int __fastcall cocos2d::extension::WsThreadHelper::sendMessageToUIThread(int a1, int a2)
{
pthread_mutex_t *v2; // r5
int v5; // [sp+4h] [bp-4h] BYREF
v2 = (pthread_mutex_t *)(a1 + 60);
v5 = a2;
pthread_mutex_lock((pthread_mutex_t *)(a1 + 60));
std::list::push_back(*(int **)(a1 + 52), &v5);
return pthread_mutex_unlock(v2);
}