//
// cocos2d::CCProfiler::sharedProfiler from 0x180098020 to 0x1800980b4 (148 bytes)
//
// 5 xrefs:
// > cocos2d::CCProfilingBeginTimingBlock @ 0x180097b61
// > cocos2d::CCProfilingEndTimingBlock @ 0x180097c58
// > cocos2d::CCProfilingResetTimingBlock @ 0x180097d8c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c09cc
//
// This function is hookable on this platform (idp: pc, 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 11:22:10 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCProfiler *__fastcall cocos2d::CCProfiler::sharedProfiler()
{
struct cocos2d::CCProfiler *result; // rax
_OWORD *v1; // rax
_QWORD *v2; // rbx
cocos2d::CCDictionary *v3; // rdi
cocos2d::CCDictionary *v4; // rax
result = (struct cocos2d::CCProfiler *)qword_1801B2A78;
if ( !qword_1801B2A78 )
{
v1 = (_OWORD *)sub_1800E4AC0(0x40u);
v2 = v1;
v3 = nullptr;
if ( v1 )
{
*v1 = 0;
v1[1] = 0;
v1[2] = 0;
v1[3] = 0;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);
*v2 = &cocos2d::CCProfiler::`vftable';
}
else
{
v2 = nullptr;
}
qword_1801B2A78 = (__int64)v2;
v4 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);
if ( v4 )
v3 = cocos2d::CCDictionary::CCDictionary(v4);
v2[7] = v3;
return (struct cocos2d::CCProfiler *)qword_1801B2A78;
}
return result;
}