//
// GameLevelManager::onFollowUserCompleted from 0x4b1b98 to 0x4b1c5c (196 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x4db916
// > GameLevelManager::handleIt @ 0x4db948
//
// 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:03 +0000
//
int __fastcall GameLevelManager::onFollowUserCompleted(GameLevelManager *a1, int a2, int a3, int a4)
{
const char *v8; // r1
const char *v9; // r0
const char *v10; // r6
const char *v11; // r0
int result; // r0
int v13; // r3
int v14; // r2
int v15; // r3
int v16[3]; // [sp+8h] [bp-14h] BYREF
if ( (*(_BYTE *)a3 & 1) != 0 )
v8 = *(const char **)(a3 + 8);
else
v8 = (const char *)(a3 + 1);
GameLevelManager::removeDLFromActive(a1, v8);
std::string::basic_string(v16, (unsigned __int8 *)a3, 7u, 0xFFFFFFFF);
if ( (v16[0] & 1) != 0 )
v9 = (const char *)v16[2];
else
v9 = (char *)v16 + 1;
v10 = (const char *)atoi(v9);
std::string::~string((int)v16);
if ( (*(_BYTE *)a2 & 1) != 0 )
v11 = *(const char **)(a2 + 8);
else
v11 = (const char *)(a2 + 1);
if ( atoi(v11) >= 0 )
{
if ( a4 )
GameLevelManager::followUser(a1, v10);
else
GameLevelManager::unfollowUser(a1, v10);
GameLevelManager::invalidateUserList((int)a1, 3, 1, v13);
if ( !a4 )
GameLevelManager::resetStoredUserList((int)a1, 4, v14, v15);
result = *((_DWORD *)a1 + 85);
if ( result )
return (**(int (__fastcall ***)(int))result)(result);
}
else
{
result = *((_DWORD *)a1 + 85);
if ( result )
return (*(int (__fastcall **)(int))(*(_DWORD *)result + 4))(result);
}
return result;
}