//
// GameLevelManager::getLevelSaveData from 0x1000b6690 to 0x1000b67cc (316 bytes)
//
// 1 xrefs:
// > LoadingLayer::init @ 0x10026e5bc
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 10:58:41 +0000
//
void __fastcall GameLevelManager::getLevelSaveData(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
const std::string::value_type *CString; // x0
std::string *v5; // x1
void *__p[2]; // [xsp+30h] [xbp-70h] BYREF
char v7; // [xsp+47h] [xbp-59h]
void *v8[2]; // [xsp+48h] [xbp-58h] BYREF
char v9; // [xsp+5Fh] [xbp-41h]
std::string v10; // [xsp+60h] [xbp-40h] BYREF
std::string v11; // [xsp+78h] [xbp-28h] BYREF
if ( !sub_1000ADBAC(a1, "lvl_data") )
{
sub_1000ADC1C(a1, "lvl_data");
GameLevelManager::getBasePostString(v2, &v11);
std::string::append(&v11, "&secret=");
v3 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v3);
std::string::append(&v11, CString);
sub_100009900(&v10, "https://www.boomlings.com/database/getSaveData.php");
if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v5 = &v11;
else
v5 = (std::string *)v11.__r_.__value_.__r.__words[0];
sub_100009900(v8, (char *)v5);
sub_100009900(__p, "lvl_data");
GameLevelManager::ProcessHttpRequest(a1, &v10, (char *)v8, (const std::string::value_type *)__p, 50);
if ( v7 < 0 )
operator delete(__p[0]);
if ( v9 < 0 )
operator delete(v8[0]);
if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v10.__r_.__value_.__l.__data_);
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v11.__r_.__value_.__l.__data_);
}
}