//
// cocos2d::CCScriptEngineManager::purgeSharedManager from 0x1800ba500 to 0x1800ba549 (73 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2eb0
//
// 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 11:22:23 +0000
//
void __fastcall cocos2d::CCScriptEngineManager::purgeSharedManager()
{
_QWORD *v0; // rbx
v0 = qword_1801B3B78;
if ( qword_1801B3B78 )
{
if ( *(_QWORD *)qword_1801B3B78 )
{
(***(void (__fastcall ****)(_QWORD, __int64))qword_1801B3B78)(*(_QWORD *)qword_1801B3B78, 1);
*v0 = 0;
}
j_j_free_0(v0);
qword_1801B3B78 = nullptr;
}
}