//
// cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x7f5ab2 to 0x7f5b0e (92 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:08 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCNotificationCenter::unregisterScriptObserver(
cocos2d::CCObject *this,
cocos2d::CCObject *a2,
const char *a3)
{
cocos2d::CCObject *v3; // r7
int v4; // r3
_DWORD *v7; // r3
cocos2d::CCObject **v8; // r5
cocos2d::CCObject **v9; // r6
cocos2d::CCObject *v10; // r4
cocos2d::CCObject *v11; // t1
const char *v12; // r0
v3 = this;
v4 = *((_DWORD *)this + 13);
if ( v4 )
{
v7 = *(_DWORD **)(v4 + 52);
if ( *v7 )
{
v8 = (cocos2d::CCObject **)v7[3];
v9 = &v8[*v7] + 0x3FFFFFFF;
while ( v8 <= v9 )
{
v11 = *v8++;
v10 = v11;
if ( !v11 )
break;
v12 = (const char *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v10 + 48))(v10);
this = (cocos2d::CCObject *)strcmp(v12, a3);
if ( !this )
{
this = (cocos2d::CCObject *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v10 + 40))(v10);
if ( a2 == this )
this = (cocos2d::CCObject *)cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)v3 + 13), v10, 1);
}
}
}
}
return this;
}