//
// GameLevelManager::reportContent from 0x4badf0 to 0x4bafc4 (468 bytes)
//
// 1 xrefs:
// > ReportPopup::FLAlert_Clicked @ 0x79fa04
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:16 +0000
//
int __fastcall GameLevelManager::reportContent(
GameManager *a1,
const char *a2,
const char *a3,
int a4,
int *a5,
__int64 a6)
{
int result; // r0
char *v11; // r8
GJAccountManager *v12; // r0
int v13; // r4
int v14; // r0
char *v15; // r7
cocos2d::CCString *v16; // r0
int CString; // r0
cocos2d::CCString *v18; // r0
const char *v19; // r7
size_t v20; // r0
const char *v21; // r1
cocos2d::CCString *v22; // r0
char *v23; // r0
size_t v24; // r0
cocos2d::CCString *v25; // r0
const char *v26; // r8
size_t v27; // r0
_DWORD v28[3]; // [sp+1Ch] [bp-50h] BYREF
int v29[2]; // [sp+28h] [bp-44h] BYREF
char *v30; // [sp+30h] [bp-3Ch]
int v31[3]; // [sp+34h] [bp-38h] BYREF
int v32[3]; // [sp+40h] [bp-2Ch] BYREF
int v33[3]; // [sp+4Ch] [bp-20h] BYREF
int v34[3]; // [sp+58h] [bp-14h] BYREF
result = *a5;
if ( *a5 != a5[1] )
{
sub_4B5994(v28, a5);
if ( (v28[0] & 1) != 0 )
v11 = (char *)v28[2];
else
v11 = (char *)v28 + 1;
v12 = (GJAccountManager *)GJAccountManager::sharedState((GJAccountManager *)(LOBYTE(v28[0]) << 31));
v13 = *((_DWORD *)v12 + 70) - *((_DWORD *)v12 + 71);
v14 = GJAccountManager::sharedState(v12);
std::string::basic_string(v31, v14 + 292);
if ( (v31[0] & 1) != 0 )
v15 = (char *)v31[2];
else
v15 = (char *)v31 + 1;
v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&a1i2r3e45s789g[9]);
CString = cocos2d::CCString::getCString(v16);
v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"type=%i&targetID=%i&special=%i&reasons=%s&accountID=%i&gjp2=%s&secret=%s",
a2,
a3,
a4,
v11,
v13,
v15,
CString);
v19 = (const char *)cocos2d::CCString::getCString(v18);
v29[0] = 0;
v29[1] = 0;
v30 = nullptr;
v20 = strlen(v19);
std::string::__init(v29, v19, v20);
std::string::~string((int)v31);
if ( a6 >= 1 )
{
v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&messageID=%lli", v21, a6);
v23 = (char *)cocos2d::CCString::getCString(v22);
std::string::append(v29, v23);
}
memset(v32, 0, sizeof(v32));
std::string::__init(v32, "https://www.boomlings.com/database/reportGJContent.php", 0x36u);
if ( (v29[0] & 1) == 0 )
v11 = (char *)v29 + 1;
v33[0] = 0;
if ( (v29[0] & 1) != 0 )
v11 = v30;
v33[1] = 0;
v33[2] = 0;
v24 = strlen(v11);
std::string::__init(v33, v11, v24);
v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3);
v26 = (const char *)cocos2d::CCString::getCString(v25);
memset(v34, 0, sizeof(v34));
v27 = strlen(v26);
std::string::__init(v34, v26, v27);
GameLevelManager::ProcessHttpRequest(a1, v32, (int)v33, (int)v34, 20);
std::string::~string((int)v34);
std::string::~string((int)v33);
std::string::~string((int)v32);
std::string::~string((int)v29);
return std::string::~string((int)v28);
}
return result;
}