//
// GameLevelManager::adminGetReportQueue from 0x824a18 to 0x824d18 (768 bytes)
//
// 2 xrefs:
// > ReportQueuePopup::requestPage @ 0xc4fcd8
// > ??> @ 0xfd300
//
// 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:03 +0000
//
__int64 __fastcall GameLevelManager::adminGetReportQueue(
GameLevelManager *this,
unsigned int a2,
unsigned int a3,
unsigned int a4)
{
__int64 v8; // x24
cocos2d::CCNode *v9; // x0
__int64 v11; // x27
cocos2d::CCObject *v12; // x24
cocos2d::CCString *v13; // x0
__int64 CString; // x0
cocos2d::CCString *v15; // x0
size_t v16; // x0
const char *v17; // x1
size_t v18; // x0
char *v19; // [xsp+68h] [xbp+68h]
char *v20; // [xsp+68h] [xbp+68h]
__int64 v21[2]; // [xsp+78h] [xbp+78h] BYREF
void *v22; // [xsp+88h] [xbp+88h]
__int64 v23[2]; // [xsp+90h] [xbp+90h] BYREF
void *v24; // [xsp+A0h] [xbp+A0h]
__int64 v25[2]; // [xsp+A8h] [xbp+A8h] BYREF
void *v26; // [xsp+B8h] [xbp+B8h]
__int64 v27[3]; // [xsp+C0h] [xbp+C0h] BYREF
if ( (a2 & 0x80000000) != 0 )
return 0;
BYTE1(v27[2]) = 0;
WORD1(v27[2]) = 0;
HIDWORD(v27[2]) = 0;
strcpy((char *)v27, " adminReportQueu");
v8 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 136), v27);
v9 = (cocos2d::CCNode *)LOBYTE(v27[0]);
if ( (v27[0] & 1) != 0 )
{
operator delete((void *)v27[2]);
if ( v8 )
return 0;
}
else if ( v8 )
{
return 0;
}
v11 = *((_QWORD *)this + 136);
v12 = (cocos2d::CCObject *)cocos2d::CCNode::create(v9);
memset(v27, 0, sizeof(v27));
std::string::__init(v27, "adminReportQueue", 0x10u);
cocos2d::CCDictionary::setObject(v11, v12);
if ( (v27[0] & 1) != 0 )
operator delete((void *)v27[2]);
GameLevelManager::getBasePostString(v21);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
CString = cocos2d::CCString::getCString(v13);
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&page=%i&sort=%i&mode=%i&flags=1&secret=%s",
(const char *)a2,
a3,
a4,
CString);
v19 = (char *)cocos2d::CCString::getCString(v15);
v16 = strlen(v19);
std::string::append((__int64)v21, v19, v16);
v23[0] = 0;
v23[1] = 0;
v24 = nullptr;
std::string::__init(v23, "https://www.boomlings.com/database/adminGetReportQueue.php", 0x3Au);
v17 = (char *)v21 + 1;
if ( (v21[0] & 1) != 0 )
v17 = (const char *)v22;
v20 = (char *)v17;
v25[0] = 0;
v25[1] = 0;
v26 = nullptr;
v18 = strlen(v17);
std::string::__init(v25, v20, v18);
memset(v27, 0, sizeof(v27));
std::string::__init(v27, "adminReportQueue", 0x10u);
GameLevelManager::ProcessHttpRequest(this, v23, (__int64)v25, (char *)v27, 87);
if ( (v27[0] & 1) != 0 )
operator delete((void *)v27[2]);
if ( (v25[0] & 1) != 0 )
operator delete(v26);
if ( (v23[0] & 1) != 0 )
operator delete(v24);
if ( (v21[0] & 1) != 0 )
operator delete(v22);
return 1;
}