//
// cocos2d::CCNotificationCenter::getObserverHandlerByName from 0x7f5b0e to 0x7f5b60 (82 bytes)
//
// 0 xrefs:
//
// 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::getObserverHandlerByName(
cocos2d::CCNotificationCenter *this,
const char *a2)
{
int v3; // r3
_DWORD *v4; // r2
int *v5; // r5
int *v6; // r4
int v7; // r6
int v8; // t1
const char *v9; // r0
if ( a2 )
{
if ( *a2 )
{
v3 = *((_DWORD *)this + 13);
if ( v3 )
{
v4 = *(_DWORD **)(v3 + 52);
if ( *v4 )
{
v5 = (int *)v4[3];
v6 = &v5[*v4 - 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;
}