//
// cocos2d::CCNotificationCenter::removeObserver from 0x100272de0 to 0x100272e9c (188 bytes)
//
// 9 xrefs:
// > sub_100211AE0 @ 0x100211bf7
// > LevelBrowserLayer::dLevelBrowserLayer @ 0x100480320
// > LevelBrowserLayer::dLevelBrowserLayer @ 0x100480337
// > FRequestProfilePage::dFRequestProfilePage @ 0x10086ee05
// > InfoLayer::dInfoLayer @ 0x1008913f9
// > MessageThreadsPage::dMessageThreadsPage @ 0x100927e14
// > MessageThreadsPage::dMessageThreadsPage @ 0x100927e2b
// > sub_100968A10 @ 0x100968ae6
// > sub_1009942A0 @ 0x10099442b
//
// 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 12:27:38 +0000
//
int __fastcall cocos2d::CCNotificationCenter::removeObserver(__int64 a1, unsigned int *a2, const char *a3)
{
unsigned int *v3; // rax
_QWORD *v5; // r13
_QWORD *v6; // r14
__int64 v7; // r12
const char *v8; // rax
v3 = *(unsigned int **)(a1 + 56);
if ( v3 )
{
v3 = *((unsigned int **)v3 + 7);
if ( *v3 )
{
v5 = *((_QWORD **)v3 + 2);
v6 = &v5[*v3 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
v8 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 96LL))(*v5);
LODWORD(v3) = strcmp(v8, a3);
if ( !(_DWORD)v3 )
{
v3 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 80LL))(v7);
if ( v3 == a2 )
{
LODWORD(v3) = sub_1007FF140(*(_QWORD *)(a1 + 56), v7, 1);
return (int)v3;
}
}
++v5;
}
while ( v5 <= v6 );
}
}
return (int)v3;
}