//
// cocos2d::CCProfiler::sharedProfiler from 0xd8f2e8 to 0xd8f380 (152 bytes)
//
// 4 xrefs:
// > cocos2d::CCProfilingEndTimingBlock @ 0xd8f4e0
// > cocos2d::CCProfilingResetTimingBlock @ 0xd8f664
// > cocos2d::CCProfilingBeginTimingBlock @ 0xd8f8bc
// > ??> @ 0xe2b28
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:08:18 +0000
//
__int64 __fastcall cocos2d::CCProfiler::sharedProfiler(cocos2d::CCProfiler *this)
{
__int64 result; // x0
__int64 v2; // x0
cocos2d::CCProfiler *v3; // x20
result = qword_1560BA0;
if ( !qword_1560BA0 )
{
v2 = operator new(0x40u);
*(_QWORD *)v2 = 0;
*(_DWORD *)(v2 + 8) = 0;
v3 = (cocos2d::CCProfiler *)v2;
*(_DWORD *)(v2 + 12) = 0;
*(_DWORD *)(v2 + 16) = 0;
*(_DWORD *)(v2 + 20) = 0;
*(_DWORD *)(v2 + 24) = 0;
*(_DWORD *)(v2 + 28) = 0;
*(_DWORD *)(v2 + 32) = 0;
*(_DWORD *)(v2 + 36) = 0;
*(_DWORD *)(v2 + 40) = 0;
*(_DWORD *)(v2 + 44) = 0;
*(_DWORD *)(v2 + 48) = 0;
*(_DWORD *)(v2 + 52) = 0;
*(_QWORD *)(v2 + 56) = 0;
cocos2d::CCObject::CCObject(v2);
qword_1560BA0 = (__int64)v3;
*(_QWORD *)v3 = &off_152EF70;
cocos2d::CCProfiler::init(v3);
return qword_1560BA0;
}
return result;
}