//
// cocos2d::extension::WsThreadHelper::createThread from 0xaadb7c to 0xaadbf0 (116 bytes)
//
// 2 xrefs:
// > cocos2d::extension::WebSocket::init @ 0xaae0bc
// > ??> @ 0x6b520
//
// 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
//
bool __fastcall cocos2d::extension::WsThreadHelper::createThread(
cocos2d::extension::WsThreadHelper *this,
const cocos2d::extension::WebSocket *a2)
{
pthread_attr_t attr; // [xsp+30h] [xbp+30h] BYREF
*((_QWORD *)this + 20) = a2;
pthread_attr_init(&attr);
return pthread_create(
(pthread_t *)this + 19,
&attr,
(void *(*)(void *))cocos2d::extension::WsThreadEntry::entry,
this) == 0;
}