//
// cocos2d::CCNotificationCenter::getObserverHandlerByName from 0x5ead0e to 0x5ead60 (82 bytes)
//
// 0 xrefs:
//
// 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
//
int cocos2d::CCNotificationCenter::getObserverHandlerByName(cocos2d::CCNotificationCenter *a1, const char *a2)
{
cocos2d::CCNotificationCenter_vtbl *v3; // r3
bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // r2
int *v5; // r5
int *v6; // r4
int v7; // r6
int v8; // t1
const char *v9; // r0
if ( a2 )
{
if ( *a2 )
{
v3 = a1[1].__vftable;
if ( v3 )
{
isEqual = v3[1].isEqual;
if ( *(_DWORD *)isEqual )
{
v5 = *((int **)isEqual + 3);
v6 = &v5[*(_DWORD *)isEqual - 1];
while ( v5 <= v6 )
{
v8 = *v5++;
v7 = v8;
if ( !v8 )
break;
v9 = (const char *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 48))(v7);
if ( !strcmp(v9, a2) )
return (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 56))(v7);
}
}
}
}
}
return -1;
}