//
// cocos2d::CCProfiler::sharedProfiler from 0xb1e878 to 0xb1e910 (152 bytes)
//
// 4 xrefs:
// > cocos2d::CCProfilingBeginTimingBlock @ 0xb1eb9c
// > cocos2d::CCProfilingEndTimingBlock @ 0xb1ecb4
// > cocos2d::CCProfilingResetTimingBlock @ 0xb1ee00
// > ??> @ 0xad298
//
// 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::CCProfiler *cocos2d::CCProfiler::sharedProfiler()
{
cocos2d::CCProfiler *result; // x0
__int64 v1; // x0
cocos2d::CCProfiler *v2; // x20
result = (cocos2d::CCProfiler *)qword_1245C00;
if ( !qword_1245C00 )
{
v1 = operator new(0x40u);
*(_QWORD *)v1 = 0;
*(_DWORD *)(v1 + 8) = 0;
v2 = (cocos2d::CCProfiler *)v1;
*(_DWORD *)(v1 + 12) = 0;
*(_DWORD *)(v1 + 16) = 0;
*(_DWORD *)(v1 + 20) = 0;
*(_DWORD *)(v1 + 24) = 0;
*(_DWORD *)(v1 + 28) = 0;
*(_DWORD *)(v1 + 32) = 0;
*(_DWORD *)(v1 + 36) = 0;
*(_DWORD *)(v1 + 40) = 0;
*(_DWORD *)(v1 + 44) = 0;
*(_DWORD *)(v1 + 48) = 0;
*(_DWORD *)(v1 + 52) = 0;
*(_QWORD *)(v1 + 56) = 0;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);
qword_1245C00 = (__int64)v2;
v2->__vftable = (cocos2d::CCProfiler_vtbl *)&off_1219110;
cocos2d::CCProfiler::init(v2);
return (cocos2d::CCProfiler *)qword_1245C00;
}
return result;
}