//
// cocos2d::extension::CCInvocation::invoke from 0x1003c5030 to 0x1003c5062 (50 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0x10033d1bc
//
// This function is hookable on this platform (idp: pc, 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 12:29:34 +0000
//
__int64 __fastcall cocos2d::extension::CCInvocation::invoke(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v3; // rdi
char *v4; // rcx
_QWORD *v5; // rdi
result = a1;
v3 = *(_QWORD *)(a1 + 72);
if ( v3 )
{
v4 = *(char **)(result + 56);
if ( v4 )
{
v5 = (_QWORD *)(*(_QWORD *)(result + 64) + v3);
if ( ((unsigned __int8)v4 & 1) != 0 )
v4 = *(char **)&v4[*v5 - 1];
return ((__int64 (__fastcall *)(_QWORD *, __int64, _QWORD))v4)(v5, a2, *(unsigned int *)(result + 80));
}
}
return result;
}