//
// ObjectManager::instance from 0x6ae678 to 0x6ae6f4 (124 bytes)
//
// 8 xrefs:
// > CCAnimatedSprite::loadType @ 0x68cb2c
// > CCAnimatedSprite::initWithType @ 0x68d4c8
// > SpriteAnimationManager::createAnimations @ 0x6b06f0
// > SpriteAnimationManager::createAnimations @ 0x6b0750
// > SpriteAnimationManager::createAnimations @ 0x6b0774
// > SpriteAnimationManager::loadAnimations @ 0x6b1620
// > LoadingLayer::loadAssets @ 0x6edff4
// > ??> @ 0xdfb10
//
// This function is hookable on this platform (idp: arm, 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:50:49 +0000
//
__int64 __fastcall ObjectManager::instance(ObjectManager *this)
{
__int64 result; // x0
cocos2d::CCNode *v2; // x20
result = qword_155BEF0;
if ( !qword_155BEF0 )
{
v2 = (cocos2d::CCNode *)operator new(0x150u);
cocos2d::CCNode::CCNode(v2);
qword_155BEF0 = (__int64)v2;
*((_QWORD *)v2 + 40) = 0;
*((_QWORD *)v2 + 41) = 0;
*(_QWORD *)v2 = &off_141BC70;
ObjectManager::init(v2, (const char *)&off_141BC70);
return qword_155BEF0;
}
return result;
}