//
// cocos2d::CCNotificationCenter::registerScriptObserver from 0x5eae52 to 0x5eaeaa (88 bytes)
//
// 0 xrefs:
//
// 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::registerScriptObserver(
cocos2d::CCNotificationCenter *a1,
cocos2d::CCObject *a2,
int a3,
const char *a4)
{
cocos2d::CCObject *v8; // r4
cocos2d::CCObject *v9; // r2
if ( !cocos2d::CCNotificationCenter::observerExisted(a1, a2, a4) )
{
v8 = (cocos2d::CCObject *)operator new(0x4Cu);
cocos2d::CCNotificationObserver::CCNotificationObserver((int)v8, (int)a2, 0, 0, (char *)a4, 0);
((void (__fastcall *)(cocos2d::CCObject *, int))v8->__vftable[1].update)(v8, a3);
cocos2d::CCObject::autorelease(v8);
cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[1].__vftable, (cocos2d::_ccArray *)v8, v9);
}
}