// // cocos2d::extension::CCThreadPool::availableThreadCount from 0xd1d004 to 0xd1d064 (96 bytes) // // 2 xrefs: // > cocos2d::extension::CCHttpClient::availableThreadCount @ 0xd1d0a0 // > @ 0x53878 // // 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 // unsigned __int64 __fastcall cocos2d::extension::CCThreadPool::availableThreadCount( cocos2d::extension::CCThreadPool *this) { std::mutex *v1; // x20 unsigned __int64 v3; // x2 unsigned __int64 v4; // x1 unsigned __int64 v5; // x19 v1 = (cocos2d::extension::CCThreadPool *)((char *)this + 72); std::mutex::lock((cocos2d::extension::CCThreadPool *)((char *)this + 72)); v3 = *((_QWORD *)this + 21) + *((_QWORD *)this + 8); v4 = (__int64)(*((_QWORD *)this + 1) - *(_QWORD *)this) >> 3; v5 = v4 - v3; if ( v3 >= v4 ) v5 = 0; std::mutex::unlock(v1); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source