//
// GameLevelManager::storedFriendForAccountID from 0x4af1d2 to 0x4af20e (60 bytes)
//
// 1 xrefs:
// > GJCompactUserCell::buildUserRow @ 0x42e390
//
// 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:01 +0000
//
int __fastcall GameLevelManager::storedFriendForAccountID(GameLevelManager *this, int a2, int a3, int a4)
{
int result; // r0
int *v6; // r3
int *v7; // r2
int *v8; // r3
int v9; // t1
result = GameLevelManager::getStoredUserList((int)this, 0, a3, a4);
if ( result )
{
if ( a2 > 0 )
{
v6 = *(int **)(result + 52);
result = *v6;
if ( !*v6 )
return result;
v7 = (int *)v6[3];
v8 = &v7[result - 1];
while ( v7 <= v8 )
{
v9 = *v7++;
result = v9;
if ( !v9 || *(_DWORD *)(result + 296) == a2 )
return result;
}
}
return 0;
}
return result;
}