//
// cocos2d::CCCallFuncN::execute from 0x100890660 to 0x1008906b7 (87 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ba7a80
//
// 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:37:04 +0000
//
__int64 __fastcall cocos2d::CCCallFuncN::execute(__int64 a1)
{
__int64 result; // rax
_QWORD *v3; // rdi
_QWORD *v4; // rax
result = *(_QWORD *)(a1 + 104);
if ( result )
{
v3 = (_QWORD *)(*(_QWORD *)(a1 + 112) + *(_QWORD *)(a1 + 88));
if ( (result & 1) != 0 )
result = *(_QWORD *)(*v3 + result - 1);
result = ((__int64 (__fastcall *)(_QWORD *, _QWORD))result)(v3, *(_QWORD *)(a1 + 64));
}
if ( *(_DWORD *)(a1 + 96) )
{
v4 = cocos2d::CCScriptEngineManager::sharedManager();
return (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(*(_QWORD *)*v4 + 96LL))(*v4, a1, *(_QWORD *)(a1 + 64));
}
return result;
}