//
// GameLevelManager::getLevelSaveData from 0x4b62ac to 0x4b63ca (286 bytes)
//
// 1 xrefs:
// > LoadingLayer::init @ 0x3fb5ac
//
// 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:08 +0000
//
int __fastcall GameLevelManager::getLevelSaveData(GameLevelManager *this)
{
const char *v1; // r10
int result; // r0
int v4; // r2
int v5; // r3
cocos2d::CCString *v6; // r0
char *CString; // r0
size_t v8; // r0
char *v9[3]; // [sp+14h] [bp-34h] BYREF
int v10[3]; // [sp+20h] [bp-28h] BYREF
int v11[3]; // [sp+2Ch] [bp-1Ch] BYREF
int v12[3]; // [sp+38h] [bp-10h] BYREF
result = GameLevelManager::isDLActive(this, "lvl_data");
if ( !result )
{
GameLevelManager::addDLToActive(this, "lvl_data", v4, v5);
GameLevelManager::getBasePostString((GameLevelManager *)v9);
std::string::append(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,
&a1i2r3e45s789g[9]);
CString = (char *)cocos2d::CCString::getCString(v6);
std::string::append(v9, CString);
memset(v10, 0, sizeof(v10));
std::string::__init(v10, "https://www.boomlings.com/database/getSaveData.php", 0x32u);
v11[0] = 0;
v11[1] = 0;
if ( ((int)v9[0] & 1) == 0 )
v1 = (char *)v9 + 1;
v11[2] = 0;
if ( ((int)v9[0] & 1) != 0 )
v1 = v9[2];
v8 = strlen(v1);
std::string::__init(v11, v1, v8);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "lvl_data", 8u);
GameLevelManager::ProcessHttpRequest(this, v10, (int)v11, (int)v12, 50);
std::string::~string((int)v12);
std::string::~string((int)v11);
std::string::~string((int)v10);
return std::string::~string((int)v9);
}
return result;
}