//
// GameLevelManager::onGetFollowingCompleted from 0x4c2fa8 to 0x4c3022 (122 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x4db978
// > GameLevelManager::handleIt @ 0x4db9a8
//
// 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:25 +0000
//
void *__fastcall GameLevelManager::onGetFollowingCompleted(GameLevelManager *a1, unsigned __int8 *a2, int a3)
{
const char *v5; // r1
void *result; // r0
int v7; // r3
int v8; // r3
unsigned __int8 *v9; // r9
unsigned __int8 *v10; // r4
unsigned __int8 *v11; // r7
unsigned __int8 *v12; // r8
int v13; // r1
cocos2d::CCObject *v14; // r0
GameManager *v15; // r0
if ( (*(_BYTE *)a3 & 1) != 0 )
v5 = *(const char **)(a3 + 8);
else
v5 = (const char *)(a3 + 1);
result = (void *)GameLevelManager::removeDLFromActive(a1, v5);
v7 = *a2;
if ( (v7 & 1) != 0 )
{
v8 = *((_DWORD *)a2 + 1);
if ( !v8 )
return result;
v9 = *((unsigned __int8 **)a2 + 2);
}
else
{
v8 = v7 >> 1;
if ( !v8 )
return result;
v9 = a2 + 1;
}
v10 = &v9[v8];
v11 = v9;
while ( 1 )
{
v12 = v11;
if ( v11 == v10 )
break;
v13 = *v11++;
result = memchr("0123456789,", v13, 0xBu);
if ( !result )
{
if ( v12 - v9 != -1 )
return result;
break;
}
}
v14 = GameLevelManager::replaceFollowedUsers((int)a1, (int)a2);
v15 = (GameManager *)GameManager::sharedState(v14);
return (void *)GameManager::setGameVariable(v15, "0241", (_BYTE *)&dword_0 + 1);
}