// // sub_100240C84 from 0x100240c84 to 0x100240cd4 (80 bytes) // // 1 xrefs: // > cocos2d::extension::CCHttpClient::availableThreadCount @ 0x10024105c // // 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 // unsigned __int64 __fastcall sub_100240C84(__int64 a1) { unsigned __int64 v2; // x8 unsigned __int64 v3; // x9 bool v4; // cf unsigned __int64 v5; // x8 unsigned __int64 v6; // x20 std::mutex::lock((std::mutex *)(a1 + 72)); v2 = *(_QWORD *)(a1 + 64) + *(_QWORD *)(a1 + 192); v3 = (__int64)(*(_QWORD *)(a1 + 8) - *(_QWORD *)a1) >> 3; v4 = v3 >= v2; v5 = v3 - v2; if ( v4 ) v6 = v5; else v6 = 0; std::mutex::unlock((std::mutex *)(a1 + 72)); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source