//
// GameLevelManager::getLevelLists from 0x3d45a0 to 0x3d46e8 (328 bytes)
//
// 2 xrefs:
// > LevelBrowserLayer::loadPage @ 0x3bbf6e
// > LevelListLayer::onRefreshLevelList @ 0x58ee78
//
// 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::getLevelLists(GameLevelManager *a1, GJSearchObject *a2)
{
char *Key; // r8
SearchType m_searchType; // r10
int m_page; // r9
cocos2d::CCString *v7; // r0
const char *CString; // r0
cocos2d::CCString *v9; // r0
char *v10; // r0
char *v11; // [sp+14h] [bp-28h]
char *v12; // [sp+1Ch] [bp-20h] BYREF
char *v13; // [sp+20h] [bp-1Ch] BYREF
char *v14; // [sp+24h] [bp-18h] BYREF
char *v15; // [sp+28h] [bp-14h] BYREF
const char *v16; // [sp+2Ch] [bp-10h] BYREF
char *v17; // [sp+30h] [bp-Ch] BYREF
Key = (char *)GJSearchObject::getKey(a2);
if ( !GameLevelManager::isDLActive(a1, Key) )
{
GameLevelManager::addDLToActive(a1, Key);
GameLevelManager::getBasePostString((GameLevelManager *)&v12);
sub_775C20(&v13);
m_searchType = a2->m_searchType;
m_page = a2->m_page;
v11 = v13;
v7 = (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(v7);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&str=%s&type=%i&page=%i&secret=%s",
v11,
m_searchType,
m_page,
CString);
v10 = (char *)cocos2d::CCString::getCString(v9);
sub_774544((int)&v12, v10);
sub_774008(&v13);
GameLevelManager::writeSpecialFilters((GameLevelManager *)&v14, (GJSearchObject *)a1, (int)a2);
sub_774544((int)&v12, v14);
sub_774008(&v14);
sub_776584((int)&v15, "https://www.boomlings.com/database/getGJLevelLists.php");
sub_776584((int)&v16, v12);
sub_776584((int)&v17, Key);
GameLevelManager::ProcessHttpRequest(a1, &v15, &v16, &v17, 60);
sub_774008(&v17);
sub_774008(&v16);
sub_774008(&v15);
sub_774008(&v12);
}
}