//
// sub_100598EE0 from 0x100598ee0 to 0x100598f28 (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009708e0
//
// 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
//
cocos2d::CCScriptEngineManager *__fastcall sub_100598EE0(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
*(_QWORD *)a1 = off_1009708D8;
v2 = *(cocos2d::CCObject **)(a1 + 104);
if ( v2 )
cocos2d::CCObject::release(v2);
*(_QWORD *)a1 = off_100970878;
if ( (*(_BYTE *)(a1 + 80) & 1) != 0 )
operator delete(*(void **)(a1 + 96));
return cocos2d::CCObject::dCCObject((cocos2d::CCObject *)a1);
}