//
// cocos2d::CCNotificationCenter::postNotification from 0x100287b80 to 0x100287cc6 (326 bytes)
//
// 1 xrefs:
// > cocos2d::CCNotificationCenter::postNotification_1 @ 0x100287d27
//
// 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::postNotification(
cocos2d::CCNotificationCenter *a1,
const char *a2,
cocos2d::CCObject *a3)
{
unsigned int v5; // eax
__int64 v6; // r12
unsigned int *v7; // rax
_QWORD *v8; // r13
_QWORD *v9; // r15
const char *v10; // rsi
_QWORD *v11; // r12
__int64 v12; // rax
cocos2d::CCScriptEngineManager *v13; // rax
__int64 v14; // rdi
_QWORD *v15; // rdi
char *v16; // rax
cocos2d::CCObject *v17; // rsi
v5 = sub_100720070(a1[1].__vftable);
v6 = sub_10071FD00(v5);
sub_100720050(v6, a1[1].__vftable);
if ( v6 )
{
v7 = *(unsigned int **)(v6 + 56);
if ( *v7 )
{
v8 = *((_QWORD **)v7 + 2);
v9 = &v8[*v7 - 1];
do
{
v11 = (_QWORD *)*v8;
if ( !*v8 )
break;
if ( (cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD))(*v11 + 104LL))(*v8) != a3 )
{
v12 = (*(__int64 (__fastcall **)(_QWORD *))(*v11 + 104LL))(v11);
if ( a3 )
{
if ( v12 )
continue;
}
}
v10 = (const char *)(*(__int64 (__fastcall **)(_QWORD *))(*v11 + 96LL))(v11);
if ( !strcmp(a2, v10) )
{
if ( (*(unsigned int (__fastcall **)(_QWORD *))(*v11 + 112LL))(v11) )
{
v13 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, cocos2d::CCNotificationCenter *, const char *))(**(_QWORD **)v13 + 88LL))(
*(_QWORD *)v13,
a1,
a2);
}
else
{
v14 = v11[7];
if ( v14 )
{
v15 = (_QWORD *)(v11[9] + v14);
v16 = (char *)v11[8];
if ( a3 )
{
if ( ((unsigned __int8)v16 & 1) != 0 )
v16 = *(char **)&v16[*v15 - 1];
v17 = a3;
}
else
{
if ( ((unsigned __int8)v16 & 1) != 0 )
v16 = *(char **)&v16[*v15 - 1];
v17 = (cocos2d::CCObject *)v11[11];
}
((void (__fastcall *)(_QWORD *, cocos2d::CCObject *))v16)(v15, v17);
}
}
}
++v8;
}
while ( v8 <= v9 );
}
}
}