// // cocos2d::CCNotificationCenter::removeAllObservers from 0x180093920 to 0x1800939c6 (166 bytes) // // 4 xrefs: // > @ 0x18013e050 // > @ 0x18013e084 // > @ 0x1801438a8 // > @ 0x1801b6558 // // 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 // __int64 __fastcall cocos2d::CCNotificationCenter::removeAllObservers( cocos2d::CCNotificationCenter *this, struct cocos2d::CCObject *a2) { struct cocos2d::CCArray *v4; // rax __int64 v5; // rbx cocos2d::CCArray *v6; // rbp unsigned int *v7; // rbx __int64 v8; // rax struct cocos2d::CCObject **v9; // rbx struct cocos2d::CCObject **i; // rsi struct cocos2d::CCObject *v11; // rdi v4 = cocos2d::CCArray::create(); v5 = *((_QWORD *)this + 7); v6 = v4; if ( v5 ) { v7 = *(unsigned int **)(v5 + 56); v8 = *v7; if ( (_DWORD)v8 ) { v9 = *((struct cocos2d::CCObject ***)v7 + 2); for ( i = &v9[v8 - 1]; v9 <= i; ++v9 ) { v11 = *v9; if ( !*v9 ) break; if ( (struct cocos2d::CCObject *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v11->__vftable[1].copyWithZone)(*v9) == a2 ) cocos2d::CCArray::addObject(v6, v11); } } } cocos2d::CCArray::removeObjectsInArray(*((cocos2d::CCArray **)this + 7), v6); return cocos2d::CCArray::count(v6); }