//
// cocos2d::CCCallFunc::execute from 0xd2f290 to 0xd2f30c (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x5eea0
// > ??> @ 0x1513360
//
// 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:19 +0000
//
__int64 __fastcall cocos2d::CCCallFunc::execute(cocos2d::CCCallFunc *this)
{
void (__fastcall *v2)(__int64); // x2
__int64 v3; // x0
__int64 result; // x0
_QWORD *v5; // x0
v2 = *((void (__fastcall **)(__int64))this + 13);
v3 = *((_QWORD *)this + 14);
if ( v2 )
{
if ( (v3 & 1) == 0 )
{
v2(*((_QWORD *)this + 11) + (v3 >> 1));
goto LABEL_4;
}
}
else if ( (v3 & 1) == 0 )
{
goto LABEL_4;
}
(*(void (__fastcall **)(__int64))((char *)v2 + *(_QWORD *)(*((_QWORD *)this + 11) + (v3 >> 1))))(*((_QWORD *)this + 11) + (v3 >> 1));
LABEL_4:
result = *((unsigned int *)this + 24);
if ( (_DWORD)result )
{
v5 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager((cocos2d::CCScriptEngineManager *)result);
return (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCCallFunc *, _QWORD))(*(_QWORD *)*v5 + 96LL))(*v5, this, 0);
}
return result;
}