// // cocos2d::CCProfilingEndTimingBlock from 0x5eb264 to 0x5eb300 (156 bytes) // // 0 xrefs: // // 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 // void cocos2d::CCProfilingEndTimingBlock(const char *a1) { cocos2d::CCProfiler_vtbl *v2; // r4 int v3; // r4 int v4; // r5 int v5; // r2 unsigned int v6; // s15 __int64 v7; // r0 int v8; // r0 int v9; // r3 int v10; // r3 const char *v11; // [sp+8h] [bp-14h] BYREF struct timeval tv; // [sp+Ch] [bp-10h] BYREF gettimeofday(&tv, nullptr); v2 = cocos2d::CCProfiler::sharedProfiler()[1].__vftable; sub_776584((int)&v11, (char *)a1); v3 = cocos2d::CCDictionary::objectForKey((int)v2, &v11); sub_774008(&v11); v4 = tv.tv_usec - *(_DWORD *)(v3 + 92) + 1000000 * (tv.tv_sec - *(_DWORD *)(v3 + 88)); v5 = *(_DWORD *)(v3 + 56); v6 = v4 + *(_DWORD *)(v3 + 60); v7 = *(_QWORD *)(v3 + 72) + v4; *(_QWORD *)(v3 + 72) = v7; *(_DWORD *)(v3 + 60) = (int)vcvts_n_f32_s32(v6, 1u); v8 = v7 / v5; v9 = *(_DWORD *)(v3 + 84); if ( v9 < v4 ) *(_DWORD *)(v3 + 84) = v4; else *(_DWORD *)(v3 + 84) = v9; v10 = *(_DWORD *)(v3 + 80); if ( v10 > v4 ) *(_DWORD *)(v3 + 80) = v4; else *(_DWORD *)(v3 + 80) = v10; *(_DWORD *)(v3 + 64) = v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source