//
// GameLevelManager::getEditorSoundConfigs from 0x4bb830 to 0x4bba46 (534 bytes)
//
// 1 xrefs:
// > EditorSoundBrowserLayer::loadCurrentPage @ 0x78259e
//
// 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:17 +0000
//
int __fastcall GameLevelManager::getEditorSoundConfigs(GameLevelManager *this, const char **a2)
{
const char *v2; // r8
char *Key; // r0
_DWORD *v6; // r0
int v7; // r1
char *v8; // r2
char *v9; // r1
int v10; // r1
void (__fastcall ***v11)(_DWORD, int, char *); // r0
char *v12; // r2
char *v13; // r1
int v14; // r2
char *v15; // r1
const char *v16; // r10
const char *v17; // r9
cocos2d::CCString *v18; // r0
int CString; // r0
cocos2d::CCString *v20; // r0
char *v21; // r0
size_t v22; // r0
const char *v24; // [sp+10h] [bp-5Ch]
int v25; // [sp+14h] [bp-58h]
_DWORD v26[2]; // [sp+1Ch] [bp-50h] BYREF
char *v27; // [sp+24h] [bp-48h]
char *v28[3]; // [sp+28h] [bp-44h] BYREF
int v29[3]; // [sp+34h] [bp-38h] BYREF
int v30[3]; // [sp+40h] [bp-2Ch] BYREF
int v31[3]; // [sp+4Ch] [bp-20h] BYREF
int v32[3]; // [sp+58h] [bp-14h] BYREF
memset(v32, 0, sizeof(v32));
std::string::__init(v32, "es_", 3u);
Key = (char *)GJSearchObject::getKey((GJSearchObject *)a2);
v6 = std::string::append(v32, Key);
v7 = v6[1];
v8 = (char *)v6[2];
v26[0] = *v6;
v26[1] = v7;
v27 = v8;
*v6 = 0;
v6[1] = 0;
v6[2] = 0;
std::string::~string((int)v32);
if ( (v26[0] & 1) != 0 )
v9 = v27;
else
v9 = (char *)v26 + 1;
if ( GameLevelManager::isTimeValid(this, v9, 600.0)
&& (v10 = cocos2d::CCDictionary::objectForKey(*((_DWORD *)this + 181), v26)) != 0 )
{
v11 = *((void (__fastcall ****)(_DWORD, int, char *))this + 218);
if ( v11 )
{
if ( (v26[0] & 1) != 0 )
v12 = v27;
else
v12 = (char *)v26 + 1;
(**v11)(v11, v10, v12);
}
}
else
{
if ( (v26[0] & 1) != 0 )
v13 = v27;
else
v13 = (char *)v26 + 1;
if ( !GameLevelManager::isDLActive(this, v13) )
{
if ( (v26[0] & 1) != 0 )
v15 = v27;
else
v15 = (char *)v26 + 1;
GameLevelManager::addDLToActive(this, v15, v14, LOBYTE(v26[0]));
GameLevelManager::getBasePostString((GameLevelManager *)v28);
std::string::basic_string(v29, (int)(a2 + 67));
v16 = a2[66];
v17 = a2[76];
if ( (v29[0] & 1) == 0 )
v2 = (char *)v29 + 1;
v24 = a2[78];
if ( (v29[0] & 1) != 0 )
v2 = (const char *)v29[2];
v25 = *((unsigned __int8 *)a2 + 308);
v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&a1i2r3e45s789g[9]);
CString = cocos2d::CCString::getCString(v18);
v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&str=%s&type=%i&page=%i&total=%i&count=10&star=%i&secret=%s",
v2,
v16,
v17,
v24,
v25,
CString);
v21 = (char *)cocos2d::CCString::getCString(v20);
std::string::append(v28, v21);
std::string::~string((int)v29);
memset(v30, 0, sizeof(v30));
std::string::__init(v30, "https://www.boomlings.com/database/getGJEditorSounds.php", 0x38u);
if ( ((int)v28[0] & 1) == 0 )
v16 = (char *)v28 + 1;
v31[0] = 0;
if ( ((int)v28[0] & 1) != 0 )
v16 = v28[2];
v31[1] = 0;
v31[2] = 0;
v22 = strlen(v16);
std::string::__init(v31, v16, v22);
std::string::basic_string(v32, (int)v26);
GameLevelManager::ProcessHttpRequest(this, v30, (int)v31, (int)v32, 70);
std::string::~string((int)v32);
std::string::~string((int)v31);
std::string::~string((int)v30);
std::string::~string((int)v28);
}
}
return std::string::~string((int)v26);
}