//
// cocos2d::extension::WsThreadHelper::~WsThreadHelper from 0xd1f5dc to 0xd1f67c (160 bytes)
//
// 4 xrefs:
// > cocos2d::extension::WsThreadHelper::~WsThreadHelper @ 0xd1f68c
// > ??> @ 0x7aab8
// > ??> @ 0x9e428
// > ??> @ 0x1510848
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:11 +0000
//
// Alternative name is '_ZN7cocos2d9extension14WsThreadHelperD1Ev'
void __fastcall cocos2d::extension::WsThreadHelper::~WsThreadHelper(cocos2d::extension::WsThreadHelper *this)
{
__int64 v2; // x0
cocos2d::CCScheduler *v3; // x0
_QWORD *v4; // x20
_QWORD *v5; // x20
*(_QWORD *)this = &off_1510840;
v2 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)&off_1510840);
v3 = (cocos2d::CCScheduler *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL))(v2);
cocos2d::CCScheduler::unscheduleAllForTarget(v3, this);
pthread_mutex_destroy((pthread_mutex_t *)((char *)this + 72));
pthread_mutex_destroy((pthread_mutex_t *)((char *)this + 112));
v4 = *((_QWORD **)this + 7);
if ( v4 )
{
if ( v4[2] )
sub_D1F580(*((_QWORD **)this + 7));
operator delete(v4);
}
v5 = *((_QWORD **)this + 8);
if ( v5 )
{
if ( v5[2] )
sub_D1F580(*((_QWORD **)this + 8));
operator delete(v5);
}
cocos2d::CCObject::~CCObject(this);
}