//
// cocos2d::extension::CCInvocation::invoke from 0x1003d7da0 to 0x1003d7dd2 (50 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0x100351aac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::extension::CCInvocation::invoke(cocos2d::extension::CCInvocation *a1, cocos2d::CCObject *a2)
{
cocos2d::CCObject *m_target; // rdi
void (__cdecl *ptr)(cocos2d::CCObject *, cocos2d::CCControlEvent); // rcx
_QWORD *v5; // rdi
m_target = a1->m_target;
if ( m_target )
{
ptr = a1->m_action.ptr;
if ( ptr )
{
v5 = (cocos2d::CCObject_vtbl **)((char *)&m_target->__vftable + a1->m_action.adj);
if ( ((unsigned __int8)ptr & 1) != 0 )
ptr = *(void (__cdecl **)(cocos2d::CCObject *, cocos2d::CCControlEvent))((char *)ptr + *v5 - 1);
((void (__fastcall *)(_QWORD *, cocos2d::CCObject *, _QWORD))ptr)(v5, a2, a1->m_controlEvent);
}
}
}