//
// GameLevelManager::getLevelRateInfo from 0x3d27a0 to 0x3d28b8 (280 bytes)
//
// 1 xrefs:
// > GJRateLevelLayer::init @ 0x454d2e
//
// 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::getLevelRateInfo(GameLevelManager *a1, int a2)
{
cocos2d::CCString *v4; // r0
char *CString; // r0
cocos2d::CCString *v6; // r0
const char *v7; // r0
cocos2d::CCString *v8; // r0
char *v9; // r0
char *v10; // [sp+18h] [bp-18h] BYREF
char *v11; // [sp+1Ch] [bp-14h] BYREF
char *v12; // [sp+20h] [bp-10h] BYREF
const char *v13; // [sp+24h] [bp-Ch] BYREF
char *v14; // [sp+28h] [bp-8h] BYREF
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"rinfo_%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)&v10, CString);
if ( !GameLevelManager::isDLActive(a1, v10) )
{
GameLevelManager::addDLToActive(a1, v10);
GameLevelManager::getBasePostString((GameLevelManager *)&v11);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&aO1i2r3e45s7t89[10]);
v7 = cocos2d::CCString::getCString(v6);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&levelID=%i&secret=%s",
(const char *)a2,
v7);
v9 = (char *)cocos2d::CCString::getCString(v8);
sub_774544((int)&v11, v9);
sub_776584((int)&v12, "https://www.boomlings.com/database/getLevelRateInfo.php");
sub_776584((int)&v13, v11);
sub_775C20(&v14);
GameLevelManager::ProcessHttpRequest(a1, &v12, &v13, &v14, 65);
sub_774008(&v14);
sub_774008(&v13);
sub_774008(&v12);
sub_774008(&v11);
}
sub_774008(&v10);
}