//
// GameManager::switchCustomObjects from 0x323060 to 0x32315a (250 bytes)
//
// 1 xrefs:
// > GameManager::reorderKey @ 0x323318
//
// 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 GameManager::switchCustomObjects(GameManager *a1, int a2, int a3)
{
cocos2d::CCDictionary *m_customObjectDict; // r8
cocos2d::CCString *v7; // r0
char *CString; // r0
cocos2d::CCObject *v9; // r8
cocos2d::CCDictionary *v10; // r11
cocos2d::CCString *v11; // r0
char *v12; // r0
cocos2d::CCObject *v13; // r11
cocos2d::CCString *v14; // r0
char *v15; // r0
cocos2d::CCDictionary *v16; // r5
cocos2d::CCString *v17; // r0
char *v18; // r0
cocos2d::CCDictionary *v19; // [sp+4h] [bp-8h]
std::string v20; // [sp+10h] [bp+4h] BYREF
m_customObjectDict = a1->m_customObjectDict;
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v7);
sub_776584((int)&v20, CString);
v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(m_customObjectDict, &v20);
sub_774008(&v20);
v10 = a1->m_customObjectDict;
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3);
v12 = (char *)cocos2d::CCString::getCString(v11);
sub_776584((int)&v20, v12);
v13 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v10, &v20);
sub_774008(&v20);
cocos2d::CCObject::retain(v9);
v19 = a1->m_customObjectDict;
v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
v15 = (char *)cocos2d::CCString::getCString(v14);
sub_776584((int)&v20, v15);
cocos2d::CCDictionary::setObject((int)v19, v13);
sub_774008(&v20);
v16 = a1->m_customObjectDict;
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3);
v18 = (char *)cocos2d::CCString::getCString(v17);
sub_776584((int)&v20, v18);
cocos2d::CCDictionary::setObject((int)v16, v9);
sub_774008(&v20);
cocos2d::CCObject::release(v9);
}