//
// GameLevelManager::reportLevel from 0x819904 to 0x819aec (488 bytes)
//
// 1 xrefs:
// > ??> @ 0xb0b90
//
// 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:54:57 +0000
//
__int64 __fastcall GameLevelManager::reportLevel(cocos2d::CCDictionary **this, const char *a2)
{
unsigned int v2; // w20
cocos2d::CCString *v5; // x0
__int64 CString; // x0
cocos2d::CCString *v7; // x0
char *v8; // x24
size_t v9; // x0
cocos2d::CCString *v10; // x0
size_t v11; // x0
char *v12; // [xsp+48h] [xbp+48h]
__int64 v13[2]; // [xsp+50h] [xbp+50h] BYREF
void *v14; // [xsp+60h] [xbp+60h]
__int64 v15[2]; // [xsp+68h] [xbp+68h] BYREF
void *v16; // [xsp+78h] [xbp+78h]
__int64 v17[2]; // [xsp+80h] [xbp+80h] BYREF
void *v18; // [xsp+90h] [xbp+90h]
v2 = (unsigned int)a2;
if ( !GameLevelManager::hasReportedLevel((GameLevelManager *)this, a2) )
{
GameLevelManager::markLevelAsReported(this, v2);
v5 = (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(v5);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"levelID=%i&secret=%s",
(const char *)v2,
CString);
v8 = (char *)cocos2d::CCString::getCString(v7);
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
std::string::__init(v13, "https://www.boomlings.com/database/reportGJLevel.php", 0x34u);
v15[0] = 0;
v15[1] = 0;
v16 = nullptr;
v9 = strlen(v8);
std::string::__init(v15, v8, v9);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v2);
v12 = (char *)cocos2d::CCString::getCString(v10);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
v11 = strlen(v12);
std::string::__init(v17, v12, v11);
GameLevelManager::ProcessHttpRequest((cocos2d::CCObject *)this, v13, (__int64)v15, (char *)v17, 19);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
}
return _stack_chk_guard;
}