//
// GameLevelManager::getUserList from 0x82a8dc to 0x82ab70 (660 bytes)
//
// 4 xrefs:
// > FriendsProfilePage::forceReloadList @ 0xa504f0
// > FriendsProfilePage::init @ 0xa51038
// > FriendPickerPopup::init @ 0xc69ac0
// > ??> @ 0xe8420
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:55:05 +0000
//
__int64 __fastcall GameLevelManager::getUserList(GameLevelManager *this, unsigned int a2)
{
char *v4; // x20
cocos2d::CCString *v5; // x0
__int64 CString; // x0
cocos2d::CCString *v7; // x0
size_t v8; // x0
const char *v9; // x1
size_t v10; // x0
size_t v11; // x0
char *v13; // [xsp+48h] [xbp+48h]
char *v14; // [xsp+48h] [xbp+48h]
__int64 v15[2]; // [xsp+58h] [xbp+58h] BYREF
void *v16; // [xsp+68h] [xbp+68h]
__int64 v17[2]; // [xsp+70h] [xbp+70h] BYREF
void *v18; // [xsp+80h] [xbp+80h]
__int64 v19[2]; // [xsp+88h] [xbp+88h] BYREF
void *v20; // [xsp+98h] [xbp+98h]
__int64 v21[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v22; // [xsp+B0h] [xbp+B0h]
if ( a2 )
{
if ( a2 == 3 )
{
v4 = "get_following";
}
else
{
if ( a2 != 4 )
{
v4 = "get_blocked";
if ( GameLevelManager::isDLActive(this, "get_blocked") )
return _stack_chk_guard;
goto LABEL_5;
}
v4 = "get_muted";
}
}
else
{
v4 = "get_friends";
}
if ( GameLevelManager::isDLActive(this, v4) )
return _stack_chk_guard;
LABEL_5:
GameLevelManager::addDLToActive(this, v4);
GameLevelManager::getBasePostString(v15);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
CString = cocos2d::CCString::getCString(v5);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&type=%i&secret=%s",
(const char *)a2,
CString);
v13 = (char *)cocos2d::CCString::getCString(v7);
v8 = strlen(v13);
std::string::append((__int64)v15, v13, v8);
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
std::string::__init(v17, "https://www.boomlings.com/database/getGJUserList20.php", 0x36u);
v9 = (char *)v15 + 1;
if ( (v15[0] & 1) != 0 )
v9 = (const char *)v16;
v14 = (char *)v9;
v19[0] = 0;
v19[1] = 0;
v20 = nullptr;
v10 = strlen(v9);
std::string::__init(v19, v14, v10);
v21[0] = 0;
v21[1] = 0;
v22 = nullptr;
v11 = strlen(v4);
std::string::__init(v21, v4, v11);
GameLevelManager::ProcessHttpRequest(this, v17, (__int64)v19, (char *)v21, 42);
if ( (v21[0] & 1) != 0 )
operator delete(v22);
if ( (v19[0] & 1) != 0 )
operator delete(v20);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
return _stack_chk_guard;
}