//
// cocos2d::CCNotificationCenter::observerExisted from 0x7f59a0 to 0x7f59f6 (86 bytes)
//
// 2 xrefs:
// > cocos2d::CCNotificationCenter::addObserver @ 0x7f5c84
// > cocos2d::CCNotificationCenter::registerScriptObserver @ 0x7f5cca
//
// 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::observerExisted(
cocos2d::CCNotificationCenter *this,
cocos2d::CCObject *a2,
const char *a3)
{
int v4; // r3
_DWORD *v7; // r2
int *v8; // r4
int *v9; // r5
int v10; // r6
int v11; // t1
const char *v12; // r0
v4 = *((_DWORD *)this + 13);
if ( v4 )
{
v7 = *(_DWORD **)(v4 + 52);
if ( *v7 )
{
v8 = (int *)v7[3];
v9 = &v8[*v7 - 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;
}