//
// GameLevelManager::responseToDict from 0x4c3680 to 0x4c378a (266 bytes)
//
// 20 xrefs:
// > GameLevelManager::onDownloadEditorSoundCompleted @ 0x4c38d8
// > GameLevelManager::createAndGetEditorSoundConfigs @ 0x4c39e0
// > GameLevelManager::onGetTopArtistsCompleted @ 0x4c3bea
// > GameLevelManager::createAndGetMapPacks @ 0x4c4212
// > GameLevelManager::createAndGetLevelLists @ 0x4c5f9a
// > GameLevelManager::onGetNotificationsCompleted @ 0x4c8caa
// > GameLevelManager::onDownloadUserMessageCompleted @ 0x4cca44
// > GameLevelManager::createAndGetLevels @ 0x4cfa6a
// > GameLevelManager::createAndGetScores @ 0x4d1e4a
// > GameLevelManager::onGetGJUserInfoCompleted @ 0x4d252c
// > GameLevelManager::onGetUserMessagesCompleted @ 0x4d27c0
// > GameLevelManager::createAndGetCommentsFull @ 0x4d29bc
// > GameLevelManager::createAndGetCommentsFull @ 0x4d29dc
// > GameLevelManager::createAndGetCommentsFull @ 0x4d2a52
// > GameLevelManager::storeThreadManifest @ 0x4d3c14
// > GameLevelManager::onGetUserSearchCompleted @ 0x4d4ad4
// > GameLevelManager::onGetFriendRequestsCompleted @ 0x4d4d80
// > GameLevelManager::onGetUserListCompleted @ 0x4d50aa
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x4d9da2
// > GJMultiplayerManager::addComment @ 0x6418ac
//
// 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:50:26 +0000
//
int __fastcall GameLevelManager::responseToDict(cocos2d::CCDictionary *a1, int a2)
{
cocos2d::CCDictionary *v2; // r4
int v4; // r0
char v5; // r3
int v6; // r8
size_t v7; // r0
cocos2d::CCArray *v8; // r0
size_t v9; // r0
cocos2d::CCArray *v10; // r6
unsigned int i; // r4
cocos2d::CCString *v12; // r0
const char *CString; // r10
cocos2d::CCObject *v14; // r11
size_t v15; // r0
int v17; // [sp+0h] [bp-14h] BYREF
int v18; // [sp+4h] [bp-10h]
int v19; // [sp+8h] [bp-Ch]
v2 = a1;
v4 = cocos2d::CCDictionary::create(a1);
v5 = *(_BYTE *)v2;
v6 = v4;
if ( a2 )
{
if ( (*(_BYTE *)v2 & 1) == 0 )
v2 = (cocos2d::CCDictionary *)((char *)v2 + 1);
v17 = 0;
if ( (v5 & 1) != 0 )
v2 = *((cocos2d::CCDictionary **)v2 + 2);
v18 = 0;
v19 = 0;
v9 = strlen((const char *)v2);
std::string::__init(&v17, v2, v9);
v8 = sub_4C1A88(&v17, "~");
}
else
{
if ( (*(_BYTE *)v2 & 1) == 0 )
v2 = (cocos2d::CCDictionary *)((char *)v2 + 1);
v17 = 0;
if ( (v5 & 1) != 0 )
v2 = *((cocos2d::CCDictionary **)v2 + 2);
v18 = 0;
v19 = 0;
v7 = strlen((const char *)v2);
std::string::__init(&v17, v2, v7);
v8 = sub_4C1A88(&v17, ":");
}
v10 = v8;
std::string::~string((int)&v17);
for ( i = 0; i + 1 < cocos2d::CCArray::count(v10); i += 2 )
{
v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v10, i);
CString = (const char *)cocos2d::CCString::getCString(v12);
v14 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v10, i + 1);
if ( v14 )
{
if ( CString )
{
v17 = 0;
v18 = 0;
v19 = 0;
v15 = strlen(CString);
std::string::__init(&v17, CString, v15);
cocos2d::CCDictionary::setObject(v6, v14);
std::string::~string((int)&v17);
}
}
}
return v6;
}