//
// cocos2d::CCNotificationCenter::removeAllObservers from 0x100287940 to 0x1002879e8 (168 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 __fastcall cocos2d::CCNotificationCenter::removeAllObservers(
cocos2d::CCNotificationCenter *a1,
cocos2d::CCObject *a2)
{
__int64 v3; // rbx
cocos2d::CCNotificationCenter_vtbl *v4; // rdi
bool (__cdecl *canEncode)(cocos2d::CCObject *__hidden); // rax
_QWORD *v6; // r13
_QWORD *v7; // r14
__int64 v8; // r12
cocos2d::CCNotificationCenter *v10; // [rsp+0h] [rbp-30h]
v3 = sub_10071F9E0(a1, a2);
v4 = a1[1].__vftable;
if ( v4 )
{
canEncode = v4->canEncode;
if ( *(_DWORD *)canEncode )
{
v10 = a1;
v6 = *((_QWORD **)canEncode + 2);
v7 = &v6[*(unsigned int *)canEncode - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
if ( (cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 80LL))(*v6) == a2 )
sub_10071FCD0(v3, v8);
++v6;
}
while ( v6 <= v7 );
v4 = v10[1].__vftable;
}
}
else
{
v4 = nullptr;
}
sub_100720250(v4, v3);
return sub_100720070(v3);
}