//
// cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x5eacb2 to 0x5ead0e (92 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
//
void cocos2d::CCNotificationCenter::unregisterScriptObserver(
cocos2d::CCNotificationCenter *a1,
cocos2d::CCObject *a2,
const char *a3)
{
cocos2d::CCNotificationCenter_vtbl *v4; // r3
bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // r3
cocos2d::_ccArray **v8; // r5
cocos2d::_ccArray **v9; // r6
cocos2d::_ccArray *v10; // r4
cocos2d::_ccArray *v11; // t1
const char *v12; // r0
bool v13; // r3
v4 = a1[1].__vftable;
if ( v4 )
{
isEqual = v4[1].isEqual;
if ( *(_DWORD *)isEqual )
{
v8 = *((cocos2d::_ccArray ***)isEqual + 3);
v9 = &v8[*(_DWORD *)isEqual] + 0x3FFFFFFF;
while ( v8 <= v9 )
{
v11 = *v8++;
v10 = v11;
if ( !v11 )
break;
v12 = (const char *)(*(int (__fastcall **)(cocos2d::_ccArray *))(v10->num + 48))(v10);
if ( !strcmp(v12, a3)
&& a2 == (cocos2d::CCObject *)(*(int (__fastcall **)(cocos2d::_ccArray *))(v10->num + 40))(v10) )
{
cocos2d::CCArray::removeObject((cocos2d::CCArray *)a1[1].__vftable, v10, 1, v13);
}
}
}
}
}