//
// GameManager::switchCustomObjects from 0x100319538 to 0x100319698 (352 bytes)
//
// 1 xrefs:
// > GameManager::reorderKey @ 0x10031951c
//
// 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 GameManager::switchCustomObjects(GameManager *a1, int a2, int a3)
{
cocos2d::CCDictionary *m_customObjectDict; // x19
cocos2d::CCString *v7; // x0
char *CString; // x0
cocos2d::CCObject *v9; // x19
cocos2d::CCDictionary *v10; // x23
cocos2d::CCString *v11; // x0
char *v12; // x0
__int64 v13; // x23
cocos2d::CCDictionary *v14; // x24
cocos2d::CCString *v15; // x0
char *v16; // x0
cocos2d::CCDictionary *v17; // x21
cocos2d::CCString *v18; // x0
char *v19; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v21; // [xsp+1Fh] [xbp-31h]
m_customObjectDict = a1->m_customObjectDict;
v7 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v7);
sub_100009900(__p, CString);
v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey_1(m_customObjectDict, __p);
if ( v21 < 0 )
operator delete(__p[0]);
v10 = a1->m_customObjectDict;
v11 = (cocos2d::CCString *)sub_100268F4C("%i", a3);
v12 = (char *)cocos2d::CCString::getCString(v11);
sub_100009900(__p, v12);
v13 = cocos2d::CCDictionary::objectForKey_1(v10, __p);
if ( v21 < 0 )
operator delete(__p[0]);
cocos2d::CCObject::retain(v9);
v14 = a1->m_customObjectDict;
v15 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
v16 = (char *)cocos2d::CCString::getCString(v15);
sub_100009900(__p, v16);
cocos2d::CCDictionary::setObject_1(v14, v13, __p);
if ( v21 < 0 )
operator delete(__p[0]);
v17 = a1->m_customObjectDict;
v18 = (cocos2d::CCString *)sub_100268F4C("%i", a3);
v19 = (char *)cocos2d::CCString::getCString(v18);
sub_100009900(__p, v19);
cocos2d::CCDictionary::setObject_1(v17, v9, __p);
if ( v21 < 0 )
operator delete(__p[0]);
cocos2d::CCObject::release(v9);
}