//
// cocos2d::CCNotificationCenter::postNotification from 0x180096ee0 to 0x180096ff9 (281 bytes)
//
// 4 xrefs:
// > ??> @ 0x180147440
// > ??> @ 0x180147474
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c07a4
//
// 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::postNotification(
cocos2d::CCArray **this,
const char *a2,
struct cocos2d::CCObject *a3)
{
unsigned int v6; // eax
struct cocos2d::CCArray *v7; // rdi
unsigned int *v8; // rdi
__int64 v9; // rax
_QWORD *v10; // rdi
_QWORD *i; // rbp
__int64 v12; // rbx
const char *v13; // rax
struct cocos2d::CCScriptEngineManager *v14; // rax
__int64 v15; // rcx
struct cocos2d::CCObject *v16; // rdx
v6 = cocos2d::CCArray::count(*(this + 7));
v7 = cocos2d::CCArray::createWithCapacity(v6);
cocos2d::CCArray::addObjectsFromArray(v7, *(this + 7));
if ( v7 )
{
v8 = *((unsigned int **)v7 + 7);
v9 = *v8;
if ( (_DWORD)v9 )
{
v10 = *((_QWORD **)v8 + 2);
for ( i = &v10[v9 - 1]; v10 <= i; ++v10 )
{
v12 = *v10;
if ( !*v10 )
break;
if ( (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v12 + 96LL))(*v10) == a3
|| !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 96LL))(v12)
|| !a3 )
{
v13 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 88LL))(v12);
if ( !strcmp(a2, v13) )
{
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v12 + 104LL))(v12) )
{
v14 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, cocos2d::CCArray **, const char *))(**(_QWORD **)v14 + 80LL))(
*(_QWORD *)v14,
this,
a2);
}
else
{
v15 = *(_QWORD *)(v12 + 56);
if ( v15 )
{
v16 = a3;
if ( !a3 )
v16 = *(struct cocos2d::CCObject **)(v12 + 80);
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(v12 + 64))(v15, v16);
}
}
}
}
}
}
}
}