//
// cocos2d::CCNotificationCenter::addObserver from 0xd8edf8 to 0xd8eea0 (168 bytes)
//
// 15 xrefs:
// > LevelBrowserLayer::init @ 0x7fa448
// > LevelBrowserLayer::init @ 0x7fae2c
// > InfoLayer::setupBulkUI @ 0x907ea0
// > MessagesProfilePage::init @ 0xa4b794
// > FRequestProfilePage::init @ 0xa4e8e0
// > AccountReviewPopup::init @ 0xc45698
// > ReportQueuePopup::init @ 0xc503e0
// > MessageThreadsPage::init @ 0xc76414
// > MessageThreadsPage::init @ 0xc76438
// > cocos2d::CCDrawNode::init @ 0xd4be00
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0xd6a63c
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0xd6a660
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0xd73fbc
// > cocos2d::CCTextureAtlas::initWithTexture @ 0xda45e4
// > ??> @ 0x8d388
//
// 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:17 +0000
//
__int64 __fastcall cocos2d::CCNotificationCenter::addObserver(
cocos2d::CCArray **a1,
cocos2d::CCObject *a2,
__int64 a3,
__int64 a4,
char *a5,
__int64 a6)
{
__int64 result; // x0
char *v11; // x4
cocos2d::CCObject *v12; // x23
__int64 v14; // [xsp+40h] [xbp+40h]
const char *v16; // [xsp+48h] [xbp+48h]
result = (unsigned __int8)cocos2d::CCNotificationCenter::observerExisted((cocos2d::CCNotificationCenter *)a1, a2, a5);
v11 = a5;
if ( !(_BYTE)result )
{
v14 = a6;
v16 = v11;
v12 = (cocos2d::CCObject *)operator new(0x68u);
cocos2d::CCNotificationObserver::CCNotificationObserver((__int64)v12, (__int64)a2, a3, a4, v16, v14);
cocos2d::CCObject::autorelease(v12);
return cocos2d::CCArray::addObject(a1[7], v12);
}
return result;
}