//
// cocos2d::CCNotificationCenter::addObserver from 0x5eae04 to 0x5eae52 (78 bytes)
//
// 5 xrefs:
// > cocos2d::CCDrawNode::init @ 0x5c4eb4
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0x5d809c
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0x5d80be
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x5de110
// > cocos2d::CCTextureAtlas::initWithTexture @ 0x5f45e4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCNotificationCenter::addObserver(
cocos2d::CCNotificationCenter *a1,
cocos2d::CCObject *a2,
cocos2d::SEL_CallFuncO a3,
const char *a4,
cocos2d::CCObject *a5)
{
cocos2d::CCObject *v7; // r5
cocos2d::CCObject *v8; // r2
if ( !cocos2d::CCNotificationCenter::observerExisted(a1, a2, a4) )
{
v7 = (cocos2d::CCObject *)operator new(0x4Cu);
cocos2d::CCNotificationObserver::CCNotificationObserver((int)v7, (int)a2, (int)a3.ptr, a3.adj, (char *)a4, (int)a5);
cocos2d::CCObject::autorelease(v7);
cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[1].__vftable, (cocos2d::_ccArray *)v7, v8);
}
}