//
// GameLevelManager::getMapPacks from 0x3cfc90 to 0x3cfd96 (262 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x3bbf56
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameLevelManager::getMapPacks(GameLevelManager *a1, GJSearchObject *a2)
{
char *Key; // r10
const char *m_page; // r5
cocos2d::CCString *v6; // r0
const char *CString; // r0
cocos2d::CCString *v8; // r0
char *v9; // r0
char *v10; // [sp+1Ch] [bp-14h] BYREF
char *v11; // [sp+20h] [bp-10h] BYREF
const char *v12; // [sp+24h] [bp-Ch] BYREF
char *v13; // [sp+28h] [bp-8h] BYREF
Key = (char *)GJSearchObject::getKey(a2);
if ( !GameLevelManager::isDLActive(a1, Key) )
{
GameLevelManager::addDLToActive(a1, Key);
GameLevelManager::getBasePostString((GameLevelManager *)&v10);
m_page = (const char *)a2->m_page;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&aO1i2r3e45s7t89[10]);
CString = cocos2d::CCString::getCString(v6);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&page=%i&secret=%s",
m_page,
CString);
v9 = (char *)cocos2d::CCString::getCString(v8);
sub_774544((int)&v10, v9);
sub_776584((int)&v11, "https://www.boomlings.com/database/getGJMapPacks21.php");
sub_776584((int)&v12, v10);
sub_776584((int)&v13, Key);
GameLevelManager::ProcessHttpRequest(a1, &v11, &v12, &v13, 3);
sub_774008(&v13);
sub_774008(&v12);
sub_774008(&v11);
sub_774008(&v10);
}
}