//
// cocos2d::CCNotificationCenter::getObserverHandlerByName from 0x180093440 to 0x1800934f5 (181 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b64b0
//
// 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
//
__int64 __fastcall cocos2d::CCNotificationCenter::getObserverHandlerByName(
cocos2d::CCNotificationCenter *this,
const char *a2)
{
__int64 v3; // rax
__int64 v4; // rax
unsigned int *v5; // rbx
__int64 v6; // rax
_QWORD *v7; // rbx
_QWORD *i; // rbp
__int64 v9; // rdi
__int64 v10; // rax
const char *v11; // r8
int v12; // ecx
int v13; // edx
if ( a2 )
{
v3 = -1;
do
++v3;
while ( a2[v3] );
if ( v3 )
{
v4 = *((_QWORD *)this + 7);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD **)v5 + 2);
for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )
{
v9 = *v7;
if ( !*v7 )
break;
v10 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v9 + 88LL))(*v7);
v11 = &a2[-v10];
do
{
v12 = (unsigned __int8)v11[v10];
v13 = *(unsigned __int8 *)v10 - v12;
if ( v13 )
break;
++v10;
}
while ( v12 );
if ( !v13 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 104LL))(v9);
}
}
}
}
}
return 0xFFFFFFFFLL;
}