//
// GameLevelManager::getMapPacks from 0x1000b6830 to 0x1000b6984 (340 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x100498620
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:58:41 +0000
//
void __fastcall GameLevelManager::getMapPacks(__int64 a1, __int64 a2)
{
char *Key; // x20
__int64 v5; // x0
int v6; // w21
__int64 v7; // x0
const char *CString; // x0
__int64 v9; // x0
const std::string::value_type *v10; // x0
std::string *v11; // x1
void *__p[2]; // [xsp+30h] [xbp-80h] BYREF
char v13; // [xsp+47h] [xbp-69h]
void *v14[2]; // [xsp+48h] [xbp-68h] BYREF
char v15; // [xsp+5Fh] [xbp-51h]
std::string v16; // [xsp+60h] [xbp-50h] BYREF
std::string v17; // [xsp+78h] [xbp-38h] BYREF
Key = (char *)GJSearchObject::getKey(a2);
if ( !sub_1000ADBAC(a1, Key) )
{
sub_1000ADC1C(a1, Key);
GameLevelManager::getBasePostString(v5, &v17);
v6 = *(_DWORD *)(a2 + 392);
v7 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v7);
v9 = sub_1003065B0("&page=%i&secret=%s", v6, CString);
v10 = (const std::string::value_type *)cocos2d::CCString::getCString(v9);
std::string::append(&v17, v10);
sub_100009900(&v16, "https://www.boomlings.com/database/getGJMapPacks21.php");
if ( (v17.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v11 = &v17;
else
v11 = (std::string *)v17.__r_.__value_.__r.__words[0];
sub_100009900(v14, (char *)v11);
sub_100009900(__p, Key);
GameLevelManager::ProcessHttpRequest(a1, &v16, (char *)v14, (const std::string::value_type *)__p, 3);
if ( v13 < 0 )
operator delete(__p[0]);
if ( v15 < 0 )
operator delete(v14[0]);
if ( SHIBYTE(v16.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v16.__r_.__value_.__l.__data_);
if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v17.__r_.__value_.__l.__data_);
}
}