//
// cocos2d::CCNotificationCenter::getObserverHandlerByName from 0x100273290 to 0x100273318 (136 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
//
__int64 __fastcall cocos2d::CCNotificationCenter::getObserverHandlerByName(__int64 a1, const char *a2)
{
__int64 v2; // rax
unsigned int *v3; // rax
_QWORD *v4; // r15
unsigned __int64 v5; // r12
__int64 v6; // r14
const char *v7; // rax
if ( a2 )
{
if ( *a2 )
{
v2 = *(_QWORD *)(a1 + 56);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((_QWORD **)v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
v6 = *v4;
if ( !*v4 )
break;
v7 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v6 + 96LL))(*v4);
if ( !strcmp(v7, a2) )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 112LL))(v6);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
}
}
return 0xFFFFFFFFLL;
}