//
// cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x100287ae0 to 0x100287b80 (160 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 __fastcall cocos2d::CCNotificationCenter::unregisterScriptObserver(
cocos2d::CCNotificationCenter *a1,
cocos2d::CCObject *a2,
const char *a3)
{
cocos2d::CCNotificationCenter_vtbl *v3; // rax
bool (__cdecl *canEncode)(cocos2d::CCObject *__hidden); // rax
_QWORD *v6; // r13
_QWORD *v7; // r15
__int64 v8; // r12
const char *v9; // rax
v3 = a1[1].__vftable;
if ( v3 )
{
canEncode = v3->canEncode;
if ( *(_DWORD *)canEncode )
{
v6 = *((_QWORD **)canEncode + 2);
v7 = &v6[*(unsigned int *)canEncode - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
v9 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 96LL))(*v6);
if ( !strcmp(v9, a3)
&& (cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 80LL))(v8) == a2 )
{
sub_100720220(a1[1].__vftable, v8, 1);
}
++v6;
}
while ( v6 <= v7 );
}
}
}