//
// cocos2d::CCNotificationCenter::removeObserver from 0x180097190 to 0x180097236 (166 bytes)
//
// 4 xrefs:
// > ??> @ 0x1801472c0
// > ??> @ 0x1801472f4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0834
//
// 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 11:22:10 +0000
//
void __fastcall cocos2d::CCNotificationCenter::removeObserver(
cocos2d::CCNotificationCenter *this,
struct cocos2d::CCObject *a2,
const char *a3)
{
__int64 v3; // rbx
unsigned int *v7; // rbx
__int64 v8; // rax
struct cocos2d::CCObject **v9; // rbx
struct cocos2d::CCObject **i; // rsi
struct cocos2d::CCObject *v11; // rdi
const char *v12; // rax
v3 = *((_QWORD *)this + 7);
if ( v3 )
{
v7 = *(unsigned int **)(v3 + 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;
v12 = (const char *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 88LL))(*v9);
if ( !strcmp(v12, a3)
&& (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 72LL))(v11) == a2 )
{
cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 7), v11);
return;
}
}
}
}
}