//
// GameLevelManager::getGauntlets from 0x4b6578 to 0x4b669c (292 bytes)
//
// 2 xrefs:
// > GauntletSelectLayer::onRefresh @ 0x60a232
// > GauntletSelectLayer::init @ 0x60d62e
//
// 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:09 +0000
//
int __fastcall GameLevelManager::getGauntlets(GameLevelManager *this)
{
const char *v1; // r10
int result; // r0
int v4; // r2
int v5; // r3
cocos2d::CCString *v6; // r0
const char *CString; // r0
cocos2d::CCString *v8; // r0
char *v9; // r0
size_t v10; // r0
char *v11[3]; // [sp+14h] [bp-34h] BYREF
int v12[3]; // [sp+20h] [bp-28h] BYREF
int v13[3]; // [sp+2Ch] [bp-1Ch] BYREF
int v14[3]; // [sp+38h] [bp-10h] BYREF
result = GameLevelManager::isDLActive(this, "get_gauntlets");
if ( !result )
{
GameLevelManager::addDLToActive(this, "get_gauntlets", v4, v5);
GameLevelManager::getBasePostString((GameLevelManager *)v11);
v6 = (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 = (const char *)cocos2d::CCString::getCString(v6);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&secret=%s&special=1&vkey=%i",
CString,
51);
v9 = (char *)cocos2d::CCString::getCString(v8);
std::string::append(v11, v9);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "https://www.boomlings.com/database/getGJGauntlets21.php", 0x37u);
v13[0] = 0;
v13[1] = 0;
if ( ((int)v11[0] & 1) == 0 )
v1 = (char *)v11 + 1;
v13[2] = 0;
if ( ((int)v11[0] & 1) != 0 )
v1 = v11[2];
v10 = strlen(v1);
std::string::__init(v13, v1, v10);
memset(v14, 0, sizeof(v14));
std::string::__init(v14, "get_gauntlets", 0xDu);
GameLevelManager::ProcessHttpRequest(this, v12, (int)v13, (int)v14, 58);
std::string::~string((int)v14);
std::string::~string((int)v13);
std::string::~string((int)v12);
return std::string::~string((int)v11);
}
return result;
}