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