//
// cocos2d::CCNotificationCenter::observerExisted from 0x100272c40 to 0x100272cd0 (144 bytes)
//
// 0 xrefs:
//
// 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 12:27:38 +0000
//
int __fastcall cocos2d::CCNotificationCenter::observerExisted(__int64 a1, __int64 a2, const char *a3)
{
__int64 v3; // rax
unsigned int *v4; // rax
_QWORD *v6; // r12
unsigned __int64 v7; // r13
__int64 v8; // r15
const char *v9; // rax
v3 = *(_QWORD *)(a1 + 56);
if ( !v3 )
return 0;
v4 = *(unsigned int **)(v3 + 56);
if ( *v4 )
{
v6 = *((_QWORD **)v4 + 2);
v7 = (unsigned __int64)&v6[*v4 - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
if ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 80LL))(*v6) == a2 )
{
v9 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 96LL))(v8);
if ( !strcmp(v9, a3) )
return 1;
}
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
return 0;
}