//
// cocos2d::CCNotificationCenter::removeObserver from 0xd8e930 to 0xd8ea00 (208 bytes)
//
// 16 xrefs:
// > LevelBrowserLayer::~LevelBrowserLayer @ 0x7f5548
// > LevelBrowserLayer::~LevelBrowserLayer @ 0x7f555c
// > InfoLayer::~InfoLayer @ 0x909760
// > MessagesProfilePage::~MessagesProfilePage @ 0xa499c4
// > FRequestProfilePage::~FRequestProfilePage @ 0xa4bfdc
// > ShaderLayer::~ShaderLayer @ 0xb28fb8
// > AccountReviewPopup::~AccountReviewPopup @ 0xc438c0
// > ReportQueuePopup::~ReportQueuePopup @ 0xc4fc10
// > MessageThreadsPage::~MessageThreadsPage @ 0xc62548
// > MessageThreadsPage::~MessageThreadsPage @ 0xc6255c
// > cocos2d::CCDrawNode::~CCDrawNode @ 0xd4bb98
// > cocos2d::CCRenderTexture::~CCRenderTexture @ 0xd6a3d8
// > cocos2d::CCRenderTexture::~CCRenderTexture @ 0xd6a3ec
// > cocos2d::CCParticleSystemQuad::~CCParticleSystemQuad @ 0xd73588
// > cocos2d::CCTextureAtlas::~CCTextureAtlas @ 0xda4314
// > ??> @ 0xdbca0
//
// This function is hookable on this platform (idp: arm, 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 13:08:17 +0000
//
__int64 __fastcall cocos2d::CCNotificationCenter::removeObserver(__int64 this, cocos2d::CCObject *a2, const char *a3)
{
__int64 v3; // x3
unsigned int *v4; // x4
cocos2d::CCObject **v5; // x19
__int64 v6; // x20
char *v7; // x21
cocos2d::CCObject *v8; // x20
__int64 v11; // x24
const char *v12; // x0
v3 = *(_QWORD *)(this + 56);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
if ( *v4 )
{
v5 = *((cocos2d::CCObject ***)v4 + 2);
v6 = 8LL * *v4 - 8;
v7 = (char *)v5 + v6;
if ( v5 <= (cocos2d::CCObject **)((char *)v5 + v6) )
{
v8 = *v5;
v11 = this;
if ( *v5 )
{
while ( 1 )
{
v12 = (const char *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v8 + 96LL))(v8);
this = strcmp(v12, a3);
if ( !(_DWORD)this )
{
this = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v8 + 80LL))(v8);
if ( a2 == (cocos2d::CCObject *)this )
break;
}
if ( v7 >= (char *)++v5 )
{
v8 = *v5;
if ( *v5 )
continue;
}
return this;
}
return cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v11 + 56), v8);
}
}
}
}
return this;
}