//
// GameLevelManager::getStoredUserList from 0x1000caa9c to 0x1000cab88 (236 bytes)
//
// 5 xrefs:
// > sub_10009A400 @ 0x10009a508
// > sub_1000CADE8 @ 0x1000cae0c
// > GameLevelManager::storedFriendForAccountID @ 0x1000cb2b8
// > FriendsProfilePage::init @ 0x1002721c4
// > FriendPickerPopup::init @ 0x10050365c
//
// 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 10:58:51 +0000
//
__int64 __fastcall GameLevelManager::getStoredUserList(__int64 a1, int a2)
{
__int64 v2; // x19
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x19
__int64 v7; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v10; // [xsp+1Fh] [xbp-11h]
v2 = 0;
if ( a2 > 2 )
{
if ( a2 == 3 )
{
v7 = *(_QWORD *)(a1 + 1040);
sub_100009900(__p, "get_following");
v4 = cocos2d::CCDictionary::objectForKey(v7, __p);
}
else
{
if ( a2 != 4 )
return v2;
v5 = *(_QWORD *)(a1 + 1040);
sub_100009900(__p, "get_muted");
v4 = cocos2d::CCDictionary::objectForKey(v5, __p);
}
}
else if ( a2 )
{
if ( a2 != 1 )
return v2;
v3 = *(_QWORD *)(a1 + 1040);
sub_100009900(__p, "get_blocked");
v4 = cocos2d::CCDictionary::objectForKey(v3, __p);
}
else
{
v6 = *(_QWORD *)(a1 + 1040);
sub_100009900(__p, "get_friends");
v4 = cocos2d::CCDictionary::objectForKey(v6, __p);
}
v2 = v4;
if ( v10 < 0 )
operator delete(__p[0]);
return v2;
}