//
// GameLevelManager::suggestLevelStars from 0x3d0850 to 0x3d09a0 (336 bytes)
//
// 2 xrefs:
// > GJRateLevelLayer::onRate @ 0x453336
// > RateStarsLayer::onRate @ 0x455862
//
// 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::suggestLevelStars(GameLevelManager *a1, int a2, int a3, int a4)
{
cocos2d::CCString *v8; // r0
char *CString; // r0
char *v10; // r8
int v11; // r6
cocos2d::CCDictionary *v12; // r6
cocos2d::CCString *v13; // r0
const char *v14; // r0
cocos2d::CCString *v15; // r0
char *v16; // r0
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // [sp+14h] [bp-28h]
cocos2d::CCNode *v18; // [sp+14h] [bp-28h]
char *v19; // [sp+24h] [bp-18h] BYREF
char *v20; // [sp+28h] [bp-14h] BYREF
const char *v21; // [sp+2Ch] [bp-10h] BYREF
std::string v22; // [sp+30h] [bp-Ch] BYREF
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"suggest_%i_%i_%i",
(const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v8);
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
v10 = CString;
sub_776584((int)&v22, CString);
v11 = cocos2d::CCDictionary::objectForKey(m_friendReqAndUserBlocks, &v22);
sub_774008(&v22);
if ( !v11 )
{
v12 = a1->m_friendReqAndUserBlocks;
v18 = cocos2d::CCNode::create();
sub_776584((int)&v22, v10);
cocos2d::CCDictionary::setObject((int)v12, v18);
sub_774008(&v22);
GameLevelManager::getBasePostString((GameLevelManager *)&v19);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfp",
"3879",
103,
99,
&aO1i2r3e45s7t89[5]);
v14 = cocos2d::CCString::getCString(v13);
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&levelID=%i&stars=%i&feature=%i&secret=%s",
(const char *)a2,
a3,
a4,
v14);
v16 = (char *)cocos2d::CCString::getCString(v15);
sub_774544((int)&v19, v16);
sub_776584((int)&v20, "https://www.boomlings.com/database/suggestGJStars20.php");
sub_776584((int)&v21, v19);
sub_776584((int)&v22, v10);
GameLevelManager::ProcessHttpRequest(a1, &v20, &v21, (char **)&v22, 45);
sub_774008(&v22);
sub_774008(&v21);
sub_774008(&v20);
sub_774008(&v19);
}
}