//
// cocos2d::CCNotificationObserver::performSelector from 0x7f5d12 to 0x7f5d50 (62 bytes)
//
// 1 xrefs:
// > cocos2d::CCNotificationCenter::postNotification @ 0x7f5de4
//
// 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::CCNotificationObserver::performSelector(
cocos2d::CCNotificationObserver *this,
cocos2d::CCObject *a2)
{
cocos2d::CCNotificationObserver *v2; // r4
int result; // r0
int v4; // r2
int (__fastcall *v5)(int, cocos2d::CCObject *); // r3
bool v6; // zf
int v7; // r2
int v8; // r0
int v9; // r2
v2 = this;
result = *((_DWORD *)this + 13);
if ( result )
{
v4 = *((_DWORD *)v2 + 15);
v5 = *((int (__fastcall **)(int, cocos2d::CCObject *))v2 + 14);
if ( a2 )
{
v6 = (*((_DWORD *)v2 + 15) & 1) == 0;
v7 = v4 >> 1;
if ( (*((_DWORD *)v2 + 15) & 1) != 0 )
v2 = *(cocos2d::CCNotificationObserver **)(result + v7);
v8 = result + v7;
if ( !v6 )
v5 = *(int (__fastcall **)(int, cocos2d::CCObject *))((char *)v5 + (_DWORD)v2);
}
else
{
v9 = v4 >> 1;
if ( (*((_DWORD *)v2 + 15) & 1) != 0 )
a2 = *(cocos2d::CCObject **)(result + v9);
v8 = result + v9;
if ( (*((_DWORD *)v2 + 15) & 1) != 0 )
v5 = *(int (__fastcall **)(int, cocos2d::CCObject *))((char *)v5 + (_DWORD)a2);
a2 = *((cocos2d::CCObject **)v2 + 17);
}
return v5(v8, a2);
}
return result;
}