//
// cocos2d::CCNotificationCenter::addObserver from 0x7f5c6c to 0x7f5cba (78 bytes)
//
// 14 xrefs:
// > LevelBrowserLayer::init @ 0x4a75ce
// > LevelBrowserLayer::init @ 0x4a80fc
// > InfoLayer::setupBulkUI @ 0x53d104
// > MessagesProfilePage::init @ 0x5f0960
// > FRequestProfilePage::init @ 0x5f28e2
// > AccountReviewPopup::init @ 0x735fbc
// > ReportQueuePopup::init @ 0x73b5fa
// > MessageThreadsPage::init @ 0x750f0c
// > MessageThreadsPage::init @ 0x750f2a
// > cocos2d::CCDrawNode::init @ 0x7cc1c8
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0x7e0448
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0x7e046a
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x7e6960
// > cocos2d::CCTextureAtlas::initWithTexture @ 0x800168
//
// 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::CCNotificationCenter::addObserver(
cocos2d::CCArray **a1,
cocos2d::CCObject *a2,
int a3,
int a4,
char *a5,
int a6)
{
int result; // r0
cocos2d::CCObject *v9; // r5
result = cocos2d::CCNotificationCenter::observerExisted((cocos2d::CCNotificationCenter *)a1, a2, a5);
if ( !result )
{
v9 = (cocos2d::CCObject *)operator new(0x4Cu);
cocos2d::CCNotificationObserver::CCNotificationObserver((int)v9, (int)a2, a3, a4, a5, a6);
cocos2d::CCObject::autorelease(v9);
return cocos2d::CCArray::addObject(a1[13], v9);
}
return result;
}