//
// cocos2d::extension::WsThreadHelper::WsThreadHelper from 0x7b2d34 to 0x7b2da2 (110 bytes)
//
// 1 xrefs:
// > cocos2d::extension::WebSocket::init @ 0x7b36b6
//
// 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:08 +0000
//
// Alternative name is '_ZN7cocos2d9extension14WsThreadHelperC1Ev'
cocos2d::extension::WsThreadHelper *__fastcall cocos2d::extension::WsThreadHelper::WsThreadHelper(
cocos2d::extension::WsThreadHelper *this)
{
_DWORD *v2; // r0
_DWORD *v3; // r0
cocos2d::CCDirector *v4; // r0
int v5; // r0
cocos2d::CCScheduler *v6; // r0
cocos2d::CCObject::CCObject(this);
*(_DWORD *)this = &off_D02208;
*((_DWORD *)this + 18) = 0;
*((_BYTE *)this + 76) = 0;
v2 = (_DWORD *)operator new(0xCu);
*v2 = v2;
v2[1] = v2;
v2[2] = 0;
*((_DWORD *)this + 13) = v2;
pthread_mutex_init((pthread_mutex_t *)((char *)this + 60), nullptr);
v3 = (_DWORD *)operator new(0xCu);
*v3 = v3;
v3[1] = v3;
v3[2] = 0;
*((_DWORD *)this + 14) = v3;
v4 = (cocos2d::CCDirector *)pthread_mutex_init((pthread_mutex_t *)((char *)this + 64), nullptr);
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (cocos2d::CCScheduler *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 64))(v5);
cocos2d::CCScheduler::scheduleUpdateForTarget(v6, this, 0, 0);
return this;
}