//
// sub_1000CBAE0 from 0x1000cbae0 to 0x1000cbc68 (392 bytes)
//
// 1 xrefs:
// > sub_10051C4D0 @ 0x10051c518
//
// 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:51 +0000
//
void __fastcall sub_1000CBAE0(__int64 a1, int __val)
{
std::string *v4; // x0
__int128 v5; // q0
__int64 v6; // x0
const char *CString; // x0
__int64 v8; // x0
const std::string::value_type *v9; // x0
std::string *v10; // x1
char *v11; // x1
void *__p[2]; // [xsp+30h] [xbp-90h] BYREF
char v13; // [xsp+47h] [xbp-79h]
void *v14[2]; // [xsp+48h] [xbp-78h] BYREF
char v15; // [xsp+5Fh] [xbp-61h]
std::string v16; // [xsp+60h] [xbp-60h] BYREF
std::string v17; // [xsp+78h] [xbp-48h] BYREF
__int128 v18; // [xsp+90h] [xbp-30h] BYREF
signed __int64 v19; // [xsp+A0h] [xbp-20h]
std::to_string(&v17, __val);
v4 = std::string::insert(&v17, 0, "lctrlget_");
v5 = *(_OWORD *)&v4->__r_.__value_.__l.__data_;
v19 = v4->__r_.__value_.__r.__words[2];
v18 = v5;
v4->__r_.__value_.__l.__size_ = 0;
v4->__r_.__value_.__r.__words[2] = 0;
v4->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v17.__r_.__value_.__l.__data_);
GameLevelManager::getBasePostString((__int64)v4, &v17);
v6 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = sub_1003065B0("&levelID=%i&secret=%s", __val, CString);
v9 = (const std::string::value_type *)cocos2d::CCString::getCString(v8);
std::string::append(&v17, v9);
sub_100009900(&v16, "https://www.boomlings.com/database/getGJLevelControls.php");
if ( (v17.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v10 = &v17;
else
v10 = (std::string *)v17.__r_.__value_.__r.__words[0];
sub_100009900(v14, (char *)v10);
if ( v19 >= 0 )
v11 = (char *)&v18;
else
v11 = (char *)v18;
sub_100009900(__p, v11);
GameLevelManager::ProcessHttpRequest(a1, &v16, (char *)v14, (const std::string::value_type *)__p, 30);
if ( v13 < 0 )
operator delete(__p[0]);
if ( v15 < 0 )
operator delete(v14[0]);
if ( SHIBYTE(v16.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v16.__r_.__value_.__l.__data_);
if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v17.__r_.__value_.__l.__data_);
if ( SHIBYTE(v19) < 0 )
operator delete((void *)v18);
}