// // cocos2d::extension::CCHttpClient::availableThreadCount from 0x1004389c0 to 0x100438a07 (71 bytes) // // 2 xrefs: // > CustomSongWidget::processNextMultiAsset @ 0x100621099 // > CustomSongWidget::processNextMultiAsset @ 0x1006212e5 // // 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 // size_t __fastcall cocos2d::extension::CCHttpClient::availableThreadCount(cocos2d::extension::CCHttpClient *a1) { __int64 v1; // r14 std::mutex *v2; // rbx unsigned __int64 v3; // rax unsigned __int64 v4; // rcx size_t v5; // r14 bool v6; // cf size_t v7; // rcx v1 = *(_QWORD *)&a1->_timeoutForConnect; v2 = (std::mutex *)(v1 + 72); std::mutex::lock((std::mutex *)(v1 + 72)); v3 = *(_QWORD *)(v1 + 64) + *(_QWORD *)(v1 + 192); v4 = (__int64)(*(_QWORD *)(v1 + 8) - *(_QWORD *)v1) >> 3; v5 = 0; v6 = v4 < v3; v7 = v4 - v3; if ( !v6 ) v5 = v7; std::mutex::unlock(v2); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source