//
// ObjectManager::loadCopiedSets from 0x2f21d4 to 0x2f2314 (320 bytes)
//
// 1 xrefs:
// > ObjectManager::init @ 0x2f2340
//
// 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::loadCopiedSets(ObjectManager *a1)
{
unsigned int v2; // r6
cocos2d::CCArray *v3; // r9
cocos2d::CCString *v4; // r0
cocos2d::CCDictionary *m_objectDefinitions; // r8
char *CString; // r0
cocos2d::CCDictionary *v7; // r8
cocos2d::CCString *v8; // r11
cocos2d::CCString *v9; // r10
cocos2d::CCDictionary *v10; // r8
char *v11; // r0
const std::string *v12; // r1
cocos2d::CCString *v13; // r0
cocos2d::CCDictionary *v14; // r10
cocos2d::CCDictionary *v15; // r8
char *v16; // r0
cocos2d::CCString *v17; // [sp+4h] [bp-28h]
std::string v18; // [sp+20h] [bp-Ch] BYREF
v2 = 0;
v3 = cocos2d::CCDictionary::allKeys(a1->m_objectDefinitions);
while ( v2 < cocos2d::CCArray::count(v3) )
{
v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v3, v2);
m_objectDefinitions = a1->m_objectDefinitions;
v17 = v4;
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)&v18, CString);
v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(m_objectDefinitions, &v18);
sub_774008(&v18);
sub_776584((int)&v18, "copy");
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v7, &v18);
sub_774008(&v18);
sub_776584((int)&v18, "replaceTag");
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v7, &v18);
sub_774008(&v18);
if ( v9 )
{
if ( v8 )
{
v10 = a1->m_objectDefinitions;
v11 = (char *)cocos2d::CCString::getCString(v8);
sub_776584((int)&v18, v11);
v7 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v10, &v18);
sub_774008(&v18);
}
sub_776584((int)&v18, "xyz");
v13 = (cocos2d::CCString *)cocos2d::CCString::create((cocos2d::CCString *)&v18, v12);
v14 = ObjectManager::replaceAllOccurencesOfString(v13, v9, v7);
sub_774008(&v18);
v15 = a1->m_objectDefinitions;
v16 = (char *)cocos2d::CCString::getCString(v17);
sub_776584((int)&v18, v16);
cocos2d::CCDictionary::setObject((int)v15, v14);
sub_774008(&v18);
}
++v2;
}
}