//
// GameLevelManager::getMapPacks from 0x4bb6e0 to 0x4bb814 (308 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x4a6b30
//
// 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::getMapPacks(GameLevelManager *this, const char **a2)
{
const char *v2; // r11
const char *Key; // r10
int result; // r0
int v7; // r2
int v8; // r3
const char *v9; // r4
cocos2d::CCString *v10; // r0
int CString; // r0
cocos2d::CCString *v12; // r0
char *v13; // r0
size_t v14; // r0
size_t v15; // r0
char *v16[3]; // [sp+14h] [bp-38h] BYREF
int v17[3]; // [sp+20h] [bp-2Ch] BYREF
int v18[3]; // [sp+2Ch] [bp-20h] BYREF
int v19[3]; // [sp+38h] [bp-14h] BYREF
Key = (const char *)GJSearchObject::getKey((GJSearchObject *)a2);
result = GameLevelManager::isDLActive(this, Key);
if ( !result )
{
GameLevelManager::addDLToActive(this, Key, v7, v8);
GameLevelManager::getBasePostString((GameLevelManager *)v16);
v9 = a2[76];
v10 = (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(v10);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&page=%i&secret=%s",
v9,
CString);
v13 = (char *)cocos2d::CCString::getCString(v12);
std::string::append(v16, v13);
memset(v17, 0, sizeof(v17));
std::string::__init(v17, "https://www.boomlings.com/database/getGJMapPacks21.php", 0x36u);
v18[0] = 0;
v18[1] = 0;
if ( ((int)v16[0] & 1) == 0 )
v2 = (char *)v16 + 1;
v18[2] = 0;
if ( ((int)v16[0] & 1) != 0 )
v2 = v16[2];
v14 = strlen(v2);
std::string::__init(v18, v2, v14);
memset(v19, 0, sizeof(v19));
v15 = strlen(Key);
std::string::__init(v19, Key, v15);
GameLevelManager::ProcessHttpRequest(this, v17, (int)v18, (int)v19, 3);
std::string::~string((int)v19);
std::string::~string((int)v18);
std::string::~string((int)v17);
return std::string::~string((int)v16);
}
return result;
}