//
// GameLevelManager::getFollowing from 0x4b92e4 to 0x4b9410 (300 bytes)
//
// 2 xrefs:
// > GameLevelManager::syncFollowListIfNeeded @ 0x4b964e
// > GameLevelManager::syncFollowListIfNeeded @ 0x4b966c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:13 +0000
//
int __fastcall GameLevelManager::getFollowing(GameLevelManager *this)
{
const char *v1; // r10
int v3; // r2
int v4; // r3
cocos2d::CCString *v5; // r0
const char *CString; // r0
cocos2d::CCString *v7; // r0
char *v8; // r0
size_t v9; // r0
char *v11[3]; // [sp+14h] [bp-34h] BYREF
int v12[3]; // [sp+20h] [bp-28h] BYREF
int v13[3]; // [sp+2Ch] [bp-1Ch] BYREF
int v14[3]; // [sp+38h] [bp-10h] BYREF
if ( GameLevelManager::isDLActive(this, "following") )
return 0;
GameLevelManager::addDLToActive(this, "following", v3, v4);
GameLevelManager::getBasePostString((GameLevelManager *)v11);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&a1i2r3e45s789g[9]);
CString = (const char *)cocos2d::CCString::getCString(v5);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&ack=1&secret=%s", CString);
v8 = (char *)cocos2d::CCString::getCString(v7);
std::string::append(v11, v8);
memset(v12, 0, sizeof(v12));
std::string::__init(v12, "https://www.boomlings.com/database/getGJFollowing.php", 0x35u);
v13[0] = 0;
v13[1] = 0;
if ( ((int)v11[0] & 1) == 0 )
v1 = (char *)v11 + 1;
v13[2] = 0;
if ( ((int)v11[0] & 1) != 0 )
v1 = v11[2];
v9 = strlen(v1);
std::string::__init(v13, v1, v9);
memset(v14, 0, sizeof(v14));
std::string::__init(v14, "following", 9u);
GameLevelManager::ProcessHttpRequest(this, v12, (int)v13, (int)v14, 114);
std::string::~string((int)v14);
std::string::~string((int)v13);
std::string::~string((int)v12);
std::string::~string((int)v11);
return 1;
}