//
// cocos2d::CCNotificationCenter::removeObserver from 0x1800939d0 to 0x180093a98 (200 bytes)
//
// 4 xrefs:
// > ??> @ 0x18013e008
// > ??> @ 0x18013e03c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6594
//
// 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::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
__int64 v12; // rax
const char *v13; // r8
int v14; // ecx
int v15; // edx
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 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v11->__vftable[1].isEqual)(*v9);
v13 = &a3[-v12];
do
{
v14 = (unsigned __int8)v13[v12];
v15 = *(unsigned __int8 *)v12 - v14;
if ( v15 )
break;
++v12;
}
while ( v14 );
if ( !v15
&& (struct cocos2d::CCObject *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v11->__vftable[1].copyWithZone)(v11) == a2 )
{
cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 7), v11);
return;
}
}
}
}
}