// // cocos2d::CCProfilingBeginTimingBlock from 0xb1eb70 to 0xb1ec80 (272 bytes) // // 1 xrefs: // > @ 0xc3528 // // 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::CCProfilingBeginTimingBlock(const char *a1) { cocos2d::CCProfiler *v2; // x22 __int64 v3; // x23 __int64 v4; // x19 char *v5; // x0 unsigned int *v6; // x2 int v7; // w1 const char *v8; // [xsp+50h] [xbp+50h] BYREF v2 = cocos2d::CCProfiler::sharedProfiler(); v3 = (__int64)v2[1].__vftable; sub_D153B8((int)&v8, (char *)a1); v4 = cocos2d::CCDictionary::objectForKey(v3, &v8); v5 = (char *)(v8 - 24); if ( v8 - 24 == (const char *)&qword_124B6B0 ) goto LABEL_2; if ( &pthread_create ) { v6 = (unsigned int *)(v8 - 8); do v7 = __ldaxr(v6); while ( __stlxr(v7 - 1, v6) ); } else { v7 = *((_DWORD *)v8 - 2); *((_DWORD *)v8 - 2) = v7 - 1; } if ( v7 > 0 ) { LABEL_2: if ( !v4 ) LABEL_9: v4 = (__int64)cocos2d::CCProfiler::createAndAddTimerWithName(v2, a1); } else { operator delete(v5); if ( !v4 ) goto LABEL_9; } ++*(_DWORD *)(v4 + 64); gettimeofday((struct timeval *)(v4 + 96), nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source