//
// cocos2d::CCNotificationCenter::postNotification from 0x7f5d50 to 0x7f5dee (158 bytes)
//
// 20 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit @ 0x3941cc
// > GJThreadCell::onToggleSelect @ 0x423da6
// > LevelCell::onToggle @ 0x423dd2
// > GJRequestCell::onToggle @ 0x423dfe
// > GJMessageCell::onToggle @ 0x423e2a
// > CommentCell::onBulkSelectToggle @ 0x423e6a
// > GameLevelManager::onSendThreadMessageCompleted @ 0x4c51ec
// > GameLevelManager::onUpdateThreadCompleted @ 0x4c93da
// > LocalLevelManager::postFileResults @ 0x542b08
// > AccountReviewPopup::onClose @ 0x731f96
// > AutoBackupPopup::onRestore @ 0x73cd56
// > ThreadViewPopup::onClose @ 0x745d8a
// > InvitesPopup::~InvitesPopup @ 0x748e10
// > ThreadOptionsPopup::threadUpdateFinished @ 0x7530d6
// > RenameThreadPopup::threadUpdateFinished @ 0x753e62
// > MemberListPopup::threadUpdateFinished @ 0x755ca6
// > NewThreadPopup::threadSendFinished @ 0x75ceea
// > AccountBanPopup::onClose @ 0x7624ce
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnPause @ 0x7ed5da
// > cocos2d::CCNotificationCenter::postNotification @ 0x7f5df0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:08 +0000
//
int __fastcall cocos2d::CCNotificationCenter::postNotification(
cocos2d::CCArray **this,
const char *a2,
cocos2d::CCObject *a3)
{
cocos2d::CCArray *v6; // r0
unsigned int v7; // r1
cocos2d::CCArray *v8; // r4
int result; // r0
_DWORD *v10; // r3
cocos2d::CCNotificationObserver **v11; // r5
cocos2d::CCNotificationObserver **v12; // r6
cocos2d::CCNotificationObserver *v13; // r4
cocos2d::CCNotificationObserver *v14; // t1
const char *v15; // r0
cocos2d::CCScriptEngineManager *v16; // r0
_DWORD *v17; // r0
v6 = (cocos2d::CCArray *)cocos2d::CCArray::count(*(this + 13));
v8 = cocos2d::CCArray::createWithCapacity(v6, v7);
result = cocos2d::CCArray::addObjectsFromArray(v8, *(this + 13));
if ( v8 )
{
v10 = *((_DWORD **)v8 + 13);
if ( *v10 )
{
v11 = (cocos2d::CCNotificationObserver **)v10[3];
v12 = &v11[*v10] + 0x3FFFFFFF;
while ( v11 <= v12 )
{
v14 = *v11++;
v13 = v14;
if ( !v14 )
break;
if ( a3 != (cocos2d::CCObject *)(*(int (__fastcall **)(cocos2d::CCNotificationObserver *))(*(_DWORD *)v13 + 52))(v13) )
{
result = (*(int (__fastcall **)(cocos2d::CCNotificationObserver *))(*(_DWORD *)v13 + 52))(v13);
if ( result )
{
if ( a3 )
continue;
}
}
v15 = (const char *)(*(int (__fastcall **)(cocos2d::CCNotificationObserver *))(*(_DWORD *)v13 + 48))(v13);
result = strcmp(a2, v15);
if ( !result )
{
v16 = (cocos2d::CCScriptEngineManager *)(*(int (__fastcall **)(cocos2d::CCNotificationObserver *))(*(_DWORD *)v13 + 56))(v13);
if ( v16 )
{
v17 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager(v16);
result = (*(int (__fastcall **)(_DWORD, cocos2d::CCArray **, const char *))(*(_DWORD *)*v17 + 44))(
*v17,
this,
a2);
}
else
{
result = cocos2d::CCNotificationObserver::performSelector(v13, a3);
}
}
}
}
}
return result;
}