//
// ObjectManager::loadCopiedAnimations from 0x10024d1cc to 0x10024d3b4 (488 bytes)
//
// 1 xrefs:
// > ObjectManager::init @ 0x10024d1a4
//
// 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 __fastcall ObjectManager::loadCopiedAnimations(ObjectManager *a1)
{
cocos2d::CCArray *v2; // x20
unsigned int i; // w21
cocos2d::CCString *v4; // x0
cocos2d::CCDictionary *m_objectDefinitions; // x24
char *CString; // x0
__int64 v7; // x24
__int64 v8; // x0
cocos2d::CCDictionary *v9; // x24
cocos2d::CCArray *v10; // x25
unsigned int j; // w26
cocos2d::CCString *v12; // x27
char *v13; // x0
__int64 v14; // x28
__int64 v15; // x0
cocos2d::CCString *v16; // x28
const char *v17; // x0
cocos2d::CCDictionary *GlobalAnimCopy; // x28
char *v19; // x0
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v21; // [xsp+1Fh] [xbp-51h]
v2 = cocos2d::CCDictionary::allKeys(a1->m_objectDefinitions);
if ( (unsigned int)sub_10024A36C((__int64)v2) )
{
for ( i = 0; i < (unsigned int)sub_10024A36C((__int64)v2); ++i )
{
v4 = (cocos2d::CCString *)sub_10024A388((__int64)v2, i);
m_objectDefinitions = a1->m_objectDefinitions;
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(__p, CString);
v7 = cocos2d::CCDictionary::objectForKey_1(m_objectDefinitions, __p);
if ( v21 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "animations");
v8 = cocos2d::CCDictionary::objectForKey_1(v7, __p);
v9 = (cocos2d::CCDictionary *)v8;
if ( v21 < 0 )
{
operator delete(__p[0]);
if ( !v9 )
continue;
}
else if ( !v8 )
{
continue;
}
v10 = cocos2d::CCDictionary::allKeys(v9);
if ( (unsigned int)sub_10024A36C((__int64)v10) )
{
for ( j = 0; j < (unsigned int)sub_10024A36C((__int64)v10); ++j )
{
v12 = (cocos2d::CCString *)sub_10024A388((__int64)v10, j);
v13 = (char *)cocos2d::CCString::getCString(v12);
sub_100009900(__p, v13);
v14 = cocos2d::CCDictionary::objectForKey_1(v9, __p);
if ( v21 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "copy");
v15 = cocos2d::CCDictionary::objectForKey_1(v14, __p);
v16 = (cocos2d::CCString *)v15;
if ( v21 < 0 )
{
operator delete(__p[0]);
if ( v16 )
{
LABEL_17:
v17 = cocos2d::CCString::getCString(v16);
GlobalAnimCopy = ObjectManager::getGlobalAnimCopy(a1, v17);
v19 = (char *)cocos2d::CCString::getCString(v12);
sub_100009900(__p, v19);
cocos2d::CCDictionary::setObject_1(v9, GlobalAnimCopy, __p);
if ( v21 < 0 )
operator delete(__p[0]);
}
}
else if ( v15 )
{
goto LABEL_17;
}
}
}
}
}
}