//
// cocos2d::CCNotificationCenter::addObserver from 0x100272cd0 to 0x100272db6 (230 bytes)
//
// 9 xrefs:
// > MessagesProfilePage::init @ 0x100212378
// > LevelBrowserLayer::init @ 0x1004814c9
// > LevelBrowserLayer::init @ 0x100481866
// > FRequestProfilePage::init @ 0x10086f8c3
// > InfoLayer::setupBulkUI @ 0x1008955f1
// > MessageThreadsPage::init @ 0x100929695
// > MessageThreadsPage::init @ 0x1009296b8
// > ReportQueuePopup::init @ 0x1009691b8
// > sub_1009948B0 @ 0x1009958e3
//
// 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::addObserver(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
const char *a5,
__int64 a6)
{
__int64 v7; // rax
unsigned int *v8; // rax
_QWORD *v9; // r13
_QWORD *v10; // rbx
__int64 v11; // r12
const char *v12; // rax
int result; // eax
void *v14; // r12
v7 = *(_QWORD *)(a1 + 56);
if ( v7 )
{
v8 = *(unsigned int **)(v7 + 56);
if ( *v8 )
{
v9 = *((_QWORD **)v8 + 2);
v10 = &v9[*v8 - 1];
do
{
v11 = *v9;
if ( !*v9 )
break;
if ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v11 + 80LL))(*v9) == a2 )
{
v12 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 96LL))(v11);
result = strcmp(v12, a5);
if ( !result )
return result;
}
++v9;
}
while ( v9 <= v10 );
}
}
v14 = operator new(0x68u);
cocos2d::CCNotificationObserver::CCNotificationObserver(v14, a2, a3, a4, a5, a6);
cocos2d::CCObject::autorelease(v14);
return sub_1007FEBF0(*(_QWORD *)(a1 + 56), v14);
}