//
// GameLevelManager::adminDeleteUserComments from 0x83101c to 0x831194 (376 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::adminActionConfirmed @ 0xc41454
// > ??> @ 0xd1dd0
//
// 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 12:55:08 +0000
//
__int64 __fastcall GameLevelManager::adminDeleteUserComments(
cocos2d::CCObject *a1,
const char *a2,
unsigned int a3,
char *a4,
__int64 *a5)
{
int v9; // w28
cocos2d::CCString *v10; // x0
char *CString; // x25
cocos2d::CCString *v12; // x0
const char *v13; // x27
size_t v14; // x0
size_t v15; // x19
unsigned __int64 v16; // x0
char *v17; // x3
unsigned int v18; // w19
__int64 v20; // [xsp+60h] [xbp+60h] BYREF
size_t v21; // [xsp+68h] [xbp+68h]
void *v22; // [xsp+70h] [xbp+70h]
v9 = (int)a2;
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"adminDelete_%i_%i", a2);
CString = (char *)cocos2d::CCString::getCString(v10);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&scope=%i", (const char *)a3);
v20 = 0;
v13 = (const char *)cocos2d::CCString::getCString(v12);
v21 = 0;
v22 = nullptr;
v14 = strlen(v13);
v15 = v14;
if ( v14 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C79C();
if ( v14 > 0x16 )
{
v16 = (v14 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v20 = v16 | 1;
v17 = (char *)operator new(v16);
v22 = v17;
v21 = v15;
LABEL_4:
v17 = (char *)memcpy(v17, v13, v15);
goto LABEL_5;
}
LOBYTE(v20) = 2 * v14;
v17 = (char *)&v20 + 1;
if ( v14 )
goto LABEL_4;
LABEL_5:
v17[v15] = 0;
v18 = GameLevelManager::sendAdminAction(
a1,
CString,
"https://www.boomlings.com/database/adminDeleteUserComments.php",
79,
v9,
(__int64)&v20,
a4,
a5);
if ( (v20 & 1) != 0 )
operator delete(v22);
return v18;
}