//
// cocos2d::CCScriptEngineManager::purgeSharedManager from 0x1800b6940 to 0x1800b6989 (73 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8b98
//
// 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::purgeSharedManager()
{
_QWORD *v0; // rbx
v0 = qword_1801A9B00;
if ( qword_1801A9B00 )
{
if ( *(_QWORD *)qword_1801A9B00 )
{
(***(void (__fastcall ****)(_QWORD, __int64))qword_1801A9B00)(*(_QWORD *)qword_1801A9B00, 1);
*v0 = 0;
}
j_j_free_0(v0);
qword_1801A9B00 = nullptr;
}
}