//
// cocos2d::CCNotificationCenter::removeAllObservers from 0x5eac54 to 0x5eacb2 (94 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::removeAllObservers(cocos2d::CCNotificationCenter *a1, cocos2d::CCObject *a2)
{
cocos2d::CCArray *v4; // r0
cocos2d::CCObject *isEqual; // r2
cocos2d::CCNotificationCenter_vtbl *v6; // r3
cocos2d::CCArray *v7; // r6
cocos2d::_ccArray **m_nTag; // r4
cocos2d::_ccArray **v10; // r5
cocos2d::_ccArray *v11; // r9
cocos2d::_ccArray *v12; // t1
v4 = cocos2d::CCArray::create((cocos2d::CCArray *)a1);
v6 = a1[1].__vftable;
v7 = v4;
if ( v6 )
{
isEqual = (cocos2d::CCObject *)v6[1].isEqual;
if ( isEqual->__vftable )
{
m_nTag = (cocos2d::_ccArray **)isEqual->m_nTag;
v10 = &m_nTag[(int)&isEqual->__vftable[26843545].update + 3];
while ( m_nTag <= v10 )
{
v12 = *m_nTag++;
v11 = v12;
if ( !v12 )
break;
if ( a2 == (cocos2d::CCObject *)(*(int (__fastcall **)(cocos2d::_ccArray *))(v11->num + 40))(v11) )
cocos2d::CCArray::addObject(v7, v11, isEqual);
}
}
}
cocos2d::CCArray::removeObjectsInArray((cocos2d::CCArray *)a1[1].__vftable, v7, (cocos2d::_ccArray *)isEqual);
return cocos2d::CCArray::count(v7);
}