//
// cocos2d::CCNotificationCenter::sharedNotificationCenter from 0x180097250 to 0x1800972be (110 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0870
//
// 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::CCNotificationCenter *__fastcall cocos2d::CCNotificationCenter::sharedNotificationCenter()
{
struct cocos2d::CCNotificationCenter *result; // rax
cocos2d::CCObject *v1; // rax
cocos2d::CCObject *v2; // rbx
struct cocos2d::CCArray *v3; // rax
result = qword_1801B2A60;
if ( !qword_1801B2A60 )
{
v1 = (cocos2d::CCObject *)sub_1800E4AC0(0x48u);
v2 = v1;
if ( v1 )
{
cocos2d::CCObject::CCObject(v1);
*(_QWORD *)v2 = &cocos2d::CCNotificationCenter::`vftable';
*((_DWORD *)v2 + 16) = 0;
v3 = cocos2d::CCArray::createWithCapacity(3u);
*((_QWORD *)v2 + 7) = v3;
cocos2d::CCObject::retain(v3);
}
else
{
v2 = nullptr;
}
qword_1801B2A60 = v2;
return v2;
}
return result;
}