// // cocos2d::CCProfiler::createAndAddTimerWithName from 0xb1e9c8 to 0xb1eacc (260 bytes) // // 2 xrefs: // > cocos2d::CCProfilingBeginTimingBlock @ 0xb1ec60 // > @ 0x43b60 // // 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 // cocos2d::CCProfilingTimer *cocos2d::CCProfiler::createAndAddTimerWithName(cocos2d::CCProfiler *a1, const char *a2) { cocos2d::CCProfilingTimer *v4; // x20 cocos2d::CCProfiler_vtbl *v5; // x23 char *v6; // x0 unsigned int *v8; // x2 int v9; // w1 const char *v10; // [xsp+50h] [xbp+50h] BYREF v4 = (cocos2d::CCProfilingTimer *)operator new(0x70u); cocos2d::CCProfilingTimer::CCProfilingTimer(v4); cocos2d::CCProfilingTimer::initWithName(v4, a2); v5 = a1[1].__vftable; sub_D153B8((int)&v10, (char *)a2); cocos2d::CCDictionary::setObject((__int64)v5, v4, &v10); v6 = (char *)(v10 - 24); if ( v10 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v10 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v10 - 2); *((_DWORD *)v10 - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v6); } cocos2d::CCObject::release(v4); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source