//
// ObjectManager::instance from 0x100795660 to 0x1007956f3 (147 bytes)
//
// 7 xrefs:
// > CCAnimatedSprite::initWithType @ 0x10034ff1a
// > CCAnimatedSprite::loadType @ 0x10035028a
// > LoadingLayer::loadAssets @ 0x1003a3587
// > SpriteAnimationManager::createAnimations @ 0x1007212d7
// > SpriteAnimationManager::createAnimations @ 0x10072130a
// > SpriteAnimationManager::createAnimations @ 0x100721332
// > SpriteAnimationManager::loadAnimations @ 0x1007222a8
//
// 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
//
ObjectManager *__fastcall ObjectManager::instance()
{
ObjectManager *result; // rax
ObjectManager *v1; // rbx
cocos2d::CCDictionary *v2; // rax
cocos2d::CCDictionary *v3; // rax
result = (ObjectManager *)qword_1009A3BA8;
if ( !qword_1009A3BA8 )
{
v1 = (ObjectManager *)operator new(0x150u);
cocos2d::CCNode::CCNode((__int64)v1);
v1->__vftable = (ObjectManager_vtbl *)off_10098CDD8;
*(_OWORD *)&v1->m_objectDefinitions = 0;
qword_1009A3BA8 = (__int64)v1;
v2 = cocos2d::CCDictionary::createWithContentsOfFile("objectDefinitions.plist");
v1->m_objectDefinitions = v2;
cocos2d::CCObject::retain(v2);
ObjectManager::loadCopiedAnimations(v1);
ObjectManager::loadCopiedSets(v1);
v3 = cocos2d::CCDictionary::create();
v1->m_loadedAnimations = v3;
cocos2d::CCObject::retain(v3);
return (ObjectManager *)qword_1009A3BA8;
}
return result;
}