//
// cocos2d::CCNotificationObserver::performSelector from 0xd8ef44 to 0xd8efcc (136 bytes)
//
// 2 xrefs:
// > cocos2d::CCNotificationCenter::postNotification @ 0xd8f0e4
// > ??> @ 0x81f28
//
// This function is hookable on this platform (idp: arm, 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 13:08:17 +0000
//
_QWORD *__fastcall cocos2d::CCNotificationObserver::performSelector(_QWORD *this, cocos2d::CCObject *a2)
{
__int64 v2; // x3
__int64 v3; // x2
__int64 v4; // x1
v2 = *(this + 7);
if ( v2 )
{
if ( a2 )
{
v3 = *(this + 9);
if ( (v3 & 1) != 0 )
return (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v2 + (v3 >> 1)) + *(this + 8)))(v2 + (v3 >> 1));
else
return (_QWORD *)((__int64 (__fastcall *)(__int64))*(this + 8))(v2 + (v3 >> 1));
}
else
{
v4 = *(this + 9);
if ( (v4 & 1) != 0 )
return (_QWORD *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v2 + (v4 >> 1)) + *(this + 8)))(
v2 + (v4 >> 1),
*(this + 11));
else
return (_QWORD *)((__int64 (__fastcall *)(__int64, _QWORD))*(this + 8))(v2 + (v4 >> 1), *(this + 11));
}
}
return this;
}