//
// cocos2d::CCNotificationCenter::removeAllObservers from 0x1800970e0 to 0x180097186 (166 bytes)
//
// 4 xrefs:
// > ??> @ 0x180147308
// > ??> @ 0x18014733c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c07f8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:10 +0000
//
__int64 __fastcall cocos2d::CCNotificationCenter::removeAllObservers(
cocos2d::CCNotificationCenter *this,
struct cocos2d::CCObject *a2)
{
struct cocos2d::CCArray *v4; // rax
__int64 v5; // rbx
cocos2d::CCArray *v6; // rbp
unsigned int *v7; // rbx
__int64 v8; // rax
struct cocos2d::CCObject **v9; // rbx
struct cocos2d::CCObject **i; // rsi
struct cocos2d::CCObject *v11; // rdi
v4 = cocos2d::CCArray::create();
v5 = *((_QWORD *)this + 7);
v6 = v4;
if ( v5 )
{
v7 = *(unsigned int **)(v5 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((struct cocos2d::CCObject ***)v7 + 2);
for ( i = &v9[v8 - 1]; v9 <= i; ++v9 )
{
v11 = *v9;
if ( !*v9 )
break;
if ( (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 72LL))(*v9) == a2 )
cocos2d::CCArray::addObject(v6, v11);
}
}
}
cocos2d::CCArray::removeObjectsInArray(*((cocos2d::CCArray **)this + 7), v6);
return cocos2d::CCArray::count(v6);
}