//
// sub_1000CB888 from 0x1000cb888 to 0x1000cba4c (452 bytes)
//
// 1 xrefs:
// > PlatformerControlsPopup::FLAlert_Clicked @ 0x10051d534
//
// 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
//
bool __fastcall sub_1000CB888(__int64 a1, int __val)
{
std::string *v4; // x0
__int128 v5; // q0
__int64 v6; // x19
__int64 v7; // x22
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
const char *CString; // x0
__int64 v12; // x0
const std::string::value_type *v13; // x0
std::string *v14; // x1
char *v15; // x1
void *__p[2]; // [xsp+30h] [xbp-A0h] BYREF
char v18; // [xsp+47h] [xbp-89h]
void *v19[2]; // [xsp+48h] [xbp-88h] BYREF
char v20; // [xsp+5Fh] [xbp-71h]
std::string v21; // [xsp+60h] [xbp-70h] BYREF
std::string v22; // [xsp+78h] [xbp-58h] BYREF
__int128 v23; // [xsp+90h] [xbp-40h] BYREF
signed __int64 v24; // [xsp+A0h] [xbp-30h]
std::to_string(&v22, __val);
v4 = std::string::insert(&v22, 0, "lctrldel_");
v5 = *(_OWORD *)&v4->__r_.__value_.__l.__data_;
v24 = v4->__r_.__value_.__r.__words[2];
v23 = v5;
v4->__r_.__value_.__l.__size_ = 0;
v4->__r_.__value_.__r.__words[2] = 0;
v4->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v22.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v22.__r_.__value_.__l.__data_);
v6 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1088), &v23);
if ( !v6 )
{
v7 = *(_QWORD *)(a1 + 1088);
v8 = cocos2d::CCNode::create(0);
v9 = cocos2d::CCDictionary::setObject(v7, v8, &v23);
GameLevelManager::getBasePostString(v9, &v22);
v10 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v10);
v12 = sub_1003065B0("&levelID=%i&secret=%s", __val, CString);
v13 = (const std::string::value_type *)cocos2d::CCString::getCString(v12);
std::string::append(&v22, v13);
sub_100009900(&v21, "https://www.boomlings.com/database/deleteGJLevelControls.php");
if ( (v22.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v14 = &v22;
else
v14 = (std::string *)v22.__r_.__value_.__r.__words[0];
sub_100009900(v19, (char *)v14);
if ( v24 >= 0 )
v15 = (char *)&v23;
else
v15 = (char *)v23;
sub_100009900(__p, v15);
GameLevelManager::ProcessHttpRequest(a1, &v21, (char *)v19, (const std::string::value_type *)__p, 29);
if ( v18 < 0 )
operator delete(__p[0]);
if ( v20 < 0 )
operator delete(v19[0]);
if ( SHIBYTE(v21.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v21.__r_.__value_.__l.__data_);
if ( SHIBYTE(v22.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v22.__r_.__value_.__l.__data_);
}
if ( SHIBYTE(v24) < 0 )
operator delete((void *)v23);
return v6 == 0;
}