//
// cocos2d::extension::CCInvocation::invoke from 0xd122f0 to 0xd12340 (80 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0xd0bc3c
// > ??> @ 0x97ac8
//
// 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:07:03 +0000
//
__int64 __fastcall cocos2d::extension::CCInvocation::invoke(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x4
char *v3; // x3
__int64 v4; // x2
v2 = *(_QWORD *)(this + 72);
if ( v2 )
{
v3 = *(char **)(this + 56);
v4 = *(_QWORD *)(this + 64);
if ( v3 )
{
if ( (v4 & 1) == 0 )
return ((__int64 (__fastcall *)(__int64, cocos2d::CCObject *, _QWORD))v3)(
v2 + (v4 >> 1),
a2,
*(unsigned int *)(this + 80));
return (*(__int64 (__fastcall **)(__int64, cocos2d::CCObject *, _QWORD))&v3[*(_QWORD *)(v2 + (v4 >> 1))])(
v2 + (v4 >> 1),
a2,
*(unsigned int *)(this + 80));
}
if ( (v4 & 1) != 0 )
return (*(__int64 (__fastcall **)(__int64, cocos2d::CCObject *, _QWORD))&v3[*(_QWORD *)(v2 + (v4 >> 1))])(
v2 + (v4 >> 1),
a2,
*(unsigned int *)(this + 80));
}
return this;
}