//
// GameLevelManager::getUserList from 0x1000a9a14 to 0x1000a9b6c (344 bytes)
//
// 2 xrefs:
// > FriendsProfilePage::init @ 0x1001d93c0
// > FriendsProfilePage::forceReloadList @ 0x1001d9a18
//
// 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::getUserList(GameLevelManager *a1, UserListType a2)
{
char *v4; // x20
cocos2d::CCString *v5; // x0
const char *CString; // x0
cocos2d::CCString *v7; // x0
const char *v8; // x0
std::string *v9; // x1
void *__p[2]; // [xsp+30h] [xbp-80h] BYREF
char v11; // [xsp+47h] [xbp-69h]
void *v12[2]; // [xsp+48h] [xbp-68h] BYREF
char v13; // [xsp+5Fh] [xbp-51h]
std::string v14; // [xsp+60h] [xbp-50h] BYREF
std::string v15; // [xsp+78h] [xbp-38h] BYREF
if ( a2 )
v4 = "get_blocked";
else
v4 = "get_friends";
if ( !GameLevelManager::isDLActive(a1, v4) )
{
GameLevelManager::addDLToActive(a1, v4);
GameLevelManager::getBasePostString(&v15);
v5 = (cocos2d::CCString *)sub_100268F4C("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = cocos2d::CCString::getCString(v5);
v7 = (cocos2d::CCString *)sub_100268F4C("&type=%i&secret=%s", a2, CString);
v8 = cocos2d::CCString::getCString(v7);
std::string::append(&v15, v8);
sub_100009900(&v14, "https://www.boomlings.com/database/getGJUserList20.php");
if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v9 = &v15;
else
v9 = (std::string *)v15.__r_.__value_.__r.__words[0];
sub_100009900(v12, (char *)v9);
sub_100009900(__p, v4);
GameLevelManager::ProcessHttpRequest(a1, &v14, (char *)v12, (const std::string::value_type *)__p, 36);
if ( v11 < 0 )
operator delete(__p[0]);
if ( v13 < 0 )
operator delete(v12[0]);
if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v14.__r_.__value_.__l.__data_);
if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v15.__r_.__value_.__l.__data_);
}
}