//
// GameLevelManager::getAccountComments from 0x1000a6270 to 0x1000a63e8 (376 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPage @ 0x10019c598
//
// 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 __fastcall GameLevelManager::getAccountComments(GameLevelManager *a1, int a2, int a3, int a4)
{
cocos2d::CCString *v8; // x0
char *CString; // x20
cocos2d::CCString *v10; // x0
const char *v11; // x0
cocos2d::CCString *v12; // x0
const char *v13; // x0
std::string *v14; // x1
void *__p[2]; // [xsp+30h] [xbp-90h] BYREF
char v16; // [xsp+47h] [xbp-79h]
void *v17[2]; // [xsp+48h] [xbp-78h] BYREF
char v18; // [xsp+5Fh] [xbp-61h]
std::string v19; // [xsp+60h] [xbp-60h] BYREF
std::string v20; // [xsp+78h] [xbp-48h] BYREF
v8 = (cocos2d::CCString *)sub_100268F4C("a_%i_%i", a2, a3);
CString = (char *)cocos2d::CCString::getCString(v8);
if ( !GameLevelManager::isDLActive(a1, CString) )
{
GameLevelManager::addDLToActive(a1, CString);
GameLevelManager::getBasePostString(&v20);
v10 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
v11 = cocos2d::CCString::getCString(v10);
v12 = (cocos2d::CCString *)sub_100268F4C("&accountID=%i&page=%i&total=%i&secret=%s", a2, a3, a4, v11);
v13 = cocos2d::CCString::getCString(v12);
std::string::append(&v20, v13);
sub_100009900(&v19, "https://www.boomlings.com/database/getGJAccountComments20.php");
if ( (v20.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v14 = &v20;
else
v14 = (std::string *)v20.__r_.__value_.__r.__words[0];
sub_100009900(v17, (char *)v14);
sub_100009900(__p, CString);
GameLevelManager::ProcessHttpRequest(a1, &v19, (char *)v17, (const std::string::value_type *)__p, 25);
if ( v16 < 0 )
operator delete(__p[0]);
if ( v18 < 0 )
operator delete(v17[0]);
if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v19.__r_.__value_.__l.__data_);
if ( SHIBYTE(v20.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v20.__r_.__value_.__l.__data_);
}
}