//
// ObjectManager::loadCopiedAnimations from 0x3d6a20 to 0x3d6b96 (374 bytes)
//
// 1 xrefs:
// > ObjectManager::init @ 0x3d745e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:44 +0000
//
unsigned int __fastcall ObjectManager::loadCopiedAnimations(cocos2d::CCDictionary **this)
{
unsigned int v2; // r7
cocos2d::CCArray *v3; // r10
unsigned int result; // r0
cocos2d::CCString *v5; // r0
int v6; // r5
const char *CString; // r0
const char *v8; // r6
size_t v9; // r0
int v10; // r5
cocos2d::CCDictionary *v11; // r8
unsigned int v12; // r6
cocos2d::CCArray *v13; // r11
const char *v14; // r0
size_t v15; // r0
const char *v16; // r0
const char *v17; // r0
size_t v18; // r0
cocos2d::CCString *v19; // [sp+4h] [bp-28h]
cocos2d::CCString *v20; // [sp+4h] [bp-28h]
cocos2d::CCString *v21; // [sp+14h] [bp-18h]
cocos2d::CCString *v22; // [sp+14h] [bp-18h]
cocos2d::CCString *v23; // [sp+14h] [bp-18h]
cocos2d::CCObject *GlobalAnimCopy; // [sp+14h] [bp-18h]
int v25; // [sp+18h] [bp-14h] BYREF
int v26; // [sp+1Ch] [bp-10h]
int v27; // [sp+20h] [bp-Ch]
v2 = 0;
v3 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*(this + 66));
while ( 1 )
{
result = cocos2d::CCArray::count(v3);
if ( v2 >= result )
break;
v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v3, v2);
v6 = (int)*(this + 66);
CString = (const char *)cocos2d::CCString::getCString(v5);
v25 = 0;
v26 = 0;
v27 = 0;
v8 = CString;
v9 = strlen(CString);
std::string::__init(&v25, v8, v9);
v10 = cocos2d::CCDictionary::objectForKey(v6, &v25);
std::string::~string((int)&v25);
v25 = 0;
v26 = 0;
v27 = 0;
std::string::__init(&v25, "animations", 0xAu);
v11 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v10, &v25);
std::string::~string((int)&v25);
if ( v11 )
{
v12 = 0;
v13 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v11);
while ( v12 < cocos2d::CCArray::count(v13) )
{
v19 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v13, v12);
v14 = (const char *)cocos2d::CCString::getCString(v19);
v25 = 0;
v26 = 0;
v27 = 0;
v21 = (cocos2d::CCString *)v14;
v15 = strlen(v14);
std::string::__init(&v25, v21, v15);
v22 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v11, &v25);
std::string::~string((int)&v25);
v25 = 0;
v26 = 0;
v27 = 0;
std::string::__init(&v25, "copy", 4u);
v23 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v22, &v25);
std::string::~string((int)&v25);
if ( v23 )
{
v16 = (const char *)cocos2d::CCString::getCString(v23);
GlobalAnimCopy = (cocos2d::CCObject *)ObjectManager::getGlobalAnimCopy((ObjectManager *)this, v16);
v17 = (const char *)cocos2d::CCString::getCString(v19);
v25 = 0;
v26 = 0;
v27 = 0;
v20 = (cocos2d::CCString *)v17;
v18 = strlen(v17);
std::string::__init(&v25, v20, v18);
cocos2d::CCDictionary::setObject((int)v11, GlobalAnimCopy);
std::string::~string((int)&v25);
}
++v12;
}
}
++v2;
}
return result;
}