//
// cocos2d::CCNotificationCenter::observerExisted from 0x5eaba0 to 0x5eabf6 (86 bytes)
//
// 2 xrefs:
// > cocos2d::CCNotificationCenter::addObserver @ 0x5eae1c
// > cocos2d::CCNotificationCenter::registerScriptObserver @ 0x5eae62
//
// 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
//
bool cocos2d::CCNotificationCenter::observerExisted(
cocos2d::CCNotificationCenter *a1,
cocos2d::CCObject *a2,
const char *a3)
{
cocos2d::CCNotificationCenter_vtbl *v3; // r3
bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // r2
int *v8; // r4
int *v9; // r5
int v10; // r6
int v11; // t1
const char *v12; // r0
v3 = a1[1].__vftable;
if ( v3 )
{
isEqual = v3[1].isEqual;
if ( *(_DWORD *)isEqual )
{
v8 = *((int **)isEqual + 3);
v9 = &v8[*(_DWORD *)isEqual - 1];
while ( v8 <= v9 )
{
v11 = *v8++;
v10 = v11;
if ( !v11 )
break;
if ( a2 == (cocos2d::CCObject *)(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 40))(v10) )
{
v12 = (const char *)(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 48))(v10);
if ( !strcmp(v12, a3) )
return 1;
}
}
}
}
return 0;
}