//
// GameLevelManager::reportLevel from 0x3d44a0 to 0x3d457e (222 bytes)
//
// 1 xrefs:
// > InfoLayer::FLAlert_Clicked @ 0x42f5b4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameLevelManager::reportLevel(GameLevelManager *a1, int a2)
{
cocos2d::CCString *v4; // r0
const char *CString; // r0
cocos2d::CCString *v6; // r0
char *v7; // r9
cocos2d::CCString *v8; // r0
char *v9; // r0
char *v10; // [sp+20h] [bp-14h] BYREF
const char *v11; // [sp+24h] [bp-10h] BYREF
char *v12; // [sp+28h] [bp-Ch] BYREF
if ( !GameLevelManager::hasReportedLevel(a1, a2) )
{
GameLevelManager::markLevelAsReported(a1, a2);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&aO1i2r3e45s7t89[10]);
CString = cocos2d::CCString::getCString(v4);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"levelID=%i&secret=%s",
(const char *)a2,
CString);
v7 = (char *)cocos2d::CCString::getCString(v6);
sub_776584((int)&v10, "https://www.boomlings.com/database/reportGJLevel.php");
sub_776584((int)&v11, v7);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
v9 = (char *)cocos2d::CCString::getCString(v8);
sub_776584((int)&v12, v9);
GameLevelManager::ProcessHttpRequest(a1, &v10, &v11, &v12, 18);
sub_774008(&v12);
sub_774008(&v11);
sub_774008(&v10);
}
}