//
// cocos2d::CCNotificationCenter::removeAllObservers from 0x100272ea0 to 0x100272f48 (168 bytes)
//
// 0 xrefs:
//
// 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 12:27:38 +0000
//
__int64 __fastcall cocos2d::CCNotificationCenter::removeAllObservers(__int64 a1, __int64 a2)
{
__int64 v3; // rbx
__int64 v4; // rdi
unsigned int *v5; // rax
_QWORD *v6; // r13
_QWORD *v7; // r14
__int64 v8; // r12
__int64 v10; // [rsp+0h] [rbp-30h]
v3 = sub_1007FE900(a1);
v4 = *(_QWORD *)(a1 + 56);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v10 = a1;
v6 = *((_QWORD **)v5 + 2);
v7 = &v6[*v5 - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
if ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 80LL))(*v6) == a2 )
sub_1007FEBF0(v3, v8);
++v6;
}
while ( v6 <= v7 );
v4 = *(_QWORD *)(v10 + 56);
}
}
else
{
v4 = 0;
}
sub_1007FF170(v4, v3);
return sub_1007FEF90(v3);
}