//
// cocos2d::CCNotificationCenter::addObserver from 0x180096bb0 to 0x180096c40 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0744
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:10 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCNotificationCenter::addObserver(
cocos2d::CCArray **a1,
struct cocos2d::CCObject *a2,
__int64 a3,
const char *a4,
__int64 a5)
{
__int64 v9; // rax
cocos2d::CCObject *v10; // rbx
if ( !cocos2d::CCNotificationCenter::observerExisted((cocos2d::CCNotificationCenter *)a1, a2, a4) )
{
v9 = sub_1800E4AC0(0x60u);
if ( v9 )
v10 = (cocos2d::CCObject *)cocos2d::CCNotificationObserver::CCNotificationObserver(v9, (__int64)a2, a3, a4, a5);
else
v10 = nullptr;
if ( v10 )
{
cocos2d::CCObject::autorelease(v10);
cocos2d::CCArray::addObject(a1[7], v10);
}
}
}