//
// ObjectManager::instance from 0x14007bec0 to 0x14007bf45 (133 bytes)
//
// 10 xrefs:
// > CCAnimatedSprite::initWithType @ 0x140043a9c
// > CCAnimatedSprite::loadType @ 0x140043e96
// > SpriteAnimationManager::loadAnimations @ 0x14008547f
// > SpriteAnimationManager::createAnimations @ 0x140085f00
// > SpriteAnimationManager::createAnimations @ 0x140085fb6
// > SpriteAnimationManager::createAnimations @ 0x140086076
// > GJRobotSprite::init @ 0x1403ac8c4
// > LoadingLayer::loadAssets @ 0x140469ebf
// > AnimatedGameObject::init @ 0x1406447f9
// > ??> @ 0x140911de0
//
// 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:25:53 +0000
//
__int64 ObjectManager::instance()
{
__int64 result; // rax
cocos2d::CCNode *v1; // [rsp+30h] [rbp+8h]
result = qword_14090BF78;
if ( !qword_14090BF78 )
{
v1 = (cocos2d::CCNode *)operator new(0x150u);
cocos2d::CCNode::CCNode(v1);
*(_QWORD *)v1 = &ObjectManager::`vftable';
*((_QWORD *)v1 + 40) = 0;
*((_QWORD *)v1 + 41) = 0;
qword_14090BF78 = (__int64)v1;
ObjectManager::init(v1);
return qword_14090BF78;
}
return result;
}