//
// ObjectManager::instance from 0x100876060 to 0x1008760f3 (147 bytes)
//
// 7 xrefs:
// > CCAnimatedSprite::initWithType @ 0x10033b62a
// > CCAnimatedSprite::loadType @ 0x10033b99a
// > LoadingLayer::loadAssets @ 0x10038cba7
// > SpriteAnimationManager::createAnimations @ 0x1008001f7
// > SpriteAnimationManager::createAnimations @ 0x10080022a
// > SpriteAnimationManager::createAnimations @ 0x100800252
// > SpriteAnimationManager::loadAnimations @ 0x1008011c8
//
// 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 12:36:53 +0000
//
__int64 ObjectManager::instance()
{
__int64 result; // rax
_OWORD *v1; // rbx
__int64 v2; // rax
_QWORD *v3; // rax
result = qword_100BE6B38;
if ( !qword_100BE6B38 )
{
v1 = operator new(0x150u);
cocos2d::CCNode::CCNode((__int64)v1);
*(_QWORD *)v1 = off_100BA1350;
v1[20] = 0;
qword_100BE6B38 = (__int64)v1;
v2 = cocos2d::CCDictionary::createWithContentsOfFile("objectDefinitions.plist");
*((_QWORD *)v1 + 40) = v2;
cocos2d::CCObject::retain(v2);
ObjectManager::loadCopiedAnimations(v1);
ObjectManager::loadCopiedSets(v1);
v3 = cocos2d::CCDictionary::create();
*((_QWORD *)v1 + 41) = v3;
cocos2d::CCObject::retain((__int64)v3);
return qword_100BE6B38;
}
return result;
}