//
// GameLevelManager::getGauntletLevels from 0x3cfed4 to 0x3d001c (328 bytes)
//
// 1 xrefs:
// > GauntletLayer::init @ 0x4db464
//
// 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::getGauntletLevels(GameLevelManager *a1, int a2)
{
cocos2d::CCString *v4; // r0
char *CString; // r0
cocos2d::CCString *v6; // r0
char *v7; // r0
char *v8; // [sp+1Ch] [bp+0h] BYREF
char *v9; // [sp+20h] [bp+4h] BYREF
std::string v10; // [sp+24h] [bp+8h] BYREF
char *v11; // [sp+28h] [bp+Ch] BYREF
const char *v12; // [sp+2Ch] [bp+10h] BYREF
char *v13; // [sp+30h] [bp+14h] BYREF
GameLevelManager::getGauntletSearchKey((GameLevelManager *)&v8, (int)a1, (const char *)a2);
if ( !GameLevelManager::isDLActive(a1, v8) )
{
GameLevelManager::addDLToActive(a1, v8);
GameLevelManager::getBasePostString((GameLevelManager *)&v9);
sub_774544((int)&v9, "&gauntlet=");
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_774544((int)&v9, CString);
sub_774544((int)&v9, "&secret=");
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]);
v7 = (char *)cocos2d::CCString::getCString(v6);
sub_774544((int)&v9, v7);
sub_776584((int)&v10, "aHR0cDovL3d3dy5ib29tbGluZ3MuY29tL2RhdGFiYXNlL2dldEdKTGV2ZWxzMjEucGhw");
LevelTools::base64DecodeString((cocos2d::ZipUtils *)&v11, &v10);
sub_776584((int)&v12, v9);
sub_776584((int)&v13, v8);
GameLevelManager::ProcessHttpRequest(a1, &v11, &v12, &v13, 2);
sub_774008(&v13);
sub_774008(&v12);
sub_774008(&v11);
sub_774008(&v10);
sub_774008(&v9);
}
sub_774008(&v8);
}