//
// cocos2d::extension::CCInvocation::invoke from 0x7aaeec to 0x7aaf1c (48 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0x7a6ade
//
// 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:00:02 +0000
//
int __fastcall cocos2d::extension::CCInvocation::invoke(cocos2d::extension::CCInvocation *this, cocos2d::CCObject *a2)
{
int v2; // r5
int result; // r0
int (__fastcall *v5)(int, cocos2d::CCObject *, int); // r4
int v6; // r3
bool v7; // zf
int v8; // r3
int v9; // r2
int v10; // r0
result = *((_DWORD *)this + 15);
if ( result )
{
v5 = *((int (__fastcall **)(int, cocos2d::CCObject *, int))this + 13);
v6 = *((_DWORD *)this + 14);
if ( v5 || (v2 = v6 << 31, (v6 & 1) != 0) )
{
v7 = (*((_DWORD *)this + 14) & 1) == 0;
v8 = v6 >> 1;
v9 = *((_DWORD *)this + 16);
if ( !v7 )
v2 = *(_DWORD *)(result + v8);
v10 = result + v8;
if ( !v7 )
v5 = *(int (__fastcall **)(int, cocos2d::CCObject *, int))((char *)v5 + v2);
return v5(v10, a2, v9);
}
}
return result;
}