//
// cocos2d::CCNotificationCenter::unregisterScriptObserver from 0x100273040 to 0x1002730e0 (160 bytes)
//
// 0 xrefs:
//
// 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::unregisterScriptObserver(__int64 a1, unsigned int *a2, const char *a3)
{
unsigned int *v3; // rax
_QWORD *v5; // r13
_QWORD *v6; // r15
__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);
}
++v5;
}
while ( v5 <= v6 );
}
}
return (int)v3;
}