//
// cocos2d::extension::CCInvocation::invoke from 0x1002b0924 to 0x1002b095c (56 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0x10023aa28
//
// 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 11:02:20 +0000
//
__int64 __fastcall cocos2d::extension::CCInvocation::invoke(__int64 result, __int64 a2)
{
__int64 v2; // x8
unsigned __int64 v3; // x3
__int64 v4; // x10
_QWORD *v5; // x8
v2 = *(_QWORD *)(result + 72);
if ( v2 )
{
v3 = *(_QWORD *)(result + 56);
v4 = *(_QWORD *)(result + 64);
if ( v4 & 1 | v3 )
{
v5 = (_QWORD *)(v2 + (v4 >> 1));
if ( (v4 & 1) != 0 )
v3 = *(_QWORD *)(*v5 + (unsigned int)v3);
return ((__int64 (__fastcall *)(_QWORD *, __int64, _QWORD))v3)(v5, a2, *(unsigned int *)(result + 80));
}
}
return result;
}