//
// cocos2d::CCProfiler::sharedProfiler from 0x7f5e48 to 0x7f5e82 (58 bytes)
//
// 3 xrefs:
// > cocos2d::CCProfilingEndTimingBlock @ 0x7f60e2
// > cocos2d::CCProfilingResetTimingBlock @ 0x7f618c
// > cocos2d::CCProfilingBeginTimingBlock @ 0x7f6254
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:08 +0000
//
int __fastcall cocos2d::CCProfiler::sharedProfiler(cocos2d::CCProfiler *this)
{
_DWORD *v1; // r4
if ( !dword_D2FB30 )
{
v1 = (_DWORD *)operator new(0x38u);
memset(v1, 0, 0x38u);
cocos2d::CCObject::CCObject(v1);
dword_D2FB30 = (int)v1;
*v1 = &off_D115D0;
cocos2d::CCProfiler::init((cocos2d::CCProfiler *)v1);
}
return dword_D2FB30;
}