//
// sub_1007AADA0 from 0x1007aada0 to 0x1007aadf7 (87 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
//
cocos2d::CCScriptEngineManager *__fastcall sub_1007AADA0(__int64 a1)
{
*(_QWORD *)a1 = off_100991BE0;
if ( (*(_BYTE *)(a1 + 56) & 1) != 0 )
{
**(_BYTE **)(a1 + 72) = 0;
*(_QWORD *)(a1 + 64) = 0;
if ( (*(_BYTE *)(a1 + 56) & 1) != 0 )
operator delete(*(void **)(a1 + 72));
return cocos2d::CCObject::dCCObject((cocos2d::CCObject *)a1);
}
else
{
*(_WORD *)(a1 + 56) = 0;
return cocos2d::CCObject::dCCObject((cocos2d::CCObject *)a1);
}
}