//
// cocos2d::extension::CCThreadPool::~CCThreadPool from 0xd1d768 to 0xd1d7dc (116 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCHttpClient::~CCHttpClient @ 0xd1d810
// > ??> @ 0x71128
// > ??> @ 0x99868
//
// 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:10 +0000
//
// Alternative name is '_ZN7cocos2d9extension12CCThreadPoolD2Ev'
void __fastcall cocos2d::extension::CCThreadPool::~CCThreadPool(cocos2d::extension::CCThreadPool *this)
{
char *v2; // x20
char *v3; // x0
std::thread *v4; // x0
cocos2d::extension::CCThreadPool::shutdown(this);
std::condition_variable::~condition_variable((cocos2d::extension::CCThreadPool *)((char *)this + 112));
std::mutex::~mutex((cocos2d::extension::CCThreadPool *)((char *)this + 72));
std::__deque_base>::~__deque_base((__int64)this + 24);
v2 = *(char **)this;
if ( *(_QWORD *)this )
{
v3 = *((char **)this + 1);
if ( v2 != v3 )
{
do
{
v4 = (std::thread *)(v3 - 8);
*((_QWORD *)this + 1) = v4;
std::thread::~thread(v4);
v3 = *((char **)this + 1);
}
while ( v2 != v3 );
v3 = *(char **)this;
}
operator delete(v3);
}
}