//
// sub_1000C25B8 from 0x1000c25b8 to 0x1000c28bc (772 bytes)
//
// 1 xrefs:
// > sub_1003F2608 @ 0x1003f26c0
//
// 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:47 +0000
//
void __fastcall sub_1000C25B8(__int64 a1, unsigned int a2, __int64 *a3, __int64 a4, _QWORD *a5)
{
__int64 v12; // x24
__int64 v13; // x0
__int64 v14; // x24
__int64 v15; // x24
__int64 v16; // x25
std::string *v17; // x0
__int64 v18; // x20
__int64 v19; // x26
unsigned __int64 v20; // x27
std::string::size_type size; // x8
__int64 v22; // x0
const std::string::value_type *CString; // x0
__int64 v24; // x0
const std::string::value_type *v25; // x0
__int64 v26; // x0
const std::string::value_type *v27; // x0
std::string *v28; // x1
std::string::size_type v29; // x2
int v30; // w0
int v31; // w21
std::string::size_type v32; // x20
std::string *v33; // x1
_QWORD *v34; // [xsp+38h] [xbp-D8h]
void *__p[2]; // [xsp+40h] [xbp-D0h] BYREF
char v36; // [xsp+57h] [xbp-B9h]
void *v37[2]; // [xsp+58h] [xbp-B8h] BYREF
char v38; // [xsp+6Fh] [xbp-A1h]
std::string v39; // [xsp+70h] [xbp-A0h] BYREF
std::string v40; // [xsp+88h] [xbp-88h] BYREF
std::string v41; // [xsp+A0h] [xbp-70h] BYREF
if ( *a3 != a3[1] && a2 <= 7 && ((1 << a2) & 0xC3) != 0 )
{
v12 = *(_QWORD *)(a1 + 1088);
sub_100009900(&v41, "bulkDeleteComments");
v13 = cocos2d::CCDictionary::objectForKey(v12, &v41);
v14 = v13;
if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v41.__r_.__value_.__l.__data_);
if ( v14 )
return;
}
else if ( v13 )
{
return;
}
v15 = *(_QWORD *)(a1 + 1088);
v16 = cocos2d::CCNode::create(v13);
sub_100009900(&v41, "bulkDeleteComments");
v17 = (std::string *)cocos2d::CCDictionary::setObject(v15, v16, &v41);
v34 = a5;
if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v41.__r_.__value_.__l.__data_);
memset(&v41, 0, sizeof(v41));
v18 = *a3;
if ( a3[1] != *a3 )
{
v19 = 0;
v20 = 0;
do
{
size = HIBYTE(v41.__r_.__value_.__r.__words[2]);
if ( (v41.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = v41.__r_.__value_.__l.__size_;
if ( size )
std::string::append(&v41, ";");
v22 = sub_1003065B0("%i,%i", *(_DWORD *)(v18 + v19 + 4), *(_DWORD *)(v18 + v19 + 8));
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v22);
v17 = std::string::append(&v41, CString);
++v20;
v18 = *a3;
v19 += 12;
}
while ( v20 < 0xAAAAAAAAAAAAAAABLL * ((a3[1] - *a3) >> 2) );
}
GameLevelManager::getBasePostString((__int64)v17, &v40);
std::string::append(&v40, "&secret=");
v24 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
v25 = (const std::string::value_type *)cocos2d::CCString::getCString(v24);
std::string::append(&v40, v25);
v26 = sub_1003065B0("&cType=%i", a2);
v27 = (const std::string::value_type *)cocos2d::CCString::getCString(v26);
std::string::append(&v40, v27);
std::string::append(&v40, "&items=");
if ( (v41.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v28 = &v41;
else
v28 = (std::string *)v41.__r_.__value_.__r.__words[0];
if ( (v41.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v29 = HIBYTE(v41.__r_.__value_.__r.__words[2]);
else
v29 = v41.__r_.__value_.__l.__size_;
v30 = (unsigned int)std::string::append(&v40, (const std::string::value_type *)v28, v29);
sub_1000B74A0(v30, &v40, a4, v34);
v31 = SHIBYTE(v40.__r_.__value_.__r.__words[2]);
v32 = v40.__r_.__value_.__r.__words[0];
sub_100009900(&v39, "https://www.boomlings.com/database/deleteGJComments.php");
if ( v31 >= 0 )
v33 = &v40;
else
v33 = (std::string *)v32;
sub_100009900(v37, (char *)v33);
sub_100009900(__p, "bulkDeleteComments");
GameLevelManager::ProcessHttpRequest(a1, &v39, (char *)v37, (const std::string::value_type *)__p, 15);
if ( v36 < 0 )
operator delete(__p[0]);
if ( v38 < 0 )
operator delete(v37[0]);
if ( SHIBYTE(v39.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v39.__r_.__value_.__l.__data_);
if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v40.__r_.__value_.__l.__data_);
if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v41.__r_.__value_.__l.__data_);
}
}