//
// cocos2d::CCNotificationCenter::registerScriptObserver from 0xb1e3e8 to 0xb1e48c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0xbf790
//
// 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; // x20
cocos2d::CCObject *v9; // x2
if ( !cocos2d::CCNotificationCenter::observerExisted(a1, a2, a4) )
{
v8 = (cocos2d::CCObject *)operator new(0x68u);
cocos2d::CCNotificationObserver::CCNotificationObserver((__int64)v8, (__int64)a2, 0, 0, (char *)a4, 0);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v8->__vftable[1].update)(v8, (unsigned int)a3);
cocos2d::CCObject::autorelease(v8);
cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[1].__vftable, (cocos2d::_ccArray *)v8, v9);
}
}