//
// cocos2d::CCNotificationCenter::registerScriptObserver from 0x7f5cba to 0x7f5d12 (88 bytes)
//
// 0 xrefs:
//
// 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::registerScriptObserver(
cocos2d::CCArray **this,
cocos2d::CCObject *a2,
int a3,
const char *a4)
{
int result; // r0
cocos2d::CCObject *v9; // r4
result = cocos2d::CCNotificationCenter::observerExisted((cocos2d::CCNotificationCenter *)this, a2, a4);
if ( !result )
{
v9 = (cocos2d::CCObject *)operator new(0x4Cu);
cocos2d::CCNotificationObserver::CCNotificationObserver((int)v9, (int)a2, 0, 0, a4, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v9 + 60))(v9, a3);
cocos2d::CCObject::autorelease(v9);
return cocos2d::CCArray::addObject(*(this + 13), v9);
}
return result;
}