//
// ObjectManager::setup from 0x2f1c20 to 0x2f1d12 (242 bytes)
//
// 1 xrefs:
// > LoadingLayer::loadAssets @ 0x30b9b2
//
// 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
//
void ObjectManager::setup(ObjectManager *a1)
{
unsigned int v1; // r8
cocos2d::CCArray *v2; // r9
cocos2d::CCString *v3; // r0
char *CString; // r0
_BOOL4 v5; // r3
std::string v6; // r1
_BOOL4 v7; // [sp+4h] [bp-20h]
char *v8; // [sp+Ch] [bp-18h] BYREF
_BYTE v9[4]; // [sp+10h] [bp-14h] BYREF
_BYTE v10[4]; // [sp+14h] [bp-10h] BYREF
char v11; // [sp+18h] [bp-Ch] BYREF
v1 = 0;
v2 = cocos2d::CCDictionary::allKeys(a1->m_objectDefinitions);
while ( v1 < cocos2d::CCArray::count(v2) )
{
v3 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v2, v1);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_776584((int)&v8, CString);
sub_776584((int)v9, v8);
sub_776584((int)v10, "GlobalAnimations");
if ( sub_774DBC(v9, v10) )
v5 = sub_7748A0((int)&v8, "xyz") == -1;
else
v5 = 0;
v7 = v5;
sub_774008(v10);
sub_774008(v9);
if ( v7 )
{
sub_776584((int)&v11, v8);
SpriteAnimationManager::createAnimations((SpriteAnimationManager *)&v11, v6);
sub_774008(&v11);
}
++v1;
sub_774008(&v8);
}
}