//
// cocos2d::CCScriptEngineManager::setScriptEngine from 0x10031bf60 to 0x10031bf83 (35 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall cocos2d::CCScriptEngineManager::setScriptEngine(__int64 *a1, __int64 a2)
{
__int64 v3; // rdi
__int64 result; // rax
v3 = *a1;
if ( v3 )
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 8LL))(v3);
*a1 = a2;
return result;
}