//
// GameLevelManager::onGetFollowingCompleted from 0x80f5b8 to 0x80f6a4 (236 bytes)
//
// 3 xrefs:
// > GameLevelManager::handleIt @ 0x85a0dc
// > GameLevelManager::handleIt @ 0x85a4fc
// > ??> @ 0x7fc48
//
// 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:54:49 +0000
//
void *__fastcall GameLevelManager::onGetFollowingCompleted(GameLevelManager *this, unsigned __int8 *a2, char *a3)
{
const char *v5; // x3
void *result; // x0
int v7; // w20
__int64 v8; // x20
unsigned __int8 *v9; // x24
unsigned __int8 *v10; // x20
unsigned __int8 *v11; // x19
GameManager *v12; // x0
GameManager *v13; // x0
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((const char **)a3 + 2);
result = (void *)GameLevelManager::removeDLFromActive(this, v5);
v7 = *a2;
if ( (v7 & 1) != 0 )
{
v8 = *((_QWORD *)a2 + 1);
if ( !v8 )
return result;
v9 = *((unsigned __int8 **)a2 + 2);
}
else
{
LODWORD(v8) = v7 >> 1;
if ( !(_DWORD)v8 )
return result;
v9 = a2 + 1;
v8 = (int)v8;
}
v10 = &v9[v8];
if ( v10 == v9 )
goto LABEL_13;
v11 = v9;
while ( 1 )
{
result = memchr("0123456789,", *v11, 0xBu);
if ( !result )
break;
if ( v10 == ++v11 )
goto LABEL_13;
}
if ( v11 - v9 == -1 )
{
LABEL_13:
v12 = (GameManager *)GameLevelManager::replaceFollowedUsers((__int64)this, (char *)a2);
v13 = (GameManager *)GameManager::sharedState(v12);
return (void *)GameManager::setGameVariable(v13, "0241", 1u);
}
return result;
}