// // GameLevelManager::onGetTopArtistsCompleted from 0x4c3a3c to 0x4c3c8e (594 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4dafda // // 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::onGetTopArtistsCompleted(GameLevelManager *a1, int a2, int a3) { char *v5; // r5 const char *v6; // r7 bool v7; // nf size_t v8; // r0 cocos2d::CCArray *v9; // r8 int result; // r0 cocos2d::CCString *v11; // r0 const char *CString; // r9 size_t v13; // r0 cocos2d::CCString *v14; // r0 const char *v15; // r8 size_t v16; // r0 cocos2d::CCArray *v17; // r0 char *v18; // r9 void (__fastcall *v19)(char *, int *, char *); // r11 cocos2d::CCArray *v20; // r11 size_t v21; // r0 unsigned int i; // r8 cocos2d::CCString *v23; // r0 size_t v24; // r0 cocos2d::CCDictionary *v25; // r1 cocos2d::CCObject *v26; // r0 void (__fastcall ***v27)(_DWORD, cocos2d::CCArray *, char *); // r0 cocos2d::CCArray *v28; // [sp+4h] [bp-60h] SongInfoObject *v29; // [sp+Ch] [bp-58h] SongInfoObject *v30; // [sp+Ch] [bp-58h] int v31[2]; // [sp+14h] [bp-50h] BYREF char *v32; // [sp+1Ch] [bp-48h] int v33[3]; // [sp+20h] [bp-44h] BYREF int v34[3]; // [sp+2Ch] [bp-38h] BYREF int v35[3]; // [sp+38h] [bp-2Ch] BYREF int v36[3]; // [sp+44h] [bp-20h] BYREF int v37; // [sp+50h] [bp-14h] BYREF int v38; // [sp+54h] [bp-10h] int v39; // [sp+58h] [bp-Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v5 = *(char **)(a3 + 8); else v5 = (char *)(a3 + 1); GameLevelManager::removeDLFromActive(a1, v5); v37 = 0; v38 = 0; v39 = 0; std::string::__init(&v37, "-1", 2u); v6 = (const char *)sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v37); std::string::~string((int)&v37); if ( v6 ) goto LABEL_10; v7 = (*(_BYTE *)a2 & 1) != 0; if ( (*(_BYTE *)a2 & 1) == 0 ) v6 = (const char *)(a2 + 1); v37 = 0; if ( v7 ) v6 = *(const char **)(a2 + 8); v38 = 0; v39 = 0; v8 = strlen(v6); std::string::__init(&v37, v6, v8); v9 = sub_4C1A88(&v37, "#"); std::string::~string((int)&v37); if ( cocos2d::CCArray::count(v9) <= 1u ) { LABEL_10: result = *((_DWORD *)a1 + 234); if ( result ) return (*(int (__fastcall **)(int, char *))(*(_DWORD *)result + 4))(result, v5); } else { v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 0); v31[0] = 0; v31[1] = 0; v32 = nullptr; CString = (const char *)cocos2d::CCString::getCString(v11); v13 = strlen(CString); std::string::__init(v31, CString, v13); v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 1u); v15 = (const char *)cocos2d::CCString::getCString(v14); memset(v33, 0, sizeof(v33)); v16 = strlen(v15); v17 = (cocos2d::CCArray *)std::string::__init(v33, v15, v16); v18 = *((char **)a1 + 234); if ( v18 ) { v19 = *(void (__fastcall **)(char *, int *, char *))(*(_DWORD *)v18 + 8); std::string::basic_string(v34, (int)v33); v19(v18, v34, v5); v17 = (cocos2d::CCArray *)std::string::~string((int)v34); } v20 = (cocos2d::CCArray *)cocos2d::CCArray::create(v17); if ( (v31[0] & 1) == 0 ) v18 = (char *)v31 + 1; v35[0] = 0; if ( (v31[0] & 1) != 0 ) v18 = v32; v35[1] = 0; v35[2] = 0; v21 = strlen(v18); std::string::__init(v35, v18, v21); v28 = sub_4C1A88(v35, "|"); std::string::~string((int)v35); for ( i = 0; i < cocos2d::CCArray::count(v28); ++i ) { v23 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v28, i); v29 = (SongInfoObject *)cocos2d::CCString::getCString(v23); v37 = 0; v38 = 0; v39 = 0; v24 = strlen((const char *)v29); std::string::__init(&v37, v29, v24); std::string::basic_string(v36, (int)&v37); v30 = (SongInfoObject *)GameLevelManager::responseToDict((cocos2d::CCDictionary *)v36, 0); std::string::~string((int)v36); v26 = (cocos2d::CCObject *)SongInfoObject::create(v30, v25); cocos2d::CCArray::addObject(v20, v26); std::string::~string((int)&v37); } std::string::basic_string(&v37, (int)v33); GameLevelManager::storeSearchResult(a1, v20, COERCE_FLOAT(&v37), v5); std::string::~string((int)&v37); v27 = *((void (__fastcall ****)(_DWORD, cocos2d::CCArray *, char *))a1 + 234); if ( v27 ) (**v27)(v27, v20, v5); std::string::~string((int)v33); return std::string::~string((int)v31); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source