//
// cocos2d::CCNotificationCenter::observerExisted from 0x180096d10 to 0x180096dac (156 bytes)
//
// 4 xrefs:
// > cocos2d::CCNotificationCenter::addObserver @ 0x180096bd3
// > cocos2d::CCNotificationCenter::registerScriptObserver @ 0x180097059
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c075c
//
// 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
//
char __fastcall cocos2d::CCNotificationCenter::observerExisted(
cocos2d::CCNotificationCenter *this,
struct cocos2d::CCObject *a2,
const char *a3)
{
__int64 v3; // rbx
unsigned int *v6; // rbx
__int64 v7; // rax
_QWORD *v8; // rbx
_QWORD *i; // rsi
__int64 v10; // rdi
const char *v11; // rax
v3 = *((_QWORD *)this + 7);
if ( v3 )
{
v6 = *(unsigned int **)(v3 + 56);
v7 = *v6;
if ( (_DWORD)v7 )
{
v8 = *((_QWORD **)v6 + 2);
for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )
{
v10 = *v8;
if ( !*v8 )
break;
if ( (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v10 + 72LL))(*v8) == a2 )
{
v11 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 88LL))(v10);
if ( !strcmp(v11, a3) )
return 1;
}
}
}
}
return 0;
}