//
// GameLevelManager::muteUser from 0x8273f4 to 0x827678 (644 bytes)
//
// 3 xrefs:
// > GJNotificationCell::FLAlert_Clicked @ 0x736104
// > FriendsProfilePage::FLAlert_Clicked @ 0xa51644
// > ??> @ 0xb8db0
//
// 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:04 +0000
//
__int64 __fastcall GameLevelManager::muteUser(GameLevelManager *this, const char *a2, unsigned __int8 a3)
{
unsigned int v3; // w23
unsigned int v5; // w24
cocos2d::CCString *v6; // x0
char *CString; // x21
_BOOL4 isDLActive; // w1
__int64 result; // x0
cocos2d::CCString *v10; // x0
__int64 v11; // x0
cocos2d::CCString *v12; // x0
size_t v13; // x0
const char *v14; // x1
size_t v15; // x0
size_t v16; // x0
int v17; // w4
char *v18; // [xsp+58h] [xbp+58h]
char *v19; // [xsp+58h] [xbp+58h]
__int64 v20[2]; // [xsp+68h] [xbp+68h] BYREF
void *v21; // [xsp+78h] [xbp+78h]
__int64 v22[2]; // [xsp+80h] [xbp+80h] BYREF
void *v23; // [xsp+90h] [xbp+90h]
__int64 v24[2]; // [xsp+98h] [xbp+98h] BYREF
void *v25; // [xsp+A8h] [xbp+A8h]
__int64 v26[2]; // [xsp+B0h] [xbp+B0h] BYREF
void *v27; // [xsp+C0h] [xbp+C0h]
v3 = a3;
v5 = (unsigned int)a2;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"mute_%i", a2);
CString = (char *)cocos2d::CCString::getCString(v6);
isDLActive = GameLevelManager::isDLActive(this, CString);
result = 0;
if ( !isDLActive )
{
GameLevelManager::addDLToActive(this, CString);
GameLevelManager::getBasePostString(v20);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
v11 = cocos2d::CCString::getCString(v10);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&targetAccountID=%i&mute=%i&secret=%s",
(const char *)v5,
v3,
v11);
v18 = (char *)cocos2d::CCString::getCString(v12);
v13 = strlen(v18);
std::string::append((__int64)v20, v18, v13);
v22[0] = 0;
v22[1] = 0;
v23 = nullptr;
std::string::__init(v22, "https://www.boomlings.com/database/muteGJUser.php", 0x31u);
v14 = (char *)v20 + 1;
if ( (v20[0] & 1) != 0 )
v14 = (const char *)v21;
v19 = (char *)v14;
v24[0] = 0;
v24[1] = 0;
v25 = nullptr;
v15 = strlen(v14);
std::string::__init(v24, v19, v15);
v26[0] = 0;
v26[1] = 0;
v27 = nullptr;
v16 = strlen(CString);
std::string::__init(v26, CString, v16);
if ( v3 )
v17 = 116;
else
v17 = 117;
GameLevelManager::ProcessHttpRequest(this, v22, (__int64)v24, (char *)v26, v17);
if ( (v26[0] & 1) != 0 )
operator delete(v27);
if ( (v24[0] & 1) != 0 )
operator delete(v25);
if ( (v22[0] & 1) != 0 )
operator delete(v23);
if ( (v20[0] & 1) != 0 )
operator delete(v21);
return 1;
}
return result;
}