//
// cocos2d::CCScriptEngineManager::setScriptEngine from 0x1800b6990 to 0x1800b69c0 (48 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8ba4
//
// 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::CCScriptEngineManager::setScriptEngine(
cocos2d::CCScriptEngineManager *this,
struct cocos2d::CCScriptEngineProtocol *a2)
{
void (__fastcall ***v4)(_QWORD, __int64); // rcx
v4 = *(void (__fastcall ****)(_QWORD, __int64))this;
if ( v4 )
(**v4)(v4, 1);
*(_QWORD *)this = a2;
}