// // cocos2d::extension::CCThreadPool::~CCThreadPool from 0xaab430 to 0xaab5f4 (452 bytes) // // 3 xrefs: // > cocos2d::extension::CCHttpClient::~CCHttpClient @ 0xaab628 // > @ 0x51318 // > @ 0x72318 // // 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 // // Alternative name is '_ZN7cocos2d9extension12CCThreadPoolD2Ev' void __fastcall cocos2d::extension::CCThreadPool::~CCThreadPool(pthread_cond_t *this) { __int64 v2; // x28 unsigned __int64 v3; // x24 __int64 *v4; // x23 __int64 v5; // x21 __int64 v6; // x27 __int64 v7; // x25 __int64 v8; // x22 __int64 v9; // x19 __int64 v10; // x20 void (__fastcall *v11)(__int64, __int64, __int64); // x3 void (__fastcall *v12)(__int64, __int64, __int64); // x3 void (__fastcall *v13)(__int64, __int64, __int64); // x3 void *woken_seq; // x0 void **v15; // x19 unsigned __int64 v16; // x20 void *v17; // t1 pthread_t *align; // x19 pthread_t *total_seq; // x20 void (__fastcall *v20)(__int64, __int64, __int64); // x3 cocos2d::extension::CCThreadPool::shutdown((cocos2d::extension::CCThreadPool *)this); j__pthread_cond_destroy(this + 3); v2 = *((_QWORD *)this + 8); v3 = *((_QWORD *)this + 12); v4 = (__int64 *)(v2 + 8); v5 = *(&this->__align + 5); v6 = *((_QWORD *)this + 7); v7 = *((_QWORD *)this + 9); v8 = *((_QWORD *)this + 10); if ( v3 > v2 + 8 ) { do { v9 = *v4; v10 = *v4 + 512; do { v11 = *(void (__fastcall **)(__int64, __int64, __int64))(v9 + 16); if ( v11 ) v11(v9, v9, 3); v9 += 32; } while ( v9 != v10 ); ++v4; } while ( v3 > (unsigned __int64)v4 ); } if ( v2 == v3 ) { for ( ; v7 != v5; v5 += 32 ) { v20 = *(void (__fastcall **)(__int64, __int64, __int64))(v5 + 16); if ( v20 ) v20(v5, v5, 3); } } else { for ( ; v6 != v5; v5 += 32 ) { v12 = *(void (__fastcall **)(__int64, __int64, __int64))(v5 + 16); if ( v12 ) v12(v5, v5, 3); } for ( ; v7 != v8; v8 += 32 ) { v13 = *(void (__fastcall **)(__int64, __int64, __int64))(v8 + 16); if ( v13 ) v13(v8, v8, 3); } } woken_seq = (void *)this->__woken_seq; if ( woken_seq ) { v15 = *((void ***)this + 8); v16 = *((_QWORD *)this + 12) + 8LL; if ( (unsigned __int64)v15 < v16 ) { do { v17 = *v15++; operator delete(v17); } while ( v16 > (unsigned __int64)v15 ); woken_seq = (void *)this->__woken_seq; } operator delete(woken_seq); } align = (pthread_t *)this->__align; total_seq = (pthread_t *)this->__total_seq; if ( (pthread_t *)this->__align != total_seq ) { do { if ( !pthread_equal(*align, 0) ) std::terminate(); ++align; } while ( total_seq != align ); total_seq = (pthread_t *)this->__align; } if ( total_seq ) operator delete(total_seq); }
GD Web Decomp Icon

GD Web Decomp

Raw Source