//
// GameLevelManager::adminCloseCase from 0x831b14 to 0x831c94 (384 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::reviewChoicePicked @ 0xc42a5c
// > ??> @ 0xc4810
//
// 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:09 +0000
//
__int64 __fastcall GameLevelManager::adminCloseCase(cocos2d::CCObject *a1, const char *a2, unsigned int a3, char *a4)
{
unsigned int v4; // w20
cocos2d::CCString *v7; // x0
char *CString; // x22
cocos2d::CCString *v9; // x0
size_t v10; // x0
int v12; // [xsp+38h] [xbp+38h]
char *v13; // [xsp+40h] [xbp+40h]
__int64 v15[2]; // [xsp+58h] [xbp+58h] BYREF
void *v16; // [xsp+68h] [xbp+68h]
void *v17; // [xsp+70h] [xbp+70h] BYREF
char *v18; // [xsp+78h] [xbp+78h]
__int64 v19; // [xsp+80h] [xbp+80h]
v4 = 0;
if ( a3 <= 2 )
{
v12 = (int)a2;
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"adminCase_%i", a2);
CString = (char *)cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&outcome=%i", (const char *)a3);
v15[0] = 0;
v13 = (char *)cocos2d::CCString::getCString(v9);
v15[1] = 0;
v16 = nullptr;
v10 = strlen(v13);
std::string::__init(v15, v13, v10);
v17 = nullptr;
v18 = nullptr;
v19 = 0;
v4 = (unsigned __int8)GameLevelManager::sendAdminAction(
a1,
CString,
"https://www.boomlings.com/database/adminCloseCase.php",
90,
v12,
(__int64)v15,
a4,
(__int64 *)&v17);
if ( v17 )
{
if ( v18 != v17 )
v18 += 4 * ~((unsigned __int64)(v18 - 4 - (_BYTE *)v17) >> 2);
operator delete(v17);
}
if ( (v15[0] & 1) != 0 )
operator delete(v16);
}
return v4;
}