//
// cocos2d::CCNotificationCenter::addObserver from 0xb1e340 to 0xb1e3e8 (168 bytes)
//
// 6 xrefs:
// > cocos2d::CCDrawNode::init @ 0xad91a0
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0xaf9580
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0xaf95a4
// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0xb0398c
// > cocos2d::CCTextureAtlas::initWithTexture @ 0xb330c0
// > ??> @ 0x682c8
//
// 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)
{
void (__cdecl *ptr)(cocos2d::CCObject *); // x20
size_t adj; // x21
bool v9; // w0
const char *v10; // x4
cocos2d::CCObject *v11; // x23
cocos2d::CCObject *v12; // x2
cocos2d::CCObject *v14; // [xsp+40h] [xbp+40h]
char *v16; // [xsp+48h] [xbp+48h]
ptr = a3.ptr;
adj = a3.adj;
v9 = cocos2d::CCNotificationCenter::observerExisted(a1, a2, a4);
v10 = a4;
if ( !v9 )
{
v14 = a5;
v16 = (char *)v10;
v11 = (cocos2d::CCObject *)operator new(0x68u);
cocos2d::CCNotificationObserver::CCNotificationObserver(
(__int64)v11,
(__int64)a2,
(__int64)ptr,
adj,
v16,
(__int64)v14);
cocos2d::CCObject::autorelease(v11);
cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[1].__vftable, (cocos2d::_ccArray *)v11, v12);
}
}